]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/msw/_misc_wrap.cpp
reSWIGged
[wxWidgets.git] / wxPython / src / msw / _misc_wrap.cpp
1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 1.3.22
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11 #define SWIGPYTHON
12 #define SWIG_NOINCLUDE
13
14 #ifdef __cplusplus
15 template<class T> class SwigValueWrapper {
16 T *tt;
17 public:
18 SwigValueWrapper() : tt(0) { }
19 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
20 SwigValueWrapper(const T& t) : tt(new T(t)) { }
21 ~SwigValueWrapper() { delete tt; }
22 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
23 operator T&() const { return *tt; }
24 T *operator&() { return tt; }
25 private:
26 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
27 };
28 #endif
29
30
31 #include "Python.h"
32
33 /*************************************************************** -*- c -*-
34 * python/precommon.swg
35 *
36 * Rename all exported symbols from common.swg, to avoid symbol
37 * clashes if multiple interpreters are included
38 *
39 ************************************************************************/
40
41 #define SWIG_TypeRegister SWIG_Python_TypeRegister
42 #define SWIG_TypeCheck SWIG_Python_TypeCheck
43 #define SWIG_TypeCast SWIG_Python_TypeCast
44 #define SWIG_TypeDynamicCast SWIG_Python_TypeDynamicCast
45 #define SWIG_TypeName SWIG_Python_TypeName
46 #define SWIG_TypeQuery SWIG_Python_TypeQuery
47 #define SWIG_TypeClientData SWIG_Python_TypeClientData
48 #define SWIG_PackData SWIG_Python_PackData
49 #define SWIG_UnpackData SWIG_Python_UnpackData
50
51
52 /***********************************************************************
53 * common.swg for wxPython
54 *
55 * Include only the function prototypes and such from SWIG's common.swg,
56 * but not the runtime functions themselves. This helps keep the
57 * wrapper files clean of unnecessary stuff that is in the libpy.c file
58 * anyway.
59 *
60 ************************************************************************/
61
62 #include <string.h>
63
64 #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
65 # if defined(_MSC_VER) || defined(__GNUC__)
66 # if defined(STATIC_LINKED)
67 # define SWIGEXPORT(a) a
68 # define SWIGIMPORT(a) extern a
69 # else
70 # define SWIGEXPORT(a) __declspec(dllexport) a
71 # define SWIGIMPORT(a) extern a
72 # endif
73 # else
74 # if defined(__BORLANDC__)
75 # define SWIGEXPORT(a) a _export
76 # define SWIGIMPORT(a) a _export
77 # else
78 # define SWIGEXPORT(a) a
79 # define SWIGIMPORT(a) a
80 # endif
81 # endif
82 #else
83 # define SWIGEXPORT(a) a
84 # define SWIGIMPORT(a) a
85 #endif
86
87 #ifdef SWIG_GLOBAL
88 # define SWIGRUNTIME(a) SWIGEXPORT(a)
89 #else
90 # define SWIGRUNTIME(a) static a
91 #endif
92
93 #ifdef __cplusplus
94 extern "C" {
95 #endif
96
97 typedef void *(*swig_converter_func)(void *);
98 typedef struct swig_type_info *(*swig_dycast_func)(void **);
99
100 typedef struct swig_type_info {
101 const char *name;
102 swig_converter_func converter;
103 const char *str;
104 void *clientdata;
105 swig_dycast_func dcast;
106 struct swig_type_info *next;
107 struct swig_type_info *prev;
108 } swig_type_info;
109
110
111 SWIGIMPORT(swig_type_info *) SWIG_TypeRegister(swig_type_info *);
112 SWIGIMPORT(swig_type_info *) SWIG_TypeCheck(char *c, swig_type_info *);
113 SWIGIMPORT(void *) SWIG_TypeCast(swig_type_info *, void *);
114 SWIGIMPORT(swig_type_info *) SWIG_TypeDynamicCast(swig_type_info *, void **);
115 SWIGIMPORT(const char *) SWIG_TypeName(const swig_type_info *);
116 SWIGIMPORT(swig_type_info *) SWIG_TypeQuery(const char *);
117 SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info *, void *);
118 SWIGIMPORT(char *) SWIG_PackData(char *, void *, int);
119 SWIGIMPORT(char *) SWIG_UnpackData(char *, void *, int);
120
121
122 #ifdef __cplusplus
123 }
124 #endif
125
126 /***********************************************************************
127 * pyrun.swg for wxPython
128 *
129 * Include only the function prototypes and such from SWIG's pyrun.swg,
130 * but not the runtime functions themselves. This helps keep the
131 * wrapper files clean of unnecessary stuff that is in the libpy.c file
132 * anyway.
133 *
134 ************************************************************************/
135
136 #include "Python.h"
137
138 #ifdef __cplusplus
139 extern "C" {
140 #endif
141
142 #define SWIG_PY_INT 1
143 #define SWIG_PY_FLOAT 2
144 #define SWIG_PY_STRING 3
145 #define SWIG_PY_POINTER 4
146 #define SWIG_PY_BINARY 5
147
148 /* Flags for pointer conversion */
149
150 #define SWIG_POINTER_EXCEPTION 0x1
151 #define SWIG_POINTER_DISOWN 0x2
152
153 /* Exception handling in wrappers */
154 #define SWIG_fail goto fail
155
156 /* Constant information structure */
157 typedef struct swig_const_info {
158 int type;
159 char *name;
160 long lvalue;
161 double dvalue;
162 void *pvalue;
163 swig_type_info **ptype;
164 } swig_const_info;
165
166 /* Common SWIG API */
167 #define SWIG_ConvertPtr(obj, pp, type, flags) \
168 SWIG_Python_ConvertPtr(obj, pp, type, flags)
169 #define SWIG_NewPointerObj(p, type, flags) \
170 SWIG_Python_NewPointerObj(p, type, flags)
171 #define SWIG_MustGetPtr(p, type, argnum, flags) \
172 SWIG_Python_MustGetPtr(p, type, argnum, flags)
173
174 /* Python-specific SWIG API */
175 #define SWIG_newvarlink() \
176 SWIG_Python_newvarlink()
177 #define SWIG_addvarlink(p, name, get_attr, set_attr) \
178 SWIG_Python_addvarlink(p, name, get_attr, set_attr)
179 #define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) \
180 SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags)
181 #define SWIG_NewPackedObj(ptr, sz, type) \
182 SWIG_Python_NewPackedObj(ptr, sz, type)
183 #define SWIG_InstallConstants(d, constants) \
184 SWIG_Python_InstallConstants(d, constants)
185
186 typedef double (*py_objasdbl_conv)(PyObject *obj);
187
188 SWIGIMPORT(int) SWIG_Python_ConvertPtr(PyObject *, void **, swig_type_info *, int);
189 SWIGIMPORT(PyObject *) SWIG_Python_NewPointerObj(void *, swig_type_info *,int own);
190 SWIGIMPORT(void *) SWIG_Python_MustGetPtr(PyObject *, swig_type_info *, int, int);
191 SWIGIMPORT(PyObject *) SWIG_Python_newvarlink(void);
192 SWIGIMPORT(void) SWIG_Python_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *));
193 SWIGIMPORT(int) SWIG_Python_ConvertPacked(PyObject *, void *, int sz, swig_type_info *, int);
194 SWIGIMPORT(PyObject *) SWIG_Python_NewPackedObj(void *, int sz, swig_type_info *);
195 SWIGIMPORT(void) SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]);
196
197
198 /* Contract support */
199
200 #define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else
201
202 #ifdef __cplusplus
203 }
204 #endif
205
206
207 /* -------- TYPES TABLE (BEGIN) -------- */
208
209 #define SWIGTYPE_p_wxLogChain swig_types[0]
210 #define SWIGTYPE_p_wxMutexGuiLocker swig_types[1]
211 #define SWIGTYPE_p_wxMetafile swig_types[2]
212 #define SWIGTYPE_p_wxFileHistory swig_types[3]
213 #define SWIGTYPE_p_wxLog swig_types[4]
214 #define SWIGTYPE_p_wxDateTime__TimeZone swig_types[5]
215 #define SWIGTYPE_p_wxMenu swig_types[6]
216 #define SWIGTYPE_p_wxEvent swig_types[7]
217 #define SWIGTYPE_p_wxConfigBase swig_types[8]
218 #define SWIGTYPE_p_wxDisplay swig_types[9]
219 #define SWIGTYPE_p_wxFileType swig_types[10]
220 #define SWIGTYPE_p_wxLogGui swig_types[11]
221 #define SWIGTYPE_p_wxFont swig_types[12]
222 #define SWIGTYPE_p_wxDataFormat swig_types[13]
223 #define SWIGTYPE_p_wxTimerEvent swig_types[14]
224 #define SWIGTYPE_p_wxCaret swig_types[15]
225 #define SWIGTYPE_p_int swig_types[16]
226 #define SWIGTYPE_p_wxSize swig_types[17]
227 #define SWIGTYPE_p_wxClipboard swig_types[18]
228 #define SWIGTYPE_p_wxStopWatch swig_types[19]
229 #define SWIGTYPE_p_wxDC swig_types[20]
230 #define SWIGTYPE_p_wxClipboardLocker swig_types[21]
231 #define SWIGTYPE_p_wxIcon swig_types[22]
232 #define SWIGTYPE_p_wxLogStderr swig_types[23]
233 #define SWIGTYPE_p_wxLogTextCtrl swig_types[24]
234 #define SWIGTYPE_p_wxTextCtrl swig_types[25]
235 #define SWIGTYPE_p_wxBusyCursor swig_types[26]
236 #define SWIGTYPE_p_wxPyBitmapDataObject swig_types[27]
237 #define SWIGTYPE_p_wxPyTextDataObject swig_types[28]
238 #define SWIGTYPE_p_wxBitmapDataObject swig_types[29]
239 #define SWIGTYPE_p_wxTextDataObject swig_types[30]
240 #define SWIGTYPE_p_wxDataObject swig_types[31]
241 #define SWIGTYPE_p_wxFileDataObject swig_types[32]
242 #define SWIGTYPE_p_wxCustomDataObject swig_types[33]
243 #define SWIGTYPE_p_wxURLDataObject swig_types[34]
244 #define SWIGTYPE_p_wxMetafileDataObject swig_types[35]
245 #define SWIGTYPE_p_wxSound swig_types[36]
246 #define SWIGTYPE_p_wxTimerRunner swig_types[37]
247 #define SWIGTYPE_p_wxLogWindow swig_types[38]
248 #define SWIGTYPE_p_wxTimeSpan swig_types[39]
249 #define SWIGTYPE_p_wxArrayString swig_types[40]
250 #define SWIGTYPE_p_wxWindowDisabler swig_types[41]
251 #define SWIGTYPE_p_wxToolTip swig_types[42]
252 #define SWIGTYPE_p_wxDataObjectComposite swig_types[43]
253 #define SWIGTYPE_p_wxFileConfig swig_types[44]
254 #define SWIGTYPE_p_wxSystemSettings swig_types[45]
255 #define SWIGTYPE_p_wxVideoMode swig_types[46]
256 #define SWIGTYPE_p_wxPyDataObjectSimple swig_types[47]
257 #define SWIGTYPE_p_wxDataObjectSimple swig_types[48]
258 #define SWIGTYPE_p_wxEvtHandler swig_types[49]
259 #define SWIGTYPE_p_wxRect swig_types[50]
260 #define SWIGTYPE_p_char swig_types[51]
261 #define SWIGTYPE_p_wxSingleInstanceChecker swig_types[52]
262 #define SWIGTYPE_p_wxFileTypeInfo swig_types[53]
263 #define SWIGTYPE_p_wxFrame swig_types[54]
264 #define SWIGTYPE_p_wxTimer swig_types[55]
265 #define SWIGTYPE_p_wxMimeTypesManager swig_types[56]
266 #define SWIGTYPE_p_wxPyArtProvider swig_types[57]
267 #define SWIGTYPE_p_wxPyTipProvider swig_types[58]
268 #define SWIGTYPE_p_wxTipProvider swig_types[59]
269 #define SWIGTYPE_p_wxJoystick swig_types[60]
270 #define SWIGTYPE_p_wxSystemOptions swig_types[61]
271 #define SWIGTYPE_p_wxPoint swig_types[62]
272 #define SWIGTYPE_p_wxJoystickEvent swig_types[63]
273 #define SWIGTYPE_p_wxCursor swig_types[64]
274 #define SWIGTYPE_p_wxObject swig_types[65]
275 #define SWIGTYPE_p_wxOutputStream swig_types[66]
276 #define SWIGTYPE_p_wxDateTime swig_types[67]
277 #define SWIGTYPE_p_wxPyDropSource swig_types[68]
278 #define SWIGTYPE_p_wxWindow swig_types[69]
279 #define SWIGTYPE_p_wxString swig_types[70]
280 #define SWIGTYPE_p_wxPyProcess swig_types[71]
281 #define SWIGTYPE_p_wxBitmap swig_types[72]
282 #define SWIGTYPE_p_wxConfig swig_types[73]
283 #define SWIGTYPE_p_wxChar swig_types[74]
284 #define SWIGTYPE_p_wxBusyInfo swig_types[75]
285 #define SWIGTYPE_p_wxPyDropTarget swig_types[76]
286 #define SWIGTYPE_p_wxPyTextDropTarget swig_types[77]
287 #define SWIGTYPE_p_wxPyFileDropTarget swig_types[78]
288 #define SWIGTYPE_p_wxProcessEvent swig_types[79]
289 #define SWIGTYPE_p_wxPyLog swig_types[80]
290 #define SWIGTYPE_p_wxLogNull swig_types[81]
291 #define SWIGTYPE_p_wxColour swig_types[82]
292 #define SWIGTYPE_p_wxConfigPathChanger swig_types[83]
293 #define SWIGTYPE_p_wxPyTimer swig_types[84]
294 #define SWIGTYPE_p_wxDateSpan swig_types[85]
295 static swig_type_info *swig_types[87];
296
297 /* -------- TYPES TABLE (END) -------- */
298
299
300 /*-----------------------------------------------
301 @(target):= _misc_.so
302 ------------------------------------------------*/
303 #define SWIG_init init_misc_
304
305 #define SWIG_name "_misc_"
306
307 /* Auxiliar swig macros */
308
309 #ifdef __cplusplus
310 #define SWIGSTATICINLINE(a) static inline a
311 #define SWIGSTATIC(a) static a
312 #define swig_new_array(type, size) (new type[(size)])
313 #define swig_delete_array(cptr) delete[] cptr
314 #define swig_const_cast(type,a) const_cast<type>(a)
315 #define swig_static_cast(type,a) static_cast<type>(a)
316 #define swig_reinterpret_cast(type,a) reinterpret_cast<type>(a)
317
318 #ifdef HAVE_NUMERIC_CAST
319 #define swig_numeric_cast(type,a) numeric_cast<type>(a)
320 #else
321 #define swig_numeric_cast(type,a) static_cast<type>(a)
322 #endif
323
324 #else /* C case */
325
326 #define SWIGSTATICINLINE(a) static a
327 #define SWIGSTATIC(a) static a
328 #define swig_new_array(type, size) ((type*) malloc((size)*sizeof(type)))
329 #define swig_delete_array(cptr) free((char*)cptr)
330 #define swig_const_cast(type,a) (type)(a)
331 #define swig_static_cast(type,a) (type)(a)
332 #define swig_reinterpret_cast(type,a) (type)(a)
333 #define swig_numeric_cast(type,a) (type)(a)
334
335 #endif /* __cplusplus */
336
337
338 #define SWIG_FromSignedChar PyInt_FromLong
339 #define SWIG_FromUnsignedChar PyInt_FromLong
340 #define SWIG_FromShort PyInt_FromLong
341 #define SWIG_FromUnsignedShort PyInt_FromLong
342 #define SWIG_FromInt PyInt_FromLong
343 #define SWIG_FromLong PyInt_FromLong
344 #define SWIG_FromFloat PyFloat_FromDouble
345 #define SWIG_FromDouble PyFloat_FromDouble
346 #define SWIG_FromFloat PyFloat_FromDouble
347 #define SWIG_FromDouble PyFloat_FromDouble
348
349
350 #include "wx/wxPython/wxPython.h"
351 #include "wx/wxPython/pyclasses.h"
352 #include "wx/wxPython/pyistream.h"
353
354
355 static const wxString wxPyEmptyString(wxEmptyString);
356
357
358
359 #include <limits.h>
360
361
362 SWIGSTATICINLINE(long)
363 SWIG_CheckLongInRange(long value, const char* type,
364 long min_value, long max_value)
365 {
366 if (!PyErr_Occurred()) {
367 if (value < min_value) {
368 PyObject *err =
369 PyString_FromFormat("value %ld is less than '%s' minimum %ld",
370 value, type, min_value);
371
372 PyErr_SetObject(PyExc_OverflowError, err);
373 Py_DECREF(err);
374 } else if (value > max_value) {
375 PyObject *err =
376 PyString_FromFormat("value %ld is greater than '%s' maximum %ld",
377 value, type, max_value);
378 PyErr_SetObject(PyExc_OverflowError, err);
379 Py_DECREF(err);
380 }
381 }
382 return value;
383 }
384
385
386 SWIGSTATICINLINE(long)
387 SWIG_AsLong(PyObject * obj)
388 {
389 if (PyNumber_Check(obj))
390 return PyInt_AsLong(obj);
391 else {
392 PyObject* errmsg = PyString_FromFormat("Expected number, got %s",
393 obj->ob_type->tp_name);
394 PyErr_SetObject(PyExc_TypeError, errmsg);
395 Py_DECREF(errmsg);
396 return 0;
397 }
398 }
399
400
401 #if INT_MAX != LONG_MAX
402 SWIGSTATICINLINE(int)
403 SWIG_AsInt(PyObject *obj)
404 {
405 return swig_numeric_cast(int,
406 SWIG_CheckLongInRange(SWIG_AsLong(obj),
407 "int", INT_MIN, INT_MAX));
408 }
409 #else
410 #define SWIG_AsInt SWIG_AsLong
411 #endif
412
413
414 SWIGSTATICINLINE(int)
415 SWIG_CheckInt(PyObject* obj)
416 {
417 SWIG_AsInt(obj);
418 if (PyErr_Occurred()) {
419 PyErr_Clear();
420 return 0;
421 } else {
422 return 1;
423 }
424 }
425
426 static const wxString wxPyFileSelectorPromptStr(wxFileSelectorPromptStr);
427 static const wxString wxPyFileSelectorDefaultWildcardStr(wxFileSelectorDefaultWildcardStr);
428 static const wxString wxPyDirSelectorPromptStr(wxDirSelectorPromptStr);
429
430 SWIGSTATICINLINE(int)
431 SWIG_CheckLong(PyObject* obj)
432 {
433 SWIG_AsLong(obj);
434 if (PyErr_Occurred()) {
435 PyErr_Clear();
436 return 0;
437 } else {
438 return 1;
439 }
440 }
441
442
443 SWIGSTATICINLINE(bool)
444 SWIG_AsBool(PyObject *obj)
445 {
446 return PyObject_IsTrue(obj) ? true : false;
447 }
448
449
450 SWIGSTATICINLINE(int)
451 SWIG_CheckBool(PyObject* obj)
452 {
453 SWIG_AsBool(obj);
454 if (PyErr_Occurred()) {
455 PyErr_Clear();
456 return 0;
457 } else {
458 return 1;
459 }
460 }
461
462
463 static PyObject* t_output_helper(PyObject* target, PyObject* o) {
464 PyObject* o2;
465 PyObject* o3;
466
467 if (!target) {
468 target = o;
469 } else if (target == Py_None) {
470 Py_DECREF(Py_None);
471 target = o;
472 } else {
473 if (!PyTuple_Check(target)) {
474 o2 = target;
475 target = PyTuple_New(1);
476 PyTuple_SetItem(target, 0, o2);
477 }
478 o3 = PyTuple_New(1);
479 PyTuple_SetItem(o3, 0, o);
480
481 o2 = target;
482 target = PySequence_Concat(o2, o3);
483 Py_DECREF(o2);
484 Py_DECREF(o3);
485 }
486 return target;
487 }
488
489
490 SWIGSTATICINLINE(unsigned long)
491 SWIG_AsUnsignedLong(PyObject * obj)
492 {
493 if (PyLong_Check(obj)) {
494 return PyLong_AsUnsignedLong(obj);
495 } else {
496 long i = SWIG_AsLong(obj);
497 if ( !PyErr_Occurred() && (i < 0)) {
498 PyErr_SetString(PyExc_TypeError, "negative value received for unsigned type");
499 }
500 return i;
501 }
502 }
503
504
505 SWIGSTATICINLINE(int)
506 SWIG_CheckUnsignedLong(PyObject* obj)
507 {
508 SWIG_AsUnsignedLong(obj);
509 if (PyErr_Occurred()) {
510 PyErr_Clear();
511 return 0;
512 } else {
513 return 1;
514 }
515 }
516
517
518 SWIGSTATICINLINE(PyObject* )
519 SWIG_FromUnsignedLong(unsigned long value)
520 {
521 return (value > LONG_MAX) ?
522 PyLong_FromUnsignedLong(value)
523 : PyInt_FromLong(swig_numeric_cast(long,value));
524 }
525
526
527 bool wxThread_IsMain() {
528 #ifdef WXP_WITH_THREAD
529 return wxThread::IsMain();
530 #else
531 return True;
532 #endif
533 }
534
535
536 int wxCaret_GetBlinkTime() {
537 return wxCaret::GetBlinkTime();
538 }
539
540 void wxCaret_SetBlinkTime(int milliseconds) {
541 wxCaret::SetBlinkTime(milliseconds);
542 }
543
544
545 #include <wx/snglinst.h>
546
547
548 #ifdef __WXMSW__
549 #include <wx/msw/private.h>
550 #include <wx/dynload.h>
551 #endif
552
553
554
555 void wxDrawWindowOnDC(wxWindow* window, const wxDC& dc, int method)
556 {
557 #ifdef __WXMSW__
558
559 switch (method)
560 {
561 case 1:
562 // This one only partially works. Appears to be an undocumented
563 // "standard" convention that not all widgets adhear to. For
564 // example, for some widgets backgrounds or non-client areas may
565 // not be painted.
566 ::SendMessage(GetHwndOf(window), WM_PAINT, (long)GetHdcOf(dc), 0);
567 break;
568
569 case 2:
570 // This one works much better, except for on XP. On Win2k nearly
571 // all widgets and their children are captured correctly[**]. On
572 // XP with Themes activated most native widgets draw only
573 // partially, if at all. Without themes it works just like on
574 // Win2k.
575 //
576 // ** For example the radio buttons in a wxRadioBox are not its
577 // children by default, but you can capture it via the panel
578 // instead, or change RADIOBTN_PARENT_IS_RADIOBOX in radiobox.cpp.
579 ::SendMessage(GetHwndOf(window), WM_PRINT, (long)GetHdcOf(dc),
580 PRF_CLIENT | PRF_NONCLIENT | PRF_CHILDREN |
581 PRF_ERASEBKGND | PRF_OWNED );
582 break;
583
584 case 3:
585 // This one is only defined in the latest SDK and is only
586 // available on XP. MSDN says it is similar to sending WM_PRINT
587 // so I expect that it will work similar to the above. Since it
588 // is avaialble only on XP, it can't be compiled like this and
589 // will have to be loaded dynamically.
590 // //::PrintWindow(GetHwndOf(window), GetHdcOf(dc), 0); //break;
591
592 // fall through
593
594 case 4:
595 // Use PrintWindow if available, or fallback to WM_PRINT
596 // otherwise. Unfortunately using PrintWindow is even worse than
597 // WM_PRINT. For most native widgets nothing is drawn to the dc
598 // at all, with or without Themes.
599 typedef BOOL (WINAPI *PrintWindow_t)(HWND, HDC, UINT);
600 static bool s_triedToLoad = False;
601 static PrintWindow_t pfnPrintWindow = NULL;
602 if ( !s_triedToLoad )
603 {
604
605 s_triedToLoad = True;
606 wxDynamicLibrary dllUser32(_T("user32.dll"));
607 if ( dllUser32.IsLoaded() )
608 {
609 wxLogNull nolog; // Don't report errors here
610 pfnPrintWindow = (PrintWindow_t)dllUser32.GetSymbol(_T("PrintWindow"));
611 }
612 }
613 if (pfnPrintWindow)
614 {
615 printf("Using PrintWindow\n");
616 pfnPrintWindow(GetHwndOf(window), GetHdcOf(dc), 0);
617 }
618 else
619 {
620 printf("Using WM_PRINT\n");
621 ::SendMessage(GetHwndOf(window), WM_PRINT, (long)GetHdcOf(dc),
622 PRF_CLIENT | PRF_NONCLIENT | PRF_CHILDREN | PRF_ERASEBKGND | PRF_OWNED );
623 }
624 }
625 #endif
626 }
627
628
629
630 #include <wx/tipdlg.h>
631
632
633 class wxPyTipProvider : public wxTipProvider {
634 public:
635 wxPyTipProvider(size_t currentTip)
636 : wxTipProvider(currentTip) {}
637
638 DEC_PYCALLBACK_STRING__pure(GetTip);
639 DEC_PYCALLBACK_STRING_STRING(PreprocessTip);
640 PYPRIVATE;
641 };
642
643 IMP_PYCALLBACK_STRING__pure( wxPyTipProvider, wxTipProvider, GetTip);
644 IMP_PYCALLBACK_STRING_STRING(wxPyTipProvider, wxTipProvider, PreprocessTip);
645
646
647 //IMP_PYCALLBACK__(wxPyTimer, wxTimer, Notify);
648
649 IMPLEMENT_ABSTRACT_CLASS(wxPyTimer, wxTimer);
650
651 void wxPyTimer::Notify() {
652 bool found;
653 bool blocked = wxPyBeginBlockThreads();
654 if ((found = wxPyCBH_findCallback(m_myInst, "Notify")))
655 wxPyCBH_callCallback(m_myInst, Py_BuildValue("()"));
656 wxPyEndBlockThreads(blocked);
657 if (! found)
658 wxTimer::Notify();
659 }
660 void wxPyTimer::base_Notify() {
661 wxTimer::Notify();
662 }
663
664
665
666 SWIGSTATICINLINE(PyObject *)
667 SWIG_FromCharPtr(const char* cptr)
668 {
669 size_t size = cptr ? strlen(cptr) : 0;
670 if (cptr) {
671 if (size > INT_MAX) {
672 return SWIG_NewPointerObj(swig_const_cast(char*,cptr),
673 SWIG_TypeQuery("char *"), 0);
674 } else {
675 return PyString_FromStringAndSize(cptr, swig_numeric_cast(int,size));
676 }
677 } else {
678 Py_INCREF(Py_None);
679 return Py_None;
680 }
681 }
682
683
684 SWIGSTATICINLINE(unsigned long)
685 SWIG_CheckUnsignedLongInRange(unsigned long value, const char* type,
686 unsigned long max_value)
687 {
688 if (!PyErr_Occurred()) {
689 if (value > max_value) {
690 PyObject *err =
691 PyString_FromFormat("value %ld is greater than '%s' minimum %ld",
692 value, type, max_value);
693 PyErr_SetObject(PyExc_OverflowError, err);
694 Py_DECREF(err);
695 }
696 }
697 return value;
698 }
699
700
701 #if UINT_MAX != ULONG_MAX
702 SWIGSTATICINLINE(unsigned int)
703 SWIG_AsUnsignedInt(PyObject *obj)
704 {
705 return swig_numeric_cast(unsigned int,
706 SWIG_CheckUnsignedLongInRange(SWIG_AsUnsignedLong(obj),
707 "unsigned int", UINT_MAX));
708 }
709 #else
710 #define SWIG_AsUnsignedInt SWIG_AsUnsignedLong
711 #endif
712
713
714 SWIGSTATICINLINE(int)
715 SWIG_CheckUnsignedInt(PyObject* obj)
716 {
717 SWIG_AsUnsignedInt(obj);
718 if (PyErr_Occurred()) {
719 PyErr_Clear();
720 return 0;
721 } else {
722 return 1;
723 }
724 }
725
726 wxString Log_TimeStamp(){
727 wxString msg;
728 wxLog::TimeStamp(&msg);
729 return msg;
730 }
731 void wxLog_Destroy(wxLog *self){ delete self; }
732
733 // A wxLog class that can be derived from in wxPython
734 class wxPyLog : public wxLog {
735 public:
736 wxPyLog() : wxLog() {}
737
738 virtual void DoLog(wxLogLevel level, const wxChar *szString, time_t t) {
739 bool found;
740 bool blocked = wxPyBeginBlockThreads();
741 if ((found = wxPyCBH_findCallback(m_myInst, "DoLog"))) {
742 PyObject* s = wx2PyString(szString);
743 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iOi)", level, s, t));
744 Py_DECREF(s);
745 }
746 wxPyEndBlockThreads(blocked);
747 if (! found)
748 wxLog::DoLog(level, szString, t);
749 }
750
751 virtual void DoLogString(const wxChar *szString, time_t t) {
752 bool found;
753 bool blocked = wxPyBeginBlockThreads();
754 if ((found = wxPyCBH_findCallback(m_myInst, "DoLogString"))) {
755 PyObject* s = wx2PyString(szString);
756 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(Oi)", s, t));
757 Py_DECREF(s);
758 }
759 wxPyEndBlockThreads(blocked);
760 if (! found)
761 wxLog::DoLogString(szString, t);
762 }
763
764 PYPRIVATE;
765 };
766
767
768
769
770 IMP_PYCALLBACK_VOID_INTINT( wxPyProcess, wxProcess, OnTerminate);
771
772
773 #include <wx/joystick.h>
774
775
776 #if !wxUSE_JOYSTICK && !defined(__WXMSW__)
777 // A C++ stub class for wxJoystick for platforms that don't have it.
778 class wxJoystick : public wxObject {
779 public:
780 wxJoystick(int joystick = wxJOYSTICK1) {
781 bool blocked = wxPyBeginBlockThreads();
782 PyErr_SetString(PyExc_NotImplementedError,
783 "wxJoystick is not available on this platform.");
784 wxPyEndBlockThreads(blocked);
785 }
786 wxPoint GetPosition() { return wxPoint(-1,-1); }
787 int GetZPosition() { return -1; }
788 int GetButtonState() { return -1; }
789 int GetPOVPosition() { return -1; }
790 int GetPOVCTSPosition() { return -1; }
791 int GetRudderPosition() { return -1; }
792 int GetUPosition() { return -1; }
793 int GetVPosition() { return -1; }
794 int GetMovementThreshold() { return -1; }
795 void SetMovementThreshold(int threshold) {}
796
797 bool IsOk(void) { return False; }
798 int GetNumberJoysticks() { return -1; }
799 int GetManufacturerId() { return -1; }
800 int GetProductId() { return -1; }
801 wxString GetProductName() { return wxEmptyString; }
802 int GetXMin() { return -1; }
803 int GetYMin() { return -1; }
804 int GetZMin() { return -1; }
805 int GetXMax() { return -1; }
806 int GetYMax() { return -1; }
807 int GetZMax() { return -1; }
808 int GetNumberButtons() { return -1; }
809 int GetNumberAxes() { return -1; }
810 int GetMaxButtons() { return -1; }
811 int GetMaxAxes() { return -1; }
812 int GetPollingMin() { return -1; }
813 int GetPollingMax() { return -1; }
814 int GetRudderMin() { return -1; }
815 int GetRudderMax() { return -1; }
816 int GetUMin() { return -1; }
817 int GetUMax() { return -1; }
818 int GetVMin() { return -1; }
819 int GetVMax() { return -1; }
820
821 bool HasRudder() { return False; }
822 bool HasZ() { return False; }
823 bool HasU() { return False; }
824 bool HasV() { return False; }
825 bool HasPOV() { return False; }
826 bool HasPOV4Dir() { return False; }
827 bool HasPOVCTS() { return False; }
828
829 bool SetCapture(wxWindow* win, int pollingFreq = 0) { return False; }
830 bool ReleaseCapture() { return False; }
831 };
832 #endif
833
834
835 #include <wx/sound.h>
836
837
838 #if !wxUSE_SOUND
839 // A C++ stub class for wxWave for platforms that don't have it.
840 class wxSound : public wxObject
841 {
842 public:
843 wxSound() {
844 bool blocked = wxPyBeginBlockThreads();
845 PyErr_SetString(PyExc_NotImplementedError,
846 "wxSound is not available on this platform.");
847 wxPyEndBlockThreads(blocked);
848 }
849 wxSound(const wxString&/*, bool*/) {
850 bool blocked = wxPyBeginBlockThreads();
851 PyErr_SetString(PyExc_NotImplementedError,
852 "wxSound is not available on this platform.");
853 wxPyEndBlockThreads(blocked);
854 }
855 wxSound(int, const wxByte*) {
856 bool blocked = wxPyBeginBlockThreads();
857 PyErr_SetString(PyExc_NotImplementedError,
858 "wxSound is not available on this platform.");
859 wxPyEndBlockThreads(blocked);
860 }
861
862 ~wxSound() {};
863
864 bool Create(const wxString&/*, bool*/) { return false; }
865 bool Create(int, const wxByte*) { return false; };
866 bool IsOk() { return false; };
867 bool Play(unsigned) const { return false; }
868 static bool Play(const wxString&, unsigned) { return false; }
869 static void Stop() {}
870 };
871
872 #endif
873
874 wxSound *new_wxSound(wxString const &fileName){
875 if (fileName.Length() == 0)
876 return new wxSound;
877 else
878 return new wxSound(fileName);
879 }
880 wxSound *new_wxSound(PyObject *data){
881 unsigned char* buffer; int size;
882 wxSound *sound = NULL;
883
884 bool blocked = wxPyBeginBlockThreads();
885 if (!PyArg_Parse(data, "t#", &buffer, &size))
886 goto done;
887 sound = new wxSound(size, buffer);
888 done:
889 wxPyEndBlockThreads(blocked);
890 return sound;
891 }
892 bool wxSound_CreateFromData(wxSound *self,PyObject *data){
893 #ifndef __WXMAC__
894 unsigned char* buffer;
895 int size;
896 bool rv = False;
897
898 bool blocked = wxPyBeginBlockThreads();
899 if (!PyArg_Parse(data, "t#", &buffer, &size))
900 goto done;
901 rv = self->Create(size, buffer);
902 done:
903 wxPyEndBlockThreads(blocked);
904 return rv;
905 #else
906 bool blocked = wxPyBeginBlockThreads();
907 PyErr_SetString(PyExc_NotImplementedError,
908 "Create from data is not available on this platform.");
909 wxPyEndBlockThreads(blocked);
910 return False;
911 #endif
912 }
913
914 #include <wx/mimetype.h>
915
916 PyObject *wxFileType_GetMimeType(wxFileType *self){
917 wxString str;
918 if (self->GetMimeType(&str))
919 return wx2PyString(str);
920 else
921 RETURN_NONE();
922 }
923 PyObject *wxFileType_GetMimeTypes(wxFileType *self){
924 wxArrayString arr;
925 if (self->GetMimeTypes(arr))
926 return wxArrayString2PyList_helper(arr);
927 else
928 RETURN_NONE();
929 }
930 PyObject *wxFileType_GetExtensions(wxFileType *self){
931 wxArrayString arr;
932 if (self->GetExtensions(arr))
933 return wxArrayString2PyList_helper(arr);
934 else
935 RETURN_NONE();
936 }
937 wxIcon *wxFileType_GetIcon(wxFileType *self){
938 wxIconLocation loc;
939 if (self->GetIcon(&loc))
940 return new wxIcon(loc);
941 else
942 return NULL;
943 }
944 PyObject *wxFileType_GetIconInfo(wxFileType *self){
945 wxIconLocation loc;
946 if (self->GetIcon(&loc)) {
947 wxString iconFile = loc.GetFileName();
948 int iconIndex = -1;
949
950 iconIndex = loc.GetIndex();
951
952 // Make a tuple and put the values in it
953 bool blocked = wxPyBeginBlockThreads();
954 PyObject* tuple = PyTuple_New(3);
955 PyTuple_SetItem(tuple, 0, wxPyConstructObject(new wxIcon(loc),
956 wxT("wxIcon"), True));
957 PyTuple_SetItem(tuple, 1, wx2PyString(iconFile));
958 PyTuple_SetItem(tuple, 2, PyInt_FromLong(iconIndex));
959 wxPyEndBlockThreads(blocked);
960 return tuple;
961 }
962 else
963 RETURN_NONE();
964 }
965 PyObject *wxFileType_GetDescription(wxFileType *self){
966 wxString str;
967 if (self->GetDescription(&str))
968 return wx2PyString(str);
969 else
970 RETURN_NONE();
971 }
972 PyObject *wxFileType_GetOpenCommand(wxFileType *self,wxString const &filename,wxString const &mimetype){
973 wxString str;
974 if (self->GetOpenCommand(&str, wxFileType::MessageParameters(filename, mimetype)))
975 return wx2PyString(str);
976 else
977 RETURN_NONE();
978 }
979 PyObject *wxFileType_GetPrintCommand(wxFileType *self,wxString const &filename,wxString const &mimetype){
980 wxString str;
981 if (self->GetPrintCommand(&str, wxFileType::MessageParameters(filename, mimetype)))
982 return wx2PyString(str);
983 else
984 RETURN_NONE();
985 }
986 PyObject *wxFileType_GetAllCommands(wxFileType *self,wxString const &filename,wxString const &mimetype){
987 wxArrayString verbs;
988 wxArrayString commands;
989 if (self->GetAllCommands(&verbs, &commands,
990 wxFileType::MessageParameters(filename, mimetype))) {
991 bool blocked = wxPyBeginBlockThreads();
992 PyObject* tuple = PyTuple_New(2);
993 PyTuple_SetItem(tuple, 0, wxArrayString2PyList_helper(verbs));
994 PyTuple_SetItem(tuple, 1, wxArrayString2PyList_helper(commands));
995 wxPyEndBlockThreads(blocked);
996 return tuple;
997 }
998 else
999 RETURN_NONE();
1000 }
1001 wxString FileType_ExpandCommand(wxString const &command,wxString const &filename,wxString const &mimetype){
1002 return wxFileType::ExpandCommand(command,
1003 wxFileType::MessageParameters(filename, mimetype));
1004 }
1005 PyObject *wxMimeTypesManager_EnumAllFileTypes(wxMimeTypesManager *self){
1006 wxArrayString arr;
1007 self->EnumAllFileTypes(arr);
1008 return wxArrayString2PyList_helper(arr);
1009 }
1010
1011 #include <wx/artprov.h>
1012
1013 static const wxString wxPyART_TOOLBAR(wxART_TOOLBAR);
1014 static const wxString wxPyART_MENU(wxART_MENU);
1015 static const wxString wxPyART_FRAME_ICON(wxART_FRAME_ICON);
1016 static const wxString wxPyART_CMN_DIALOG(wxART_CMN_DIALOG);
1017 static const wxString wxPyART_HELP_BROWSER(wxART_HELP_BROWSER);
1018 static const wxString wxPyART_MESSAGE_BOX(wxART_MESSAGE_BOX);
1019 static const wxString wxPyART_OTHER(wxART_OTHER);
1020 static const wxString wxPyART_ADD_BOOKMARK(wxART_ADD_BOOKMARK);
1021 static const wxString wxPyART_DEL_BOOKMARK(wxART_DEL_BOOKMARK);
1022 static const wxString wxPyART_HELP_SIDE_PANEL(wxART_HELP_SIDE_PANEL);
1023 static const wxString wxPyART_HELP_SETTINGS(wxART_HELP_SETTINGS);
1024 static const wxString wxPyART_HELP_BOOK(wxART_HELP_BOOK);
1025 static const wxString wxPyART_HELP_FOLDER(wxART_HELP_FOLDER);
1026 static const wxString wxPyART_HELP_PAGE(wxART_HELP_PAGE);
1027 static const wxString wxPyART_GO_BACK(wxART_GO_BACK);
1028 static const wxString wxPyART_GO_FORWARD(wxART_GO_FORWARD);
1029 static const wxString wxPyART_GO_UP(wxART_GO_UP);
1030 static const wxString wxPyART_GO_DOWN(wxART_GO_DOWN);
1031 static const wxString wxPyART_GO_TO_PARENT(wxART_GO_TO_PARENT);
1032 static const wxString wxPyART_GO_HOME(wxART_GO_HOME);
1033 static const wxString wxPyART_FILE_OPEN(wxART_FILE_OPEN);
1034 static const wxString wxPyART_PRINT(wxART_PRINT);
1035 static const wxString wxPyART_HELP(wxART_HELP);
1036 static const wxString wxPyART_TIP(wxART_TIP);
1037 static const wxString wxPyART_REPORT_VIEW(wxART_REPORT_VIEW);
1038 static const wxString wxPyART_LIST_VIEW(wxART_LIST_VIEW);
1039 static const wxString wxPyART_NEW_DIR(wxART_NEW_DIR);
1040 static const wxString wxPyART_FOLDER(wxART_FOLDER);
1041 static const wxString wxPyART_GO_DIR_UP(wxART_GO_DIR_UP);
1042 static const wxString wxPyART_EXECUTABLE_FILE(wxART_EXECUTABLE_FILE);
1043 static const wxString wxPyART_NORMAL_FILE(wxART_NORMAL_FILE);
1044 static const wxString wxPyART_TICK_MARK(wxART_TICK_MARK);
1045 static const wxString wxPyART_CROSS_MARK(wxART_CROSS_MARK);
1046 static const wxString wxPyART_ERROR(wxART_ERROR);
1047 static const wxString wxPyART_QUESTION(wxART_QUESTION);
1048 static const wxString wxPyART_WARNING(wxART_WARNING);
1049 static const wxString wxPyART_INFORMATION(wxART_INFORMATION);
1050 static const wxString wxPyART_MISSING_IMAGE(wxART_MISSING_IMAGE);
1051 // Python aware wxArtProvider
1052 class wxPyArtProvider : public wxArtProvider {
1053 public:
1054
1055 virtual wxBitmap CreateBitmap(const wxArtID& id,
1056 const wxArtClient& client,
1057 const wxSize& size) {
1058 wxBitmap rval = wxNullBitmap;
1059 bool blocked = wxPyBeginBlockThreads();
1060 if ((wxPyCBH_findCallback(m_myInst, "CreateBitmap"))) {
1061 PyObject* so = wxPyConstructObject((void*)&size, wxT("wxSize"), 0);
1062 PyObject* ro;
1063 wxBitmap* ptr;
1064 PyObject* s1, *s2;
1065 s1 = wx2PyString(id);
1066 s2 = wx2PyString(client);
1067 ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OOO)", s1, s2, so));
1068 Py_DECREF(so);
1069 Py_DECREF(s1);
1070 Py_DECREF(s2);
1071 if (ro) {
1072 if (wxPyConvertSwigPtr(ro, (void**)&ptr, wxT("wxBitmap")))
1073 rval = *ptr;
1074 Py_DECREF(ro);
1075 }
1076 }
1077 wxPyEndBlockThreads(blocked);
1078 return rval;
1079 }
1080
1081 PYPRIVATE;
1082 };
1083
1084 void wxPyArtProvider_Destroy(wxPyArtProvider *self){ delete self; }
1085
1086
1087
1088 static PyObject* __EnumerationHelper(bool flag, wxString& str, long index) {
1089 PyObject* ret = PyTuple_New(3);
1090 if (ret) {
1091 PyTuple_SET_ITEM(ret, 0, PyInt_FromLong(flag));
1092 PyTuple_SET_ITEM(ret, 1, wx2PyString(str));
1093 PyTuple_SET_ITEM(ret, 2, PyInt_FromLong(index));
1094 }
1095 return ret;
1096 }
1097
1098 PyObject *wxConfigBase_GetFirstGroup(wxConfigBase *self){
1099 bool cont;
1100 long index = 0;
1101 wxString value;
1102
1103 cont = self->GetFirstGroup(value, index);
1104 return __EnumerationHelper(cont, value, index);
1105 }
1106 PyObject *wxConfigBase_GetNextGroup(wxConfigBase *self,long index){
1107 bool cont;
1108 wxString value;
1109
1110 cont = self->GetNextGroup(value, index);
1111 return __EnumerationHelper(cont, value, index);
1112 }
1113 PyObject *wxConfigBase_GetFirstEntry(wxConfigBase *self){
1114 bool cont;
1115 long index = 0;
1116 wxString value;
1117
1118 cont = self->GetFirstEntry(value, index);
1119 return __EnumerationHelper(cont, value, index);
1120 }
1121 PyObject *wxConfigBase_GetNextEntry(wxConfigBase *self,long index){
1122 bool cont;
1123 wxString value;
1124
1125 cont = self->GetNextEntry(value, index);
1126 return __EnumerationHelper(cont, value, index);
1127 }
1128 long wxConfigBase_ReadInt(wxConfigBase *self,wxString const &key,long defaultVal){
1129 long rv;
1130 self->Read(key, &rv, defaultVal);
1131 return rv;
1132 }
1133
1134 SWIGSTATICINLINE(double)
1135 SWIG_AsDouble(PyObject *obj)
1136 {
1137 if (PyNumber_Check(obj))
1138 return PyFloat_AsDouble(obj);
1139 else {
1140 PyObject* errmsg = PyString_FromFormat("Expected number, got %s",
1141 obj->ob_type->tp_name);
1142 PyErr_SetObject(PyExc_TypeError, errmsg);
1143 Py_DECREF(errmsg);
1144 return 0;
1145 }
1146 }
1147
1148
1149 SWIGSTATICINLINE(int)
1150 SWIG_CheckDouble(PyObject* obj)
1151 {
1152 SWIG_AsDouble(obj);
1153 if (PyErr_Occurred()) {
1154 PyErr_Clear();
1155 return 0;
1156 } else {
1157 return 1;
1158 }
1159 }
1160
1161 double wxConfigBase_ReadFloat(wxConfigBase *self,wxString const &key,double defaultVal){
1162 double rv;
1163 self->Read(key, &rv, defaultVal);
1164 return rv;
1165 }
1166 bool wxConfigBase_ReadBool(wxConfigBase *self,wxString const &key,bool defaultVal){
1167 bool rv;
1168 self->Read(key, &rv, defaultVal);
1169 return rv;
1170 }
1171
1172 #include <wx/datetime.h>
1173
1174
1175 static const wxString wxPyDateFormatStr(wxT("%c"));
1176 static const wxString wxPyTimeSpanFormatStr(wxT("%H:%M:%S"));
1177
1178 #define LOCAL_TZ wxDateTime::Local
1179
1180
1181 #if UINT_MAX < LONG_MAX
1182 #define SWIG_FromUnsignedInt SWIG_FromLong
1183 #else
1184 #define SWIG_FromUnsignedInt SWIG_FromUnsignedLong
1185 #endif
1186
1187 wxDateTime wxDateTime___add____SWIG_0(wxDateTime *self,wxTimeSpan const &other){ return *self + other; }
1188 wxDateTime wxDateTime___add____SWIG_1(wxDateTime *self,wxDateSpan const &other){ return *self + other; }
1189 wxTimeSpan wxDateTime___sub____SWIG_0(wxDateTime *self,wxDateTime const &other){ return *self - other; }
1190 wxDateTime wxDateTime___sub____SWIG_1(wxDateTime *self,wxTimeSpan const &other){ return *self - other; }
1191 wxDateTime wxDateTime___sub____SWIG_2(wxDateTime *self,wxDateSpan const &other){ return *self - other; }
1192 bool wxDateTime___lt__(wxDateTime *self,wxDateTime const *other){
1193 if (!other || !self->IsValid() || !other->IsValid()) return self < other;
1194 return (*self < *other);
1195 }
1196 bool wxDateTime___le__(wxDateTime *self,wxDateTime const *other){
1197 if (!other || !self->IsValid() || !other->IsValid()) return self <= other;
1198 return (*self <= *other);
1199 }
1200 bool wxDateTime___gt__(wxDateTime *self,wxDateTime const *other){
1201 if (!other || !self->IsValid() || !other->IsValid()) return self > other;
1202 return (*self > *other);
1203 }
1204 bool wxDateTime___ge__(wxDateTime *self,wxDateTime const *other){
1205 if (!other || !self->IsValid() || !other->IsValid()) return self >= other;
1206 return (*self >= *other);
1207 }
1208 bool wxDateTime___eq__(wxDateTime *self,wxDateTime const *other){
1209 if (!other || !self->IsValid() || !other->IsValid()) return self == other;
1210 return (*self == *other);
1211 }
1212 bool wxDateTime___ne__(wxDateTime *self,wxDateTime const *other){
1213 if (!other || !self->IsValid() || !other->IsValid()) return self != other;
1214 return (*self != *other);
1215 }
1216 int wxDateTime_ParseRfc822Date(wxDateTime *self,wxString const &date){
1217 const wxChar* rv;
1218 const wxChar* _date = date;
1219 rv = self->ParseRfc822Date(_date);
1220 if (rv == NULL) return -1;
1221 return rv - _date;
1222 }
1223 int wxDateTime_ParseFormat(wxDateTime *self,wxString const &date,wxString const &format,wxDateTime const &dateDef){
1224 const wxChar* rv;
1225 const wxChar* _date = date;
1226 rv = self->ParseFormat(_date, format, dateDef);
1227 if (rv == NULL) return -1;
1228 return rv - _date;
1229 }
1230 int wxDateTime_ParseDateTime(wxDateTime *self,wxString const &datetime){
1231 const wxChar* rv;
1232 const wxChar* _datetime = datetime;
1233 rv = self->ParseDateTime(_datetime);
1234 if (rv == NULL) return -1;
1235 return rv - _datetime;
1236 }
1237 int wxDateTime_ParseDate(wxDateTime *self,wxString const &date){
1238 const wxChar* rv;
1239 const wxChar* _date = date;
1240 rv = self->ParseDate(_date);
1241 if (rv == NULL) return -1;
1242 return rv - _date;
1243 }
1244 int wxDateTime_ParseTime(wxDateTime *self,wxString const &time){
1245 const wxChar* rv;
1246 const wxChar* _time = time;
1247 rv = self->ParseTime(_time);
1248 if (rv == NULL) return -1;
1249 return rv - _time;
1250 }
1251 wxTimeSpan wxTimeSpan___add__(wxTimeSpan *self,wxTimeSpan const &other){ return *self + other; }
1252 wxTimeSpan wxTimeSpan___sub__(wxTimeSpan *self,wxTimeSpan const &other){ return *self - other; }
1253 wxTimeSpan wxTimeSpan___mul__(wxTimeSpan *self,int n){ return *self * n; }
1254 wxTimeSpan wxTimeSpan___rmul__(wxTimeSpan *self,int n){ return n * *self; }
1255 bool wxTimeSpan___lt__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self < *other) : False; }
1256 bool wxTimeSpan___le__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self <= *other) : False; }
1257 bool wxTimeSpan___gt__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self > *other) : True; }
1258 bool wxTimeSpan___ge__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self >= *other) : True; }
1259 bool wxTimeSpan___eq__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self == *other) : False; }
1260 bool wxTimeSpan___ne__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self != *other) : True; }
1261 wxDateSpan wxDateSpan___add__(wxDateSpan *self,wxDateSpan const &other){ return *self + other; }
1262 wxDateSpan wxDateSpan___sub__(wxDateSpan *self,wxDateSpan const &other){ return *self - other; }
1263 wxDateSpan wxDateSpan___mul__(wxDateSpan *self,int n){ return *self * n; }
1264 wxDateSpan wxDateSpan___rmul__(wxDateSpan *self,int n){ return n * *self; }
1265 bool wxDateSpan___eq__(wxDateSpan *self,wxDateSpan const *other){ return other ? (*self == *other) : False; }
1266 bool wxDateSpan___ne__(wxDateSpan *self,wxDateSpan const *other){ return other ? (*self != *other) : True; }
1267
1268 #include <wx/dataobj.h>
1269
1270 PyObject *wxDataObject_GetAllFormats(wxDataObject *self,wxDataObject::Direction dir){
1271 size_t count = self->GetFormatCount(dir);
1272 wxDataFormat* formats = new wxDataFormat[count];
1273 self->GetAllFormats(formats, dir);
1274
1275 bool blocked = wxPyBeginBlockThreads();
1276 PyObject* list = PyList_New(count);
1277 for (size_t i=0; i<count; i++) {
1278 wxDataFormat* format = new wxDataFormat(formats[i]);
1279 PyObject* obj = wxPyConstructObject((void*)format, wxT("wxDataFormat"), True);
1280 PyList_Append(list, obj);
1281 Py_DECREF(obj);
1282 }
1283 wxPyEndBlockThreads(blocked);
1284 delete [] formats;
1285 return list;
1286 }
1287 PyObject *wxDataObject_GetDataHere(wxDataObject *self,wxDataFormat const &format){
1288 PyObject* rval = NULL;
1289 size_t size = self->GetDataSize(format);
1290 bool blocked = wxPyBeginBlockThreads();
1291 if (size) {
1292 char* buf = new char[size];
1293 if (self->GetDataHere(format, buf))
1294 rval = PyString_FromStringAndSize(buf, size);
1295 delete [] buf;
1296 }
1297 if (! rval) {
1298 rval = Py_None;
1299 Py_INCREF(rval);
1300 }
1301 wxPyEndBlockThreads(blocked);
1302 return rval;
1303 }
1304 bool wxDataObject_SetData(wxDataObject *self,wxDataFormat const &format,PyObject *data){
1305 bool rval;
1306 bool blocked = wxPyBeginBlockThreads();
1307 if (PyString_Check(data)) {
1308 rval = self->SetData(format, PyString_Size(data), PyString_AsString(data));
1309 }
1310 else {
1311 // raise a TypeError if not a string
1312 PyErr_SetString(PyExc_TypeError, "String expected.");
1313 rval = False;
1314 }
1315 wxPyEndBlockThreads(blocked);
1316 return rval;
1317 }
1318 PyObject *wxDataObjectSimple_GetDataHere(wxDataObjectSimple *self){
1319 PyObject* rval = NULL;
1320 size_t size = self->GetDataSize();
1321 bool blocked = wxPyBeginBlockThreads();
1322 if (size) {
1323 char* buf = new char[size];
1324 if (self->GetDataHere(buf))
1325 rval = PyString_FromStringAndSize(buf, size);
1326 delete [] buf;
1327 }
1328 if (! rval) {
1329 rval = Py_None;
1330 Py_INCREF(rval);
1331 }
1332 wxPyEndBlockThreads(blocked);
1333 return rval;
1334 }
1335 bool wxDataObjectSimple_SetData(wxDataObjectSimple *self,PyObject *data){
1336 bool rval;
1337 bool blocked = wxPyBeginBlockThreads();
1338 if (PyString_Check(data)) {
1339 rval = self->SetData(PyString_Size(data), PyString_AsString(data));
1340 }
1341 else {
1342 // raise a TypeError if not a string
1343 PyErr_SetString(PyExc_TypeError, "String expected.");
1344 rval = False;
1345 }
1346 wxPyEndBlockThreads(blocked);
1347 return rval;
1348 }
1349 // Create a new class for wxPython to use
1350 class wxPyDataObjectSimple : public wxDataObjectSimple {
1351 public:
1352 wxPyDataObjectSimple(const wxDataFormat& format = wxFormatInvalid)
1353 : wxDataObjectSimple(format) {}
1354
1355 DEC_PYCALLBACK_SIZET__const(GetDataSize);
1356 bool GetDataHere(void *buf) const;
1357 bool SetData(size_t len, const void *buf) const;
1358 PYPRIVATE;
1359 };
1360
1361 IMP_PYCALLBACK_SIZET__const(wxPyDataObjectSimple, wxDataObjectSimple, GetDataSize);
1362
1363 bool wxPyDataObjectSimple::GetDataHere(void *buf) const {
1364 // We need to get the data for this object and write it to buf. I think
1365 // the best way to do this for wxPython is to have the Python method
1366 // return either a string or None and then act appropriately with the
1367 // C++ version.
1368
1369 bool rval = False;
1370 bool blocked = wxPyBeginBlockThreads();
1371 if (wxPyCBH_findCallback(m_myInst, "GetDataHere")) {
1372 PyObject* ro;
1373 ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()"));
1374 if (ro) {
1375 rval = (ro != Py_None && PyString_Check(ro));
1376 if (rval)
1377 memcpy(buf, PyString_AsString(ro), PyString_Size(ro));
1378 Py_DECREF(ro);
1379 }
1380 }
1381 wxPyEndBlockThreads(blocked);
1382 return rval;
1383 }
1384
1385 bool wxPyDataObjectSimple::SetData(size_t len, const void *buf) const{
1386 // For this one we simply need to make a string from buf and len
1387 // and send it to the Python method.
1388 bool rval = False;
1389 bool blocked = wxPyBeginBlockThreads();
1390 if (wxPyCBH_findCallback(m_myInst, "SetData")) {
1391 PyObject* data = PyString_FromStringAndSize((char*)buf, len);
1392 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(O)", data));
1393 Py_DECREF(data);
1394 }
1395 wxPyEndBlockThreads(blocked);
1396 return rval;
1397 }
1398
1399 // Create a new class for wxPython to use
1400 class wxPyTextDataObject : public wxTextDataObject {
1401 public:
1402 wxPyTextDataObject(const wxString& text = wxPyEmptyString)
1403 : wxTextDataObject(text) {}
1404
1405 DEC_PYCALLBACK_SIZET__const(GetTextLength);
1406 DEC_PYCALLBACK_STRING__const(GetText);
1407 DEC_PYCALLBACK__STRING(SetText);
1408 PYPRIVATE;
1409 };
1410
1411 IMP_PYCALLBACK_SIZET__const(wxPyTextDataObject, wxTextDataObject, GetTextLength);
1412 IMP_PYCALLBACK_STRING__const(wxPyTextDataObject, wxTextDataObject, GetText);
1413 IMP_PYCALLBACK__STRING(wxPyTextDataObject, wxTextDataObject, SetText);
1414
1415
1416 // Create a new class for wxPython to use
1417 class wxPyBitmapDataObject : public wxBitmapDataObject {
1418 public:
1419 wxPyBitmapDataObject(const wxBitmap& bitmap = wxNullBitmap)
1420 : wxBitmapDataObject(bitmap) {}
1421
1422 wxBitmap GetBitmap() const;
1423 void SetBitmap(const wxBitmap& bitmap);
1424 PYPRIVATE;
1425 };
1426
1427 wxBitmap wxPyBitmapDataObject::GetBitmap() const {
1428 wxBitmap* rval = &wxNullBitmap;
1429 bool blocked = wxPyBeginBlockThreads();
1430 if (wxPyCBH_findCallback(m_myInst, "GetBitmap")) {
1431 PyObject* ro;
1432 wxBitmap* ptr;
1433 ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()"));
1434 if (ro) {
1435 if (wxPyConvertSwigPtr(ro, (void **)&ptr, wxT("wxBitmap")))
1436 rval = ptr;
1437 Py_DECREF(ro);
1438 }
1439 }
1440 wxPyEndBlockThreads(blocked);
1441 return *rval;
1442 }
1443
1444 void wxPyBitmapDataObject::SetBitmap(const wxBitmap& bitmap) {
1445 bool blocked = wxPyBeginBlockThreads();
1446 if (wxPyCBH_findCallback(m_myInst, "SetBitmap")) {
1447 PyObject* bo = wxPyConstructObject((void*)&bitmap, wxT("wxBitmap"), False);
1448 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(O)", bo));
1449 Py_DECREF(bo);
1450 }
1451 wxPyEndBlockThreads(blocked);
1452 }
1453
1454 bool wxCustomDataObject_SetData(wxCustomDataObject *self,PyObject *data){
1455 bool rval;
1456 bool blocked = wxPyBeginBlockThreads();
1457 if (PyString_Check(data)) {
1458 rval = self->SetData(PyString_Size(data), PyString_AsString(data));
1459 }
1460 else {
1461 // raise a TypeError if not a string
1462 PyErr_SetString(PyExc_TypeError, "String expected.");
1463 rval = False;
1464 }
1465 wxPyEndBlockThreads(blocked);
1466 return rval;
1467 }
1468 PyObject *wxCustomDataObject_GetData(wxCustomDataObject *self){
1469 PyObject* obj;
1470 bool blocked = wxPyBeginBlockThreads();
1471 obj = PyString_FromStringAndSize((char*)self->GetData(), self->GetSize());
1472 wxPyEndBlockThreads(blocked);
1473 return obj;
1474 }
1475
1476 #include <wx/metafile.h>
1477
1478
1479 IMP_PYCALLBACK_BOOL_DR(wxPyDropSource, wxDropSource, GiveFeedback);
1480
1481
1482 IMP_PYCALLBACK__(wxPyDropTarget, wxDropTarget, OnLeave);
1483 IMP_PYCALLBACK_DR_2WXCDR(wxPyDropTarget, wxDropTarget, OnEnter);
1484 IMP_PYCALLBACK_DR_2WXCDR(wxPyDropTarget, wxDropTarget, OnDragOver);
1485 IMP_PYCALLBACK_DR_2WXCDR_pure(wxPyDropTarget, wxDropTarget, OnData);
1486 IMP_PYCALLBACK_BOOL_INTINT(wxPyDropTarget, wxDropTarget, OnDrop);
1487
1488
1489 class wxPyTextDropTarget : public wxTextDropTarget {
1490 public:
1491 wxPyTextDropTarget() {}
1492
1493 DEC_PYCALLBACK_BOOL_INTINTSTR_pure(OnDropText);
1494
1495 DEC_PYCALLBACK__(OnLeave);
1496 DEC_PYCALLBACK_DR_2WXCDR(OnEnter);
1497 DEC_PYCALLBACK_DR_2WXCDR(OnDragOver);
1498 DEC_PYCALLBACK_DR_2WXCDR(OnData);
1499 DEC_PYCALLBACK_BOOL_INTINT(OnDrop);
1500
1501 PYPRIVATE;
1502 };
1503
1504 IMP_PYCALLBACK_BOOL_INTINTSTR_pure(wxPyTextDropTarget, wxTextDropTarget, OnDropText);
1505 IMP_PYCALLBACK__(wxPyTextDropTarget, wxTextDropTarget, OnLeave);
1506 IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnEnter);
1507 IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnDragOver);
1508 IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnData);
1509 IMP_PYCALLBACK_BOOL_INTINT(wxPyTextDropTarget, wxTextDropTarget, OnDrop);
1510
1511
1512
1513 class wxPyFileDropTarget : public wxFileDropTarget {
1514 public:
1515 wxPyFileDropTarget() {}
1516
1517 virtual bool OnDropFiles(wxCoord x, wxCoord y, const wxArrayString& filenames);
1518
1519 DEC_PYCALLBACK__(OnLeave);
1520 DEC_PYCALLBACK_DR_2WXCDR(OnEnter);
1521 DEC_PYCALLBACK_DR_2WXCDR(OnDragOver);
1522 DEC_PYCALLBACK_DR_2WXCDR(OnData);
1523 DEC_PYCALLBACK_BOOL_INTINT(OnDrop);
1524
1525 PYPRIVATE;
1526 };
1527
1528 bool wxPyFileDropTarget::OnDropFiles(wxCoord x, wxCoord y,
1529 const wxArrayString& filenames) {
1530 bool rval = False;
1531 bool blocked = wxPyBeginBlockThreads();
1532 if (wxPyCBH_findCallback(m_myInst, "OnDropFiles")) {
1533 PyObject* list = wxArrayString2PyList_helper(filenames);
1534 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iiO)",x,y,list));
1535 Py_DECREF(list);
1536 }
1537 wxPyEndBlockThreads(blocked);
1538 return rval;
1539 }
1540
1541
1542
1543 IMP_PYCALLBACK__(wxPyFileDropTarget, wxFileDropTarget, OnLeave);
1544 IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnEnter);
1545 IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnDragOver);
1546 IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnData);
1547 IMP_PYCALLBACK_BOOL_INTINT(wxPyFileDropTarget, wxFileDropTarget, OnDrop);
1548
1549
1550
1551
1552 bool wxClipboardLocker___nonzero__(wxClipboardLocker *self){ return !!(*self); }
1553
1554 #include "wx/display.h"
1555
1556 bool wxVideoMode___eq__(wxVideoMode *self,wxVideoMode const *other){ return other ? (*self == *other) : False; }
1557 bool wxVideoMode___ne__(wxVideoMode *self,wxVideoMode const *other){ return other ? (*self != *other) : True; }
1558 PyObject *wxDisplay_GetModes(wxDisplay *self,wxVideoMode const &mode){
1559 PyObject* pyList = NULL;
1560 wxArrayVideoModes arr = self->GetModes(mode);
1561 bool blocked = wxPyBeginBlockThreads();
1562 pyList = PyList_New(0);
1563 for (int i=0; i < arr.GetCount(); i++) {
1564 wxVideoMode* m = new wxVideoMode(arr.Item(i));
1565 PyObject* pyObj = wxPyConstructObject(m, wxT("wxVideoMode"), true);
1566 PyList_Append(pyList, pyObj);
1567 Py_DECREF(pyObj);
1568 }
1569 wxPyEndBlockThreads(blocked);
1570 return pyList;
1571 }
1572 #ifdef __cplusplus
1573 extern "C" {
1574 #endif
1575 static PyObject *_wrap_SystemSettings_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1576 PyObject *resultobj;
1577 int arg1 ;
1578 wxColour result;
1579 PyObject * obj0 = 0 ;
1580 char *kwnames[] = {
1581 (char *) "index", NULL
1582 };
1583
1584 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_GetColour",kwnames,&obj0)) goto fail;
1585 arg1 = (wxSystemColour) SWIG_AsInt(obj0);
1586 if (PyErr_Occurred()) SWIG_fail;
1587 {
1588 PyThreadState* __tstate = wxPyBeginAllowThreads();
1589 result = wxSystemSettings::GetColour((wxSystemColour )arg1);
1590
1591 wxPyEndAllowThreads(__tstate);
1592 if (PyErr_Occurred()) SWIG_fail;
1593 }
1594 {
1595 wxColour * resultptr;
1596 resultptr = new wxColour((wxColour &) result);
1597 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
1598 }
1599 return resultobj;
1600 fail:
1601 return NULL;
1602 }
1603
1604
1605 static PyObject *_wrap_SystemSettings_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
1606 PyObject *resultobj;
1607 int arg1 ;
1608 wxFont result;
1609 PyObject * obj0 = 0 ;
1610 char *kwnames[] = {
1611 (char *) "index", NULL
1612 };
1613
1614 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_GetFont",kwnames,&obj0)) goto fail;
1615 arg1 = (wxSystemFont) SWIG_AsInt(obj0);
1616 if (PyErr_Occurred()) SWIG_fail;
1617 {
1618 PyThreadState* __tstate = wxPyBeginAllowThreads();
1619 result = wxSystemSettings::GetFont((wxSystemFont )arg1);
1620
1621 wxPyEndAllowThreads(__tstate);
1622 if (PyErr_Occurred()) SWIG_fail;
1623 }
1624 {
1625 wxFont * resultptr;
1626 resultptr = new wxFont((wxFont &) result);
1627 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1);
1628 }
1629 return resultobj;
1630 fail:
1631 return NULL;
1632 }
1633
1634
1635 static PyObject *_wrap_SystemSettings_GetMetric(PyObject *self, PyObject *args, PyObject *kwargs) {
1636 PyObject *resultobj;
1637 int arg1 ;
1638 int result;
1639 PyObject * obj0 = 0 ;
1640 char *kwnames[] = {
1641 (char *) "index", NULL
1642 };
1643
1644 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_GetMetric",kwnames,&obj0)) goto fail;
1645 arg1 = (wxSystemMetric) SWIG_AsInt(obj0);
1646 if (PyErr_Occurred()) SWIG_fail;
1647 {
1648 PyThreadState* __tstate = wxPyBeginAllowThreads();
1649 result = (int)wxSystemSettings::GetMetric((wxSystemMetric )arg1);
1650
1651 wxPyEndAllowThreads(__tstate);
1652 if (PyErr_Occurred()) SWIG_fail;
1653 }
1654 resultobj = SWIG_FromInt((int)result);
1655 return resultobj;
1656 fail:
1657 return NULL;
1658 }
1659
1660
1661 static PyObject *_wrap_SystemSettings_HasFeature(PyObject *self, PyObject *args, PyObject *kwargs) {
1662 PyObject *resultobj;
1663 int arg1 ;
1664 bool result;
1665 PyObject * obj0 = 0 ;
1666 char *kwnames[] = {
1667 (char *) "index", NULL
1668 };
1669
1670 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_HasFeature",kwnames,&obj0)) goto fail;
1671 arg1 = (wxSystemFeature) SWIG_AsInt(obj0);
1672 if (PyErr_Occurred()) SWIG_fail;
1673 {
1674 PyThreadState* __tstate = wxPyBeginAllowThreads();
1675 result = (bool)wxSystemSettings::HasFeature((wxSystemFeature )arg1);
1676
1677 wxPyEndAllowThreads(__tstate);
1678 if (PyErr_Occurred()) SWIG_fail;
1679 }
1680 {
1681 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1682 }
1683 return resultobj;
1684 fail:
1685 return NULL;
1686 }
1687
1688
1689 static PyObject *_wrap_SystemSettings_GetScreenType(PyObject *self, PyObject *args, PyObject *kwargs) {
1690 PyObject *resultobj;
1691 int result;
1692 char *kwnames[] = {
1693 NULL
1694 };
1695
1696 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":SystemSettings_GetScreenType",kwnames)) goto fail;
1697 {
1698 PyThreadState* __tstate = wxPyBeginAllowThreads();
1699 result = (int)wxSystemSettings::GetScreenType();
1700
1701 wxPyEndAllowThreads(__tstate);
1702 if (PyErr_Occurred()) SWIG_fail;
1703 }
1704 resultobj = SWIG_FromInt((int)result);
1705 return resultobj;
1706 fail:
1707 return NULL;
1708 }
1709
1710
1711 static PyObject *_wrap_SystemSettings_SetScreenType(PyObject *self, PyObject *args, PyObject *kwargs) {
1712 PyObject *resultobj;
1713 int arg1 ;
1714 PyObject * obj0 = 0 ;
1715 char *kwnames[] = {
1716 (char *) "screen", NULL
1717 };
1718
1719 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_SetScreenType",kwnames,&obj0)) goto fail;
1720 arg1 = (wxSystemScreenType) SWIG_AsInt(obj0);
1721 if (PyErr_Occurred()) SWIG_fail;
1722 {
1723 PyThreadState* __tstate = wxPyBeginAllowThreads();
1724 wxSystemSettings::SetScreenType((wxSystemScreenType )arg1);
1725
1726 wxPyEndAllowThreads(__tstate);
1727 if (PyErr_Occurred()) SWIG_fail;
1728 }
1729 Py_INCREF(Py_None); resultobj = Py_None;
1730 return resultobj;
1731 fail:
1732 return NULL;
1733 }
1734
1735
1736 static PyObject * SystemSettings_swigregister(PyObject *self, PyObject *args) {
1737 PyObject *obj;
1738 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1739 SWIG_TypeClientData(SWIGTYPE_p_wxSystemSettings, obj);
1740 Py_INCREF(obj);
1741 return Py_BuildValue((char *)"");
1742 }
1743 static PyObject *_wrap_new_SystemOptions(PyObject *self, PyObject *args, PyObject *kwargs) {
1744 PyObject *resultobj;
1745 wxSystemOptions *result;
1746 char *kwnames[] = {
1747 NULL
1748 };
1749
1750 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SystemOptions",kwnames)) goto fail;
1751 {
1752 PyThreadState* __tstate = wxPyBeginAllowThreads();
1753 result = (wxSystemOptions *)new wxSystemOptions();
1754
1755 wxPyEndAllowThreads(__tstate);
1756 if (PyErr_Occurred()) SWIG_fail;
1757 }
1758 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSystemOptions, 1);
1759 return resultobj;
1760 fail:
1761 return NULL;
1762 }
1763
1764
1765 static PyObject *_wrap_SystemOptions_SetOption(PyObject *self, PyObject *args, PyObject *kwargs) {
1766 PyObject *resultobj;
1767 wxString *arg1 = 0 ;
1768 wxString *arg2 = 0 ;
1769 bool temp1 = False ;
1770 bool temp2 = False ;
1771 PyObject * obj0 = 0 ;
1772 PyObject * obj1 = 0 ;
1773 char *kwnames[] = {
1774 (char *) "name",(char *) "value", NULL
1775 };
1776
1777 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SystemOptions_SetOption",kwnames,&obj0,&obj1)) goto fail;
1778 {
1779 arg1 = wxString_in_helper(obj0);
1780 if (arg1 == NULL) SWIG_fail;
1781 temp1 = True;
1782 }
1783 {
1784 arg2 = wxString_in_helper(obj1);
1785 if (arg2 == NULL) SWIG_fail;
1786 temp2 = True;
1787 }
1788 {
1789 PyThreadState* __tstate = wxPyBeginAllowThreads();
1790 wxSystemOptions::SetOption((wxString const &)*arg1,(wxString const &)*arg2);
1791
1792 wxPyEndAllowThreads(__tstate);
1793 if (PyErr_Occurred()) SWIG_fail;
1794 }
1795 Py_INCREF(Py_None); resultobj = Py_None;
1796 {
1797 if (temp1)
1798 delete arg1;
1799 }
1800 {
1801 if (temp2)
1802 delete arg2;
1803 }
1804 return resultobj;
1805 fail:
1806 {
1807 if (temp1)
1808 delete arg1;
1809 }
1810 {
1811 if (temp2)
1812 delete arg2;
1813 }
1814 return NULL;
1815 }
1816
1817
1818 static PyObject *_wrap_SystemOptions_SetOptionInt(PyObject *self, PyObject *args, PyObject *kwargs) {
1819 PyObject *resultobj;
1820 wxString *arg1 = 0 ;
1821 int arg2 ;
1822 bool temp1 = False ;
1823 PyObject * obj0 = 0 ;
1824 PyObject * obj1 = 0 ;
1825 char *kwnames[] = {
1826 (char *) "name",(char *) "value", NULL
1827 };
1828
1829 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SystemOptions_SetOptionInt",kwnames,&obj0,&obj1)) goto fail;
1830 {
1831 arg1 = wxString_in_helper(obj0);
1832 if (arg1 == NULL) SWIG_fail;
1833 temp1 = True;
1834 }
1835 arg2 = (int) SWIG_AsInt(obj1);
1836 if (PyErr_Occurred()) SWIG_fail;
1837 {
1838 PyThreadState* __tstate = wxPyBeginAllowThreads();
1839 wxSystemOptions::SetOption((wxString const &)*arg1,arg2);
1840
1841 wxPyEndAllowThreads(__tstate);
1842 if (PyErr_Occurred()) SWIG_fail;
1843 }
1844 Py_INCREF(Py_None); resultobj = Py_None;
1845 {
1846 if (temp1)
1847 delete arg1;
1848 }
1849 return resultobj;
1850 fail:
1851 {
1852 if (temp1)
1853 delete arg1;
1854 }
1855 return NULL;
1856 }
1857
1858
1859 static PyObject *_wrap_SystemOptions_GetOption(PyObject *self, PyObject *args, PyObject *kwargs) {
1860 PyObject *resultobj;
1861 wxString *arg1 = 0 ;
1862 wxString result;
1863 bool temp1 = False ;
1864 PyObject * obj0 = 0 ;
1865 char *kwnames[] = {
1866 (char *) "name", NULL
1867 };
1868
1869 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_GetOption",kwnames,&obj0)) goto fail;
1870 {
1871 arg1 = wxString_in_helper(obj0);
1872 if (arg1 == NULL) SWIG_fail;
1873 temp1 = True;
1874 }
1875 {
1876 PyThreadState* __tstate = wxPyBeginAllowThreads();
1877 result = wxSystemOptions::GetOption((wxString const &)*arg1);
1878
1879 wxPyEndAllowThreads(__tstate);
1880 if (PyErr_Occurred()) SWIG_fail;
1881 }
1882 {
1883 #if wxUSE_UNICODE
1884 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
1885 #else
1886 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
1887 #endif
1888 }
1889 {
1890 if (temp1)
1891 delete arg1;
1892 }
1893 return resultobj;
1894 fail:
1895 {
1896 if (temp1)
1897 delete arg1;
1898 }
1899 return NULL;
1900 }
1901
1902
1903 static PyObject *_wrap_SystemOptions_GetOptionInt(PyObject *self, PyObject *args, PyObject *kwargs) {
1904 PyObject *resultobj;
1905 wxString *arg1 = 0 ;
1906 int result;
1907 bool temp1 = False ;
1908 PyObject * obj0 = 0 ;
1909 char *kwnames[] = {
1910 (char *) "name", NULL
1911 };
1912
1913 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_GetOptionInt",kwnames,&obj0)) goto fail;
1914 {
1915 arg1 = wxString_in_helper(obj0);
1916 if (arg1 == NULL) SWIG_fail;
1917 temp1 = True;
1918 }
1919 {
1920 PyThreadState* __tstate = wxPyBeginAllowThreads();
1921 result = (int)wxSystemOptions::GetOptionInt((wxString const &)*arg1);
1922
1923 wxPyEndAllowThreads(__tstate);
1924 if (PyErr_Occurred()) SWIG_fail;
1925 }
1926 resultobj = SWIG_FromInt((int)result);
1927 {
1928 if (temp1)
1929 delete arg1;
1930 }
1931 return resultobj;
1932 fail:
1933 {
1934 if (temp1)
1935 delete arg1;
1936 }
1937 return NULL;
1938 }
1939
1940
1941 static PyObject *_wrap_SystemOptions_HasOption(PyObject *self, PyObject *args, PyObject *kwargs) {
1942 PyObject *resultobj;
1943 wxString *arg1 = 0 ;
1944 bool result;
1945 bool temp1 = False ;
1946 PyObject * obj0 = 0 ;
1947 char *kwnames[] = {
1948 (char *) "name", NULL
1949 };
1950
1951 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_HasOption",kwnames,&obj0)) goto fail;
1952 {
1953 arg1 = wxString_in_helper(obj0);
1954 if (arg1 == NULL) SWIG_fail;
1955 temp1 = True;
1956 }
1957 {
1958 PyThreadState* __tstate = wxPyBeginAllowThreads();
1959 result = (bool)wxSystemOptions::HasOption((wxString const &)*arg1);
1960
1961 wxPyEndAllowThreads(__tstate);
1962 if (PyErr_Occurred()) SWIG_fail;
1963 }
1964 {
1965 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1966 }
1967 {
1968 if (temp1)
1969 delete arg1;
1970 }
1971 return resultobj;
1972 fail:
1973 {
1974 if (temp1)
1975 delete arg1;
1976 }
1977 return NULL;
1978 }
1979
1980
1981 static PyObject * SystemOptions_swigregister(PyObject *self, PyObject *args) {
1982 PyObject *obj;
1983 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1984 SWIG_TypeClientData(SWIGTYPE_p_wxSystemOptions, obj);
1985 Py_INCREF(obj);
1986 return Py_BuildValue((char *)"");
1987 }
1988 static int _wrap_FileSelectorPromptStr_set(PyObject *_val) {
1989 PyErr_SetString(PyExc_TypeError,"Variable FileSelectorPromptStr is read-only.");
1990 return 1;
1991 }
1992
1993
1994 static PyObject *_wrap_FileSelectorPromptStr_get() {
1995 PyObject *pyobj;
1996
1997 {
1998 #if wxUSE_UNICODE
1999 pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len());
2000 #else
2001 pyobj = PyString_FromStringAndSize((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len());
2002 #endif
2003 }
2004 return pyobj;
2005 }
2006
2007
2008 static int _wrap_FileSelectorDefaultWildcardStr_set(PyObject *_val) {
2009 PyErr_SetString(PyExc_TypeError,"Variable FileSelectorDefaultWildcardStr is read-only.");
2010 return 1;
2011 }
2012
2013
2014 static PyObject *_wrap_FileSelectorDefaultWildcardStr_get() {
2015 PyObject *pyobj;
2016
2017 {
2018 #if wxUSE_UNICODE
2019 pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len());
2020 #else
2021 pyobj = PyString_FromStringAndSize((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len());
2022 #endif
2023 }
2024 return pyobj;
2025 }
2026
2027
2028 static int _wrap_DirSelectorPromptStr_set(PyObject *_val) {
2029 PyErr_SetString(PyExc_TypeError,"Variable DirSelectorPromptStr is read-only.");
2030 return 1;
2031 }
2032
2033
2034 static PyObject *_wrap_DirSelectorPromptStr_get() {
2035 PyObject *pyobj;
2036
2037 {
2038 #if wxUSE_UNICODE
2039 pyobj = PyUnicode_FromWideChar((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len());
2040 #else
2041 pyobj = PyString_FromStringAndSize((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len());
2042 #endif
2043 }
2044 return pyobj;
2045 }
2046
2047
2048 static PyObject *_wrap_NewId(PyObject *self, PyObject *args, PyObject *kwargs) {
2049 PyObject *resultobj;
2050 long result;
2051 char *kwnames[] = {
2052 NULL
2053 };
2054
2055 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":NewId",kwnames)) goto fail;
2056 {
2057 PyThreadState* __tstate = wxPyBeginAllowThreads();
2058 result = (long)wxNewId();
2059
2060 wxPyEndAllowThreads(__tstate);
2061 if (PyErr_Occurred()) SWIG_fail;
2062 }
2063 resultobj = SWIG_FromLong((long)result);
2064 return resultobj;
2065 fail:
2066 return NULL;
2067 }
2068
2069
2070 static PyObject *_wrap_RegisterId(PyObject *self, PyObject *args, PyObject *kwargs) {
2071 PyObject *resultobj;
2072 long arg1 ;
2073 PyObject * obj0 = 0 ;
2074 char *kwnames[] = {
2075 (char *) "id", NULL
2076 };
2077
2078 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegisterId",kwnames,&obj0)) goto fail;
2079 arg1 = (long) SWIG_AsLong(obj0);
2080 if (PyErr_Occurred()) SWIG_fail;
2081 {
2082 PyThreadState* __tstate = wxPyBeginAllowThreads();
2083 wxRegisterId(arg1);
2084
2085 wxPyEndAllowThreads(__tstate);
2086 if (PyErr_Occurred()) SWIG_fail;
2087 }
2088 Py_INCREF(Py_None); resultobj = Py_None;
2089 return resultobj;
2090 fail:
2091 return NULL;
2092 }
2093
2094
2095 static PyObject *_wrap_GetCurrentId(PyObject *self, PyObject *args, PyObject *kwargs) {
2096 PyObject *resultobj;
2097 long result;
2098 char *kwnames[] = {
2099 NULL
2100 };
2101
2102 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetCurrentId",kwnames)) goto fail;
2103 {
2104 PyThreadState* __tstate = wxPyBeginAllowThreads();
2105 result = (long)wxGetCurrentId();
2106
2107 wxPyEndAllowThreads(__tstate);
2108 if (PyErr_Occurred()) SWIG_fail;
2109 }
2110 resultobj = SWIG_FromLong((long)result);
2111 return resultobj;
2112 fail:
2113 return NULL;
2114 }
2115
2116
2117 static PyObject *_wrap_Bell(PyObject *self, PyObject *args, PyObject *kwargs) {
2118 PyObject *resultobj;
2119 char *kwnames[] = {
2120 NULL
2121 };
2122
2123 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Bell",kwnames)) goto fail;
2124 {
2125 PyThreadState* __tstate = wxPyBeginAllowThreads();
2126 wxBell();
2127
2128 wxPyEndAllowThreads(__tstate);
2129 if (PyErr_Occurred()) SWIG_fail;
2130 }
2131 Py_INCREF(Py_None); resultobj = Py_None;
2132 return resultobj;
2133 fail:
2134 return NULL;
2135 }
2136
2137
2138 static PyObject *_wrap_EndBusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
2139 PyObject *resultobj;
2140 char *kwnames[] = {
2141 NULL
2142 };
2143
2144 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":EndBusyCursor",kwnames)) goto fail;
2145 {
2146 PyThreadState* __tstate = wxPyBeginAllowThreads();
2147 wxEndBusyCursor();
2148
2149 wxPyEndAllowThreads(__tstate);
2150 if (PyErr_Occurred()) SWIG_fail;
2151 }
2152 Py_INCREF(Py_None); resultobj = Py_None;
2153 return resultobj;
2154 fail:
2155 return NULL;
2156 }
2157
2158
2159 static PyObject *_wrap_GetElapsedTime(PyObject *self, PyObject *args, PyObject *kwargs) {
2160 PyObject *resultobj;
2161 bool arg1 = (bool) True ;
2162 long result;
2163 PyObject * obj0 = 0 ;
2164 char *kwnames[] = {
2165 (char *) "resetTimer", NULL
2166 };
2167
2168 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:GetElapsedTime",kwnames,&obj0)) goto fail;
2169 if (obj0) {
2170 arg1 = (bool) SWIG_AsBool(obj0);
2171 if (PyErr_Occurred()) SWIG_fail;
2172 }
2173 {
2174 PyThreadState* __tstate = wxPyBeginAllowThreads();
2175 result = (long)wxGetElapsedTime(arg1);
2176
2177 wxPyEndAllowThreads(__tstate);
2178 if (PyErr_Occurred()) SWIG_fail;
2179 }
2180 resultobj = SWIG_FromLong((long)result);
2181 return resultobj;
2182 fail:
2183 return NULL;
2184 }
2185
2186
2187 static PyObject *_wrap_GetMousePosition(PyObject *self, PyObject *args, PyObject *kwargs) {
2188 PyObject *resultobj;
2189 int *arg1 = (int *) 0 ;
2190 int *arg2 = (int *) 0 ;
2191 int temp1 ;
2192 int temp2 ;
2193 char *kwnames[] = {
2194 NULL
2195 };
2196
2197 arg1 = &temp1;
2198 arg2 = &temp2;
2199 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetMousePosition",kwnames)) goto fail;
2200 {
2201 PyThreadState* __tstate = wxPyBeginAllowThreads();
2202 wxGetMousePosition(arg1,arg2);
2203
2204 wxPyEndAllowThreads(__tstate);
2205 if (PyErr_Occurred()) SWIG_fail;
2206 }
2207 Py_INCREF(Py_None); resultobj = Py_None;
2208 {
2209 PyObject *o = PyInt_FromLong((long) (*arg1));
2210 resultobj = t_output_helper(resultobj,o);
2211 }
2212 {
2213 PyObject *o = PyInt_FromLong((long) (*arg2));
2214 resultobj = t_output_helper(resultobj,o);
2215 }
2216 return resultobj;
2217 fail:
2218 return NULL;
2219 }
2220
2221
2222 static PyObject *_wrap_IsBusy(PyObject *self, PyObject *args, PyObject *kwargs) {
2223 PyObject *resultobj;
2224 bool result;
2225 char *kwnames[] = {
2226 NULL
2227 };
2228
2229 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":IsBusy",kwnames)) goto fail;
2230 {
2231 PyThreadState* __tstate = wxPyBeginAllowThreads();
2232 result = (bool)wxIsBusy();
2233
2234 wxPyEndAllowThreads(__tstate);
2235 if (PyErr_Occurred()) SWIG_fail;
2236 }
2237 {
2238 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2239 }
2240 return resultobj;
2241 fail:
2242 return NULL;
2243 }
2244
2245
2246 static PyObject *_wrap_Now(PyObject *self, PyObject *args, PyObject *kwargs) {
2247 PyObject *resultobj;
2248 wxString result;
2249 char *kwnames[] = {
2250 NULL
2251 };
2252
2253 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Now",kwnames)) goto fail;
2254 {
2255 PyThreadState* __tstate = wxPyBeginAllowThreads();
2256 result = wxNow();
2257
2258 wxPyEndAllowThreads(__tstate);
2259 if (PyErr_Occurred()) SWIG_fail;
2260 }
2261 {
2262 #if wxUSE_UNICODE
2263 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2264 #else
2265 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2266 #endif
2267 }
2268 return resultobj;
2269 fail:
2270 return NULL;
2271 }
2272
2273
2274 static PyObject *_wrap_Shell(PyObject *self, PyObject *args, PyObject *kwargs) {
2275 PyObject *resultobj;
2276 wxString const &arg1_defvalue = wxPyEmptyString ;
2277 wxString *arg1 = (wxString *) &arg1_defvalue ;
2278 bool result;
2279 bool temp1 = False ;
2280 PyObject * obj0 = 0 ;
2281 char *kwnames[] = {
2282 (char *) "command", NULL
2283 };
2284
2285 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Shell",kwnames,&obj0)) goto fail;
2286 if (obj0) {
2287 {
2288 arg1 = wxString_in_helper(obj0);
2289 if (arg1 == NULL) SWIG_fail;
2290 temp1 = True;
2291 }
2292 }
2293 {
2294 PyThreadState* __tstate = wxPyBeginAllowThreads();
2295 result = (bool)wxShell((wxString const &)*arg1);
2296
2297 wxPyEndAllowThreads(__tstate);
2298 if (PyErr_Occurred()) SWIG_fail;
2299 }
2300 {
2301 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2302 }
2303 {
2304 if (temp1)
2305 delete arg1;
2306 }
2307 return resultobj;
2308 fail:
2309 {
2310 if (temp1)
2311 delete arg1;
2312 }
2313 return NULL;
2314 }
2315
2316
2317 static PyObject *_wrap_StartTimer(PyObject *self, PyObject *args, PyObject *kwargs) {
2318 PyObject *resultobj;
2319 char *kwnames[] = {
2320 NULL
2321 };
2322
2323 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":StartTimer",kwnames)) goto fail;
2324 {
2325 PyThreadState* __tstate = wxPyBeginAllowThreads();
2326 wxStartTimer();
2327
2328 wxPyEndAllowThreads(__tstate);
2329 if (PyErr_Occurred()) SWIG_fail;
2330 }
2331 Py_INCREF(Py_None); resultobj = Py_None;
2332 return resultobj;
2333 fail:
2334 return NULL;
2335 }
2336
2337
2338 static PyObject *_wrap_GetOsVersion(PyObject *self, PyObject *args, PyObject *kwargs) {
2339 PyObject *resultobj;
2340 int *arg1 = (int *) 0 ;
2341 int *arg2 = (int *) 0 ;
2342 int result;
2343 int temp1 ;
2344 int temp2 ;
2345 char *kwnames[] = {
2346 NULL
2347 };
2348
2349 arg1 = &temp1;
2350 arg2 = &temp2;
2351 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetOsVersion",kwnames)) goto fail;
2352 {
2353 PyThreadState* __tstate = wxPyBeginAllowThreads();
2354 result = (int)wxGetOsVersion(arg1,arg2);
2355
2356 wxPyEndAllowThreads(__tstate);
2357 if (PyErr_Occurred()) SWIG_fail;
2358 }
2359 resultobj = SWIG_FromInt((int)result);
2360 {
2361 PyObject *o = PyInt_FromLong((long) (*arg1));
2362 resultobj = t_output_helper(resultobj,o);
2363 }
2364 {
2365 PyObject *o = PyInt_FromLong((long) (*arg2));
2366 resultobj = t_output_helper(resultobj,o);
2367 }
2368 return resultobj;
2369 fail:
2370 return NULL;
2371 }
2372
2373
2374 static PyObject *_wrap_GetOsDescription(PyObject *self, PyObject *args, PyObject *kwargs) {
2375 PyObject *resultobj;
2376 wxString result;
2377 char *kwnames[] = {
2378 NULL
2379 };
2380
2381 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetOsDescription",kwnames)) goto fail;
2382 {
2383 PyThreadState* __tstate = wxPyBeginAllowThreads();
2384 result = wxGetOsDescription();
2385
2386 wxPyEndAllowThreads(__tstate);
2387 if (PyErr_Occurred()) SWIG_fail;
2388 }
2389 {
2390 #if wxUSE_UNICODE
2391 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2392 #else
2393 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2394 #endif
2395 }
2396 return resultobj;
2397 fail:
2398 return NULL;
2399 }
2400
2401
2402 static PyObject *_wrap_GetFreeMemory(PyObject *self, PyObject *args, PyObject *kwargs) {
2403 PyObject *resultobj;
2404 long result;
2405 char *kwnames[] = {
2406 NULL
2407 };
2408
2409 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetFreeMemory",kwnames)) goto fail;
2410 {
2411 PyThreadState* __tstate = wxPyBeginAllowThreads();
2412 result = (long)wxGetFreeMemory();
2413
2414 wxPyEndAllowThreads(__tstate);
2415 if (PyErr_Occurred()) SWIG_fail;
2416 }
2417 resultobj = SWIG_FromLong((long)result);
2418 return resultobj;
2419 fail:
2420 return NULL;
2421 }
2422
2423
2424 static PyObject *_wrap_Shutdown(PyObject *self, PyObject *args, PyObject *kwargs) {
2425 PyObject *resultobj;
2426 int arg1 ;
2427 bool result;
2428 PyObject * obj0 = 0 ;
2429 char *kwnames[] = {
2430 (char *) "wFlags", NULL
2431 };
2432
2433 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Shutdown",kwnames,&obj0)) goto fail;
2434 arg1 = (wxShutdownFlags) SWIG_AsInt(obj0);
2435 if (PyErr_Occurred()) SWIG_fail;
2436 {
2437 PyThreadState* __tstate = wxPyBeginAllowThreads();
2438 result = (bool)wxShutdown((wxShutdownFlags )arg1);
2439
2440 wxPyEndAllowThreads(__tstate);
2441 if (PyErr_Occurred()) SWIG_fail;
2442 }
2443 {
2444 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2445 }
2446 return resultobj;
2447 fail:
2448 return NULL;
2449 }
2450
2451
2452 static PyObject *_wrap_Sleep(PyObject *self, PyObject *args, PyObject *kwargs) {
2453 PyObject *resultobj;
2454 int arg1 ;
2455 PyObject * obj0 = 0 ;
2456 char *kwnames[] = {
2457 (char *) "secs", NULL
2458 };
2459
2460 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sleep",kwnames,&obj0)) goto fail;
2461 arg1 = (int) SWIG_AsInt(obj0);
2462 if (PyErr_Occurred()) SWIG_fail;
2463 {
2464 PyThreadState* __tstate = wxPyBeginAllowThreads();
2465 wxSleep(arg1);
2466
2467 wxPyEndAllowThreads(__tstate);
2468 if (PyErr_Occurred()) SWIG_fail;
2469 }
2470 Py_INCREF(Py_None); resultobj = Py_None;
2471 return resultobj;
2472 fail:
2473 return NULL;
2474 }
2475
2476
2477 static PyObject *_wrap_Usleep(PyObject *self, PyObject *args, PyObject *kwargs) {
2478 PyObject *resultobj;
2479 unsigned long arg1 ;
2480 PyObject * obj0 = 0 ;
2481 char *kwnames[] = {
2482 (char *) "milliseconds", NULL
2483 };
2484
2485 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Usleep",kwnames,&obj0)) goto fail;
2486 arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0);
2487 if (PyErr_Occurred()) SWIG_fail;
2488 {
2489 PyThreadState* __tstate = wxPyBeginAllowThreads();
2490 wxUsleep(arg1);
2491
2492 wxPyEndAllowThreads(__tstate);
2493 if (PyErr_Occurred()) SWIG_fail;
2494 }
2495 Py_INCREF(Py_None); resultobj = Py_None;
2496 return resultobj;
2497 fail:
2498 return NULL;
2499 }
2500
2501
2502 static PyObject *_wrap_EnableTopLevelWindows(PyObject *self, PyObject *args, PyObject *kwargs) {
2503 PyObject *resultobj;
2504 bool arg1 ;
2505 PyObject * obj0 = 0 ;
2506 char *kwnames[] = {
2507 (char *) "enable", NULL
2508 };
2509
2510 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EnableTopLevelWindows",kwnames,&obj0)) goto fail;
2511 arg1 = (bool) SWIG_AsBool(obj0);
2512 if (PyErr_Occurred()) SWIG_fail;
2513 {
2514 PyThreadState* __tstate = wxPyBeginAllowThreads();
2515 wxEnableTopLevelWindows(arg1);
2516
2517 wxPyEndAllowThreads(__tstate);
2518 if (PyErr_Occurred()) SWIG_fail;
2519 }
2520 Py_INCREF(Py_None); resultobj = Py_None;
2521 return resultobj;
2522 fail:
2523 return NULL;
2524 }
2525
2526
2527 static PyObject *_wrap_StripMenuCodes(PyObject *self, PyObject *args, PyObject *kwargs) {
2528 PyObject *resultobj;
2529 wxString *arg1 = 0 ;
2530 wxString result;
2531 bool temp1 = False ;
2532 PyObject * obj0 = 0 ;
2533 char *kwnames[] = {
2534 (char *) "in", NULL
2535 };
2536
2537 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StripMenuCodes",kwnames,&obj0)) goto fail;
2538 {
2539 arg1 = wxString_in_helper(obj0);
2540 if (arg1 == NULL) SWIG_fail;
2541 temp1 = True;
2542 }
2543 {
2544 PyThreadState* __tstate = wxPyBeginAllowThreads();
2545 result = wxStripMenuCodes((wxString const &)*arg1);
2546
2547 wxPyEndAllowThreads(__tstate);
2548 if (PyErr_Occurred()) SWIG_fail;
2549 }
2550 {
2551 #if wxUSE_UNICODE
2552 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2553 #else
2554 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2555 #endif
2556 }
2557 {
2558 if (temp1)
2559 delete arg1;
2560 }
2561 return resultobj;
2562 fail:
2563 {
2564 if (temp1)
2565 delete arg1;
2566 }
2567 return NULL;
2568 }
2569
2570
2571 static PyObject *_wrap_GetEmailAddress(PyObject *self, PyObject *args, PyObject *kwargs) {
2572 PyObject *resultobj;
2573 wxString result;
2574 char *kwnames[] = {
2575 NULL
2576 };
2577
2578 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetEmailAddress",kwnames)) goto fail;
2579 {
2580 PyThreadState* __tstate = wxPyBeginAllowThreads();
2581 result = wxGetEmailAddress();
2582
2583 wxPyEndAllowThreads(__tstate);
2584 if (PyErr_Occurred()) SWIG_fail;
2585 }
2586 {
2587 #if wxUSE_UNICODE
2588 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2589 #else
2590 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2591 #endif
2592 }
2593 return resultobj;
2594 fail:
2595 return NULL;
2596 }
2597
2598
2599 static PyObject *_wrap_GetHostName(PyObject *self, PyObject *args, PyObject *kwargs) {
2600 PyObject *resultobj;
2601 wxString result;
2602 char *kwnames[] = {
2603 NULL
2604 };
2605
2606 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetHostName",kwnames)) goto fail;
2607 {
2608 PyThreadState* __tstate = wxPyBeginAllowThreads();
2609 result = wxGetHostName();
2610
2611 wxPyEndAllowThreads(__tstate);
2612 if (PyErr_Occurred()) SWIG_fail;
2613 }
2614 {
2615 #if wxUSE_UNICODE
2616 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2617 #else
2618 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2619 #endif
2620 }
2621 return resultobj;
2622 fail:
2623 return NULL;
2624 }
2625
2626
2627 static PyObject *_wrap_GetFullHostName(PyObject *self, PyObject *args, PyObject *kwargs) {
2628 PyObject *resultobj;
2629 wxString result;
2630 char *kwnames[] = {
2631 NULL
2632 };
2633
2634 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetFullHostName",kwnames)) goto fail;
2635 {
2636 PyThreadState* __tstate = wxPyBeginAllowThreads();
2637 result = wxGetFullHostName();
2638
2639 wxPyEndAllowThreads(__tstate);
2640 if (PyErr_Occurred()) SWIG_fail;
2641 }
2642 {
2643 #if wxUSE_UNICODE
2644 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2645 #else
2646 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2647 #endif
2648 }
2649 return resultobj;
2650 fail:
2651 return NULL;
2652 }
2653
2654
2655 static PyObject *_wrap_GetUserId(PyObject *self, PyObject *args, PyObject *kwargs) {
2656 PyObject *resultobj;
2657 wxString result;
2658 char *kwnames[] = {
2659 NULL
2660 };
2661
2662 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUserId",kwnames)) goto fail;
2663 {
2664 PyThreadState* __tstate = wxPyBeginAllowThreads();
2665 result = wxGetUserId();
2666
2667 wxPyEndAllowThreads(__tstate);
2668 if (PyErr_Occurred()) SWIG_fail;
2669 }
2670 {
2671 #if wxUSE_UNICODE
2672 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2673 #else
2674 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2675 #endif
2676 }
2677 return resultobj;
2678 fail:
2679 return NULL;
2680 }
2681
2682
2683 static PyObject *_wrap_GetUserName(PyObject *self, PyObject *args, PyObject *kwargs) {
2684 PyObject *resultobj;
2685 wxString result;
2686 char *kwnames[] = {
2687 NULL
2688 };
2689
2690 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUserName",kwnames)) goto fail;
2691 {
2692 PyThreadState* __tstate = wxPyBeginAllowThreads();
2693 result = wxGetUserName();
2694
2695 wxPyEndAllowThreads(__tstate);
2696 if (PyErr_Occurred()) SWIG_fail;
2697 }
2698 {
2699 #if wxUSE_UNICODE
2700 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2701 #else
2702 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2703 #endif
2704 }
2705 return resultobj;
2706 fail:
2707 return NULL;
2708 }
2709
2710
2711 static PyObject *_wrap_GetHomeDir(PyObject *self, PyObject *args, PyObject *kwargs) {
2712 PyObject *resultobj;
2713 wxString result;
2714 char *kwnames[] = {
2715 NULL
2716 };
2717
2718 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetHomeDir",kwnames)) goto fail;
2719 {
2720 PyThreadState* __tstate = wxPyBeginAllowThreads();
2721 result = wxGetHomeDir();
2722
2723 wxPyEndAllowThreads(__tstate);
2724 if (PyErr_Occurred()) SWIG_fail;
2725 }
2726 {
2727 #if wxUSE_UNICODE
2728 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2729 #else
2730 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2731 #endif
2732 }
2733 return resultobj;
2734 fail:
2735 return NULL;
2736 }
2737
2738
2739 static PyObject *_wrap_GetUserHome(PyObject *self, PyObject *args, PyObject *kwargs) {
2740 PyObject *resultobj;
2741 wxString const &arg1_defvalue = wxPyEmptyString ;
2742 wxString *arg1 = (wxString *) &arg1_defvalue ;
2743 wxString result;
2744 bool temp1 = False ;
2745 PyObject * obj0 = 0 ;
2746 char *kwnames[] = {
2747 (char *) "user", NULL
2748 };
2749
2750 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:GetUserHome",kwnames,&obj0)) goto fail;
2751 if (obj0) {
2752 {
2753 arg1 = wxString_in_helper(obj0);
2754 if (arg1 == NULL) SWIG_fail;
2755 temp1 = True;
2756 }
2757 }
2758 {
2759 PyThreadState* __tstate = wxPyBeginAllowThreads();
2760 result = wxGetUserHome((wxString const &)*arg1);
2761
2762 wxPyEndAllowThreads(__tstate);
2763 if (PyErr_Occurred()) SWIG_fail;
2764 }
2765 {
2766 #if wxUSE_UNICODE
2767 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2768 #else
2769 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2770 #endif
2771 }
2772 {
2773 if (temp1)
2774 delete arg1;
2775 }
2776 return resultobj;
2777 fail:
2778 {
2779 if (temp1)
2780 delete arg1;
2781 }
2782 return NULL;
2783 }
2784
2785
2786 static PyObject *_wrap_GetProcessId(PyObject *self, PyObject *args, PyObject *kwargs) {
2787 PyObject *resultobj;
2788 unsigned long result;
2789 char *kwnames[] = {
2790 NULL
2791 };
2792
2793 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetProcessId",kwnames)) goto fail;
2794 {
2795 PyThreadState* __tstate = wxPyBeginAllowThreads();
2796 result = (unsigned long)wxGetProcessId();
2797
2798 wxPyEndAllowThreads(__tstate);
2799 if (PyErr_Occurred()) SWIG_fail;
2800 }
2801 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
2802 return resultobj;
2803 fail:
2804 return NULL;
2805 }
2806
2807
2808 static PyObject *_wrap_Trap(PyObject *self, PyObject *args, PyObject *kwargs) {
2809 PyObject *resultobj;
2810 char *kwnames[] = {
2811 NULL
2812 };
2813
2814 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Trap",kwnames)) goto fail;
2815 {
2816 PyThreadState* __tstate = wxPyBeginAllowThreads();
2817 wxTrap();
2818
2819 wxPyEndAllowThreads(__tstate);
2820 if (PyErr_Occurred()) SWIG_fail;
2821 }
2822 Py_INCREF(Py_None); resultobj = Py_None;
2823 return resultobj;
2824 fail:
2825 return NULL;
2826 }
2827
2828
2829 static PyObject *_wrap_FileSelector(PyObject *self, PyObject *args, PyObject *kwargs) {
2830 PyObject *resultobj;
2831 wxString const &arg1_defvalue = wxPyFileSelectorPromptStr ;
2832 wxString *arg1 = (wxString *) &arg1_defvalue ;
2833 wxString const &arg2_defvalue = wxPyEmptyString ;
2834 wxString *arg2 = (wxString *) &arg2_defvalue ;
2835 wxString const &arg3_defvalue = wxPyEmptyString ;
2836 wxString *arg3 = (wxString *) &arg3_defvalue ;
2837 wxString const &arg4_defvalue = wxPyEmptyString ;
2838 wxString *arg4 = (wxString *) &arg4_defvalue ;
2839 wxString const &arg5_defvalue = wxPyFileSelectorDefaultWildcardStr ;
2840 wxString *arg5 = (wxString *) &arg5_defvalue ;
2841 int arg6 = (int) 0 ;
2842 wxWindow *arg7 = (wxWindow *) NULL ;
2843 int arg8 = (int) -1 ;
2844 int arg9 = (int) -1 ;
2845 wxString result;
2846 bool temp1 = False ;
2847 bool temp2 = False ;
2848 bool temp3 = False ;
2849 bool temp4 = False ;
2850 bool temp5 = False ;
2851 PyObject * obj0 = 0 ;
2852 PyObject * obj1 = 0 ;
2853 PyObject * obj2 = 0 ;
2854 PyObject * obj3 = 0 ;
2855 PyObject * obj4 = 0 ;
2856 PyObject * obj5 = 0 ;
2857 PyObject * obj6 = 0 ;
2858 PyObject * obj7 = 0 ;
2859 PyObject * obj8 = 0 ;
2860 char *kwnames[] = {
2861 (char *) "message",(char *) "default_path",(char *) "default_filename",(char *) "default_extension",(char *) "wildcard",(char *) "flags",(char *) "parent",(char *) "x",(char *) "y", NULL
2862 };
2863
2864 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOOOOOO:FileSelector",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
2865 if (obj0) {
2866 {
2867 arg1 = wxString_in_helper(obj0);
2868 if (arg1 == NULL) SWIG_fail;
2869 temp1 = True;
2870 }
2871 }
2872 if (obj1) {
2873 {
2874 arg2 = wxString_in_helper(obj1);
2875 if (arg2 == NULL) SWIG_fail;
2876 temp2 = True;
2877 }
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 {
2888 arg4 = wxString_in_helper(obj3);
2889 if (arg4 == NULL) SWIG_fail;
2890 temp4 = True;
2891 }
2892 }
2893 if (obj4) {
2894 {
2895 arg5 = wxString_in_helper(obj4);
2896 if (arg5 == NULL) SWIG_fail;
2897 temp5 = True;
2898 }
2899 }
2900 if (obj5) {
2901 arg6 = (int) SWIG_AsInt(obj5);
2902 if (PyErr_Occurred()) SWIG_fail;
2903 }
2904 if (obj6) {
2905 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxWindow,
2906 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2907 }
2908 if (obj7) {
2909 arg8 = (int) SWIG_AsInt(obj7);
2910 if (PyErr_Occurred()) SWIG_fail;
2911 }
2912 if (obj8) {
2913 arg9 = (int) SWIG_AsInt(obj8);
2914 if (PyErr_Occurred()) SWIG_fail;
2915 }
2916 {
2917 PyThreadState* __tstate = wxPyBeginAllowThreads();
2918 result = wxFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxString const &)*arg5,arg6,arg7,arg8,arg9);
2919
2920 wxPyEndAllowThreads(__tstate);
2921 if (PyErr_Occurred()) SWIG_fail;
2922 }
2923 {
2924 #if wxUSE_UNICODE
2925 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2926 #else
2927 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2928 #endif
2929 }
2930 {
2931 if (temp1)
2932 delete arg1;
2933 }
2934 {
2935 if (temp2)
2936 delete arg2;
2937 }
2938 {
2939 if (temp3)
2940 delete arg3;
2941 }
2942 {
2943 if (temp4)
2944 delete arg4;
2945 }
2946 {
2947 if (temp5)
2948 delete arg5;
2949 }
2950 return resultobj;
2951 fail:
2952 {
2953 if (temp1)
2954 delete arg1;
2955 }
2956 {
2957 if (temp2)
2958 delete arg2;
2959 }
2960 {
2961 if (temp3)
2962 delete arg3;
2963 }
2964 {
2965 if (temp4)
2966 delete arg4;
2967 }
2968 {
2969 if (temp5)
2970 delete arg5;
2971 }
2972 return NULL;
2973 }
2974
2975
2976 static PyObject *_wrap_LoadFileSelector(PyObject *self, PyObject *args, PyObject *kwargs) {
2977 PyObject *resultobj;
2978 wxString *arg1 = 0 ;
2979 wxString *arg2 = 0 ;
2980 wxString const &arg3_defvalue = wxPyEmptyString ;
2981 wxString *arg3 = (wxString *) &arg3_defvalue ;
2982 wxWindow *arg4 = (wxWindow *) NULL ;
2983 wxString result;
2984 bool temp1 = False ;
2985 bool temp2 = False ;
2986 bool temp3 = False ;
2987 PyObject * obj0 = 0 ;
2988 PyObject * obj1 = 0 ;
2989 PyObject * obj2 = 0 ;
2990 PyObject * obj3 = 0 ;
2991 char *kwnames[] = {
2992 (char *) "what",(char *) "extension",(char *) "default_name",(char *) "parent", NULL
2993 };
2994
2995 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:LoadFileSelector",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
2996 {
2997 arg1 = wxString_in_helper(obj0);
2998 if (arg1 == NULL) SWIG_fail;
2999 temp1 = True;
3000 }
3001 {
3002 arg2 = wxString_in_helper(obj1);
3003 if (arg2 == NULL) SWIG_fail;
3004 temp2 = True;
3005 }
3006 if (obj2) {
3007 {
3008 arg3 = wxString_in_helper(obj2);
3009 if (arg3 == NULL) SWIG_fail;
3010 temp3 = True;
3011 }
3012 }
3013 if (obj3) {
3014 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow,
3015 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3016 }
3017 {
3018 PyThreadState* __tstate = wxPyBeginAllowThreads();
3019 result = wxLoadFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4);
3020
3021 wxPyEndAllowThreads(__tstate);
3022 if (PyErr_Occurred()) SWIG_fail;
3023 }
3024 {
3025 #if wxUSE_UNICODE
3026 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3027 #else
3028 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3029 #endif
3030 }
3031 {
3032 if (temp1)
3033 delete arg1;
3034 }
3035 {
3036 if (temp2)
3037 delete arg2;
3038 }
3039 {
3040 if (temp3)
3041 delete arg3;
3042 }
3043 return resultobj;
3044 fail:
3045 {
3046 if (temp1)
3047 delete arg1;
3048 }
3049 {
3050 if (temp2)
3051 delete arg2;
3052 }
3053 {
3054 if (temp3)
3055 delete arg3;
3056 }
3057 return NULL;
3058 }
3059
3060
3061 static PyObject *_wrap_SaveFileSelector(PyObject *self, PyObject *args, PyObject *kwargs) {
3062 PyObject *resultobj;
3063 wxString *arg1 = 0 ;
3064 wxString *arg2 = 0 ;
3065 wxString const &arg3_defvalue = wxPyEmptyString ;
3066 wxString *arg3 = (wxString *) &arg3_defvalue ;
3067 wxWindow *arg4 = (wxWindow *) NULL ;
3068 wxString result;
3069 bool temp1 = False ;
3070 bool temp2 = False ;
3071 bool temp3 = False ;
3072 PyObject * obj0 = 0 ;
3073 PyObject * obj1 = 0 ;
3074 PyObject * obj2 = 0 ;
3075 PyObject * obj3 = 0 ;
3076 char *kwnames[] = {
3077 (char *) "what",(char *) "extension",(char *) "default_name",(char *) "parent", NULL
3078 };
3079
3080 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:SaveFileSelector",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3081 {
3082 arg1 = wxString_in_helper(obj0);
3083 if (arg1 == NULL) SWIG_fail;
3084 temp1 = True;
3085 }
3086 {
3087 arg2 = wxString_in_helper(obj1);
3088 if (arg2 == NULL) SWIG_fail;
3089 temp2 = True;
3090 }
3091 if (obj2) {
3092 {
3093 arg3 = wxString_in_helper(obj2);
3094 if (arg3 == NULL) SWIG_fail;
3095 temp3 = True;
3096 }
3097 }
3098 if (obj3) {
3099 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow,
3100 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3101 }
3102 {
3103 PyThreadState* __tstate = wxPyBeginAllowThreads();
3104 result = wxSaveFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4);
3105
3106 wxPyEndAllowThreads(__tstate);
3107 if (PyErr_Occurred()) SWIG_fail;
3108 }
3109 {
3110 #if wxUSE_UNICODE
3111 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3112 #else
3113 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3114 #endif
3115 }
3116 {
3117 if (temp1)
3118 delete arg1;
3119 }
3120 {
3121 if (temp2)
3122 delete arg2;
3123 }
3124 {
3125 if (temp3)
3126 delete arg3;
3127 }
3128 return resultobj;
3129 fail:
3130 {
3131 if (temp1)
3132 delete arg1;
3133 }
3134 {
3135 if (temp2)
3136 delete arg2;
3137 }
3138 {
3139 if (temp3)
3140 delete arg3;
3141 }
3142 return NULL;
3143 }
3144
3145
3146 static PyObject *_wrap_DirSelector(PyObject *self, PyObject *args, PyObject *kwargs) {
3147 PyObject *resultobj;
3148 wxString const &arg1_defvalue = wxPyDirSelectorPromptStr ;
3149 wxString *arg1 = (wxString *) &arg1_defvalue ;
3150 wxString const &arg2_defvalue = wxPyEmptyString ;
3151 wxString *arg2 = (wxString *) &arg2_defvalue ;
3152 long arg3 = (long) wxDD_DEFAULT_STYLE ;
3153 wxPoint const &arg4_defvalue = wxDefaultPosition ;
3154 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
3155 wxWindow *arg5 = (wxWindow *) NULL ;
3156 wxString result;
3157 bool temp1 = False ;
3158 bool temp2 = False ;
3159 wxPoint temp4 ;
3160 PyObject * obj0 = 0 ;
3161 PyObject * obj1 = 0 ;
3162 PyObject * obj2 = 0 ;
3163 PyObject * obj3 = 0 ;
3164 PyObject * obj4 = 0 ;
3165 char *kwnames[] = {
3166 (char *) "message",(char *) "defaultPath",(char *) "style",(char *) "pos",(char *) "parent", NULL
3167 };
3168
3169 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:DirSelector",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
3170 if (obj0) {
3171 {
3172 arg1 = wxString_in_helper(obj0);
3173 if (arg1 == NULL) SWIG_fail;
3174 temp1 = True;
3175 }
3176 }
3177 if (obj1) {
3178 {
3179 arg2 = wxString_in_helper(obj1);
3180 if (arg2 == NULL) SWIG_fail;
3181 temp2 = True;
3182 }
3183 }
3184 if (obj2) {
3185 arg3 = (long) SWIG_AsLong(obj2);
3186 if (PyErr_Occurred()) SWIG_fail;
3187 }
3188 if (obj3) {
3189 {
3190 arg4 = &temp4;
3191 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
3192 }
3193 }
3194 if (obj4) {
3195 if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxWindow,
3196 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3197 }
3198 {
3199 PyThreadState* __tstate = wxPyBeginAllowThreads();
3200 result = wxDirSelector((wxString const &)*arg1,(wxString const &)*arg2,arg3,(wxPoint const &)*arg4,arg5);
3201
3202 wxPyEndAllowThreads(__tstate);
3203 if (PyErr_Occurred()) SWIG_fail;
3204 }
3205 {
3206 #if wxUSE_UNICODE
3207 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3208 #else
3209 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3210 #endif
3211 }
3212 {
3213 if (temp1)
3214 delete arg1;
3215 }
3216 {
3217 if (temp2)
3218 delete arg2;
3219 }
3220 return resultobj;
3221 fail:
3222 {
3223 if (temp1)
3224 delete arg1;
3225 }
3226 {
3227 if (temp2)
3228 delete arg2;
3229 }
3230 return NULL;
3231 }
3232
3233
3234 static PyObject *_wrap_GetTextFromUser(PyObject *self, PyObject *args, PyObject *kwargs) {
3235 PyObject *resultobj;
3236 wxString *arg1 = 0 ;
3237 wxString const &arg2_defvalue = wxPyEmptyString ;
3238 wxString *arg2 = (wxString *) &arg2_defvalue ;
3239 wxString const &arg3_defvalue = wxPyEmptyString ;
3240 wxString *arg3 = (wxString *) &arg3_defvalue ;
3241 wxWindow *arg4 = (wxWindow *) NULL ;
3242 int arg5 = (int) -1 ;
3243 int arg6 = (int) -1 ;
3244 bool arg7 = (bool) True ;
3245 wxString result;
3246 bool temp1 = False ;
3247 bool temp2 = False ;
3248 bool temp3 = False ;
3249 PyObject * obj0 = 0 ;
3250 PyObject * obj1 = 0 ;
3251 PyObject * obj2 = 0 ;
3252 PyObject * obj3 = 0 ;
3253 PyObject * obj4 = 0 ;
3254 PyObject * obj5 = 0 ;
3255 PyObject * obj6 = 0 ;
3256 char *kwnames[] = {
3257 (char *) "message",(char *) "caption",(char *) "default_value",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre", NULL
3258 };
3259
3260 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GetTextFromUser",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
3261 {
3262 arg1 = wxString_in_helper(obj0);
3263 if (arg1 == NULL) SWIG_fail;
3264 temp1 = True;
3265 }
3266 if (obj1) {
3267 {
3268 arg2 = wxString_in_helper(obj1);
3269 if (arg2 == NULL) SWIG_fail;
3270 temp2 = True;
3271 }
3272 }
3273 if (obj2) {
3274 {
3275 arg3 = wxString_in_helper(obj2);
3276 if (arg3 == NULL) SWIG_fail;
3277 temp3 = True;
3278 }
3279 }
3280 if (obj3) {
3281 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow,
3282 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3283 }
3284 if (obj4) {
3285 arg5 = (int) SWIG_AsInt(obj4);
3286 if (PyErr_Occurred()) SWIG_fail;
3287 }
3288 if (obj5) {
3289 arg6 = (int) SWIG_AsInt(obj5);
3290 if (PyErr_Occurred()) SWIG_fail;
3291 }
3292 if (obj6) {
3293 arg7 = (bool) SWIG_AsBool(obj6);
3294 if (PyErr_Occurred()) SWIG_fail;
3295 }
3296 {
3297 PyThreadState* __tstate = wxPyBeginAllowThreads();
3298 result = wxGetTextFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6,arg7);
3299
3300 wxPyEndAllowThreads(__tstate);
3301 if (PyErr_Occurred()) SWIG_fail;
3302 }
3303 {
3304 #if wxUSE_UNICODE
3305 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3306 #else
3307 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3308 #endif
3309 }
3310 {
3311 if (temp1)
3312 delete arg1;
3313 }
3314 {
3315 if (temp2)
3316 delete arg2;
3317 }
3318 {
3319 if (temp3)
3320 delete arg3;
3321 }
3322 return resultobj;
3323 fail:
3324 {
3325 if (temp1)
3326 delete arg1;
3327 }
3328 {
3329 if (temp2)
3330 delete arg2;
3331 }
3332 {
3333 if (temp3)
3334 delete arg3;
3335 }
3336 return NULL;
3337 }
3338
3339
3340 static PyObject *_wrap_GetPasswordFromUser(PyObject *self, PyObject *args, PyObject *kwargs) {
3341 PyObject *resultobj;
3342 wxString *arg1 = 0 ;
3343 wxString const &arg2_defvalue = wxPyEmptyString ;
3344 wxString *arg2 = (wxString *) &arg2_defvalue ;
3345 wxString const &arg3_defvalue = wxPyEmptyString ;
3346 wxString *arg3 = (wxString *) &arg3_defvalue ;
3347 wxWindow *arg4 = (wxWindow *) NULL ;
3348 wxString result;
3349 bool temp1 = False ;
3350 bool temp2 = False ;
3351 bool temp3 = False ;
3352 PyObject * obj0 = 0 ;
3353 PyObject * obj1 = 0 ;
3354 PyObject * obj2 = 0 ;
3355 PyObject * obj3 = 0 ;
3356 char *kwnames[] = {
3357 (char *) "message",(char *) "caption",(char *) "default_value",(char *) "parent", NULL
3358 };
3359
3360 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:GetPasswordFromUser",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3361 {
3362 arg1 = wxString_in_helper(obj0);
3363 if (arg1 == NULL) SWIG_fail;
3364 temp1 = True;
3365 }
3366 if (obj1) {
3367 {
3368 arg2 = wxString_in_helper(obj1);
3369 if (arg2 == NULL) SWIG_fail;
3370 temp2 = True;
3371 }
3372 }
3373 if (obj2) {
3374 {
3375 arg3 = wxString_in_helper(obj2);
3376 if (arg3 == NULL) SWIG_fail;
3377 temp3 = True;
3378 }
3379 }
3380 if (obj3) {
3381 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow,
3382 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3383 }
3384 {
3385 PyThreadState* __tstate = wxPyBeginAllowThreads();
3386 result = wxGetPasswordFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4);
3387
3388 wxPyEndAllowThreads(__tstate);
3389 if (PyErr_Occurred()) SWIG_fail;
3390 }
3391 {
3392 #if wxUSE_UNICODE
3393 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3394 #else
3395 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3396 #endif
3397 }
3398 {
3399 if (temp1)
3400 delete arg1;
3401 }
3402 {
3403 if (temp2)
3404 delete arg2;
3405 }
3406 {
3407 if (temp3)
3408 delete arg3;
3409 }
3410 return resultobj;
3411 fail:
3412 {
3413 if (temp1)
3414 delete arg1;
3415 }
3416 {
3417 if (temp2)
3418 delete arg2;
3419 }
3420 {
3421 if (temp3)
3422 delete arg3;
3423 }
3424 return NULL;
3425 }
3426
3427
3428 static PyObject *_wrap_GetSingleChoice(PyObject *self, PyObject *args, PyObject *kwargs) {
3429 PyObject *resultobj;
3430 wxString *arg1 = 0 ;
3431 wxString *arg2 = 0 ;
3432 int arg3 ;
3433 wxString *arg4 = (wxString *) 0 ;
3434 wxWindow *arg5 = (wxWindow *) NULL ;
3435 int arg6 = (int) -1 ;
3436 int arg7 = (int) -1 ;
3437 bool arg8 = (bool) True ;
3438 int arg9 = (int) 150 ;
3439 int arg10 = (int) 200 ;
3440 wxString result;
3441 bool temp1 = False ;
3442 bool temp2 = False ;
3443 PyObject * obj0 = 0 ;
3444 PyObject * obj1 = 0 ;
3445 PyObject * obj2 = 0 ;
3446 PyObject * obj3 = 0 ;
3447 PyObject * obj4 = 0 ;
3448 PyObject * obj5 = 0 ;
3449 PyObject * obj6 = 0 ;
3450 PyObject * obj7 = 0 ;
3451 PyObject * obj8 = 0 ;
3452 char *kwnames[] = {
3453 (char *) "message",(char *) "caption",(char *) "choices",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre",(char *) "width",(char *) "height", NULL
3454 };
3455
3456 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:GetSingleChoice",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
3457 {
3458 arg1 = wxString_in_helper(obj0);
3459 if (arg1 == NULL) SWIG_fail;
3460 temp1 = True;
3461 }
3462 {
3463 arg2 = wxString_in_helper(obj1);
3464 if (arg2 == NULL) SWIG_fail;
3465 temp2 = True;
3466 }
3467 {
3468 arg3 = PyList_Size(obj2);
3469 arg4 = wxString_LIST_helper(obj2);
3470 if (arg4 == NULL) SWIG_fail;
3471 }
3472 if (obj3) {
3473 if ((SWIG_ConvertPtr(obj3,(void **)(&arg5),SWIGTYPE_p_wxWindow,
3474 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3475 }
3476 if (obj4) {
3477 arg6 = (int) SWIG_AsInt(obj4);
3478 if (PyErr_Occurred()) SWIG_fail;
3479 }
3480 if (obj5) {
3481 arg7 = (int) SWIG_AsInt(obj5);
3482 if (PyErr_Occurred()) SWIG_fail;
3483 }
3484 if (obj6) {
3485 arg8 = (bool) SWIG_AsBool(obj6);
3486 if (PyErr_Occurred()) SWIG_fail;
3487 }
3488 if (obj7) {
3489 arg9 = (int) SWIG_AsInt(obj7);
3490 if (PyErr_Occurred()) SWIG_fail;
3491 }
3492 if (obj8) {
3493 arg10 = (int) SWIG_AsInt(obj8);
3494 if (PyErr_Occurred()) SWIG_fail;
3495 }
3496 {
3497 PyThreadState* __tstate = wxPyBeginAllowThreads();
3498 result = wxGetSingleChoice((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10);
3499
3500 wxPyEndAllowThreads(__tstate);
3501 if (PyErr_Occurred()) SWIG_fail;
3502 }
3503 {
3504 #if wxUSE_UNICODE
3505 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3506 #else
3507 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3508 #endif
3509 }
3510 {
3511 if (temp1)
3512 delete arg1;
3513 }
3514 {
3515 if (temp2)
3516 delete arg2;
3517 }
3518 {
3519 if (arg4) delete [] arg4;
3520 }
3521 return resultobj;
3522 fail:
3523 {
3524 if (temp1)
3525 delete arg1;
3526 }
3527 {
3528 if (temp2)
3529 delete arg2;
3530 }
3531 {
3532 if (arg4) delete [] arg4;
3533 }
3534 return NULL;
3535 }
3536
3537
3538 static PyObject *_wrap_GetSingleChoiceIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
3539 PyObject *resultobj;
3540 wxString *arg1 = 0 ;
3541 wxString *arg2 = 0 ;
3542 int arg3 ;
3543 wxString *arg4 = (wxString *) 0 ;
3544 wxWindow *arg5 = (wxWindow *) NULL ;
3545 int arg6 = (int) -1 ;
3546 int arg7 = (int) -1 ;
3547 bool arg8 = (bool) True ;
3548 int arg9 = (int) 150 ;
3549 int arg10 = (int) 200 ;
3550 int result;
3551 bool temp1 = False ;
3552 bool temp2 = False ;
3553 PyObject * obj0 = 0 ;
3554 PyObject * obj1 = 0 ;
3555 PyObject * obj2 = 0 ;
3556 PyObject * obj3 = 0 ;
3557 PyObject * obj4 = 0 ;
3558 PyObject * obj5 = 0 ;
3559 PyObject * obj6 = 0 ;
3560 PyObject * obj7 = 0 ;
3561 PyObject * obj8 = 0 ;
3562 char *kwnames[] = {
3563 (char *) "message",(char *) "caption",(char *) "choices",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre",(char *) "width",(char *) "height", NULL
3564 };
3565
3566 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:GetSingleChoiceIndex",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
3567 {
3568 arg1 = wxString_in_helper(obj0);
3569 if (arg1 == NULL) SWIG_fail;
3570 temp1 = True;
3571 }
3572 {
3573 arg2 = wxString_in_helper(obj1);
3574 if (arg2 == NULL) SWIG_fail;
3575 temp2 = True;
3576 }
3577 {
3578 arg3 = PyList_Size(obj2);
3579 arg4 = wxString_LIST_helper(obj2);
3580 if (arg4 == NULL) SWIG_fail;
3581 }
3582 if (obj3) {
3583 if ((SWIG_ConvertPtr(obj3,(void **)(&arg5),SWIGTYPE_p_wxWindow,
3584 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3585 }
3586 if (obj4) {
3587 arg6 = (int) SWIG_AsInt(obj4);
3588 if (PyErr_Occurred()) SWIG_fail;
3589 }
3590 if (obj5) {
3591 arg7 = (int) SWIG_AsInt(obj5);
3592 if (PyErr_Occurred()) SWIG_fail;
3593 }
3594 if (obj6) {
3595 arg8 = (bool) SWIG_AsBool(obj6);
3596 if (PyErr_Occurred()) SWIG_fail;
3597 }
3598 if (obj7) {
3599 arg9 = (int) SWIG_AsInt(obj7);
3600 if (PyErr_Occurred()) SWIG_fail;
3601 }
3602 if (obj8) {
3603 arg10 = (int) SWIG_AsInt(obj8);
3604 if (PyErr_Occurred()) SWIG_fail;
3605 }
3606 {
3607 PyThreadState* __tstate = wxPyBeginAllowThreads();
3608 result = (int)wxGetSingleChoiceIndex((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10);
3609
3610 wxPyEndAllowThreads(__tstate);
3611 if (PyErr_Occurred()) SWIG_fail;
3612 }
3613 resultobj = SWIG_FromInt((int)result);
3614 {
3615 if (temp1)
3616 delete arg1;
3617 }
3618 {
3619 if (temp2)
3620 delete arg2;
3621 }
3622 {
3623 if (arg4) delete [] arg4;
3624 }
3625 return resultobj;
3626 fail:
3627 {
3628 if (temp1)
3629 delete arg1;
3630 }
3631 {
3632 if (temp2)
3633 delete arg2;
3634 }
3635 {
3636 if (arg4) delete [] arg4;
3637 }
3638 return NULL;
3639 }
3640
3641
3642 static PyObject *_wrap_MessageBox(PyObject *self, PyObject *args, PyObject *kwargs) {
3643 PyObject *resultobj;
3644 wxString *arg1 = 0 ;
3645 wxString const &arg2_defvalue = wxPyEmptyString ;
3646 wxString *arg2 = (wxString *) &arg2_defvalue ;
3647 int arg3 = (int) wxOK|wxCENTRE ;
3648 wxWindow *arg4 = (wxWindow *) NULL ;
3649 int arg5 = (int) -1 ;
3650 int arg6 = (int) -1 ;
3651 int result;
3652 bool temp1 = False ;
3653 bool temp2 = False ;
3654 PyObject * obj0 = 0 ;
3655 PyObject * obj1 = 0 ;
3656 PyObject * obj2 = 0 ;
3657 PyObject * obj3 = 0 ;
3658 PyObject * obj4 = 0 ;
3659 PyObject * obj5 = 0 ;
3660 char *kwnames[] = {
3661 (char *) "message",(char *) "caption",(char *) "style",(char *) "parent",(char *) "x",(char *) "y", NULL
3662 };
3663
3664 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:MessageBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
3665 {
3666 arg1 = wxString_in_helper(obj0);
3667 if (arg1 == NULL) SWIG_fail;
3668 temp1 = True;
3669 }
3670 if (obj1) {
3671 {
3672 arg2 = wxString_in_helper(obj1);
3673 if (arg2 == NULL) SWIG_fail;
3674 temp2 = True;
3675 }
3676 }
3677 if (obj2) {
3678 arg3 = (int) SWIG_AsInt(obj2);
3679 if (PyErr_Occurred()) SWIG_fail;
3680 }
3681 if (obj3) {
3682 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow,
3683 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3684 }
3685 if (obj4) {
3686 arg5 = (int) SWIG_AsInt(obj4);
3687 if (PyErr_Occurred()) SWIG_fail;
3688 }
3689 if (obj5) {
3690 arg6 = (int) SWIG_AsInt(obj5);
3691 if (PyErr_Occurred()) SWIG_fail;
3692 }
3693 {
3694 PyThreadState* __tstate = wxPyBeginAllowThreads();
3695 result = (int)wxMessageBox((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6);
3696
3697 wxPyEndAllowThreads(__tstate);
3698 if (PyErr_Occurred()) SWIG_fail;
3699 }
3700 resultobj = SWIG_FromInt((int)result);
3701 {
3702 if (temp1)
3703 delete arg1;
3704 }
3705 {
3706 if (temp2)
3707 delete arg2;
3708 }
3709 return resultobj;
3710 fail:
3711 {
3712 if (temp1)
3713 delete arg1;
3714 }
3715 {
3716 if (temp2)
3717 delete arg2;
3718 }
3719 return NULL;
3720 }
3721
3722
3723 static PyObject *_wrap_GetNumberFromUser(PyObject *self, PyObject *args, PyObject *kwargs) {
3724 PyObject *resultobj;
3725 wxString *arg1 = 0 ;
3726 wxString *arg2 = 0 ;
3727 wxString *arg3 = 0 ;
3728 long arg4 ;
3729 long arg5 = (long) 0 ;
3730 long arg6 = (long) 100 ;
3731 wxWindow *arg7 = (wxWindow *) NULL ;
3732 wxPoint const &arg8_defvalue = wxDefaultPosition ;
3733 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
3734 long result;
3735 bool temp1 = False ;
3736 bool temp2 = False ;
3737 bool temp3 = False ;
3738 wxPoint temp8 ;
3739 PyObject * obj0 = 0 ;
3740 PyObject * obj1 = 0 ;
3741 PyObject * obj2 = 0 ;
3742 PyObject * obj3 = 0 ;
3743 PyObject * obj4 = 0 ;
3744 PyObject * obj5 = 0 ;
3745 PyObject * obj6 = 0 ;
3746 PyObject * obj7 = 0 ;
3747 char *kwnames[] = {
3748 (char *) "message",(char *) "prompt",(char *) "caption",(char *) "value",(char *) "min",(char *) "max",(char *) "parent",(char *) "pos", NULL
3749 };
3750
3751 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:GetNumberFromUser",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
3752 {
3753 arg1 = wxString_in_helper(obj0);
3754 if (arg1 == NULL) SWIG_fail;
3755 temp1 = True;
3756 }
3757 {
3758 arg2 = wxString_in_helper(obj1);
3759 if (arg2 == NULL) SWIG_fail;
3760 temp2 = True;
3761 }
3762 {
3763 arg3 = wxString_in_helper(obj2);
3764 if (arg3 == NULL) SWIG_fail;
3765 temp3 = True;
3766 }
3767 arg4 = (long) SWIG_AsLong(obj3);
3768 if (PyErr_Occurred()) SWIG_fail;
3769 if (obj4) {
3770 arg5 = (long) SWIG_AsLong(obj4);
3771 if (PyErr_Occurred()) SWIG_fail;
3772 }
3773 if (obj5) {
3774 arg6 = (long) SWIG_AsLong(obj5);
3775 if (PyErr_Occurred()) SWIG_fail;
3776 }
3777 if (obj6) {
3778 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxWindow,
3779 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3780 }
3781 if (obj7) {
3782 {
3783 arg8 = &temp8;
3784 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
3785 }
3786 }
3787 {
3788 PyThreadState* __tstate = wxPyBeginAllowThreads();
3789 result = (long)wxGetNumberFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6,arg7,(wxPoint const &)*arg8);
3790
3791 wxPyEndAllowThreads(__tstate);
3792 if (PyErr_Occurred()) SWIG_fail;
3793 }
3794 resultobj = SWIG_FromLong((long)result);
3795 {
3796 if (temp1)
3797 delete arg1;
3798 }
3799 {
3800 if (temp2)
3801 delete arg2;
3802 }
3803 {
3804 if (temp3)
3805 delete arg3;
3806 }
3807 return resultobj;
3808 fail:
3809 {
3810 if (temp1)
3811 delete arg1;
3812 }
3813 {
3814 if (temp2)
3815 delete arg2;
3816 }
3817 {
3818 if (temp3)
3819 delete arg3;
3820 }
3821 return NULL;
3822 }
3823
3824
3825 static PyObject *_wrap_ColourDisplay(PyObject *self, PyObject *args, PyObject *kwargs) {
3826 PyObject *resultobj;
3827 bool result;
3828 char *kwnames[] = {
3829 NULL
3830 };
3831
3832 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ColourDisplay",kwnames)) goto fail;
3833 {
3834 PyThreadState* __tstate = wxPyBeginAllowThreads();
3835 result = (bool)wxColourDisplay();
3836
3837 wxPyEndAllowThreads(__tstate);
3838 if (PyErr_Occurred()) SWIG_fail;
3839 }
3840 {
3841 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3842 }
3843 return resultobj;
3844 fail:
3845 return NULL;
3846 }
3847
3848
3849 static PyObject *_wrap_DisplayDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3850 PyObject *resultobj;
3851 int result;
3852 char *kwnames[] = {
3853 NULL
3854 };
3855
3856 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplayDepth",kwnames)) goto fail;
3857 {
3858 PyThreadState* __tstate = wxPyBeginAllowThreads();
3859 result = (int)wxDisplayDepth();
3860
3861 wxPyEndAllowThreads(__tstate);
3862 if (PyErr_Occurred()) SWIG_fail;
3863 }
3864 resultobj = SWIG_FromInt((int)result);
3865 return resultobj;
3866 fail:
3867 return NULL;
3868 }
3869
3870
3871 static PyObject *_wrap_GetDisplayDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3872 PyObject *resultobj;
3873 int result;
3874 char *kwnames[] = {
3875 NULL
3876 };
3877
3878 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplayDepth",kwnames)) goto fail;
3879 {
3880 PyThreadState* __tstate = wxPyBeginAllowThreads();
3881 result = (int)wxGetDisplayDepth();
3882
3883 wxPyEndAllowThreads(__tstate);
3884 if (PyErr_Occurred()) SWIG_fail;
3885 }
3886 resultobj = SWIG_FromInt((int)result);
3887 return resultobj;
3888 fail:
3889 return NULL;
3890 }
3891
3892
3893 static PyObject *_wrap_DisplaySize(PyObject *self, PyObject *args, PyObject *kwargs) {
3894 PyObject *resultobj;
3895 int *arg1 = (int *) 0 ;
3896 int *arg2 = (int *) 0 ;
3897 int temp1 ;
3898 int temp2 ;
3899 char *kwnames[] = {
3900 NULL
3901 };
3902
3903 arg1 = &temp1;
3904 arg2 = &temp2;
3905 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplaySize",kwnames)) goto fail;
3906 {
3907 PyThreadState* __tstate = wxPyBeginAllowThreads();
3908 wxDisplaySize(arg1,arg2);
3909
3910 wxPyEndAllowThreads(__tstate);
3911 if (PyErr_Occurred()) SWIG_fail;
3912 }
3913 Py_INCREF(Py_None); resultobj = Py_None;
3914 {
3915 PyObject *o = PyInt_FromLong((long) (*arg1));
3916 resultobj = t_output_helper(resultobj,o);
3917 }
3918 {
3919 PyObject *o = PyInt_FromLong((long) (*arg2));
3920 resultobj = t_output_helper(resultobj,o);
3921 }
3922 return resultobj;
3923 fail:
3924 return NULL;
3925 }
3926
3927
3928 static PyObject *_wrap_GetDisplaySize(PyObject *self, PyObject *args, PyObject *kwargs) {
3929 PyObject *resultobj;
3930 wxSize result;
3931 char *kwnames[] = {
3932 NULL
3933 };
3934
3935 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplaySize",kwnames)) goto fail;
3936 {
3937 PyThreadState* __tstate = wxPyBeginAllowThreads();
3938 result = wxGetDisplaySize();
3939
3940 wxPyEndAllowThreads(__tstate);
3941 if (PyErr_Occurred()) SWIG_fail;
3942 }
3943 {
3944 wxSize * resultptr;
3945 resultptr = new wxSize((wxSize &) result);
3946 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
3947 }
3948 return resultobj;
3949 fail:
3950 return NULL;
3951 }
3952
3953
3954 static PyObject *_wrap_DisplaySizeMM(PyObject *self, PyObject *args, PyObject *kwargs) {
3955 PyObject *resultobj;
3956 int *arg1 = (int *) 0 ;
3957 int *arg2 = (int *) 0 ;
3958 int temp1 ;
3959 int temp2 ;
3960 char *kwnames[] = {
3961 NULL
3962 };
3963
3964 arg1 = &temp1;
3965 arg2 = &temp2;
3966 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplaySizeMM",kwnames)) goto fail;
3967 {
3968 PyThreadState* __tstate = wxPyBeginAllowThreads();
3969 wxDisplaySizeMM(arg1,arg2);
3970
3971 wxPyEndAllowThreads(__tstate);
3972 if (PyErr_Occurred()) SWIG_fail;
3973 }
3974 Py_INCREF(Py_None); resultobj = Py_None;
3975 {
3976 PyObject *o = PyInt_FromLong((long) (*arg1));
3977 resultobj = t_output_helper(resultobj,o);
3978 }
3979 {
3980 PyObject *o = PyInt_FromLong((long) (*arg2));
3981 resultobj = t_output_helper(resultobj,o);
3982 }
3983 return resultobj;
3984 fail:
3985 return NULL;
3986 }
3987
3988
3989 static PyObject *_wrap_GetDisplaySizeMM(PyObject *self, PyObject *args, PyObject *kwargs) {
3990 PyObject *resultobj;
3991 wxSize result;
3992 char *kwnames[] = {
3993 NULL
3994 };
3995
3996 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplaySizeMM",kwnames)) goto fail;
3997 {
3998 PyThreadState* __tstate = wxPyBeginAllowThreads();
3999 result = wxGetDisplaySizeMM();
4000
4001 wxPyEndAllowThreads(__tstate);
4002 if (PyErr_Occurred()) SWIG_fail;
4003 }
4004 {
4005 wxSize * resultptr;
4006 resultptr = new wxSize((wxSize &) result);
4007 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
4008 }
4009 return resultobj;
4010 fail:
4011 return NULL;
4012 }
4013
4014
4015 static PyObject *_wrap_ClientDisplayRect(PyObject *self, PyObject *args, PyObject *kwargs) {
4016 PyObject *resultobj;
4017 int *arg1 = (int *) 0 ;
4018 int *arg2 = (int *) 0 ;
4019 int *arg3 = (int *) 0 ;
4020 int *arg4 = (int *) 0 ;
4021 int temp1 ;
4022 int temp2 ;
4023 int temp3 ;
4024 int temp4 ;
4025 char *kwnames[] = {
4026 NULL
4027 };
4028
4029 arg1 = &temp1;
4030 arg2 = &temp2;
4031 arg3 = &temp3;
4032 arg4 = &temp4;
4033 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ClientDisplayRect",kwnames)) goto fail;
4034 {
4035 PyThreadState* __tstate = wxPyBeginAllowThreads();
4036 wxClientDisplayRect(arg1,arg2,arg3,arg4);
4037
4038 wxPyEndAllowThreads(__tstate);
4039 if (PyErr_Occurred()) SWIG_fail;
4040 }
4041 Py_INCREF(Py_None); resultobj = Py_None;
4042 {
4043 PyObject *o = PyInt_FromLong((long) (*arg1));
4044 resultobj = t_output_helper(resultobj,o);
4045 }
4046 {
4047 PyObject *o = PyInt_FromLong((long) (*arg2));
4048 resultobj = t_output_helper(resultobj,o);
4049 }
4050 {
4051 PyObject *o = PyInt_FromLong((long) (*arg3));
4052 resultobj = t_output_helper(resultobj,o);
4053 }
4054 {
4055 PyObject *o = PyInt_FromLong((long) (*arg4));
4056 resultobj = t_output_helper(resultobj,o);
4057 }
4058 return resultobj;
4059 fail:
4060 return NULL;
4061 }
4062
4063
4064 static PyObject *_wrap_GetClientDisplayRect(PyObject *self, PyObject *args, PyObject *kwargs) {
4065 PyObject *resultobj;
4066 wxRect result;
4067 char *kwnames[] = {
4068 NULL
4069 };
4070
4071 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetClientDisplayRect",kwnames)) goto fail;
4072 {
4073 PyThreadState* __tstate = wxPyBeginAllowThreads();
4074 result = wxGetClientDisplayRect();
4075
4076 wxPyEndAllowThreads(__tstate);
4077 if (PyErr_Occurred()) SWIG_fail;
4078 }
4079 {
4080 wxRect * resultptr;
4081 resultptr = new wxRect((wxRect &) result);
4082 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
4083 }
4084 return resultobj;
4085 fail:
4086 return NULL;
4087 }
4088
4089
4090 static PyObject *_wrap_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
4091 PyObject *resultobj;
4092 wxCursor *arg1 = 0 ;
4093 PyObject * obj0 = 0 ;
4094 char *kwnames[] = {
4095 (char *) "cursor", NULL
4096 };
4097
4098 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursor",kwnames,&obj0)) goto fail;
4099 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
4100 SWIG_POINTER_EXCEPTION | 0)) == -1)
4101 SWIG_fail;
4102 if (arg1 == NULL) {
4103 PyErr_SetString(PyExc_TypeError,"null reference");
4104 SWIG_fail;
4105 }
4106 {
4107 PyThreadState* __tstate = wxPyBeginAllowThreads();
4108 wxSetCursor(*arg1);
4109
4110 wxPyEndAllowThreads(__tstate);
4111 if (PyErr_Occurred()) SWIG_fail;
4112 }
4113 Py_INCREF(Py_None); resultobj = Py_None;
4114 return resultobj;
4115 fail:
4116 return NULL;
4117 }
4118
4119
4120 static PyObject *_wrap_BeginBusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
4121 PyObject *resultobj;
4122 wxCursor *arg1 = (wxCursor *) wxHOURGLASS_CURSOR ;
4123 PyObject * obj0 = 0 ;
4124 char *kwnames[] = {
4125 (char *) "cursor", NULL
4126 };
4127
4128 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:BeginBusyCursor",kwnames,&obj0)) goto fail;
4129 if (obj0) {
4130 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
4131 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4132 }
4133 {
4134 PyThreadState* __tstate = wxPyBeginAllowThreads();
4135 wxBeginBusyCursor(arg1);
4136
4137 wxPyEndAllowThreads(__tstate);
4138 if (PyErr_Occurred()) SWIG_fail;
4139 }
4140 Py_INCREF(Py_None); resultobj = Py_None;
4141 return resultobj;
4142 fail:
4143 return NULL;
4144 }
4145
4146
4147 static PyObject *_wrap_GetActiveWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
4148 PyObject *resultobj;
4149 wxWindow *result;
4150 char *kwnames[] = {
4151 NULL
4152 };
4153
4154 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetActiveWindow",kwnames)) goto fail;
4155 {
4156 PyThreadState* __tstate = wxPyBeginAllowThreads();
4157 result = (wxWindow *)wxGetActiveWindow();
4158
4159 wxPyEndAllowThreads(__tstate);
4160 if (PyErr_Occurred()) SWIG_fail;
4161 }
4162 {
4163 resultobj = wxPyMake_wxObject(result);
4164 }
4165 return resultobj;
4166 fail:
4167 return NULL;
4168 }
4169
4170
4171 static PyObject *_wrap_GenericFindWindowAtPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
4172 PyObject *resultobj;
4173 wxPoint *arg1 = 0 ;
4174 wxWindow *result;
4175 wxPoint temp1 ;
4176 PyObject * obj0 = 0 ;
4177 char *kwnames[] = {
4178 (char *) "pt", NULL
4179 };
4180
4181 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericFindWindowAtPoint",kwnames,&obj0)) goto fail;
4182 {
4183 arg1 = &temp1;
4184 if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail;
4185 }
4186 {
4187 PyThreadState* __tstate = wxPyBeginAllowThreads();
4188 result = (wxWindow *)wxGenericFindWindowAtPoint((wxPoint const &)*arg1);
4189
4190 wxPyEndAllowThreads(__tstate);
4191 if (PyErr_Occurred()) SWIG_fail;
4192 }
4193 {
4194 resultobj = wxPyMake_wxObject(result);
4195 }
4196 return resultobj;
4197 fail:
4198 return NULL;
4199 }
4200
4201
4202 static PyObject *_wrap_FindWindowAtPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
4203 PyObject *resultobj;
4204 wxPoint *arg1 = 0 ;
4205 wxWindow *result;
4206 wxPoint temp1 ;
4207 PyObject * obj0 = 0 ;
4208 char *kwnames[] = {
4209 (char *) "pt", NULL
4210 };
4211
4212 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FindWindowAtPoint",kwnames,&obj0)) goto fail;
4213 {
4214 arg1 = &temp1;
4215 if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail;
4216 }
4217 {
4218 PyThreadState* __tstate = wxPyBeginAllowThreads();
4219 result = (wxWindow *)wxFindWindowAtPoint((wxPoint const &)*arg1);
4220
4221 wxPyEndAllowThreads(__tstate);
4222 if (PyErr_Occurred()) SWIG_fail;
4223 }
4224 {
4225 resultobj = wxPyMake_wxObject(result);
4226 }
4227 return resultobj;
4228 fail:
4229 return NULL;
4230 }
4231
4232
4233 static PyObject *_wrap_GetTopLevelParent(PyObject *self, PyObject *args, PyObject *kwargs) {
4234 PyObject *resultobj;
4235 wxWindow *arg1 = (wxWindow *) 0 ;
4236 wxWindow *result;
4237 PyObject * obj0 = 0 ;
4238 char *kwnames[] = {
4239 (char *) "win", NULL
4240 };
4241
4242 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetTopLevelParent",kwnames,&obj0)) goto fail;
4243 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
4244 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4245 {
4246 PyThreadState* __tstate = wxPyBeginAllowThreads();
4247 result = (wxWindow *)wxGetTopLevelParent(arg1);
4248
4249 wxPyEndAllowThreads(__tstate);
4250 if (PyErr_Occurred()) SWIG_fail;
4251 }
4252 {
4253 resultobj = wxPyMake_wxObject(result);
4254 }
4255 return resultobj;
4256 fail:
4257 return NULL;
4258 }
4259
4260
4261 static PyObject *_wrap_GetKeyState(PyObject *self, PyObject *args, PyObject *kwargs) {
4262 PyObject *resultobj;
4263 int arg1 ;
4264 bool result;
4265 PyObject * obj0 = 0 ;
4266 char *kwnames[] = {
4267 (char *) "key", NULL
4268 };
4269
4270 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetKeyState",kwnames,&obj0)) goto fail;
4271 arg1 = (wxKeyCode) SWIG_AsInt(obj0);
4272 if (PyErr_Occurred()) SWIG_fail;
4273 {
4274 PyThreadState* __tstate = wxPyBeginAllowThreads();
4275 result = (bool)wxGetKeyState((wxKeyCode )arg1);
4276
4277 wxPyEndAllowThreads(__tstate);
4278 if (PyErr_Occurred()) SWIG_fail;
4279 }
4280 {
4281 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4282 }
4283 return resultobj;
4284 fail:
4285 return NULL;
4286 }
4287
4288
4289 static PyObject *_wrap_WakeUpMainThread(PyObject *self, PyObject *args, PyObject *kwargs) {
4290 PyObject *resultobj;
4291 char *kwnames[] = {
4292 NULL
4293 };
4294
4295 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":WakeUpMainThread",kwnames)) goto fail;
4296 {
4297 PyThreadState* __tstate = wxPyBeginAllowThreads();
4298 wxWakeUpMainThread();
4299
4300 wxPyEndAllowThreads(__tstate);
4301 if (PyErr_Occurred()) SWIG_fail;
4302 }
4303 Py_INCREF(Py_None); resultobj = Py_None;
4304 return resultobj;
4305 fail:
4306 return NULL;
4307 }
4308
4309
4310 static PyObject *_wrap_MutexGuiEnter(PyObject *self, PyObject *args, PyObject *kwargs) {
4311 PyObject *resultobj;
4312 char *kwnames[] = {
4313 NULL
4314 };
4315
4316 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MutexGuiEnter",kwnames)) goto fail;
4317 {
4318 PyThreadState* __tstate = wxPyBeginAllowThreads();
4319 wxMutexGuiEnter();
4320
4321 wxPyEndAllowThreads(__tstate);
4322 if (PyErr_Occurred()) SWIG_fail;
4323 }
4324 Py_INCREF(Py_None); resultobj = Py_None;
4325 return resultobj;
4326 fail:
4327 return NULL;
4328 }
4329
4330
4331 static PyObject *_wrap_MutexGuiLeave(PyObject *self, PyObject *args, PyObject *kwargs) {
4332 PyObject *resultobj;
4333 char *kwnames[] = {
4334 NULL
4335 };
4336
4337 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MutexGuiLeave",kwnames)) goto fail;
4338 {
4339 PyThreadState* __tstate = wxPyBeginAllowThreads();
4340 wxMutexGuiLeave();
4341
4342 wxPyEndAllowThreads(__tstate);
4343 if (PyErr_Occurred()) SWIG_fail;
4344 }
4345 Py_INCREF(Py_None); resultobj = Py_None;
4346 return resultobj;
4347 fail:
4348 return NULL;
4349 }
4350
4351
4352 static PyObject *_wrap_new_MutexGuiLocker(PyObject *self, PyObject *args, PyObject *kwargs) {
4353 PyObject *resultobj;
4354 wxMutexGuiLocker *result;
4355 char *kwnames[] = {
4356 NULL
4357 };
4358
4359 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MutexGuiLocker",kwnames)) goto fail;
4360 {
4361 PyThreadState* __tstate = wxPyBeginAllowThreads();
4362 result = (wxMutexGuiLocker *)new wxMutexGuiLocker();
4363
4364 wxPyEndAllowThreads(__tstate);
4365 if (PyErr_Occurred()) SWIG_fail;
4366 }
4367 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMutexGuiLocker, 1);
4368 return resultobj;
4369 fail:
4370 return NULL;
4371 }
4372
4373
4374 static PyObject *_wrap_delete_MutexGuiLocker(PyObject *self, PyObject *args, PyObject *kwargs) {
4375 PyObject *resultobj;
4376 wxMutexGuiLocker *arg1 = (wxMutexGuiLocker *) 0 ;
4377 PyObject * obj0 = 0 ;
4378 char *kwnames[] = {
4379 (char *) "self", NULL
4380 };
4381
4382 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MutexGuiLocker",kwnames,&obj0)) goto fail;
4383 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMutexGuiLocker,
4384 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4385 {
4386 PyThreadState* __tstate = wxPyBeginAllowThreads();
4387 delete arg1;
4388
4389 wxPyEndAllowThreads(__tstate);
4390 if (PyErr_Occurred()) SWIG_fail;
4391 }
4392 Py_INCREF(Py_None); resultobj = Py_None;
4393 return resultobj;
4394 fail:
4395 return NULL;
4396 }
4397
4398
4399 static PyObject * MutexGuiLocker_swigregister(PyObject *self, PyObject *args) {
4400 PyObject *obj;
4401 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4402 SWIG_TypeClientData(SWIGTYPE_p_wxMutexGuiLocker, obj);
4403 Py_INCREF(obj);
4404 return Py_BuildValue((char *)"");
4405 }
4406 static PyObject *_wrap_Thread_IsMain(PyObject *self, PyObject *args, PyObject *kwargs) {
4407 PyObject *resultobj;
4408 bool result;
4409 char *kwnames[] = {
4410 NULL
4411 };
4412
4413 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Thread_IsMain",kwnames)) goto fail;
4414 {
4415 PyThreadState* __tstate = wxPyBeginAllowThreads();
4416 result = (bool)wxThread_IsMain();
4417
4418 wxPyEndAllowThreads(__tstate);
4419 if (PyErr_Occurred()) SWIG_fail;
4420 }
4421 {
4422 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4423 }
4424 return resultobj;
4425 fail:
4426 return NULL;
4427 }
4428
4429
4430 static PyObject *_wrap_new_ToolTip(PyObject *self, PyObject *args, PyObject *kwargs) {
4431 PyObject *resultobj;
4432 wxString *arg1 = 0 ;
4433 wxToolTip *result;
4434 bool temp1 = False ;
4435 PyObject * obj0 = 0 ;
4436 char *kwnames[] = {
4437 (char *) "tip", NULL
4438 };
4439
4440 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ToolTip",kwnames,&obj0)) goto fail;
4441 {
4442 arg1 = wxString_in_helper(obj0);
4443 if (arg1 == NULL) SWIG_fail;
4444 temp1 = True;
4445 }
4446 {
4447 PyThreadState* __tstate = wxPyBeginAllowThreads();
4448 result = (wxToolTip *)new wxToolTip((wxString const &)*arg1);
4449
4450 wxPyEndAllowThreads(__tstate);
4451 if (PyErr_Occurred()) SWIG_fail;
4452 }
4453 {
4454 resultobj = wxPyMake_wxObject(result);
4455 }
4456 {
4457 if (temp1)
4458 delete arg1;
4459 }
4460 return resultobj;
4461 fail:
4462 {
4463 if (temp1)
4464 delete arg1;
4465 }
4466 return NULL;
4467 }
4468
4469
4470 static PyObject *_wrap_ToolTip_SetTip(PyObject *self, PyObject *args, PyObject *kwargs) {
4471 PyObject *resultobj;
4472 wxToolTip *arg1 = (wxToolTip *) 0 ;
4473 wxString *arg2 = 0 ;
4474 bool temp2 = False ;
4475 PyObject * obj0 = 0 ;
4476 PyObject * obj1 = 0 ;
4477 char *kwnames[] = {
4478 (char *) "self",(char *) "tip", NULL
4479 };
4480
4481 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolTip_SetTip",kwnames,&obj0,&obj1)) goto fail;
4482 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolTip,
4483 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4484 {
4485 arg2 = wxString_in_helper(obj1);
4486 if (arg2 == NULL) SWIG_fail;
4487 temp2 = True;
4488 }
4489 {
4490 PyThreadState* __tstate = wxPyBeginAllowThreads();
4491 (arg1)->SetTip((wxString const &)*arg2);
4492
4493 wxPyEndAllowThreads(__tstate);
4494 if (PyErr_Occurred()) SWIG_fail;
4495 }
4496 Py_INCREF(Py_None); resultobj = Py_None;
4497 {
4498 if (temp2)
4499 delete arg2;
4500 }
4501 return resultobj;
4502 fail:
4503 {
4504 if (temp2)
4505 delete arg2;
4506 }
4507 return NULL;
4508 }
4509
4510
4511 static PyObject *_wrap_ToolTip_GetTip(PyObject *self, PyObject *args, PyObject *kwargs) {
4512 PyObject *resultobj;
4513 wxToolTip *arg1 = (wxToolTip *) 0 ;
4514 wxString result;
4515 PyObject * obj0 = 0 ;
4516 char *kwnames[] = {
4517 (char *) "self", NULL
4518 };
4519
4520 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_GetTip",kwnames,&obj0)) goto fail;
4521 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolTip,
4522 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4523 {
4524 PyThreadState* __tstate = wxPyBeginAllowThreads();
4525 result = (arg1)->GetTip();
4526
4527 wxPyEndAllowThreads(__tstate);
4528 if (PyErr_Occurred()) SWIG_fail;
4529 }
4530 {
4531 #if wxUSE_UNICODE
4532 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
4533 #else
4534 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
4535 #endif
4536 }
4537 return resultobj;
4538 fail:
4539 return NULL;
4540 }
4541
4542
4543 static PyObject *_wrap_ToolTip_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
4544 PyObject *resultobj;
4545 wxToolTip *arg1 = (wxToolTip *) 0 ;
4546 wxWindow *result;
4547 PyObject * obj0 = 0 ;
4548 char *kwnames[] = {
4549 (char *) "self", NULL
4550 };
4551
4552 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_GetWindow",kwnames,&obj0)) goto fail;
4553 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolTip,
4554 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4555 {
4556 PyThreadState* __tstate = wxPyBeginAllowThreads();
4557 result = (wxWindow *)(arg1)->GetWindow();
4558
4559 wxPyEndAllowThreads(__tstate);
4560 if (PyErr_Occurred()) SWIG_fail;
4561 }
4562 {
4563 resultobj = wxPyMake_wxObject(result);
4564 }
4565 return resultobj;
4566 fail:
4567 return NULL;
4568 }
4569
4570
4571 static PyObject *_wrap_ToolTip_Enable(PyObject *self, PyObject *args, PyObject *kwargs) {
4572 PyObject *resultobj;
4573 bool arg1 ;
4574 PyObject * obj0 = 0 ;
4575 char *kwnames[] = {
4576 (char *) "flag", NULL
4577 };
4578
4579 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_Enable",kwnames,&obj0)) goto fail;
4580 arg1 = (bool) SWIG_AsBool(obj0);
4581 if (PyErr_Occurred()) SWIG_fail;
4582 {
4583 PyThreadState* __tstate = wxPyBeginAllowThreads();
4584 wxToolTip::Enable(arg1);
4585
4586 wxPyEndAllowThreads(__tstate);
4587 if (PyErr_Occurred()) SWIG_fail;
4588 }
4589 Py_INCREF(Py_None); resultobj = Py_None;
4590 return resultobj;
4591 fail:
4592 return NULL;
4593 }
4594
4595
4596 static PyObject *_wrap_ToolTip_SetDelay(PyObject *self, PyObject *args, PyObject *kwargs) {
4597 PyObject *resultobj;
4598 long arg1 ;
4599 PyObject * obj0 = 0 ;
4600 char *kwnames[] = {
4601 (char *) "milliseconds", NULL
4602 };
4603
4604 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_SetDelay",kwnames,&obj0)) goto fail;
4605 arg1 = (long) SWIG_AsLong(obj0);
4606 if (PyErr_Occurred()) SWIG_fail;
4607 {
4608 PyThreadState* __tstate = wxPyBeginAllowThreads();
4609 wxToolTip::SetDelay(arg1);
4610
4611 wxPyEndAllowThreads(__tstate);
4612 if (PyErr_Occurred()) SWIG_fail;
4613 }
4614 Py_INCREF(Py_None); resultobj = Py_None;
4615 return resultobj;
4616 fail:
4617 return NULL;
4618 }
4619
4620
4621 static PyObject * ToolTip_swigregister(PyObject *self, PyObject *args) {
4622 PyObject *obj;
4623 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4624 SWIG_TypeClientData(SWIGTYPE_p_wxToolTip, obj);
4625 Py_INCREF(obj);
4626 return Py_BuildValue((char *)"");
4627 }
4628 static PyObject *_wrap_new_Caret(PyObject *self, PyObject *args, PyObject *kwargs) {
4629 PyObject *resultobj;
4630 wxWindow *arg1 = (wxWindow *) 0 ;
4631 wxSize *arg2 = 0 ;
4632 wxCaret *result;
4633 wxSize temp2 ;
4634 PyObject * obj0 = 0 ;
4635 PyObject * obj1 = 0 ;
4636 char *kwnames[] = {
4637 (char *) "window",(char *) "size", NULL
4638 };
4639
4640 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_Caret",kwnames,&obj0,&obj1)) goto fail;
4641 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
4642 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4643 {
4644 arg2 = &temp2;
4645 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
4646 }
4647 {
4648 PyThreadState* __tstate = wxPyBeginAllowThreads();
4649 result = (wxCaret *)new wxCaret(arg1,(wxSize const &)*arg2);
4650
4651 wxPyEndAllowThreads(__tstate);
4652 if (PyErr_Occurred()) SWIG_fail;
4653 }
4654 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCaret, 1);
4655 return resultobj;
4656 fail:
4657 return NULL;
4658 }
4659
4660
4661 static PyObject *_wrap_delete_Caret(PyObject *self, PyObject *args, PyObject *kwargs) {
4662 PyObject *resultobj;
4663 wxCaret *arg1 = (wxCaret *) 0 ;
4664 PyObject * obj0 = 0 ;
4665 char *kwnames[] = {
4666 (char *) "self", NULL
4667 };
4668
4669 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Caret",kwnames,&obj0)) goto fail;
4670 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4671 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4672 {
4673 PyThreadState* __tstate = wxPyBeginAllowThreads();
4674 delete arg1;
4675
4676 wxPyEndAllowThreads(__tstate);
4677 if (PyErr_Occurred()) SWIG_fail;
4678 }
4679 Py_INCREF(Py_None); resultobj = Py_None;
4680 return resultobj;
4681 fail:
4682 return NULL;
4683 }
4684
4685
4686 static PyObject *_wrap_Caret_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
4687 PyObject *resultobj;
4688 wxCaret *arg1 = (wxCaret *) 0 ;
4689 bool result;
4690 PyObject * obj0 = 0 ;
4691 char *kwnames[] = {
4692 (char *) "self", NULL
4693 };
4694
4695 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_IsOk",kwnames,&obj0)) goto fail;
4696 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4697 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4698 {
4699 PyThreadState* __tstate = wxPyBeginAllowThreads();
4700 result = (bool)(arg1)->IsOk();
4701
4702 wxPyEndAllowThreads(__tstate);
4703 if (PyErr_Occurred()) SWIG_fail;
4704 }
4705 {
4706 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4707 }
4708 return resultobj;
4709 fail:
4710 return NULL;
4711 }
4712
4713
4714 static PyObject *_wrap_Caret_IsVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
4715 PyObject *resultobj;
4716 wxCaret *arg1 = (wxCaret *) 0 ;
4717 bool result;
4718 PyObject * obj0 = 0 ;
4719 char *kwnames[] = {
4720 (char *) "self", NULL
4721 };
4722
4723 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_IsVisible",kwnames,&obj0)) goto fail;
4724 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4725 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4726 {
4727 PyThreadState* __tstate = wxPyBeginAllowThreads();
4728 result = (bool)(arg1)->IsVisible();
4729
4730 wxPyEndAllowThreads(__tstate);
4731 if (PyErr_Occurred()) SWIG_fail;
4732 }
4733 {
4734 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4735 }
4736 return resultobj;
4737 fail:
4738 return NULL;
4739 }
4740
4741
4742 static PyObject *_wrap_Caret_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
4743 PyObject *resultobj;
4744 wxCaret *arg1 = (wxCaret *) 0 ;
4745 wxPoint result;
4746 PyObject * obj0 = 0 ;
4747 char *kwnames[] = {
4748 (char *) "self", NULL
4749 };
4750
4751 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetPosition",kwnames,&obj0)) goto fail;
4752 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4753 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4754 {
4755 PyThreadState* __tstate = wxPyBeginAllowThreads();
4756 result = (arg1)->GetPosition();
4757
4758 wxPyEndAllowThreads(__tstate);
4759 if (PyErr_Occurred()) SWIG_fail;
4760 }
4761 {
4762 wxPoint * resultptr;
4763 resultptr = new wxPoint((wxPoint &) result);
4764 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
4765 }
4766 return resultobj;
4767 fail:
4768 return NULL;
4769 }
4770
4771
4772 static PyObject *_wrap_Caret_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
4773 PyObject *resultobj;
4774 wxCaret *arg1 = (wxCaret *) 0 ;
4775 int *arg2 = (int *) 0 ;
4776 int *arg3 = (int *) 0 ;
4777 int temp2 ;
4778 int temp3 ;
4779 PyObject * obj0 = 0 ;
4780 char *kwnames[] = {
4781 (char *) "self", NULL
4782 };
4783
4784 arg2 = &temp2;
4785 arg3 = &temp3;
4786 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetPositionTuple",kwnames,&obj0)) goto fail;
4787 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4788 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4789 {
4790 PyThreadState* __tstate = wxPyBeginAllowThreads();
4791 (arg1)->GetPosition(arg2,arg3);
4792
4793 wxPyEndAllowThreads(__tstate);
4794 if (PyErr_Occurred()) SWIG_fail;
4795 }
4796 Py_INCREF(Py_None); resultobj = Py_None;
4797 {
4798 PyObject *o = PyInt_FromLong((long) (*arg2));
4799 resultobj = t_output_helper(resultobj,o);
4800 }
4801 {
4802 PyObject *o = PyInt_FromLong((long) (*arg3));
4803 resultobj = t_output_helper(resultobj,o);
4804 }
4805 return resultobj;
4806 fail:
4807 return NULL;
4808 }
4809
4810
4811 static PyObject *_wrap_Caret_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
4812 PyObject *resultobj;
4813 wxCaret *arg1 = (wxCaret *) 0 ;
4814 wxSize result;
4815 PyObject * obj0 = 0 ;
4816 char *kwnames[] = {
4817 (char *) "self", NULL
4818 };
4819
4820 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetSize",kwnames,&obj0)) goto fail;
4821 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4822 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4823 {
4824 PyThreadState* __tstate = wxPyBeginAllowThreads();
4825 result = (arg1)->GetSize();
4826
4827 wxPyEndAllowThreads(__tstate);
4828 if (PyErr_Occurred()) SWIG_fail;
4829 }
4830 {
4831 wxSize * resultptr;
4832 resultptr = new wxSize((wxSize &) result);
4833 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
4834 }
4835 return resultobj;
4836 fail:
4837 return NULL;
4838 }
4839
4840
4841 static PyObject *_wrap_Caret_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
4842 PyObject *resultobj;
4843 wxCaret *arg1 = (wxCaret *) 0 ;
4844 int *arg2 = (int *) 0 ;
4845 int *arg3 = (int *) 0 ;
4846 int temp2 ;
4847 int temp3 ;
4848 PyObject * obj0 = 0 ;
4849 char *kwnames[] = {
4850 (char *) "self", NULL
4851 };
4852
4853 arg2 = &temp2;
4854 arg3 = &temp3;
4855 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetSizeTuple",kwnames,&obj0)) goto fail;
4856 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4857 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4858 {
4859 PyThreadState* __tstate = wxPyBeginAllowThreads();
4860 (arg1)->GetSize(arg2,arg3);
4861
4862 wxPyEndAllowThreads(__tstate);
4863 if (PyErr_Occurred()) SWIG_fail;
4864 }
4865 Py_INCREF(Py_None); resultobj = Py_None;
4866 {
4867 PyObject *o = PyInt_FromLong((long) (*arg2));
4868 resultobj = t_output_helper(resultobj,o);
4869 }
4870 {
4871 PyObject *o = PyInt_FromLong((long) (*arg3));
4872 resultobj = t_output_helper(resultobj,o);
4873 }
4874 return resultobj;
4875 fail:
4876 return NULL;
4877 }
4878
4879
4880 static PyObject *_wrap_Caret_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
4881 PyObject *resultobj;
4882 wxCaret *arg1 = (wxCaret *) 0 ;
4883 wxWindow *result;
4884 PyObject * obj0 = 0 ;
4885 char *kwnames[] = {
4886 (char *) "self", NULL
4887 };
4888
4889 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetWindow",kwnames,&obj0)) goto fail;
4890 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4891 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4892 {
4893 PyThreadState* __tstate = wxPyBeginAllowThreads();
4894 result = (wxWindow *)(arg1)->GetWindow();
4895
4896 wxPyEndAllowThreads(__tstate);
4897 if (PyErr_Occurred()) SWIG_fail;
4898 }
4899 {
4900 resultobj = wxPyMake_wxObject(result);
4901 }
4902 return resultobj;
4903 fail:
4904 return NULL;
4905 }
4906
4907
4908 static PyObject *_wrap_Caret_MoveXY(PyObject *self, PyObject *args, PyObject *kwargs) {
4909 PyObject *resultobj;
4910 wxCaret *arg1 = (wxCaret *) 0 ;
4911 int arg2 ;
4912 int arg3 ;
4913 PyObject * obj0 = 0 ;
4914 PyObject * obj1 = 0 ;
4915 PyObject * obj2 = 0 ;
4916 char *kwnames[] = {
4917 (char *) "self",(char *) "x",(char *) "y", NULL
4918 };
4919
4920 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Caret_MoveXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
4921 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4922 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4923 arg2 = (int) SWIG_AsInt(obj1);
4924 if (PyErr_Occurred()) SWIG_fail;
4925 arg3 = (int) SWIG_AsInt(obj2);
4926 if (PyErr_Occurred()) SWIG_fail;
4927 {
4928 PyThreadState* __tstate = wxPyBeginAllowThreads();
4929 (arg1)->Move(arg2,arg3);
4930
4931 wxPyEndAllowThreads(__tstate);
4932 if (PyErr_Occurred()) SWIG_fail;
4933 }
4934 Py_INCREF(Py_None); resultobj = Py_None;
4935 return resultobj;
4936 fail:
4937 return NULL;
4938 }
4939
4940
4941 static PyObject *_wrap_Caret_Move(PyObject *self, PyObject *args, PyObject *kwargs) {
4942 PyObject *resultobj;
4943 wxCaret *arg1 = (wxCaret *) 0 ;
4944 wxPoint *arg2 = 0 ;
4945 wxPoint temp2 ;
4946 PyObject * obj0 = 0 ;
4947 PyObject * obj1 = 0 ;
4948 char *kwnames[] = {
4949 (char *) "self",(char *) "pt", NULL
4950 };
4951
4952 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Caret_Move",kwnames,&obj0,&obj1)) goto fail;
4953 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4954 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4955 {
4956 arg2 = &temp2;
4957 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
4958 }
4959 {
4960 PyThreadState* __tstate = wxPyBeginAllowThreads();
4961 (arg1)->Move((wxPoint const &)*arg2);
4962
4963 wxPyEndAllowThreads(__tstate);
4964 if (PyErr_Occurred()) SWIG_fail;
4965 }
4966 Py_INCREF(Py_None); resultobj = Py_None;
4967 return resultobj;
4968 fail:
4969 return NULL;
4970 }
4971
4972
4973 static PyObject *_wrap_Caret_SetSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) {
4974 PyObject *resultobj;
4975 wxCaret *arg1 = (wxCaret *) 0 ;
4976 int arg2 ;
4977 int arg3 ;
4978 PyObject * obj0 = 0 ;
4979 PyObject * obj1 = 0 ;
4980 PyObject * obj2 = 0 ;
4981 char *kwnames[] = {
4982 (char *) "self",(char *) "width",(char *) "height", NULL
4983 };
4984
4985 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Caret_SetSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail;
4986 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4987 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4988 arg2 = (int) SWIG_AsInt(obj1);
4989 if (PyErr_Occurred()) SWIG_fail;
4990 arg3 = (int) SWIG_AsInt(obj2);
4991 if (PyErr_Occurred()) SWIG_fail;
4992 {
4993 PyThreadState* __tstate = wxPyBeginAllowThreads();
4994 (arg1)->SetSize(arg2,arg3);
4995
4996 wxPyEndAllowThreads(__tstate);
4997 if (PyErr_Occurred()) SWIG_fail;
4998 }
4999 Py_INCREF(Py_None); resultobj = Py_None;
5000 return resultobj;
5001 fail:
5002 return NULL;
5003 }
5004
5005
5006 static PyObject *_wrap_Caret_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
5007 PyObject *resultobj;
5008 wxCaret *arg1 = (wxCaret *) 0 ;
5009 wxSize *arg2 = 0 ;
5010 wxSize temp2 ;
5011 PyObject * obj0 = 0 ;
5012 PyObject * obj1 = 0 ;
5013 char *kwnames[] = {
5014 (char *) "self",(char *) "size", NULL
5015 };
5016
5017 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Caret_SetSize",kwnames,&obj0,&obj1)) goto fail;
5018 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
5019 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5020 {
5021 arg2 = &temp2;
5022 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
5023 }
5024 {
5025 PyThreadState* __tstate = wxPyBeginAllowThreads();
5026 (arg1)->SetSize((wxSize const &)*arg2);
5027
5028 wxPyEndAllowThreads(__tstate);
5029 if (PyErr_Occurred()) SWIG_fail;
5030 }
5031 Py_INCREF(Py_None); resultobj = Py_None;
5032 return resultobj;
5033 fail:
5034 return NULL;
5035 }
5036
5037
5038 static PyObject *_wrap_Caret_Show(PyObject *self, PyObject *args, PyObject *kwargs) {
5039 PyObject *resultobj;
5040 wxCaret *arg1 = (wxCaret *) 0 ;
5041 int arg2 = (int) True ;
5042 PyObject * obj0 = 0 ;
5043 PyObject * obj1 = 0 ;
5044 char *kwnames[] = {
5045 (char *) "self",(char *) "show", NULL
5046 };
5047
5048 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Caret_Show",kwnames,&obj0,&obj1)) goto fail;
5049 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
5050 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5051 if (obj1) {
5052 arg2 = (int) SWIG_AsInt(obj1);
5053 if (PyErr_Occurred()) SWIG_fail;
5054 }
5055 {
5056 PyThreadState* __tstate = wxPyBeginAllowThreads();
5057 (arg1)->Show(arg2);
5058
5059 wxPyEndAllowThreads(__tstate);
5060 if (PyErr_Occurred()) SWIG_fail;
5061 }
5062 Py_INCREF(Py_None); resultobj = Py_None;
5063 return resultobj;
5064 fail:
5065 return NULL;
5066 }
5067
5068
5069 static PyObject *_wrap_Caret_Hide(PyObject *self, PyObject *args, PyObject *kwargs) {
5070 PyObject *resultobj;
5071 wxCaret *arg1 = (wxCaret *) 0 ;
5072 PyObject * obj0 = 0 ;
5073 char *kwnames[] = {
5074 (char *) "self", NULL
5075 };
5076
5077 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_Hide",kwnames,&obj0)) goto fail;
5078 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
5079 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5080 {
5081 PyThreadState* __tstate = wxPyBeginAllowThreads();
5082 (arg1)->Hide();
5083
5084 wxPyEndAllowThreads(__tstate);
5085 if (PyErr_Occurred()) SWIG_fail;
5086 }
5087 Py_INCREF(Py_None); resultobj = Py_None;
5088 return resultobj;
5089 fail:
5090 return NULL;
5091 }
5092
5093
5094 static PyObject * Caret_swigregister(PyObject *self, PyObject *args) {
5095 PyObject *obj;
5096 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5097 SWIG_TypeClientData(SWIGTYPE_p_wxCaret, obj);
5098 Py_INCREF(obj);
5099 return Py_BuildValue((char *)"");
5100 }
5101 static PyObject *_wrap_Caret_GetBlinkTime(PyObject *self, PyObject *args, PyObject *kwargs) {
5102 PyObject *resultobj;
5103 int result;
5104 char *kwnames[] = {
5105 NULL
5106 };
5107
5108 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Caret_GetBlinkTime",kwnames)) goto fail;
5109 {
5110 PyThreadState* __tstate = wxPyBeginAllowThreads();
5111 result = (int)wxCaret_GetBlinkTime();
5112
5113 wxPyEndAllowThreads(__tstate);
5114 if (PyErr_Occurred()) SWIG_fail;
5115 }
5116 resultobj = SWIG_FromInt((int)result);
5117 return resultobj;
5118 fail:
5119 return NULL;
5120 }
5121
5122
5123 static PyObject *_wrap_Caret_SetBlinkTime(PyObject *self, PyObject *args, PyObject *kwargs) {
5124 PyObject *resultobj;
5125 int arg1 ;
5126 PyObject * obj0 = 0 ;
5127 char *kwnames[] = {
5128 (char *) "milliseconds", NULL
5129 };
5130
5131 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_SetBlinkTime",kwnames,&obj0)) goto fail;
5132 arg1 = (int) SWIG_AsInt(obj0);
5133 if (PyErr_Occurred()) SWIG_fail;
5134 {
5135 PyThreadState* __tstate = wxPyBeginAllowThreads();
5136 wxCaret_SetBlinkTime(arg1);
5137
5138 wxPyEndAllowThreads(__tstate);
5139 if (PyErr_Occurred()) SWIG_fail;
5140 }
5141 Py_INCREF(Py_None); resultobj = Py_None;
5142 return resultobj;
5143 fail:
5144 return NULL;
5145 }
5146
5147
5148 static PyObject *_wrap_new_BusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
5149 PyObject *resultobj;
5150 wxCursor *arg1 = (wxCursor *) wxHOURGLASS_CURSOR ;
5151 wxBusyCursor *result;
5152 PyObject * obj0 = 0 ;
5153 char *kwnames[] = {
5154 (char *) "cursor", NULL
5155 };
5156
5157 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BusyCursor",kwnames,&obj0)) goto fail;
5158 if (obj0) {
5159 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
5160 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5161 }
5162 {
5163 PyThreadState* __tstate = wxPyBeginAllowThreads();
5164 result = (wxBusyCursor *)new wxBusyCursor(arg1);
5165
5166 wxPyEndAllowThreads(__tstate);
5167 if (PyErr_Occurred()) SWIG_fail;
5168 }
5169 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBusyCursor, 1);
5170 return resultobj;
5171 fail:
5172 return NULL;
5173 }
5174
5175
5176 static PyObject *_wrap_delete_BusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
5177 PyObject *resultobj;
5178 wxBusyCursor *arg1 = (wxBusyCursor *) 0 ;
5179 PyObject * obj0 = 0 ;
5180 char *kwnames[] = {
5181 (char *) "self", NULL
5182 };
5183
5184 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BusyCursor",kwnames,&obj0)) goto fail;
5185 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBusyCursor,
5186 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5187 {
5188 PyThreadState* __tstate = wxPyBeginAllowThreads();
5189 delete arg1;
5190
5191 wxPyEndAllowThreads(__tstate);
5192 if (PyErr_Occurred()) SWIG_fail;
5193 }
5194 Py_INCREF(Py_None); resultobj = Py_None;
5195 return resultobj;
5196 fail:
5197 return NULL;
5198 }
5199
5200
5201 static PyObject * BusyCursor_swigregister(PyObject *self, PyObject *args) {
5202 PyObject *obj;
5203 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5204 SWIG_TypeClientData(SWIGTYPE_p_wxBusyCursor, obj);
5205 Py_INCREF(obj);
5206 return Py_BuildValue((char *)"");
5207 }
5208 static PyObject *_wrap_new_WindowDisabler(PyObject *self, PyObject *args, PyObject *kwargs) {
5209 PyObject *resultobj;
5210 wxWindow *arg1 = (wxWindow *) NULL ;
5211 wxWindowDisabler *result;
5212 PyObject * obj0 = 0 ;
5213 char *kwnames[] = {
5214 (char *) "winToSkip", NULL
5215 };
5216
5217 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_WindowDisabler",kwnames,&obj0)) goto fail;
5218 if (obj0) {
5219 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
5220 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5221 }
5222 {
5223 PyThreadState* __tstate = wxPyBeginAllowThreads();
5224 result = (wxWindowDisabler *)new wxWindowDisabler(arg1);
5225
5226 wxPyEndAllowThreads(__tstate);
5227 if (PyErr_Occurred()) SWIG_fail;
5228 }
5229 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowDisabler, 1);
5230 return resultobj;
5231 fail:
5232 return NULL;
5233 }
5234
5235
5236 static PyObject *_wrap_delete_WindowDisabler(PyObject *self, PyObject *args, PyObject *kwargs) {
5237 PyObject *resultobj;
5238 wxWindowDisabler *arg1 = (wxWindowDisabler *) 0 ;
5239 PyObject * obj0 = 0 ;
5240 char *kwnames[] = {
5241 (char *) "self", NULL
5242 };
5243
5244 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_WindowDisabler",kwnames,&obj0)) goto fail;
5245 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindowDisabler,
5246 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5247 {
5248 PyThreadState* __tstate = wxPyBeginAllowThreads();
5249 delete arg1;
5250
5251 wxPyEndAllowThreads(__tstate);
5252 if (PyErr_Occurred()) SWIG_fail;
5253 }
5254 Py_INCREF(Py_None); resultobj = Py_None;
5255 return resultobj;
5256 fail:
5257 return NULL;
5258 }
5259
5260
5261 static PyObject * WindowDisabler_swigregister(PyObject *self, PyObject *args) {
5262 PyObject *obj;
5263 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5264 SWIG_TypeClientData(SWIGTYPE_p_wxWindowDisabler, obj);
5265 Py_INCREF(obj);
5266 return Py_BuildValue((char *)"");
5267 }
5268 static PyObject *_wrap_new_BusyInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
5269 PyObject *resultobj;
5270 wxString *arg1 = 0 ;
5271 wxBusyInfo *result;
5272 bool temp1 = False ;
5273 PyObject * obj0 = 0 ;
5274 char *kwnames[] = {
5275 (char *) "message", NULL
5276 };
5277
5278 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BusyInfo",kwnames,&obj0)) goto fail;
5279 {
5280 arg1 = wxString_in_helper(obj0);
5281 if (arg1 == NULL) SWIG_fail;
5282 temp1 = True;
5283 }
5284 {
5285 PyThreadState* __tstate = wxPyBeginAllowThreads();
5286 result = (wxBusyInfo *)new wxBusyInfo((wxString const &)*arg1);
5287
5288 wxPyEndAllowThreads(__tstate);
5289 if (PyErr_Occurred()) SWIG_fail;
5290 }
5291 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBusyInfo, 1);
5292 {
5293 if (temp1)
5294 delete arg1;
5295 }
5296 return resultobj;
5297 fail:
5298 {
5299 if (temp1)
5300 delete arg1;
5301 }
5302 return NULL;
5303 }
5304
5305
5306 static PyObject *_wrap_delete_BusyInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
5307 PyObject *resultobj;
5308 wxBusyInfo *arg1 = (wxBusyInfo *) 0 ;
5309 PyObject * obj0 = 0 ;
5310 char *kwnames[] = {
5311 (char *) "self", NULL
5312 };
5313
5314 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BusyInfo",kwnames,&obj0)) goto fail;
5315 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBusyInfo,
5316 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5317 {
5318 PyThreadState* __tstate = wxPyBeginAllowThreads();
5319 delete arg1;
5320
5321 wxPyEndAllowThreads(__tstate);
5322 if (PyErr_Occurred()) SWIG_fail;
5323 }
5324 Py_INCREF(Py_None); resultobj = Py_None;
5325 return resultobj;
5326 fail:
5327 return NULL;
5328 }
5329
5330
5331 static PyObject * BusyInfo_swigregister(PyObject *self, PyObject *args) {
5332 PyObject *obj;
5333 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5334 SWIG_TypeClientData(SWIGTYPE_p_wxBusyInfo, obj);
5335 Py_INCREF(obj);
5336 return Py_BuildValue((char *)"");
5337 }
5338 static PyObject *_wrap_new_StopWatch(PyObject *self, PyObject *args, PyObject *kwargs) {
5339 PyObject *resultobj;
5340 wxStopWatch *result;
5341 char *kwnames[] = {
5342 NULL
5343 };
5344
5345 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_StopWatch",kwnames)) goto fail;
5346 {
5347 PyThreadState* __tstate = wxPyBeginAllowThreads();
5348 result = (wxStopWatch *)new wxStopWatch();
5349
5350 wxPyEndAllowThreads(__tstate);
5351 if (PyErr_Occurred()) SWIG_fail;
5352 }
5353 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStopWatch, 1);
5354 return resultobj;
5355 fail:
5356 return NULL;
5357 }
5358
5359
5360 static PyObject *_wrap_StopWatch_Start(PyObject *self, PyObject *args, PyObject *kwargs) {
5361 PyObject *resultobj;
5362 wxStopWatch *arg1 = (wxStopWatch *) 0 ;
5363 long arg2 = (long) 0 ;
5364 PyObject * obj0 = 0 ;
5365 PyObject * obj1 = 0 ;
5366 char *kwnames[] = {
5367 (char *) "self",(char *) "t0", NULL
5368 };
5369
5370 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:StopWatch_Start",kwnames,&obj0,&obj1)) goto fail;
5371 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch,
5372 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5373 if (obj1) {
5374 arg2 = (long) SWIG_AsLong(obj1);
5375 if (PyErr_Occurred()) SWIG_fail;
5376 }
5377 {
5378 PyThreadState* __tstate = wxPyBeginAllowThreads();
5379 (arg1)->Start(arg2);
5380
5381 wxPyEndAllowThreads(__tstate);
5382 if (PyErr_Occurred()) SWIG_fail;
5383 }
5384 Py_INCREF(Py_None); resultobj = Py_None;
5385 return resultobj;
5386 fail:
5387 return NULL;
5388 }
5389
5390
5391 static PyObject *_wrap_StopWatch_Pause(PyObject *self, PyObject *args, PyObject *kwargs) {
5392 PyObject *resultobj;
5393 wxStopWatch *arg1 = (wxStopWatch *) 0 ;
5394 PyObject * obj0 = 0 ;
5395 char *kwnames[] = {
5396 (char *) "self", NULL
5397 };
5398
5399 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Pause",kwnames,&obj0)) goto fail;
5400 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch,
5401 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5402 {
5403 PyThreadState* __tstate = wxPyBeginAllowThreads();
5404 (arg1)->Pause();
5405
5406 wxPyEndAllowThreads(__tstate);
5407 if (PyErr_Occurred()) SWIG_fail;
5408 }
5409 Py_INCREF(Py_None); resultobj = Py_None;
5410 return resultobj;
5411 fail:
5412 return NULL;
5413 }
5414
5415
5416 static PyObject *_wrap_StopWatch_Resume(PyObject *self, PyObject *args, PyObject *kwargs) {
5417 PyObject *resultobj;
5418 wxStopWatch *arg1 = (wxStopWatch *) 0 ;
5419 PyObject * obj0 = 0 ;
5420 char *kwnames[] = {
5421 (char *) "self", NULL
5422 };
5423
5424 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Resume",kwnames,&obj0)) goto fail;
5425 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch,
5426 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5427 {
5428 PyThreadState* __tstate = wxPyBeginAllowThreads();
5429 (arg1)->Resume();
5430
5431 wxPyEndAllowThreads(__tstate);
5432 if (PyErr_Occurred()) SWIG_fail;
5433 }
5434 Py_INCREF(Py_None); resultobj = Py_None;
5435 return resultobj;
5436 fail:
5437 return NULL;
5438 }
5439
5440
5441 static PyObject *_wrap_StopWatch_Time(PyObject *self, PyObject *args, PyObject *kwargs) {
5442 PyObject *resultobj;
5443 wxStopWatch *arg1 = (wxStopWatch *) 0 ;
5444 long result;
5445 PyObject * obj0 = 0 ;
5446 char *kwnames[] = {
5447 (char *) "self", NULL
5448 };
5449
5450 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Time",kwnames,&obj0)) goto fail;
5451 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch,
5452 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5453 {
5454 PyThreadState* __tstate = wxPyBeginAllowThreads();
5455 result = (long)((wxStopWatch const *)arg1)->Time();
5456
5457 wxPyEndAllowThreads(__tstate);
5458 if (PyErr_Occurred()) SWIG_fail;
5459 }
5460 resultobj = SWIG_FromLong((long)result);
5461 return resultobj;
5462 fail:
5463 return NULL;
5464 }
5465
5466
5467 static PyObject * StopWatch_swigregister(PyObject *self, PyObject *args) {
5468 PyObject *obj;
5469 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5470 SWIG_TypeClientData(SWIGTYPE_p_wxStopWatch, obj);
5471 Py_INCREF(obj);
5472 return Py_BuildValue((char *)"");
5473 }
5474 static PyObject *_wrap_new_FileHistory(PyObject *self, PyObject *args, PyObject *kwargs) {
5475 PyObject *resultobj;
5476 int arg1 = (int) 9 ;
5477 wxFileHistory *result;
5478 PyObject * obj0 = 0 ;
5479 char *kwnames[] = {
5480 (char *) "maxFiles", NULL
5481 };
5482
5483 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_FileHistory",kwnames,&obj0)) goto fail;
5484 if (obj0) {
5485 arg1 = (int) SWIG_AsInt(obj0);
5486 if (PyErr_Occurred()) SWIG_fail;
5487 }
5488 {
5489 PyThreadState* __tstate = wxPyBeginAllowThreads();
5490 result = (wxFileHistory *)new wxFileHistory(arg1);
5491
5492 wxPyEndAllowThreads(__tstate);
5493 if (PyErr_Occurred()) SWIG_fail;
5494 }
5495 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileHistory, 1);
5496 return resultobj;
5497 fail:
5498 return NULL;
5499 }
5500
5501
5502 static PyObject *_wrap_delete_FileHistory(PyObject *self, PyObject *args, PyObject *kwargs) {
5503 PyObject *resultobj;
5504 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5505 PyObject * obj0 = 0 ;
5506 char *kwnames[] = {
5507 (char *) "self", NULL
5508 };
5509
5510 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileHistory",kwnames,&obj0)) goto fail;
5511 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5512 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5513 {
5514 PyThreadState* __tstate = wxPyBeginAllowThreads();
5515 delete arg1;
5516
5517 wxPyEndAllowThreads(__tstate);
5518 if (PyErr_Occurred()) SWIG_fail;
5519 }
5520 Py_INCREF(Py_None); resultobj = Py_None;
5521 return resultobj;
5522 fail:
5523 return NULL;
5524 }
5525
5526
5527 static PyObject *_wrap_FileHistory_AddFileToHistory(PyObject *self, PyObject *args, PyObject *kwargs) {
5528 PyObject *resultobj;
5529 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5530 wxString *arg2 = 0 ;
5531 bool temp2 = False ;
5532 PyObject * obj0 = 0 ;
5533 PyObject * obj1 = 0 ;
5534 char *kwnames[] = {
5535 (char *) "self",(char *) "file", NULL
5536 };
5537
5538 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_AddFileToHistory",kwnames,&obj0,&obj1)) goto fail;
5539 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5540 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5541 {
5542 arg2 = wxString_in_helper(obj1);
5543 if (arg2 == NULL) SWIG_fail;
5544 temp2 = True;
5545 }
5546 {
5547 PyThreadState* __tstate = wxPyBeginAllowThreads();
5548 (arg1)->AddFileToHistory((wxString const &)*arg2);
5549
5550 wxPyEndAllowThreads(__tstate);
5551 if (PyErr_Occurred()) SWIG_fail;
5552 }
5553 Py_INCREF(Py_None); resultobj = Py_None;
5554 {
5555 if (temp2)
5556 delete arg2;
5557 }
5558 return resultobj;
5559 fail:
5560 {
5561 if (temp2)
5562 delete arg2;
5563 }
5564 return NULL;
5565 }
5566
5567
5568 static PyObject *_wrap_FileHistory_RemoveFileFromHistory(PyObject *self, PyObject *args, PyObject *kwargs) {
5569 PyObject *resultobj;
5570 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5571 int arg2 ;
5572 PyObject * obj0 = 0 ;
5573 PyObject * obj1 = 0 ;
5574 char *kwnames[] = {
5575 (char *) "self",(char *) "i", NULL
5576 };
5577
5578 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_RemoveFileFromHistory",kwnames,&obj0,&obj1)) goto fail;
5579 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5580 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5581 arg2 = (int) SWIG_AsInt(obj1);
5582 if (PyErr_Occurred()) SWIG_fail;
5583 {
5584 PyThreadState* __tstate = wxPyBeginAllowThreads();
5585 (arg1)->RemoveFileFromHistory(arg2);
5586
5587 wxPyEndAllowThreads(__tstate);
5588 if (PyErr_Occurred()) SWIG_fail;
5589 }
5590 Py_INCREF(Py_None); resultobj = Py_None;
5591 return resultobj;
5592 fail:
5593 return NULL;
5594 }
5595
5596
5597 static PyObject *_wrap_FileHistory_GetMaxFiles(PyObject *self, PyObject *args, PyObject *kwargs) {
5598 PyObject *resultobj;
5599 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5600 int result;
5601 PyObject * obj0 = 0 ;
5602 char *kwnames[] = {
5603 (char *) "self", NULL
5604 };
5605
5606 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_GetMaxFiles",kwnames,&obj0)) goto fail;
5607 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5608 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5609 {
5610 PyThreadState* __tstate = wxPyBeginAllowThreads();
5611 result = (int)((wxFileHistory const *)arg1)->GetMaxFiles();
5612
5613 wxPyEndAllowThreads(__tstate);
5614 if (PyErr_Occurred()) SWIG_fail;
5615 }
5616 resultobj = SWIG_FromInt((int)result);
5617 return resultobj;
5618 fail:
5619 return NULL;
5620 }
5621
5622
5623 static PyObject *_wrap_FileHistory_UseMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
5624 PyObject *resultobj;
5625 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5626 wxMenu *arg2 = (wxMenu *) 0 ;
5627 PyObject * obj0 = 0 ;
5628 PyObject * obj1 = 0 ;
5629 char *kwnames[] = {
5630 (char *) "self",(char *) "menu", NULL
5631 };
5632
5633 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_UseMenu",kwnames,&obj0,&obj1)) goto fail;
5634 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5635 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5636 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu,
5637 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5638 {
5639 PyThreadState* __tstate = wxPyBeginAllowThreads();
5640 (arg1)->UseMenu(arg2);
5641
5642 wxPyEndAllowThreads(__tstate);
5643 if (PyErr_Occurred()) SWIG_fail;
5644 }
5645 Py_INCREF(Py_None); resultobj = Py_None;
5646 return resultobj;
5647 fail:
5648 return NULL;
5649 }
5650
5651
5652 static PyObject *_wrap_FileHistory_RemoveMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
5653 PyObject *resultobj;
5654 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5655 wxMenu *arg2 = (wxMenu *) 0 ;
5656 PyObject * obj0 = 0 ;
5657 PyObject * obj1 = 0 ;
5658 char *kwnames[] = {
5659 (char *) "self",(char *) "menu", NULL
5660 };
5661
5662 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_RemoveMenu",kwnames,&obj0,&obj1)) goto fail;
5663 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5664 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5665 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu,
5666 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5667 {
5668 PyThreadState* __tstate = wxPyBeginAllowThreads();
5669 (arg1)->RemoveMenu(arg2);
5670
5671 wxPyEndAllowThreads(__tstate);
5672 if (PyErr_Occurred()) SWIG_fail;
5673 }
5674 Py_INCREF(Py_None); resultobj = Py_None;
5675 return resultobj;
5676 fail:
5677 return NULL;
5678 }
5679
5680
5681 static PyObject *_wrap_FileHistory_Load(PyObject *self, PyObject *args, PyObject *kwargs) {
5682 PyObject *resultobj;
5683 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5684 wxConfigBase *arg2 = 0 ;
5685 PyObject * obj0 = 0 ;
5686 PyObject * obj1 = 0 ;
5687 char *kwnames[] = {
5688 (char *) "self",(char *) "config", NULL
5689 };
5690
5691 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_Load",kwnames,&obj0,&obj1)) goto fail;
5692 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5693 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5694 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxConfigBase,
5695 SWIG_POINTER_EXCEPTION | 0)) == -1)
5696 SWIG_fail;
5697 if (arg2 == NULL) {
5698 PyErr_SetString(PyExc_TypeError,"null reference");
5699 SWIG_fail;
5700 }
5701 {
5702 PyThreadState* __tstate = wxPyBeginAllowThreads();
5703 (arg1)->Load(*arg2);
5704
5705 wxPyEndAllowThreads(__tstate);
5706 if (PyErr_Occurred()) SWIG_fail;
5707 }
5708 Py_INCREF(Py_None); resultobj = Py_None;
5709 return resultobj;
5710 fail:
5711 return NULL;
5712 }
5713
5714
5715 static PyObject *_wrap_FileHistory_Save(PyObject *self, PyObject *args, PyObject *kwargs) {
5716 PyObject *resultobj;
5717 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5718 wxConfigBase *arg2 = 0 ;
5719 PyObject * obj0 = 0 ;
5720 PyObject * obj1 = 0 ;
5721 char *kwnames[] = {
5722 (char *) "self",(char *) "config", NULL
5723 };
5724
5725 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_Save",kwnames,&obj0,&obj1)) goto fail;
5726 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5727 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5728 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxConfigBase,
5729 SWIG_POINTER_EXCEPTION | 0)) == -1)
5730 SWIG_fail;
5731 if (arg2 == NULL) {
5732 PyErr_SetString(PyExc_TypeError,"null reference");
5733 SWIG_fail;
5734 }
5735 {
5736 PyThreadState* __tstate = wxPyBeginAllowThreads();
5737 (arg1)->Save(*arg2);
5738
5739 wxPyEndAllowThreads(__tstate);
5740 if (PyErr_Occurred()) SWIG_fail;
5741 }
5742 Py_INCREF(Py_None); resultobj = Py_None;
5743 return resultobj;
5744 fail:
5745 return NULL;
5746 }
5747
5748
5749 static PyObject *_wrap_FileHistory_AddFilesToMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
5750 PyObject *resultobj;
5751 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5752 PyObject * obj0 = 0 ;
5753 char *kwnames[] = {
5754 (char *) "self", NULL
5755 };
5756
5757 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_AddFilesToMenu",kwnames,&obj0)) goto fail;
5758 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5759 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5760 {
5761 PyThreadState* __tstate = wxPyBeginAllowThreads();
5762 (arg1)->AddFilesToMenu();
5763
5764 wxPyEndAllowThreads(__tstate);
5765 if (PyErr_Occurred()) SWIG_fail;
5766 }
5767 Py_INCREF(Py_None); resultobj = Py_None;
5768 return resultobj;
5769 fail:
5770 return NULL;
5771 }
5772
5773
5774 static PyObject *_wrap_FileHistory_AddFilesToThisMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
5775 PyObject *resultobj;
5776 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5777 wxMenu *arg2 = (wxMenu *) 0 ;
5778 PyObject * obj0 = 0 ;
5779 PyObject * obj1 = 0 ;
5780 char *kwnames[] = {
5781 (char *) "self",(char *) "menu", NULL
5782 };
5783
5784 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_AddFilesToThisMenu",kwnames,&obj0,&obj1)) goto fail;
5785 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5786 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5787 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu,
5788 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5789 {
5790 PyThreadState* __tstate = wxPyBeginAllowThreads();
5791 (arg1)->AddFilesToMenu(arg2);
5792
5793 wxPyEndAllowThreads(__tstate);
5794 if (PyErr_Occurred()) SWIG_fail;
5795 }
5796 Py_INCREF(Py_None); resultobj = Py_None;
5797 return resultobj;
5798 fail:
5799 return NULL;
5800 }
5801
5802
5803 static PyObject *_wrap_FileHistory_GetHistoryFile(PyObject *self, PyObject *args, PyObject *kwargs) {
5804 PyObject *resultobj;
5805 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5806 int arg2 ;
5807 wxString result;
5808 PyObject * obj0 = 0 ;
5809 PyObject * obj1 = 0 ;
5810 char *kwnames[] = {
5811 (char *) "self",(char *) "i", NULL
5812 };
5813
5814 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_GetHistoryFile",kwnames,&obj0,&obj1)) goto fail;
5815 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5816 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5817 arg2 = (int) SWIG_AsInt(obj1);
5818 if (PyErr_Occurred()) SWIG_fail;
5819 {
5820 PyThreadState* __tstate = wxPyBeginAllowThreads();
5821 result = ((wxFileHistory const *)arg1)->GetHistoryFile(arg2);
5822
5823 wxPyEndAllowThreads(__tstate);
5824 if (PyErr_Occurred()) SWIG_fail;
5825 }
5826 {
5827 #if wxUSE_UNICODE
5828 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5829 #else
5830 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5831 #endif
5832 }
5833 return resultobj;
5834 fail:
5835 return NULL;
5836 }
5837
5838
5839 static PyObject *_wrap_FileHistory_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
5840 PyObject *resultobj;
5841 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5842 int result;
5843 PyObject * obj0 = 0 ;
5844 char *kwnames[] = {
5845 (char *) "self", NULL
5846 };
5847
5848 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_GetCount",kwnames,&obj0)) goto fail;
5849 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5850 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5851 {
5852 PyThreadState* __tstate = wxPyBeginAllowThreads();
5853 result = (int)((wxFileHistory const *)arg1)->GetCount();
5854
5855 wxPyEndAllowThreads(__tstate);
5856 if (PyErr_Occurred()) SWIG_fail;
5857 }
5858 resultobj = SWIG_FromInt((int)result);
5859 return resultobj;
5860 fail:
5861 return NULL;
5862 }
5863
5864
5865 static PyObject * FileHistory_swigregister(PyObject *self, PyObject *args) {
5866 PyObject *obj;
5867 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5868 SWIG_TypeClientData(SWIGTYPE_p_wxFileHistory, obj);
5869 Py_INCREF(obj);
5870 return Py_BuildValue((char *)"");
5871 }
5872 static PyObject *_wrap_new_SingleInstanceChecker(PyObject *self, PyObject *args, PyObject *kwargs) {
5873 PyObject *resultobj;
5874 wxString *arg1 = 0 ;
5875 wxString const &arg2_defvalue = wxPyEmptyString ;
5876 wxString *arg2 = (wxString *) &arg2_defvalue ;
5877 wxSingleInstanceChecker *result;
5878 bool temp1 = False ;
5879 bool temp2 = False ;
5880 PyObject * obj0 = 0 ;
5881 PyObject * obj1 = 0 ;
5882 char *kwnames[] = {
5883 (char *) "name",(char *) "path", NULL
5884 };
5885
5886 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_SingleInstanceChecker",kwnames,&obj0,&obj1)) goto fail;
5887 {
5888 arg1 = wxString_in_helper(obj0);
5889 if (arg1 == NULL) SWIG_fail;
5890 temp1 = True;
5891 }
5892 if (obj1) {
5893 {
5894 arg2 = wxString_in_helper(obj1);
5895 if (arg2 == NULL) SWIG_fail;
5896 temp2 = True;
5897 }
5898 }
5899 {
5900 PyThreadState* __tstate = wxPyBeginAllowThreads();
5901 result = (wxSingleInstanceChecker *)new wxSingleInstanceChecker((wxString const &)*arg1,(wxString const &)*arg2);
5902
5903 wxPyEndAllowThreads(__tstate);
5904 if (PyErr_Occurred()) SWIG_fail;
5905 }
5906 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSingleInstanceChecker, 1);
5907 {
5908 if (temp1)
5909 delete arg1;
5910 }
5911 {
5912 if (temp2)
5913 delete arg2;
5914 }
5915 return resultobj;
5916 fail:
5917 {
5918 if (temp1)
5919 delete arg1;
5920 }
5921 {
5922 if (temp2)
5923 delete arg2;
5924 }
5925 return NULL;
5926 }
5927
5928
5929 static PyObject *_wrap_new_PreSingleInstanceChecker(PyObject *self, PyObject *args, PyObject *kwargs) {
5930 PyObject *resultobj;
5931 wxSingleInstanceChecker *result;
5932 char *kwnames[] = {
5933 NULL
5934 };
5935
5936 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSingleInstanceChecker",kwnames)) goto fail;
5937 {
5938 PyThreadState* __tstate = wxPyBeginAllowThreads();
5939 result = (wxSingleInstanceChecker *)new wxSingleInstanceChecker();
5940
5941 wxPyEndAllowThreads(__tstate);
5942 if (PyErr_Occurred()) SWIG_fail;
5943 }
5944 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSingleInstanceChecker, 1);
5945 return resultobj;
5946 fail:
5947 return NULL;
5948 }
5949
5950
5951 static PyObject *_wrap_delete_SingleInstanceChecker(PyObject *self, PyObject *args, PyObject *kwargs) {
5952 PyObject *resultobj;
5953 wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ;
5954 PyObject * obj0 = 0 ;
5955 char *kwnames[] = {
5956 (char *) "self", NULL
5957 };
5958
5959 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_SingleInstanceChecker",kwnames,&obj0)) goto fail;
5960 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSingleInstanceChecker,
5961 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5962 {
5963 PyThreadState* __tstate = wxPyBeginAllowThreads();
5964 delete arg1;
5965
5966 wxPyEndAllowThreads(__tstate);
5967 if (PyErr_Occurred()) SWIG_fail;
5968 }
5969 Py_INCREF(Py_None); resultobj = Py_None;
5970 return resultobj;
5971 fail:
5972 return NULL;
5973 }
5974
5975
5976 static PyObject *_wrap_SingleInstanceChecker_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
5977 PyObject *resultobj;
5978 wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ;
5979 wxString *arg2 = 0 ;
5980 wxString const &arg3_defvalue = wxPyEmptyString ;
5981 wxString *arg3 = (wxString *) &arg3_defvalue ;
5982 bool result;
5983 bool temp2 = False ;
5984 bool temp3 = False ;
5985 PyObject * obj0 = 0 ;
5986 PyObject * obj1 = 0 ;
5987 PyObject * obj2 = 0 ;
5988 char *kwnames[] = {
5989 (char *) "self",(char *) "name",(char *) "path", NULL
5990 };
5991
5992 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:SingleInstanceChecker_Create",kwnames,&obj0,&obj1,&obj2)) goto fail;
5993 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSingleInstanceChecker,
5994 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5995 {
5996 arg2 = wxString_in_helper(obj1);
5997 if (arg2 == NULL) SWIG_fail;
5998 temp2 = True;
5999 }
6000 if (obj2) {
6001 {
6002 arg3 = wxString_in_helper(obj2);
6003 if (arg3 == NULL) SWIG_fail;
6004 temp3 = True;
6005 }
6006 }
6007 {
6008 PyThreadState* __tstate = wxPyBeginAllowThreads();
6009 result = (bool)(arg1)->Create((wxString const &)*arg2,(wxString const &)*arg3);
6010
6011 wxPyEndAllowThreads(__tstate);
6012 if (PyErr_Occurred()) SWIG_fail;
6013 }
6014 {
6015 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6016 }
6017 {
6018 if (temp2)
6019 delete arg2;
6020 }
6021 {
6022 if (temp3)
6023 delete arg3;
6024 }
6025 return resultobj;
6026 fail:
6027 {
6028 if (temp2)
6029 delete arg2;
6030 }
6031 {
6032 if (temp3)
6033 delete arg3;
6034 }
6035 return NULL;
6036 }
6037
6038
6039 static PyObject *_wrap_SingleInstanceChecker_IsAnotherRunning(PyObject *self, PyObject *args, PyObject *kwargs) {
6040 PyObject *resultobj;
6041 wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ;
6042 bool result;
6043 PyObject * obj0 = 0 ;
6044 char *kwnames[] = {
6045 (char *) "self", NULL
6046 };
6047
6048 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SingleInstanceChecker_IsAnotherRunning",kwnames,&obj0)) goto fail;
6049 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSingleInstanceChecker,
6050 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6051 {
6052 PyThreadState* __tstate = wxPyBeginAllowThreads();
6053 result = (bool)((wxSingleInstanceChecker const *)arg1)->IsAnotherRunning();
6054
6055 wxPyEndAllowThreads(__tstate);
6056 if (PyErr_Occurred()) SWIG_fail;
6057 }
6058 {
6059 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6060 }
6061 return resultobj;
6062 fail:
6063 return NULL;
6064 }
6065
6066
6067 static PyObject * SingleInstanceChecker_swigregister(PyObject *self, PyObject *args) {
6068 PyObject *obj;
6069 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6070 SWIG_TypeClientData(SWIGTYPE_p_wxSingleInstanceChecker, obj);
6071 Py_INCREF(obj);
6072 return Py_BuildValue((char *)"");
6073 }
6074 static PyObject *_wrap_DrawWindowOnDC(PyObject *self, PyObject *args, PyObject *kwargs) {
6075 PyObject *resultobj;
6076 wxWindow *arg1 = (wxWindow *) 0 ;
6077 wxDC *arg2 = 0 ;
6078 int arg3 ;
6079 PyObject * obj0 = 0 ;
6080 PyObject * obj1 = 0 ;
6081 PyObject * obj2 = 0 ;
6082 char *kwnames[] = {
6083 (char *) "window",(char *) "dc",(char *) "method", NULL
6084 };
6085
6086 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DrawWindowOnDC",kwnames,&obj0,&obj1,&obj2)) goto fail;
6087 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
6088 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6089 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC,
6090 SWIG_POINTER_EXCEPTION | 0)) == -1)
6091 SWIG_fail;
6092 if (arg2 == NULL) {
6093 PyErr_SetString(PyExc_TypeError,"null reference");
6094 SWIG_fail;
6095 }
6096 arg3 = (int) SWIG_AsInt(obj2);
6097 if (PyErr_Occurred()) SWIG_fail;
6098 {
6099 PyThreadState* __tstate = wxPyBeginAllowThreads();
6100 wxDrawWindowOnDC(arg1,(wxDC const &)*arg2,arg3);
6101
6102 wxPyEndAllowThreads(__tstate);
6103 if (PyErr_Occurred()) SWIG_fail;
6104 }
6105 Py_INCREF(Py_None); resultobj = Py_None;
6106 return resultobj;
6107 fail:
6108 return NULL;
6109 }
6110
6111
6112 static PyObject *_wrap_delete_TipProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
6113 PyObject *resultobj;
6114 wxTipProvider *arg1 = (wxTipProvider *) 0 ;
6115 PyObject * obj0 = 0 ;
6116 char *kwnames[] = {
6117 (char *) "self", NULL
6118 };
6119
6120 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TipProvider",kwnames,&obj0)) goto fail;
6121 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider,
6122 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6123 {
6124 PyThreadState* __tstate = wxPyBeginAllowThreads();
6125 delete arg1;
6126
6127 wxPyEndAllowThreads(__tstate);
6128 if (PyErr_Occurred()) SWIG_fail;
6129 }
6130 Py_INCREF(Py_None); resultobj = Py_None;
6131 return resultobj;
6132 fail:
6133 return NULL;
6134 }
6135
6136
6137 static PyObject *_wrap_TipProvider_GetTip(PyObject *self, PyObject *args, PyObject *kwargs) {
6138 PyObject *resultobj;
6139 wxTipProvider *arg1 = (wxTipProvider *) 0 ;
6140 wxString result;
6141 PyObject * obj0 = 0 ;
6142 char *kwnames[] = {
6143 (char *) "self", NULL
6144 };
6145
6146 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TipProvider_GetTip",kwnames,&obj0)) goto fail;
6147 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider,
6148 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6149 {
6150 PyThreadState* __tstate = wxPyBeginAllowThreads();
6151 result = (arg1)->GetTip();
6152
6153 wxPyEndAllowThreads(__tstate);
6154 if (PyErr_Occurred()) SWIG_fail;
6155 }
6156 {
6157 #if wxUSE_UNICODE
6158 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6159 #else
6160 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6161 #endif
6162 }
6163 return resultobj;
6164 fail:
6165 return NULL;
6166 }
6167
6168
6169 static PyObject *_wrap_TipProvider_GetCurrentTip(PyObject *self, PyObject *args, PyObject *kwargs) {
6170 PyObject *resultobj;
6171 wxTipProvider *arg1 = (wxTipProvider *) 0 ;
6172 size_t result;
6173 PyObject * obj0 = 0 ;
6174 char *kwnames[] = {
6175 (char *) "self", NULL
6176 };
6177
6178 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TipProvider_GetCurrentTip",kwnames,&obj0)) goto fail;
6179 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider,
6180 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6181 {
6182 PyThreadState* __tstate = wxPyBeginAllowThreads();
6183 result = (size_t)(arg1)->GetCurrentTip();
6184
6185 wxPyEndAllowThreads(__tstate);
6186 if (PyErr_Occurred()) SWIG_fail;
6187 }
6188 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
6189 return resultobj;
6190 fail:
6191 return NULL;
6192 }
6193
6194
6195 static PyObject *_wrap_TipProvider_PreprocessTip(PyObject *self, PyObject *args, PyObject *kwargs) {
6196 PyObject *resultobj;
6197 wxTipProvider *arg1 = (wxTipProvider *) 0 ;
6198 wxString *arg2 = 0 ;
6199 wxString result;
6200 bool temp2 = False ;
6201 PyObject * obj0 = 0 ;
6202 PyObject * obj1 = 0 ;
6203 char *kwnames[] = {
6204 (char *) "self",(char *) "tip", NULL
6205 };
6206
6207 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TipProvider_PreprocessTip",kwnames,&obj0,&obj1)) goto fail;
6208 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider,
6209 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6210 {
6211 arg2 = wxString_in_helper(obj1);
6212 if (arg2 == NULL) SWIG_fail;
6213 temp2 = True;
6214 }
6215 {
6216 PyThreadState* __tstate = wxPyBeginAllowThreads();
6217 result = (arg1)->PreprocessTip((wxString const &)*arg2);
6218
6219 wxPyEndAllowThreads(__tstate);
6220 if (PyErr_Occurred()) SWIG_fail;
6221 }
6222 {
6223 #if wxUSE_UNICODE
6224 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6225 #else
6226 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6227 #endif
6228 }
6229 {
6230 if (temp2)
6231 delete arg2;
6232 }
6233 return resultobj;
6234 fail:
6235 {
6236 if (temp2)
6237 delete arg2;
6238 }
6239 return NULL;
6240 }
6241
6242
6243 static PyObject * TipProvider_swigregister(PyObject *self, PyObject *args) {
6244 PyObject *obj;
6245 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6246 SWIG_TypeClientData(SWIGTYPE_p_wxTipProvider, obj);
6247 Py_INCREF(obj);
6248 return Py_BuildValue((char *)"");
6249 }
6250 static PyObject *_wrap_new_PyTipProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
6251 PyObject *resultobj;
6252 size_t arg1 ;
6253 wxPyTipProvider *result;
6254 PyObject * obj0 = 0 ;
6255 char *kwnames[] = {
6256 (char *) "currentTip", NULL
6257 };
6258
6259 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PyTipProvider",kwnames,&obj0)) goto fail;
6260 arg1 = (size_t) SWIG_AsUnsignedLong(obj0);
6261 if (PyErr_Occurred()) SWIG_fail;
6262 {
6263 PyThreadState* __tstate = wxPyBeginAllowThreads();
6264 result = (wxPyTipProvider *)new wxPyTipProvider(arg1);
6265
6266 wxPyEndAllowThreads(__tstate);
6267 if (PyErr_Occurred()) SWIG_fail;
6268 }
6269 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTipProvider, 1);
6270 return resultobj;
6271 fail:
6272 return NULL;
6273 }
6274
6275
6276 static PyObject *_wrap_PyTipProvider__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6277 PyObject *resultobj;
6278 wxPyTipProvider *arg1 = (wxPyTipProvider *) 0 ;
6279 PyObject *arg2 = (PyObject *) 0 ;
6280 PyObject *arg3 = (PyObject *) 0 ;
6281 PyObject * obj0 = 0 ;
6282 PyObject * obj1 = 0 ;
6283 PyObject * obj2 = 0 ;
6284 char *kwnames[] = {
6285 (char *) "self",(char *) "self",(char *) "_class", NULL
6286 };
6287
6288 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyTipProvider__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
6289 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTipProvider,
6290 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6291 arg2 = obj1;
6292 arg3 = obj2;
6293 {
6294 PyThreadState* __tstate = wxPyBeginAllowThreads();
6295 (arg1)->_setCallbackInfo(arg2,arg3);
6296
6297 wxPyEndAllowThreads(__tstate);
6298 if (PyErr_Occurred()) SWIG_fail;
6299 }
6300 Py_INCREF(Py_None); resultobj = Py_None;
6301 return resultobj;
6302 fail:
6303 return NULL;
6304 }
6305
6306
6307 static PyObject * PyTipProvider_swigregister(PyObject *self, PyObject *args) {
6308 PyObject *obj;
6309 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6310 SWIG_TypeClientData(SWIGTYPE_p_wxPyTipProvider, obj);
6311 Py_INCREF(obj);
6312 return Py_BuildValue((char *)"");
6313 }
6314 static PyObject *_wrap_ShowTip(PyObject *self, PyObject *args, PyObject *kwargs) {
6315 PyObject *resultobj;
6316 wxWindow *arg1 = (wxWindow *) 0 ;
6317 wxTipProvider *arg2 = (wxTipProvider *) 0 ;
6318 bool arg3 = (bool) True ;
6319 bool result;
6320 PyObject * obj0 = 0 ;
6321 PyObject * obj1 = 0 ;
6322 PyObject * obj2 = 0 ;
6323 char *kwnames[] = {
6324 (char *) "parent",(char *) "tipProvider",(char *) "showAtStartup", NULL
6325 };
6326
6327 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ShowTip",kwnames,&obj0,&obj1,&obj2)) goto fail;
6328 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
6329 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6330 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTipProvider,
6331 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6332 if (obj2) {
6333 arg3 = (bool) SWIG_AsBool(obj2);
6334 if (PyErr_Occurred()) SWIG_fail;
6335 }
6336 {
6337 PyThreadState* __tstate = wxPyBeginAllowThreads();
6338 result = (bool)wxShowTip(arg1,arg2,arg3);
6339
6340 wxPyEndAllowThreads(__tstate);
6341 if (PyErr_Occurred()) SWIG_fail;
6342 }
6343 {
6344 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6345 }
6346 return resultobj;
6347 fail:
6348 return NULL;
6349 }
6350
6351
6352 static PyObject *_wrap_CreateFileTipProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
6353 PyObject *resultobj;
6354 wxString *arg1 = 0 ;
6355 size_t arg2 ;
6356 wxTipProvider *result;
6357 bool temp1 = False ;
6358 PyObject * obj0 = 0 ;
6359 PyObject * obj1 = 0 ;
6360 char *kwnames[] = {
6361 (char *) "filename",(char *) "currentTip", NULL
6362 };
6363
6364 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CreateFileTipProvider",kwnames,&obj0,&obj1)) goto fail;
6365 {
6366 arg1 = wxString_in_helper(obj0);
6367 if (arg1 == NULL) SWIG_fail;
6368 temp1 = True;
6369 }
6370 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
6371 if (PyErr_Occurred()) SWIG_fail;
6372 {
6373 PyThreadState* __tstate = wxPyBeginAllowThreads();
6374 result = (wxTipProvider *)wxCreateFileTipProvider((wxString const &)*arg1,arg2);
6375
6376 wxPyEndAllowThreads(__tstate);
6377 if (PyErr_Occurred()) SWIG_fail;
6378 }
6379 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTipProvider, 1);
6380 {
6381 if (temp1)
6382 delete arg1;
6383 }
6384 return resultobj;
6385 fail:
6386 {
6387 if (temp1)
6388 delete arg1;
6389 }
6390 return NULL;
6391 }
6392
6393
6394 static PyObject *_wrap_new_Timer(PyObject *self, PyObject *args, PyObject *kwargs) {
6395 PyObject *resultobj;
6396 wxEvtHandler *arg1 = (wxEvtHandler *) NULL ;
6397 int arg2 = (int) -1 ;
6398 wxPyTimer *result;
6399 PyObject * obj0 = 0 ;
6400 PyObject * obj1 = 0 ;
6401 char *kwnames[] = {
6402 (char *) "owner",(char *) "id", NULL
6403 };
6404
6405 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Timer",kwnames,&obj0,&obj1)) goto fail;
6406 if (obj0) {
6407 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler,
6408 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6409 }
6410 if (obj1) {
6411 arg2 = (int) SWIG_AsInt(obj1);
6412 if (PyErr_Occurred()) SWIG_fail;
6413 }
6414 {
6415 PyThreadState* __tstate = wxPyBeginAllowThreads();
6416 result = (wxPyTimer *)new wxPyTimer(arg1,arg2);
6417
6418 wxPyEndAllowThreads(__tstate);
6419 if (PyErr_Occurred()) SWIG_fail;
6420 }
6421 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTimer, 1);
6422 return resultobj;
6423 fail:
6424 return NULL;
6425 }
6426
6427
6428 static PyObject *_wrap_delete_Timer(PyObject *self, PyObject *args, PyObject *kwargs) {
6429 PyObject *resultobj;
6430 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6431 PyObject * obj0 = 0 ;
6432 char *kwnames[] = {
6433 (char *) "self", NULL
6434 };
6435
6436 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Timer",kwnames,&obj0)) goto fail;
6437 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6438 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6439 {
6440 PyThreadState* __tstate = wxPyBeginAllowThreads();
6441 delete arg1;
6442
6443 wxPyEndAllowThreads(__tstate);
6444 if (PyErr_Occurred()) SWIG_fail;
6445 }
6446 Py_INCREF(Py_None); resultobj = Py_None;
6447 return resultobj;
6448 fail:
6449 return NULL;
6450 }
6451
6452
6453 static PyObject *_wrap_Timer__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6454 PyObject *resultobj;
6455 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6456 PyObject *arg2 = (PyObject *) 0 ;
6457 PyObject *arg3 = (PyObject *) 0 ;
6458 int arg4 = (int) 1 ;
6459 PyObject * obj0 = 0 ;
6460 PyObject * obj1 = 0 ;
6461 PyObject * obj2 = 0 ;
6462 PyObject * obj3 = 0 ;
6463 char *kwnames[] = {
6464 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
6465 };
6466
6467 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Timer__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
6468 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6469 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6470 arg2 = obj1;
6471 arg3 = obj2;
6472 if (obj3) {
6473 arg4 = (int) SWIG_AsInt(obj3);
6474 if (PyErr_Occurred()) SWIG_fail;
6475 }
6476 {
6477 PyThreadState* __tstate = wxPyBeginAllowThreads();
6478 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
6479
6480 wxPyEndAllowThreads(__tstate);
6481 if (PyErr_Occurred()) SWIG_fail;
6482 }
6483 Py_INCREF(Py_None); resultobj = Py_None;
6484 return resultobj;
6485 fail:
6486 return NULL;
6487 }
6488
6489
6490 static PyObject *_wrap_Timer_SetOwner(PyObject *self, PyObject *args, PyObject *kwargs) {
6491 PyObject *resultobj;
6492 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6493 wxEvtHandler *arg2 = (wxEvtHandler *) 0 ;
6494 int arg3 = (int) -1 ;
6495 PyObject * obj0 = 0 ;
6496 PyObject * obj1 = 0 ;
6497 PyObject * obj2 = 0 ;
6498 char *kwnames[] = {
6499 (char *) "self",(char *) "owner",(char *) "id", NULL
6500 };
6501
6502 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Timer_SetOwner",kwnames,&obj0,&obj1,&obj2)) goto fail;
6503 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6504 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6505 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler,
6506 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6507 if (obj2) {
6508 arg3 = (int) SWIG_AsInt(obj2);
6509 if (PyErr_Occurred()) SWIG_fail;
6510 }
6511 {
6512 PyThreadState* __tstate = wxPyBeginAllowThreads();
6513 (arg1)->SetOwner(arg2,arg3);
6514
6515 wxPyEndAllowThreads(__tstate);
6516 if (PyErr_Occurred()) SWIG_fail;
6517 }
6518 Py_INCREF(Py_None); resultobj = Py_None;
6519 return resultobj;
6520 fail:
6521 return NULL;
6522 }
6523
6524
6525 static PyObject *_wrap_Timer_GetOwner(PyObject *self, PyObject *args, PyObject *kwargs) {
6526 PyObject *resultobj;
6527 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6528 wxEvtHandler *result;
6529 PyObject * obj0 = 0 ;
6530 char *kwnames[] = {
6531 (char *) "self", NULL
6532 };
6533
6534 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_GetOwner",kwnames,&obj0)) goto fail;
6535 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6536 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6537 {
6538 PyThreadState* __tstate = wxPyBeginAllowThreads();
6539 result = (wxEvtHandler *)(arg1)->GetOwner();
6540
6541 wxPyEndAllowThreads(__tstate);
6542 if (PyErr_Occurred()) SWIG_fail;
6543 }
6544 {
6545 resultobj = wxPyMake_wxObject(result);
6546 }
6547 return resultobj;
6548 fail:
6549 return NULL;
6550 }
6551
6552
6553 static PyObject *_wrap_Timer_Start(PyObject *self, PyObject *args, PyObject *kwargs) {
6554 PyObject *resultobj;
6555 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6556 int arg2 = (int) -1 ;
6557 bool arg3 = (bool) False ;
6558 bool result;
6559 PyObject * obj0 = 0 ;
6560 PyObject * obj1 = 0 ;
6561 PyObject * obj2 = 0 ;
6562 char *kwnames[] = {
6563 (char *) "self",(char *) "milliseconds",(char *) "oneShot", NULL
6564 };
6565
6566 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Timer_Start",kwnames,&obj0,&obj1,&obj2)) goto fail;
6567 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6568 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6569 if (obj1) {
6570 arg2 = (int) SWIG_AsInt(obj1);
6571 if (PyErr_Occurred()) SWIG_fail;
6572 }
6573 if (obj2) {
6574 arg3 = (bool) SWIG_AsBool(obj2);
6575 if (PyErr_Occurred()) SWIG_fail;
6576 }
6577 {
6578 PyThreadState* __tstate = wxPyBeginAllowThreads();
6579 result = (bool)(arg1)->Start(arg2,arg3);
6580
6581 wxPyEndAllowThreads(__tstate);
6582 if (PyErr_Occurred()) SWIG_fail;
6583 }
6584 {
6585 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6586 }
6587 return resultobj;
6588 fail:
6589 return NULL;
6590 }
6591
6592
6593 static PyObject *_wrap_Timer_Stop(PyObject *self, PyObject *args, PyObject *kwargs) {
6594 PyObject *resultobj;
6595 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6596 PyObject * obj0 = 0 ;
6597 char *kwnames[] = {
6598 (char *) "self", NULL
6599 };
6600
6601 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_Stop",kwnames,&obj0)) goto fail;
6602 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6603 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6604 {
6605 PyThreadState* __tstate = wxPyBeginAllowThreads();
6606 (arg1)->Stop();
6607
6608 wxPyEndAllowThreads(__tstate);
6609 if (PyErr_Occurred()) SWIG_fail;
6610 }
6611 Py_INCREF(Py_None); resultobj = Py_None;
6612 return resultobj;
6613 fail:
6614 return NULL;
6615 }
6616
6617
6618 static PyObject *_wrap_Timer_IsRunning(PyObject *self, PyObject *args, PyObject *kwargs) {
6619 PyObject *resultobj;
6620 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6621 bool result;
6622 PyObject * obj0 = 0 ;
6623 char *kwnames[] = {
6624 (char *) "self", NULL
6625 };
6626
6627 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_IsRunning",kwnames,&obj0)) goto fail;
6628 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6629 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6630 {
6631 PyThreadState* __tstate = wxPyBeginAllowThreads();
6632 result = (bool)((wxPyTimer const *)arg1)->IsRunning();
6633
6634 wxPyEndAllowThreads(__tstate);
6635 if (PyErr_Occurred()) SWIG_fail;
6636 }
6637 {
6638 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6639 }
6640 return resultobj;
6641 fail:
6642 return NULL;
6643 }
6644
6645
6646 static PyObject *_wrap_Timer_GetInterval(PyObject *self, PyObject *args, PyObject *kwargs) {
6647 PyObject *resultobj;
6648 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6649 int result;
6650 PyObject * obj0 = 0 ;
6651 char *kwnames[] = {
6652 (char *) "self", NULL
6653 };
6654
6655 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_GetInterval",kwnames,&obj0)) goto fail;
6656 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6657 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6658 {
6659 PyThreadState* __tstate = wxPyBeginAllowThreads();
6660 result = (int)((wxPyTimer const *)arg1)->GetInterval();
6661
6662 wxPyEndAllowThreads(__tstate);
6663 if (PyErr_Occurred()) SWIG_fail;
6664 }
6665 resultobj = SWIG_FromInt((int)result);
6666 return resultobj;
6667 fail:
6668 return NULL;
6669 }
6670
6671
6672 static PyObject *_wrap_Timer_IsOneShot(PyObject *self, PyObject *args, PyObject *kwargs) {
6673 PyObject *resultobj;
6674 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6675 bool result;
6676 PyObject * obj0 = 0 ;
6677 char *kwnames[] = {
6678 (char *) "self", NULL
6679 };
6680
6681 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_IsOneShot",kwnames,&obj0)) goto fail;
6682 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6683 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6684 {
6685 PyThreadState* __tstate = wxPyBeginAllowThreads();
6686 result = (bool)((wxPyTimer const *)arg1)->IsOneShot();
6687
6688 wxPyEndAllowThreads(__tstate);
6689 if (PyErr_Occurred()) SWIG_fail;
6690 }
6691 {
6692 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6693 }
6694 return resultobj;
6695 fail:
6696 return NULL;
6697 }
6698
6699
6700 static PyObject *_wrap_Timer_GetId(PyObject *self, PyObject *args, PyObject *kwargs) {
6701 PyObject *resultobj;
6702 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6703 int result;
6704 PyObject * obj0 = 0 ;
6705 char *kwnames[] = {
6706 (char *) "self", NULL
6707 };
6708
6709 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_GetId",kwnames,&obj0)) goto fail;
6710 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6711 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6712 {
6713 PyThreadState* __tstate = wxPyBeginAllowThreads();
6714 result = (int)((wxPyTimer const *)arg1)->GetId();
6715
6716 wxPyEndAllowThreads(__tstate);
6717 if (PyErr_Occurred()) SWIG_fail;
6718 }
6719 resultobj = SWIG_FromInt((int)result);
6720 return resultobj;
6721 fail:
6722 return NULL;
6723 }
6724
6725
6726 static PyObject * Timer_swigregister(PyObject *self, PyObject *args) {
6727 PyObject *obj;
6728 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6729 SWIG_TypeClientData(SWIGTYPE_p_wxPyTimer, obj);
6730 Py_INCREF(obj);
6731 return Py_BuildValue((char *)"");
6732 }
6733 static PyObject *_wrap_new_TimerEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
6734 PyObject *resultobj;
6735 int arg1 = (int) 0 ;
6736 int arg2 = (int) 0 ;
6737 wxTimerEvent *result;
6738 PyObject * obj0 = 0 ;
6739 PyObject * obj1 = 0 ;
6740 char *kwnames[] = {
6741 (char *) "timerid",(char *) "interval", NULL
6742 };
6743
6744 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_TimerEvent",kwnames,&obj0,&obj1)) goto fail;
6745 if (obj0) {
6746 arg1 = (int) SWIG_AsInt(obj0);
6747 if (PyErr_Occurred()) SWIG_fail;
6748 }
6749 if (obj1) {
6750 arg2 = (int) SWIG_AsInt(obj1);
6751 if (PyErr_Occurred()) SWIG_fail;
6752 }
6753 {
6754 PyThreadState* __tstate = wxPyBeginAllowThreads();
6755 result = (wxTimerEvent *)new wxTimerEvent(arg1,arg2);
6756
6757 wxPyEndAllowThreads(__tstate);
6758 if (PyErr_Occurred()) SWIG_fail;
6759 }
6760 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimerEvent, 1);
6761 return resultobj;
6762 fail:
6763 return NULL;
6764 }
6765
6766
6767 static PyObject *_wrap_TimerEvent_GetInterval(PyObject *self, PyObject *args, PyObject *kwargs) {
6768 PyObject *resultobj;
6769 wxTimerEvent *arg1 = (wxTimerEvent *) 0 ;
6770 int result;
6771 PyObject * obj0 = 0 ;
6772 char *kwnames[] = {
6773 (char *) "self", NULL
6774 };
6775
6776 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimerEvent_GetInterval",kwnames,&obj0)) goto fail;
6777 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimerEvent,
6778 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6779 {
6780 PyThreadState* __tstate = wxPyBeginAllowThreads();
6781 result = (int)((wxTimerEvent const *)arg1)->GetInterval();
6782
6783 wxPyEndAllowThreads(__tstate);
6784 if (PyErr_Occurred()) SWIG_fail;
6785 }
6786 resultobj = SWIG_FromInt((int)result);
6787 return resultobj;
6788 fail:
6789 return NULL;
6790 }
6791
6792
6793 static PyObject * TimerEvent_swigregister(PyObject *self, PyObject *args) {
6794 PyObject *obj;
6795 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6796 SWIG_TypeClientData(SWIGTYPE_p_wxTimerEvent, obj);
6797 Py_INCREF(obj);
6798 return Py_BuildValue((char *)"");
6799 }
6800 static PyObject *_wrap_new_TimerRunner__SWIG_0(PyObject *self, PyObject *args) {
6801 PyObject *resultobj;
6802 wxTimer *arg1 = 0 ;
6803 wxTimerRunner *result;
6804 PyObject * obj0 = 0 ;
6805
6806 if(!PyArg_ParseTuple(args,(char *)"O:new_TimerRunner",&obj0)) goto fail;
6807 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimer,
6808 SWIG_POINTER_EXCEPTION | 0)) == -1)
6809 SWIG_fail;
6810 if (arg1 == NULL) {
6811 PyErr_SetString(PyExc_TypeError,"null reference");
6812 SWIG_fail;
6813 }
6814 {
6815 PyThreadState* __tstate = wxPyBeginAllowThreads();
6816 result = (wxTimerRunner *)new wxTimerRunner(*arg1);
6817
6818 wxPyEndAllowThreads(__tstate);
6819 if (PyErr_Occurred()) SWIG_fail;
6820 }
6821 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimerRunner, 1);
6822 return resultobj;
6823 fail:
6824 return NULL;
6825 }
6826
6827
6828 static PyObject *_wrap_new_TimerRunner__SWIG_1(PyObject *self, PyObject *args) {
6829 PyObject *resultobj;
6830 wxTimer *arg1 = 0 ;
6831 int arg2 ;
6832 bool arg3 = (bool) False ;
6833 wxTimerRunner *result;
6834 PyObject * obj0 = 0 ;
6835 PyObject * obj1 = 0 ;
6836 PyObject * obj2 = 0 ;
6837
6838 if(!PyArg_ParseTuple(args,(char *)"OO|O:new_TimerRunner",&obj0,&obj1,&obj2)) goto fail;
6839 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimer,
6840 SWIG_POINTER_EXCEPTION | 0)) == -1)
6841 SWIG_fail;
6842 if (arg1 == NULL) {
6843 PyErr_SetString(PyExc_TypeError,"null reference");
6844 SWIG_fail;
6845 }
6846 arg2 = (int) SWIG_AsInt(obj1);
6847 if (PyErr_Occurred()) SWIG_fail;
6848 if (obj2) {
6849 arg3 = (bool) SWIG_AsBool(obj2);
6850 if (PyErr_Occurred()) SWIG_fail;
6851 }
6852 {
6853 PyThreadState* __tstate = wxPyBeginAllowThreads();
6854 result = (wxTimerRunner *)new wxTimerRunner(*arg1,arg2,arg3);
6855
6856 wxPyEndAllowThreads(__tstate);
6857 if (PyErr_Occurred()) SWIG_fail;
6858 }
6859 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimerRunner, 1);
6860 return resultobj;
6861 fail:
6862 return NULL;
6863 }
6864
6865
6866 static PyObject *_wrap_new_TimerRunner(PyObject *self, PyObject *args) {
6867 int argc;
6868 PyObject *argv[4];
6869 int ii;
6870
6871 argc = PyObject_Length(args);
6872 for (ii = 0; (ii < argc) && (ii < 3); ii++) {
6873 argv[ii] = PyTuple_GetItem(args,ii);
6874 }
6875 if (argc == 1) {
6876 int _v;
6877 {
6878 void *ptr;
6879 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxTimer, 0) == -1) {
6880 _v = 0;
6881 PyErr_Clear();
6882 } else {
6883 _v = 1;
6884 }
6885 }
6886 if (_v) {
6887 return _wrap_new_TimerRunner__SWIG_0(self,args);
6888 }
6889 }
6890 if ((argc >= 2) && (argc <= 3)) {
6891 int _v;
6892 {
6893 void *ptr;
6894 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxTimer, 0) == -1) {
6895 _v = 0;
6896 PyErr_Clear();
6897 } else {
6898 _v = 1;
6899 }
6900 }
6901 if (_v) {
6902 _v = SWIG_CheckInt(argv[1]);
6903 if (_v) {
6904 if (argc <= 2) {
6905 return _wrap_new_TimerRunner__SWIG_1(self,args);
6906 }
6907 _v = SWIG_CheckBool(argv[2]);
6908 if (_v) {
6909 return _wrap_new_TimerRunner__SWIG_1(self,args);
6910 }
6911 }
6912 }
6913 }
6914
6915 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_TimerRunner'");
6916 return NULL;
6917 }
6918
6919
6920 static PyObject *_wrap_delete_TimerRunner(PyObject *self, PyObject *args, PyObject *kwargs) {
6921 PyObject *resultobj;
6922 wxTimerRunner *arg1 = (wxTimerRunner *) 0 ;
6923 PyObject * obj0 = 0 ;
6924 char *kwnames[] = {
6925 (char *) "self", NULL
6926 };
6927
6928 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TimerRunner",kwnames,&obj0)) goto fail;
6929 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimerRunner,
6930 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6931 {
6932 PyThreadState* __tstate = wxPyBeginAllowThreads();
6933 delete arg1;
6934
6935 wxPyEndAllowThreads(__tstate);
6936 if (PyErr_Occurred()) SWIG_fail;
6937 }
6938 Py_INCREF(Py_None); resultobj = Py_None;
6939 return resultobj;
6940 fail:
6941 return NULL;
6942 }
6943
6944
6945 static PyObject *_wrap_TimerRunner_Start(PyObject *self, PyObject *args, PyObject *kwargs) {
6946 PyObject *resultobj;
6947 wxTimerRunner *arg1 = (wxTimerRunner *) 0 ;
6948 int arg2 ;
6949 bool arg3 = (bool) False ;
6950 PyObject * obj0 = 0 ;
6951 PyObject * obj1 = 0 ;
6952 PyObject * obj2 = 0 ;
6953 char *kwnames[] = {
6954 (char *) "self",(char *) "milli",(char *) "oneShot", NULL
6955 };
6956
6957 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TimerRunner_Start",kwnames,&obj0,&obj1,&obj2)) goto fail;
6958 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimerRunner,
6959 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6960 arg2 = (int) SWIG_AsInt(obj1);
6961 if (PyErr_Occurred()) SWIG_fail;
6962 if (obj2) {
6963 arg3 = (bool) SWIG_AsBool(obj2);
6964 if (PyErr_Occurred()) SWIG_fail;
6965 }
6966 {
6967 PyThreadState* __tstate = wxPyBeginAllowThreads();
6968 (arg1)->Start(arg2,arg3);
6969
6970 wxPyEndAllowThreads(__tstate);
6971 if (PyErr_Occurred()) SWIG_fail;
6972 }
6973 Py_INCREF(Py_None); resultobj = Py_None;
6974 return resultobj;
6975 fail:
6976 return NULL;
6977 }
6978
6979
6980 static PyObject * TimerRunner_swigregister(PyObject *self, PyObject *args) {
6981 PyObject *obj;
6982 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6983 SWIG_TypeClientData(SWIGTYPE_p_wxTimerRunner, obj);
6984 Py_INCREF(obj);
6985 return Py_BuildValue((char *)"");
6986 }
6987 static PyObject *_wrap_new_Log(PyObject *self, PyObject *args, PyObject *kwargs) {
6988 PyObject *resultobj;
6989 wxLog *result;
6990 char *kwnames[] = {
6991 NULL
6992 };
6993
6994 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Log",kwnames)) goto fail;
6995 {
6996 PyThreadState* __tstate = wxPyBeginAllowThreads();
6997 result = (wxLog *)new wxLog();
6998
6999 wxPyEndAllowThreads(__tstate);
7000 if (PyErr_Occurred()) SWIG_fail;
7001 }
7002 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 1);
7003 return resultobj;
7004 fail:
7005 return NULL;
7006 }
7007
7008
7009 static PyObject *_wrap_Log_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
7010 PyObject *resultobj;
7011 bool result;
7012 char *kwnames[] = {
7013 NULL
7014 };
7015
7016 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_IsEnabled",kwnames)) goto fail;
7017 {
7018 PyThreadState* __tstate = wxPyBeginAllowThreads();
7019 result = (bool)wxLog::IsEnabled();
7020
7021 wxPyEndAllowThreads(__tstate);
7022 if (PyErr_Occurred()) SWIG_fail;
7023 }
7024 {
7025 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7026 }
7027 return resultobj;
7028 fail:
7029 return NULL;
7030 }
7031
7032
7033 static PyObject *_wrap_Log_EnableLogging(PyObject *self, PyObject *args, PyObject *kwargs) {
7034 PyObject *resultobj;
7035 bool arg1 = (bool) True ;
7036 bool result;
7037 PyObject * obj0 = 0 ;
7038 char *kwnames[] = {
7039 (char *) "doIt", NULL
7040 };
7041
7042 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Log_EnableLogging",kwnames,&obj0)) goto fail;
7043 if (obj0) {
7044 arg1 = (bool) SWIG_AsBool(obj0);
7045 if (PyErr_Occurred()) SWIG_fail;
7046 }
7047 {
7048 PyThreadState* __tstate = wxPyBeginAllowThreads();
7049 result = (bool)wxLog::EnableLogging(arg1);
7050
7051 wxPyEndAllowThreads(__tstate);
7052 if (PyErr_Occurred()) SWIG_fail;
7053 }
7054 {
7055 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7056 }
7057 return resultobj;
7058 fail:
7059 return NULL;
7060 }
7061
7062
7063 static PyObject *_wrap_Log_OnLog(PyObject *self, PyObject *args, PyObject *kwargs) {
7064 PyObject *resultobj;
7065 wxLogLevel arg1 ;
7066 wxChar *arg2 = (wxChar *) 0 ;
7067 time_t arg3 ;
7068 PyObject * obj0 = 0 ;
7069 PyObject * obj1 = 0 ;
7070 PyObject * obj2 = 0 ;
7071 char *kwnames[] = {
7072 (char *) "level",(char *) "szString",(char *) "t", NULL
7073 };
7074
7075 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Log_OnLog",kwnames,&obj0,&obj1,&obj2)) goto fail;
7076 arg1 = (wxLogLevel) SWIG_AsUnsignedLong(obj0);
7077 if (PyErr_Occurred()) SWIG_fail;
7078 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxChar,
7079 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7080 arg3 = (time_t) SWIG_AsUnsignedInt(obj2);
7081 if (PyErr_Occurred()) SWIG_fail;
7082 {
7083 PyThreadState* __tstate = wxPyBeginAllowThreads();
7084 wxLog::OnLog(arg1,(wxChar const *)arg2,arg3);
7085
7086 wxPyEndAllowThreads(__tstate);
7087 if (PyErr_Occurred()) SWIG_fail;
7088 }
7089 Py_INCREF(Py_None); resultobj = Py_None;
7090 return resultobj;
7091 fail:
7092 return NULL;
7093 }
7094
7095
7096 static PyObject *_wrap_Log_Flush(PyObject *self, PyObject *args, PyObject *kwargs) {
7097 PyObject *resultobj;
7098 wxLog *arg1 = (wxLog *) 0 ;
7099 PyObject * obj0 = 0 ;
7100 char *kwnames[] = {
7101 (char *) "self", NULL
7102 };
7103
7104 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_Flush",kwnames,&obj0)) goto fail;
7105 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog,
7106 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7107 {
7108 PyThreadState* __tstate = wxPyBeginAllowThreads();
7109 (arg1)->Flush();
7110
7111 wxPyEndAllowThreads(__tstate);
7112 if (PyErr_Occurred()) SWIG_fail;
7113 }
7114 Py_INCREF(Py_None); resultobj = Py_None;
7115 return resultobj;
7116 fail:
7117 return NULL;
7118 }
7119
7120
7121 static PyObject *_wrap_Log_FlushActive(PyObject *self, PyObject *args, PyObject *kwargs) {
7122 PyObject *resultobj;
7123 char *kwnames[] = {
7124 NULL
7125 };
7126
7127 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_FlushActive",kwnames)) goto fail;
7128 {
7129 PyThreadState* __tstate = wxPyBeginAllowThreads();
7130 wxLog::FlushActive();
7131
7132 wxPyEndAllowThreads(__tstate);
7133 if (PyErr_Occurred()) SWIG_fail;
7134 }
7135 Py_INCREF(Py_None); resultobj = Py_None;
7136 return resultobj;
7137 fail:
7138 return NULL;
7139 }
7140
7141
7142 static PyObject *_wrap_Log_GetActiveTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
7143 PyObject *resultobj;
7144 wxLog *result;
7145 char *kwnames[] = {
7146 NULL
7147 };
7148
7149 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetActiveTarget",kwnames)) goto fail;
7150 {
7151 PyThreadState* __tstate = wxPyBeginAllowThreads();
7152 result = (wxLog *)wxLog::GetActiveTarget();
7153
7154 wxPyEndAllowThreads(__tstate);
7155 if (PyErr_Occurred()) SWIG_fail;
7156 }
7157 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0);
7158 return resultobj;
7159 fail:
7160 return NULL;
7161 }
7162
7163
7164 static PyObject *_wrap_Log_SetActiveTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
7165 PyObject *resultobj;
7166 wxLog *arg1 = (wxLog *) 0 ;
7167 wxLog *result;
7168 PyObject * obj0 = 0 ;
7169 char *kwnames[] = {
7170 (char *) "pLogger", NULL
7171 };
7172
7173 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetActiveTarget",kwnames,&obj0)) goto fail;
7174 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog,
7175 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7176 {
7177 PyThreadState* __tstate = wxPyBeginAllowThreads();
7178 result = (wxLog *)wxLog::SetActiveTarget(arg1);
7179
7180 wxPyEndAllowThreads(__tstate);
7181 if (PyErr_Occurred()) SWIG_fail;
7182 }
7183 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0);
7184 return resultobj;
7185 fail:
7186 return NULL;
7187 }
7188
7189
7190 static PyObject *_wrap_Log_Suspend(PyObject *self, PyObject *args, PyObject *kwargs) {
7191 PyObject *resultobj;
7192 char *kwnames[] = {
7193 NULL
7194 };
7195
7196 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_Suspend",kwnames)) goto fail;
7197 {
7198 PyThreadState* __tstate = wxPyBeginAllowThreads();
7199 wxLog::Suspend();
7200
7201 wxPyEndAllowThreads(__tstate);
7202 if (PyErr_Occurred()) SWIG_fail;
7203 }
7204 Py_INCREF(Py_None); resultobj = Py_None;
7205 return resultobj;
7206 fail:
7207 return NULL;
7208 }
7209
7210
7211 static PyObject *_wrap_Log_Resume(PyObject *self, PyObject *args, PyObject *kwargs) {
7212 PyObject *resultobj;
7213 char *kwnames[] = {
7214 NULL
7215 };
7216
7217 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_Resume",kwnames)) goto fail;
7218 {
7219 PyThreadState* __tstate = wxPyBeginAllowThreads();
7220 wxLog::Resume();
7221
7222 wxPyEndAllowThreads(__tstate);
7223 if (PyErr_Occurred()) SWIG_fail;
7224 }
7225 Py_INCREF(Py_None); resultobj = Py_None;
7226 return resultobj;
7227 fail:
7228 return NULL;
7229 }
7230
7231
7232 static PyObject *_wrap_Log_SetVerbose(PyObject *self, PyObject *args, PyObject *kwargs) {
7233 PyObject *resultobj;
7234 bool arg1 = (bool) True ;
7235 PyObject * obj0 = 0 ;
7236 char *kwnames[] = {
7237 (char *) "bVerbose", NULL
7238 };
7239
7240 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Log_SetVerbose",kwnames,&obj0)) goto fail;
7241 if (obj0) {
7242 arg1 = (bool) SWIG_AsBool(obj0);
7243 if (PyErr_Occurred()) SWIG_fail;
7244 }
7245 {
7246 PyThreadState* __tstate = wxPyBeginAllowThreads();
7247 wxLog::SetVerbose(arg1);
7248
7249 wxPyEndAllowThreads(__tstate);
7250 if (PyErr_Occurred()) SWIG_fail;
7251 }
7252 Py_INCREF(Py_None); resultobj = Py_None;
7253 return resultobj;
7254 fail:
7255 return NULL;
7256 }
7257
7258
7259 static PyObject *_wrap_Log_SetLogLevel(PyObject *self, PyObject *args, PyObject *kwargs) {
7260 PyObject *resultobj;
7261 wxLogLevel arg1 ;
7262 PyObject * obj0 = 0 ;
7263 char *kwnames[] = {
7264 (char *) "logLevel", NULL
7265 };
7266
7267 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetLogLevel",kwnames,&obj0)) goto fail;
7268 arg1 = (wxLogLevel) SWIG_AsUnsignedLong(obj0);
7269 if (PyErr_Occurred()) SWIG_fail;
7270 {
7271 PyThreadState* __tstate = wxPyBeginAllowThreads();
7272 wxLog::SetLogLevel(arg1);
7273
7274 wxPyEndAllowThreads(__tstate);
7275 if (PyErr_Occurred()) SWIG_fail;
7276 }
7277 Py_INCREF(Py_None); resultobj = Py_None;
7278 return resultobj;
7279 fail:
7280 return NULL;
7281 }
7282
7283
7284 static PyObject *_wrap_Log_DontCreateOnDemand(PyObject *self, PyObject *args, PyObject *kwargs) {
7285 PyObject *resultobj;
7286 char *kwnames[] = {
7287 NULL
7288 };
7289
7290 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_DontCreateOnDemand",kwnames)) goto fail;
7291 {
7292 PyThreadState* __tstate = wxPyBeginAllowThreads();
7293 wxLog::DontCreateOnDemand();
7294
7295 wxPyEndAllowThreads(__tstate);
7296 if (PyErr_Occurred()) SWIG_fail;
7297 }
7298 Py_INCREF(Py_None); resultobj = Py_None;
7299 return resultobj;
7300 fail:
7301 return NULL;
7302 }
7303
7304
7305 static PyObject *_wrap_Log_SetTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) {
7306 PyObject *resultobj;
7307 wxTraceMask arg1 ;
7308 PyObject * obj0 = 0 ;
7309 char *kwnames[] = {
7310 (char *) "ulMask", NULL
7311 };
7312
7313 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetTraceMask",kwnames,&obj0)) goto fail;
7314 arg1 = (wxTraceMask) SWIG_AsUnsignedLong(obj0);
7315 if (PyErr_Occurred()) SWIG_fail;
7316 {
7317 PyThreadState* __tstate = wxPyBeginAllowThreads();
7318 wxLog::SetTraceMask(arg1);
7319
7320 wxPyEndAllowThreads(__tstate);
7321 if (PyErr_Occurred()) SWIG_fail;
7322 }
7323 Py_INCREF(Py_None); resultobj = Py_None;
7324 return resultobj;
7325 fail:
7326 return NULL;
7327 }
7328
7329
7330 static PyObject *_wrap_Log_AddTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) {
7331 PyObject *resultobj;
7332 wxString *arg1 = 0 ;
7333 bool temp1 = False ;
7334 PyObject * obj0 = 0 ;
7335 char *kwnames[] = {
7336 (char *) "str", NULL
7337 };
7338
7339 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_AddTraceMask",kwnames,&obj0)) goto fail;
7340 {
7341 arg1 = wxString_in_helper(obj0);
7342 if (arg1 == NULL) SWIG_fail;
7343 temp1 = True;
7344 }
7345 {
7346 PyThreadState* __tstate = wxPyBeginAllowThreads();
7347 wxLog::AddTraceMask((wxString const &)*arg1);
7348
7349 wxPyEndAllowThreads(__tstate);
7350 if (PyErr_Occurred()) SWIG_fail;
7351 }
7352 Py_INCREF(Py_None); resultobj = Py_None;
7353 {
7354 if (temp1)
7355 delete arg1;
7356 }
7357 return resultobj;
7358 fail:
7359 {
7360 if (temp1)
7361 delete arg1;
7362 }
7363 return NULL;
7364 }
7365
7366
7367 static PyObject *_wrap_Log_RemoveTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) {
7368 PyObject *resultobj;
7369 wxString *arg1 = 0 ;
7370 bool temp1 = False ;
7371 PyObject * obj0 = 0 ;
7372 char *kwnames[] = {
7373 (char *) "str", NULL
7374 };
7375
7376 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_RemoveTraceMask",kwnames,&obj0)) goto fail;
7377 {
7378 arg1 = wxString_in_helper(obj0);
7379 if (arg1 == NULL) SWIG_fail;
7380 temp1 = True;
7381 }
7382 {
7383 PyThreadState* __tstate = wxPyBeginAllowThreads();
7384 wxLog::RemoveTraceMask((wxString const &)*arg1);
7385
7386 wxPyEndAllowThreads(__tstate);
7387 if (PyErr_Occurred()) SWIG_fail;
7388 }
7389 Py_INCREF(Py_None); resultobj = Py_None;
7390 {
7391 if (temp1)
7392 delete arg1;
7393 }
7394 return resultobj;
7395 fail:
7396 {
7397 if (temp1)
7398 delete arg1;
7399 }
7400 return NULL;
7401 }
7402
7403
7404 static PyObject *_wrap_Log_ClearTraceMasks(PyObject *self, PyObject *args, PyObject *kwargs) {
7405 PyObject *resultobj;
7406 char *kwnames[] = {
7407 NULL
7408 };
7409
7410 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_ClearTraceMasks",kwnames)) goto fail;
7411 {
7412 PyThreadState* __tstate = wxPyBeginAllowThreads();
7413 wxLog::ClearTraceMasks();
7414
7415 wxPyEndAllowThreads(__tstate);
7416 if (PyErr_Occurred()) SWIG_fail;
7417 }
7418 Py_INCREF(Py_None); resultobj = Py_None;
7419 return resultobj;
7420 fail:
7421 return NULL;
7422 }
7423
7424
7425 static PyObject *_wrap_Log_GetTraceMasks(PyObject *self, PyObject *args, PyObject *kwargs) {
7426 PyObject *resultobj;
7427 wxArrayString *result;
7428 char *kwnames[] = {
7429 NULL
7430 };
7431
7432 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTraceMasks",kwnames)) goto fail;
7433 {
7434 PyThreadState* __tstate = wxPyBeginAllowThreads();
7435 {
7436 wxArrayString const &_result_ref = wxLog::GetTraceMasks();
7437 result = (wxArrayString *) &_result_ref;
7438 }
7439
7440 wxPyEndAllowThreads(__tstate);
7441 if (PyErr_Occurred()) SWIG_fail;
7442 }
7443 {
7444 resultobj = wxArrayString2PyList_helper(*result);
7445 }
7446 return resultobj;
7447 fail:
7448 return NULL;
7449 }
7450
7451
7452 static PyObject *_wrap_Log_SetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) {
7453 PyObject *resultobj;
7454 wxChar *arg1 = (wxChar *) 0 ;
7455 PyObject * obj0 = 0 ;
7456 char *kwnames[] = {
7457 (char *) "ts", NULL
7458 };
7459
7460 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetTimestamp",kwnames,&obj0)) goto fail;
7461 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChar,
7462 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7463 {
7464 PyThreadState* __tstate = wxPyBeginAllowThreads();
7465 wxLog::SetTimestamp((wxChar const *)arg1);
7466
7467 wxPyEndAllowThreads(__tstate);
7468 if (PyErr_Occurred()) SWIG_fail;
7469 }
7470 Py_INCREF(Py_None); resultobj = Py_None;
7471 return resultobj;
7472 fail:
7473 return NULL;
7474 }
7475
7476
7477 static PyObject *_wrap_Log_GetVerbose(PyObject *self, PyObject *args, PyObject *kwargs) {
7478 PyObject *resultobj;
7479 bool result;
7480 char *kwnames[] = {
7481 NULL
7482 };
7483
7484 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetVerbose",kwnames)) goto fail;
7485 {
7486 PyThreadState* __tstate = wxPyBeginAllowThreads();
7487 result = (bool)wxLog::GetVerbose();
7488
7489 wxPyEndAllowThreads(__tstate);
7490 if (PyErr_Occurred()) SWIG_fail;
7491 }
7492 {
7493 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7494 }
7495 return resultobj;
7496 fail:
7497 return NULL;
7498 }
7499
7500
7501 static PyObject *_wrap_Log_GetTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) {
7502 PyObject *resultobj;
7503 wxTraceMask result;
7504 char *kwnames[] = {
7505 NULL
7506 };
7507
7508 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTraceMask",kwnames)) goto fail;
7509 {
7510 PyThreadState* __tstate = wxPyBeginAllowThreads();
7511 result = (wxTraceMask)wxLog::GetTraceMask();
7512
7513 wxPyEndAllowThreads(__tstate);
7514 if (PyErr_Occurred()) SWIG_fail;
7515 }
7516 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
7517 return resultobj;
7518 fail:
7519 return NULL;
7520 }
7521
7522
7523 static PyObject *_wrap_Log_IsAllowedTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) {
7524 PyObject *resultobj;
7525 wxChar *arg1 = (wxChar *) 0 ;
7526 bool result;
7527 PyObject * obj0 = 0 ;
7528 char *kwnames[] = {
7529 (char *) "mask", NULL
7530 };
7531
7532 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_IsAllowedTraceMask",kwnames,&obj0)) goto fail;
7533 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChar,
7534 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7535 {
7536 PyThreadState* __tstate = wxPyBeginAllowThreads();
7537 result = (bool)wxLog::IsAllowedTraceMask((wxChar const *)arg1);
7538
7539 wxPyEndAllowThreads(__tstate);
7540 if (PyErr_Occurred()) SWIG_fail;
7541 }
7542 {
7543 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7544 }
7545 return resultobj;
7546 fail:
7547 return NULL;
7548 }
7549
7550
7551 static PyObject *_wrap_Log_GetLogLevel(PyObject *self, PyObject *args, PyObject *kwargs) {
7552 PyObject *resultobj;
7553 wxLogLevel result;
7554 char *kwnames[] = {
7555 NULL
7556 };
7557
7558 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetLogLevel",kwnames)) goto fail;
7559 {
7560 PyThreadState* __tstate = wxPyBeginAllowThreads();
7561 result = (wxLogLevel)wxLog::GetLogLevel();
7562
7563 wxPyEndAllowThreads(__tstate);
7564 if (PyErr_Occurred()) SWIG_fail;
7565 }
7566 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
7567 return resultobj;
7568 fail:
7569 return NULL;
7570 }
7571
7572
7573 static PyObject *_wrap_Log_GetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) {
7574 PyObject *resultobj;
7575 wxChar *result;
7576 char *kwnames[] = {
7577 NULL
7578 };
7579
7580 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTimestamp",kwnames)) goto fail;
7581 {
7582 PyThreadState* __tstate = wxPyBeginAllowThreads();
7583 result = (wxChar *)wxLog::GetTimestamp();
7584
7585 wxPyEndAllowThreads(__tstate);
7586 if (PyErr_Occurred()) SWIG_fail;
7587 }
7588 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChar, 0);
7589 return resultobj;
7590 fail:
7591 return NULL;
7592 }
7593
7594
7595 static PyObject *_wrap_Log_TimeStamp(PyObject *self, PyObject *args, PyObject *kwargs) {
7596 PyObject *resultobj;
7597 wxString result;
7598 char *kwnames[] = {
7599 NULL
7600 };
7601
7602 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_TimeStamp",kwnames)) goto fail;
7603 {
7604 PyThreadState* __tstate = wxPyBeginAllowThreads();
7605 result = Log_TimeStamp();
7606
7607 wxPyEndAllowThreads(__tstate);
7608 if (PyErr_Occurred()) SWIG_fail;
7609 }
7610 {
7611 #if wxUSE_UNICODE
7612 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7613 #else
7614 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7615 #endif
7616 }
7617 return resultobj;
7618 fail:
7619 return NULL;
7620 }
7621
7622
7623 static PyObject *_wrap_Log_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
7624 PyObject *resultobj;
7625 wxLog *arg1 = (wxLog *) 0 ;
7626 PyObject * obj0 = 0 ;
7627 char *kwnames[] = {
7628 (char *) "self", NULL
7629 };
7630
7631 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_Destroy",kwnames,&obj0)) goto fail;
7632 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog,
7633 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7634 {
7635 PyThreadState* __tstate = wxPyBeginAllowThreads();
7636 wxLog_Destroy(arg1);
7637
7638 wxPyEndAllowThreads(__tstate);
7639 if (PyErr_Occurred()) SWIG_fail;
7640 }
7641 Py_INCREF(Py_None); resultobj = Py_None;
7642 return resultobj;
7643 fail:
7644 return NULL;
7645 }
7646
7647
7648 static PyObject * Log_swigregister(PyObject *self, PyObject *args) {
7649 PyObject *obj;
7650 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7651 SWIG_TypeClientData(SWIGTYPE_p_wxLog, obj);
7652 Py_INCREF(obj);
7653 return Py_BuildValue((char *)"");
7654 }
7655 static PyObject *_wrap_new_LogStderr(PyObject *self, PyObject *args, PyObject *kwargs) {
7656 PyObject *resultobj;
7657 wxLogStderr *result;
7658 char *kwnames[] = {
7659 NULL
7660 };
7661
7662 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogStderr",kwnames)) goto fail;
7663 {
7664 PyThreadState* __tstate = wxPyBeginAllowThreads();
7665 result = (wxLogStderr *)new wxLogStderr();
7666
7667 wxPyEndAllowThreads(__tstate);
7668 if (PyErr_Occurred()) SWIG_fail;
7669 }
7670 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogStderr, 1);
7671 return resultobj;
7672 fail:
7673 return NULL;
7674 }
7675
7676
7677 static PyObject * LogStderr_swigregister(PyObject *self, PyObject *args) {
7678 PyObject *obj;
7679 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7680 SWIG_TypeClientData(SWIGTYPE_p_wxLogStderr, obj);
7681 Py_INCREF(obj);
7682 return Py_BuildValue((char *)"");
7683 }
7684 static PyObject *_wrap_new_LogTextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
7685 PyObject *resultobj;
7686 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
7687 wxLogTextCtrl *result;
7688 PyObject * obj0 = 0 ;
7689 char *kwnames[] = {
7690 (char *) "pTextCtrl", NULL
7691 };
7692
7693 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_LogTextCtrl",kwnames,&obj0)) goto fail;
7694 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
7695 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7696 {
7697 PyThreadState* __tstate = wxPyBeginAllowThreads();
7698 result = (wxLogTextCtrl *)new wxLogTextCtrl(arg1);
7699
7700 wxPyEndAllowThreads(__tstate);
7701 if (PyErr_Occurred()) SWIG_fail;
7702 }
7703 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogTextCtrl, 1);
7704 return resultobj;
7705 fail:
7706 return NULL;
7707 }
7708
7709
7710 static PyObject * LogTextCtrl_swigregister(PyObject *self, PyObject *args) {
7711 PyObject *obj;
7712 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7713 SWIG_TypeClientData(SWIGTYPE_p_wxLogTextCtrl, obj);
7714 Py_INCREF(obj);
7715 return Py_BuildValue((char *)"");
7716 }
7717 static PyObject *_wrap_new_LogGui(PyObject *self, PyObject *args, PyObject *kwargs) {
7718 PyObject *resultobj;
7719 wxLogGui *result;
7720 char *kwnames[] = {
7721 NULL
7722 };
7723
7724 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogGui",kwnames)) goto fail;
7725 {
7726 PyThreadState* __tstate = wxPyBeginAllowThreads();
7727 result = (wxLogGui *)new wxLogGui();
7728
7729 wxPyEndAllowThreads(__tstate);
7730 if (PyErr_Occurred()) SWIG_fail;
7731 }
7732 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogGui, 1);
7733 return resultobj;
7734 fail:
7735 return NULL;
7736 }
7737
7738
7739 static PyObject * LogGui_swigregister(PyObject *self, PyObject *args) {
7740 PyObject *obj;
7741 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7742 SWIG_TypeClientData(SWIGTYPE_p_wxLogGui, obj);
7743 Py_INCREF(obj);
7744 return Py_BuildValue((char *)"");
7745 }
7746 static PyObject *_wrap_new_LogWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
7747 PyObject *resultobj;
7748 wxFrame *arg1 = (wxFrame *) 0 ;
7749 wxString *arg2 = 0 ;
7750 bool arg3 = (bool) True ;
7751 bool arg4 = (bool) True ;
7752 wxLogWindow *result;
7753 bool temp2 = False ;
7754 PyObject * obj0 = 0 ;
7755 PyObject * obj1 = 0 ;
7756 PyObject * obj2 = 0 ;
7757 PyObject * obj3 = 0 ;
7758 char *kwnames[] = {
7759 (char *) "pParent",(char *) "szTitle",(char *) "bShow",(char *) "bPassToOld", NULL
7760 };
7761
7762 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_LogWindow",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
7763 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame,
7764 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7765 {
7766 arg2 = wxString_in_helper(obj1);
7767 if (arg2 == NULL) SWIG_fail;
7768 temp2 = True;
7769 }
7770 if (obj2) {
7771 arg3 = (bool) SWIG_AsBool(obj2);
7772 if (PyErr_Occurred()) SWIG_fail;
7773 }
7774 if (obj3) {
7775 arg4 = (bool) SWIG_AsBool(obj3);
7776 if (PyErr_Occurred()) SWIG_fail;
7777 }
7778 {
7779 PyThreadState* __tstate = wxPyBeginAllowThreads();
7780 result = (wxLogWindow *)new wxLogWindow(arg1,(wxString const &)*arg2,arg3,arg4);
7781
7782 wxPyEndAllowThreads(__tstate);
7783 if (PyErr_Occurred()) SWIG_fail;
7784 }
7785 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogWindow, 1);
7786 {
7787 if (temp2)
7788 delete arg2;
7789 }
7790 return resultobj;
7791 fail:
7792 {
7793 if (temp2)
7794 delete arg2;
7795 }
7796 return NULL;
7797 }
7798
7799
7800 static PyObject *_wrap_LogWindow_Show(PyObject *self, PyObject *args, PyObject *kwargs) {
7801 PyObject *resultobj;
7802 wxLogWindow *arg1 = (wxLogWindow *) 0 ;
7803 bool arg2 = (bool) True ;
7804 PyObject * obj0 = 0 ;
7805 PyObject * obj1 = 0 ;
7806 char *kwnames[] = {
7807 (char *) "self",(char *) "bShow", NULL
7808 };
7809
7810 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:LogWindow_Show",kwnames,&obj0,&obj1)) goto fail;
7811 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow,
7812 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7813 if (obj1) {
7814 arg2 = (bool) SWIG_AsBool(obj1);
7815 if (PyErr_Occurred()) SWIG_fail;
7816 }
7817 {
7818 PyThreadState* __tstate = wxPyBeginAllowThreads();
7819 (arg1)->Show(arg2);
7820
7821 wxPyEndAllowThreads(__tstate);
7822 if (PyErr_Occurred()) SWIG_fail;
7823 }
7824 Py_INCREF(Py_None); resultobj = Py_None;
7825 return resultobj;
7826 fail:
7827 return NULL;
7828 }
7829
7830
7831 static PyObject *_wrap_LogWindow_GetFrame(PyObject *self, PyObject *args, PyObject *kwargs) {
7832 PyObject *resultobj;
7833 wxLogWindow *arg1 = (wxLogWindow *) 0 ;
7834 wxFrame *result;
7835 PyObject * obj0 = 0 ;
7836 char *kwnames[] = {
7837 (char *) "self", NULL
7838 };
7839
7840 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_GetFrame",kwnames,&obj0)) goto fail;
7841 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow,
7842 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7843 {
7844 PyThreadState* __tstate = wxPyBeginAllowThreads();
7845 result = (wxFrame *)((wxLogWindow const *)arg1)->GetFrame();
7846
7847 wxPyEndAllowThreads(__tstate);
7848 if (PyErr_Occurred()) SWIG_fail;
7849 }
7850 {
7851 resultobj = wxPyMake_wxObject(result);
7852 }
7853 return resultobj;
7854 fail:
7855 return NULL;
7856 }
7857
7858
7859 static PyObject *_wrap_LogWindow_GetOldLog(PyObject *self, PyObject *args, PyObject *kwargs) {
7860 PyObject *resultobj;
7861 wxLogWindow *arg1 = (wxLogWindow *) 0 ;
7862 wxLog *result;
7863 PyObject * obj0 = 0 ;
7864 char *kwnames[] = {
7865 (char *) "self", NULL
7866 };
7867
7868 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_GetOldLog",kwnames,&obj0)) goto fail;
7869 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow,
7870 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7871 {
7872 PyThreadState* __tstate = wxPyBeginAllowThreads();
7873 result = (wxLog *)((wxLogWindow const *)arg1)->GetOldLog();
7874
7875 wxPyEndAllowThreads(__tstate);
7876 if (PyErr_Occurred()) SWIG_fail;
7877 }
7878 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0);
7879 return resultobj;
7880 fail:
7881 return NULL;
7882 }
7883
7884
7885 static PyObject *_wrap_LogWindow_IsPassingMessages(PyObject *self, PyObject *args, PyObject *kwargs) {
7886 PyObject *resultobj;
7887 wxLogWindow *arg1 = (wxLogWindow *) 0 ;
7888 bool result;
7889 PyObject * obj0 = 0 ;
7890 char *kwnames[] = {
7891 (char *) "self", NULL
7892 };
7893
7894 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_IsPassingMessages",kwnames,&obj0)) goto fail;
7895 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow,
7896 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7897 {
7898 PyThreadState* __tstate = wxPyBeginAllowThreads();
7899 result = (bool)((wxLogWindow const *)arg1)->IsPassingMessages();
7900
7901 wxPyEndAllowThreads(__tstate);
7902 if (PyErr_Occurred()) SWIG_fail;
7903 }
7904 {
7905 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7906 }
7907 return resultobj;
7908 fail:
7909 return NULL;
7910 }
7911
7912
7913 static PyObject *_wrap_LogWindow_PassMessages(PyObject *self, PyObject *args, PyObject *kwargs) {
7914 PyObject *resultobj;
7915 wxLogWindow *arg1 = (wxLogWindow *) 0 ;
7916 bool arg2 ;
7917 PyObject * obj0 = 0 ;
7918 PyObject * obj1 = 0 ;
7919 char *kwnames[] = {
7920 (char *) "self",(char *) "bDoPass", NULL
7921 };
7922
7923 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogWindow_PassMessages",kwnames,&obj0,&obj1)) goto fail;
7924 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow,
7925 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7926 arg2 = (bool) SWIG_AsBool(obj1);
7927 if (PyErr_Occurred()) SWIG_fail;
7928 {
7929 PyThreadState* __tstate = wxPyBeginAllowThreads();
7930 (arg1)->PassMessages(arg2);
7931
7932 wxPyEndAllowThreads(__tstate);
7933 if (PyErr_Occurred()) SWIG_fail;
7934 }
7935 Py_INCREF(Py_None); resultobj = Py_None;
7936 return resultobj;
7937 fail:
7938 return NULL;
7939 }
7940
7941
7942 static PyObject * LogWindow_swigregister(PyObject *self, PyObject *args) {
7943 PyObject *obj;
7944 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7945 SWIG_TypeClientData(SWIGTYPE_p_wxLogWindow, obj);
7946 Py_INCREF(obj);
7947 return Py_BuildValue((char *)"");
7948 }
7949 static PyObject *_wrap_new_LogChain(PyObject *self, PyObject *args, PyObject *kwargs) {
7950 PyObject *resultobj;
7951 wxLog *arg1 = (wxLog *) 0 ;
7952 wxLogChain *result;
7953 PyObject * obj0 = 0 ;
7954 char *kwnames[] = {
7955 (char *) "logger", NULL
7956 };
7957
7958 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_LogChain",kwnames,&obj0)) goto fail;
7959 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog,
7960 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7961 {
7962 PyThreadState* __tstate = wxPyBeginAllowThreads();
7963 result = (wxLogChain *)new wxLogChain(arg1);
7964
7965 wxPyEndAllowThreads(__tstate);
7966 if (PyErr_Occurred()) SWIG_fail;
7967 }
7968 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogChain, 1);
7969 return resultobj;
7970 fail:
7971 return NULL;
7972 }
7973
7974
7975 static PyObject *_wrap_LogChain_SetLog(PyObject *self, PyObject *args, PyObject *kwargs) {
7976 PyObject *resultobj;
7977 wxLogChain *arg1 = (wxLogChain *) 0 ;
7978 wxLog *arg2 = (wxLog *) 0 ;
7979 PyObject * obj0 = 0 ;
7980 PyObject * obj1 = 0 ;
7981 char *kwnames[] = {
7982 (char *) "self",(char *) "logger", NULL
7983 };
7984
7985 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogChain_SetLog",kwnames,&obj0,&obj1)) goto fail;
7986 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain,
7987 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7988 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxLog,
7989 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7990 {
7991 PyThreadState* __tstate = wxPyBeginAllowThreads();
7992 (arg1)->SetLog(arg2);
7993
7994 wxPyEndAllowThreads(__tstate);
7995 if (PyErr_Occurred()) SWIG_fail;
7996 }
7997 Py_INCREF(Py_None); resultobj = Py_None;
7998 return resultobj;
7999 fail:
8000 return NULL;
8001 }
8002
8003
8004 static PyObject *_wrap_LogChain_PassMessages(PyObject *self, PyObject *args, PyObject *kwargs) {
8005 PyObject *resultobj;
8006 wxLogChain *arg1 = (wxLogChain *) 0 ;
8007 bool arg2 ;
8008 PyObject * obj0 = 0 ;
8009 PyObject * obj1 = 0 ;
8010 char *kwnames[] = {
8011 (char *) "self",(char *) "bDoPass", NULL
8012 };
8013
8014 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogChain_PassMessages",kwnames,&obj0,&obj1)) goto fail;
8015 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain,
8016 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8017 arg2 = (bool) SWIG_AsBool(obj1);
8018 if (PyErr_Occurred()) SWIG_fail;
8019 {
8020 PyThreadState* __tstate = wxPyBeginAllowThreads();
8021 (arg1)->PassMessages(arg2);
8022
8023 wxPyEndAllowThreads(__tstate);
8024 if (PyErr_Occurred()) SWIG_fail;
8025 }
8026 Py_INCREF(Py_None); resultobj = Py_None;
8027 return resultobj;
8028 fail:
8029 return NULL;
8030 }
8031
8032
8033 static PyObject *_wrap_LogChain_IsPassingMessages(PyObject *self, PyObject *args, PyObject *kwargs) {
8034 PyObject *resultobj;
8035 wxLogChain *arg1 = (wxLogChain *) 0 ;
8036 bool result;
8037 PyObject * obj0 = 0 ;
8038 char *kwnames[] = {
8039 (char *) "self", NULL
8040 };
8041
8042 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogChain_IsPassingMessages",kwnames,&obj0)) goto fail;
8043 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain,
8044 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8045 {
8046 PyThreadState* __tstate = wxPyBeginAllowThreads();
8047 result = (bool)(arg1)->IsPassingMessages();
8048
8049 wxPyEndAllowThreads(__tstate);
8050 if (PyErr_Occurred()) SWIG_fail;
8051 }
8052 {
8053 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8054 }
8055 return resultobj;
8056 fail:
8057 return NULL;
8058 }
8059
8060
8061 static PyObject *_wrap_LogChain_GetOldLog(PyObject *self, PyObject *args, PyObject *kwargs) {
8062 PyObject *resultobj;
8063 wxLogChain *arg1 = (wxLogChain *) 0 ;
8064 wxLog *result;
8065 PyObject * obj0 = 0 ;
8066 char *kwnames[] = {
8067 (char *) "self", NULL
8068 };
8069
8070 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogChain_GetOldLog",kwnames,&obj0)) goto fail;
8071 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain,
8072 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8073 {
8074 PyThreadState* __tstate = wxPyBeginAllowThreads();
8075 result = (wxLog *)(arg1)->GetOldLog();
8076
8077 wxPyEndAllowThreads(__tstate);
8078 if (PyErr_Occurred()) SWIG_fail;
8079 }
8080 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0);
8081 return resultobj;
8082 fail:
8083 return NULL;
8084 }
8085
8086
8087 static PyObject * LogChain_swigregister(PyObject *self, PyObject *args) {
8088 PyObject *obj;
8089 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8090 SWIG_TypeClientData(SWIGTYPE_p_wxLogChain, obj);
8091 Py_INCREF(obj);
8092 return Py_BuildValue((char *)"");
8093 }
8094 static PyObject *_wrap_SysErrorCode(PyObject *self, PyObject *args, PyObject *kwargs) {
8095 PyObject *resultobj;
8096 unsigned long result;
8097 char *kwnames[] = {
8098 NULL
8099 };
8100
8101 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":SysErrorCode",kwnames)) goto fail;
8102 {
8103 PyThreadState* __tstate = wxPyBeginAllowThreads();
8104 result = (unsigned long)wxSysErrorCode();
8105
8106 wxPyEndAllowThreads(__tstate);
8107 if (PyErr_Occurred()) SWIG_fail;
8108 }
8109 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
8110 return resultobj;
8111 fail:
8112 return NULL;
8113 }
8114
8115
8116 static PyObject *_wrap_SysErrorMsg(PyObject *self, PyObject *args, PyObject *kwargs) {
8117 PyObject *resultobj;
8118 unsigned long arg1 = (unsigned long) 0 ;
8119 wxString result;
8120 PyObject * obj0 = 0 ;
8121 char *kwnames[] = {
8122 (char *) "nErrCode", NULL
8123 };
8124
8125 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SysErrorMsg",kwnames,&obj0)) goto fail;
8126 if (obj0) {
8127 arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0);
8128 if (PyErr_Occurred()) SWIG_fail;
8129 }
8130 {
8131 PyThreadState* __tstate = wxPyBeginAllowThreads();
8132 result = wxSysErrorMsg(arg1);
8133
8134 wxPyEndAllowThreads(__tstate);
8135 if (PyErr_Occurred()) SWIG_fail;
8136 }
8137 {
8138 #if wxUSE_UNICODE
8139 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8140 #else
8141 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8142 #endif
8143 }
8144 return resultobj;
8145 fail:
8146 return NULL;
8147 }
8148
8149
8150 static PyObject *_wrap_LogFatalError(PyObject *self, PyObject *args, PyObject *kwargs) {
8151 PyObject *resultobj;
8152 wxString *arg1 = 0 ;
8153 bool temp1 = False ;
8154 PyObject * obj0 = 0 ;
8155 char *kwnames[] = {
8156 (char *) "msg", NULL
8157 };
8158
8159 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogFatalError",kwnames,&obj0)) goto fail;
8160 {
8161 arg1 = wxString_in_helper(obj0);
8162 if (arg1 == NULL) SWIG_fail;
8163 temp1 = True;
8164 }
8165 {
8166 PyThreadState* __tstate = wxPyBeginAllowThreads();
8167 wxLogFatalError((wxString const &)*arg1);
8168
8169 wxPyEndAllowThreads(__tstate);
8170 if (PyErr_Occurred()) SWIG_fail;
8171 }
8172 Py_INCREF(Py_None); resultobj = Py_None;
8173 {
8174 if (temp1)
8175 delete arg1;
8176 }
8177 return resultobj;
8178 fail:
8179 {
8180 if (temp1)
8181 delete arg1;
8182 }
8183 return NULL;
8184 }
8185
8186
8187 static PyObject *_wrap_LogError(PyObject *self, PyObject *args, PyObject *kwargs) {
8188 PyObject *resultobj;
8189 wxString *arg1 = 0 ;
8190 bool temp1 = False ;
8191 PyObject * obj0 = 0 ;
8192 char *kwnames[] = {
8193 (char *) "msg", NULL
8194 };
8195
8196 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogError",kwnames,&obj0)) goto fail;
8197 {
8198 arg1 = wxString_in_helper(obj0);
8199 if (arg1 == NULL) SWIG_fail;
8200 temp1 = True;
8201 }
8202 {
8203 PyThreadState* __tstate = wxPyBeginAllowThreads();
8204 wxLogError((wxString const &)*arg1);
8205
8206 wxPyEndAllowThreads(__tstate);
8207 if (PyErr_Occurred()) SWIG_fail;
8208 }
8209 Py_INCREF(Py_None); resultobj = Py_None;
8210 {
8211 if (temp1)
8212 delete arg1;
8213 }
8214 return resultobj;
8215 fail:
8216 {
8217 if (temp1)
8218 delete arg1;
8219 }
8220 return NULL;
8221 }
8222
8223
8224 static PyObject *_wrap_LogWarning(PyObject *self, PyObject *args, PyObject *kwargs) {
8225 PyObject *resultobj;
8226 wxString *arg1 = 0 ;
8227 bool temp1 = False ;
8228 PyObject * obj0 = 0 ;
8229 char *kwnames[] = {
8230 (char *) "msg", NULL
8231 };
8232
8233 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWarning",kwnames,&obj0)) goto fail;
8234 {
8235 arg1 = wxString_in_helper(obj0);
8236 if (arg1 == NULL) SWIG_fail;
8237 temp1 = True;
8238 }
8239 {
8240 PyThreadState* __tstate = wxPyBeginAllowThreads();
8241 wxLogWarning((wxString const &)*arg1);
8242
8243 wxPyEndAllowThreads(__tstate);
8244 if (PyErr_Occurred()) SWIG_fail;
8245 }
8246 Py_INCREF(Py_None); resultobj = Py_None;
8247 {
8248 if (temp1)
8249 delete arg1;
8250 }
8251 return resultobj;
8252 fail:
8253 {
8254 if (temp1)
8255 delete arg1;
8256 }
8257 return NULL;
8258 }
8259
8260
8261 static PyObject *_wrap_LogMessage(PyObject *self, PyObject *args, PyObject *kwargs) {
8262 PyObject *resultobj;
8263 wxString *arg1 = 0 ;
8264 bool temp1 = False ;
8265 PyObject * obj0 = 0 ;
8266 char *kwnames[] = {
8267 (char *) "msg", NULL
8268 };
8269
8270 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogMessage",kwnames,&obj0)) goto fail;
8271 {
8272 arg1 = wxString_in_helper(obj0);
8273 if (arg1 == NULL) SWIG_fail;
8274 temp1 = True;
8275 }
8276 {
8277 PyThreadState* __tstate = wxPyBeginAllowThreads();
8278 wxLogMessage((wxString const &)*arg1);
8279
8280 wxPyEndAllowThreads(__tstate);
8281 if (PyErr_Occurred()) SWIG_fail;
8282 }
8283 Py_INCREF(Py_None); resultobj = Py_None;
8284 {
8285 if (temp1)
8286 delete arg1;
8287 }
8288 return resultobj;
8289 fail:
8290 {
8291 if (temp1)
8292 delete arg1;
8293 }
8294 return NULL;
8295 }
8296
8297
8298 static PyObject *_wrap_LogInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8299 PyObject *resultobj;
8300 wxString *arg1 = 0 ;
8301 bool temp1 = False ;
8302 PyObject * obj0 = 0 ;
8303 char *kwnames[] = {
8304 (char *) "msg", NULL
8305 };
8306
8307 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogInfo",kwnames,&obj0)) goto fail;
8308 {
8309 arg1 = wxString_in_helper(obj0);
8310 if (arg1 == NULL) SWIG_fail;
8311 temp1 = True;
8312 }
8313 {
8314 PyThreadState* __tstate = wxPyBeginAllowThreads();
8315 wxLogInfo((wxString const &)*arg1);
8316
8317 wxPyEndAllowThreads(__tstate);
8318 if (PyErr_Occurred()) SWIG_fail;
8319 }
8320 Py_INCREF(Py_None); resultobj = Py_None;
8321 {
8322 if (temp1)
8323 delete arg1;
8324 }
8325 return resultobj;
8326 fail:
8327 {
8328 if (temp1)
8329 delete arg1;
8330 }
8331 return NULL;
8332 }
8333
8334
8335 static PyObject *_wrap_LogDebug(PyObject *self, PyObject *args, PyObject *kwargs) {
8336 PyObject *resultobj;
8337 wxString *arg1 = 0 ;
8338 bool temp1 = False ;
8339 PyObject * obj0 = 0 ;
8340 char *kwnames[] = {
8341 (char *) "msg", NULL
8342 };
8343
8344 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogDebug",kwnames,&obj0)) goto fail;
8345 {
8346 arg1 = wxString_in_helper(obj0);
8347 if (arg1 == NULL) SWIG_fail;
8348 temp1 = True;
8349 }
8350 {
8351 PyThreadState* __tstate = wxPyBeginAllowThreads();
8352 wxLogDebug((wxString const &)*arg1);
8353
8354 wxPyEndAllowThreads(__tstate);
8355 if (PyErr_Occurred()) SWIG_fail;
8356 }
8357 Py_INCREF(Py_None); resultobj = Py_None;
8358 {
8359 if (temp1)
8360 delete arg1;
8361 }
8362 return resultobj;
8363 fail:
8364 {
8365 if (temp1)
8366 delete arg1;
8367 }
8368 return NULL;
8369 }
8370
8371
8372 static PyObject *_wrap_LogVerbose(PyObject *self, PyObject *args, PyObject *kwargs) {
8373 PyObject *resultobj;
8374 wxString *arg1 = 0 ;
8375 bool temp1 = False ;
8376 PyObject * obj0 = 0 ;
8377 char *kwnames[] = {
8378 (char *) "msg", NULL
8379 };
8380
8381 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogVerbose",kwnames,&obj0)) goto fail;
8382 {
8383 arg1 = wxString_in_helper(obj0);
8384 if (arg1 == NULL) SWIG_fail;
8385 temp1 = True;
8386 }
8387 {
8388 PyThreadState* __tstate = wxPyBeginAllowThreads();
8389 wxLogVerbose((wxString const &)*arg1);
8390
8391 wxPyEndAllowThreads(__tstate);
8392 if (PyErr_Occurred()) SWIG_fail;
8393 }
8394 Py_INCREF(Py_None); resultobj = Py_None;
8395 {
8396 if (temp1)
8397 delete arg1;
8398 }
8399 return resultobj;
8400 fail:
8401 {
8402 if (temp1)
8403 delete arg1;
8404 }
8405 return NULL;
8406 }
8407
8408
8409 static PyObject *_wrap_LogStatus(PyObject *self, PyObject *args, PyObject *kwargs) {
8410 PyObject *resultobj;
8411 wxString *arg1 = 0 ;
8412 bool temp1 = False ;
8413 PyObject * obj0 = 0 ;
8414 char *kwnames[] = {
8415 (char *) "msg", NULL
8416 };
8417
8418 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogStatus",kwnames,&obj0)) goto fail;
8419 {
8420 arg1 = wxString_in_helper(obj0);
8421 if (arg1 == NULL) SWIG_fail;
8422 temp1 = True;
8423 }
8424 {
8425 PyThreadState* __tstate = wxPyBeginAllowThreads();
8426 wxLogStatus((wxString const &)*arg1);
8427
8428 wxPyEndAllowThreads(__tstate);
8429 if (PyErr_Occurred()) SWIG_fail;
8430 }
8431 Py_INCREF(Py_None); resultobj = Py_None;
8432 {
8433 if (temp1)
8434 delete arg1;
8435 }
8436 return resultobj;
8437 fail:
8438 {
8439 if (temp1)
8440 delete arg1;
8441 }
8442 return NULL;
8443 }
8444
8445
8446 static PyObject *_wrap_LogStatusFrame(PyObject *self, PyObject *args, PyObject *kwargs) {
8447 PyObject *resultobj;
8448 wxFrame *arg1 = (wxFrame *) 0 ;
8449 wxString *arg2 = 0 ;
8450 bool temp2 = False ;
8451 PyObject * obj0 = 0 ;
8452 PyObject * obj1 = 0 ;
8453 char *kwnames[] = {
8454 (char *) "pFrame",(char *) "msg", NULL
8455 };
8456
8457 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogStatusFrame",kwnames,&obj0,&obj1)) goto fail;
8458 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame,
8459 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8460 {
8461 arg2 = wxString_in_helper(obj1);
8462 if (arg2 == NULL) SWIG_fail;
8463 temp2 = True;
8464 }
8465 {
8466 PyThreadState* __tstate = wxPyBeginAllowThreads();
8467 wxLogStatus(arg1,(wxString const &)*arg2);
8468
8469 wxPyEndAllowThreads(__tstate);
8470 if (PyErr_Occurred()) SWIG_fail;
8471 }
8472 Py_INCREF(Py_None); resultobj = Py_None;
8473 {
8474 if (temp2)
8475 delete arg2;
8476 }
8477 return resultobj;
8478 fail:
8479 {
8480 if (temp2)
8481 delete arg2;
8482 }
8483 return NULL;
8484 }
8485
8486
8487 static PyObject *_wrap_LogSysError(PyObject *self, PyObject *args, PyObject *kwargs) {
8488 PyObject *resultobj;
8489 wxString *arg1 = 0 ;
8490 bool temp1 = False ;
8491 PyObject * obj0 = 0 ;
8492 char *kwnames[] = {
8493 (char *) "msg", NULL
8494 };
8495
8496 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogSysError",kwnames,&obj0)) goto fail;
8497 {
8498 arg1 = wxString_in_helper(obj0);
8499 if (arg1 == NULL) SWIG_fail;
8500 temp1 = True;
8501 }
8502 {
8503 PyThreadState* __tstate = wxPyBeginAllowThreads();
8504 wxLogSysError((wxString const &)*arg1);
8505
8506 wxPyEndAllowThreads(__tstate);
8507 if (PyErr_Occurred()) SWIG_fail;
8508 }
8509 Py_INCREF(Py_None); resultobj = Py_None;
8510 {
8511 if (temp1)
8512 delete arg1;
8513 }
8514 return resultobj;
8515 fail:
8516 {
8517 if (temp1)
8518 delete arg1;
8519 }
8520 return NULL;
8521 }
8522
8523
8524 static PyObject *_wrap_LogTrace__SWIG_0(PyObject *self, PyObject *args) {
8525 PyObject *resultobj;
8526 unsigned long arg1 ;
8527 wxString *arg2 = 0 ;
8528 bool temp2 = False ;
8529 PyObject * obj0 = 0 ;
8530 PyObject * obj1 = 0 ;
8531
8532 if(!PyArg_ParseTuple(args,(char *)"OO:LogTrace",&obj0,&obj1)) goto fail;
8533 arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0);
8534 if (PyErr_Occurred()) SWIG_fail;
8535 {
8536 arg2 = wxString_in_helper(obj1);
8537 if (arg2 == NULL) SWIG_fail;
8538 temp2 = True;
8539 }
8540 {
8541 PyThreadState* __tstate = wxPyBeginAllowThreads();
8542 wxLogTrace(arg1,(wxString const &)*arg2);
8543
8544 wxPyEndAllowThreads(__tstate);
8545 if (PyErr_Occurred()) SWIG_fail;
8546 }
8547 Py_INCREF(Py_None); resultobj = Py_None;
8548 {
8549 if (temp2)
8550 delete arg2;
8551 }
8552 return resultobj;
8553 fail:
8554 {
8555 if (temp2)
8556 delete arg2;
8557 }
8558 return NULL;
8559 }
8560
8561
8562 static PyObject *_wrap_LogTrace__SWIG_1(PyObject *self, PyObject *args) {
8563 PyObject *resultobj;
8564 wxString *arg1 = 0 ;
8565 wxString *arg2 = 0 ;
8566 bool temp1 = False ;
8567 bool temp2 = False ;
8568 PyObject * obj0 = 0 ;
8569 PyObject * obj1 = 0 ;
8570
8571 if(!PyArg_ParseTuple(args,(char *)"OO:LogTrace",&obj0,&obj1)) goto fail;
8572 {
8573 arg1 = wxString_in_helper(obj0);
8574 if (arg1 == NULL) SWIG_fail;
8575 temp1 = True;
8576 }
8577 {
8578 arg2 = wxString_in_helper(obj1);
8579 if (arg2 == NULL) SWIG_fail;
8580 temp2 = True;
8581 }
8582 {
8583 PyThreadState* __tstate = wxPyBeginAllowThreads();
8584 wxLogTrace((wxString const &)*arg1,(wxString const &)*arg2);
8585
8586 wxPyEndAllowThreads(__tstate);
8587 if (PyErr_Occurred()) SWIG_fail;
8588 }
8589 Py_INCREF(Py_None); resultobj = Py_None;
8590 {
8591 if (temp1)
8592 delete arg1;
8593 }
8594 {
8595 if (temp2)
8596 delete arg2;
8597 }
8598 return resultobj;
8599 fail:
8600 {
8601 if (temp1)
8602 delete arg1;
8603 }
8604 {
8605 if (temp2)
8606 delete arg2;
8607 }
8608 return NULL;
8609 }
8610
8611
8612 static PyObject *_wrap_LogTrace(PyObject *self, PyObject *args) {
8613 int argc;
8614 PyObject *argv[3];
8615 int ii;
8616
8617 argc = PyObject_Length(args);
8618 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
8619 argv[ii] = PyTuple_GetItem(args,ii);
8620 }
8621 if (argc == 2) {
8622 int _v;
8623 {
8624 _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]);
8625 }
8626 if (_v) {
8627 {
8628 _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]);
8629 }
8630 if (_v) {
8631 return _wrap_LogTrace__SWIG_1(self,args);
8632 }
8633 }
8634 }
8635 if (argc == 2) {
8636 int _v;
8637 _v = SWIG_CheckUnsignedLong(argv[0]);
8638 if (_v) {
8639 {
8640 _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]);
8641 }
8642 if (_v) {
8643 return _wrap_LogTrace__SWIG_0(self,args);
8644 }
8645 }
8646 }
8647
8648 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'LogTrace'");
8649 return NULL;
8650 }
8651
8652
8653 static PyObject *_wrap_LogGeneric(PyObject *self, PyObject *args, PyObject *kwargs) {
8654 PyObject *resultobj;
8655 unsigned long arg1 ;
8656 wxString *arg2 = 0 ;
8657 bool temp2 = False ;
8658 PyObject * obj0 = 0 ;
8659 PyObject * obj1 = 0 ;
8660 char *kwnames[] = {
8661 (char *) "level",(char *) "msg", NULL
8662 };
8663
8664 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogGeneric",kwnames,&obj0,&obj1)) goto fail;
8665 arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0);
8666 if (PyErr_Occurred()) SWIG_fail;
8667 {
8668 arg2 = wxString_in_helper(obj1);
8669 if (arg2 == NULL) SWIG_fail;
8670 temp2 = True;
8671 }
8672 {
8673 PyThreadState* __tstate = wxPyBeginAllowThreads();
8674 wxLogGeneric(arg1,(wxString const &)*arg2);
8675
8676 wxPyEndAllowThreads(__tstate);
8677 if (PyErr_Occurred()) SWIG_fail;
8678 }
8679 Py_INCREF(Py_None); resultobj = Py_None;
8680 {
8681 if (temp2)
8682 delete arg2;
8683 }
8684 return resultobj;
8685 fail:
8686 {
8687 if (temp2)
8688 delete arg2;
8689 }
8690 return NULL;
8691 }
8692
8693
8694 static PyObject *_wrap_SafeShowMessage(PyObject *self, PyObject *args, PyObject *kwargs) {
8695 PyObject *resultobj;
8696 wxString *arg1 = 0 ;
8697 wxString *arg2 = 0 ;
8698 bool temp1 = False ;
8699 bool temp2 = False ;
8700 PyObject * obj0 = 0 ;
8701 PyObject * obj1 = 0 ;
8702 char *kwnames[] = {
8703 (char *) "title",(char *) "text", NULL
8704 };
8705
8706 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SafeShowMessage",kwnames,&obj0,&obj1)) goto fail;
8707 {
8708 arg1 = wxString_in_helper(obj0);
8709 if (arg1 == NULL) SWIG_fail;
8710 temp1 = True;
8711 }
8712 {
8713 arg2 = wxString_in_helper(obj1);
8714 if (arg2 == NULL) SWIG_fail;
8715 temp2 = True;
8716 }
8717 {
8718 PyThreadState* __tstate = wxPyBeginAllowThreads();
8719 wxSafeShowMessage((wxString const &)*arg1,(wxString const &)*arg2);
8720
8721 wxPyEndAllowThreads(__tstate);
8722 if (PyErr_Occurred()) SWIG_fail;
8723 }
8724 Py_INCREF(Py_None); resultobj = Py_None;
8725 {
8726 if (temp1)
8727 delete arg1;
8728 }
8729 {
8730 if (temp2)
8731 delete arg2;
8732 }
8733 return resultobj;
8734 fail:
8735 {
8736 if (temp1)
8737 delete arg1;
8738 }
8739 {
8740 if (temp2)
8741 delete arg2;
8742 }
8743 return NULL;
8744 }
8745
8746
8747 static PyObject *_wrap_new_LogNull(PyObject *self, PyObject *args, PyObject *kwargs) {
8748 PyObject *resultobj;
8749 wxLogNull *result;
8750 char *kwnames[] = {
8751 NULL
8752 };
8753
8754 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogNull",kwnames)) goto fail;
8755 {
8756 PyThreadState* __tstate = wxPyBeginAllowThreads();
8757 result = (wxLogNull *)new wxLogNull();
8758
8759 wxPyEndAllowThreads(__tstate);
8760 if (PyErr_Occurred()) SWIG_fail;
8761 }
8762 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogNull, 1);
8763 return resultobj;
8764 fail:
8765 return NULL;
8766 }
8767
8768
8769 static PyObject *_wrap_delete_LogNull(PyObject *self, PyObject *args, PyObject *kwargs) {
8770 PyObject *resultobj;
8771 wxLogNull *arg1 = (wxLogNull *) 0 ;
8772 PyObject * obj0 = 0 ;
8773 char *kwnames[] = {
8774 (char *) "self", NULL
8775 };
8776
8777 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_LogNull",kwnames,&obj0)) goto fail;
8778 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogNull,
8779 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8780 {
8781 PyThreadState* __tstate = wxPyBeginAllowThreads();
8782 delete arg1;
8783
8784 wxPyEndAllowThreads(__tstate);
8785 if (PyErr_Occurred()) SWIG_fail;
8786 }
8787 Py_INCREF(Py_None); resultobj = Py_None;
8788 return resultobj;
8789 fail:
8790 return NULL;
8791 }
8792
8793
8794 static PyObject * LogNull_swigregister(PyObject *self, PyObject *args) {
8795 PyObject *obj;
8796 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8797 SWIG_TypeClientData(SWIGTYPE_p_wxLogNull, obj);
8798 Py_INCREF(obj);
8799 return Py_BuildValue((char *)"");
8800 }
8801 static PyObject *_wrap_new_PyLog(PyObject *self, PyObject *args, PyObject *kwargs) {
8802 PyObject *resultobj;
8803 wxPyLog *result;
8804 char *kwnames[] = {
8805 NULL
8806 };
8807
8808 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyLog",kwnames)) goto fail;
8809 {
8810 PyThreadState* __tstate = wxPyBeginAllowThreads();
8811 result = (wxPyLog *)new wxPyLog();
8812
8813 wxPyEndAllowThreads(__tstate);
8814 if (PyErr_Occurred()) SWIG_fail;
8815 }
8816 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyLog, 1);
8817 return resultobj;
8818 fail:
8819 return NULL;
8820 }
8821
8822
8823 static PyObject *_wrap_PyLog__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8824 PyObject *resultobj;
8825 wxPyLog *arg1 = (wxPyLog *) 0 ;
8826 PyObject *arg2 = (PyObject *) 0 ;
8827 PyObject *arg3 = (PyObject *) 0 ;
8828 PyObject * obj0 = 0 ;
8829 PyObject * obj1 = 0 ;
8830 PyObject * obj2 = 0 ;
8831 char *kwnames[] = {
8832 (char *) "self",(char *) "self",(char *) "_class", NULL
8833 };
8834
8835 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLog__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
8836 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLog,
8837 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8838 arg2 = obj1;
8839 arg3 = obj2;
8840 {
8841 PyThreadState* __tstate = wxPyBeginAllowThreads();
8842 (arg1)->_setCallbackInfo(arg2,arg3);
8843
8844 wxPyEndAllowThreads(__tstate);
8845 if (PyErr_Occurred()) SWIG_fail;
8846 }
8847 Py_INCREF(Py_None); resultobj = Py_None;
8848 return resultobj;
8849 fail:
8850 return NULL;
8851 }
8852
8853
8854 static PyObject * PyLog_swigregister(PyObject *self, PyObject *args) {
8855 PyObject *obj;
8856 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8857 SWIG_TypeClientData(SWIGTYPE_p_wxPyLog, obj);
8858 Py_INCREF(obj);
8859 return Py_BuildValue((char *)"");
8860 }
8861 static PyObject *_wrap_Process_Kill(PyObject *self, PyObject *args, PyObject *kwargs) {
8862 PyObject *resultobj;
8863 int arg1 ;
8864 int arg2 = (int) wxSIGTERM ;
8865 int result;
8866 PyObject * obj0 = 0 ;
8867 PyObject * obj1 = 0 ;
8868 char *kwnames[] = {
8869 (char *) "pid",(char *) "sig", NULL
8870 };
8871
8872 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Process_Kill",kwnames,&obj0,&obj1)) goto fail;
8873 arg1 = (int) SWIG_AsInt(obj0);
8874 if (PyErr_Occurred()) SWIG_fail;
8875 if (obj1) {
8876 arg2 = (wxSignal) SWIG_AsInt(obj1);
8877 if (PyErr_Occurred()) SWIG_fail;
8878 }
8879 {
8880 PyThreadState* __tstate = wxPyBeginAllowThreads();
8881 result = (int)wxPyProcess::Kill(arg1,(wxSignal )arg2);
8882
8883 wxPyEndAllowThreads(__tstate);
8884 if (PyErr_Occurred()) SWIG_fail;
8885 }
8886 resultobj = SWIG_FromInt((int)result);
8887 return resultobj;
8888 fail:
8889 return NULL;
8890 }
8891
8892
8893 static PyObject *_wrap_Process_Exists(PyObject *self, PyObject *args, PyObject *kwargs) {
8894 PyObject *resultobj;
8895 int arg1 ;
8896 bool result;
8897 PyObject * obj0 = 0 ;
8898 char *kwnames[] = {
8899 (char *) "pid", NULL
8900 };
8901
8902 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Exists",kwnames,&obj0)) goto fail;
8903 arg1 = (int) SWIG_AsInt(obj0);
8904 if (PyErr_Occurred()) SWIG_fail;
8905 {
8906 PyThreadState* __tstate = wxPyBeginAllowThreads();
8907 result = (bool)wxPyProcess::Exists(arg1);
8908
8909 wxPyEndAllowThreads(__tstate);
8910 if (PyErr_Occurred()) SWIG_fail;
8911 }
8912 {
8913 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8914 }
8915 return resultobj;
8916 fail:
8917 return NULL;
8918 }
8919
8920
8921 static PyObject *_wrap_Process_Open(PyObject *self, PyObject *args, PyObject *kwargs) {
8922 PyObject *resultobj;
8923 wxString *arg1 = 0 ;
8924 int arg2 = (int) wxEXEC_ASYNC ;
8925 wxPyProcess *result;
8926 bool temp1 = False ;
8927 PyObject * obj0 = 0 ;
8928 PyObject * obj1 = 0 ;
8929 char *kwnames[] = {
8930 (char *) "cmd",(char *) "flags", NULL
8931 };
8932
8933 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Process_Open",kwnames,&obj0,&obj1)) goto fail;
8934 {
8935 arg1 = wxString_in_helper(obj0);
8936 if (arg1 == NULL) SWIG_fail;
8937 temp1 = True;
8938 }
8939 if (obj1) {
8940 arg2 = (int) SWIG_AsInt(obj1);
8941 if (PyErr_Occurred()) SWIG_fail;
8942 }
8943 {
8944 PyThreadState* __tstate = wxPyBeginAllowThreads();
8945 result = (wxPyProcess *)wxPyProcess::Open((wxString const &)*arg1,arg2);
8946
8947 wxPyEndAllowThreads(__tstate);
8948 if (PyErr_Occurred()) SWIG_fail;
8949 }
8950 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyProcess, 0);
8951 {
8952 if (temp1)
8953 delete arg1;
8954 }
8955 return resultobj;
8956 fail:
8957 {
8958 if (temp1)
8959 delete arg1;
8960 }
8961 return NULL;
8962 }
8963
8964
8965 static PyObject *_wrap_new_Process(PyObject *self, PyObject *args, PyObject *kwargs) {
8966 PyObject *resultobj;
8967 wxEvtHandler *arg1 = (wxEvtHandler *) NULL ;
8968 int arg2 = (int) -1 ;
8969 wxPyProcess *result;
8970 PyObject * obj0 = 0 ;
8971 PyObject * obj1 = 0 ;
8972 char *kwnames[] = {
8973 (char *) "parent",(char *) "id", NULL
8974 };
8975
8976 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Process",kwnames,&obj0,&obj1)) goto fail;
8977 if (obj0) {
8978 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler,
8979 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8980 }
8981 if (obj1) {
8982 arg2 = (int) SWIG_AsInt(obj1);
8983 if (PyErr_Occurred()) SWIG_fail;
8984 }
8985 {
8986 PyThreadState* __tstate = wxPyBeginAllowThreads();
8987 result = (wxPyProcess *)new wxPyProcess(arg1,arg2);
8988
8989 wxPyEndAllowThreads(__tstate);
8990 if (PyErr_Occurred()) SWIG_fail;
8991 }
8992 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyProcess, 1);
8993 return resultobj;
8994 fail:
8995 return NULL;
8996 }
8997
8998
8999 static PyObject *_wrap_Process__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
9000 PyObject *resultobj;
9001 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9002 PyObject *arg2 = (PyObject *) 0 ;
9003 PyObject *arg3 = (PyObject *) 0 ;
9004 PyObject * obj0 = 0 ;
9005 PyObject * obj1 = 0 ;
9006 PyObject * obj2 = 0 ;
9007 char *kwnames[] = {
9008 (char *) "self",(char *) "self",(char *) "_class", NULL
9009 };
9010
9011 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Process__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
9012 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9013 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9014 arg2 = obj1;
9015 arg3 = obj2;
9016 {
9017 PyThreadState* __tstate = wxPyBeginAllowThreads();
9018 (arg1)->_setCallbackInfo(arg2,arg3);
9019
9020 wxPyEndAllowThreads(__tstate);
9021 if (PyErr_Occurred()) SWIG_fail;
9022 }
9023 Py_INCREF(Py_None); resultobj = Py_None;
9024 return resultobj;
9025 fail:
9026 return NULL;
9027 }
9028
9029
9030 static PyObject *_wrap_Process_base_OnTerminate(PyObject *self, PyObject *args, PyObject *kwargs) {
9031 PyObject *resultobj;
9032 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9033 int arg2 ;
9034 int arg3 ;
9035 PyObject * obj0 = 0 ;
9036 PyObject * obj1 = 0 ;
9037 PyObject * obj2 = 0 ;
9038 char *kwnames[] = {
9039 (char *) "self",(char *) "pid",(char *) "status", NULL
9040 };
9041
9042 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Process_base_OnTerminate",kwnames,&obj0,&obj1,&obj2)) goto fail;
9043 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9044 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9045 arg2 = (int) SWIG_AsInt(obj1);
9046 if (PyErr_Occurred()) SWIG_fail;
9047 arg3 = (int) SWIG_AsInt(obj2);
9048 if (PyErr_Occurred()) SWIG_fail;
9049 {
9050 PyThreadState* __tstate = wxPyBeginAllowThreads();
9051 (arg1)->base_OnTerminate(arg2,arg3);
9052
9053 wxPyEndAllowThreads(__tstate);
9054 if (PyErr_Occurred()) SWIG_fail;
9055 }
9056 Py_INCREF(Py_None); resultobj = Py_None;
9057 return resultobj;
9058 fail:
9059 return NULL;
9060 }
9061
9062
9063 static PyObject *_wrap_Process_Redirect(PyObject *self, PyObject *args, PyObject *kwargs) {
9064 PyObject *resultobj;
9065 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9066 PyObject * obj0 = 0 ;
9067 char *kwnames[] = {
9068 (char *) "self", NULL
9069 };
9070
9071 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Redirect",kwnames,&obj0)) goto fail;
9072 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9073 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9074 {
9075 PyThreadState* __tstate = wxPyBeginAllowThreads();
9076 (arg1)->Redirect();
9077
9078 wxPyEndAllowThreads(__tstate);
9079 if (PyErr_Occurred()) SWIG_fail;
9080 }
9081 Py_INCREF(Py_None); resultobj = Py_None;
9082 return resultobj;
9083 fail:
9084 return NULL;
9085 }
9086
9087
9088 static PyObject *_wrap_Process_IsRedirected(PyObject *self, PyObject *args, PyObject *kwargs) {
9089 PyObject *resultobj;
9090 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9091 bool result;
9092 PyObject * obj0 = 0 ;
9093 char *kwnames[] = {
9094 (char *) "self", NULL
9095 };
9096
9097 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsRedirected",kwnames,&obj0)) goto fail;
9098 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9099 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9100 {
9101 PyThreadState* __tstate = wxPyBeginAllowThreads();
9102 result = (bool)(arg1)->IsRedirected();
9103
9104 wxPyEndAllowThreads(__tstate);
9105 if (PyErr_Occurred()) SWIG_fail;
9106 }
9107 {
9108 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9109 }
9110 return resultobj;
9111 fail:
9112 return NULL;
9113 }
9114
9115
9116 static PyObject *_wrap_Process_Detach(PyObject *self, PyObject *args, PyObject *kwargs) {
9117 PyObject *resultobj;
9118 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9119 PyObject * obj0 = 0 ;
9120 char *kwnames[] = {
9121 (char *) "self", NULL
9122 };
9123
9124 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Detach",kwnames,&obj0)) goto fail;
9125 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9126 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9127 {
9128 PyThreadState* __tstate = wxPyBeginAllowThreads();
9129 (arg1)->Detach();
9130
9131 wxPyEndAllowThreads(__tstate);
9132 if (PyErr_Occurred()) SWIG_fail;
9133 }
9134 Py_INCREF(Py_None); resultobj = Py_None;
9135 return resultobj;
9136 fail:
9137 return NULL;
9138 }
9139
9140
9141 static PyObject *_wrap_Process_GetInputStream(PyObject *self, PyObject *args, PyObject *kwargs) {
9142 PyObject *resultobj;
9143 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9144 wxInputStream *result;
9145 PyObject * obj0 = 0 ;
9146 char *kwnames[] = {
9147 (char *) "self", NULL
9148 };
9149
9150 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetInputStream",kwnames,&obj0)) goto fail;
9151 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9152 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9153 {
9154 PyThreadState* __tstate = wxPyBeginAllowThreads();
9155 result = (wxInputStream *)(arg1)->GetInputStream();
9156
9157 wxPyEndAllowThreads(__tstate);
9158 if (PyErr_Occurred()) SWIG_fail;
9159 }
9160 {
9161 wxPyInputStream * _ptr = NULL;
9162
9163 if (result) {
9164 _ptr = new wxPyInputStream(result);
9165 }
9166 resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), True);
9167 }
9168 return resultobj;
9169 fail:
9170 return NULL;
9171 }
9172
9173
9174 static PyObject *_wrap_Process_GetErrorStream(PyObject *self, PyObject *args, PyObject *kwargs) {
9175 PyObject *resultobj;
9176 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9177 wxInputStream *result;
9178 PyObject * obj0 = 0 ;
9179 char *kwnames[] = {
9180 (char *) "self", NULL
9181 };
9182
9183 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetErrorStream",kwnames,&obj0)) goto fail;
9184 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9185 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9186 {
9187 PyThreadState* __tstate = wxPyBeginAllowThreads();
9188 result = (wxInputStream *)(arg1)->GetErrorStream();
9189
9190 wxPyEndAllowThreads(__tstate);
9191 if (PyErr_Occurred()) SWIG_fail;
9192 }
9193 {
9194 wxPyInputStream * _ptr = NULL;
9195
9196 if (result) {
9197 _ptr = new wxPyInputStream(result);
9198 }
9199 resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), True);
9200 }
9201 return resultobj;
9202 fail:
9203 return NULL;
9204 }
9205
9206
9207 static PyObject *_wrap_Process_GetOutputStream(PyObject *self, PyObject *args, PyObject *kwargs) {
9208 PyObject *resultobj;
9209 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9210 wxOutputStream *result;
9211 PyObject * obj0 = 0 ;
9212 char *kwnames[] = {
9213 (char *) "self", NULL
9214 };
9215
9216 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetOutputStream",kwnames,&obj0)) goto fail;
9217 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9218 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9219 {
9220 PyThreadState* __tstate = wxPyBeginAllowThreads();
9221 result = (wxOutputStream *)(arg1)->GetOutputStream();
9222
9223 wxPyEndAllowThreads(__tstate);
9224 if (PyErr_Occurred()) SWIG_fail;
9225 }
9226 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxOutputStream, 0);
9227 return resultobj;
9228 fail:
9229 return NULL;
9230 }
9231
9232
9233 static PyObject *_wrap_Process_CloseOutput(PyObject *self, PyObject *args, PyObject *kwargs) {
9234 PyObject *resultobj;
9235 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9236 PyObject * obj0 = 0 ;
9237 char *kwnames[] = {
9238 (char *) "self", NULL
9239 };
9240
9241 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_CloseOutput",kwnames,&obj0)) goto fail;
9242 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9243 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9244 {
9245 PyThreadState* __tstate = wxPyBeginAllowThreads();
9246 (arg1)->CloseOutput();
9247
9248 wxPyEndAllowThreads(__tstate);
9249 if (PyErr_Occurred()) SWIG_fail;
9250 }
9251 Py_INCREF(Py_None); resultobj = Py_None;
9252 return resultobj;
9253 fail:
9254 return NULL;
9255 }
9256
9257
9258 static PyObject *_wrap_Process_IsInputOpened(PyObject *self, PyObject *args, PyObject *kwargs) {
9259 PyObject *resultobj;
9260 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9261 bool result;
9262 PyObject * obj0 = 0 ;
9263 char *kwnames[] = {
9264 (char *) "self", NULL
9265 };
9266
9267 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsInputOpened",kwnames,&obj0)) goto fail;
9268 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9269 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9270 {
9271 PyThreadState* __tstate = wxPyBeginAllowThreads();
9272 result = (bool)((wxPyProcess const *)arg1)->IsInputOpened();
9273
9274 wxPyEndAllowThreads(__tstate);
9275 if (PyErr_Occurred()) SWIG_fail;
9276 }
9277 {
9278 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9279 }
9280 return resultobj;
9281 fail:
9282 return NULL;
9283 }
9284
9285
9286 static PyObject *_wrap_Process_IsInputAvailable(PyObject *self, PyObject *args, PyObject *kwargs) {
9287 PyObject *resultobj;
9288 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9289 bool result;
9290 PyObject * obj0 = 0 ;
9291 char *kwnames[] = {
9292 (char *) "self", NULL
9293 };
9294
9295 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsInputAvailable",kwnames,&obj0)) goto fail;
9296 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9297 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9298 {
9299 PyThreadState* __tstate = wxPyBeginAllowThreads();
9300 result = (bool)((wxPyProcess const *)arg1)->IsInputAvailable();
9301
9302 wxPyEndAllowThreads(__tstate);
9303 if (PyErr_Occurred()) SWIG_fail;
9304 }
9305 {
9306 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9307 }
9308 return resultobj;
9309 fail:
9310 return NULL;
9311 }
9312
9313
9314 static PyObject *_wrap_Process_IsErrorAvailable(PyObject *self, PyObject *args, PyObject *kwargs) {
9315 PyObject *resultobj;
9316 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9317 bool result;
9318 PyObject * obj0 = 0 ;
9319 char *kwnames[] = {
9320 (char *) "self", NULL
9321 };
9322
9323 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsErrorAvailable",kwnames,&obj0)) goto fail;
9324 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9325 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9326 {
9327 PyThreadState* __tstate = wxPyBeginAllowThreads();
9328 result = (bool)((wxPyProcess const *)arg1)->IsErrorAvailable();
9329
9330 wxPyEndAllowThreads(__tstate);
9331 if (PyErr_Occurred()) SWIG_fail;
9332 }
9333 {
9334 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9335 }
9336 return resultobj;
9337 fail:
9338 return NULL;
9339 }
9340
9341
9342 static PyObject * Process_swigregister(PyObject *self, PyObject *args) {
9343 PyObject *obj;
9344 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9345 SWIG_TypeClientData(SWIGTYPE_p_wxPyProcess, obj);
9346 Py_INCREF(obj);
9347 return Py_BuildValue((char *)"");
9348 }
9349 static PyObject *_wrap_new_ProcessEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
9350 PyObject *resultobj;
9351 int arg1 = (int) 0 ;
9352 int arg2 = (int) 0 ;
9353 int arg3 = (int) 0 ;
9354 wxProcessEvent *result;
9355 PyObject * obj0 = 0 ;
9356 PyObject * obj1 = 0 ;
9357 PyObject * obj2 = 0 ;
9358 char *kwnames[] = {
9359 (char *) "id",(char *) "pid",(char *) "exitcode", NULL
9360 };
9361
9362 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ProcessEvent",kwnames,&obj0,&obj1,&obj2)) goto fail;
9363 if (obj0) {
9364 arg1 = (int) SWIG_AsInt(obj0);
9365 if (PyErr_Occurred()) SWIG_fail;
9366 }
9367 if (obj1) {
9368 arg2 = (int) SWIG_AsInt(obj1);
9369 if (PyErr_Occurred()) SWIG_fail;
9370 }
9371 if (obj2) {
9372 arg3 = (int) SWIG_AsInt(obj2);
9373 if (PyErr_Occurred()) SWIG_fail;
9374 }
9375 {
9376 PyThreadState* __tstate = wxPyBeginAllowThreads();
9377 result = (wxProcessEvent *)new wxProcessEvent(arg1,arg2,arg3);
9378
9379 wxPyEndAllowThreads(__tstate);
9380 if (PyErr_Occurred()) SWIG_fail;
9381 }
9382 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxProcessEvent, 1);
9383 return resultobj;
9384 fail:
9385 return NULL;
9386 }
9387
9388
9389 static PyObject *_wrap_ProcessEvent_GetPid(PyObject *self, PyObject *args, PyObject *kwargs) {
9390 PyObject *resultobj;
9391 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
9392 int result;
9393 PyObject * obj0 = 0 ;
9394 char *kwnames[] = {
9395 (char *) "self", NULL
9396 };
9397
9398 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_GetPid",kwnames,&obj0)) goto fail;
9399 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent,
9400 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9401 {
9402 PyThreadState* __tstate = wxPyBeginAllowThreads();
9403 result = (int)(arg1)->GetPid();
9404
9405 wxPyEndAllowThreads(__tstate);
9406 if (PyErr_Occurred()) SWIG_fail;
9407 }
9408 resultobj = SWIG_FromInt((int)result);
9409 return resultobj;
9410 fail:
9411 return NULL;
9412 }
9413
9414
9415 static PyObject *_wrap_ProcessEvent_GetExitCode(PyObject *self, PyObject *args, PyObject *kwargs) {
9416 PyObject *resultobj;
9417 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
9418 int result;
9419 PyObject * obj0 = 0 ;
9420 char *kwnames[] = {
9421 (char *) "self", NULL
9422 };
9423
9424 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_GetExitCode",kwnames,&obj0)) goto fail;
9425 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent,
9426 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9427 {
9428 PyThreadState* __tstate = wxPyBeginAllowThreads();
9429 result = (int)(arg1)->GetExitCode();
9430
9431 wxPyEndAllowThreads(__tstate);
9432 if (PyErr_Occurred()) SWIG_fail;
9433 }
9434 resultobj = SWIG_FromInt((int)result);
9435 return resultobj;
9436 fail:
9437 return NULL;
9438 }
9439
9440
9441 static PyObject *_wrap_ProcessEvent_m_pid_set(PyObject *self, PyObject *args, PyObject *kwargs) {
9442 PyObject *resultobj;
9443 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
9444 int arg2 ;
9445 PyObject * obj0 = 0 ;
9446 PyObject * obj1 = 0 ;
9447 char *kwnames[] = {
9448 (char *) "self",(char *) "m_pid", NULL
9449 };
9450
9451 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ProcessEvent_m_pid_set",kwnames,&obj0,&obj1)) goto fail;
9452 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent,
9453 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9454 arg2 = (int) SWIG_AsInt(obj1);
9455 if (PyErr_Occurred()) SWIG_fail;
9456 if (arg1) (arg1)->m_pid = arg2;
9457
9458 Py_INCREF(Py_None); resultobj = Py_None;
9459 return resultobj;
9460 fail:
9461 return NULL;
9462 }
9463
9464
9465 static PyObject *_wrap_ProcessEvent_m_pid_get(PyObject *self, PyObject *args, PyObject *kwargs) {
9466 PyObject *resultobj;
9467 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
9468 int result;
9469 PyObject * obj0 = 0 ;
9470 char *kwnames[] = {
9471 (char *) "self", NULL
9472 };
9473
9474 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_m_pid_get",kwnames,&obj0)) goto fail;
9475 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent,
9476 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9477 result = (int) ((arg1)->m_pid);
9478
9479 resultobj = SWIG_FromInt((int)result);
9480 return resultobj;
9481 fail:
9482 return NULL;
9483 }
9484
9485
9486 static PyObject *_wrap_ProcessEvent_m_exitcode_set(PyObject *self, PyObject *args, PyObject *kwargs) {
9487 PyObject *resultobj;
9488 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
9489 int arg2 ;
9490 PyObject * obj0 = 0 ;
9491 PyObject * obj1 = 0 ;
9492 char *kwnames[] = {
9493 (char *) "self",(char *) "m_exitcode", NULL
9494 };
9495
9496 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ProcessEvent_m_exitcode_set",kwnames,&obj0,&obj1)) goto fail;
9497 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent,
9498 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9499 arg2 = (int) SWIG_AsInt(obj1);
9500 if (PyErr_Occurred()) SWIG_fail;
9501 if (arg1) (arg1)->m_exitcode = arg2;
9502
9503 Py_INCREF(Py_None); resultobj = Py_None;
9504 return resultobj;
9505 fail:
9506 return NULL;
9507 }
9508
9509
9510 static PyObject *_wrap_ProcessEvent_m_exitcode_get(PyObject *self, PyObject *args, PyObject *kwargs) {
9511 PyObject *resultobj;
9512 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
9513 int result;
9514 PyObject * obj0 = 0 ;
9515 char *kwnames[] = {
9516 (char *) "self", NULL
9517 };
9518
9519 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_m_exitcode_get",kwnames,&obj0)) goto fail;
9520 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent,
9521 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9522 result = (int) ((arg1)->m_exitcode);
9523
9524 resultobj = SWIG_FromInt((int)result);
9525 return resultobj;
9526 fail:
9527 return NULL;
9528 }
9529
9530
9531 static PyObject * ProcessEvent_swigregister(PyObject *self, PyObject *args) {
9532 PyObject *obj;
9533 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9534 SWIG_TypeClientData(SWIGTYPE_p_wxProcessEvent, obj);
9535 Py_INCREF(obj);
9536 return Py_BuildValue((char *)"");
9537 }
9538 static PyObject *_wrap_Execute(PyObject *self, PyObject *args, PyObject *kwargs) {
9539 PyObject *resultobj;
9540 wxString *arg1 = 0 ;
9541 int arg2 = (int) wxEXEC_ASYNC ;
9542 wxPyProcess *arg3 = (wxPyProcess *) NULL ;
9543 long result;
9544 bool temp1 = False ;
9545 PyObject * obj0 = 0 ;
9546 PyObject * obj1 = 0 ;
9547 PyObject * obj2 = 0 ;
9548 char *kwnames[] = {
9549 (char *) "command",(char *) "flags",(char *) "process", NULL
9550 };
9551
9552 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Execute",kwnames,&obj0,&obj1,&obj2)) goto fail;
9553 {
9554 arg1 = wxString_in_helper(obj0);
9555 if (arg1 == NULL) SWIG_fail;
9556 temp1 = True;
9557 }
9558 if (obj1) {
9559 arg2 = (int) SWIG_AsInt(obj1);
9560 if (PyErr_Occurred()) SWIG_fail;
9561 }
9562 if (obj2) {
9563 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPyProcess,
9564 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9565 }
9566 {
9567 PyThreadState* __tstate = wxPyBeginAllowThreads();
9568 result = (long)wxExecute((wxString const &)*arg1,arg2,arg3);
9569
9570 wxPyEndAllowThreads(__tstate);
9571 if (PyErr_Occurred()) SWIG_fail;
9572 }
9573 resultobj = SWIG_FromLong((long)result);
9574 {
9575 if (temp1)
9576 delete arg1;
9577 }
9578 return resultobj;
9579 fail:
9580 {
9581 if (temp1)
9582 delete arg1;
9583 }
9584 return NULL;
9585 }
9586
9587
9588 static PyObject *_wrap_new_Joystick(PyObject *self, PyObject *args, PyObject *kwargs) {
9589 PyObject *resultobj;
9590 int arg1 = (int) wxJOYSTICK1 ;
9591 wxJoystick *result;
9592 PyObject * obj0 = 0 ;
9593 char *kwnames[] = {
9594 (char *) "joystick", NULL
9595 };
9596
9597 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Joystick",kwnames,&obj0)) goto fail;
9598 if (obj0) {
9599 arg1 = (int) SWIG_AsInt(obj0);
9600 if (PyErr_Occurred()) SWIG_fail;
9601 }
9602 {
9603 PyThreadState* __tstate = wxPyBeginAllowThreads();
9604 result = (wxJoystick *)new wxJoystick(arg1);
9605
9606 wxPyEndAllowThreads(__tstate);
9607 if (PyErr_Occurred()) SWIG_fail;
9608 }
9609 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxJoystick, 1);
9610 return resultobj;
9611 fail:
9612 return NULL;
9613 }
9614
9615
9616 static PyObject *_wrap_delete_Joystick(PyObject *self, PyObject *args, PyObject *kwargs) {
9617 PyObject *resultobj;
9618 wxJoystick *arg1 = (wxJoystick *) 0 ;
9619 PyObject * obj0 = 0 ;
9620 char *kwnames[] = {
9621 (char *) "self", NULL
9622 };
9623
9624 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Joystick",kwnames,&obj0)) goto fail;
9625 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9626 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9627 {
9628 PyThreadState* __tstate = wxPyBeginAllowThreads();
9629 delete arg1;
9630
9631 wxPyEndAllowThreads(__tstate);
9632 if (PyErr_Occurred()) SWIG_fail;
9633 }
9634 Py_INCREF(Py_None); resultobj = Py_None;
9635 return resultobj;
9636 fail:
9637 return NULL;
9638 }
9639
9640
9641 static PyObject *_wrap_Joystick_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
9642 PyObject *resultobj;
9643 wxJoystick *arg1 = (wxJoystick *) 0 ;
9644 wxPoint result;
9645 PyObject * obj0 = 0 ;
9646 char *kwnames[] = {
9647 (char *) "self", NULL
9648 };
9649
9650 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPosition",kwnames,&obj0)) goto fail;
9651 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9652 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9653 {
9654 PyThreadState* __tstate = wxPyBeginAllowThreads();
9655 result = (arg1)->GetPosition();
9656
9657 wxPyEndAllowThreads(__tstate);
9658 if (PyErr_Occurred()) SWIG_fail;
9659 }
9660 {
9661 wxPoint * resultptr;
9662 resultptr = new wxPoint((wxPoint &) result);
9663 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
9664 }
9665 return resultobj;
9666 fail:
9667 return NULL;
9668 }
9669
9670
9671 static PyObject *_wrap_Joystick_GetZPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
9672 PyObject *resultobj;
9673 wxJoystick *arg1 = (wxJoystick *) 0 ;
9674 int result;
9675 PyObject * obj0 = 0 ;
9676 char *kwnames[] = {
9677 (char *) "self", NULL
9678 };
9679
9680 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZPosition",kwnames,&obj0)) goto fail;
9681 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9682 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9683 {
9684 PyThreadState* __tstate = wxPyBeginAllowThreads();
9685 result = (int)(arg1)->GetZPosition();
9686
9687 wxPyEndAllowThreads(__tstate);
9688 if (PyErr_Occurred()) SWIG_fail;
9689 }
9690 resultobj = SWIG_FromInt((int)result);
9691 return resultobj;
9692 fail:
9693 return NULL;
9694 }
9695
9696
9697 static PyObject *_wrap_Joystick_GetButtonState(PyObject *self, PyObject *args, PyObject *kwargs) {
9698 PyObject *resultobj;
9699 wxJoystick *arg1 = (wxJoystick *) 0 ;
9700 int result;
9701 PyObject * obj0 = 0 ;
9702 char *kwnames[] = {
9703 (char *) "self", NULL
9704 };
9705
9706 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetButtonState",kwnames,&obj0)) goto fail;
9707 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9708 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9709 {
9710 PyThreadState* __tstate = wxPyBeginAllowThreads();
9711 result = (int)(arg1)->GetButtonState();
9712
9713 wxPyEndAllowThreads(__tstate);
9714 if (PyErr_Occurred()) SWIG_fail;
9715 }
9716 resultobj = SWIG_FromInt((int)result);
9717 return resultobj;
9718 fail:
9719 return NULL;
9720 }
9721
9722
9723 static PyObject *_wrap_Joystick_GetPOVPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
9724 PyObject *resultobj;
9725 wxJoystick *arg1 = (wxJoystick *) 0 ;
9726 int result;
9727 PyObject * obj0 = 0 ;
9728 char *kwnames[] = {
9729 (char *) "self", NULL
9730 };
9731
9732 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPOVPosition",kwnames,&obj0)) goto fail;
9733 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9734 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9735 {
9736 PyThreadState* __tstate = wxPyBeginAllowThreads();
9737 result = (int)(arg1)->GetPOVPosition();
9738
9739 wxPyEndAllowThreads(__tstate);
9740 if (PyErr_Occurred()) SWIG_fail;
9741 }
9742 resultobj = SWIG_FromInt((int)result);
9743 return resultobj;
9744 fail:
9745 return NULL;
9746 }
9747
9748
9749 static PyObject *_wrap_Joystick_GetPOVCTSPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
9750 PyObject *resultobj;
9751 wxJoystick *arg1 = (wxJoystick *) 0 ;
9752 int result;
9753 PyObject * obj0 = 0 ;
9754 char *kwnames[] = {
9755 (char *) "self", NULL
9756 };
9757
9758 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPOVCTSPosition",kwnames,&obj0)) goto fail;
9759 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9760 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9761 {
9762 PyThreadState* __tstate = wxPyBeginAllowThreads();
9763 result = (int)(arg1)->GetPOVCTSPosition();
9764
9765 wxPyEndAllowThreads(__tstate);
9766 if (PyErr_Occurred()) SWIG_fail;
9767 }
9768 resultobj = SWIG_FromInt((int)result);
9769 return resultobj;
9770 fail:
9771 return NULL;
9772 }
9773
9774
9775 static PyObject *_wrap_Joystick_GetRudderPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
9776 PyObject *resultobj;
9777 wxJoystick *arg1 = (wxJoystick *) 0 ;
9778 int result;
9779 PyObject * obj0 = 0 ;
9780 char *kwnames[] = {
9781 (char *) "self", NULL
9782 };
9783
9784 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderPosition",kwnames,&obj0)) goto fail;
9785 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9786 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9787 {
9788 PyThreadState* __tstate = wxPyBeginAllowThreads();
9789 result = (int)(arg1)->GetRudderPosition();
9790
9791 wxPyEndAllowThreads(__tstate);
9792 if (PyErr_Occurred()) SWIG_fail;
9793 }
9794 resultobj = SWIG_FromInt((int)result);
9795 return resultobj;
9796 fail:
9797 return NULL;
9798 }
9799
9800
9801 static PyObject *_wrap_Joystick_GetUPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
9802 PyObject *resultobj;
9803 wxJoystick *arg1 = (wxJoystick *) 0 ;
9804 int result;
9805 PyObject * obj0 = 0 ;
9806 char *kwnames[] = {
9807 (char *) "self", NULL
9808 };
9809
9810 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUPosition",kwnames,&obj0)) goto fail;
9811 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9812 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9813 {
9814 PyThreadState* __tstate = wxPyBeginAllowThreads();
9815 result = (int)(arg1)->GetUPosition();
9816
9817 wxPyEndAllowThreads(__tstate);
9818 if (PyErr_Occurred()) SWIG_fail;
9819 }
9820 resultobj = SWIG_FromInt((int)result);
9821 return resultobj;
9822 fail:
9823 return NULL;
9824 }
9825
9826
9827 static PyObject *_wrap_Joystick_GetVPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
9828 PyObject *resultobj;
9829 wxJoystick *arg1 = (wxJoystick *) 0 ;
9830 int result;
9831 PyObject * obj0 = 0 ;
9832 char *kwnames[] = {
9833 (char *) "self", NULL
9834 };
9835
9836 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVPosition",kwnames,&obj0)) goto fail;
9837 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9838 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9839 {
9840 PyThreadState* __tstate = wxPyBeginAllowThreads();
9841 result = (int)(arg1)->GetVPosition();
9842
9843 wxPyEndAllowThreads(__tstate);
9844 if (PyErr_Occurred()) SWIG_fail;
9845 }
9846 resultobj = SWIG_FromInt((int)result);
9847 return resultobj;
9848 fail:
9849 return NULL;
9850 }
9851
9852
9853 static PyObject *_wrap_Joystick_GetMovementThreshold(PyObject *self, PyObject *args, PyObject *kwargs) {
9854 PyObject *resultobj;
9855 wxJoystick *arg1 = (wxJoystick *) 0 ;
9856 int result;
9857 PyObject * obj0 = 0 ;
9858 char *kwnames[] = {
9859 (char *) "self", NULL
9860 };
9861
9862 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMovementThreshold",kwnames,&obj0)) goto fail;
9863 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9864 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9865 {
9866 PyThreadState* __tstate = wxPyBeginAllowThreads();
9867 result = (int)(arg1)->GetMovementThreshold();
9868
9869 wxPyEndAllowThreads(__tstate);
9870 if (PyErr_Occurred()) SWIG_fail;
9871 }
9872 resultobj = SWIG_FromInt((int)result);
9873 return resultobj;
9874 fail:
9875 return NULL;
9876 }
9877
9878
9879 static PyObject *_wrap_Joystick_SetMovementThreshold(PyObject *self, PyObject *args, PyObject *kwargs) {
9880 PyObject *resultobj;
9881 wxJoystick *arg1 = (wxJoystick *) 0 ;
9882 int arg2 ;
9883 PyObject * obj0 = 0 ;
9884 PyObject * obj1 = 0 ;
9885 char *kwnames[] = {
9886 (char *) "self",(char *) "threshold", NULL
9887 };
9888
9889 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Joystick_SetMovementThreshold",kwnames,&obj0,&obj1)) goto fail;
9890 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9891 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9892 arg2 = (int) SWIG_AsInt(obj1);
9893 if (PyErr_Occurred()) SWIG_fail;
9894 {
9895 PyThreadState* __tstate = wxPyBeginAllowThreads();
9896 (arg1)->SetMovementThreshold(arg2);
9897
9898 wxPyEndAllowThreads(__tstate);
9899 if (PyErr_Occurred()) SWIG_fail;
9900 }
9901 Py_INCREF(Py_None); resultobj = Py_None;
9902 return resultobj;
9903 fail:
9904 return NULL;
9905 }
9906
9907
9908 static PyObject *_wrap_Joystick_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
9909 PyObject *resultobj;
9910 wxJoystick *arg1 = (wxJoystick *) 0 ;
9911 bool result;
9912 PyObject * obj0 = 0 ;
9913 char *kwnames[] = {
9914 (char *) "self", NULL
9915 };
9916
9917 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_IsOk",kwnames,&obj0)) goto fail;
9918 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9919 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9920 {
9921 PyThreadState* __tstate = wxPyBeginAllowThreads();
9922 result = (bool)(arg1)->IsOk();
9923
9924 wxPyEndAllowThreads(__tstate);
9925 if (PyErr_Occurred()) SWIG_fail;
9926 }
9927 {
9928 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9929 }
9930 return resultobj;
9931 fail:
9932 return NULL;
9933 }
9934
9935
9936 static PyObject *_wrap_Joystick_GetNumberJoysticks(PyObject *self, PyObject *args, PyObject *kwargs) {
9937 PyObject *resultobj;
9938 wxJoystick *arg1 = (wxJoystick *) 0 ;
9939 int result;
9940 PyObject * obj0 = 0 ;
9941 char *kwnames[] = {
9942 (char *) "self", NULL
9943 };
9944
9945 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberJoysticks",kwnames,&obj0)) goto fail;
9946 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9947 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9948 {
9949 PyThreadState* __tstate = wxPyBeginAllowThreads();
9950 result = (int)(arg1)->GetNumberJoysticks();
9951
9952 wxPyEndAllowThreads(__tstate);
9953 if (PyErr_Occurred()) SWIG_fail;
9954 }
9955 resultobj = SWIG_FromInt((int)result);
9956 return resultobj;
9957 fail:
9958 return NULL;
9959 }
9960
9961
9962 static PyObject *_wrap_Joystick_GetManufacturerId(PyObject *self, PyObject *args, PyObject *kwargs) {
9963 PyObject *resultobj;
9964 wxJoystick *arg1 = (wxJoystick *) 0 ;
9965 int result;
9966 PyObject * obj0 = 0 ;
9967 char *kwnames[] = {
9968 (char *) "self", NULL
9969 };
9970
9971 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetManufacturerId",kwnames,&obj0)) goto fail;
9972 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9973 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9974 {
9975 PyThreadState* __tstate = wxPyBeginAllowThreads();
9976 result = (int)(arg1)->GetManufacturerId();
9977
9978 wxPyEndAllowThreads(__tstate);
9979 if (PyErr_Occurred()) SWIG_fail;
9980 }
9981 resultobj = SWIG_FromInt((int)result);
9982 return resultobj;
9983 fail:
9984 return NULL;
9985 }
9986
9987
9988 static PyObject *_wrap_Joystick_GetProductId(PyObject *self, PyObject *args, PyObject *kwargs) {
9989 PyObject *resultobj;
9990 wxJoystick *arg1 = (wxJoystick *) 0 ;
9991 int result;
9992 PyObject * obj0 = 0 ;
9993 char *kwnames[] = {
9994 (char *) "self", NULL
9995 };
9996
9997 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetProductId",kwnames,&obj0)) goto fail;
9998 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9999 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10000 {
10001 PyThreadState* __tstate = wxPyBeginAllowThreads();
10002 result = (int)(arg1)->GetProductId();
10003
10004 wxPyEndAllowThreads(__tstate);
10005 if (PyErr_Occurred()) SWIG_fail;
10006 }
10007 resultobj = SWIG_FromInt((int)result);
10008 return resultobj;
10009 fail:
10010 return NULL;
10011 }
10012
10013
10014 static PyObject *_wrap_Joystick_GetProductName(PyObject *self, PyObject *args, PyObject *kwargs) {
10015 PyObject *resultobj;
10016 wxJoystick *arg1 = (wxJoystick *) 0 ;
10017 wxString result;
10018 PyObject * obj0 = 0 ;
10019 char *kwnames[] = {
10020 (char *) "self", NULL
10021 };
10022
10023 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetProductName",kwnames,&obj0)) goto fail;
10024 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10025 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10026 {
10027 PyThreadState* __tstate = wxPyBeginAllowThreads();
10028 result = (arg1)->GetProductName();
10029
10030 wxPyEndAllowThreads(__tstate);
10031 if (PyErr_Occurred()) SWIG_fail;
10032 }
10033 {
10034 #if wxUSE_UNICODE
10035 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10036 #else
10037 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10038 #endif
10039 }
10040 return resultobj;
10041 fail:
10042 return NULL;
10043 }
10044
10045
10046 static PyObject *_wrap_Joystick_GetXMin(PyObject *self, PyObject *args, PyObject *kwargs) {
10047 PyObject *resultobj;
10048 wxJoystick *arg1 = (wxJoystick *) 0 ;
10049 int result;
10050 PyObject * obj0 = 0 ;
10051 char *kwnames[] = {
10052 (char *) "self", NULL
10053 };
10054
10055 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetXMin",kwnames,&obj0)) goto fail;
10056 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10057 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10058 {
10059 PyThreadState* __tstate = wxPyBeginAllowThreads();
10060 result = (int)(arg1)->GetXMin();
10061
10062 wxPyEndAllowThreads(__tstate);
10063 if (PyErr_Occurred()) SWIG_fail;
10064 }
10065 resultobj = SWIG_FromInt((int)result);
10066 return resultobj;
10067 fail:
10068 return NULL;
10069 }
10070
10071
10072 static PyObject *_wrap_Joystick_GetYMin(PyObject *self, PyObject *args, PyObject *kwargs) {
10073 PyObject *resultobj;
10074 wxJoystick *arg1 = (wxJoystick *) 0 ;
10075 int result;
10076 PyObject * obj0 = 0 ;
10077 char *kwnames[] = {
10078 (char *) "self", NULL
10079 };
10080
10081 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetYMin",kwnames,&obj0)) goto fail;
10082 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10083 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10084 {
10085 PyThreadState* __tstate = wxPyBeginAllowThreads();
10086 result = (int)(arg1)->GetYMin();
10087
10088 wxPyEndAllowThreads(__tstate);
10089 if (PyErr_Occurred()) SWIG_fail;
10090 }
10091 resultobj = SWIG_FromInt((int)result);
10092 return resultobj;
10093 fail:
10094 return NULL;
10095 }
10096
10097
10098 static PyObject *_wrap_Joystick_GetZMin(PyObject *self, PyObject *args, PyObject *kwargs) {
10099 PyObject *resultobj;
10100 wxJoystick *arg1 = (wxJoystick *) 0 ;
10101 int result;
10102 PyObject * obj0 = 0 ;
10103 char *kwnames[] = {
10104 (char *) "self", NULL
10105 };
10106
10107 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZMin",kwnames,&obj0)) goto fail;
10108 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10109 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10110 {
10111 PyThreadState* __tstate = wxPyBeginAllowThreads();
10112 result = (int)(arg1)->GetZMin();
10113
10114 wxPyEndAllowThreads(__tstate);
10115 if (PyErr_Occurred()) SWIG_fail;
10116 }
10117 resultobj = SWIG_FromInt((int)result);
10118 return resultobj;
10119 fail:
10120 return NULL;
10121 }
10122
10123
10124 static PyObject *_wrap_Joystick_GetXMax(PyObject *self, PyObject *args, PyObject *kwargs) {
10125 PyObject *resultobj;
10126 wxJoystick *arg1 = (wxJoystick *) 0 ;
10127 int result;
10128 PyObject * obj0 = 0 ;
10129 char *kwnames[] = {
10130 (char *) "self", NULL
10131 };
10132
10133 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetXMax",kwnames,&obj0)) goto fail;
10134 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10135 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10136 {
10137 PyThreadState* __tstate = wxPyBeginAllowThreads();
10138 result = (int)(arg1)->GetXMax();
10139
10140 wxPyEndAllowThreads(__tstate);
10141 if (PyErr_Occurred()) SWIG_fail;
10142 }
10143 resultobj = SWIG_FromInt((int)result);
10144 return resultobj;
10145 fail:
10146 return NULL;
10147 }
10148
10149
10150 static PyObject *_wrap_Joystick_GetYMax(PyObject *self, PyObject *args, PyObject *kwargs) {
10151 PyObject *resultobj;
10152 wxJoystick *arg1 = (wxJoystick *) 0 ;
10153 int result;
10154 PyObject * obj0 = 0 ;
10155 char *kwnames[] = {
10156 (char *) "self", NULL
10157 };
10158
10159 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetYMax",kwnames,&obj0)) goto fail;
10160 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10161 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10162 {
10163 PyThreadState* __tstate = wxPyBeginAllowThreads();
10164 result = (int)(arg1)->GetYMax();
10165
10166 wxPyEndAllowThreads(__tstate);
10167 if (PyErr_Occurred()) SWIG_fail;
10168 }
10169 resultobj = SWIG_FromInt((int)result);
10170 return resultobj;
10171 fail:
10172 return NULL;
10173 }
10174
10175
10176 static PyObject *_wrap_Joystick_GetZMax(PyObject *self, PyObject *args, PyObject *kwargs) {
10177 PyObject *resultobj;
10178 wxJoystick *arg1 = (wxJoystick *) 0 ;
10179 int result;
10180 PyObject * obj0 = 0 ;
10181 char *kwnames[] = {
10182 (char *) "self", NULL
10183 };
10184
10185 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZMax",kwnames,&obj0)) goto fail;
10186 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10187 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10188 {
10189 PyThreadState* __tstate = wxPyBeginAllowThreads();
10190 result = (int)(arg1)->GetZMax();
10191
10192 wxPyEndAllowThreads(__tstate);
10193 if (PyErr_Occurred()) SWIG_fail;
10194 }
10195 resultobj = SWIG_FromInt((int)result);
10196 return resultobj;
10197 fail:
10198 return NULL;
10199 }
10200
10201
10202 static PyObject *_wrap_Joystick_GetNumberButtons(PyObject *self, PyObject *args, PyObject *kwargs) {
10203 PyObject *resultobj;
10204 wxJoystick *arg1 = (wxJoystick *) 0 ;
10205 int result;
10206 PyObject * obj0 = 0 ;
10207 char *kwnames[] = {
10208 (char *) "self", NULL
10209 };
10210
10211 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberButtons",kwnames,&obj0)) goto fail;
10212 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10213 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10214 {
10215 PyThreadState* __tstate = wxPyBeginAllowThreads();
10216 result = (int)(arg1)->GetNumberButtons();
10217
10218 wxPyEndAllowThreads(__tstate);
10219 if (PyErr_Occurred()) SWIG_fail;
10220 }
10221 resultobj = SWIG_FromInt((int)result);
10222 return resultobj;
10223 fail:
10224 return NULL;
10225 }
10226
10227
10228 static PyObject *_wrap_Joystick_GetNumberAxes(PyObject *self, PyObject *args, PyObject *kwargs) {
10229 PyObject *resultobj;
10230 wxJoystick *arg1 = (wxJoystick *) 0 ;
10231 int result;
10232 PyObject * obj0 = 0 ;
10233 char *kwnames[] = {
10234 (char *) "self", NULL
10235 };
10236
10237 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberAxes",kwnames,&obj0)) goto fail;
10238 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10239 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10240 {
10241 PyThreadState* __tstate = wxPyBeginAllowThreads();
10242 result = (int)(arg1)->GetNumberAxes();
10243
10244 wxPyEndAllowThreads(__tstate);
10245 if (PyErr_Occurred()) SWIG_fail;
10246 }
10247 resultobj = SWIG_FromInt((int)result);
10248 return resultobj;
10249 fail:
10250 return NULL;
10251 }
10252
10253
10254 static PyObject *_wrap_Joystick_GetMaxButtons(PyObject *self, PyObject *args, PyObject *kwargs) {
10255 PyObject *resultobj;
10256 wxJoystick *arg1 = (wxJoystick *) 0 ;
10257 int result;
10258 PyObject * obj0 = 0 ;
10259 char *kwnames[] = {
10260 (char *) "self", NULL
10261 };
10262
10263 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMaxButtons",kwnames,&obj0)) goto fail;
10264 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10265 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10266 {
10267 PyThreadState* __tstate = wxPyBeginAllowThreads();
10268 result = (int)(arg1)->GetMaxButtons();
10269
10270 wxPyEndAllowThreads(__tstate);
10271 if (PyErr_Occurred()) SWIG_fail;
10272 }
10273 resultobj = SWIG_FromInt((int)result);
10274 return resultobj;
10275 fail:
10276 return NULL;
10277 }
10278
10279
10280 static PyObject *_wrap_Joystick_GetMaxAxes(PyObject *self, PyObject *args, PyObject *kwargs) {
10281 PyObject *resultobj;
10282 wxJoystick *arg1 = (wxJoystick *) 0 ;
10283 int result;
10284 PyObject * obj0 = 0 ;
10285 char *kwnames[] = {
10286 (char *) "self", NULL
10287 };
10288
10289 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMaxAxes",kwnames,&obj0)) goto fail;
10290 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10291 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10292 {
10293 PyThreadState* __tstate = wxPyBeginAllowThreads();
10294 result = (int)(arg1)->GetMaxAxes();
10295
10296 wxPyEndAllowThreads(__tstate);
10297 if (PyErr_Occurred()) SWIG_fail;
10298 }
10299 resultobj = SWIG_FromInt((int)result);
10300 return resultobj;
10301 fail:
10302 return NULL;
10303 }
10304
10305
10306 static PyObject *_wrap_Joystick_GetPollingMin(PyObject *self, PyObject *args, PyObject *kwargs) {
10307 PyObject *resultobj;
10308 wxJoystick *arg1 = (wxJoystick *) 0 ;
10309 int result;
10310 PyObject * obj0 = 0 ;
10311 char *kwnames[] = {
10312 (char *) "self", NULL
10313 };
10314
10315 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPollingMin",kwnames,&obj0)) goto fail;
10316 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10317 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10318 {
10319 PyThreadState* __tstate = wxPyBeginAllowThreads();
10320 result = (int)(arg1)->GetPollingMin();
10321
10322 wxPyEndAllowThreads(__tstate);
10323 if (PyErr_Occurred()) SWIG_fail;
10324 }
10325 resultobj = SWIG_FromInt((int)result);
10326 return resultobj;
10327 fail:
10328 return NULL;
10329 }
10330
10331
10332 static PyObject *_wrap_Joystick_GetPollingMax(PyObject *self, PyObject *args, PyObject *kwargs) {
10333 PyObject *resultobj;
10334 wxJoystick *arg1 = (wxJoystick *) 0 ;
10335 int result;
10336 PyObject * obj0 = 0 ;
10337 char *kwnames[] = {
10338 (char *) "self", NULL
10339 };
10340
10341 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPollingMax",kwnames,&obj0)) goto fail;
10342 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10343 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10344 {
10345 PyThreadState* __tstate = wxPyBeginAllowThreads();
10346 result = (int)(arg1)->GetPollingMax();
10347
10348 wxPyEndAllowThreads(__tstate);
10349 if (PyErr_Occurred()) SWIG_fail;
10350 }
10351 resultobj = SWIG_FromInt((int)result);
10352 return resultobj;
10353 fail:
10354 return NULL;
10355 }
10356
10357
10358 static PyObject *_wrap_Joystick_GetRudderMin(PyObject *self, PyObject *args, PyObject *kwargs) {
10359 PyObject *resultobj;
10360 wxJoystick *arg1 = (wxJoystick *) 0 ;
10361 int result;
10362 PyObject * obj0 = 0 ;
10363 char *kwnames[] = {
10364 (char *) "self", NULL
10365 };
10366
10367 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderMin",kwnames,&obj0)) goto fail;
10368 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10369 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10370 {
10371 PyThreadState* __tstate = wxPyBeginAllowThreads();
10372 result = (int)(arg1)->GetRudderMin();
10373
10374 wxPyEndAllowThreads(__tstate);
10375 if (PyErr_Occurred()) SWIG_fail;
10376 }
10377 resultobj = SWIG_FromInt((int)result);
10378 return resultobj;
10379 fail:
10380 return NULL;
10381 }
10382
10383
10384 static PyObject *_wrap_Joystick_GetRudderMax(PyObject *self, PyObject *args, PyObject *kwargs) {
10385 PyObject *resultobj;
10386 wxJoystick *arg1 = (wxJoystick *) 0 ;
10387 int result;
10388 PyObject * obj0 = 0 ;
10389 char *kwnames[] = {
10390 (char *) "self", NULL
10391 };
10392
10393 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderMax",kwnames,&obj0)) goto fail;
10394 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10395 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10396 {
10397 PyThreadState* __tstate = wxPyBeginAllowThreads();
10398 result = (int)(arg1)->GetRudderMax();
10399
10400 wxPyEndAllowThreads(__tstate);
10401 if (PyErr_Occurred()) SWIG_fail;
10402 }
10403 resultobj = SWIG_FromInt((int)result);
10404 return resultobj;
10405 fail:
10406 return NULL;
10407 }
10408
10409
10410 static PyObject *_wrap_Joystick_GetUMin(PyObject *self, PyObject *args, PyObject *kwargs) {
10411 PyObject *resultobj;
10412 wxJoystick *arg1 = (wxJoystick *) 0 ;
10413 int result;
10414 PyObject * obj0 = 0 ;
10415 char *kwnames[] = {
10416 (char *) "self", NULL
10417 };
10418
10419 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUMin",kwnames,&obj0)) goto fail;
10420 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10421 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10422 {
10423 PyThreadState* __tstate = wxPyBeginAllowThreads();
10424 result = (int)(arg1)->GetUMin();
10425
10426 wxPyEndAllowThreads(__tstate);
10427 if (PyErr_Occurred()) SWIG_fail;
10428 }
10429 resultobj = SWIG_FromInt((int)result);
10430 return resultobj;
10431 fail:
10432 return NULL;
10433 }
10434
10435
10436 static PyObject *_wrap_Joystick_GetUMax(PyObject *self, PyObject *args, PyObject *kwargs) {
10437 PyObject *resultobj;
10438 wxJoystick *arg1 = (wxJoystick *) 0 ;
10439 int result;
10440 PyObject * obj0 = 0 ;
10441 char *kwnames[] = {
10442 (char *) "self", NULL
10443 };
10444
10445 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUMax",kwnames,&obj0)) goto fail;
10446 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10447 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10448 {
10449 PyThreadState* __tstate = wxPyBeginAllowThreads();
10450 result = (int)(arg1)->GetUMax();
10451
10452 wxPyEndAllowThreads(__tstate);
10453 if (PyErr_Occurred()) SWIG_fail;
10454 }
10455 resultobj = SWIG_FromInt((int)result);
10456 return resultobj;
10457 fail:
10458 return NULL;
10459 }
10460
10461
10462 static PyObject *_wrap_Joystick_GetVMin(PyObject *self, PyObject *args, PyObject *kwargs) {
10463 PyObject *resultobj;
10464 wxJoystick *arg1 = (wxJoystick *) 0 ;
10465 int result;
10466 PyObject * obj0 = 0 ;
10467 char *kwnames[] = {
10468 (char *) "self", NULL
10469 };
10470
10471 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVMin",kwnames,&obj0)) goto fail;
10472 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10473 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10474 {
10475 PyThreadState* __tstate = wxPyBeginAllowThreads();
10476 result = (int)(arg1)->GetVMin();
10477
10478 wxPyEndAllowThreads(__tstate);
10479 if (PyErr_Occurred()) SWIG_fail;
10480 }
10481 resultobj = SWIG_FromInt((int)result);
10482 return resultobj;
10483 fail:
10484 return NULL;
10485 }
10486
10487
10488 static PyObject *_wrap_Joystick_GetVMax(PyObject *self, PyObject *args, PyObject *kwargs) {
10489 PyObject *resultobj;
10490 wxJoystick *arg1 = (wxJoystick *) 0 ;
10491 int result;
10492 PyObject * obj0 = 0 ;
10493 char *kwnames[] = {
10494 (char *) "self", NULL
10495 };
10496
10497 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVMax",kwnames,&obj0)) goto fail;
10498 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10499 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10500 {
10501 PyThreadState* __tstate = wxPyBeginAllowThreads();
10502 result = (int)(arg1)->GetVMax();
10503
10504 wxPyEndAllowThreads(__tstate);
10505 if (PyErr_Occurred()) SWIG_fail;
10506 }
10507 resultobj = SWIG_FromInt((int)result);
10508 return resultobj;
10509 fail:
10510 return NULL;
10511 }
10512
10513
10514 static PyObject *_wrap_Joystick_HasRudder(PyObject *self, PyObject *args, PyObject *kwargs) {
10515 PyObject *resultobj;
10516 wxJoystick *arg1 = (wxJoystick *) 0 ;
10517 bool result;
10518 PyObject * obj0 = 0 ;
10519 char *kwnames[] = {
10520 (char *) "self", NULL
10521 };
10522
10523 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasRudder",kwnames,&obj0)) goto fail;
10524 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10525 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10526 {
10527 PyThreadState* __tstate = wxPyBeginAllowThreads();
10528 result = (bool)(arg1)->HasRudder();
10529
10530 wxPyEndAllowThreads(__tstate);
10531 if (PyErr_Occurred()) SWIG_fail;
10532 }
10533 {
10534 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10535 }
10536 return resultobj;
10537 fail:
10538 return NULL;
10539 }
10540
10541
10542 static PyObject *_wrap_Joystick_HasZ(PyObject *self, PyObject *args, PyObject *kwargs) {
10543 PyObject *resultobj;
10544 wxJoystick *arg1 = (wxJoystick *) 0 ;
10545 bool result;
10546 PyObject * obj0 = 0 ;
10547 char *kwnames[] = {
10548 (char *) "self", NULL
10549 };
10550
10551 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasZ",kwnames,&obj0)) goto fail;
10552 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10553 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10554 {
10555 PyThreadState* __tstate = wxPyBeginAllowThreads();
10556 result = (bool)(arg1)->HasZ();
10557
10558 wxPyEndAllowThreads(__tstate);
10559 if (PyErr_Occurred()) SWIG_fail;
10560 }
10561 {
10562 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10563 }
10564 return resultobj;
10565 fail:
10566 return NULL;
10567 }
10568
10569
10570 static PyObject *_wrap_Joystick_HasU(PyObject *self, PyObject *args, PyObject *kwargs) {
10571 PyObject *resultobj;
10572 wxJoystick *arg1 = (wxJoystick *) 0 ;
10573 bool result;
10574 PyObject * obj0 = 0 ;
10575 char *kwnames[] = {
10576 (char *) "self", NULL
10577 };
10578
10579 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasU",kwnames,&obj0)) goto fail;
10580 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10581 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10582 {
10583 PyThreadState* __tstate = wxPyBeginAllowThreads();
10584 result = (bool)(arg1)->HasU();
10585
10586 wxPyEndAllowThreads(__tstate);
10587 if (PyErr_Occurred()) SWIG_fail;
10588 }
10589 {
10590 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10591 }
10592 return resultobj;
10593 fail:
10594 return NULL;
10595 }
10596
10597
10598 static PyObject *_wrap_Joystick_HasV(PyObject *self, PyObject *args, PyObject *kwargs) {
10599 PyObject *resultobj;
10600 wxJoystick *arg1 = (wxJoystick *) 0 ;
10601 bool result;
10602 PyObject * obj0 = 0 ;
10603 char *kwnames[] = {
10604 (char *) "self", NULL
10605 };
10606
10607 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasV",kwnames,&obj0)) goto fail;
10608 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10609 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10610 {
10611 PyThreadState* __tstate = wxPyBeginAllowThreads();
10612 result = (bool)(arg1)->HasV();
10613
10614 wxPyEndAllowThreads(__tstate);
10615 if (PyErr_Occurred()) SWIG_fail;
10616 }
10617 {
10618 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10619 }
10620 return resultobj;
10621 fail:
10622 return NULL;
10623 }
10624
10625
10626 static PyObject *_wrap_Joystick_HasPOV(PyObject *self, PyObject *args, PyObject *kwargs) {
10627 PyObject *resultobj;
10628 wxJoystick *arg1 = (wxJoystick *) 0 ;
10629 bool result;
10630 PyObject * obj0 = 0 ;
10631 char *kwnames[] = {
10632 (char *) "self", NULL
10633 };
10634
10635 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOV",kwnames,&obj0)) goto fail;
10636 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10637 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10638 {
10639 PyThreadState* __tstate = wxPyBeginAllowThreads();
10640 result = (bool)(arg1)->HasPOV();
10641
10642 wxPyEndAllowThreads(__tstate);
10643 if (PyErr_Occurred()) SWIG_fail;
10644 }
10645 {
10646 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10647 }
10648 return resultobj;
10649 fail:
10650 return NULL;
10651 }
10652
10653
10654 static PyObject *_wrap_Joystick_HasPOV4Dir(PyObject *self, PyObject *args, PyObject *kwargs) {
10655 PyObject *resultobj;
10656 wxJoystick *arg1 = (wxJoystick *) 0 ;
10657 bool result;
10658 PyObject * obj0 = 0 ;
10659 char *kwnames[] = {
10660 (char *) "self", NULL
10661 };
10662
10663 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOV4Dir",kwnames,&obj0)) goto fail;
10664 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10665 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10666 {
10667 PyThreadState* __tstate = wxPyBeginAllowThreads();
10668 result = (bool)(arg1)->HasPOV4Dir();
10669
10670 wxPyEndAllowThreads(__tstate);
10671 if (PyErr_Occurred()) SWIG_fail;
10672 }
10673 {
10674 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10675 }
10676 return resultobj;
10677 fail:
10678 return NULL;
10679 }
10680
10681
10682 static PyObject *_wrap_Joystick_HasPOVCTS(PyObject *self, PyObject *args, PyObject *kwargs) {
10683 PyObject *resultobj;
10684 wxJoystick *arg1 = (wxJoystick *) 0 ;
10685 bool result;
10686 PyObject * obj0 = 0 ;
10687 char *kwnames[] = {
10688 (char *) "self", NULL
10689 };
10690
10691 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOVCTS",kwnames,&obj0)) goto fail;
10692 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10693 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10694 {
10695 PyThreadState* __tstate = wxPyBeginAllowThreads();
10696 result = (bool)(arg1)->HasPOVCTS();
10697
10698 wxPyEndAllowThreads(__tstate);
10699 if (PyErr_Occurred()) SWIG_fail;
10700 }
10701 {
10702 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10703 }
10704 return resultobj;
10705 fail:
10706 return NULL;
10707 }
10708
10709
10710 static PyObject *_wrap_Joystick_SetCapture(PyObject *self, PyObject *args, PyObject *kwargs) {
10711 PyObject *resultobj;
10712 wxJoystick *arg1 = (wxJoystick *) 0 ;
10713 wxWindow *arg2 = (wxWindow *) 0 ;
10714 int arg3 = (int) 0 ;
10715 bool result;
10716 PyObject * obj0 = 0 ;
10717 PyObject * obj1 = 0 ;
10718 PyObject * obj2 = 0 ;
10719 char *kwnames[] = {
10720 (char *) "self",(char *) "win",(char *) "pollingFreq", NULL
10721 };
10722
10723 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Joystick_SetCapture",kwnames,&obj0,&obj1,&obj2)) goto fail;
10724 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10725 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10726 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
10727 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10728 if (obj2) {
10729 arg3 = (int) SWIG_AsInt(obj2);
10730 if (PyErr_Occurred()) SWIG_fail;
10731 }
10732 {
10733 PyThreadState* __tstate = wxPyBeginAllowThreads();
10734 result = (bool)(arg1)->SetCapture(arg2,arg3);
10735
10736 wxPyEndAllowThreads(__tstate);
10737 if (PyErr_Occurred()) SWIG_fail;
10738 }
10739 {
10740 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10741 }
10742 return resultobj;
10743 fail:
10744 return NULL;
10745 }
10746
10747
10748 static PyObject *_wrap_Joystick_ReleaseCapture(PyObject *self, PyObject *args, PyObject *kwargs) {
10749 PyObject *resultobj;
10750 wxJoystick *arg1 = (wxJoystick *) 0 ;
10751 bool result;
10752 PyObject * obj0 = 0 ;
10753 char *kwnames[] = {
10754 (char *) "self", NULL
10755 };
10756
10757 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_ReleaseCapture",kwnames,&obj0)) goto fail;
10758 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10759 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10760 {
10761 PyThreadState* __tstate = wxPyBeginAllowThreads();
10762 result = (bool)(arg1)->ReleaseCapture();
10763
10764 wxPyEndAllowThreads(__tstate);
10765 if (PyErr_Occurred()) SWIG_fail;
10766 }
10767 {
10768 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10769 }
10770 return resultobj;
10771 fail:
10772 return NULL;
10773 }
10774
10775
10776 static PyObject * Joystick_swigregister(PyObject *self, PyObject *args) {
10777 PyObject *obj;
10778 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10779 SWIG_TypeClientData(SWIGTYPE_p_wxJoystick, obj);
10780 Py_INCREF(obj);
10781 return Py_BuildValue((char *)"");
10782 }
10783 static PyObject *_wrap_JoystickEvent_m_pos_set(PyObject *self, PyObject *args, PyObject *kwargs) {
10784 PyObject *resultobj;
10785 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10786 wxPoint *arg2 = (wxPoint *) 0 ;
10787 PyObject * obj0 = 0 ;
10788 PyObject * obj1 = 0 ;
10789 char *kwnames[] = {
10790 (char *) "self",(char *) "m_pos", NULL
10791 };
10792
10793 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_pos_set",kwnames,&obj0,&obj1)) goto fail;
10794 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10795 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10796 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPoint,
10797 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10798 if (arg1) (arg1)->m_pos = *arg2;
10799
10800 Py_INCREF(Py_None); resultobj = Py_None;
10801 return resultobj;
10802 fail:
10803 return NULL;
10804 }
10805
10806
10807 static PyObject *_wrap_JoystickEvent_m_pos_get(PyObject *self, PyObject *args, PyObject *kwargs) {
10808 PyObject *resultobj;
10809 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10810 wxPoint *result;
10811 PyObject * obj0 = 0 ;
10812 char *kwnames[] = {
10813 (char *) "self", NULL
10814 };
10815
10816 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_pos_get",kwnames,&obj0)) goto fail;
10817 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10818 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10819 result = (wxPoint *)& ((arg1)->m_pos);
10820
10821 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0);
10822 return resultobj;
10823 fail:
10824 return NULL;
10825 }
10826
10827
10828 static PyObject *_wrap_JoystickEvent_m_zPosition_set(PyObject *self, PyObject *args, PyObject *kwargs) {
10829 PyObject *resultobj;
10830 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10831 int arg2 ;
10832 PyObject * obj0 = 0 ;
10833 PyObject * obj1 = 0 ;
10834 char *kwnames[] = {
10835 (char *) "self",(char *) "m_zPosition", NULL
10836 };
10837
10838 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_zPosition_set",kwnames,&obj0,&obj1)) goto fail;
10839 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10840 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10841 arg2 = (int) SWIG_AsInt(obj1);
10842 if (PyErr_Occurred()) SWIG_fail;
10843 if (arg1) (arg1)->m_zPosition = arg2;
10844
10845 Py_INCREF(Py_None); resultobj = Py_None;
10846 return resultobj;
10847 fail:
10848 return NULL;
10849 }
10850
10851
10852 static PyObject *_wrap_JoystickEvent_m_zPosition_get(PyObject *self, PyObject *args, PyObject *kwargs) {
10853 PyObject *resultobj;
10854 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10855 int result;
10856 PyObject * obj0 = 0 ;
10857 char *kwnames[] = {
10858 (char *) "self", NULL
10859 };
10860
10861 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_zPosition_get",kwnames,&obj0)) goto fail;
10862 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10863 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10864 result = (int) ((arg1)->m_zPosition);
10865
10866 resultobj = SWIG_FromInt((int)result);
10867 return resultobj;
10868 fail:
10869 return NULL;
10870 }
10871
10872
10873 static PyObject *_wrap_JoystickEvent_m_buttonChange_set(PyObject *self, PyObject *args, PyObject *kwargs) {
10874 PyObject *resultobj;
10875 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10876 int arg2 ;
10877 PyObject * obj0 = 0 ;
10878 PyObject * obj1 = 0 ;
10879 char *kwnames[] = {
10880 (char *) "self",(char *) "m_buttonChange", NULL
10881 };
10882
10883 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_buttonChange_set",kwnames,&obj0,&obj1)) goto fail;
10884 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10885 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10886 arg2 = (int) SWIG_AsInt(obj1);
10887 if (PyErr_Occurred()) SWIG_fail;
10888 if (arg1) (arg1)->m_buttonChange = arg2;
10889
10890 Py_INCREF(Py_None); resultobj = Py_None;
10891 return resultobj;
10892 fail:
10893 return NULL;
10894 }
10895
10896
10897 static PyObject *_wrap_JoystickEvent_m_buttonChange_get(PyObject *self, PyObject *args, PyObject *kwargs) {
10898 PyObject *resultobj;
10899 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10900 int result;
10901 PyObject * obj0 = 0 ;
10902 char *kwnames[] = {
10903 (char *) "self", NULL
10904 };
10905
10906 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_buttonChange_get",kwnames,&obj0)) goto fail;
10907 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10908 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10909 result = (int) ((arg1)->m_buttonChange);
10910
10911 resultobj = SWIG_FromInt((int)result);
10912 return resultobj;
10913 fail:
10914 return NULL;
10915 }
10916
10917
10918 static PyObject *_wrap_JoystickEvent_m_buttonState_set(PyObject *self, PyObject *args, PyObject *kwargs) {
10919 PyObject *resultobj;
10920 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10921 int arg2 ;
10922 PyObject * obj0 = 0 ;
10923 PyObject * obj1 = 0 ;
10924 char *kwnames[] = {
10925 (char *) "self",(char *) "m_buttonState", NULL
10926 };
10927
10928 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_buttonState_set",kwnames,&obj0,&obj1)) goto fail;
10929 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10930 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10931 arg2 = (int) SWIG_AsInt(obj1);
10932 if (PyErr_Occurred()) SWIG_fail;
10933 if (arg1) (arg1)->m_buttonState = arg2;
10934
10935 Py_INCREF(Py_None); resultobj = Py_None;
10936 return resultobj;
10937 fail:
10938 return NULL;
10939 }
10940
10941
10942 static PyObject *_wrap_JoystickEvent_m_buttonState_get(PyObject *self, PyObject *args, PyObject *kwargs) {
10943 PyObject *resultobj;
10944 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10945 int result;
10946 PyObject * obj0 = 0 ;
10947 char *kwnames[] = {
10948 (char *) "self", NULL
10949 };
10950
10951 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_buttonState_get",kwnames,&obj0)) goto fail;
10952 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10953 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10954 result = (int) ((arg1)->m_buttonState);
10955
10956 resultobj = SWIG_FromInt((int)result);
10957 return resultobj;
10958 fail:
10959 return NULL;
10960 }
10961
10962
10963 static PyObject *_wrap_JoystickEvent_m_joyStick_set(PyObject *self, PyObject *args, PyObject *kwargs) {
10964 PyObject *resultobj;
10965 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10966 int arg2 ;
10967 PyObject * obj0 = 0 ;
10968 PyObject * obj1 = 0 ;
10969 char *kwnames[] = {
10970 (char *) "self",(char *) "m_joyStick", NULL
10971 };
10972
10973 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_joyStick_set",kwnames,&obj0,&obj1)) goto fail;
10974 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10975 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10976 arg2 = (int) SWIG_AsInt(obj1);
10977 if (PyErr_Occurred()) SWIG_fail;
10978 if (arg1) (arg1)->m_joyStick = arg2;
10979
10980 Py_INCREF(Py_None); resultobj = Py_None;
10981 return resultobj;
10982 fail:
10983 return NULL;
10984 }
10985
10986
10987 static PyObject *_wrap_JoystickEvent_m_joyStick_get(PyObject *self, PyObject *args, PyObject *kwargs) {
10988 PyObject *resultobj;
10989 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10990 int result;
10991 PyObject * obj0 = 0 ;
10992 char *kwnames[] = {
10993 (char *) "self", NULL
10994 };
10995
10996 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_joyStick_get",kwnames,&obj0)) goto fail;
10997 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10998 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10999 result = (int) ((arg1)->m_joyStick);
11000
11001 resultobj = SWIG_FromInt((int)result);
11002 return resultobj;
11003 fail:
11004 return NULL;
11005 }
11006
11007
11008 static PyObject *_wrap_new_JoystickEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
11009 PyObject *resultobj;
11010 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
11011 int arg2 = (int) 0 ;
11012 int arg3 = (int) wxJOYSTICK1 ;
11013 int arg4 = (int) 0 ;
11014 wxJoystickEvent *result;
11015 PyObject * obj0 = 0 ;
11016 PyObject * obj1 = 0 ;
11017 PyObject * obj2 = 0 ;
11018 PyObject * obj3 = 0 ;
11019 char *kwnames[] = {
11020 (char *) "type",(char *) "state",(char *) "joystick",(char *) "change", NULL
11021 };
11022
11023 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_JoystickEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11024 if (obj0) {
11025 arg1 = (wxEventType) SWIG_AsInt(obj0);
11026 if (PyErr_Occurred()) SWIG_fail;
11027 }
11028 if (obj1) {
11029 arg2 = (int) SWIG_AsInt(obj1);
11030 if (PyErr_Occurred()) SWIG_fail;
11031 }
11032 if (obj2) {
11033 arg3 = (int) SWIG_AsInt(obj2);
11034 if (PyErr_Occurred()) SWIG_fail;
11035 }
11036 if (obj3) {
11037 arg4 = (int) SWIG_AsInt(obj3);
11038 if (PyErr_Occurred()) SWIG_fail;
11039 }
11040 {
11041 PyThreadState* __tstate = wxPyBeginAllowThreads();
11042 result = (wxJoystickEvent *)new wxJoystickEvent(arg1,arg2,arg3,arg4);
11043
11044 wxPyEndAllowThreads(__tstate);
11045 if (PyErr_Occurred()) SWIG_fail;
11046 }
11047 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxJoystickEvent, 1);
11048 return resultobj;
11049 fail:
11050 return NULL;
11051 }
11052
11053
11054 static PyObject *_wrap_JoystickEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
11055 PyObject *resultobj;
11056 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11057 wxPoint result;
11058 PyObject * obj0 = 0 ;
11059 char *kwnames[] = {
11060 (char *) "self", NULL
11061 };
11062
11063 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetPosition",kwnames,&obj0)) goto fail;
11064 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11065 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11066 {
11067 PyThreadState* __tstate = wxPyBeginAllowThreads();
11068 result = ((wxJoystickEvent const *)arg1)->GetPosition();
11069
11070 wxPyEndAllowThreads(__tstate);
11071 if (PyErr_Occurred()) SWIG_fail;
11072 }
11073 {
11074 wxPoint * resultptr;
11075 resultptr = new wxPoint((wxPoint &) result);
11076 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
11077 }
11078 return resultobj;
11079 fail:
11080 return NULL;
11081 }
11082
11083
11084 static PyObject *_wrap_JoystickEvent_GetZPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
11085 PyObject *resultobj;
11086 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11087 int result;
11088 PyObject * obj0 = 0 ;
11089 char *kwnames[] = {
11090 (char *) "self", NULL
11091 };
11092
11093 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetZPosition",kwnames,&obj0)) goto fail;
11094 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11095 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11096 {
11097 PyThreadState* __tstate = wxPyBeginAllowThreads();
11098 result = (int)((wxJoystickEvent const *)arg1)->GetZPosition();
11099
11100 wxPyEndAllowThreads(__tstate);
11101 if (PyErr_Occurred()) SWIG_fail;
11102 }
11103 resultobj = SWIG_FromInt((int)result);
11104 return resultobj;
11105 fail:
11106 return NULL;
11107 }
11108
11109
11110 static PyObject *_wrap_JoystickEvent_GetButtonState(PyObject *self, PyObject *args, PyObject *kwargs) {
11111 PyObject *resultobj;
11112 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11113 int result;
11114 PyObject * obj0 = 0 ;
11115 char *kwnames[] = {
11116 (char *) "self", NULL
11117 };
11118
11119 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetButtonState",kwnames,&obj0)) goto fail;
11120 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11121 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11122 {
11123 PyThreadState* __tstate = wxPyBeginAllowThreads();
11124 result = (int)((wxJoystickEvent const *)arg1)->GetButtonState();
11125
11126 wxPyEndAllowThreads(__tstate);
11127 if (PyErr_Occurred()) SWIG_fail;
11128 }
11129 resultobj = SWIG_FromInt((int)result);
11130 return resultobj;
11131 fail:
11132 return NULL;
11133 }
11134
11135
11136 static PyObject *_wrap_JoystickEvent_GetButtonChange(PyObject *self, PyObject *args, PyObject *kwargs) {
11137 PyObject *resultobj;
11138 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11139 int result;
11140 PyObject * obj0 = 0 ;
11141 char *kwnames[] = {
11142 (char *) "self", NULL
11143 };
11144
11145 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetButtonChange",kwnames,&obj0)) goto fail;
11146 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11147 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11148 {
11149 PyThreadState* __tstate = wxPyBeginAllowThreads();
11150 result = (int)((wxJoystickEvent const *)arg1)->GetButtonChange();
11151
11152 wxPyEndAllowThreads(__tstate);
11153 if (PyErr_Occurred()) SWIG_fail;
11154 }
11155 resultobj = SWIG_FromInt((int)result);
11156 return resultobj;
11157 fail:
11158 return NULL;
11159 }
11160
11161
11162 static PyObject *_wrap_JoystickEvent_GetJoystick(PyObject *self, PyObject *args, PyObject *kwargs) {
11163 PyObject *resultobj;
11164 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11165 int result;
11166 PyObject * obj0 = 0 ;
11167 char *kwnames[] = {
11168 (char *) "self", NULL
11169 };
11170
11171 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetJoystick",kwnames,&obj0)) goto fail;
11172 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11173 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11174 {
11175 PyThreadState* __tstate = wxPyBeginAllowThreads();
11176 result = (int)((wxJoystickEvent const *)arg1)->GetJoystick();
11177
11178 wxPyEndAllowThreads(__tstate);
11179 if (PyErr_Occurred()) SWIG_fail;
11180 }
11181 resultobj = SWIG_FromInt((int)result);
11182 return resultobj;
11183 fail:
11184 return NULL;
11185 }
11186
11187
11188 static PyObject *_wrap_JoystickEvent_SetJoystick(PyObject *self, PyObject *args, PyObject *kwargs) {
11189 PyObject *resultobj;
11190 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11191 int arg2 ;
11192 PyObject * obj0 = 0 ;
11193 PyObject * obj1 = 0 ;
11194 char *kwnames[] = {
11195 (char *) "self",(char *) "stick", NULL
11196 };
11197
11198 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetJoystick",kwnames,&obj0,&obj1)) goto fail;
11199 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11200 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11201 arg2 = (int) SWIG_AsInt(obj1);
11202 if (PyErr_Occurred()) SWIG_fail;
11203 {
11204 PyThreadState* __tstate = wxPyBeginAllowThreads();
11205 (arg1)->SetJoystick(arg2);
11206
11207 wxPyEndAllowThreads(__tstate);
11208 if (PyErr_Occurred()) SWIG_fail;
11209 }
11210 Py_INCREF(Py_None); resultobj = Py_None;
11211 return resultobj;
11212 fail:
11213 return NULL;
11214 }
11215
11216
11217 static PyObject *_wrap_JoystickEvent_SetButtonState(PyObject *self, PyObject *args, PyObject *kwargs) {
11218 PyObject *resultobj;
11219 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11220 int arg2 ;
11221 PyObject * obj0 = 0 ;
11222 PyObject * obj1 = 0 ;
11223 char *kwnames[] = {
11224 (char *) "self",(char *) "state", NULL
11225 };
11226
11227 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetButtonState",kwnames,&obj0,&obj1)) goto fail;
11228 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11229 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11230 arg2 = (int) SWIG_AsInt(obj1);
11231 if (PyErr_Occurred()) SWIG_fail;
11232 {
11233 PyThreadState* __tstate = wxPyBeginAllowThreads();
11234 (arg1)->SetButtonState(arg2);
11235
11236 wxPyEndAllowThreads(__tstate);
11237 if (PyErr_Occurred()) SWIG_fail;
11238 }
11239 Py_INCREF(Py_None); resultobj = Py_None;
11240 return resultobj;
11241 fail:
11242 return NULL;
11243 }
11244
11245
11246 static PyObject *_wrap_JoystickEvent_SetButtonChange(PyObject *self, PyObject *args, PyObject *kwargs) {
11247 PyObject *resultobj;
11248 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11249 int arg2 ;
11250 PyObject * obj0 = 0 ;
11251 PyObject * obj1 = 0 ;
11252 char *kwnames[] = {
11253 (char *) "self",(char *) "change", NULL
11254 };
11255
11256 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetButtonChange",kwnames,&obj0,&obj1)) goto fail;
11257 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11258 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11259 arg2 = (int) SWIG_AsInt(obj1);
11260 if (PyErr_Occurred()) SWIG_fail;
11261 {
11262 PyThreadState* __tstate = wxPyBeginAllowThreads();
11263 (arg1)->SetButtonChange(arg2);
11264
11265 wxPyEndAllowThreads(__tstate);
11266 if (PyErr_Occurred()) SWIG_fail;
11267 }
11268 Py_INCREF(Py_None); resultobj = Py_None;
11269 return resultobj;
11270 fail:
11271 return NULL;
11272 }
11273
11274
11275 static PyObject *_wrap_JoystickEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
11276 PyObject *resultobj;
11277 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11278 wxPoint *arg2 = 0 ;
11279 wxPoint temp2 ;
11280 PyObject * obj0 = 0 ;
11281 PyObject * obj1 = 0 ;
11282 char *kwnames[] = {
11283 (char *) "self",(char *) "pos", NULL
11284 };
11285
11286 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail;
11287 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11288 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11289 {
11290 arg2 = &temp2;
11291 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11292 }
11293 {
11294 PyThreadState* __tstate = wxPyBeginAllowThreads();
11295 (arg1)->SetPosition((wxPoint const &)*arg2);
11296
11297 wxPyEndAllowThreads(__tstate);
11298 if (PyErr_Occurred()) SWIG_fail;
11299 }
11300 Py_INCREF(Py_None); resultobj = Py_None;
11301 return resultobj;
11302 fail:
11303 return NULL;
11304 }
11305
11306
11307 static PyObject *_wrap_JoystickEvent_SetZPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
11308 PyObject *resultobj;
11309 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11310 int arg2 ;
11311 PyObject * obj0 = 0 ;
11312 PyObject * obj1 = 0 ;
11313 char *kwnames[] = {
11314 (char *) "self",(char *) "zPos", NULL
11315 };
11316
11317 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetZPosition",kwnames,&obj0,&obj1)) goto fail;
11318 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11319 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11320 arg2 = (int) SWIG_AsInt(obj1);
11321 if (PyErr_Occurred()) SWIG_fail;
11322 {
11323 PyThreadState* __tstate = wxPyBeginAllowThreads();
11324 (arg1)->SetZPosition(arg2);
11325
11326 wxPyEndAllowThreads(__tstate);
11327 if (PyErr_Occurred()) SWIG_fail;
11328 }
11329 Py_INCREF(Py_None); resultobj = Py_None;
11330 return resultobj;
11331 fail:
11332 return NULL;
11333 }
11334
11335
11336 static PyObject *_wrap_JoystickEvent_IsButton(PyObject *self, PyObject *args, PyObject *kwargs) {
11337 PyObject *resultobj;
11338 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11339 bool result;
11340 PyObject * obj0 = 0 ;
11341 char *kwnames[] = {
11342 (char *) "self", NULL
11343 };
11344
11345 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsButton",kwnames,&obj0)) goto fail;
11346 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11347 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11348 {
11349 PyThreadState* __tstate = wxPyBeginAllowThreads();
11350 result = (bool)((wxJoystickEvent const *)arg1)->IsButton();
11351
11352 wxPyEndAllowThreads(__tstate);
11353 if (PyErr_Occurred()) SWIG_fail;
11354 }
11355 {
11356 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11357 }
11358 return resultobj;
11359 fail:
11360 return NULL;
11361 }
11362
11363
11364 static PyObject *_wrap_JoystickEvent_IsMove(PyObject *self, PyObject *args, PyObject *kwargs) {
11365 PyObject *resultobj;
11366 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11367 bool result;
11368 PyObject * obj0 = 0 ;
11369 char *kwnames[] = {
11370 (char *) "self", NULL
11371 };
11372
11373 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsMove",kwnames,&obj0)) goto fail;
11374 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11375 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11376 {
11377 PyThreadState* __tstate = wxPyBeginAllowThreads();
11378 result = (bool)((wxJoystickEvent const *)arg1)->IsMove();
11379
11380 wxPyEndAllowThreads(__tstate);
11381 if (PyErr_Occurred()) SWIG_fail;
11382 }
11383 {
11384 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11385 }
11386 return resultobj;
11387 fail:
11388 return NULL;
11389 }
11390
11391
11392 static PyObject *_wrap_JoystickEvent_IsZMove(PyObject *self, PyObject *args, PyObject *kwargs) {
11393 PyObject *resultobj;
11394 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11395 bool result;
11396 PyObject * obj0 = 0 ;
11397 char *kwnames[] = {
11398 (char *) "self", NULL
11399 };
11400
11401 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsZMove",kwnames,&obj0)) goto fail;
11402 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11403 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11404 {
11405 PyThreadState* __tstate = wxPyBeginAllowThreads();
11406 result = (bool)((wxJoystickEvent const *)arg1)->IsZMove();
11407
11408 wxPyEndAllowThreads(__tstate);
11409 if (PyErr_Occurred()) SWIG_fail;
11410 }
11411 {
11412 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11413 }
11414 return resultobj;
11415 fail:
11416 return NULL;
11417 }
11418
11419
11420 static PyObject *_wrap_JoystickEvent_ButtonDown(PyObject *self, PyObject *args, PyObject *kwargs) {
11421 PyObject *resultobj;
11422 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11423 int arg2 = (int) wxJOY_BUTTON_ANY ;
11424 bool result;
11425 PyObject * obj0 = 0 ;
11426 PyObject * obj1 = 0 ;
11427 char *kwnames[] = {
11428 (char *) "self",(char *) "but", NULL
11429 };
11430
11431 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonDown",kwnames,&obj0,&obj1)) goto fail;
11432 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11433 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11434 if (obj1) {
11435 arg2 = (int) SWIG_AsInt(obj1);
11436 if (PyErr_Occurred()) SWIG_fail;
11437 }
11438 {
11439 PyThreadState* __tstate = wxPyBeginAllowThreads();
11440 result = (bool)((wxJoystickEvent const *)arg1)->ButtonDown(arg2);
11441
11442 wxPyEndAllowThreads(__tstate);
11443 if (PyErr_Occurred()) SWIG_fail;
11444 }
11445 {
11446 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11447 }
11448 return resultobj;
11449 fail:
11450 return NULL;
11451 }
11452
11453
11454 static PyObject *_wrap_JoystickEvent_ButtonUp(PyObject *self, PyObject *args, PyObject *kwargs) {
11455 PyObject *resultobj;
11456 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11457 int arg2 = (int) wxJOY_BUTTON_ANY ;
11458 bool result;
11459 PyObject * obj0 = 0 ;
11460 PyObject * obj1 = 0 ;
11461 char *kwnames[] = {
11462 (char *) "self",(char *) "but", NULL
11463 };
11464
11465 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonUp",kwnames,&obj0,&obj1)) goto fail;
11466 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11467 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11468 if (obj1) {
11469 arg2 = (int) SWIG_AsInt(obj1);
11470 if (PyErr_Occurred()) SWIG_fail;
11471 }
11472 {
11473 PyThreadState* __tstate = wxPyBeginAllowThreads();
11474 result = (bool)((wxJoystickEvent const *)arg1)->ButtonUp(arg2);
11475
11476 wxPyEndAllowThreads(__tstate);
11477 if (PyErr_Occurred()) SWIG_fail;
11478 }
11479 {
11480 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11481 }
11482 return resultobj;
11483 fail:
11484 return NULL;
11485 }
11486
11487
11488 static PyObject *_wrap_JoystickEvent_ButtonIsDown(PyObject *self, PyObject *args, PyObject *kwargs) {
11489 PyObject *resultobj;
11490 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11491 int arg2 = (int) wxJOY_BUTTON_ANY ;
11492 bool result;
11493 PyObject * obj0 = 0 ;
11494 PyObject * obj1 = 0 ;
11495 char *kwnames[] = {
11496 (char *) "self",(char *) "but", NULL
11497 };
11498
11499 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonIsDown",kwnames,&obj0,&obj1)) goto fail;
11500 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11501 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11502 if (obj1) {
11503 arg2 = (int) SWIG_AsInt(obj1);
11504 if (PyErr_Occurred()) SWIG_fail;
11505 }
11506 {
11507 PyThreadState* __tstate = wxPyBeginAllowThreads();
11508 result = (bool)((wxJoystickEvent const *)arg1)->ButtonIsDown(arg2);
11509
11510 wxPyEndAllowThreads(__tstate);
11511 if (PyErr_Occurred()) SWIG_fail;
11512 }
11513 {
11514 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11515 }
11516 return resultobj;
11517 fail:
11518 return NULL;
11519 }
11520
11521
11522 static PyObject * JoystickEvent_swigregister(PyObject *self, PyObject *args) {
11523 PyObject *obj;
11524 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11525 SWIG_TypeClientData(SWIGTYPE_p_wxJoystickEvent, obj);
11526 Py_INCREF(obj);
11527 return Py_BuildValue((char *)"");
11528 }
11529 static PyObject *_wrap_new_Sound(PyObject *self, PyObject *args, PyObject *kwargs) {
11530 PyObject *resultobj;
11531 wxString const &arg1_defvalue = wxPyEmptyString ;
11532 wxString *arg1 = (wxString *) &arg1_defvalue ;
11533 wxSound *result;
11534 bool temp1 = False ;
11535 PyObject * obj0 = 0 ;
11536 char *kwnames[] = {
11537 (char *) "fileName", NULL
11538 };
11539
11540 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Sound",kwnames,&obj0)) goto fail;
11541 if (obj0) {
11542 {
11543 arg1 = wxString_in_helper(obj0);
11544 if (arg1 == NULL) SWIG_fail;
11545 temp1 = True;
11546 }
11547 }
11548 {
11549 PyThreadState* __tstate = wxPyBeginAllowThreads();
11550 result = (wxSound *)new_wxSound((wxString const &)*arg1);
11551
11552 wxPyEndAllowThreads(__tstate);
11553 if (PyErr_Occurred()) SWIG_fail;
11554 }
11555 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSound, 1);
11556 {
11557 if (temp1)
11558 delete arg1;
11559 }
11560 return resultobj;
11561 fail:
11562 {
11563 if (temp1)
11564 delete arg1;
11565 }
11566 return NULL;
11567 }
11568
11569
11570 static PyObject *_wrap_new_SoundFromData(PyObject *self, PyObject *args, PyObject *kwargs) {
11571 PyObject *resultobj;
11572 PyObject *arg1 = (PyObject *) 0 ;
11573 wxSound *result;
11574 PyObject * obj0 = 0 ;
11575 char *kwnames[] = {
11576 (char *) "data", NULL
11577 };
11578
11579 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_SoundFromData",kwnames,&obj0)) goto fail;
11580 arg1 = obj0;
11581 {
11582 PyThreadState* __tstate = wxPyBeginAllowThreads();
11583 result = (wxSound *)new_wxSound(arg1);
11584
11585 wxPyEndAllowThreads(__tstate);
11586 if (PyErr_Occurred()) SWIG_fail;
11587 }
11588 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSound, 1);
11589 return resultobj;
11590 fail:
11591 return NULL;
11592 }
11593
11594
11595 static PyObject *_wrap_delete_Sound(PyObject *self, PyObject *args, PyObject *kwargs) {
11596 PyObject *resultobj;
11597 wxSound *arg1 = (wxSound *) 0 ;
11598 PyObject * obj0 = 0 ;
11599 char *kwnames[] = {
11600 (char *) "self", NULL
11601 };
11602
11603 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Sound",kwnames,&obj0)) goto fail;
11604 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound,
11605 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11606 {
11607 PyThreadState* __tstate = wxPyBeginAllowThreads();
11608 delete arg1;
11609
11610 wxPyEndAllowThreads(__tstate);
11611 if (PyErr_Occurred()) SWIG_fail;
11612 }
11613 Py_INCREF(Py_None); resultobj = Py_None;
11614 return resultobj;
11615 fail:
11616 return NULL;
11617 }
11618
11619
11620 static PyObject *_wrap_Sound_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
11621 PyObject *resultobj;
11622 wxSound *arg1 = (wxSound *) 0 ;
11623 wxString *arg2 = 0 ;
11624 bool result;
11625 bool temp2 = False ;
11626 PyObject * obj0 = 0 ;
11627 PyObject * obj1 = 0 ;
11628 char *kwnames[] = {
11629 (char *) "self",(char *) "fileName", NULL
11630 };
11631
11632 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sound_Create",kwnames,&obj0,&obj1)) goto fail;
11633 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound,
11634 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11635 {
11636 arg2 = wxString_in_helper(obj1);
11637 if (arg2 == NULL) SWIG_fail;
11638 temp2 = True;
11639 }
11640 {
11641 PyThreadState* __tstate = wxPyBeginAllowThreads();
11642 result = (bool)(arg1)->Create((wxString const &)*arg2);
11643
11644 wxPyEndAllowThreads(__tstate);
11645 if (PyErr_Occurred()) SWIG_fail;
11646 }
11647 {
11648 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11649 }
11650 {
11651 if (temp2)
11652 delete arg2;
11653 }
11654 return resultobj;
11655 fail:
11656 {
11657 if (temp2)
11658 delete arg2;
11659 }
11660 return NULL;
11661 }
11662
11663
11664 static PyObject *_wrap_Sound_CreateFromData(PyObject *self, PyObject *args, PyObject *kwargs) {
11665 PyObject *resultobj;
11666 wxSound *arg1 = (wxSound *) 0 ;
11667 PyObject *arg2 = (PyObject *) 0 ;
11668 bool result;
11669 PyObject * obj0 = 0 ;
11670 PyObject * obj1 = 0 ;
11671 char *kwnames[] = {
11672 (char *) "self",(char *) "data", NULL
11673 };
11674
11675 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sound_CreateFromData",kwnames,&obj0,&obj1)) goto fail;
11676 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound,
11677 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11678 arg2 = obj1;
11679 {
11680 PyThreadState* __tstate = wxPyBeginAllowThreads();
11681 result = (bool)wxSound_CreateFromData(arg1,arg2);
11682
11683 wxPyEndAllowThreads(__tstate);
11684 if (PyErr_Occurred()) SWIG_fail;
11685 }
11686 {
11687 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11688 }
11689 return resultobj;
11690 fail:
11691 return NULL;
11692 }
11693
11694
11695 static PyObject *_wrap_Sound_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
11696 PyObject *resultobj;
11697 wxSound *arg1 = (wxSound *) 0 ;
11698 bool result;
11699 PyObject * obj0 = 0 ;
11700 char *kwnames[] = {
11701 (char *) "self", NULL
11702 };
11703
11704 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sound_IsOk",kwnames,&obj0)) goto fail;
11705 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound,
11706 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11707 {
11708 PyThreadState* __tstate = wxPyBeginAllowThreads();
11709 result = (bool)(arg1)->IsOk();
11710
11711 wxPyEndAllowThreads(__tstate);
11712 if (PyErr_Occurred()) SWIG_fail;
11713 }
11714 {
11715 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11716 }
11717 return resultobj;
11718 fail:
11719 return NULL;
11720 }
11721
11722
11723 static PyObject *_wrap_Sound_Play(PyObject *self, PyObject *args, PyObject *kwargs) {
11724 PyObject *resultobj;
11725 wxSound *arg1 = (wxSound *) 0 ;
11726 unsigned int arg2 = (unsigned int) wxSOUND_ASYNC ;
11727 bool result;
11728 PyObject * obj0 = 0 ;
11729 PyObject * obj1 = 0 ;
11730 char *kwnames[] = {
11731 (char *) "self",(char *) "flags", NULL
11732 };
11733
11734 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Sound_Play",kwnames,&obj0,&obj1)) goto fail;
11735 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound,
11736 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11737 if (obj1) {
11738 arg2 = (unsigned int) SWIG_AsUnsignedInt(obj1);
11739 if (PyErr_Occurred()) SWIG_fail;
11740 }
11741 {
11742 PyThreadState* __tstate = wxPyBeginAllowThreads();
11743 result = (bool)((wxSound const *)arg1)->Play(arg2);
11744
11745 wxPyEndAllowThreads(__tstate);
11746 if (PyErr_Occurred()) SWIG_fail;
11747 }
11748 {
11749 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11750 }
11751 return resultobj;
11752 fail:
11753 return NULL;
11754 }
11755
11756
11757 static PyObject *_wrap_Sound_PlaySound(PyObject *self, PyObject *args, PyObject *kwargs) {
11758 PyObject *resultobj;
11759 wxString *arg1 = 0 ;
11760 unsigned int arg2 = (unsigned int) wxSOUND_ASYNC ;
11761 bool result;
11762 bool temp1 = False ;
11763 PyObject * obj0 = 0 ;
11764 PyObject * obj1 = 0 ;
11765 char *kwnames[] = {
11766 (char *) "filename",(char *) "flags", NULL
11767 };
11768
11769 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Sound_PlaySound",kwnames,&obj0,&obj1)) goto fail;
11770 {
11771 arg1 = wxString_in_helper(obj0);
11772 if (arg1 == NULL) SWIG_fail;
11773 temp1 = True;
11774 }
11775 if (obj1) {
11776 arg2 = (unsigned int) SWIG_AsUnsignedInt(obj1);
11777 if (PyErr_Occurred()) SWIG_fail;
11778 }
11779 {
11780 PyThreadState* __tstate = wxPyBeginAllowThreads();
11781 result = (bool)wxSound::Play((wxString const &)*arg1,arg2);
11782
11783 wxPyEndAllowThreads(__tstate);
11784 if (PyErr_Occurred()) SWIG_fail;
11785 }
11786 {
11787 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11788 }
11789 {
11790 if (temp1)
11791 delete arg1;
11792 }
11793 return resultobj;
11794 fail:
11795 {
11796 if (temp1)
11797 delete arg1;
11798 }
11799 return NULL;
11800 }
11801
11802
11803 static PyObject *_wrap_Sound_Stop(PyObject *self, PyObject *args, PyObject *kwargs) {
11804 PyObject *resultobj;
11805 char *kwnames[] = {
11806 NULL
11807 };
11808
11809 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Sound_Stop",kwnames)) goto fail;
11810 {
11811 PyThreadState* __tstate = wxPyBeginAllowThreads();
11812 wxSound::Stop();
11813
11814 wxPyEndAllowThreads(__tstate);
11815 if (PyErr_Occurred()) SWIG_fail;
11816 }
11817 Py_INCREF(Py_None); resultobj = Py_None;
11818 return resultobj;
11819 fail:
11820 return NULL;
11821 }
11822
11823
11824 static PyObject * Sound_swigregister(PyObject *self, PyObject *args) {
11825 PyObject *obj;
11826 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11827 SWIG_TypeClientData(SWIGTYPE_p_wxSound, obj);
11828 Py_INCREF(obj);
11829 return Py_BuildValue((char *)"");
11830 }
11831 static PyObject *_wrap_new_FileTypeInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
11832 PyObject *resultobj;
11833 wxString *arg1 = 0 ;
11834 wxString *arg2 = 0 ;
11835 wxString *arg3 = 0 ;
11836 wxString *arg4 = 0 ;
11837 wxFileTypeInfo *result;
11838 bool temp1 = False ;
11839 bool temp2 = False ;
11840 bool temp3 = False ;
11841 bool temp4 = False ;
11842 PyObject * obj0 = 0 ;
11843 PyObject * obj1 = 0 ;
11844 PyObject * obj2 = 0 ;
11845 PyObject * obj3 = 0 ;
11846 char *kwnames[] = {
11847 (char *) "mimeType",(char *) "openCmd",(char *) "printCmd",(char *) "desc", NULL
11848 };
11849
11850 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_FileTypeInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11851 {
11852 arg1 = wxString_in_helper(obj0);
11853 if (arg1 == NULL) SWIG_fail;
11854 temp1 = True;
11855 }
11856 {
11857 arg2 = wxString_in_helper(obj1);
11858 if (arg2 == NULL) SWIG_fail;
11859 temp2 = True;
11860 }
11861 {
11862 arg3 = wxString_in_helper(obj2);
11863 if (arg3 == NULL) SWIG_fail;
11864 temp3 = True;
11865 }
11866 {
11867 arg4 = wxString_in_helper(obj3);
11868 if (arg4 == NULL) SWIG_fail;
11869 temp4 = True;
11870 }
11871 {
11872 PyThreadState* __tstate = wxPyBeginAllowThreads();
11873 result = (wxFileTypeInfo *)new wxFileTypeInfo((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4);
11874
11875 wxPyEndAllowThreads(__tstate);
11876 if (PyErr_Occurred()) SWIG_fail;
11877 }
11878 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileTypeInfo, 1);
11879 {
11880 if (temp1)
11881 delete arg1;
11882 }
11883 {
11884 if (temp2)
11885 delete arg2;
11886 }
11887 {
11888 if (temp3)
11889 delete arg3;
11890 }
11891 {
11892 if (temp4)
11893 delete arg4;
11894 }
11895 return resultobj;
11896 fail:
11897 {
11898 if (temp1)
11899 delete arg1;
11900 }
11901 {
11902 if (temp2)
11903 delete arg2;
11904 }
11905 {
11906 if (temp3)
11907 delete arg3;
11908 }
11909 {
11910 if (temp4)
11911 delete arg4;
11912 }
11913 return NULL;
11914 }
11915
11916
11917 static PyObject *_wrap_new_FileTypeInfoSequence(PyObject *self, PyObject *args, PyObject *kwargs) {
11918 PyObject *resultobj;
11919 wxArrayString *arg1 = 0 ;
11920 wxFileTypeInfo *result;
11921 bool temp1 = False ;
11922 PyObject * obj0 = 0 ;
11923 char *kwnames[] = {
11924 (char *) "sArray", NULL
11925 };
11926
11927 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FileTypeInfoSequence",kwnames,&obj0)) goto fail;
11928 {
11929 if (! PySequence_Check(obj0)) {
11930 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
11931 SWIG_fail;
11932 }
11933 arg1 = new wxArrayString;
11934 temp1 = True;
11935 int i, len=PySequence_Length(obj0);
11936 for (i=0; i<len; i++) {
11937 PyObject* item = PySequence_GetItem(obj0, i);
11938 #if wxUSE_UNICODE
11939 PyObject* str = PyObject_Unicode(item);
11940 #else
11941 PyObject* str = PyObject_Str(item);
11942 #endif
11943 if (PyErr_Occurred()) SWIG_fail;
11944 arg1->Add(Py2wxString(str));
11945 Py_DECREF(item);
11946 Py_DECREF(str);
11947 }
11948 }
11949 {
11950 PyThreadState* __tstate = wxPyBeginAllowThreads();
11951 result = (wxFileTypeInfo *)new wxFileTypeInfo((wxArrayString const &)*arg1);
11952
11953 wxPyEndAllowThreads(__tstate);
11954 if (PyErr_Occurred()) SWIG_fail;
11955 }
11956 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileTypeInfo, 1);
11957 {
11958 if (temp1) delete arg1;
11959 }
11960 return resultobj;
11961 fail:
11962 {
11963 if (temp1) delete arg1;
11964 }
11965 return NULL;
11966 }
11967
11968
11969 static PyObject *_wrap_new_NullFileTypeInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
11970 PyObject *resultobj;
11971 wxFileTypeInfo *result;
11972 char *kwnames[] = {
11973 NULL
11974 };
11975
11976 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NullFileTypeInfo",kwnames)) goto fail;
11977 {
11978 PyThreadState* __tstate = wxPyBeginAllowThreads();
11979 result = (wxFileTypeInfo *)new wxFileTypeInfo();
11980
11981 wxPyEndAllowThreads(__tstate);
11982 if (PyErr_Occurred()) SWIG_fail;
11983 }
11984 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileTypeInfo, 1);
11985 return resultobj;
11986 fail:
11987 return NULL;
11988 }
11989
11990
11991 static PyObject *_wrap_FileTypeInfo_IsValid(PyObject *self, PyObject *args, PyObject *kwargs) {
11992 PyObject *resultobj;
11993 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
11994 bool result;
11995 PyObject * obj0 = 0 ;
11996 char *kwnames[] = {
11997 (char *) "self", NULL
11998 };
11999
12000 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_IsValid",kwnames,&obj0)) goto fail;
12001 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12002 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12003 {
12004 PyThreadState* __tstate = wxPyBeginAllowThreads();
12005 result = (bool)((wxFileTypeInfo const *)arg1)->IsValid();
12006
12007 wxPyEndAllowThreads(__tstate);
12008 if (PyErr_Occurred()) SWIG_fail;
12009 }
12010 {
12011 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12012 }
12013 return resultobj;
12014 fail:
12015 return NULL;
12016 }
12017
12018
12019 static PyObject *_wrap_FileTypeInfo_SetIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
12020 PyObject *resultobj;
12021 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12022 wxString *arg2 = 0 ;
12023 int arg3 = (int) 0 ;
12024 bool temp2 = False ;
12025 PyObject * obj0 = 0 ;
12026 PyObject * obj1 = 0 ;
12027 PyObject * obj2 = 0 ;
12028 char *kwnames[] = {
12029 (char *) "self",(char *) "iconFile",(char *) "iconIndex", NULL
12030 };
12031
12032 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileTypeInfo_SetIcon",kwnames,&obj0,&obj1,&obj2)) goto fail;
12033 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12034 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12035 {
12036 arg2 = wxString_in_helper(obj1);
12037 if (arg2 == NULL) SWIG_fail;
12038 temp2 = True;
12039 }
12040 if (obj2) {
12041 arg3 = (int) SWIG_AsInt(obj2);
12042 if (PyErr_Occurred()) SWIG_fail;
12043 }
12044 {
12045 PyThreadState* __tstate = wxPyBeginAllowThreads();
12046 (arg1)->SetIcon((wxString const &)*arg2,arg3);
12047
12048 wxPyEndAllowThreads(__tstate);
12049 if (PyErr_Occurred()) SWIG_fail;
12050 }
12051 Py_INCREF(Py_None); resultobj = Py_None;
12052 {
12053 if (temp2)
12054 delete arg2;
12055 }
12056 return resultobj;
12057 fail:
12058 {
12059 if (temp2)
12060 delete arg2;
12061 }
12062 return NULL;
12063 }
12064
12065
12066 static PyObject *_wrap_FileTypeInfo_SetShortDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
12067 PyObject *resultobj;
12068 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12069 wxString *arg2 = 0 ;
12070 bool temp2 = False ;
12071 PyObject * obj0 = 0 ;
12072 PyObject * obj1 = 0 ;
12073 char *kwnames[] = {
12074 (char *) "self",(char *) "shortDesc", NULL
12075 };
12076
12077 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileTypeInfo_SetShortDesc",kwnames,&obj0,&obj1)) goto fail;
12078 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12079 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12080 {
12081 arg2 = wxString_in_helper(obj1);
12082 if (arg2 == NULL) SWIG_fail;
12083 temp2 = True;
12084 }
12085 {
12086 PyThreadState* __tstate = wxPyBeginAllowThreads();
12087 (arg1)->SetShortDesc((wxString const &)*arg2);
12088
12089 wxPyEndAllowThreads(__tstate);
12090 if (PyErr_Occurred()) SWIG_fail;
12091 }
12092 Py_INCREF(Py_None); resultobj = Py_None;
12093 {
12094 if (temp2)
12095 delete arg2;
12096 }
12097 return resultobj;
12098 fail:
12099 {
12100 if (temp2)
12101 delete arg2;
12102 }
12103 return NULL;
12104 }
12105
12106
12107 static PyObject *_wrap_FileTypeInfo_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) {
12108 PyObject *resultobj;
12109 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12110 wxString *result;
12111 PyObject * obj0 = 0 ;
12112 char *kwnames[] = {
12113 (char *) "self", NULL
12114 };
12115
12116 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetMimeType",kwnames,&obj0)) goto fail;
12117 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12118 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12119 {
12120 PyThreadState* __tstate = wxPyBeginAllowThreads();
12121 {
12122 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetMimeType();
12123 result = (wxString *) &_result_ref;
12124 }
12125
12126 wxPyEndAllowThreads(__tstate);
12127 if (PyErr_Occurred()) SWIG_fail;
12128 }
12129 {
12130 #if wxUSE_UNICODE
12131 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12132 #else
12133 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12134 #endif
12135 }
12136 return resultobj;
12137 fail:
12138 return NULL;
12139 }
12140
12141
12142 static PyObject *_wrap_FileTypeInfo_GetOpenCommand(PyObject *self, PyObject *args, PyObject *kwargs) {
12143 PyObject *resultobj;
12144 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12145 wxString *result;
12146 PyObject * obj0 = 0 ;
12147 char *kwnames[] = {
12148 (char *) "self", NULL
12149 };
12150
12151 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetOpenCommand",kwnames,&obj0)) goto fail;
12152 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12153 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12154 {
12155 PyThreadState* __tstate = wxPyBeginAllowThreads();
12156 {
12157 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetOpenCommand();
12158 result = (wxString *) &_result_ref;
12159 }
12160
12161 wxPyEndAllowThreads(__tstate);
12162 if (PyErr_Occurred()) SWIG_fail;
12163 }
12164 {
12165 #if wxUSE_UNICODE
12166 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12167 #else
12168 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12169 #endif
12170 }
12171 return resultobj;
12172 fail:
12173 return NULL;
12174 }
12175
12176
12177 static PyObject *_wrap_FileTypeInfo_GetPrintCommand(PyObject *self, PyObject *args, PyObject *kwargs) {
12178 PyObject *resultobj;
12179 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12180 wxString *result;
12181 PyObject * obj0 = 0 ;
12182 char *kwnames[] = {
12183 (char *) "self", NULL
12184 };
12185
12186 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetPrintCommand",kwnames,&obj0)) goto fail;
12187 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12188 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12189 {
12190 PyThreadState* __tstate = wxPyBeginAllowThreads();
12191 {
12192 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetPrintCommand();
12193 result = (wxString *) &_result_ref;
12194 }
12195
12196 wxPyEndAllowThreads(__tstate);
12197 if (PyErr_Occurred()) SWIG_fail;
12198 }
12199 {
12200 #if wxUSE_UNICODE
12201 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12202 #else
12203 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12204 #endif
12205 }
12206 return resultobj;
12207 fail:
12208 return NULL;
12209 }
12210
12211
12212 static PyObject *_wrap_FileTypeInfo_GetShortDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
12213 PyObject *resultobj;
12214 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12215 wxString *result;
12216 PyObject * obj0 = 0 ;
12217 char *kwnames[] = {
12218 (char *) "self", NULL
12219 };
12220
12221 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetShortDesc",kwnames,&obj0)) goto fail;
12222 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12223 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12224 {
12225 PyThreadState* __tstate = wxPyBeginAllowThreads();
12226 {
12227 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetShortDesc();
12228 result = (wxString *) &_result_ref;
12229 }
12230
12231 wxPyEndAllowThreads(__tstate);
12232 if (PyErr_Occurred()) SWIG_fail;
12233 }
12234 {
12235 #if wxUSE_UNICODE
12236 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12237 #else
12238 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12239 #endif
12240 }
12241 return resultobj;
12242 fail:
12243 return NULL;
12244 }
12245
12246
12247 static PyObject *_wrap_FileTypeInfo_GetDescription(PyObject *self, PyObject *args, PyObject *kwargs) {
12248 PyObject *resultobj;
12249 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12250 wxString *result;
12251 PyObject * obj0 = 0 ;
12252 char *kwnames[] = {
12253 (char *) "self", NULL
12254 };
12255
12256 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetDescription",kwnames,&obj0)) goto fail;
12257 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12258 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12259 {
12260 PyThreadState* __tstate = wxPyBeginAllowThreads();
12261 {
12262 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetDescription();
12263 result = (wxString *) &_result_ref;
12264 }
12265
12266 wxPyEndAllowThreads(__tstate);
12267 if (PyErr_Occurred()) SWIG_fail;
12268 }
12269 {
12270 #if wxUSE_UNICODE
12271 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12272 #else
12273 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12274 #endif
12275 }
12276 return resultobj;
12277 fail:
12278 return NULL;
12279 }
12280
12281
12282 static PyObject *_wrap_FileTypeInfo_GetExtensions(PyObject *self, PyObject *args, PyObject *kwargs) {
12283 PyObject *resultobj;
12284 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12285 wxArrayString *result;
12286 PyObject * obj0 = 0 ;
12287 char *kwnames[] = {
12288 (char *) "self", NULL
12289 };
12290
12291 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetExtensions",kwnames,&obj0)) goto fail;
12292 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12293 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12294 {
12295 PyThreadState* __tstate = wxPyBeginAllowThreads();
12296 {
12297 wxArrayString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetExtensions();
12298 result = (wxArrayString *) &_result_ref;
12299 }
12300
12301 wxPyEndAllowThreads(__tstate);
12302 if (PyErr_Occurred()) SWIG_fail;
12303 }
12304 {
12305 resultobj = wxArrayString2PyList_helper(*result);
12306 }
12307 return resultobj;
12308 fail:
12309 return NULL;
12310 }
12311
12312
12313 static PyObject *_wrap_FileTypeInfo_GetExtensionsCount(PyObject *self, PyObject *args, PyObject *kwargs) {
12314 PyObject *resultobj;
12315 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12316 int result;
12317 PyObject * obj0 = 0 ;
12318 char *kwnames[] = {
12319 (char *) "self", NULL
12320 };
12321
12322 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetExtensionsCount",kwnames,&obj0)) goto fail;
12323 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12324 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12325 {
12326 PyThreadState* __tstate = wxPyBeginAllowThreads();
12327 result = (int)((wxFileTypeInfo const *)arg1)->GetExtensionsCount();
12328
12329 wxPyEndAllowThreads(__tstate);
12330 if (PyErr_Occurred()) SWIG_fail;
12331 }
12332 resultobj = SWIG_FromInt((int)result);
12333 return resultobj;
12334 fail:
12335 return NULL;
12336 }
12337
12338
12339 static PyObject *_wrap_FileTypeInfo_GetIconFile(PyObject *self, PyObject *args, PyObject *kwargs) {
12340 PyObject *resultobj;
12341 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12342 wxString *result;
12343 PyObject * obj0 = 0 ;
12344 char *kwnames[] = {
12345 (char *) "self", NULL
12346 };
12347
12348 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetIconFile",kwnames,&obj0)) goto fail;
12349 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12350 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12351 {
12352 PyThreadState* __tstate = wxPyBeginAllowThreads();
12353 {
12354 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetIconFile();
12355 result = (wxString *) &_result_ref;
12356 }
12357
12358 wxPyEndAllowThreads(__tstate);
12359 if (PyErr_Occurred()) SWIG_fail;
12360 }
12361 {
12362 #if wxUSE_UNICODE
12363 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12364 #else
12365 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12366 #endif
12367 }
12368 return resultobj;
12369 fail:
12370 return NULL;
12371 }
12372
12373
12374 static PyObject *_wrap_FileTypeInfo_GetIconIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
12375 PyObject *resultobj;
12376 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12377 int result;
12378 PyObject * obj0 = 0 ;
12379 char *kwnames[] = {
12380 (char *) "self", NULL
12381 };
12382
12383 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetIconIndex",kwnames,&obj0)) goto fail;
12384 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12385 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12386 {
12387 PyThreadState* __tstate = wxPyBeginAllowThreads();
12388 result = (int)((wxFileTypeInfo const *)arg1)->GetIconIndex();
12389
12390 wxPyEndAllowThreads(__tstate);
12391 if (PyErr_Occurred()) SWIG_fail;
12392 }
12393 resultobj = SWIG_FromInt((int)result);
12394 return resultobj;
12395 fail:
12396 return NULL;
12397 }
12398
12399
12400 static PyObject * FileTypeInfo_swigregister(PyObject *self, PyObject *args) {
12401 PyObject *obj;
12402 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
12403 SWIG_TypeClientData(SWIGTYPE_p_wxFileTypeInfo, obj);
12404 Py_INCREF(obj);
12405 return Py_BuildValue((char *)"");
12406 }
12407 static PyObject *_wrap_new_FileType(PyObject *self, PyObject *args, PyObject *kwargs) {
12408 PyObject *resultobj;
12409 wxFileTypeInfo *arg1 = 0 ;
12410 wxFileType *result;
12411 PyObject * obj0 = 0 ;
12412 char *kwnames[] = {
12413 (char *) "ftInfo", NULL
12414 };
12415
12416 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FileType",kwnames,&obj0)) goto fail;
12417 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12418 SWIG_POINTER_EXCEPTION | 0)) == -1)
12419 SWIG_fail;
12420 if (arg1 == NULL) {
12421 PyErr_SetString(PyExc_TypeError,"null reference");
12422 SWIG_fail;
12423 }
12424 {
12425 PyThreadState* __tstate = wxPyBeginAllowThreads();
12426 result = (wxFileType *)new wxFileType((wxFileTypeInfo const &)*arg1);
12427
12428 wxPyEndAllowThreads(__tstate);
12429 if (PyErr_Occurred()) SWIG_fail;
12430 }
12431 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1);
12432 return resultobj;
12433 fail:
12434 return NULL;
12435 }
12436
12437
12438 static PyObject *_wrap_delete_FileType(PyObject *self, PyObject *args, PyObject *kwargs) {
12439 PyObject *resultobj;
12440 wxFileType *arg1 = (wxFileType *) 0 ;
12441 PyObject * obj0 = 0 ;
12442 char *kwnames[] = {
12443 (char *) "self", NULL
12444 };
12445
12446 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileType",kwnames,&obj0)) goto fail;
12447 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12448 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12449 {
12450 PyThreadState* __tstate = wxPyBeginAllowThreads();
12451 delete arg1;
12452
12453 wxPyEndAllowThreads(__tstate);
12454 if (PyErr_Occurred()) SWIG_fail;
12455 }
12456 Py_INCREF(Py_None); resultobj = Py_None;
12457 return resultobj;
12458 fail:
12459 return NULL;
12460 }
12461
12462
12463 static PyObject *_wrap_FileType_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) {
12464 PyObject *resultobj;
12465 wxFileType *arg1 = (wxFileType *) 0 ;
12466 PyObject *result;
12467 PyObject * obj0 = 0 ;
12468 char *kwnames[] = {
12469 (char *) "self", NULL
12470 };
12471
12472 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetMimeType",kwnames,&obj0)) goto fail;
12473 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12474 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12475 {
12476 PyThreadState* __tstate = wxPyBeginAllowThreads();
12477 result = (PyObject *)wxFileType_GetMimeType(arg1);
12478
12479 wxPyEndAllowThreads(__tstate);
12480 if (PyErr_Occurred()) SWIG_fail;
12481 }
12482 resultobj = result;
12483 return resultobj;
12484 fail:
12485 return NULL;
12486 }
12487
12488
12489 static PyObject *_wrap_FileType_GetMimeTypes(PyObject *self, PyObject *args, PyObject *kwargs) {
12490 PyObject *resultobj;
12491 wxFileType *arg1 = (wxFileType *) 0 ;
12492 PyObject *result;
12493 PyObject * obj0 = 0 ;
12494 char *kwnames[] = {
12495 (char *) "self", NULL
12496 };
12497
12498 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetMimeTypes",kwnames,&obj0)) goto fail;
12499 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12500 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12501 {
12502 PyThreadState* __tstate = wxPyBeginAllowThreads();
12503 result = (PyObject *)wxFileType_GetMimeTypes(arg1);
12504
12505 wxPyEndAllowThreads(__tstate);
12506 if (PyErr_Occurred()) SWIG_fail;
12507 }
12508 resultobj = result;
12509 return resultobj;
12510 fail:
12511 return NULL;
12512 }
12513
12514
12515 static PyObject *_wrap_FileType_GetExtensions(PyObject *self, PyObject *args, PyObject *kwargs) {
12516 PyObject *resultobj;
12517 wxFileType *arg1 = (wxFileType *) 0 ;
12518 PyObject *result;
12519 PyObject * obj0 = 0 ;
12520 char *kwnames[] = {
12521 (char *) "self", NULL
12522 };
12523
12524 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetExtensions",kwnames,&obj0)) goto fail;
12525 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12526 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12527 {
12528 PyThreadState* __tstate = wxPyBeginAllowThreads();
12529 result = (PyObject *)wxFileType_GetExtensions(arg1);
12530
12531 wxPyEndAllowThreads(__tstate);
12532 if (PyErr_Occurred()) SWIG_fail;
12533 }
12534 resultobj = result;
12535 return resultobj;
12536 fail:
12537 return NULL;
12538 }
12539
12540
12541 static PyObject *_wrap_FileType_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
12542 PyObject *resultobj;
12543 wxFileType *arg1 = (wxFileType *) 0 ;
12544 wxIcon *result;
12545 PyObject * obj0 = 0 ;
12546 char *kwnames[] = {
12547 (char *) "self", NULL
12548 };
12549
12550 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetIcon",kwnames,&obj0)) goto fail;
12551 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12552 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12553 {
12554 PyThreadState* __tstate = wxPyBeginAllowThreads();
12555 result = (wxIcon *)wxFileType_GetIcon(arg1);
12556
12557 wxPyEndAllowThreads(__tstate);
12558 if (PyErr_Occurred()) SWIG_fail;
12559 }
12560 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
12561 return resultobj;
12562 fail:
12563 return NULL;
12564 }
12565
12566
12567 static PyObject *_wrap_FileType_GetIconInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
12568 PyObject *resultobj;
12569 wxFileType *arg1 = (wxFileType *) 0 ;
12570 PyObject *result;
12571 PyObject * obj0 = 0 ;
12572 char *kwnames[] = {
12573 (char *) "self", NULL
12574 };
12575
12576 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetIconInfo",kwnames,&obj0)) goto fail;
12577 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12578 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12579 {
12580 PyThreadState* __tstate = wxPyBeginAllowThreads();
12581 result = (PyObject *)wxFileType_GetIconInfo(arg1);
12582
12583 wxPyEndAllowThreads(__tstate);
12584 if (PyErr_Occurred()) SWIG_fail;
12585 }
12586 resultobj = result;
12587 return resultobj;
12588 fail:
12589 return NULL;
12590 }
12591
12592
12593 static PyObject *_wrap_FileType_GetDescription(PyObject *self, PyObject *args, PyObject *kwargs) {
12594 PyObject *resultobj;
12595 wxFileType *arg1 = (wxFileType *) 0 ;
12596 PyObject *result;
12597 PyObject * obj0 = 0 ;
12598 char *kwnames[] = {
12599 (char *) "self", NULL
12600 };
12601
12602 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetDescription",kwnames,&obj0)) goto fail;
12603 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12604 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12605 {
12606 PyThreadState* __tstate = wxPyBeginAllowThreads();
12607 result = (PyObject *)wxFileType_GetDescription(arg1);
12608
12609 wxPyEndAllowThreads(__tstate);
12610 if (PyErr_Occurred()) SWIG_fail;
12611 }
12612 resultobj = result;
12613 return resultobj;
12614 fail:
12615 return NULL;
12616 }
12617
12618
12619 static PyObject *_wrap_FileType_GetOpenCommand(PyObject *self, PyObject *args, PyObject *kwargs) {
12620 PyObject *resultobj;
12621 wxFileType *arg1 = (wxFileType *) 0 ;
12622 wxString *arg2 = 0 ;
12623 wxString const &arg3_defvalue = wxPyEmptyString ;
12624 wxString *arg3 = (wxString *) &arg3_defvalue ;
12625 PyObject *result;
12626 bool temp2 = False ;
12627 bool temp3 = False ;
12628 PyObject * obj0 = 0 ;
12629 PyObject * obj1 = 0 ;
12630 PyObject * obj2 = 0 ;
12631 char *kwnames[] = {
12632 (char *) "self",(char *) "filename",(char *) "mimetype", NULL
12633 };
12634
12635 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetOpenCommand",kwnames,&obj0,&obj1,&obj2)) goto fail;
12636 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12637 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12638 {
12639 arg2 = wxString_in_helper(obj1);
12640 if (arg2 == NULL) SWIG_fail;
12641 temp2 = True;
12642 }
12643 if (obj2) {
12644 {
12645 arg3 = wxString_in_helper(obj2);
12646 if (arg3 == NULL) SWIG_fail;
12647 temp3 = True;
12648 }
12649 }
12650 {
12651 PyThreadState* __tstate = wxPyBeginAllowThreads();
12652 result = (PyObject *)wxFileType_GetOpenCommand(arg1,(wxString const &)*arg2,(wxString const &)*arg3);
12653
12654 wxPyEndAllowThreads(__tstate);
12655 if (PyErr_Occurred()) SWIG_fail;
12656 }
12657 resultobj = result;
12658 {
12659 if (temp2)
12660 delete arg2;
12661 }
12662 {
12663 if (temp3)
12664 delete arg3;
12665 }
12666 return resultobj;
12667 fail:
12668 {
12669 if (temp2)
12670 delete arg2;
12671 }
12672 {
12673 if (temp3)
12674 delete arg3;
12675 }
12676 return NULL;
12677 }
12678
12679
12680 static PyObject *_wrap_FileType_GetPrintCommand(PyObject *self, PyObject *args, PyObject *kwargs) {
12681 PyObject *resultobj;
12682 wxFileType *arg1 = (wxFileType *) 0 ;
12683 wxString *arg2 = 0 ;
12684 wxString const &arg3_defvalue = wxPyEmptyString ;
12685 wxString *arg3 = (wxString *) &arg3_defvalue ;
12686 PyObject *result;
12687 bool temp2 = False ;
12688 bool temp3 = False ;
12689 PyObject * obj0 = 0 ;
12690 PyObject * obj1 = 0 ;
12691 PyObject * obj2 = 0 ;
12692 char *kwnames[] = {
12693 (char *) "self",(char *) "filename",(char *) "mimetype", NULL
12694 };
12695
12696 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetPrintCommand",kwnames,&obj0,&obj1,&obj2)) goto fail;
12697 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12698 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12699 {
12700 arg2 = wxString_in_helper(obj1);
12701 if (arg2 == NULL) SWIG_fail;
12702 temp2 = True;
12703 }
12704 if (obj2) {
12705 {
12706 arg3 = wxString_in_helper(obj2);
12707 if (arg3 == NULL) SWIG_fail;
12708 temp3 = True;
12709 }
12710 }
12711 {
12712 PyThreadState* __tstate = wxPyBeginAllowThreads();
12713 result = (PyObject *)wxFileType_GetPrintCommand(arg1,(wxString const &)*arg2,(wxString const &)*arg3);
12714
12715 wxPyEndAllowThreads(__tstate);
12716 if (PyErr_Occurred()) SWIG_fail;
12717 }
12718 resultobj = result;
12719 {
12720 if (temp2)
12721 delete arg2;
12722 }
12723 {
12724 if (temp3)
12725 delete arg3;
12726 }
12727 return resultobj;
12728 fail:
12729 {
12730 if (temp2)
12731 delete arg2;
12732 }
12733 {
12734 if (temp3)
12735 delete arg3;
12736 }
12737 return NULL;
12738 }
12739
12740
12741 static PyObject *_wrap_FileType_GetAllCommands(PyObject *self, PyObject *args, PyObject *kwargs) {
12742 PyObject *resultobj;
12743 wxFileType *arg1 = (wxFileType *) 0 ;
12744 wxString *arg2 = 0 ;
12745 wxString const &arg3_defvalue = wxPyEmptyString ;
12746 wxString *arg3 = (wxString *) &arg3_defvalue ;
12747 PyObject *result;
12748 bool temp2 = False ;
12749 bool temp3 = False ;
12750 PyObject * obj0 = 0 ;
12751 PyObject * obj1 = 0 ;
12752 PyObject * obj2 = 0 ;
12753 char *kwnames[] = {
12754 (char *) "self",(char *) "filename",(char *) "mimetype", NULL
12755 };
12756
12757 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetAllCommands",kwnames,&obj0,&obj1,&obj2)) goto fail;
12758 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12759 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12760 {
12761 arg2 = wxString_in_helper(obj1);
12762 if (arg2 == NULL) SWIG_fail;
12763 temp2 = True;
12764 }
12765 if (obj2) {
12766 {
12767 arg3 = wxString_in_helper(obj2);
12768 if (arg3 == NULL) SWIG_fail;
12769 temp3 = True;
12770 }
12771 }
12772 {
12773 PyThreadState* __tstate = wxPyBeginAllowThreads();
12774 result = (PyObject *)wxFileType_GetAllCommands(arg1,(wxString const &)*arg2,(wxString const &)*arg3);
12775
12776 wxPyEndAllowThreads(__tstate);
12777 if (PyErr_Occurred()) SWIG_fail;
12778 }
12779 resultobj = result;
12780 {
12781 if (temp2)
12782 delete arg2;
12783 }
12784 {
12785 if (temp3)
12786 delete arg3;
12787 }
12788 return resultobj;
12789 fail:
12790 {
12791 if (temp2)
12792 delete arg2;
12793 }
12794 {
12795 if (temp3)
12796 delete arg3;
12797 }
12798 return NULL;
12799 }
12800
12801
12802 static PyObject *_wrap_FileType_SetCommand(PyObject *self, PyObject *args, PyObject *kwargs) {
12803 PyObject *resultobj;
12804 wxFileType *arg1 = (wxFileType *) 0 ;
12805 wxString *arg2 = 0 ;
12806 wxString *arg3 = 0 ;
12807 bool arg4 = (bool) True ;
12808 bool result;
12809 bool temp2 = False ;
12810 bool temp3 = False ;
12811 PyObject * obj0 = 0 ;
12812 PyObject * obj1 = 0 ;
12813 PyObject * obj2 = 0 ;
12814 PyObject * obj3 = 0 ;
12815 char *kwnames[] = {
12816 (char *) "self",(char *) "cmd",(char *) "verb",(char *) "overwriteprompt", NULL
12817 };
12818
12819 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:FileType_SetCommand",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12820 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12821 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12822 {
12823 arg2 = wxString_in_helper(obj1);
12824 if (arg2 == NULL) SWIG_fail;
12825 temp2 = True;
12826 }
12827 {
12828 arg3 = wxString_in_helper(obj2);
12829 if (arg3 == NULL) SWIG_fail;
12830 temp3 = True;
12831 }
12832 if (obj3) {
12833 arg4 = (bool) SWIG_AsBool(obj3);
12834 if (PyErr_Occurred()) SWIG_fail;
12835 }
12836 {
12837 PyThreadState* __tstate = wxPyBeginAllowThreads();
12838 result = (bool)(arg1)->SetCommand((wxString const &)*arg2,(wxString const &)*arg3,arg4);
12839
12840 wxPyEndAllowThreads(__tstate);
12841 if (PyErr_Occurred()) SWIG_fail;
12842 }
12843 {
12844 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12845 }
12846 {
12847 if (temp2)
12848 delete arg2;
12849 }
12850 {
12851 if (temp3)
12852 delete arg3;
12853 }
12854 return resultobj;
12855 fail:
12856 {
12857 if (temp2)
12858 delete arg2;
12859 }
12860 {
12861 if (temp3)
12862 delete arg3;
12863 }
12864 return NULL;
12865 }
12866
12867
12868 static PyObject *_wrap_FileType_SetDefaultIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
12869 PyObject *resultobj;
12870 wxFileType *arg1 = (wxFileType *) 0 ;
12871 wxString const &arg2_defvalue = wxPyEmptyString ;
12872 wxString *arg2 = (wxString *) &arg2_defvalue ;
12873 int arg3 = (int) 0 ;
12874 bool result;
12875 bool temp2 = False ;
12876 PyObject * obj0 = 0 ;
12877 PyObject * obj1 = 0 ;
12878 PyObject * obj2 = 0 ;
12879 char *kwnames[] = {
12880 (char *) "self",(char *) "cmd",(char *) "index", NULL
12881 };
12882
12883 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FileType_SetDefaultIcon",kwnames,&obj0,&obj1,&obj2)) goto fail;
12884 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12885 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12886 if (obj1) {
12887 {
12888 arg2 = wxString_in_helper(obj1);
12889 if (arg2 == NULL) SWIG_fail;
12890 temp2 = True;
12891 }
12892 }
12893 if (obj2) {
12894 arg3 = (int) SWIG_AsInt(obj2);
12895 if (PyErr_Occurred()) SWIG_fail;
12896 }
12897 {
12898 PyThreadState* __tstate = wxPyBeginAllowThreads();
12899 result = (bool)(arg1)->SetDefaultIcon((wxString const &)*arg2,arg3);
12900
12901 wxPyEndAllowThreads(__tstate);
12902 if (PyErr_Occurred()) SWIG_fail;
12903 }
12904 {
12905 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12906 }
12907 {
12908 if (temp2)
12909 delete arg2;
12910 }
12911 return resultobj;
12912 fail:
12913 {
12914 if (temp2)
12915 delete arg2;
12916 }
12917 return NULL;
12918 }
12919
12920
12921 static PyObject *_wrap_FileType_Unassociate(PyObject *self, PyObject *args, PyObject *kwargs) {
12922 PyObject *resultobj;
12923 wxFileType *arg1 = (wxFileType *) 0 ;
12924 bool result;
12925 PyObject * obj0 = 0 ;
12926 char *kwnames[] = {
12927 (char *) "self", NULL
12928 };
12929
12930 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_Unassociate",kwnames,&obj0)) goto fail;
12931 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12932 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12933 {
12934 PyThreadState* __tstate = wxPyBeginAllowThreads();
12935 result = (bool)(arg1)->Unassociate();
12936
12937 wxPyEndAllowThreads(__tstate);
12938 if (PyErr_Occurred()) SWIG_fail;
12939 }
12940 {
12941 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12942 }
12943 return resultobj;
12944 fail:
12945 return NULL;
12946 }
12947
12948
12949 static PyObject *_wrap_FileType_ExpandCommand(PyObject *self, PyObject *args, PyObject *kwargs) {
12950 PyObject *resultobj;
12951 wxString *arg1 = 0 ;
12952 wxString *arg2 = 0 ;
12953 wxString const &arg3_defvalue = wxPyEmptyString ;
12954 wxString *arg3 = (wxString *) &arg3_defvalue ;
12955 wxString result;
12956 bool temp1 = False ;
12957 bool temp2 = False ;
12958 bool temp3 = False ;
12959 PyObject * obj0 = 0 ;
12960 PyObject * obj1 = 0 ;
12961 PyObject * obj2 = 0 ;
12962 char *kwnames[] = {
12963 (char *) "command",(char *) "filename",(char *) "mimetype", NULL
12964 };
12965
12966 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_ExpandCommand",kwnames,&obj0,&obj1,&obj2)) goto fail;
12967 {
12968 arg1 = wxString_in_helper(obj0);
12969 if (arg1 == NULL) SWIG_fail;
12970 temp1 = True;
12971 }
12972 {
12973 arg2 = wxString_in_helper(obj1);
12974 if (arg2 == NULL) SWIG_fail;
12975 temp2 = True;
12976 }
12977 if (obj2) {
12978 {
12979 arg3 = wxString_in_helper(obj2);
12980 if (arg3 == NULL) SWIG_fail;
12981 temp3 = True;
12982 }
12983 }
12984 {
12985 PyThreadState* __tstate = wxPyBeginAllowThreads();
12986 result = FileType_ExpandCommand((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3);
12987
12988 wxPyEndAllowThreads(__tstate);
12989 if (PyErr_Occurred()) SWIG_fail;
12990 }
12991 {
12992 #if wxUSE_UNICODE
12993 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12994 #else
12995 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12996 #endif
12997 }
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 resultobj;
13011 fail:
13012 {
13013 if (temp1)
13014 delete arg1;
13015 }
13016 {
13017 if (temp2)
13018 delete arg2;
13019 }
13020 {
13021 if (temp3)
13022 delete arg3;
13023 }
13024 return NULL;
13025 }
13026
13027
13028 static PyObject * FileType_swigregister(PyObject *self, PyObject *args) {
13029 PyObject *obj;
13030 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13031 SWIG_TypeClientData(SWIGTYPE_p_wxFileType, obj);
13032 Py_INCREF(obj);
13033 return Py_BuildValue((char *)"");
13034 }
13035 static int _wrap_TheMimeTypesManager_set(PyObject *_val) {
13036 PyErr_SetString(PyExc_TypeError,"Variable TheMimeTypesManager is read-only.");
13037 return 1;
13038 }
13039
13040
13041 static PyObject *_wrap_TheMimeTypesManager_get() {
13042 PyObject *pyobj;
13043
13044 pyobj = SWIG_NewPointerObj((void *)(wxTheMimeTypesManager), SWIGTYPE_p_wxMimeTypesManager, 0);
13045 return pyobj;
13046 }
13047
13048
13049 static PyObject *_wrap_MimeTypesManager_IsOfType(PyObject *self, PyObject *args, PyObject *kwargs) {
13050 PyObject *resultobj;
13051 wxString *arg1 = 0 ;
13052 wxString *arg2 = 0 ;
13053 bool result;
13054 bool temp1 = False ;
13055 bool temp2 = False ;
13056 PyObject * obj0 = 0 ;
13057 PyObject * obj1 = 0 ;
13058 char *kwnames[] = {
13059 (char *) "mimeType",(char *) "wildcard", NULL
13060 };
13061
13062 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_IsOfType",kwnames,&obj0,&obj1)) goto fail;
13063 {
13064 arg1 = wxString_in_helper(obj0);
13065 if (arg1 == NULL) SWIG_fail;
13066 temp1 = True;
13067 }
13068 {
13069 arg2 = wxString_in_helper(obj1);
13070 if (arg2 == NULL) SWIG_fail;
13071 temp2 = True;
13072 }
13073 {
13074 PyThreadState* __tstate = wxPyBeginAllowThreads();
13075 result = (bool)wxMimeTypesManager::IsOfType((wxString const &)*arg1,(wxString const &)*arg2);
13076
13077 wxPyEndAllowThreads(__tstate);
13078 if (PyErr_Occurred()) SWIG_fail;
13079 }
13080 {
13081 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13082 }
13083 {
13084 if (temp1)
13085 delete arg1;
13086 }
13087 {
13088 if (temp2)
13089 delete arg2;
13090 }
13091 return resultobj;
13092 fail:
13093 {
13094 if (temp1)
13095 delete arg1;
13096 }
13097 {
13098 if (temp2)
13099 delete arg2;
13100 }
13101 return NULL;
13102 }
13103
13104
13105 static PyObject *_wrap_new_MimeTypesManager(PyObject *self, PyObject *args, PyObject *kwargs) {
13106 PyObject *resultobj;
13107 wxMimeTypesManager *result;
13108 char *kwnames[] = {
13109 NULL
13110 };
13111
13112 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MimeTypesManager",kwnames)) goto fail;
13113 {
13114 PyThreadState* __tstate = wxPyBeginAllowThreads();
13115 result = (wxMimeTypesManager *)new wxMimeTypesManager();
13116
13117 wxPyEndAllowThreads(__tstate);
13118 if (PyErr_Occurred()) SWIG_fail;
13119 }
13120 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMimeTypesManager, 1);
13121 return resultobj;
13122 fail:
13123 return NULL;
13124 }
13125
13126
13127 static PyObject *_wrap_MimeTypesManager_Initialize(PyObject *self, PyObject *args, PyObject *kwargs) {
13128 PyObject *resultobj;
13129 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13130 int arg2 = (int) wxMAILCAP_ALL ;
13131 wxString const &arg3_defvalue = wxPyEmptyString ;
13132 wxString *arg3 = (wxString *) &arg3_defvalue ;
13133 bool temp3 = False ;
13134 PyObject * obj0 = 0 ;
13135 PyObject * obj1 = 0 ;
13136 PyObject * obj2 = 0 ;
13137 char *kwnames[] = {
13138 (char *) "self",(char *) "mailcapStyle",(char *) "extraDir", NULL
13139 };
13140
13141 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MimeTypesManager_Initialize",kwnames,&obj0,&obj1,&obj2)) goto fail;
13142 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13143 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13144 if (obj1) {
13145 arg2 = (int) SWIG_AsInt(obj1);
13146 if (PyErr_Occurred()) SWIG_fail;
13147 }
13148 if (obj2) {
13149 {
13150 arg3 = wxString_in_helper(obj2);
13151 if (arg3 == NULL) SWIG_fail;
13152 temp3 = True;
13153 }
13154 }
13155 {
13156 PyThreadState* __tstate = wxPyBeginAllowThreads();
13157 (arg1)->Initialize(arg2,(wxString const &)*arg3);
13158
13159 wxPyEndAllowThreads(__tstate);
13160 if (PyErr_Occurred()) SWIG_fail;
13161 }
13162 Py_INCREF(Py_None); resultobj = Py_None;
13163 {
13164 if (temp3)
13165 delete arg3;
13166 }
13167 return resultobj;
13168 fail:
13169 {
13170 if (temp3)
13171 delete arg3;
13172 }
13173 return NULL;
13174 }
13175
13176
13177 static PyObject *_wrap_MimeTypesManager_ClearData(PyObject *self, PyObject *args, PyObject *kwargs) {
13178 PyObject *resultobj;
13179 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13180 PyObject * obj0 = 0 ;
13181 char *kwnames[] = {
13182 (char *) "self", NULL
13183 };
13184
13185 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MimeTypesManager_ClearData",kwnames,&obj0)) goto fail;
13186 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13187 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13188 {
13189 PyThreadState* __tstate = wxPyBeginAllowThreads();
13190 (arg1)->ClearData();
13191
13192 wxPyEndAllowThreads(__tstate);
13193 if (PyErr_Occurred()) SWIG_fail;
13194 }
13195 Py_INCREF(Py_None); resultobj = Py_None;
13196 return resultobj;
13197 fail:
13198 return NULL;
13199 }
13200
13201
13202 static PyObject *_wrap_MimeTypesManager_GetFileTypeFromExtension(PyObject *self, PyObject *args, PyObject *kwargs) {
13203 PyObject *resultobj;
13204 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13205 wxString *arg2 = 0 ;
13206 wxFileType *result;
13207 bool temp2 = False ;
13208 PyObject * obj0 = 0 ;
13209 PyObject * obj1 = 0 ;
13210 char *kwnames[] = {
13211 (char *) "self",(char *) "ext", NULL
13212 };
13213
13214 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_GetFileTypeFromExtension",kwnames,&obj0,&obj1)) goto fail;
13215 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13216 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13217 {
13218 arg2 = wxString_in_helper(obj1);
13219 if (arg2 == NULL) SWIG_fail;
13220 temp2 = True;
13221 }
13222 {
13223 PyThreadState* __tstate = wxPyBeginAllowThreads();
13224 result = (wxFileType *)(arg1)->GetFileTypeFromExtension((wxString const &)*arg2);
13225
13226 wxPyEndAllowThreads(__tstate);
13227 if (PyErr_Occurred()) SWIG_fail;
13228 }
13229 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1);
13230 {
13231 if (temp2)
13232 delete arg2;
13233 }
13234 return resultobj;
13235 fail:
13236 {
13237 if (temp2)
13238 delete arg2;
13239 }
13240 return NULL;
13241 }
13242
13243
13244 static PyObject *_wrap_MimeTypesManager_GetFileTypeFromMimeType(PyObject *self, PyObject *args, PyObject *kwargs) {
13245 PyObject *resultobj;
13246 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13247 wxString *arg2 = 0 ;
13248 wxFileType *result;
13249 bool temp2 = False ;
13250 PyObject * obj0 = 0 ;
13251 PyObject * obj1 = 0 ;
13252 char *kwnames[] = {
13253 (char *) "self",(char *) "mimeType", NULL
13254 };
13255
13256 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_GetFileTypeFromMimeType",kwnames,&obj0,&obj1)) goto fail;
13257 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13258 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13259 {
13260 arg2 = wxString_in_helper(obj1);
13261 if (arg2 == NULL) SWIG_fail;
13262 temp2 = True;
13263 }
13264 {
13265 PyThreadState* __tstate = wxPyBeginAllowThreads();
13266 result = (wxFileType *)(arg1)->GetFileTypeFromMimeType((wxString const &)*arg2);
13267
13268 wxPyEndAllowThreads(__tstate);
13269 if (PyErr_Occurred()) SWIG_fail;
13270 }
13271 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1);
13272 {
13273 if (temp2)
13274 delete arg2;
13275 }
13276 return resultobj;
13277 fail:
13278 {
13279 if (temp2)
13280 delete arg2;
13281 }
13282 return NULL;
13283 }
13284
13285
13286 static PyObject *_wrap_MimeTypesManager_ReadMailcap(PyObject *self, PyObject *args, PyObject *kwargs) {
13287 PyObject *resultobj;
13288 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13289 wxString *arg2 = 0 ;
13290 bool arg3 = (bool) False ;
13291 bool result;
13292 bool temp2 = False ;
13293 PyObject * obj0 = 0 ;
13294 PyObject * obj1 = 0 ;
13295 PyObject * obj2 = 0 ;
13296 char *kwnames[] = {
13297 (char *) "self",(char *) "filename",(char *) "fallback", NULL
13298 };
13299
13300 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:MimeTypesManager_ReadMailcap",kwnames,&obj0,&obj1,&obj2)) goto fail;
13301 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13302 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13303 {
13304 arg2 = wxString_in_helper(obj1);
13305 if (arg2 == NULL) SWIG_fail;
13306 temp2 = True;
13307 }
13308 if (obj2) {
13309 arg3 = (bool) SWIG_AsBool(obj2);
13310 if (PyErr_Occurred()) SWIG_fail;
13311 }
13312 {
13313 PyThreadState* __tstate = wxPyBeginAllowThreads();
13314 result = (bool)(arg1)->ReadMailcap((wxString const &)*arg2,arg3);
13315
13316 wxPyEndAllowThreads(__tstate);
13317 if (PyErr_Occurred()) SWIG_fail;
13318 }
13319 {
13320 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13321 }
13322 {
13323 if (temp2)
13324 delete arg2;
13325 }
13326 return resultobj;
13327 fail:
13328 {
13329 if (temp2)
13330 delete arg2;
13331 }
13332 return NULL;
13333 }
13334
13335
13336 static PyObject *_wrap_MimeTypesManager_ReadMimeTypes(PyObject *self, PyObject *args, PyObject *kwargs) {
13337 PyObject *resultobj;
13338 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13339 wxString *arg2 = 0 ;
13340 bool result;
13341 bool temp2 = False ;
13342 PyObject * obj0 = 0 ;
13343 PyObject * obj1 = 0 ;
13344 char *kwnames[] = {
13345 (char *) "self",(char *) "filename", NULL
13346 };
13347
13348 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_ReadMimeTypes",kwnames,&obj0,&obj1)) goto fail;
13349 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13350 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13351 {
13352 arg2 = wxString_in_helper(obj1);
13353 if (arg2 == NULL) SWIG_fail;
13354 temp2 = True;
13355 }
13356 {
13357 PyThreadState* __tstate = wxPyBeginAllowThreads();
13358 result = (bool)(arg1)->ReadMimeTypes((wxString const &)*arg2);
13359
13360 wxPyEndAllowThreads(__tstate);
13361 if (PyErr_Occurred()) SWIG_fail;
13362 }
13363 {
13364 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13365 }
13366 {
13367 if (temp2)
13368 delete arg2;
13369 }
13370 return resultobj;
13371 fail:
13372 {
13373 if (temp2)
13374 delete arg2;
13375 }
13376 return NULL;
13377 }
13378
13379
13380 static PyObject *_wrap_MimeTypesManager_EnumAllFileTypes(PyObject *self, PyObject *args, PyObject *kwargs) {
13381 PyObject *resultobj;
13382 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13383 PyObject *result;
13384 PyObject * obj0 = 0 ;
13385 char *kwnames[] = {
13386 (char *) "self", NULL
13387 };
13388
13389 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MimeTypesManager_EnumAllFileTypes",kwnames,&obj0)) goto fail;
13390 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13391 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13392 {
13393 PyThreadState* __tstate = wxPyBeginAllowThreads();
13394 result = (PyObject *)wxMimeTypesManager_EnumAllFileTypes(arg1);
13395
13396 wxPyEndAllowThreads(__tstate);
13397 if (PyErr_Occurred()) SWIG_fail;
13398 }
13399 resultobj = result;
13400 return resultobj;
13401 fail:
13402 return NULL;
13403 }
13404
13405
13406 static PyObject *_wrap_MimeTypesManager_AddFallback(PyObject *self, PyObject *args, PyObject *kwargs) {
13407 PyObject *resultobj;
13408 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13409 wxFileTypeInfo *arg2 = 0 ;
13410 PyObject * obj0 = 0 ;
13411 PyObject * obj1 = 0 ;
13412 char *kwnames[] = {
13413 (char *) "self",(char *) "ft", NULL
13414 };
13415
13416 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_AddFallback",kwnames,&obj0,&obj1)) goto fail;
13417 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13418 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13419 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileTypeInfo,
13420 SWIG_POINTER_EXCEPTION | 0)) == -1)
13421 SWIG_fail;
13422 if (arg2 == NULL) {
13423 PyErr_SetString(PyExc_TypeError,"null reference");
13424 SWIG_fail;
13425 }
13426 {
13427 PyThreadState* __tstate = wxPyBeginAllowThreads();
13428 (arg1)->AddFallback((wxFileTypeInfo const &)*arg2);
13429
13430 wxPyEndAllowThreads(__tstate);
13431 if (PyErr_Occurred()) SWIG_fail;
13432 }
13433 Py_INCREF(Py_None); resultobj = Py_None;
13434 return resultobj;
13435 fail:
13436 return NULL;
13437 }
13438
13439
13440 static PyObject *_wrap_MimeTypesManager_Associate(PyObject *self, PyObject *args, PyObject *kwargs) {
13441 PyObject *resultobj;
13442 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13443 wxFileTypeInfo *arg2 = 0 ;
13444 wxFileType *result;
13445 PyObject * obj0 = 0 ;
13446 PyObject * obj1 = 0 ;
13447 char *kwnames[] = {
13448 (char *) "self",(char *) "ftInfo", NULL
13449 };
13450
13451 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_Associate",kwnames,&obj0,&obj1)) goto fail;
13452 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13453 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13454 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileTypeInfo,
13455 SWIG_POINTER_EXCEPTION | 0)) == -1)
13456 SWIG_fail;
13457 if (arg2 == NULL) {
13458 PyErr_SetString(PyExc_TypeError,"null reference");
13459 SWIG_fail;
13460 }
13461 {
13462 PyThreadState* __tstate = wxPyBeginAllowThreads();
13463 result = (wxFileType *)(arg1)->Associate((wxFileTypeInfo const &)*arg2);
13464
13465 wxPyEndAllowThreads(__tstate);
13466 if (PyErr_Occurred()) SWIG_fail;
13467 }
13468 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1);
13469 return resultobj;
13470 fail:
13471 return NULL;
13472 }
13473
13474
13475 static PyObject *_wrap_MimeTypesManager_Unassociate(PyObject *self, PyObject *args, PyObject *kwargs) {
13476 PyObject *resultobj;
13477 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13478 wxFileType *arg2 = (wxFileType *) 0 ;
13479 bool result;
13480 PyObject * obj0 = 0 ;
13481 PyObject * obj1 = 0 ;
13482 char *kwnames[] = {
13483 (char *) "self",(char *) "ft", NULL
13484 };
13485
13486 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_Unassociate",kwnames,&obj0,&obj1)) goto fail;
13487 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13488 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13489 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileType,
13490 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13491 {
13492 PyThreadState* __tstate = wxPyBeginAllowThreads();
13493 result = (bool)(arg1)->Unassociate(arg2);
13494
13495 wxPyEndAllowThreads(__tstate);
13496 if (PyErr_Occurred()) SWIG_fail;
13497 }
13498 {
13499 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13500 }
13501 return resultobj;
13502 fail:
13503 return NULL;
13504 }
13505
13506
13507 static PyObject *_wrap_delete_MimeTypesManager(PyObject *self, PyObject *args, PyObject *kwargs) {
13508 PyObject *resultobj;
13509 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13510 PyObject * obj0 = 0 ;
13511 char *kwnames[] = {
13512 (char *) "self", NULL
13513 };
13514
13515 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MimeTypesManager",kwnames,&obj0)) goto fail;
13516 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13517 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13518 {
13519 PyThreadState* __tstate = wxPyBeginAllowThreads();
13520 delete arg1;
13521
13522 wxPyEndAllowThreads(__tstate);
13523 if (PyErr_Occurred()) SWIG_fail;
13524 }
13525 Py_INCREF(Py_None); resultobj = Py_None;
13526 return resultobj;
13527 fail:
13528 return NULL;
13529 }
13530
13531
13532 static PyObject * MimeTypesManager_swigregister(PyObject *self, PyObject *args) {
13533 PyObject *obj;
13534 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13535 SWIG_TypeClientData(SWIGTYPE_p_wxMimeTypesManager, obj);
13536 Py_INCREF(obj);
13537 return Py_BuildValue((char *)"");
13538 }
13539 static int _wrap_ART_TOOLBAR_set(PyObject *_val) {
13540 PyErr_SetString(PyExc_TypeError,"Variable ART_TOOLBAR is read-only.");
13541 return 1;
13542 }
13543
13544
13545 static PyObject *_wrap_ART_TOOLBAR_get() {
13546 PyObject *pyobj;
13547
13548 {
13549 #if wxUSE_UNICODE
13550 pyobj = PyUnicode_FromWideChar((&wxPyART_TOOLBAR)->c_str(), (&wxPyART_TOOLBAR)->Len());
13551 #else
13552 pyobj = PyString_FromStringAndSize((&wxPyART_TOOLBAR)->c_str(), (&wxPyART_TOOLBAR)->Len());
13553 #endif
13554 }
13555 return pyobj;
13556 }
13557
13558
13559 static int _wrap_ART_MENU_set(PyObject *_val) {
13560 PyErr_SetString(PyExc_TypeError,"Variable ART_MENU is read-only.");
13561 return 1;
13562 }
13563
13564
13565 static PyObject *_wrap_ART_MENU_get() {
13566 PyObject *pyobj;
13567
13568 {
13569 #if wxUSE_UNICODE
13570 pyobj = PyUnicode_FromWideChar((&wxPyART_MENU)->c_str(), (&wxPyART_MENU)->Len());
13571 #else
13572 pyobj = PyString_FromStringAndSize((&wxPyART_MENU)->c_str(), (&wxPyART_MENU)->Len());
13573 #endif
13574 }
13575 return pyobj;
13576 }
13577
13578
13579 static int _wrap_ART_FRAME_ICON_set(PyObject *_val) {
13580 PyErr_SetString(PyExc_TypeError,"Variable ART_FRAME_ICON is read-only.");
13581 return 1;
13582 }
13583
13584
13585 static PyObject *_wrap_ART_FRAME_ICON_get() {
13586 PyObject *pyobj;
13587
13588 {
13589 #if wxUSE_UNICODE
13590 pyobj = PyUnicode_FromWideChar((&wxPyART_FRAME_ICON)->c_str(), (&wxPyART_FRAME_ICON)->Len());
13591 #else
13592 pyobj = PyString_FromStringAndSize((&wxPyART_FRAME_ICON)->c_str(), (&wxPyART_FRAME_ICON)->Len());
13593 #endif
13594 }
13595 return pyobj;
13596 }
13597
13598
13599 static int _wrap_ART_CMN_DIALOG_set(PyObject *_val) {
13600 PyErr_SetString(PyExc_TypeError,"Variable ART_CMN_DIALOG is read-only.");
13601 return 1;
13602 }
13603
13604
13605 static PyObject *_wrap_ART_CMN_DIALOG_get() {
13606 PyObject *pyobj;
13607
13608 {
13609 #if wxUSE_UNICODE
13610 pyobj = PyUnicode_FromWideChar((&wxPyART_CMN_DIALOG)->c_str(), (&wxPyART_CMN_DIALOG)->Len());
13611 #else
13612 pyobj = PyString_FromStringAndSize((&wxPyART_CMN_DIALOG)->c_str(), (&wxPyART_CMN_DIALOG)->Len());
13613 #endif
13614 }
13615 return pyobj;
13616 }
13617
13618
13619 static int _wrap_ART_HELP_BROWSER_set(PyObject *_val) {
13620 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_BROWSER is read-only.");
13621 return 1;
13622 }
13623
13624
13625 static PyObject *_wrap_ART_HELP_BROWSER_get() {
13626 PyObject *pyobj;
13627
13628 {
13629 #if wxUSE_UNICODE
13630 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_BROWSER)->c_str(), (&wxPyART_HELP_BROWSER)->Len());
13631 #else
13632 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_BROWSER)->c_str(), (&wxPyART_HELP_BROWSER)->Len());
13633 #endif
13634 }
13635 return pyobj;
13636 }
13637
13638
13639 static int _wrap_ART_MESSAGE_BOX_set(PyObject *_val) {
13640 PyErr_SetString(PyExc_TypeError,"Variable ART_MESSAGE_BOX is read-only.");
13641 return 1;
13642 }
13643
13644
13645 static PyObject *_wrap_ART_MESSAGE_BOX_get() {
13646 PyObject *pyobj;
13647
13648 {
13649 #if wxUSE_UNICODE
13650 pyobj = PyUnicode_FromWideChar((&wxPyART_MESSAGE_BOX)->c_str(), (&wxPyART_MESSAGE_BOX)->Len());
13651 #else
13652 pyobj = PyString_FromStringAndSize((&wxPyART_MESSAGE_BOX)->c_str(), (&wxPyART_MESSAGE_BOX)->Len());
13653 #endif
13654 }
13655 return pyobj;
13656 }
13657
13658
13659 static int _wrap_ART_OTHER_set(PyObject *_val) {
13660 PyErr_SetString(PyExc_TypeError,"Variable ART_OTHER is read-only.");
13661 return 1;
13662 }
13663
13664
13665 static PyObject *_wrap_ART_OTHER_get() {
13666 PyObject *pyobj;
13667
13668 {
13669 #if wxUSE_UNICODE
13670 pyobj = PyUnicode_FromWideChar((&wxPyART_OTHER)->c_str(), (&wxPyART_OTHER)->Len());
13671 #else
13672 pyobj = PyString_FromStringAndSize((&wxPyART_OTHER)->c_str(), (&wxPyART_OTHER)->Len());
13673 #endif
13674 }
13675 return pyobj;
13676 }
13677
13678
13679 static int _wrap_ART_ADD_BOOKMARK_set(PyObject *_val) {
13680 PyErr_SetString(PyExc_TypeError,"Variable ART_ADD_BOOKMARK is read-only.");
13681 return 1;
13682 }
13683
13684
13685 static PyObject *_wrap_ART_ADD_BOOKMARK_get() {
13686 PyObject *pyobj;
13687
13688 {
13689 #if wxUSE_UNICODE
13690 pyobj = PyUnicode_FromWideChar((&wxPyART_ADD_BOOKMARK)->c_str(), (&wxPyART_ADD_BOOKMARK)->Len());
13691 #else
13692 pyobj = PyString_FromStringAndSize((&wxPyART_ADD_BOOKMARK)->c_str(), (&wxPyART_ADD_BOOKMARK)->Len());
13693 #endif
13694 }
13695 return pyobj;
13696 }
13697
13698
13699 static int _wrap_ART_DEL_BOOKMARK_set(PyObject *_val) {
13700 PyErr_SetString(PyExc_TypeError,"Variable ART_DEL_BOOKMARK is read-only.");
13701 return 1;
13702 }
13703
13704
13705 static PyObject *_wrap_ART_DEL_BOOKMARK_get() {
13706 PyObject *pyobj;
13707
13708 {
13709 #if wxUSE_UNICODE
13710 pyobj = PyUnicode_FromWideChar((&wxPyART_DEL_BOOKMARK)->c_str(), (&wxPyART_DEL_BOOKMARK)->Len());
13711 #else
13712 pyobj = PyString_FromStringAndSize((&wxPyART_DEL_BOOKMARK)->c_str(), (&wxPyART_DEL_BOOKMARK)->Len());
13713 #endif
13714 }
13715 return pyobj;
13716 }
13717
13718
13719 static int _wrap_ART_HELP_SIDE_PANEL_set(PyObject *_val) {
13720 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_SIDE_PANEL is read-only.");
13721 return 1;
13722 }
13723
13724
13725 static PyObject *_wrap_ART_HELP_SIDE_PANEL_get() {
13726 PyObject *pyobj;
13727
13728 {
13729 #if wxUSE_UNICODE
13730 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_SIDE_PANEL)->c_str(), (&wxPyART_HELP_SIDE_PANEL)->Len());
13731 #else
13732 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_SIDE_PANEL)->c_str(), (&wxPyART_HELP_SIDE_PANEL)->Len());
13733 #endif
13734 }
13735 return pyobj;
13736 }
13737
13738
13739 static int _wrap_ART_HELP_SETTINGS_set(PyObject *_val) {
13740 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_SETTINGS is read-only.");
13741 return 1;
13742 }
13743
13744
13745 static PyObject *_wrap_ART_HELP_SETTINGS_get() {
13746 PyObject *pyobj;
13747
13748 {
13749 #if wxUSE_UNICODE
13750 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_SETTINGS)->c_str(), (&wxPyART_HELP_SETTINGS)->Len());
13751 #else
13752 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_SETTINGS)->c_str(), (&wxPyART_HELP_SETTINGS)->Len());
13753 #endif
13754 }
13755 return pyobj;
13756 }
13757
13758
13759 static int _wrap_ART_HELP_BOOK_set(PyObject *_val) {
13760 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_BOOK is read-only.");
13761 return 1;
13762 }
13763
13764
13765 static PyObject *_wrap_ART_HELP_BOOK_get() {
13766 PyObject *pyobj;
13767
13768 {
13769 #if wxUSE_UNICODE
13770 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_BOOK)->c_str(), (&wxPyART_HELP_BOOK)->Len());
13771 #else
13772 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_BOOK)->c_str(), (&wxPyART_HELP_BOOK)->Len());
13773 #endif
13774 }
13775 return pyobj;
13776 }
13777
13778
13779 static int _wrap_ART_HELP_FOLDER_set(PyObject *_val) {
13780 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_FOLDER is read-only.");
13781 return 1;
13782 }
13783
13784
13785 static PyObject *_wrap_ART_HELP_FOLDER_get() {
13786 PyObject *pyobj;
13787
13788 {
13789 #if wxUSE_UNICODE
13790 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_FOLDER)->c_str(), (&wxPyART_HELP_FOLDER)->Len());
13791 #else
13792 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_FOLDER)->c_str(), (&wxPyART_HELP_FOLDER)->Len());
13793 #endif
13794 }
13795 return pyobj;
13796 }
13797
13798
13799 static int _wrap_ART_HELP_PAGE_set(PyObject *_val) {
13800 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_PAGE is read-only.");
13801 return 1;
13802 }
13803
13804
13805 static PyObject *_wrap_ART_HELP_PAGE_get() {
13806 PyObject *pyobj;
13807
13808 {
13809 #if wxUSE_UNICODE
13810 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_PAGE)->c_str(), (&wxPyART_HELP_PAGE)->Len());
13811 #else
13812 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_PAGE)->c_str(), (&wxPyART_HELP_PAGE)->Len());
13813 #endif
13814 }
13815 return pyobj;
13816 }
13817
13818
13819 static int _wrap_ART_GO_BACK_set(PyObject *_val) {
13820 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_BACK is read-only.");
13821 return 1;
13822 }
13823
13824
13825 static PyObject *_wrap_ART_GO_BACK_get() {
13826 PyObject *pyobj;
13827
13828 {
13829 #if wxUSE_UNICODE
13830 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_BACK)->c_str(), (&wxPyART_GO_BACK)->Len());
13831 #else
13832 pyobj = PyString_FromStringAndSize((&wxPyART_GO_BACK)->c_str(), (&wxPyART_GO_BACK)->Len());
13833 #endif
13834 }
13835 return pyobj;
13836 }
13837
13838
13839 static int _wrap_ART_GO_FORWARD_set(PyObject *_val) {
13840 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_FORWARD is read-only.");
13841 return 1;
13842 }
13843
13844
13845 static PyObject *_wrap_ART_GO_FORWARD_get() {
13846 PyObject *pyobj;
13847
13848 {
13849 #if wxUSE_UNICODE
13850 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_FORWARD)->c_str(), (&wxPyART_GO_FORWARD)->Len());
13851 #else
13852 pyobj = PyString_FromStringAndSize((&wxPyART_GO_FORWARD)->c_str(), (&wxPyART_GO_FORWARD)->Len());
13853 #endif
13854 }
13855 return pyobj;
13856 }
13857
13858
13859 static int _wrap_ART_GO_UP_set(PyObject *_val) {
13860 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_UP is read-only.");
13861 return 1;
13862 }
13863
13864
13865 static PyObject *_wrap_ART_GO_UP_get() {
13866 PyObject *pyobj;
13867
13868 {
13869 #if wxUSE_UNICODE
13870 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_UP)->c_str(), (&wxPyART_GO_UP)->Len());
13871 #else
13872 pyobj = PyString_FromStringAndSize((&wxPyART_GO_UP)->c_str(), (&wxPyART_GO_UP)->Len());
13873 #endif
13874 }
13875 return pyobj;
13876 }
13877
13878
13879 static int _wrap_ART_GO_DOWN_set(PyObject *_val) {
13880 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_DOWN is read-only.");
13881 return 1;
13882 }
13883
13884
13885 static PyObject *_wrap_ART_GO_DOWN_get() {
13886 PyObject *pyobj;
13887
13888 {
13889 #if wxUSE_UNICODE
13890 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_DOWN)->c_str(), (&wxPyART_GO_DOWN)->Len());
13891 #else
13892 pyobj = PyString_FromStringAndSize((&wxPyART_GO_DOWN)->c_str(), (&wxPyART_GO_DOWN)->Len());
13893 #endif
13894 }
13895 return pyobj;
13896 }
13897
13898
13899 static int _wrap_ART_GO_TO_PARENT_set(PyObject *_val) {
13900 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_TO_PARENT is read-only.");
13901 return 1;
13902 }
13903
13904
13905 static PyObject *_wrap_ART_GO_TO_PARENT_get() {
13906 PyObject *pyobj;
13907
13908 {
13909 #if wxUSE_UNICODE
13910 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_TO_PARENT)->c_str(), (&wxPyART_GO_TO_PARENT)->Len());
13911 #else
13912 pyobj = PyString_FromStringAndSize((&wxPyART_GO_TO_PARENT)->c_str(), (&wxPyART_GO_TO_PARENT)->Len());
13913 #endif
13914 }
13915 return pyobj;
13916 }
13917
13918
13919 static int _wrap_ART_GO_HOME_set(PyObject *_val) {
13920 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_HOME is read-only.");
13921 return 1;
13922 }
13923
13924
13925 static PyObject *_wrap_ART_GO_HOME_get() {
13926 PyObject *pyobj;
13927
13928 {
13929 #if wxUSE_UNICODE
13930 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_HOME)->c_str(), (&wxPyART_GO_HOME)->Len());
13931 #else
13932 pyobj = PyString_FromStringAndSize((&wxPyART_GO_HOME)->c_str(), (&wxPyART_GO_HOME)->Len());
13933 #endif
13934 }
13935 return pyobj;
13936 }
13937
13938
13939 static int _wrap_ART_FILE_OPEN_set(PyObject *_val) {
13940 PyErr_SetString(PyExc_TypeError,"Variable ART_FILE_OPEN is read-only.");
13941 return 1;
13942 }
13943
13944
13945 static PyObject *_wrap_ART_FILE_OPEN_get() {
13946 PyObject *pyobj;
13947
13948 {
13949 #if wxUSE_UNICODE
13950 pyobj = PyUnicode_FromWideChar((&wxPyART_FILE_OPEN)->c_str(), (&wxPyART_FILE_OPEN)->Len());
13951 #else
13952 pyobj = PyString_FromStringAndSize((&wxPyART_FILE_OPEN)->c_str(), (&wxPyART_FILE_OPEN)->Len());
13953 #endif
13954 }
13955 return pyobj;
13956 }
13957
13958
13959 static int _wrap_ART_PRINT_set(PyObject *_val) {
13960 PyErr_SetString(PyExc_TypeError,"Variable ART_PRINT is read-only.");
13961 return 1;
13962 }
13963
13964
13965 static PyObject *_wrap_ART_PRINT_get() {
13966 PyObject *pyobj;
13967
13968 {
13969 #if wxUSE_UNICODE
13970 pyobj = PyUnicode_FromWideChar((&wxPyART_PRINT)->c_str(), (&wxPyART_PRINT)->Len());
13971 #else
13972 pyobj = PyString_FromStringAndSize((&wxPyART_PRINT)->c_str(), (&wxPyART_PRINT)->Len());
13973 #endif
13974 }
13975 return pyobj;
13976 }
13977
13978
13979 static int _wrap_ART_HELP_set(PyObject *_val) {
13980 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP is read-only.");
13981 return 1;
13982 }
13983
13984
13985 static PyObject *_wrap_ART_HELP_get() {
13986 PyObject *pyobj;
13987
13988 {
13989 #if wxUSE_UNICODE
13990 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP)->c_str(), (&wxPyART_HELP)->Len());
13991 #else
13992 pyobj = PyString_FromStringAndSize((&wxPyART_HELP)->c_str(), (&wxPyART_HELP)->Len());
13993 #endif
13994 }
13995 return pyobj;
13996 }
13997
13998
13999 static int _wrap_ART_TIP_set(PyObject *_val) {
14000 PyErr_SetString(PyExc_TypeError,"Variable ART_TIP is read-only.");
14001 return 1;
14002 }
14003
14004
14005 static PyObject *_wrap_ART_TIP_get() {
14006 PyObject *pyobj;
14007
14008 {
14009 #if wxUSE_UNICODE
14010 pyobj = PyUnicode_FromWideChar((&wxPyART_TIP)->c_str(), (&wxPyART_TIP)->Len());
14011 #else
14012 pyobj = PyString_FromStringAndSize((&wxPyART_TIP)->c_str(), (&wxPyART_TIP)->Len());
14013 #endif
14014 }
14015 return pyobj;
14016 }
14017
14018
14019 static int _wrap_ART_REPORT_VIEW_set(PyObject *_val) {
14020 PyErr_SetString(PyExc_TypeError,"Variable ART_REPORT_VIEW is read-only.");
14021 return 1;
14022 }
14023
14024
14025 static PyObject *_wrap_ART_REPORT_VIEW_get() {
14026 PyObject *pyobj;
14027
14028 {
14029 #if wxUSE_UNICODE
14030 pyobj = PyUnicode_FromWideChar((&wxPyART_REPORT_VIEW)->c_str(), (&wxPyART_REPORT_VIEW)->Len());
14031 #else
14032 pyobj = PyString_FromStringAndSize((&wxPyART_REPORT_VIEW)->c_str(), (&wxPyART_REPORT_VIEW)->Len());
14033 #endif
14034 }
14035 return pyobj;
14036 }
14037
14038
14039 static int _wrap_ART_LIST_VIEW_set(PyObject *_val) {
14040 PyErr_SetString(PyExc_TypeError,"Variable ART_LIST_VIEW is read-only.");
14041 return 1;
14042 }
14043
14044
14045 static PyObject *_wrap_ART_LIST_VIEW_get() {
14046 PyObject *pyobj;
14047
14048 {
14049 #if wxUSE_UNICODE
14050 pyobj = PyUnicode_FromWideChar((&wxPyART_LIST_VIEW)->c_str(), (&wxPyART_LIST_VIEW)->Len());
14051 #else
14052 pyobj = PyString_FromStringAndSize((&wxPyART_LIST_VIEW)->c_str(), (&wxPyART_LIST_VIEW)->Len());
14053 #endif
14054 }
14055 return pyobj;
14056 }
14057
14058
14059 static int _wrap_ART_NEW_DIR_set(PyObject *_val) {
14060 PyErr_SetString(PyExc_TypeError,"Variable ART_NEW_DIR is read-only.");
14061 return 1;
14062 }
14063
14064
14065 static PyObject *_wrap_ART_NEW_DIR_get() {
14066 PyObject *pyobj;
14067
14068 {
14069 #if wxUSE_UNICODE
14070 pyobj = PyUnicode_FromWideChar((&wxPyART_NEW_DIR)->c_str(), (&wxPyART_NEW_DIR)->Len());
14071 #else
14072 pyobj = PyString_FromStringAndSize((&wxPyART_NEW_DIR)->c_str(), (&wxPyART_NEW_DIR)->Len());
14073 #endif
14074 }
14075 return pyobj;
14076 }
14077
14078
14079 static int _wrap_ART_FOLDER_set(PyObject *_val) {
14080 PyErr_SetString(PyExc_TypeError,"Variable ART_FOLDER is read-only.");
14081 return 1;
14082 }
14083
14084
14085 static PyObject *_wrap_ART_FOLDER_get() {
14086 PyObject *pyobj;
14087
14088 {
14089 #if wxUSE_UNICODE
14090 pyobj = PyUnicode_FromWideChar((&wxPyART_FOLDER)->c_str(), (&wxPyART_FOLDER)->Len());
14091 #else
14092 pyobj = PyString_FromStringAndSize((&wxPyART_FOLDER)->c_str(), (&wxPyART_FOLDER)->Len());
14093 #endif
14094 }
14095 return pyobj;
14096 }
14097
14098
14099 static int _wrap_ART_GO_DIR_UP_set(PyObject *_val) {
14100 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_DIR_UP is read-only.");
14101 return 1;
14102 }
14103
14104
14105 static PyObject *_wrap_ART_GO_DIR_UP_get() {
14106 PyObject *pyobj;
14107
14108 {
14109 #if wxUSE_UNICODE
14110 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_DIR_UP)->c_str(), (&wxPyART_GO_DIR_UP)->Len());
14111 #else
14112 pyobj = PyString_FromStringAndSize((&wxPyART_GO_DIR_UP)->c_str(), (&wxPyART_GO_DIR_UP)->Len());
14113 #endif
14114 }
14115 return pyobj;
14116 }
14117
14118
14119 static int _wrap_ART_EXECUTABLE_FILE_set(PyObject *_val) {
14120 PyErr_SetString(PyExc_TypeError,"Variable ART_EXECUTABLE_FILE is read-only.");
14121 return 1;
14122 }
14123
14124
14125 static PyObject *_wrap_ART_EXECUTABLE_FILE_get() {
14126 PyObject *pyobj;
14127
14128 {
14129 #if wxUSE_UNICODE
14130 pyobj = PyUnicode_FromWideChar((&wxPyART_EXECUTABLE_FILE)->c_str(), (&wxPyART_EXECUTABLE_FILE)->Len());
14131 #else
14132 pyobj = PyString_FromStringAndSize((&wxPyART_EXECUTABLE_FILE)->c_str(), (&wxPyART_EXECUTABLE_FILE)->Len());
14133 #endif
14134 }
14135 return pyobj;
14136 }
14137
14138
14139 static int _wrap_ART_NORMAL_FILE_set(PyObject *_val) {
14140 PyErr_SetString(PyExc_TypeError,"Variable ART_NORMAL_FILE is read-only.");
14141 return 1;
14142 }
14143
14144
14145 static PyObject *_wrap_ART_NORMAL_FILE_get() {
14146 PyObject *pyobj;
14147
14148 {
14149 #if wxUSE_UNICODE
14150 pyobj = PyUnicode_FromWideChar((&wxPyART_NORMAL_FILE)->c_str(), (&wxPyART_NORMAL_FILE)->Len());
14151 #else
14152 pyobj = PyString_FromStringAndSize((&wxPyART_NORMAL_FILE)->c_str(), (&wxPyART_NORMAL_FILE)->Len());
14153 #endif
14154 }
14155 return pyobj;
14156 }
14157
14158
14159 static int _wrap_ART_TICK_MARK_set(PyObject *_val) {
14160 PyErr_SetString(PyExc_TypeError,"Variable ART_TICK_MARK is read-only.");
14161 return 1;
14162 }
14163
14164
14165 static PyObject *_wrap_ART_TICK_MARK_get() {
14166 PyObject *pyobj;
14167
14168 {
14169 #if wxUSE_UNICODE
14170 pyobj = PyUnicode_FromWideChar((&wxPyART_TICK_MARK)->c_str(), (&wxPyART_TICK_MARK)->Len());
14171 #else
14172 pyobj = PyString_FromStringAndSize((&wxPyART_TICK_MARK)->c_str(), (&wxPyART_TICK_MARK)->Len());
14173 #endif
14174 }
14175 return pyobj;
14176 }
14177
14178
14179 static int _wrap_ART_CROSS_MARK_set(PyObject *_val) {
14180 PyErr_SetString(PyExc_TypeError,"Variable ART_CROSS_MARK is read-only.");
14181 return 1;
14182 }
14183
14184
14185 static PyObject *_wrap_ART_CROSS_MARK_get() {
14186 PyObject *pyobj;
14187
14188 {
14189 #if wxUSE_UNICODE
14190 pyobj = PyUnicode_FromWideChar((&wxPyART_CROSS_MARK)->c_str(), (&wxPyART_CROSS_MARK)->Len());
14191 #else
14192 pyobj = PyString_FromStringAndSize((&wxPyART_CROSS_MARK)->c_str(), (&wxPyART_CROSS_MARK)->Len());
14193 #endif
14194 }
14195 return pyobj;
14196 }
14197
14198
14199 static int _wrap_ART_ERROR_set(PyObject *_val) {
14200 PyErr_SetString(PyExc_TypeError,"Variable ART_ERROR is read-only.");
14201 return 1;
14202 }
14203
14204
14205 static PyObject *_wrap_ART_ERROR_get() {
14206 PyObject *pyobj;
14207
14208 {
14209 #if wxUSE_UNICODE
14210 pyobj = PyUnicode_FromWideChar((&wxPyART_ERROR)->c_str(), (&wxPyART_ERROR)->Len());
14211 #else
14212 pyobj = PyString_FromStringAndSize((&wxPyART_ERROR)->c_str(), (&wxPyART_ERROR)->Len());
14213 #endif
14214 }
14215 return pyobj;
14216 }
14217
14218
14219 static int _wrap_ART_QUESTION_set(PyObject *_val) {
14220 PyErr_SetString(PyExc_TypeError,"Variable ART_QUESTION is read-only.");
14221 return 1;
14222 }
14223
14224
14225 static PyObject *_wrap_ART_QUESTION_get() {
14226 PyObject *pyobj;
14227
14228 {
14229 #if wxUSE_UNICODE
14230 pyobj = PyUnicode_FromWideChar((&wxPyART_QUESTION)->c_str(), (&wxPyART_QUESTION)->Len());
14231 #else
14232 pyobj = PyString_FromStringAndSize((&wxPyART_QUESTION)->c_str(), (&wxPyART_QUESTION)->Len());
14233 #endif
14234 }
14235 return pyobj;
14236 }
14237
14238
14239 static int _wrap_ART_WARNING_set(PyObject *_val) {
14240 PyErr_SetString(PyExc_TypeError,"Variable ART_WARNING is read-only.");
14241 return 1;
14242 }
14243
14244
14245 static PyObject *_wrap_ART_WARNING_get() {
14246 PyObject *pyobj;
14247
14248 {
14249 #if wxUSE_UNICODE
14250 pyobj = PyUnicode_FromWideChar((&wxPyART_WARNING)->c_str(), (&wxPyART_WARNING)->Len());
14251 #else
14252 pyobj = PyString_FromStringAndSize((&wxPyART_WARNING)->c_str(), (&wxPyART_WARNING)->Len());
14253 #endif
14254 }
14255 return pyobj;
14256 }
14257
14258
14259 static int _wrap_ART_INFORMATION_set(PyObject *_val) {
14260 PyErr_SetString(PyExc_TypeError,"Variable ART_INFORMATION is read-only.");
14261 return 1;
14262 }
14263
14264
14265 static PyObject *_wrap_ART_INFORMATION_get() {
14266 PyObject *pyobj;
14267
14268 {
14269 #if wxUSE_UNICODE
14270 pyobj = PyUnicode_FromWideChar((&wxPyART_INFORMATION)->c_str(), (&wxPyART_INFORMATION)->Len());
14271 #else
14272 pyobj = PyString_FromStringAndSize((&wxPyART_INFORMATION)->c_str(), (&wxPyART_INFORMATION)->Len());
14273 #endif
14274 }
14275 return pyobj;
14276 }
14277
14278
14279 static int _wrap_ART_MISSING_IMAGE_set(PyObject *_val) {
14280 PyErr_SetString(PyExc_TypeError,"Variable ART_MISSING_IMAGE is read-only.");
14281 return 1;
14282 }
14283
14284
14285 static PyObject *_wrap_ART_MISSING_IMAGE_get() {
14286 PyObject *pyobj;
14287
14288 {
14289 #if wxUSE_UNICODE
14290 pyobj = PyUnicode_FromWideChar((&wxPyART_MISSING_IMAGE)->c_str(), (&wxPyART_MISSING_IMAGE)->Len());
14291 #else
14292 pyobj = PyString_FromStringAndSize((&wxPyART_MISSING_IMAGE)->c_str(), (&wxPyART_MISSING_IMAGE)->Len());
14293 #endif
14294 }
14295 return pyobj;
14296 }
14297
14298
14299 static PyObject *_wrap_new_ArtProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
14300 PyObject *resultobj;
14301 wxPyArtProvider *result;
14302 char *kwnames[] = {
14303 NULL
14304 };
14305
14306 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ArtProvider",kwnames)) goto fail;
14307 {
14308 PyThreadState* __tstate = wxPyBeginAllowThreads();
14309 result = (wxPyArtProvider *)new wxPyArtProvider();
14310
14311 wxPyEndAllowThreads(__tstate);
14312 if (PyErr_Occurred()) SWIG_fail;
14313 }
14314 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyArtProvider, 1);
14315 return resultobj;
14316 fail:
14317 return NULL;
14318 }
14319
14320
14321 static PyObject *_wrap_ArtProvider__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
14322 PyObject *resultobj;
14323 wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ;
14324 PyObject *arg2 = (PyObject *) 0 ;
14325 PyObject *arg3 = (PyObject *) 0 ;
14326 PyObject * obj0 = 0 ;
14327 PyObject * obj1 = 0 ;
14328 PyObject * obj2 = 0 ;
14329 char *kwnames[] = {
14330 (char *) "self",(char *) "self",(char *) "_class", NULL
14331 };
14332
14333 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ArtProvider__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
14334 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider,
14335 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14336 arg2 = obj1;
14337 arg3 = obj2;
14338 {
14339 PyThreadState* __tstate = wxPyBeginAllowThreads();
14340 (arg1)->_setCallbackInfo(arg2,arg3);
14341
14342 wxPyEndAllowThreads(__tstate);
14343 if (PyErr_Occurred()) SWIG_fail;
14344 }
14345 Py_INCREF(Py_None); resultobj = Py_None;
14346 return resultobj;
14347 fail:
14348 return NULL;
14349 }
14350
14351
14352 static PyObject *_wrap_ArtProvider_PushProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
14353 PyObject *resultobj;
14354 wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ;
14355 PyObject * obj0 = 0 ;
14356 char *kwnames[] = {
14357 (char *) "provider", NULL
14358 };
14359
14360 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_PushProvider",kwnames,&obj0)) goto fail;
14361 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider,
14362 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14363 {
14364 PyThreadState* __tstate = wxPyBeginAllowThreads();
14365 wxPyArtProvider::PushProvider(arg1);
14366
14367 wxPyEndAllowThreads(__tstate);
14368 if (PyErr_Occurred()) SWIG_fail;
14369 }
14370 Py_INCREF(Py_None); resultobj = Py_None;
14371 return resultobj;
14372 fail:
14373 return NULL;
14374 }
14375
14376
14377 static PyObject *_wrap_ArtProvider_PopProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
14378 PyObject *resultobj;
14379 bool result;
14380 char *kwnames[] = {
14381 NULL
14382 };
14383
14384 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ArtProvider_PopProvider",kwnames)) goto fail;
14385 {
14386 PyThreadState* __tstate = wxPyBeginAllowThreads();
14387 result = (bool)wxPyArtProvider::PopProvider();
14388
14389 wxPyEndAllowThreads(__tstate);
14390 if (PyErr_Occurred()) SWIG_fail;
14391 }
14392 {
14393 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14394 }
14395 return resultobj;
14396 fail:
14397 return NULL;
14398 }
14399
14400
14401 static PyObject *_wrap_ArtProvider_RemoveProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
14402 PyObject *resultobj;
14403 wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ;
14404 bool result;
14405 PyObject * obj0 = 0 ;
14406 char *kwnames[] = {
14407 (char *) "provider", NULL
14408 };
14409
14410 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_RemoveProvider",kwnames,&obj0)) goto fail;
14411 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider,
14412 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14413 {
14414 PyThreadState* __tstate = wxPyBeginAllowThreads();
14415 result = (bool)wxPyArtProvider::RemoveProvider(arg1);
14416
14417 wxPyEndAllowThreads(__tstate);
14418 if (PyErr_Occurred()) SWIG_fail;
14419 }
14420 {
14421 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14422 }
14423 return resultobj;
14424 fail:
14425 return NULL;
14426 }
14427
14428
14429 static PyObject *_wrap_ArtProvider_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
14430 PyObject *resultobj;
14431 wxString *arg1 = 0 ;
14432 wxString const &arg2_defvalue = wxPyART_OTHER ;
14433 wxString *arg2 = (wxString *) &arg2_defvalue ;
14434 wxSize const &arg3_defvalue = wxDefaultSize ;
14435 wxSize *arg3 = (wxSize *) &arg3_defvalue ;
14436 wxBitmap result;
14437 bool temp1 = False ;
14438 bool temp2 = False ;
14439 wxSize temp3 ;
14440 PyObject * obj0 = 0 ;
14441 PyObject * obj1 = 0 ;
14442 PyObject * obj2 = 0 ;
14443 char *kwnames[] = {
14444 (char *) "id",(char *) "client",(char *) "size", NULL
14445 };
14446
14447 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:ArtProvider_GetBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail;
14448 {
14449 arg1 = wxString_in_helper(obj0);
14450 if (arg1 == NULL) SWIG_fail;
14451 temp1 = True;
14452 }
14453 if (obj1) {
14454 {
14455 arg2 = wxString_in_helper(obj1);
14456 if (arg2 == NULL) SWIG_fail;
14457 temp2 = True;
14458 }
14459 }
14460 if (obj2) {
14461 {
14462 arg3 = &temp3;
14463 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
14464 }
14465 }
14466 {
14467 PyThreadState* __tstate = wxPyBeginAllowThreads();
14468 result = wxPyArtProvider::GetBitmap((wxString const &)*arg1,(wxString const &)*arg2,(wxSize const &)*arg3);
14469
14470 wxPyEndAllowThreads(__tstate);
14471 if (PyErr_Occurred()) SWIG_fail;
14472 }
14473 {
14474 wxBitmap * resultptr;
14475 resultptr = new wxBitmap((wxBitmap &) result);
14476 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
14477 }
14478 {
14479 if (temp1)
14480 delete arg1;
14481 }
14482 {
14483 if (temp2)
14484 delete arg2;
14485 }
14486 return resultobj;
14487 fail:
14488 {
14489 if (temp1)
14490 delete arg1;
14491 }
14492 {
14493 if (temp2)
14494 delete arg2;
14495 }
14496 return NULL;
14497 }
14498
14499
14500 static PyObject *_wrap_ArtProvider_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
14501 PyObject *resultobj;
14502 wxString *arg1 = 0 ;
14503 wxString const &arg2_defvalue = wxPyART_OTHER ;
14504 wxString *arg2 = (wxString *) &arg2_defvalue ;
14505 wxSize const &arg3_defvalue = wxDefaultSize ;
14506 wxSize *arg3 = (wxSize *) &arg3_defvalue ;
14507 wxIcon result;
14508 bool temp1 = False ;
14509 bool temp2 = False ;
14510 wxSize temp3 ;
14511 PyObject * obj0 = 0 ;
14512 PyObject * obj1 = 0 ;
14513 PyObject * obj2 = 0 ;
14514 char *kwnames[] = {
14515 (char *) "id",(char *) "client",(char *) "size", NULL
14516 };
14517
14518 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:ArtProvider_GetIcon",kwnames,&obj0,&obj1,&obj2)) goto fail;
14519 {
14520 arg1 = wxString_in_helper(obj0);
14521 if (arg1 == NULL) SWIG_fail;
14522 temp1 = True;
14523 }
14524 if (obj1) {
14525 {
14526 arg2 = wxString_in_helper(obj1);
14527 if (arg2 == NULL) SWIG_fail;
14528 temp2 = True;
14529 }
14530 }
14531 if (obj2) {
14532 {
14533 arg3 = &temp3;
14534 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
14535 }
14536 }
14537 {
14538 PyThreadState* __tstate = wxPyBeginAllowThreads();
14539 result = wxPyArtProvider::GetIcon((wxString const &)*arg1,(wxString const &)*arg2,(wxSize const &)*arg3);
14540
14541 wxPyEndAllowThreads(__tstate);
14542 if (PyErr_Occurred()) SWIG_fail;
14543 }
14544 {
14545 wxIcon * resultptr;
14546 resultptr = new wxIcon((wxIcon &) result);
14547 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxIcon, 1);
14548 }
14549 {
14550 if (temp1)
14551 delete arg1;
14552 }
14553 {
14554 if (temp2)
14555 delete arg2;
14556 }
14557 return resultobj;
14558 fail:
14559 {
14560 if (temp1)
14561 delete arg1;
14562 }
14563 {
14564 if (temp2)
14565 delete arg2;
14566 }
14567 return NULL;
14568 }
14569
14570
14571 static PyObject *_wrap_ArtProvider_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
14572 PyObject *resultobj;
14573 wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ;
14574 PyObject * obj0 = 0 ;
14575 char *kwnames[] = {
14576 (char *) "self", NULL
14577 };
14578
14579 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_Destroy",kwnames,&obj0)) goto fail;
14580 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider,
14581 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14582 {
14583 PyThreadState* __tstate = wxPyBeginAllowThreads();
14584 wxPyArtProvider_Destroy(arg1);
14585
14586 wxPyEndAllowThreads(__tstate);
14587 if (PyErr_Occurred()) SWIG_fail;
14588 }
14589 Py_INCREF(Py_None); resultobj = Py_None;
14590 return resultobj;
14591 fail:
14592 return NULL;
14593 }
14594
14595
14596 static PyObject * ArtProvider_swigregister(PyObject *self, PyObject *args) {
14597 PyObject *obj;
14598 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14599 SWIG_TypeClientData(SWIGTYPE_p_wxPyArtProvider, obj);
14600 Py_INCREF(obj);
14601 return Py_BuildValue((char *)"");
14602 }
14603 static PyObject *_wrap_delete_ConfigBase(PyObject *self, PyObject *args, PyObject *kwargs) {
14604 PyObject *resultobj;
14605 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14606 PyObject * obj0 = 0 ;
14607 char *kwnames[] = {
14608 (char *) "self", NULL
14609 };
14610
14611 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ConfigBase",kwnames,&obj0)) goto fail;
14612 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14613 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14614 {
14615 PyThreadState* __tstate = wxPyBeginAllowThreads();
14616 delete arg1;
14617
14618 wxPyEndAllowThreads(__tstate);
14619 if (PyErr_Occurred()) SWIG_fail;
14620 }
14621 Py_INCREF(Py_None); resultobj = Py_None;
14622 return resultobj;
14623 fail:
14624 return NULL;
14625 }
14626
14627
14628 static PyObject *_wrap_ConfigBase_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
14629 PyObject *resultobj;
14630 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14631 wxConfigBase *result;
14632 PyObject * obj0 = 0 ;
14633 char *kwnames[] = {
14634 (char *) "config", NULL
14635 };
14636
14637 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_Set",kwnames,&obj0)) goto fail;
14638 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14639 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14640 {
14641 PyThreadState* __tstate = wxPyBeginAllowThreads();
14642 result = (wxConfigBase *)wxConfigBase::Set(arg1);
14643
14644 wxPyEndAllowThreads(__tstate);
14645 if (PyErr_Occurred()) SWIG_fail;
14646 }
14647 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigBase, 0);
14648 return resultobj;
14649 fail:
14650 return NULL;
14651 }
14652
14653
14654 static PyObject *_wrap_ConfigBase_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
14655 PyObject *resultobj;
14656 bool arg1 = (bool) True ;
14657 wxConfigBase *result;
14658 PyObject * obj0 = 0 ;
14659 char *kwnames[] = {
14660 (char *) "createOnDemand", NULL
14661 };
14662
14663 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ConfigBase_Get",kwnames,&obj0)) goto fail;
14664 if (obj0) {
14665 arg1 = (bool) SWIG_AsBool(obj0);
14666 if (PyErr_Occurred()) SWIG_fail;
14667 }
14668 {
14669 PyThreadState* __tstate = wxPyBeginAllowThreads();
14670 result = (wxConfigBase *)wxConfigBase::Get(arg1);
14671
14672 wxPyEndAllowThreads(__tstate);
14673 if (PyErr_Occurred()) SWIG_fail;
14674 }
14675 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigBase, 0);
14676 return resultobj;
14677 fail:
14678 return NULL;
14679 }
14680
14681
14682 static PyObject *_wrap_ConfigBase_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
14683 PyObject *resultobj;
14684 wxConfigBase *result;
14685 char *kwnames[] = {
14686 NULL
14687 };
14688
14689 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ConfigBase_Create",kwnames)) goto fail;
14690 {
14691 PyThreadState* __tstate = wxPyBeginAllowThreads();
14692 result = (wxConfigBase *)wxConfigBase::Create();
14693
14694 wxPyEndAllowThreads(__tstate);
14695 if (PyErr_Occurred()) SWIG_fail;
14696 }
14697 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigBase, 0);
14698 return resultobj;
14699 fail:
14700 return NULL;
14701 }
14702
14703
14704 static PyObject *_wrap_ConfigBase_DontCreateOnDemand(PyObject *self, PyObject *args, PyObject *kwargs) {
14705 PyObject *resultobj;
14706 char *kwnames[] = {
14707 NULL
14708 };
14709
14710 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ConfigBase_DontCreateOnDemand",kwnames)) goto fail;
14711 {
14712 PyThreadState* __tstate = wxPyBeginAllowThreads();
14713 wxConfigBase::DontCreateOnDemand();
14714
14715 wxPyEndAllowThreads(__tstate);
14716 if (PyErr_Occurred()) SWIG_fail;
14717 }
14718 Py_INCREF(Py_None); resultobj = Py_None;
14719 return resultobj;
14720 fail:
14721 return NULL;
14722 }
14723
14724
14725 static PyObject *_wrap_ConfigBase_SetPath(PyObject *self, PyObject *args, PyObject *kwargs) {
14726 PyObject *resultobj;
14727 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14728 wxString *arg2 = 0 ;
14729 bool temp2 = False ;
14730 PyObject * obj0 = 0 ;
14731 PyObject * obj1 = 0 ;
14732 char *kwnames[] = {
14733 (char *) "self",(char *) "path", NULL
14734 };
14735
14736 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetPath",kwnames,&obj0,&obj1)) goto fail;
14737 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14738 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14739 {
14740 arg2 = wxString_in_helper(obj1);
14741 if (arg2 == NULL) SWIG_fail;
14742 temp2 = True;
14743 }
14744 {
14745 PyThreadState* __tstate = wxPyBeginAllowThreads();
14746 (arg1)->SetPath((wxString const &)*arg2);
14747
14748 wxPyEndAllowThreads(__tstate);
14749 if (PyErr_Occurred()) SWIG_fail;
14750 }
14751 Py_INCREF(Py_None); resultobj = Py_None;
14752 {
14753 if (temp2)
14754 delete arg2;
14755 }
14756 return resultobj;
14757 fail:
14758 {
14759 if (temp2)
14760 delete arg2;
14761 }
14762 return NULL;
14763 }
14764
14765
14766 static PyObject *_wrap_ConfigBase_GetPath(PyObject *self, PyObject *args, PyObject *kwargs) {
14767 PyObject *resultobj;
14768 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14769 wxString *result;
14770 PyObject * obj0 = 0 ;
14771 char *kwnames[] = {
14772 (char *) "self", NULL
14773 };
14774
14775 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetPath",kwnames,&obj0)) goto fail;
14776 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14777 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14778 {
14779 PyThreadState* __tstate = wxPyBeginAllowThreads();
14780 {
14781 wxString const &_result_ref = ((wxConfigBase const *)arg1)->GetPath();
14782 result = (wxString *) &_result_ref;
14783 }
14784
14785 wxPyEndAllowThreads(__tstate);
14786 if (PyErr_Occurred()) SWIG_fail;
14787 }
14788 {
14789 #if wxUSE_UNICODE
14790 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
14791 #else
14792 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
14793 #endif
14794 }
14795 return resultobj;
14796 fail:
14797 return NULL;
14798 }
14799
14800
14801 static PyObject *_wrap_ConfigBase_GetFirstGroup(PyObject *self, PyObject *args, PyObject *kwargs) {
14802 PyObject *resultobj;
14803 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14804 PyObject *result;
14805 PyObject * obj0 = 0 ;
14806 char *kwnames[] = {
14807 (char *) "self", NULL
14808 };
14809
14810 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetFirstGroup",kwnames,&obj0)) goto fail;
14811 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14812 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14813 {
14814 PyThreadState* __tstate = wxPyBeginAllowThreads();
14815 result = (PyObject *)wxConfigBase_GetFirstGroup(arg1);
14816
14817 wxPyEndAllowThreads(__tstate);
14818 if (PyErr_Occurred()) SWIG_fail;
14819 }
14820 resultobj = result;
14821 return resultobj;
14822 fail:
14823 return NULL;
14824 }
14825
14826
14827 static PyObject *_wrap_ConfigBase_GetNextGroup(PyObject *self, PyObject *args, PyObject *kwargs) {
14828 PyObject *resultobj;
14829 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14830 long arg2 ;
14831 PyObject *result;
14832 PyObject * obj0 = 0 ;
14833 PyObject * obj1 = 0 ;
14834 char *kwnames[] = {
14835 (char *) "self",(char *) "index", NULL
14836 };
14837
14838 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetNextGroup",kwnames,&obj0,&obj1)) goto fail;
14839 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14840 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14841 arg2 = (long) SWIG_AsLong(obj1);
14842 if (PyErr_Occurred()) SWIG_fail;
14843 {
14844 PyThreadState* __tstate = wxPyBeginAllowThreads();
14845 result = (PyObject *)wxConfigBase_GetNextGroup(arg1,arg2);
14846
14847 wxPyEndAllowThreads(__tstate);
14848 if (PyErr_Occurred()) SWIG_fail;
14849 }
14850 resultobj = result;
14851 return resultobj;
14852 fail:
14853 return NULL;
14854 }
14855
14856
14857 static PyObject *_wrap_ConfigBase_GetFirstEntry(PyObject *self, PyObject *args, PyObject *kwargs) {
14858 PyObject *resultobj;
14859 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14860 PyObject *result;
14861 PyObject * obj0 = 0 ;
14862 char *kwnames[] = {
14863 (char *) "self", NULL
14864 };
14865
14866 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetFirstEntry",kwnames,&obj0)) goto fail;
14867 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14868 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14869 {
14870 PyThreadState* __tstate = wxPyBeginAllowThreads();
14871 result = (PyObject *)wxConfigBase_GetFirstEntry(arg1);
14872
14873 wxPyEndAllowThreads(__tstate);
14874 if (PyErr_Occurred()) SWIG_fail;
14875 }
14876 resultobj = result;
14877 return resultobj;
14878 fail:
14879 return NULL;
14880 }
14881
14882
14883 static PyObject *_wrap_ConfigBase_GetNextEntry(PyObject *self, PyObject *args, PyObject *kwargs) {
14884 PyObject *resultobj;
14885 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14886 long arg2 ;
14887 PyObject *result;
14888 PyObject * obj0 = 0 ;
14889 PyObject * obj1 = 0 ;
14890 char *kwnames[] = {
14891 (char *) "self",(char *) "index", NULL
14892 };
14893
14894 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetNextEntry",kwnames,&obj0,&obj1)) goto fail;
14895 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14896 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14897 arg2 = (long) SWIG_AsLong(obj1);
14898 if (PyErr_Occurred()) SWIG_fail;
14899 {
14900 PyThreadState* __tstate = wxPyBeginAllowThreads();
14901 result = (PyObject *)wxConfigBase_GetNextEntry(arg1,arg2);
14902
14903 wxPyEndAllowThreads(__tstate);
14904 if (PyErr_Occurred()) SWIG_fail;
14905 }
14906 resultobj = result;
14907 return resultobj;
14908 fail:
14909 return NULL;
14910 }
14911
14912
14913 static PyObject *_wrap_ConfigBase_GetNumberOfEntries(PyObject *self, PyObject *args, PyObject *kwargs) {
14914 PyObject *resultobj;
14915 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14916 bool arg2 = (bool) False ;
14917 size_t result;
14918 PyObject * obj0 = 0 ;
14919 PyObject * obj1 = 0 ;
14920 char *kwnames[] = {
14921 (char *) "self",(char *) "recursive", NULL
14922 };
14923
14924 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_GetNumberOfEntries",kwnames,&obj0,&obj1)) goto fail;
14925 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14926 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14927 if (obj1) {
14928 arg2 = (bool) SWIG_AsBool(obj1);
14929 if (PyErr_Occurred()) SWIG_fail;
14930 }
14931 {
14932 PyThreadState* __tstate = wxPyBeginAllowThreads();
14933 result = (size_t)((wxConfigBase const *)arg1)->GetNumberOfEntries(arg2);
14934
14935 wxPyEndAllowThreads(__tstate);
14936 if (PyErr_Occurred()) SWIG_fail;
14937 }
14938 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
14939 return resultobj;
14940 fail:
14941 return NULL;
14942 }
14943
14944
14945 static PyObject *_wrap_ConfigBase_GetNumberOfGroups(PyObject *self, PyObject *args, PyObject *kwargs) {
14946 PyObject *resultobj;
14947 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14948 bool arg2 = (bool) False ;
14949 size_t result;
14950 PyObject * obj0 = 0 ;
14951 PyObject * obj1 = 0 ;
14952 char *kwnames[] = {
14953 (char *) "self",(char *) "recursive", NULL
14954 };
14955
14956 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_GetNumberOfGroups",kwnames,&obj0,&obj1)) goto fail;
14957 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14958 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14959 if (obj1) {
14960 arg2 = (bool) SWIG_AsBool(obj1);
14961 if (PyErr_Occurred()) SWIG_fail;
14962 }
14963 {
14964 PyThreadState* __tstate = wxPyBeginAllowThreads();
14965 result = (size_t)((wxConfigBase const *)arg1)->GetNumberOfGroups(arg2);
14966
14967 wxPyEndAllowThreads(__tstate);
14968 if (PyErr_Occurred()) SWIG_fail;
14969 }
14970 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
14971 return resultobj;
14972 fail:
14973 return NULL;
14974 }
14975
14976
14977 static PyObject *_wrap_ConfigBase_HasGroup(PyObject *self, PyObject *args, PyObject *kwargs) {
14978 PyObject *resultobj;
14979 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14980 wxString *arg2 = 0 ;
14981 bool result;
14982 bool temp2 = False ;
14983 PyObject * obj0 = 0 ;
14984 PyObject * obj1 = 0 ;
14985 char *kwnames[] = {
14986 (char *) "self",(char *) "name", NULL
14987 };
14988
14989 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_HasGroup",kwnames,&obj0,&obj1)) goto fail;
14990 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14991 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14992 {
14993 arg2 = wxString_in_helper(obj1);
14994 if (arg2 == NULL) SWIG_fail;
14995 temp2 = True;
14996 }
14997 {
14998 PyThreadState* __tstate = wxPyBeginAllowThreads();
14999 result = (bool)((wxConfigBase const *)arg1)->HasGroup((wxString const &)*arg2);
15000
15001 wxPyEndAllowThreads(__tstate);
15002 if (PyErr_Occurred()) SWIG_fail;
15003 }
15004 {
15005 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15006 }
15007 {
15008 if (temp2)
15009 delete arg2;
15010 }
15011 return resultobj;
15012 fail:
15013 {
15014 if (temp2)
15015 delete arg2;
15016 }
15017 return NULL;
15018 }
15019
15020
15021 static PyObject *_wrap_ConfigBase_HasEntry(PyObject *self, PyObject *args, PyObject *kwargs) {
15022 PyObject *resultobj;
15023 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15024 wxString *arg2 = 0 ;
15025 bool result;
15026 bool temp2 = False ;
15027 PyObject * obj0 = 0 ;
15028 PyObject * obj1 = 0 ;
15029 char *kwnames[] = {
15030 (char *) "self",(char *) "name", NULL
15031 };
15032
15033 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_HasEntry",kwnames,&obj0,&obj1)) goto fail;
15034 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15035 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15036 {
15037 arg2 = wxString_in_helper(obj1);
15038 if (arg2 == NULL) SWIG_fail;
15039 temp2 = True;
15040 }
15041 {
15042 PyThreadState* __tstate = wxPyBeginAllowThreads();
15043 result = (bool)((wxConfigBase const *)arg1)->HasEntry((wxString const &)*arg2);
15044
15045 wxPyEndAllowThreads(__tstate);
15046 if (PyErr_Occurred()) SWIG_fail;
15047 }
15048 {
15049 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15050 }
15051 {
15052 if (temp2)
15053 delete arg2;
15054 }
15055 return resultobj;
15056 fail:
15057 {
15058 if (temp2)
15059 delete arg2;
15060 }
15061 return NULL;
15062 }
15063
15064
15065 static PyObject *_wrap_ConfigBase_Exists(PyObject *self, PyObject *args, PyObject *kwargs) {
15066 PyObject *resultobj;
15067 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15068 wxString *arg2 = 0 ;
15069 bool result;
15070 bool temp2 = False ;
15071 PyObject * obj0 = 0 ;
15072 PyObject * obj1 = 0 ;
15073 char *kwnames[] = {
15074 (char *) "self",(char *) "name", NULL
15075 };
15076
15077 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_Exists",kwnames,&obj0,&obj1)) goto fail;
15078 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15079 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15080 {
15081 arg2 = wxString_in_helper(obj1);
15082 if (arg2 == NULL) SWIG_fail;
15083 temp2 = True;
15084 }
15085 {
15086 PyThreadState* __tstate = wxPyBeginAllowThreads();
15087 result = (bool)((wxConfigBase const *)arg1)->Exists((wxString const &)*arg2);
15088
15089 wxPyEndAllowThreads(__tstate);
15090 if (PyErr_Occurred()) SWIG_fail;
15091 }
15092 {
15093 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15094 }
15095 {
15096 if (temp2)
15097 delete arg2;
15098 }
15099 return resultobj;
15100 fail:
15101 {
15102 if (temp2)
15103 delete arg2;
15104 }
15105 return NULL;
15106 }
15107
15108
15109 static PyObject *_wrap_ConfigBase_GetEntryType(PyObject *self, PyObject *args, PyObject *kwargs) {
15110 PyObject *resultobj;
15111 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15112 wxString *arg2 = 0 ;
15113 int result;
15114 bool temp2 = False ;
15115 PyObject * obj0 = 0 ;
15116 PyObject * obj1 = 0 ;
15117 char *kwnames[] = {
15118 (char *) "self",(char *) "name", NULL
15119 };
15120
15121 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetEntryType",kwnames,&obj0,&obj1)) goto fail;
15122 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15123 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15124 {
15125 arg2 = wxString_in_helper(obj1);
15126 if (arg2 == NULL) SWIG_fail;
15127 temp2 = True;
15128 }
15129 {
15130 PyThreadState* __tstate = wxPyBeginAllowThreads();
15131 result = (int)((wxConfigBase const *)arg1)->GetEntryType((wxString const &)*arg2);
15132
15133 wxPyEndAllowThreads(__tstate);
15134 if (PyErr_Occurred()) SWIG_fail;
15135 }
15136 resultobj = SWIG_FromInt((int)result);
15137 {
15138 if (temp2)
15139 delete arg2;
15140 }
15141 return resultobj;
15142 fail:
15143 {
15144 if (temp2)
15145 delete arg2;
15146 }
15147 return NULL;
15148 }
15149
15150
15151 static PyObject *_wrap_ConfigBase_Read(PyObject *self, PyObject *args, PyObject *kwargs) {
15152 PyObject *resultobj;
15153 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15154 wxString *arg2 = 0 ;
15155 wxString const &arg3_defvalue = wxPyEmptyString ;
15156 wxString *arg3 = (wxString *) &arg3_defvalue ;
15157 wxString result;
15158 bool temp2 = False ;
15159 bool temp3 = False ;
15160 PyObject * obj0 = 0 ;
15161 PyObject * obj1 = 0 ;
15162 PyObject * obj2 = 0 ;
15163 char *kwnames[] = {
15164 (char *) "self",(char *) "key",(char *) "defaultVal", NULL
15165 };
15166
15167 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_Read",kwnames,&obj0,&obj1,&obj2)) goto fail;
15168 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15169 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15170 {
15171 arg2 = wxString_in_helper(obj1);
15172 if (arg2 == NULL) SWIG_fail;
15173 temp2 = True;
15174 }
15175 if (obj2) {
15176 {
15177 arg3 = wxString_in_helper(obj2);
15178 if (arg3 == NULL) SWIG_fail;
15179 temp3 = True;
15180 }
15181 }
15182 {
15183 PyThreadState* __tstate = wxPyBeginAllowThreads();
15184 result = (arg1)->Read((wxString const &)*arg2,(wxString const &)*arg3);
15185
15186 wxPyEndAllowThreads(__tstate);
15187 if (PyErr_Occurred()) SWIG_fail;
15188 }
15189 {
15190 #if wxUSE_UNICODE
15191 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15192 #else
15193 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15194 #endif
15195 }
15196 {
15197 if (temp2)
15198 delete arg2;
15199 }
15200 {
15201 if (temp3)
15202 delete arg3;
15203 }
15204 return resultobj;
15205 fail:
15206 {
15207 if (temp2)
15208 delete arg2;
15209 }
15210 {
15211 if (temp3)
15212 delete arg3;
15213 }
15214 return NULL;
15215 }
15216
15217
15218 static PyObject *_wrap_ConfigBase_ReadInt(PyObject *self, PyObject *args, PyObject *kwargs) {
15219 PyObject *resultobj;
15220 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15221 wxString *arg2 = 0 ;
15222 long arg3 = (long) 0 ;
15223 long result;
15224 bool temp2 = False ;
15225 PyObject * obj0 = 0 ;
15226 PyObject * obj1 = 0 ;
15227 PyObject * obj2 = 0 ;
15228 char *kwnames[] = {
15229 (char *) "self",(char *) "key",(char *) "defaultVal", NULL
15230 };
15231
15232 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadInt",kwnames,&obj0,&obj1,&obj2)) goto fail;
15233 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15234 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15235 {
15236 arg2 = wxString_in_helper(obj1);
15237 if (arg2 == NULL) SWIG_fail;
15238 temp2 = True;
15239 }
15240 if (obj2) {
15241 arg3 = (long) SWIG_AsLong(obj2);
15242 if (PyErr_Occurred()) SWIG_fail;
15243 }
15244 {
15245 PyThreadState* __tstate = wxPyBeginAllowThreads();
15246 result = (long)wxConfigBase_ReadInt(arg1,(wxString const &)*arg2,arg3);
15247
15248 wxPyEndAllowThreads(__tstate);
15249 if (PyErr_Occurred()) SWIG_fail;
15250 }
15251 resultobj = SWIG_FromLong((long)result);
15252 {
15253 if (temp2)
15254 delete arg2;
15255 }
15256 return resultobj;
15257 fail:
15258 {
15259 if (temp2)
15260 delete arg2;
15261 }
15262 return NULL;
15263 }
15264
15265
15266 static PyObject *_wrap_ConfigBase_ReadFloat(PyObject *self, PyObject *args, PyObject *kwargs) {
15267 PyObject *resultobj;
15268 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15269 wxString *arg2 = 0 ;
15270 double arg3 = (double) 0.0 ;
15271 double result;
15272 bool temp2 = False ;
15273 PyObject * obj0 = 0 ;
15274 PyObject * obj1 = 0 ;
15275 PyObject * obj2 = 0 ;
15276 char *kwnames[] = {
15277 (char *) "self",(char *) "key",(char *) "defaultVal", NULL
15278 };
15279
15280 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadFloat",kwnames,&obj0,&obj1,&obj2)) goto fail;
15281 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15282 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15283 {
15284 arg2 = wxString_in_helper(obj1);
15285 if (arg2 == NULL) SWIG_fail;
15286 temp2 = True;
15287 }
15288 if (obj2) {
15289 arg3 = (double) SWIG_AsDouble(obj2);
15290 if (PyErr_Occurred()) SWIG_fail;
15291 }
15292 {
15293 PyThreadState* __tstate = wxPyBeginAllowThreads();
15294 result = (double)wxConfigBase_ReadFloat(arg1,(wxString const &)*arg2,arg3);
15295
15296 wxPyEndAllowThreads(__tstate);
15297 if (PyErr_Occurred()) SWIG_fail;
15298 }
15299 resultobj = SWIG_FromDouble((double)result);
15300 {
15301 if (temp2)
15302 delete arg2;
15303 }
15304 return resultobj;
15305 fail:
15306 {
15307 if (temp2)
15308 delete arg2;
15309 }
15310 return NULL;
15311 }
15312
15313
15314 static PyObject *_wrap_ConfigBase_ReadBool(PyObject *self, PyObject *args, PyObject *kwargs) {
15315 PyObject *resultobj;
15316 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15317 wxString *arg2 = 0 ;
15318 bool arg3 = (bool) False ;
15319 bool result;
15320 bool temp2 = False ;
15321 PyObject * obj0 = 0 ;
15322 PyObject * obj1 = 0 ;
15323 PyObject * obj2 = 0 ;
15324 char *kwnames[] = {
15325 (char *) "self",(char *) "key",(char *) "defaultVal", NULL
15326 };
15327
15328 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadBool",kwnames,&obj0,&obj1,&obj2)) goto fail;
15329 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15330 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15331 {
15332 arg2 = wxString_in_helper(obj1);
15333 if (arg2 == NULL) SWIG_fail;
15334 temp2 = True;
15335 }
15336 if (obj2) {
15337 arg3 = (bool) SWIG_AsBool(obj2);
15338 if (PyErr_Occurred()) SWIG_fail;
15339 }
15340 {
15341 PyThreadState* __tstate = wxPyBeginAllowThreads();
15342 result = (bool)wxConfigBase_ReadBool(arg1,(wxString const &)*arg2,arg3);
15343
15344 wxPyEndAllowThreads(__tstate);
15345 if (PyErr_Occurred()) SWIG_fail;
15346 }
15347 {
15348 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15349 }
15350 {
15351 if (temp2)
15352 delete arg2;
15353 }
15354 return resultobj;
15355 fail:
15356 {
15357 if (temp2)
15358 delete arg2;
15359 }
15360 return NULL;
15361 }
15362
15363
15364 static PyObject *_wrap_ConfigBase_Write(PyObject *self, PyObject *args, PyObject *kwargs) {
15365 PyObject *resultobj;
15366 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15367 wxString *arg2 = 0 ;
15368 wxString *arg3 = 0 ;
15369 bool result;
15370 bool temp2 = False ;
15371 bool temp3 = False ;
15372 PyObject * obj0 = 0 ;
15373 PyObject * obj1 = 0 ;
15374 PyObject * obj2 = 0 ;
15375 char *kwnames[] = {
15376 (char *) "self",(char *) "key",(char *) "value", NULL
15377 };
15378
15379 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_Write",kwnames,&obj0,&obj1,&obj2)) goto fail;
15380 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15381 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15382 {
15383 arg2 = wxString_in_helper(obj1);
15384 if (arg2 == NULL) SWIG_fail;
15385 temp2 = True;
15386 }
15387 {
15388 arg3 = wxString_in_helper(obj2);
15389 if (arg3 == NULL) SWIG_fail;
15390 temp3 = True;
15391 }
15392 {
15393 PyThreadState* __tstate = wxPyBeginAllowThreads();
15394 result = (bool)(arg1)->Write((wxString const &)*arg2,(wxString const &)*arg3);
15395
15396 wxPyEndAllowThreads(__tstate);
15397 if (PyErr_Occurred()) SWIG_fail;
15398 }
15399 {
15400 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15401 }
15402 {
15403 if (temp2)
15404 delete arg2;
15405 }
15406 {
15407 if (temp3)
15408 delete arg3;
15409 }
15410 return resultobj;
15411 fail:
15412 {
15413 if (temp2)
15414 delete arg2;
15415 }
15416 {
15417 if (temp3)
15418 delete arg3;
15419 }
15420 return NULL;
15421 }
15422
15423
15424 static PyObject *_wrap_ConfigBase_WriteInt(PyObject *self, PyObject *args, PyObject *kwargs) {
15425 PyObject *resultobj;
15426 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15427 wxString *arg2 = 0 ;
15428 long arg3 ;
15429 bool result;
15430 bool temp2 = False ;
15431 PyObject * obj0 = 0 ;
15432 PyObject * obj1 = 0 ;
15433 PyObject * obj2 = 0 ;
15434 char *kwnames[] = {
15435 (char *) "self",(char *) "key",(char *) "value", NULL
15436 };
15437
15438 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteInt",kwnames,&obj0,&obj1,&obj2)) goto fail;
15439 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15440 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15441 {
15442 arg2 = wxString_in_helper(obj1);
15443 if (arg2 == NULL) SWIG_fail;
15444 temp2 = True;
15445 }
15446 arg3 = (long) SWIG_AsLong(obj2);
15447 if (PyErr_Occurred()) SWIG_fail;
15448 {
15449 PyThreadState* __tstate = wxPyBeginAllowThreads();
15450 result = (bool)(arg1)->Write((wxString const &)*arg2,arg3);
15451
15452 wxPyEndAllowThreads(__tstate);
15453 if (PyErr_Occurred()) SWIG_fail;
15454 }
15455 {
15456 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15457 }
15458 {
15459 if (temp2)
15460 delete arg2;
15461 }
15462 return resultobj;
15463 fail:
15464 {
15465 if (temp2)
15466 delete arg2;
15467 }
15468 return NULL;
15469 }
15470
15471
15472 static PyObject *_wrap_ConfigBase_WriteFloat(PyObject *self, PyObject *args, PyObject *kwargs) {
15473 PyObject *resultobj;
15474 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15475 wxString *arg2 = 0 ;
15476 double arg3 ;
15477 bool result;
15478 bool temp2 = False ;
15479 PyObject * obj0 = 0 ;
15480 PyObject * obj1 = 0 ;
15481 PyObject * obj2 = 0 ;
15482 char *kwnames[] = {
15483 (char *) "self",(char *) "key",(char *) "value", NULL
15484 };
15485
15486 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteFloat",kwnames,&obj0,&obj1,&obj2)) goto fail;
15487 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15488 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15489 {
15490 arg2 = wxString_in_helper(obj1);
15491 if (arg2 == NULL) SWIG_fail;
15492 temp2 = True;
15493 }
15494 arg3 = (double) SWIG_AsDouble(obj2);
15495 if (PyErr_Occurred()) SWIG_fail;
15496 {
15497 PyThreadState* __tstate = wxPyBeginAllowThreads();
15498 result = (bool)(arg1)->Write((wxString const &)*arg2,arg3);
15499
15500 wxPyEndAllowThreads(__tstate);
15501 if (PyErr_Occurred()) SWIG_fail;
15502 }
15503 {
15504 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15505 }
15506 {
15507 if (temp2)
15508 delete arg2;
15509 }
15510 return resultobj;
15511 fail:
15512 {
15513 if (temp2)
15514 delete arg2;
15515 }
15516 return NULL;
15517 }
15518
15519
15520 static PyObject *_wrap_ConfigBase_WriteBool(PyObject *self, PyObject *args, PyObject *kwargs) {
15521 PyObject *resultobj;
15522 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15523 wxString *arg2 = 0 ;
15524 bool arg3 ;
15525 bool result;
15526 bool temp2 = False ;
15527 PyObject * obj0 = 0 ;
15528 PyObject * obj1 = 0 ;
15529 PyObject * obj2 = 0 ;
15530 char *kwnames[] = {
15531 (char *) "self",(char *) "key",(char *) "value", NULL
15532 };
15533
15534 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteBool",kwnames,&obj0,&obj1,&obj2)) goto fail;
15535 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15536 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15537 {
15538 arg2 = wxString_in_helper(obj1);
15539 if (arg2 == NULL) SWIG_fail;
15540 temp2 = True;
15541 }
15542 arg3 = (bool) SWIG_AsBool(obj2);
15543 if (PyErr_Occurred()) SWIG_fail;
15544 {
15545 PyThreadState* __tstate = wxPyBeginAllowThreads();
15546 result = (bool)(arg1)->Write((wxString const &)*arg2,arg3);
15547
15548 wxPyEndAllowThreads(__tstate);
15549 if (PyErr_Occurred()) SWIG_fail;
15550 }
15551 {
15552 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15553 }
15554 {
15555 if (temp2)
15556 delete arg2;
15557 }
15558 return resultobj;
15559 fail:
15560 {
15561 if (temp2)
15562 delete arg2;
15563 }
15564 return NULL;
15565 }
15566
15567
15568 static PyObject *_wrap_ConfigBase_Flush(PyObject *self, PyObject *args, PyObject *kwargs) {
15569 PyObject *resultobj;
15570 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15571 bool arg2 = (bool) False ;
15572 bool result;
15573 PyObject * obj0 = 0 ;
15574 PyObject * obj1 = 0 ;
15575 char *kwnames[] = {
15576 (char *) "self",(char *) "currentOnly", NULL
15577 };
15578
15579 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_Flush",kwnames,&obj0,&obj1)) goto fail;
15580 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15581 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15582 if (obj1) {
15583 arg2 = (bool) SWIG_AsBool(obj1);
15584 if (PyErr_Occurred()) SWIG_fail;
15585 }
15586 {
15587 PyThreadState* __tstate = wxPyBeginAllowThreads();
15588 result = (bool)(arg1)->Flush(arg2);
15589
15590 wxPyEndAllowThreads(__tstate);
15591 if (PyErr_Occurred()) SWIG_fail;
15592 }
15593 {
15594 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15595 }
15596 return resultobj;
15597 fail:
15598 return NULL;
15599 }
15600
15601
15602 static PyObject *_wrap_ConfigBase_RenameEntry(PyObject *self, PyObject *args, PyObject *kwargs) {
15603 PyObject *resultobj;
15604 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15605 wxString *arg2 = 0 ;
15606 wxString *arg3 = 0 ;
15607 bool result;
15608 bool temp2 = False ;
15609 bool temp3 = False ;
15610 PyObject * obj0 = 0 ;
15611 PyObject * obj1 = 0 ;
15612 PyObject * obj2 = 0 ;
15613 char *kwnames[] = {
15614 (char *) "self",(char *) "oldName",(char *) "newName", NULL
15615 };
15616
15617 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_RenameEntry",kwnames,&obj0,&obj1,&obj2)) goto fail;
15618 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15619 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15620 {
15621 arg2 = wxString_in_helper(obj1);
15622 if (arg2 == NULL) SWIG_fail;
15623 temp2 = True;
15624 }
15625 {
15626 arg3 = wxString_in_helper(obj2);
15627 if (arg3 == NULL) SWIG_fail;
15628 temp3 = True;
15629 }
15630 {
15631 PyThreadState* __tstate = wxPyBeginAllowThreads();
15632 result = (bool)(arg1)->RenameEntry((wxString const &)*arg2,(wxString const &)*arg3);
15633
15634 wxPyEndAllowThreads(__tstate);
15635 if (PyErr_Occurred()) SWIG_fail;
15636 }
15637 {
15638 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15639 }
15640 {
15641 if (temp2)
15642 delete arg2;
15643 }
15644 {
15645 if (temp3)
15646 delete arg3;
15647 }
15648 return resultobj;
15649 fail:
15650 {
15651 if (temp2)
15652 delete arg2;
15653 }
15654 {
15655 if (temp3)
15656 delete arg3;
15657 }
15658 return NULL;
15659 }
15660
15661
15662 static PyObject *_wrap_ConfigBase_RenameGroup(PyObject *self, PyObject *args, PyObject *kwargs) {
15663 PyObject *resultobj;
15664 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15665 wxString *arg2 = 0 ;
15666 wxString *arg3 = 0 ;
15667 bool result;
15668 bool temp2 = False ;
15669 bool temp3 = False ;
15670 PyObject * obj0 = 0 ;
15671 PyObject * obj1 = 0 ;
15672 PyObject * obj2 = 0 ;
15673 char *kwnames[] = {
15674 (char *) "self",(char *) "oldName",(char *) "newName", NULL
15675 };
15676
15677 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_RenameGroup",kwnames,&obj0,&obj1,&obj2)) goto fail;
15678 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15679 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15680 {
15681 arg2 = wxString_in_helper(obj1);
15682 if (arg2 == NULL) SWIG_fail;
15683 temp2 = True;
15684 }
15685 {
15686 arg3 = wxString_in_helper(obj2);
15687 if (arg3 == NULL) SWIG_fail;
15688 temp3 = True;
15689 }
15690 {
15691 PyThreadState* __tstate = wxPyBeginAllowThreads();
15692 result = (bool)(arg1)->RenameGroup((wxString const &)*arg2,(wxString const &)*arg3);
15693
15694 wxPyEndAllowThreads(__tstate);
15695 if (PyErr_Occurred()) SWIG_fail;
15696 }
15697 {
15698 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15699 }
15700 {
15701 if (temp2)
15702 delete arg2;
15703 }
15704 {
15705 if (temp3)
15706 delete arg3;
15707 }
15708 return resultobj;
15709 fail:
15710 {
15711 if (temp2)
15712 delete arg2;
15713 }
15714 {
15715 if (temp3)
15716 delete arg3;
15717 }
15718 return NULL;
15719 }
15720
15721
15722 static PyObject *_wrap_ConfigBase_DeleteEntry(PyObject *self, PyObject *args, PyObject *kwargs) {
15723 PyObject *resultobj;
15724 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15725 wxString *arg2 = 0 ;
15726 bool arg3 = (bool) True ;
15727 bool result;
15728 bool temp2 = False ;
15729 PyObject * obj0 = 0 ;
15730 PyObject * obj1 = 0 ;
15731 PyObject * obj2 = 0 ;
15732 char *kwnames[] = {
15733 (char *) "self",(char *) "key",(char *) "deleteGroupIfEmpty", NULL
15734 };
15735
15736 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_DeleteEntry",kwnames,&obj0,&obj1,&obj2)) goto fail;
15737 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15738 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15739 {
15740 arg2 = wxString_in_helper(obj1);
15741 if (arg2 == NULL) SWIG_fail;
15742 temp2 = True;
15743 }
15744 if (obj2) {
15745 arg3 = (bool) SWIG_AsBool(obj2);
15746 if (PyErr_Occurred()) SWIG_fail;
15747 }
15748 {
15749 PyThreadState* __tstate = wxPyBeginAllowThreads();
15750 result = (bool)(arg1)->DeleteEntry((wxString const &)*arg2,arg3);
15751
15752 wxPyEndAllowThreads(__tstate);
15753 if (PyErr_Occurred()) SWIG_fail;
15754 }
15755 {
15756 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15757 }
15758 {
15759 if (temp2)
15760 delete arg2;
15761 }
15762 return resultobj;
15763 fail:
15764 {
15765 if (temp2)
15766 delete arg2;
15767 }
15768 return NULL;
15769 }
15770
15771
15772 static PyObject *_wrap_ConfigBase_DeleteGroup(PyObject *self, PyObject *args, PyObject *kwargs) {
15773 PyObject *resultobj;
15774 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15775 wxString *arg2 = 0 ;
15776 bool result;
15777 bool temp2 = False ;
15778 PyObject * obj0 = 0 ;
15779 PyObject * obj1 = 0 ;
15780 char *kwnames[] = {
15781 (char *) "self",(char *) "key", NULL
15782 };
15783
15784 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_DeleteGroup",kwnames,&obj0,&obj1)) goto fail;
15785 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15786 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15787 {
15788 arg2 = wxString_in_helper(obj1);
15789 if (arg2 == NULL) SWIG_fail;
15790 temp2 = True;
15791 }
15792 {
15793 PyThreadState* __tstate = wxPyBeginAllowThreads();
15794 result = (bool)(arg1)->DeleteGroup((wxString const &)*arg2);
15795
15796 wxPyEndAllowThreads(__tstate);
15797 if (PyErr_Occurred()) SWIG_fail;
15798 }
15799 {
15800 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15801 }
15802 {
15803 if (temp2)
15804 delete arg2;
15805 }
15806 return resultobj;
15807 fail:
15808 {
15809 if (temp2)
15810 delete arg2;
15811 }
15812 return NULL;
15813 }
15814
15815
15816 static PyObject *_wrap_ConfigBase_DeleteAll(PyObject *self, PyObject *args, PyObject *kwargs) {
15817 PyObject *resultobj;
15818 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15819 bool result;
15820 PyObject * obj0 = 0 ;
15821 char *kwnames[] = {
15822 (char *) "self", NULL
15823 };
15824
15825 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_DeleteAll",kwnames,&obj0)) goto fail;
15826 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15827 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15828 {
15829 PyThreadState* __tstate = wxPyBeginAllowThreads();
15830 result = (bool)(arg1)->DeleteAll();
15831
15832 wxPyEndAllowThreads(__tstate);
15833 if (PyErr_Occurred()) SWIG_fail;
15834 }
15835 {
15836 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15837 }
15838 return resultobj;
15839 fail:
15840 return NULL;
15841 }
15842
15843
15844 static PyObject *_wrap_ConfigBase_SetExpandEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) {
15845 PyObject *resultobj;
15846 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15847 bool arg2 = (bool) True ;
15848 PyObject * obj0 = 0 ;
15849 PyObject * obj1 = 0 ;
15850 char *kwnames[] = {
15851 (char *) "self",(char *) "doIt", NULL
15852 };
15853
15854 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_SetExpandEnvVars",kwnames,&obj0,&obj1)) goto fail;
15855 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15856 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15857 if (obj1) {
15858 arg2 = (bool) SWIG_AsBool(obj1);
15859 if (PyErr_Occurred()) SWIG_fail;
15860 }
15861 {
15862 PyThreadState* __tstate = wxPyBeginAllowThreads();
15863 (arg1)->SetExpandEnvVars(arg2);
15864
15865 wxPyEndAllowThreads(__tstate);
15866 if (PyErr_Occurred()) SWIG_fail;
15867 }
15868 Py_INCREF(Py_None); resultobj = Py_None;
15869 return resultobj;
15870 fail:
15871 return NULL;
15872 }
15873
15874
15875 static PyObject *_wrap_ConfigBase_IsExpandingEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) {
15876 PyObject *resultobj;
15877 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15878 bool result;
15879 PyObject * obj0 = 0 ;
15880 char *kwnames[] = {
15881 (char *) "self", NULL
15882 };
15883
15884 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_IsExpandingEnvVars",kwnames,&obj0)) goto fail;
15885 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15886 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15887 {
15888 PyThreadState* __tstate = wxPyBeginAllowThreads();
15889 result = (bool)((wxConfigBase const *)arg1)->IsExpandingEnvVars();
15890
15891 wxPyEndAllowThreads(__tstate);
15892 if (PyErr_Occurred()) SWIG_fail;
15893 }
15894 {
15895 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15896 }
15897 return resultobj;
15898 fail:
15899 return NULL;
15900 }
15901
15902
15903 static PyObject *_wrap_ConfigBase_SetRecordDefaults(PyObject *self, PyObject *args, PyObject *kwargs) {
15904 PyObject *resultobj;
15905 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15906 bool arg2 = (bool) True ;
15907 PyObject * obj0 = 0 ;
15908 PyObject * obj1 = 0 ;
15909 char *kwnames[] = {
15910 (char *) "self",(char *) "doIt", NULL
15911 };
15912
15913 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_SetRecordDefaults",kwnames,&obj0,&obj1)) goto fail;
15914 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15915 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15916 if (obj1) {
15917 arg2 = (bool) SWIG_AsBool(obj1);
15918 if (PyErr_Occurred()) SWIG_fail;
15919 }
15920 {
15921 PyThreadState* __tstate = wxPyBeginAllowThreads();
15922 (arg1)->SetRecordDefaults(arg2);
15923
15924 wxPyEndAllowThreads(__tstate);
15925 if (PyErr_Occurred()) SWIG_fail;
15926 }
15927 Py_INCREF(Py_None); resultobj = Py_None;
15928 return resultobj;
15929 fail:
15930 return NULL;
15931 }
15932
15933
15934 static PyObject *_wrap_ConfigBase_IsRecordingDefaults(PyObject *self, PyObject *args, PyObject *kwargs) {
15935 PyObject *resultobj;
15936 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15937 bool result;
15938 PyObject * obj0 = 0 ;
15939 char *kwnames[] = {
15940 (char *) "self", NULL
15941 };
15942
15943 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_IsRecordingDefaults",kwnames,&obj0)) goto fail;
15944 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15945 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15946 {
15947 PyThreadState* __tstate = wxPyBeginAllowThreads();
15948 result = (bool)((wxConfigBase const *)arg1)->IsRecordingDefaults();
15949
15950 wxPyEndAllowThreads(__tstate);
15951 if (PyErr_Occurred()) SWIG_fail;
15952 }
15953 {
15954 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15955 }
15956 return resultobj;
15957 fail:
15958 return NULL;
15959 }
15960
15961
15962 static PyObject *_wrap_ConfigBase_ExpandEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) {
15963 PyObject *resultobj;
15964 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15965 wxString *arg2 = 0 ;
15966 wxString result;
15967 bool temp2 = False ;
15968 PyObject * obj0 = 0 ;
15969 PyObject * obj1 = 0 ;
15970 char *kwnames[] = {
15971 (char *) "self",(char *) "str", NULL
15972 };
15973
15974 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_ExpandEnvVars",kwnames,&obj0,&obj1)) goto fail;
15975 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15976 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15977 {
15978 arg2 = wxString_in_helper(obj1);
15979 if (arg2 == NULL) SWIG_fail;
15980 temp2 = True;
15981 }
15982 {
15983 PyThreadState* __tstate = wxPyBeginAllowThreads();
15984 result = ((wxConfigBase const *)arg1)->ExpandEnvVars((wxString const &)*arg2);
15985
15986 wxPyEndAllowThreads(__tstate);
15987 if (PyErr_Occurred()) SWIG_fail;
15988 }
15989 {
15990 #if wxUSE_UNICODE
15991 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15992 #else
15993 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15994 #endif
15995 }
15996 {
15997 if (temp2)
15998 delete arg2;
15999 }
16000 return resultobj;
16001 fail:
16002 {
16003 if (temp2)
16004 delete arg2;
16005 }
16006 return NULL;
16007 }
16008
16009
16010 static PyObject *_wrap_ConfigBase_GetAppName(PyObject *self, PyObject *args, PyObject *kwargs) {
16011 PyObject *resultobj;
16012 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16013 wxString result;
16014 PyObject * obj0 = 0 ;
16015 char *kwnames[] = {
16016 (char *) "self", NULL
16017 };
16018
16019 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetAppName",kwnames,&obj0)) goto fail;
16020 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16021 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16022 {
16023 PyThreadState* __tstate = wxPyBeginAllowThreads();
16024 result = ((wxConfigBase const *)arg1)->GetAppName();
16025
16026 wxPyEndAllowThreads(__tstate);
16027 if (PyErr_Occurred()) SWIG_fail;
16028 }
16029 {
16030 #if wxUSE_UNICODE
16031 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16032 #else
16033 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16034 #endif
16035 }
16036 return resultobj;
16037 fail:
16038 return NULL;
16039 }
16040
16041
16042 static PyObject *_wrap_ConfigBase_GetVendorName(PyObject *self, PyObject *args, PyObject *kwargs) {
16043 PyObject *resultobj;
16044 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16045 wxString result;
16046 PyObject * obj0 = 0 ;
16047 char *kwnames[] = {
16048 (char *) "self", NULL
16049 };
16050
16051 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetVendorName",kwnames,&obj0)) goto fail;
16052 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16053 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16054 {
16055 PyThreadState* __tstate = wxPyBeginAllowThreads();
16056 result = ((wxConfigBase const *)arg1)->GetVendorName();
16057
16058 wxPyEndAllowThreads(__tstate);
16059 if (PyErr_Occurred()) SWIG_fail;
16060 }
16061 {
16062 #if wxUSE_UNICODE
16063 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16064 #else
16065 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16066 #endif
16067 }
16068 return resultobj;
16069 fail:
16070 return NULL;
16071 }
16072
16073
16074 static PyObject *_wrap_ConfigBase_SetAppName(PyObject *self, PyObject *args, PyObject *kwargs) {
16075 PyObject *resultobj;
16076 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16077 wxString *arg2 = 0 ;
16078 bool temp2 = False ;
16079 PyObject * obj0 = 0 ;
16080 PyObject * obj1 = 0 ;
16081 char *kwnames[] = {
16082 (char *) "self",(char *) "appName", NULL
16083 };
16084
16085 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetAppName",kwnames,&obj0,&obj1)) goto fail;
16086 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16087 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16088 {
16089 arg2 = wxString_in_helper(obj1);
16090 if (arg2 == NULL) SWIG_fail;
16091 temp2 = True;
16092 }
16093 {
16094 PyThreadState* __tstate = wxPyBeginAllowThreads();
16095 (arg1)->SetAppName((wxString const &)*arg2);
16096
16097 wxPyEndAllowThreads(__tstate);
16098 if (PyErr_Occurred()) SWIG_fail;
16099 }
16100 Py_INCREF(Py_None); resultobj = Py_None;
16101 {
16102 if (temp2)
16103 delete arg2;
16104 }
16105 return resultobj;
16106 fail:
16107 {
16108 if (temp2)
16109 delete arg2;
16110 }
16111 return NULL;
16112 }
16113
16114
16115 static PyObject *_wrap_ConfigBase_SetVendorName(PyObject *self, PyObject *args, PyObject *kwargs) {
16116 PyObject *resultobj;
16117 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16118 wxString *arg2 = 0 ;
16119 bool temp2 = False ;
16120 PyObject * obj0 = 0 ;
16121 PyObject * obj1 = 0 ;
16122 char *kwnames[] = {
16123 (char *) "self",(char *) "vendorName", NULL
16124 };
16125
16126 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetVendorName",kwnames,&obj0,&obj1)) goto fail;
16127 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16128 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16129 {
16130 arg2 = wxString_in_helper(obj1);
16131 if (arg2 == NULL) SWIG_fail;
16132 temp2 = True;
16133 }
16134 {
16135 PyThreadState* __tstate = wxPyBeginAllowThreads();
16136 (arg1)->SetVendorName((wxString const &)*arg2);
16137
16138 wxPyEndAllowThreads(__tstate);
16139 if (PyErr_Occurred()) SWIG_fail;
16140 }
16141 Py_INCREF(Py_None); resultobj = Py_None;
16142 {
16143 if (temp2)
16144 delete arg2;
16145 }
16146 return resultobj;
16147 fail:
16148 {
16149 if (temp2)
16150 delete arg2;
16151 }
16152 return NULL;
16153 }
16154
16155
16156 static PyObject *_wrap_ConfigBase_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
16157 PyObject *resultobj;
16158 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16159 long arg2 ;
16160 PyObject * obj0 = 0 ;
16161 PyObject * obj1 = 0 ;
16162 char *kwnames[] = {
16163 (char *) "self",(char *) "style", NULL
16164 };
16165
16166 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetStyle",kwnames,&obj0,&obj1)) goto fail;
16167 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16168 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16169 arg2 = (long) SWIG_AsLong(obj1);
16170 if (PyErr_Occurred()) SWIG_fail;
16171 {
16172 PyThreadState* __tstate = wxPyBeginAllowThreads();
16173 (arg1)->SetStyle(arg2);
16174
16175 wxPyEndAllowThreads(__tstate);
16176 if (PyErr_Occurred()) SWIG_fail;
16177 }
16178 Py_INCREF(Py_None); resultobj = Py_None;
16179 return resultobj;
16180 fail:
16181 return NULL;
16182 }
16183
16184
16185 static PyObject *_wrap_ConfigBase_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
16186 PyObject *resultobj;
16187 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16188 long result;
16189 PyObject * obj0 = 0 ;
16190 char *kwnames[] = {
16191 (char *) "self", NULL
16192 };
16193
16194 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetStyle",kwnames,&obj0)) goto fail;
16195 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16196 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16197 {
16198 PyThreadState* __tstate = wxPyBeginAllowThreads();
16199 result = (long)((wxConfigBase const *)arg1)->GetStyle();
16200
16201 wxPyEndAllowThreads(__tstate);
16202 if (PyErr_Occurred()) SWIG_fail;
16203 }
16204 resultobj = SWIG_FromLong((long)result);
16205 return resultobj;
16206 fail:
16207 return NULL;
16208 }
16209
16210
16211 static PyObject * ConfigBase_swigregister(PyObject *self, PyObject *args) {
16212 PyObject *obj;
16213 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16214 SWIG_TypeClientData(SWIGTYPE_p_wxConfigBase, obj);
16215 Py_INCREF(obj);
16216 return Py_BuildValue((char *)"");
16217 }
16218 static PyObject *_wrap_new_Config(PyObject *self, PyObject *args, PyObject *kwargs) {
16219 PyObject *resultobj;
16220 wxString const &arg1_defvalue = wxPyEmptyString ;
16221 wxString *arg1 = (wxString *) &arg1_defvalue ;
16222 wxString const &arg2_defvalue = wxPyEmptyString ;
16223 wxString *arg2 = (wxString *) &arg2_defvalue ;
16224 wxString const &arg3_defvalue = wxPyEmptyString ;
16225 wxString *arg3 = (wxString *) &arg3_defvalue ;
16226 wxString const &arg4_defvalue = wxPyEmptyString ;
16227 wxString *arg4 = (wxString *) &arg4_defvalue ;
16228 long arg5 = (long) wxCONFIG_USE_LOCAL_FILE|wxCONFIG_USE_GLOBAL_FILE ;
16229 wxConfig *result;
16230 bool temp1 = False ;
16231 bool temp2 = False ;
16232 bool temp3 = False ;
16233 bool temp4 = False ;
16234 PyObject * obj0 = 0 ;
16235 PyObject * obj1 = 0 ;
16236 PyObject * obj2 = 0 ;
16237 PyObject * obj3 = 0 ;
16238 PyObject * obj4 = 0 ;
16239 char *kwnames[] = {
16240 (char *) "appName",(char *) "vendorName",(char *) "localFilename",(char *) "globalFilename",(char *) "style", NULL
16241 };
16242
16243 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:new_Config",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
16244 if (obj0) {
16245 {
16246 arg1 = wxString_in_helper(obj0);
16247 if (arg1 == NULL) SWIG_fail;
16248 temp1 = True;
16249 }
16250 }
16251 if (obj1) {
16252 {
16253 arg2 = wxString_in_helper(obj1);
16254 if (arg2 == NULL) SWIG_fail;
16255 temp2 = True;
16256 }
16257 }
16258 if (obj2) {
16259 {
16260 arg3 = wxString_in_helper(obj2);
16261 if (arg3 == NULL) SWIG_fail;
16262 temp3 = True;
16263 }
16264 }
16265 if (obj3) {
16266 {
16267 arg4 = wxString_in_helper(obj3);
16268 if (arg4 == NULL) SWIG_fail;
16269 temp4 = True;
16270 }
16271 }
16272 if (obj4) {
16273 arg5 = (long) SWIG_AsLong(obj4);
16274 if (PyErr_Occurred()) SWIG_fail;
16275 }
16276 {
16277 PyThreadState* __tstate = wxPyBeginAllowThreads();
16278 result = (wxConfig *)new wxConfig((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5);
16279
16280 wxPyEndAllowThreads(__tstate);
16281 if (PyErr_Occurred()) SWIG_fail;
16282 }
16283 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfig, 1);
16284 {
16285 if (temp1)
16286 delete arg1;
16287 }
16288 {
16289 if (temp2)
16290 delete arg2;
16291 }
16292 {
16293 if (temp3)
16294 delete arg3;
16295 }
16296 {
16297 if (temp4)
16298 delete arg4;
16299 }
16300 return resultobj;
16301 fail:
16302 {
16303 if (temp1)
16304 delete arg1;
16305 }
16306 {
16307 if (temp2)
16308 delete arg2;
16309 }
16310 {
16311 if (temp3)
16312 delete arg3;
16313 }
16314 {
16315 if (temp4)
16316 delete arg4;
16317 }
16318 return NULL;
16319 }
16320
16321
16322 static PyObject *_wrap_delete_Config(PyObject *self, PyObject *args, PyObject *kwargs) {
16323 PyObject *resultobj;
16324 wxConfig *arg1 = (wxConfig *) 0 ;
16325 PyObject * obj0 = 0 ;
16326 char *kwnames[] = {
16327 (char *) "self", NULL
16328 };
16329
16330 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Config",kwnames,&obj0)) goto fail;
16331 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfig,
16332 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16333 {
16334 PyThreadState* __tstate = wxPyBeginAllowThreads();
16335 delete arg1;
16336
16337 wxPyEndAllowThreads(__tstate);
16338 if (PyErr_Occurred()) SWIG_fail;
16339 }
16340 Py_INCREF(Py_None); resultobj = Py_None;
16341 return resultobj;
16342 fail:
16343 return NULL;
16344 }
16345
16346
16347 static PyObject * Config_swigregister(PyObject *self, PyObject *args) {
16348 PyObject *obj;
16349 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16350 SWIG_TypeClientData(SWIGTYPE_p_wxConfig, obj);
16351 Py_INCREF(obj);
16352 return Py_BuildValue((char *)"");
16353 }
16354 static PyObject *_wrap_new_FileConfig(PyObject *self, PyObject *args, PyObject *kwargs) {
16355 PyObject *resultobj;
16356 wxString const &arg1_defvalue = wxPyEmptyString ;
16357 wxString *arg1 = (wxString *) &arg1_defvalue ;
16358 wxString const &arg2_defvalue = wxPyEmptyString ;
16359 wxString *arg2 = (wxString *) &arg2_defvalue ;
16360 wxString const &arg3_defvalue = wxPyEmptyString ;
16361 wxString *arg3 = (wxString *) &arg3_defvalue ;
16362 wxString const &arg4_defvalue = wxPyEmptyString ;
16363 wxString *arg4 = (wxString *) &arg4_defvalue ;
16364 long arg5 = (long) wxCONFIG_USE_LOCAL_FILE|wxCONFIG_USE_GLOBAL_FILE ;
16365 wxFileConfig *result;
16366 bool temp1 = False ;
16367 bool temp2 = False ;
16368 bool temp3 = False ;
16369 bool temp4 = False ;
16370 PyObject * obj0 = 0 ;
16371 PyObject * obj1 = 0 ;
16372 PyObject * obj2 = 0 ;
16373 PyObject * obj3 = 0 ;
16374 PyObject * obj4 = 0 ;
16375 char *kwnames[] = {
16376 (char *) "appName",(char *) "vendorName",(char *) "localFilename",(char *) "globalFilename",(char *) "style", NULL
16377 };
16378
16379 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:new_FileConfig",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
16380 if (obj0) {
16381 {
16382 arg1 = wxString_in_helper(obj0);
16383 if (arg1 == NULL) SWIG_fail;
16384 temp1 = True;
16385 }
16386 }
16387 if (obj1) {
16388 {
16389 arg2 = wxString_in_helper(obj1);
16390 if (arg2 == NULL) SWIG_fail;
16391 temp2 = True;
16392 }
16393 }
16394 if (obj2) {
16395 {
16396 arg3 = wxString_in_helper(obj2);
16397 if (arg3 == NULL) SWIG_fail;
16398 temp3 = True;
16399 }
16400 }
16401 if (obj3) {
16402 {
16403 arg4 = wxString_in_helper(obj3);
16404 if (arg4 == NULL) SWIG_fail;
16405 temp4 = True;
16406 }
16407 }
16408 if (obj4) {
16409 arg5 = (long) SWIG_AsLong(obj4);
16410 if (PyErr_Occurred()) SWIG_fail;
16411 }
16412 {
16413 PyThreadState* __tstate = wxPyBeginAllowThreads();
16414 result = (wxFileConfig *)new wxFileConfig((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5);
16415
16416 wxPyEndAllowThreads(__tstate);
16417 if (PyErr_Occurred()) SWIG_fail;
16418 }
16419 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileConfig, 1);
16420 {
16421 if (temp1)
16422 delete arg1;
16423 }
16424 {
16425 if (temp2)
16426 delete arg2;
16427 }
16428 {
16429 if (temp3)
16430 delete arg3;
16431 }
16432 {
16433 if (temp4)
16434 delete arg4;
16435 }
16436 return resultobj;
16437 fail:
16438 {
16439 if (temp1)
16440 delete arg1;
16441 }
16442 {
16443 if (temp2)
16444 delete arg2;
16445 }
16446 {
16447 if (temp3)
16448 delete arg3;
16449 }
16450 {
16451 if (temp4)
16452 delete arg4;
16453 }
16454 return NULL;
16455 }
16456
16457
16458 static PyObject *_wrap_delete_FileConfig(PyObject *self, PyObject *args, PyObject *kwargs) {
16459 PyObject *resultobj;
16460 wxFileConfig *arg1 = (wxFileConfig *) 0 ;
16461 PyObject * obj0 = 0 ;
16462 char *kwnames[] = {
16463 (char *) "self", NULL
16464 };
16465
16466 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileConfig",kwnames,&obj0)) goto fail;
16467 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileConfig,
16468 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16469 {
16470 PyThreadState* __tstate = wxPyBeginAllowThreads();
16471 delete arg1;
16472
16473 wxPyEndAllowThreads(__tstate);
16474 if (PyErr_Occurred()) SWIG_fail;
16475 }
16476 Py_INCREF(Py_None); resultobj = Py_None;
16477 return resultobj;
16478 fail:
16479 return NULL;
16480 }
16481
16482
16483 static PyObject * FileConfig_swigregister(PyObject *self, PyObject *args) {
16484 PyObject *obj;
16485 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16486 SWIG_TypeClientData(SWIGTYPE_p_wxFileConfig, obj);
16487 Py_INCREF(obj);
16488 return Py_BuildValue((char *)"");
16489 }
16490 static PyObject *_wrap_new_ConfigPathChanger(PyObject *self, PyObject *args, PyObject *kwargs) {
16491 PyObject *resultobj;
16492 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16493 wxString *arg2 = 0 ;
16494 wxConfigPathChanger *result;
16495 bool temp2 = False ;
16496 PyObject * obj0 = 0 ;
16497 PyObject * obj1 = 0 ;
16498 char *kwnames[] = {
16499 (char *) "config",(char *) "entry", NULL
16500 };
16501
16502 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_ConfigPathChanger",kwnames,&obj0,&obj1)) goto fail;
16503 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16504 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16505 {
16506 arg2 = wxString_in_helper(obj1);
16507 if (arg2 == NULL) SWIG_fail;
16508 temp2 = True;
16509 }
16510 {
16511 PyThreadState* __tstate = wxPyBeginAllowThreads();
16512 result = (wxConfigPathChanger *)new wxConfigPathChanger((wxConfigBase const *)arg1,(wxString const &)*arg2);
16513
16514 wxPyEndAllowThreads(__tstate);
16515 if (PyErr_Occurred()) SWIG_fail;
16516 }
16517 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigPathChanger, 1);
16518 {
16519 if (temp2)
16520 delete arg2;
16521 }
16522 return resultobj;
16523 fail:
16524 {
16525 if (temp2)
16526 delete arg2;
16527 }
16528 return NULL;
16529 }
16530
16531
16532 static PyObject *_wrap_delete_ConfigPathChanger(PyObject *self, PyObject *args, PyObject *kwargs) {
16533 PyObject *resultobj;
16534 wxConfigPathChanger *arg1 = (wxConfigPathChanger *) 0 ;
16535 PyObject * obj0 = 0 ;
16536 char *kwnames[] = {
16537 (char *) "self", NULL
16538 };
16539
16540 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ConfigPathChanger",kwnames,&obj0)) goto fail;
16541 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigPathChanger,
16542 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16543 {
16544 PyThreadState* __tstate = wxPyBeginAllowThreads();
16545 delete arg1;
16546
16547 wxPyEndAllowThreads(__tstate);
16548 if (PyErr_Occurred()) SWIG_fail;
16549 }
16550 Py_INCREF(Py_None); resultobj = Py_None;
16551 return resultobj;
16552 fail:
16553 return NULL;
16554 }
16555
16556
16557 static PyObject *_wrap_ConfigPathChanger_Name(PyObject *self, PyObject *args, PyObject *kwargs) {
16558 PyObject *resultobj;
16559 wxConfigPathChanger *arg1 = (wxConfigPathChanger *) 0 ;
16560 wxString *result;
16561 PyObject * obj0 = 0 ;
16562 char *kwnames[] = {
16563 (char *) "self", NULL
16564 };
16565
16566 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigPathChanger_Name",kwnames,&obj0)) goto fail;
16567 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigPathChanger,
16568 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16569 {
16570 PyThreadState* __tstate = wxPyBeginAllowThreads();
16571 {
16572 wxString const &_result_ref = ((wxConfigPathChanger const *)arg1)->Name();
16573 result = (wxString *) &_result_ref;
16574 }
16575
16576 wxPyEndAllowThreads(__tstate);
16577 if (PyErr_Occurred()) SWIG_fail;
16578 }
16579 {
16580 #if wxUSE_UNICODE
16581 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
16582 #else
16583 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
16584 #endif
16585 }
16586 return resultobj;
16587 fail:
16588 return NULL;
16589 }
16590
16591
16592 static PyObject * ConfigPathChanger_swigregister(PyObject *self, PyObject *args) {
16593 PyObject *obj;
16594 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16595 SWIG_TypeClientData(SWIGTYPE_p_wxConfigPathChanger, obj);
16596 Py_INCREF(obj);
16597 return Py_BuildValue((char *)"");
16598 }
16599 static PyObject *_wrap_ExpandEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) {
16600 PyObject *resultobj;
16601 wxString *arg1 = 0 ;
16602 wxString result;
16603 bool temp1 = False ;
16604 PyObject * obj0 = 0 ;
16605 char *kwnames[] = {
16606 (char *) "sz", NULL
16607 };
16608
16609 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ExpandEnvVars",kwnames,&obj0)) goto fail;
16610 {
16611 arg1 = wxString_in_helper(obj0);
16612 if (arg1 == NULL) SWIG_fail;
16613 temp1 = True;
16614 }
16615 {
16616 PyThreadState* __tstate = wxPyBeginAllowThreads();
16617 result = wxExpandEnvVars((wxString const &)*arg1);
16618
16619 wxPyEndAllowThreads(__tstate);
16620 if (PyErr_Occurred()) SWIG_fail;
16621 }
16622 {
16623 #if wxUSE_UNICODE
16624 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16625 #else
16626 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16627 #endif
16628 }
16629 {
16630 if (temp1)
16631 delete arg1;
16632 }
16633 return resultobj;
16634 fail:
16635 {
16636 if (temp1)
16637 delete arg1;
16638 }
16639 return NULL;
16640 }
16641
16642
16643 static int _wrap_DateFormatStr_set(PyObject *_val) {
16644 PyErr_SetString(PyExc_TypeError,"Variable DateFormatStr is read-only.");
16645 return 1;
16646 }
16647
16648
16649 static PyObject *_wrap_DateFormatStr_get() {
16650 PyObject *pyobj;
16651
16652 {
16653 #if wxUSE_UNICODE
16654 pyobj = PyUnicode_FromWideChar((&wxPyDateFormatStr)->c_str(), (&wxPyDateFormatStr)->Len());
16655 #else
16656 pyobj = PyString_FromStringAndSize((&wxPyDateFormatStr)->c_str(), (&wxPyDateFormatStr)->Len());
16657 #endif
16658 }
16659 return pyobj;
16660 }
16661
16662
16663 static int _wrap_TimeSpanFormatStr_set(PyObject *_val) {
16664 PyErr_SetString(PyExc_TypeError,"Variable TimeSpanFormatStr is read-only.");
16665 return 1;
16666 }
16667
16668
16669 static PyObject *_wrap_TimeSpanFormatStr_get() {
16670 PyObject *pyobj;
16671
16672 {
16673 #if wxUSE_UNICODE
16674 pyobj = PyUnicode_FromWideChar((&wxPyTimeSpanFormatStr)->c_str(), (&wxPyTimeSpanFormatStr)->Len());
16675 #else
16676 pyobj = PyString_FromStringAndSize((&wxPyTimeSpanFormatStr)->c_str(), (&wxPyTimeSpanFormatStr)->Len());
16677 #endif
16678 }
16679 return pyobj;
16680 }
16681
16682
16683 static PyObject *_wrap_DateTime_SetCountry(PyObject *self, PyObject *args, PyObject *kwargs) {
16684 PyObject *resultobj;
16685 int arg1 ;
16686 PyObject * obj0 = 0 ;
16687 char *kwnames[] = {
16688 (char *) "country", NULL
16689 };
16690
16691 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_SetCountry",kwnames,&obj0)) goto fail;
16692 arg1 = (wxDateTime::Country) SWIG_AsInt(obj0);
16693 if (PyErr_Occurred()) SWIG_fail;
16694 {
16695 PyThreadState* __tstate = wxPyBeginAllowThreads();
16696 wxDateTime::SetCountry((wxDateTime::Country )arg1);
16697
16698 wxPyEndAllowThreads(__tstate);
16699 if (PyErr_Occurred()) SWIG_fail;
16700 }
16701 Py_INCREF(Py_None); resultobj = Py_None;
16702 return resultobj;
16703 fail:
16704 return NULL;
16705 }
16706
16707
16708 static PyObject *_wrap_DateTime_GetCountry(PyObject *self, PyObject *args, PyObject *kwargs) {
16709 PyObject *resultobj;
16710 int result;
16711 char *kwnames[] = {
16712 NULL
16713 };
16714
16715 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_GetCountry",kwnames)) goto fail;
16716 {
16717 PyThreadState* __tstate = wxPyBeginAllowThreads();
16718 result = (int)wxDateTime::GetCountry();
16719
16720 wxPyEndAllowThreads(__tstate);
16721 if (PyErr_Occurred()) SWIG_fail;
16722 }
16723 resultobj = SWIG_FromInt((int)result);
16724 return resultobj;
16725 fail:
16726 return NULL;
16727 }
16728
16729
16730 static PyObject *_wrap_DateTime_IsWestEuropeanCountry(PyObject *self, PyObject *args, PyObject *kwargs) {
16731 PyObject *resultobj;
16732 int arg1 = (int) wxDateTime::Country_Default ;
16733 bool result;
16734 PyObject * obj0 = 0 ;
16735 char *kwnames[] = {
16736 (char *) "country", NULL
16737 };
16738
16739 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_IsWestEuropeanCountry",kwnames,&obj0)) goto fail;
16740 if (obj0) {
16741 arg1 = (wxDateTime::Country) SWIG_AsInt(obj0);
16742 if (PyErr_Occurred()) SWIG_fail;
16743 }
16744 {
16745 PyThreadState* __tstate = wxPyBeginAllowThreads();
16746 result = (bool)wxDateTime::IsWestEuropeanCountry((wxDateTime::Country )arg1);
16747
16748 wxPyEndAllowThreads(__tstate);
16749 if (PyErr_Occurred()) SWIG_fail;
16750 }
16751 {
16752 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16753 }
16754 return resultobj;
16755 fail:
16756 return NULL;
16757 }
16758
16759
16760 static PyObject *_wrap_DateTime_GetCurrentYear(PyObject *self, PyObject *args, PyObject *kwargs) {
16761 PyObject *resultobj;
16762 int arg1 = (int) wxDateTime::Gregorian ;
16763 int result;
16764 PyObject * obj0 = 0 ;
16765 char *kwnames[] = {
16766 (char *) "cal", NULL
16767 };
16768
16769 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCurrentYear",kwnames,&obj0)) goto fail;
16770 if (obj0) {
16771 arg1 = (wxDateTime::Calendar) SWIG_AsInt(obj0);
16772 if (PyErr_Occurred()) SWIG_fail;
16773 }
16774 {
16775 PyThreadState* __tstate = wxPyBeginAllowThreads();
16776 result = (int)wxDateTime::GetCurrentYear((wxDateTime::Calendar )arg1);
16777
16778 wxPyEndAllowThreads(__tstate);
16779 if (PyErr_Occurred()) SWIG_fail;
16780 }
16781 resultobj = SWIG_FromInt((int)result);
16782 return resultobj;
16783 fail:
16784 return NULL;
16785 }
16786
16787
16788 static PyObject *_wrap_DateTime_ConvertYearToBC(PyObject *self, PyObject *args, PyObject *kwargs) {
16789 PyObject *resultobj;
16790 int arg1 ;
16791 int result;
16792 PyObject * obj0 = 0 ;
16793 char *kwnames[] = {
16794 (char *) "year", NULL
16795 };
16796
16797 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_ConvertYearToBC",kwnames,&obj0)) goto fail;
16798 arg1 = (int) SWIG_AsInt(obj0);
16799 if (PyErr_Occurred()) SWIG_fail;
16800 {
16801 PyThreadState* __tstate = wxPyBeginAllowThreads();
16802 result = (int)wxDateTime::ConvertYearToBC(arg1);
16803
16804 wxPyEndAllowThreads(__tstate);
16805 if (PyErr_Occurred()) SWIG_fail;
16806 }
16807 resultobj = SWIG_FromInt((int)result);
16808 return resultobj;
16809 fail:
16810 return NULL;
16811 }
16812
16813
16814 static PyObject *_wrap_DateTime_GetCurrentMonth(PyObject *self, PyObject *args, PyObject *kwargs) {
16815 PyObject *resultobj;
16816 int arg1 = (int) wxDateTime::Gregorian ;
16817 int result;
16818 PyObject * obj0 = 0 ;
16819 char *kwnames[] = {
16820 (char *) "cal", NULL
16821 };
16822
16823 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCurrentMonth",kwnames,&obj0)) goto fail;
16824 if (obj0) {
16825 arg1 = (wxDateTime::Calendar) SWIG_AsInt(obj0);
16826 if (PyErr_Occurred()) SWIG_fail;
16827 }
16828 {
16829 PyThreadState* __tstate = wxPyBeginAllowThreads();
16830 result = (int)wxDateTime::GetCurrentMonth((wxDateTime::Calendar )arg1);
16831
16832 wxPyEndAllowThreads(__tstate);
16833 if (PyErr_Occurred()) SWIG_fail;
16834 }
16835 resultobj = SWIG_FromInt((int)result);
16836 return resultobj;
16837 fail:
16838 return NULL;
16839 }
16840
16841
16842 static PyObject *_wrap_DateTime_IsLeapYear(PyObject *self, PyObject *args, PyObject *kwargs) {
16843 PyObject *resultobj;
16844 int arg1 = (int) wxDateTime::Inv_Year ;
16845 int arg2 = (int) wxDateTime::Gregorian ;
16846 bool result;
16847 PyObject * obj0 = 0 ;
16848 PyObject * obj1 = 0 ;
16849 char *kwnames[] = {
16850 (char *) "year",(char *) "cal", NULL
16851 };
16852
16853 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_IsLeapYear",kwnames,&obj0,&obj1)) goto fail;
16854 if (obj0) {
16855 arg1 = (int) SWIG_AsInt(obj0);
16856 if (PyErr_Occurred()) SWIG_fail;
16857 }
16858 if (obj1) {
16859 arg2 = (wxDateTime::Calendar) SWIG_AsInt(obj1);
16860 if (PyErr_Occurred()) SWIG_fail;
16861 }
16862 {
16863 PyThreadState* __tstate = wxPyBeginAllowThreads();
16864 result = (bool)wxDateTime::IsLeapYear(arg1,(wxDateTime::Calendar )arg2);
16865
16866 wxPyEndAllowThreads(__tstate);
16867 if (PyErr_Occurred()) SWIG_fail;
16868 }
16869 {
16870 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16871 }
16872 return resultobj;
16873 fail:
16874 return NULL;
16875 }
16876
16877
16878 static PyObject *_wrap_DateTime_GetCentury(PyObject *self, PyObject *args, PyObject *kwargs) {
16879 PyObject *resultobj;
16880 int arg1 = (int) wxDateTime::Inv_Year ;
16881 int result;
16882 PyObject * obj0 = 0 ;
16883 char *kwnames[] = {
16884 (char *) "year", NULL
16885 };
16886
16887 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCentury",kwnames,&obj0)) goto fail;
16888 if (obj0) {
16889 arg1 = (int) SWIG_AsInt(obj0);
16890 if (PyErr_Occurred()) SWIG_fail;
16891 }
16892 {
16893 PyThreadState* __tstate = wxPyBeginAllowThreads();
16894 result = (int)wxDateTime::GetCentury(arg1);
16895
16896 wxPyEndAllowThreads(__tstate);
16897 if (PyErr_Occurred()) SWIG_fail;
16898 }
16899 resultobj = SWIG_FromInt((int)result);
16900 return resultobj;
16901 fail:
16902 return NULL;
16903 }
16904
16905
16906 static PyObject *_wrap_DateTime_GetNumberOfDaysinYear(PyObject *self, PyObject *args, PyObject *kwargs) {
16907 PyObject *resultobj;
16908 int arg1 ;
16909 int arg2 = (int) wxDateTime::Gregorian ;
16910 int result;
16911 PyObject * obj0 = 0 ;
16912 PyObject * obj1 = 0 ;
16913 char *kwnames[] = {
16914 (char *) "year",(char *) "cal", NULL
16915 };
16916
16917 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetNumberOfDaysinYear",kwnames,&obj0,&obj1)) goto fail;
16918 arg1 = (int) SWIG_AsInt(obj0);
16919 if (PyErr_Occurred()) SWIG_fail;
16920 if (obj1) {
16921 arg2 = (wxDateTime::Calendar) SWIG_AsInt(obj1);
16922 if (PyErr_Occurred()) SWIG_fail;
16923 }
16924 {
16925 PyThreadState* __tstate = wxPyBeginAllowThreads();
16926 result = (int)wxDateTime::GetNumberOfDays(arg1,(wxDateTime::Calendar )arg2);
16927
16928 wxPyEndAllowThreads(__tstate);
16929 if (PyErr_Occurred()) SWIG_fail;
16930 }
16931 resultobj = SWIG_FromInt((int)result);
16932 return resultobj;
16933 fail:
16934 return NULL;
16935 }
16936
16937
16938 static PyObject *_wrap_DateTime_GetNumberOfDaysInMonth(PyObject *self, PyObject *args, PyObject *kwargs) {
16939 PyObject *resultobj;
16940 int arg1 ;
16941 int arg2 = (int) wxDateTime::Inv_Year ;
16942 int arg3 = (int) wxDateTime::Gregorian ;
16943 int result;
16944 PyObject * obj0 = 0 ;
16945 PyObject * obj1 = 0 ;
16946 PyObject * obj2 = 0 ;
16947 char *kwnames[] = {
16948 (char *) "month",(char *) "year",(char *) "cal", NULL
16949 };
16950
16951 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetNumberOfDaysInMonth",kwnames,&obj0,&obj1,&obj2)) goto fail;
16952 arg1 = (wxDateTime::Month) SWIG_AsInt(obj0);
16953 if (PyErr_Occurred()) SWIG_fail;
16954 if (obj1) {
16955 arg2 = (int) SWIG_AsInt(obj1);
16956 if (PyErr_Occurred()) SWIG_fail;
16957 }
16958 if (obj2) {
16959 arg3 = (wxDateTime::Calendar) SWIG_AsInt(obj2);
16960 if (PyErr_Occurred()) SWIG_fail;
16961 }
16962 {
16963 PyThreadState* __tstate = wxPyBeginAllowThreads();
16964 result = (int)wxDateTime::GetNumberOfDays((wxDateTime::Month )arg1,arg2,(wxDateTime::Calendar )arg3);
16965
16966 wxPyEndAllowThreads(__tstate);
16967 if (PyErr_Occurred()) SWIG_fail;
16968 }
16969 resultobj = SWIG_FromInt((int)result);
16970 return resultobj;
16971 fail:
16972 return NULL;
16973 }
16974
16975
16976 static PyObject *_wrap_DateTime_GetMonthName(PyObject *self, PyObject *args, PyObject *kwargs) {
16977 PyObject *resultobj;
16978 int arg1 ;
16979 int arg2 = (int) wxDateTime::Name_Full ;
16980 wxString result;
16981 PyObject * obj0 = 0 ;
16982 PyObject * obj1 = 0 ;
16983 char *kwnames[] = {
16984 (char *) "month",(char *) "flags", NULL
16985 };
16986
16987 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMonthName",kwnames,&obj0,&obj1)) goto fail;
16988 arg1 = (wxDateTime::Month) SWIG_AsInt(obj0);
16989 if (PyErr_Occurred()) SWIG_fail;
16990 if (obj1) {
16991 arg2 = (wxDateTime::NameFlags) SWIG_AsInt(obj1);
16992 if (PyErr_Occurred()) SWIG_fail;
16993 }
16994 {
16995 PyThreadState* __tstate = wxPyBeginAllowThreads();
16996 result = wxDateTime::GetMonthName((wxDateTime::Month )arg1,(wxDateTime::NameFlags )arg2);
16997
16998 wxPyEndAllowThreads(__tstate);
16999 if (PyErr_Occurred()) SWIG_fail;
17000 }
17001 {
17002 #if wxUSE_UNICODE
17003 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17004 #else
17005 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17006 #endif
17007 }
17008 return resultobj;
17009 fail:
17010 return NULL;
17011 }
17012
17013
17014 static PyObject *_wrap_DateTime_GetWeekDayName(PyObject *self, PyObject *args, PyObject *kwargs) {
17015 PyObject *resultobj;
17016 int arg1 ;
17017 int arg2 = (int) wxDateTime::Name_Full ;
17018 wxString result;
17019 PyObject * obj0 = 0 ;
17020 PyObject * obj1 = 0 ;
17021 char *kwnames[] = {
17022 (char *) "weekday",(char *) "flags", NULL
17023 };
17024
17025 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetWeekDayName",kwnames,&obj0,&obj1)) goto fail;
17026 arg1 = (wxDateTime::WeekDay) SWIG_AsInt(obj0);
17027 if (PyErr_Occurred()) SWIG_fail;
17028 if (obj1) {
17029 arg2 = (wxDateTime::NameFlags) SWIG_AsInt(obj1);
17030 if (PyErr_Occurred()) SWIG_fail;
17031 }
17032 {
17033 PyThreadState* __tstate = wxPyBeginAllowThreads();
17034 result = wxDateTime::GetWeekDayName((wxDateTime::WeekDay )arg1,(wxDateTime::NameFlags )arg2);
17035
17036 wxPyEndAllowThreads(__tstate);
17037 if (PyErr_Occurred()) SWIG_fail;
17038 }
17039 {
17040 #if wxUSE_UNICODE
17041 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17042 #else
17043 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17044 #endif
17045 }
17046 return resultobj;
17047 fail:
17048 return NULL;
17049 }
17050
17051
17052 static PyObject *_wrap_DateTime_GetAmPmStrings(PyObject *self, PyObject *args, PyObject *kwargs) {
17053 PyObject *resultobj;
17054 wxString *arg1 = (wxString *) 0 ;
17055 wxString *arg2 = (wxString *) 0 ;
17056 bool temp1 = False ;
17057 bool temp2 = False ;
17058 PyObject * obj0 = 0 ;
17059 PyObject * obj1 = 0 ;
17060 char *kwnames[] = {
17061 (char *) "OUTPUT",(char *) "OUTPUT", NULL
17062 };
17063
17064 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetAmPmStrings",kwnames,&obj0,&obj1)) goto fail;
17065 {
17066 arg1 = wxString_in_helper(obj0);
17067 if (arg1 == NULL) SWIG_fail;
17068 temp1 = True;
17069 }
17070 {
17071 arg2 = wxString_in_helper(obj1);
17072 if (arg2 == NULL) SWIG_fail;
17073 temp2 = True;
17074 }
17075 {
17076 PyThreadState* __tstate = wxPyBeginAllowThreads();
17077 wxDateTime::GetAmPmStrings(arg1,arg2);
17078
17079 wxPyEndAllowThreads(__tstate);
17080 if (PyErr_Occurred()) SWIG_fail;
17081 }
17082 Py_INCREF(Py_None); resultobj = Py_None;
17083 {
17084 if (temp1)
17085 delete arg1;
17086 }
17087 {
17088 if (temp2)
17089 delete arg2;
17090 }
17091 return resultobj;
17092 fail:
17093 {
17094 if (temp1)
17095 delete arg1;
17096 }
17097 {
17098 if (temp2)
17099 delete arg2;
17100 }
17101 return NULL;
17102 }
17103
17104
17105 static PyObject *_wrap_DateTime_IsDSTApplicable(PyObject *self, PyObject *args, PyObject *kwargs) {
17106 PyObject *resultobj;
17107 int arg1 = (int) wxDateTime::Inv_Year ;
17108 int arg2 = (int) wxDateTime::Country_Default ;
17109 bool result;
17110 PyObject * obj0 = 0 ;
17111 PyObject * obj1 = 0 ;
17112 char *kwnames[] = {
17113 (char *) "year",(char *) "country", NULL
17114 };
17115
17116 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_IsDSTApplicable",kwnames,&obj0,&obj1)) goto fail;
17117 if (obj0) {
17118 arg1 = (int) SWIG_AsInt(obj0);
17119 if (PyErr_Occurred()) SWIG_fail;
17120 }
17121 if (obj1) {
17122 arg2 = (wxDateTime::Country) SWIG_AsInt(obj1);
17123 if (PyErr_Occurred()) SWIG_fail;
17124 }
17125 {
17126 PyThreadState* __tstate = wxPyBeginAllowThreads();
17127 result = (bool)wxDateTime::IsDSTApplicable(arg1,(wxDateTime::Country )arg2);
17128
17129 wxPyEndAllowThreads(__tstate);
17130 if (PyErr_Occurred()) SWIG_fail;
17131 }
17132 {
17133 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17134 }
17135 return resultobj;
17136 fail:
17137 return NULL;
17138 }
17139
17140
17141 static PyObject *_wrap_DateTime_GetBeginDST(PyObject *self, PyObject *args, PyObject *kwargs) {
17142 PyObject *resultobj;
17143 int arg1 = (int) wxDateTime::Inv_Year ;
17144 int arg2 = (int) wxDateTime::Country_Default ;
17145 wxDateTime result;
17146 PyObject * obj0 = 0 ;
17147 PyObject * obj1 = 0 ;
17148 char *kwnames[] = {
17149 (char *) "year",(char *) "country", NULL
17150 };
17151
17152 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_GetBeginDST",kwnames,&obj0,&obj1)) goto fail;
17153 if (obj0) {
17154 arg1 = (int) SWIG_AsInt(obj0);
17155 if (PyErr_Occurred()) SWIG_fail;
17156 }
17157 if (obj1) {
17158 arg2 = (wxDateTime::Country) SWIG_AsInt(obj1);
17159 if (PyErr_Occurred()) SWIG_fail;
17160 }
17161 {
17162 PyThreadState* __tstate = wxPyBeginAllowThreads();
17163 result = wxDateTime::GetBeginDST(arg1,(wxDateTime::Country )arg2);
17164
17165 wxPyEndAllowThreads(__tstate);
17166 if (PyErr_Occurred()) SWIG_fail;
17167 }
17168 {
17169 wxDateTime * resultptr;
17170 resultptr = new wxDateTime((wxDateTime &) result);
17171 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
17172 }
17173 return resultobj;
17174 fail:
17175 return NULL;
17176 }
17177
17178
17179 static PyObject *_wrap_DateTime_GetEndDST(PyObject *self, PyObject *args, PyObject *kwargs) {
17180 PyObject *resultobj;
17181 int arg1 = (int) wxDateTime::Inv_Year ;
17182 int arg2 = (int) wxDateTime::Country_Default ;
17183 wxDateTime result;
17184 PyObject * obj0 = 0 ;
17185 PyObject * obj1 = 0 ;
17186 char *kwnames[] = {
17187 (char *) "year",(char *) "country", NULL
17188 };
17189
17190 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_GetEndDST",kwnames,&obj0,&obj1)) goto fail;
17191 if (obj0) {
17192 arg1 = (int) SWIG_AsInt(obj0);
17193 if (PyErr_Occurred()) SWIG_fail;
17194 }
17195 if (obj1) {
17196 arg2 = (wxDateTime::Country) SWIG_AsInt(obj1);
17197 if (PyErr_Occurred()) SWIG_fail;
17198 }
17199 {
17200 PyThreadState* __tstate = wxPyBeginAllowThreads();
17201 result = wxDateTime::GetEndDST(arg1,(wxDateTime::Country )arg2);
17202
17203 wxPyEndAllowThreads(__tstate);
17204 if (PyErr_Occurred()) SWIG_fail;
17205 }
17206 {
17207 wxDateTime * resultptr;
17208 resultptr = new wxDateTime((wxDateTime &) result);
17209 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
17210 }
17211 return resultobj;
17212 fail:
17213 return NULL;
17214 }
17215
17216
17217 static PyObject *_wrap_DateTime_Now(PyObject *self, PyObject *args, PyObject *kwargs) {
17218 PyObject *resultobj;
17219 wxDateTime result;
17220 char *kwnames[] = {
17221 NULL
17222 };
17223
17224 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_Now",kwnames)) goto fail;
17225 {
17226 PyThreadState* __tstate = wxPyBeginAllowThreads();
17227 result = wxDateTime::Now();
17228
17229 wxPyEndAllowThreads(__tstate);
17230 if (PyErr_Occurred()) SWIG_fail;
17231 }
17232 {
17233 wxDateTime * resultptr;
17234 resultptr = new wxDateTime((wxDateTime &) result);
17235 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
17236 }
17237 return resultobj;
17238 fail:
17239 return NULL;
17240 }
17241
17242
17243 static PyObject *_wrap_DateTime_UNow(PyObject *self, PyObject *args, PyObject *kwargs) {
17244 PyObject *resultobj;
17245 wxDateTime result;
17246 char *kwnames[] = {
17247 NULL
17248 };
17249
17250 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_UNow",kwnames)) goto fail;
17251 {
17252 PyThreadState* __tstate = wxPyBeginAllowThreads();
17253 result = wxDateTime::UNow();
17254
17255 wxPyEndAllowThreads(__tstate);
17256 if (PyErr_Occurred()) SWIG_fail;
17257 }
17258 {
17259 wxDateTime * resultptr;
17260 resultptr = new wxDateTime((wxDateTime &) result);
17261 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
17262 }
17263 return resultobj;
17264 fail:
17265 return NULL;
17266 }
17267
17268
17269 static PyObject *_wrap_DateTime_Today(PyObject *self, PyObject *args, PyObject *kwargs) {
17270 PyObject *resultobj;
17271 wxDateTime result;
17272 char *kwnames[] = {
17273 NULL
17274 };
17275
17276 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_Today",kwnames)) goto fail;
17277 {
17278 PyThreadState* __tstate = wxPyBeginAllowThreads();
17279 result = wxDateTime::Today();
17280
17281 wxPyEndAllowThreads(__tstate);
17282 if (PyErr_Occurred()) SWIG_fail;
17283 }
17284 {
17285 wxDateTime * resultptr;
17286 resultptr = new wxDateTime((wxDateTime &) result);
17287 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
17288 }
17289 return resultobj;
17290 fail:
17291 return NULL;
17292 }
17293
17294
17295 static PyObject *_wrap_new_DateTime(PyObject *self, PyObject *args, PyObject *kwargs) {
17296 PyObject *resultobj;
17297 wxDateTime *result;
17298 char *kwnames[] = {
17299 NULL
17300 };
17301
17302 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DateTime",kwnames)) goto fail;
17303 {
17304 PyThreadState* __tstate = wxPyBeginAllowThreads();
17305 result = (wxDateTime *)new wxDateTime();
17306
17307 wxPyEndAllowThreads(__tstate);
17308 if (PyErr_Occurred()) SWIG_fail;
17309 }
17310 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
17311 return resultobj;
17312 fail:
17313 return NULL;
17314 }
17315
17316
17317 static PyObject *_wrap_new_DateTimeFromTimeT(PyObject *self, PyObject *args, PyObject *kwargs) {
17318 PyObject *resultobj;
17319 time_t arg1 ;
17320 wxDateTime *result;
17321 PyObject * obj0 = 0 ;
17322 char *kwnames[] = {
17323 (char *) "timet", NULL
17324 };
17325
17326 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DateTimeFromTimeT",kwnames,&obj0)) goto fail;
17327 arg1 = (time_t) SWIG_AsUnsignedInt(obj0);
17328 if (PyErr_Occurred()) SWIG_fail;
17329 {
17330 PyThreadState* __tstate = wxPyBeginAllowThreads();
17331 result = (wxDateTime *)new wxDateTime(arg1);
17332
17333 wxPyEndAllowThreads(__tstate);
17334 if (PyErr_Occurred()) SWIG_fail;
17335 }
17336 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
17337 return resultobj;
17338 fail:
17339 return NULL;
17340 }
17341
17342
17343 static PyObject *_wrap_new_DateTimeFromJDN(PyObject *self, PyObject *args, PyObject *kwargs) {
17344 PyObject *resultobj;
17345 double arg1 ;
17346 wxDateTime *result;
17347 PyObject * obj0 = 0 ;
17348 char *kwnames[] = {
17349 (char *) "jdn", NULL
17350 };
17351
17352 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DateTimeFromJDN",kwnames,&obj0)) goto fail;
17353 arg1 = (double) SWIG_AsDouble(obj0);
17354 if (PyErr_Occurred()) SWIG_fail;
17355 {
17356 PyThreadState* __tstate = wxPyBeginAllowThreads();
17357 result = (wxDateTime *)new wxDateTime(arg1);
17358
17359 wxPyEndAllowThreads(__tstate);
17360 if (PyErr_Occurred()) SWIG_fail;
17361 }
17362 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
17363 return resultobj;
17364 fail:
17365 return NULL;
17366 }
17367
17368
17369 static PyObject *_wrap_new_DateTimeFromHMS(PyObject *self, PyObject *args, PyObject *kwargs) {
17370 PyObject *resultobj;
17371 int arg1 ;
17372 int arg2 = (int) 0 ;
17373 int arg3 = (int) 0 ;
17374 int arg4 = (int) 0 ;
17375 wxDateTime *result;
17376 PyObject * obj0 = 0 ;
17377 PyObject * obj1 = 0 ;
17378 PyObject * obj2 = 0 ;
17379 PyObject * obj3 = 0 ;
17380 char *kwnames[] = {
17381 (char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL
17382 };
17383
17384 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:new_DateTimeFromHMS",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
17385 arg1 = (int) SWIG_AsInt(obj0);
17386 if (PyErr_Occurred()) SWIG_fail;
17387 if (obj1) {
17388 arg2 = (int) SWIG_AsInt(obj1);
17389 if (PyErr_Occurred()) SWIG_fail;
17390 }
17391 if (obj2) {
17392 arg3 = (int) SWIG_AsInt(obj2);
17393 if (PyErr_Occurred()) SWIG_fail;
17394 }
17395 if (obj3) {
17396 arg4 = (int) SWIG_AsInt(obj3);
17397 if (PyErr_Occurred()) SWIG_fail;
17398 }
17399 {
17400 PyThreadState* __tstate = wxPyBeginAllowThreads();
17401 result = (wxDateTime *)new wxDateTime(arg1,arg2,arg3,arg4);
17402
17403 wxPyEndAllowThreads(__tstate);
17404 if (PyErr_Occurred()) SWIG_fail;
17405 }
17406 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
17407 return resultobj;
17408 fail:
17409 return NULL;
17410 }
17411
17412
17413 static PyObject *_wrap_new_DateTimeFromDMY(PyObject *self, PyObject *args, PyObject *kwargs) {
17414 PyObject *resultobj;
17415 int arg1 ;
17416 int arg2 = (int) wxDateTime::Inv_Month ;
17417 int arg3 = (int) wxDateTime::Inv_Year ;
17418 int arg4 = (int) 0 ;
17419 int arg5 = (int) 0 ;
17420 int arg6 = (int) 0 ;
17421 int arg7 = (int) 0 ;
17422 wxDateTime *result;
17423 PyObject * obj0 = 0 ;
17424 PyObject * obj1 = 0 ;
17425 PyObject * obj2 = 0 ;
17426 PyObject * obj3 = 0 ;
17427 PyObject * obj4 = 0 ;
17428 PyObject * obj5 = 0 ;
17429 PyObject * obj6 = 0 ;
17430 char *kwnames[] = {
17431 (char *) "day",(char *) "month",(char *) "year",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL
17432 };
17433
17434 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_DateTimeFromDMY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
17435 arg1 = (int) SWIG_AsInt(obj0);
17436 if (PyErr_Occurred()) SWIG_fail;
17437 if (obj1) {
17438 arg2 = (wxDateTime::Month) SWIG_AsInt(obj1);
17439 if (PyErr_Occurred()) SWIG_fail;
17440 }
17441 if (obj2) {
17442 arg3 = (int) SWIG_AsInt(obj2);
17443 if (PyErr_Occurred()) SWIG_fail;
17444 }
17445 if (obj3) {
17446 arg4 = (int) SWIG_AsInt(obj3);
17447 if (PyErr_Occurred()) SWIG_fail;
17448 }
17449 if (obj4) {
17450 arg5 = (int) SWIG_AsInt(obj4);
17451 if (PyErr_Occurred()) SWIG_fail;
17452 }
17453 if (obj5) {
17454 arg6 = (int) SWIG_AsInt(obj5);
17455 if (PyErr_Occurred()) SWIG_fail;
17456 }
17457 if (obj6) {
17458 arg7 = (int) SWIG_AsInt(obj6);
17459 if (PyErr_Occurred()) SWIG_fail;
17460 }
17461 {
17462 PyThreadState* __tstate = wxPyBeginAllowThreads();
17463 result = (wxDateTime *)new wxDateTime(arg1,(wxDateTime::Month )arg2,arg3,arg4,arg5,arg6,arg7);
17464
17465 wxPyEndAllowThreads(__tstate);
17466 if (PyErr_Occurred()) SWIG_fail;
17467 }
17468 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
17469 return resultobj;
17470 fail:
17471 return NULL;
17472 }
17473
17474
17475 static PyObject *_wrap_delete_DateTime(PyObject *self, PyObject *args, PyObject *kwargs) {
17476 PyObject *resultobj;
17477 wxDateTime *arg1 = (wxDateTime *) 0 ;
17478 PyObject * obj0 = 0 ;
17479 char *kwnames[] = {
17480 (char *) "self", NULL
17481 };
17482
17483 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DateTime",kwnames,&obj0)) goto fail;
17484 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17485 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17486 {
17487 PyThreadState* __tstate = wxPyBeginAllowThreads();
17488 delete arg1;
17489
17490 wxPyEndAllowThreads(__tstate);
17491 if (PyErr_Occurred()) SWIG_fail;
17492 }
17493 Py_INCREF(Py_None); resultobj = Py_None;
17494 return resultobj;
17495 fail:
17496 return NULL;
17497 }
17498
17499
17500 static PyObject *_wrap_DateTime_SetToCurrent(PyObject *self, PyObject *args, PyObject *kwargs) {
17501 PyObject *resultobj;
17502 wxDateTime *arg1 = (wxDateTime *) 0 ;
17503 wxDateTime *result;
17504 PyObject * obj0 = 0 ;
17505 char *kwnames[] = {
17506 (char *) "self", NULL
17507 };
17508
17509 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_SetToCurrent",kwnames,&obj0)) goto fail;
17510 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17511 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17512 {
17513 PyThreadState* __tstate = wxPyBeginAllowThreads();
17514 {
17515 wxDateTime &_result_ref = (arg1)->SetToCurrent();
17516 result = (wxDateTime *) &_result_ref;
17517 }
17518
17519 wxPyEndAllowThreads(__tstate);
17520 if (PyErr_Occurred()) SWIG_fail;
17521 }
17522 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17523 return resultobj;
17524 fail:
17525 return NULL;
17526 }
17527
17528
17529 static PyObject *_wrap_DateTime_SetTimeT(PyObject *self, PyObject *args, PyObject *kwargs) {
17530 PyObject *resultobj;
17531 wxDateTime *arg1 = (wxDateTime *) 0 ;
17532 time_t arg2 ;
17533 wxDateTime *result;
17534 PyObject * obj0 = 0 ;
17535 PyObject * obj1 = 0 ;
17536 char *kwnames[] = {
17537 (char *) "self",(char *) "timet", NULL
17538 };
17539
17540 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetTimeT",kwnames,&obj0,&obj1)) goto fail;
17541 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17542 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17543 arg2 = (time_t) SWIG_AsUnsignedInt(obj1);
17544 if (PyErr_Occurred()) SWIG_fail;
17545 {
17546 PyThreadState* __tstate = wxPyBeginAllowThreads();
17547 {
17548 wxDateTime &_result_ref = (arg1)->Set(arg2);
17549 result = (wxDateTime *) &_result_ref;
17550 }
17551
17552 wxPyEndAllowThreads(__tstate);
17553 if (PyErr_Occurred()) SWIG_fail;
17554 }
17555 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17556 return resultobj;
17557 fail:
17558 return NULL;
17559 }
17560
17561
17562 static PyObject *_wrap_DateTime_SetJDN(PyObject *self, PyObject *args, PyObject *kwargs) {
17563 PyObject *resultobj;
17564 wxDateTime *arg1 = (wxDateTime *) 0 ;
17565 double arg2 ;
17566 wxDateTime *result;
17567 PyObject * obj0 = 0 ;
17568 PyObject * obj1 = 0 ;
17569 char *kwnames[] = {
17570 (char *) "self",(char *) "jdn", NULL
17571 };
17572
17573 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetJDN",kwnames,&obj0,&obj1)) goto fail;
17574 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17575 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17576 arg2 = (double) SWIG_AsDouble(obj1);
17577 if (PyErr_Occurred()) SWIG_fail;
17578 {
17579 PyThreadState* __tstate = wxPyBeginAllowThreads();
17580 {
17581 wxDateTime &_result_ref = (arg1)->Set(arg2);
17582 result = (wxDateTime *) &_result_ref;
17583 }
17584
17585 wxPyEndAllowThreads(__tstate);
17586 if (PyErr_Occurred()) SWIG_fail;
17587 }
17588 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17589 return resultobj;
17590 fail:
17591 return NULL;
17592 }
17593
17594
17595 static PyObject *_wrap_DateTime_SetHMS(PyObject *self, PyObject *args, PyObject *kwargs) {
17596 PyObject *resultobj;
17597 wxDateTime *arg1 = (wxDateTime *) 0 ;
17598 int arg2 ;
17599 int arg3 = (int) 0 ;
17600 int arg4 = (int) 0 ;
17601 int arg5 = (int) 0 ;
17602 wxDateTime *result;
17603 PyObject * obj0 = 0 ;
17604 PyObject * obj1 = 0 ;
17605 PyObject * obj2 = 0 ;
17606 PyObject * obj3 = 0 ;
17607 PyObject * obj4 = 0 ;
17608 char *kwnames[] = {
17609 (char *) "self",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL
17610 };
17611
17612 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DateTime_SetHMS",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
17613 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17614 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17615 arg2 = (int) SWIG_AsInt(obj1);
17616 if (PyErr_Occurred()) SWIG_fail;
17617 if (obj2) {
17618 arg3 = (int) SWIG_AsInt(obj2);
17619 if (PyErr_Occurred()) SWIG_fail;
17620 }
17621 if (obj3) {
17622 arg4 = (int) SWIG_AsInt(obj3);
17623 if (PyErr_Occurred()) SWIG_fail;
17624 }
17625 if (obj4) {
17626 arg5 = (int) SWIG_AsInt(obj4);
17627 if (PyErr_Occurred()) SWIG_fail;
17628 }
17629 {
17630 PyThreadState* __tstate = wxPyBeginAllowThreads();
17631 {
17632 wxDateTime &_result_ref = (arg1)->Set(arg2,arg3,arg4,arg5);
17633 result = (wxDateTime *) &_result_ref;
17634 }
17635
17636 wxPyEndAllowThreads(__tstate);
17637 if (PyErr_Occurred()) SWIG_fail;
17638 }
17639 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17640 return resultobj;
17641 fail:
17642 return NULL;
17643 }
17644
17645
17646 static PyObject *_wrap_DateTime_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
17647 PyObject *resultobj;
17648 wxDateTime *arg1 = (wxDateTime *) 0 ;
17649 int arg2 ;
17650 int arg3 = (int) wxDateTime::Inv_Month ;
17651 int arg4 = (int) wxDateTime::Inv_Year ;
17652 int arg5 = (int) 0 ;
17653 int arg6 = (int) 0 ;
17654 int arg7 = (int) 0 ;
17655 int arg8 = (int) 0 ;
17656 wxDateTime *result;
17657 PyObject * obj0 = 0 ;
17658 PyObject * obj1 = 0 ;
17659 PyObject * obj2 = 0 ;
17660 PyObject * obj3 = 0 ;
17661 PyObject * obj4 = 0 ;
17662 PyObject * obj5 = 0 ;
17663 PyObject * obj6 = 0 ;
17664 PyObject * obj7 = 0 ;
17665 char *kwnames[] = {
17666 (char *) "self",(char *) "day",(char *) "month",(char *) "year",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL
17667 };
17668
17669 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:DateTime_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
17670 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17671 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17672 arg2 = (int) SWIG_AsInt(obj1);
17673 if (PyErr_Occurred()) SWIG_fail;
17674 if (obj2) {
17675 arg3 = (wxDateTime::Month) SWIG_AsInt(obj2);
17676 if (PyErr_Occurred()) SWIG_fail;
17677 }
17678 if (obj3) {
17679 arg4 = (int) SWIG_AsInt(obj3);
17680 if (PyErr_Occurred()) SWIG_fail;
17681 }
17682 if (obj4) {
17683 arg5 = (int) SWIG_AsInt(obj4);
17684 if (PyErr_Occurred()) SWIG_fail;
17685 }
17686 if (obj5) {
17687 arg6 = (int) SWIG_AsInt(obj5);
17688 if (PyErr_Occurred()) SWIG_fail;
17689 }
17690 if (obj6) {
17691 arg7 = (int) SWIG_AsInt(obj6);
17692 if (PyErr_Occurred()) SWIG_fail;
17693 }
17694 if (obj7) {
17695 arg8 = (int) SWIG_AsInt(obj7);
17696 if (PyErr_Occurred()) SWIG_fail;
17697 }
17698 {
17699 PyThreadState* __tstate = wxPyBeginAllowThreads();
17700 {
17701 wxDateTime &_result_ref = (arg1)->Set(arg2,(wxDateTime::Month )arg3,arg4,arg5,arg6,arg7,arg8);
17702 result = (wxDateTime *) &_result_ref;
17703 }
17704
17705 wxPyEndAllowThreads(__tstate);
17706 if (PyErr_Occurred()) SWIG_fail;
17707 }
17708 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17709 return resultobj;
17710 fail:
17711 return NULL;
17712 }
17713
17714
17715 static PyObject *_wrap_DateTime_ResetTime(PyObject *self, PyObject *args, PyObject *kwargs) {
17716 PyObject *resultobj;
17717 wxDateTime *arg1 = (wxDateTime *) 0 ;
17718 wxDateTime *result;
17719 PyObject * obj0 = 0 ;
17720 char *kwnames[] = {
17721 (char *) "self", NULL
17722 };
17723
17724 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_ResetTime",kwnames,&obj0)) goto fail;
17725 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17726 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17727 {
17728 PyThreadState* __tstate = wxPyBeginAllowThreads();
17729 {
17730 wxDateTime &_result_ref = (arg1)->ResetTime();
17731 result = (wxDateTime *) &_result_ref;
17732 }
17733
17734 wxPyEndAllowThreads(__tstate);
17735 if (PyErr_Occurred()) SWIG_fail;
17736 }
17737 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17738 return resultobj;
17739 fail:
17740 return NULL;
17741 }
17742
17743
17744 static PyObject *_wrap_DateTime_SetYear(PyObject *self, PyObject *args, PyObject *kwargs) {
17745 PyObject *resultobj;
17746 wxDateTime *arg1 = (wxDateTime *) 0 ;
17747 int arg2 ;
17748 wxDateTime *result;
17749 PyObject * obj0 = 0 ;
17750 PyObject * obj1 = 0 ;
17751 char *kwnames[] = {
17752 (char *) "self",(char *) "year", NULL
17753 };
17754
17755 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetYear",kwnames,&obj0,&obj1)) goto fail;
17756 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17757 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17758 arg2 = (int) SWIG_AsInt(obj1);
17759 if (PyErr_Occurred()) SWIG_fail;
17760 {
17761 PyThreadState* __tstate = wxPyBeginAllowThreads();
17762 {
17763 wxDateTime &_result_ref = (arg1)->SetYear(arg2);
17764 result = (wxDateTime *) &_result_ref;
17765 }
17766
17767 wxPyEndAllowThreads(__tstate);
17768 if (PyErr_Occurred()) SWIG_fail;
17769 }
17770 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17771 return resultobj;
17772 fail:
17773 return NULL;
17774 }
17775
17776
17777 static PyObject *_wrap_DateTime_SetMonth(PyObject *self, PyObject *args, PyObject *kwargs) {
17778 PyObject *resultobj;
17779 wxDateTime *arg1 = (wxDateTime *) 0 ;
17780 int arg2 ;
17781 wxDateTime *result;
17782 PyObject * obj0 = 0 ;
17783 PyObject * obj1 = 0 ;
17784 char *kwnames[] = {
17785 (char *) "self",(char *) "month", NULL
17786 };
17787
17788 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMonth",kwnames,&obj0,&obj1)) goto fail;
17789 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17790 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17791 arg2 = (wxDateTime::Month) SWIG_AsInt(obj1);
17792 if (PyErr_Occurred()) SWIG_fail;
17793 {
17794 PyThreadState* __tstate = wxPyBeginAllowThreads();
17795 {
17796 wxDateTime &_result_ref = (arg1)->SetMonth((wxDateTime::Month )arg2);
17797 result = (wxDateTime *) &_result_ref;
17798 }
17799
17800 wxPyEndAllowThreads(__tstate);
17801 if (PyErr_Occurred()) SWIG_fail;
17802 }
17803 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17804 return resultobj;
17805 fail:
17806 return NULL;
17807 }
17808
17809
17810 static PyObject *_wrap_DateTime_SetDay(PyObject *self, PyObject *args, PyObject *kwargs) {
17811 PyObject *resultobj;
17812 wxDateTime *arg1 = (wxDateTime *) 0 ;
17813 int arg2 ;
17814 wxDateTime *result;
17815 PyObject * obj0 = 0 ;
17816 PyObject * obj1 = 0 ;
17817 char *kwnames[] = {
17818 (char *) "self",(char *) "day", NULL
17819 };
17820
17821 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetDay",kwnames,&obj0,&obj1)) goto fail;
17822 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17823 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17824 arg2 = (int) SWIG_AsInt(obj1);
17825 if (PyErr_Occurred()) SWIG_fail;
17826 {
17827 PyThreadState* __tstate = wxPyBeginAllowThreads();
17828 {
17829 wxDateTime &_result_ref = (arg1)->SetDay(arg2);
17830 result = (wxDateTime *) &_result_ref;
17831 }
17832
17833 wxPyEndAllowThreads(__tstate);
17834 if (PyErr_Occurred()) SWIG_fail;
17835 }
17836 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17837 return resultobj;
17838 fail:
17839 return NULL;
17840 }
17841
17842
17843 static PyObject *_wrap_DateTime_SetHour(PyObject *self, PyObject *args, PyObject *kwargs) {
17844 PyObject *resultobj;
17845 wxDateTime *arg1 = (wxDateTime *) 0 ;
17846 int arg2 ;
17847 wxDateTime *result;
17848 PyObject * obj0 = 0 ;
17849 PyObject * obj1 = 0 ;
17850 char *kwnames[] = {
17851 (char *) "self",(char *) "hour", NULL
17852 };
17853
17854 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetHour",kwnames,&obj0,&obj1)) goto fail;
17855 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17856 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17857 arg2 = (int) SWIG_AsInt(obj1);
17858 if (PyErr_Occurred()) SWIG_fail;
17859 {
17860 PyThreadState* __tstate = wxPyBeginAllowThreads();
17861 {
17862 wxDateTime &_result_ref = (arg1)->SetHour(arg2);
17863 result = (wxDateTime *) &_result_ref;
17864 }
17865
17866 wxPyEndAllowThreads(__tstate);
17867 if (PyErr_Occurred()) SWIG_fail;
17868 }
17869 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17870 return resultobj;
17871 fail:
17872 return NULL;
17873 }
17874
17875
17876 static PyObject *_wrap_DateTime_SetMinute(PyObject *self, PyObject *args, PyObject *kwargs) {
17877 PyObject *resultobj;
17878 wxDateTime *arg1 = (wxDateTime *) 0 ;
17879 int arg2 ;
17880 wxDateTime *result;
17881 PyObject * obj0 = 0 ;
17882 PyObject * obj1 = 0 ;
17883 char *kwnames[] = {
17884 (char *) "self",(char *) "minute", NULL
17885 };
17886
17887 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMinute",kwnames,&obj0,&obj1)) goto fail;
17888 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17889 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17890 arg2 = (int) SWIG_AsInt(obj1);
17891 if (PyErr_Occurred()) SWIG_fail;
17892 {
17893 PyThreadState* __tstate = wxPyBeginAllowThreads();
17894 {
17895 wxDateTime &_result_ref = (arg1)->SetMinute(arg2);
17896 result = (wxDateTime *) &_result_ref;
17897 }
17898
17899 wxPyEndAllowThreads(__tstate);
17900 if (PyErr_Occurred()) SWIG_fail;
17901 }
17902 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17903 return resultobj;
17904 fail:
17905 return NULL;
17906 }
17907
17908
17909 static PyObject *_wrap_DateTime_SetSecond(PyObject *self, PyObject *args, PyObject *kwargs) {
17910 PyObject *resultobj;
17911 wxDateTime *arg1 = (wxDateTime *) 0 ;
17912 int arg2 ;
17913 wxDateTime *result;
17914 PyObject * obj0 = 0 ;
17915 PyObject * obj1 = 0 ;
17916 char *kwnames[] = {
17917 (char *) "self",(char *) "second", NULL
17918 };
17919
17920 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetSecond",kwnames,&obj0,&obj1)) goto fail;
17921 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17922 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17923 arg2 = (int) SWIG_AsInt(obj1);
17924 if (PyErr_Occurred()) SWIG_fail;
17925 {
17926 PyThreadState* __tstate = wxPyBeginAllowThreads();
17927 {
17928 wxDateTime &_result_ref = (arg1)->SetSecond(arg2);
17929 result = (wxDateTime *) &_result_ref;
17930 }
17931
17932 wxPyEndAllowThreads(__tstate);
17933 if (PyErr_Occurred()) SWIG_fail;
17934 }
17935 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17936 return resultobj;
17937 fail:
17938 return NULL;
17939 }
17940
17941
17942 static PyObject *_wrap_DateTime_SetMillisecond(PyObject *self, PyObject *args, PyObject *kwargs) {
17943 PyObject *resultobj;
17944 wxDateTime *arg1 = (wxDateTime *) 0 ;
17945 int arg2 ;
17946 wxDateTime *result;
17947 PyObject * obj0 = 0 ;
17948 PyObject * obj1 = 0 ;
17949 char *kwnames[] = {
17950 (char *) "self",(char *) "millisecond", NULL
17951 };
17952
17953 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMillisecond",kwnames,&obj0,&obj1)) goto fail;
17954 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17955 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17956 arg2 = (int) SWIG_AsInt(obj1);
17957 if (PyErr_Occurred()) SWIG_fail;
17958 {
17959 PyThreadState* __tstate = wxPyBeginAllowThreads();
17960 {
17961 wxDateTime &_result_ref = (arg1)->SetMillisecond(arg2);
17962 result = (wxDateTime *) &_result_ref;
17963 }
17964
17965 wxPyEndAllowThreads(__tstate);
17966 if (PyErr_Occurred()) SWIG_fail;
17967 }
17968 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17969 return resultobj;
17970 fail:
17971 return NULL;
17972 }
17973
17974
17975 static PyObject *_wrap_DateTime_SetToWeekDayInSameWeek(PyObject *self, PyObject *args, PyObject *kwargs) {
17976 PyObject *resultobj;
17977 wxDateTime *arg1 = (wxDateTime *) 0 ;
17978 int arg2 ;
17979 int arg3 = (int) wxDateTime::Monday_First ;
17980 wxDateTime *result;
17981 PyObject * obj0 = 0 ;
17982 PyObject * obj1 = 0 ;
17983 PyObject * obj2 = 0 ;
17984 char *kwnames[] = {
17985 (char *) "self",(char *) "weekday",(char *) "flags", NULL
17986 };
17987
17988 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_SetToWeekDayInSameWeek",kwnames,&obj0,&obj1,&obj2)) goto fail;
17989 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17990 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17991 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
17992 if (PyErr_Occurred()) SWIG_fail;
17993 if (obj2) {
17994 arg3 = (wxDateTime::WeekFlags) SWIG_AsInt(obj2);
17995 if (PyErr_Occurred()) SWIG_fail;
17996 }
17997 {
17998 PyThreadState* __tstate = wxPyBeginAllowThreads();
17999 {
18000 wxDateTime &_result_ref = (arg1)->SetToWeekDayInSameWeek((wxDateTime::WeekDay )arg2,(wxDateTime::WeekFlags )arg3);
18001 result = (wxDateTime *) &_result_ref;
18002 }
18003
18004 wxPyEndAllowThreads(__tstate);
18005 if (PyErr_Occurred()) SWIG_fail;
18006 }
18007 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18008 return resultobj;
18009 fail:
18010 return NULL;
18011 }
18012
18013
18014 static PyObject *_wrap_DateTime_GetWeekDayInSameWeek(PyObject *self, PyObject *args, PyObject *kwargs) {
18015 PyObject *resultobj;
18016 wxDateTime *arg1 = (wxDateTime *) 0 ;
18017 int arg2 ;
18018 int arg3 = (int) wxDateTime::Monday_First ;
18019 wxDateTime result;
18020 PyObject * obj0 = 0 ;
18021 PyObject * obj1 = 0 ;
18022 PyObject * obj2 = 0 ;
18023 char *kwnames[] = {
18024 (char *) "self",(char *) "weekday",(char *) "flags", NULL
18025 };
18026
18027 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_GetWeekDayInSameWeek",kwnames,&obj0,&obj1,&obj2)) goto fail;
18028 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18029 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18030 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
18031 if (PyErr_Occurred()) SWIG_fail;
18032 if (obj2) {
18033 arg3 = (wxDateTime::WeekFlags) SWIG_AsInt(obj2);
18034 if (PyErr_Occurred()) SWIG_fail;
18035 }
18036 {
18037 PyThreadState* __tstate = wxPyBeginAllowThreads();
18038 result = (arg1)->GetWeekDayInSameWeek((wxDateTime::WeekDay )arg2,(wxDateTime::WeekFlags )arg3);
18039
18040 wxPyEndAllowThreads(__tstate);
18041 if (PyErr_Occurred()) SWIG_fail;
18042 }
18043 {
18044 wxDateTime * resultptr;
18045 resultptr = new wxDateTime((wxDateTime &) result);
18046 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18047 }
18048 return resultobj;
18049 fail:
18050 return NULL;
18051 }
18052
18053
18054 static PyObject *_wrap_DateTime_SetToNextWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18055 PyObject *resultobj;
18056 wxDateTime *arg1 = (wxDateTime *) 0 ;
18057 int arg2 ;
18058 wxDateTime *result;
18059 PyObject * obj0 = 0 ;
18060 PyObject * obj1 = 0 ;
18061 char *kwnames[] = {
18062 (char *) "self",(char *) "weekday", NULL
18063 };
18064
18065 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToNextWeekDay",kwnames,&obj0,&obj1)) goto fail;
18066 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18067 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18068 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
18069 if (PyErr_Occurred()) SWIG_fail;
18070 {
18071 PyThreadState* __tstate = wxPyBeginAllowThreads();
18072 {
18073 wxDateTime &_result_ref = (arg1)->SetToNextWeekDay((wxDateTime::WeekDay )arg2);
18074 result = (wxDateTime *) &_result_ref;
18075 }
18076
18077 wxPyEndAllowThreads(__tstate);
18078 if (PyErr_Occurred()) SWIG_fail;
18079 }
18080 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18081 return resultobj;
18082 fail:
18083 return NULL;
18084 }
18085
18086
18087 static PyObject *_wrap_DateTime_GetNextWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18088 PyObject *resultobj;
18089 wxDateTime *arg1 = (wxDateTime *) 0 ;
18090 int arg2 ;
18091 wxDateTime result;
18092 PyObject * obj0 = 0 ;
18093 PyObject * obj1 = 0 ;
18094 char *kwnames[] = {
18095 (char *) "self",(char *) "weekday", NULL
18096 };
18097
18098 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetNextWeekDay",kwnames,&obj0,&obj1)) goto fail;
18099 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18100 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18101 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
18102 if (PyErr_Occurred()) SWIG_fail;
18103 {
18104 PyThreadState* __tstate = wxPyBeginAllowThreads();
18105 result = (arg1)->GetNextWeekDay((wxDateTime::WeekDay )arg2);
18106
18107 wxPyEndAllowThreads(__tstate);
18108 if (PyErr_Occurred()) SWIG_fail;
18109 }
18110 {
18111 wxDateTime * resultptr;
18112 resultptr = new wxDateTime((wxDateTime &) result);
18113 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18114 }
18115 return resultobj;
18116 fail:
18117 return NULL;
18118 }
18119
18120
18121 static PyObject *_wrap_DateTime_SetToPrevWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18122 PyObject *resultobj;
18123 wxDateTime *arg1 = (wxDateTime *) 0 ;
18124 int arg2 ;
18125 wxDateTime *result;
18126 PyObject * obj0 = 0 ;
18127 PyObject * obj1 = 0 ;
18128 char *kwnames[] = {
18129 (char *) "self",(char *) "weekday", NULL
18130 };
18131
18132 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToPrevWeekDay",kwnames,&obj0,&obj1)) goto fail;
18133 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18134 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18135 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
18136 if (PyErr_Occurred()) SWIG_fail;
18137 {
18138 PyThreadState* __tstate = wxPyBeginAllowThreads();
18139 {
18140 wxDateTime &_result_ref = (arg1)->SetToPrevWeekDay((wxDateTime::WeekDay )arg2);
18141 result = (wxDateTime *) &_result_ref;
18142 }
18143
18144 wxPyEndAllowThreads(__tstate);
18145 if (PyErr_Occurred()) SWIG_fail;
18146 }
18147 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18148 return resultobj;
18149 fail:
18150 return NULL;
18151 }
18152
18153
18154 static PyObject *_wrap_DateTime_GetPrevWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18155 PyObject *resultobj;
18156 wxDateTime *arg1 = (wxDateTime *) 0 ;
18157 int arg2 ;
18158 wxDateTime result;
18159 PyObject * obj0 = 0 ;
18160 PyObject * obj1 = 0 ;
18161 char *kwnames[] = {
18162 (char *) "self",(char *) "weekday", NULL
18163 };
18164
18165 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetPrevWeekDay",kwnames,&obj0,&obj1)) goto fail;
18166 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18167 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18168 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
18169 if (PyErr_Occurred()) SWIG_fail;
18170 {
18171 PyThreadState* __tstate = wxPyBeginAllowThreads();
18172 result = (arg1)->GetPrevWeekDay((wxDateTime::WeekDay )arg2);
18173
18174 wxPyEndAllowThreads(__tstate);
18175 if (PyErr_Occurred()) SWIG_fail;
18176 }
18177 {
18178 wxDateTime * resultptr;
18179 resultptr = new wxDateTime((wxDateTime &) result);
18180 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18181 }
18182 return resultobj;
18183 fail:
18184 return NULL;
18185 }
18186
18187
18188 static PyObject *_wrap_DateTime_SetToWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18189 PyObject *resultobj;
18190 wxDateTime *arg1 = (wxDateTime *) 0 ;
18191 int arg2 ;
18192 int arg3 = (int) 1 ;
18193 int arg4 = (int) wxDateTime::Inv_Month ;
18194 int arg5 = (int) wxDateTime::Inv_Year ;
18195 bool result;
18196 PyObject * obj0 = 0 ;
18197 PyObject * obj1 = 0 ;
18198 PyObject * obj2 = 0 ;
18199 PyObject * obj3 = 0 ;
18200 PyObject * obj4 = 0 ;
18201 char *kwnames[] = {
18202 (char *) "self",(char *) "weekday",(char *) "n",(char *) "month",(char *) "year", NULL
18203 };
18204
18205 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DateTime_SetToWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
18206 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18207 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18208 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
18209 if (PyErr_Occurred()) SWIG_fail;
18210 if (obj2) {
18211 arg3 = (int) SWIG_AsInt(obj2);
18212 if (PyErr_Occurred()) SWIG_fail;
18213 }
18214 if (obj3) {
18215 arg4 = (wxDateTime::Month) SWIG_AsInt(obj3);
18216 if (PyErr_Occurred()) SWIG_fail;
18217 }
18218 if (obj4) {
18219 arg5 = (int) SWIG_AsInt(obj4);
18220 if (PyErr_Occurred()) SWIG_fail;
18221 }
18222 {
18223 PyThreadState* __tstate = wxPyBeginAllowThreads();
18224 result = (bool)(arg1)->SetToWeekDay((wxDateTime::WeekDay )arg2,arg3,(wxDateTime::Month )arg4,arg5);
18225
18226 wxPyEndAllowThreads(__tstate);
18227 if (PyErr_Occurred()) SWIG_fail;
18228 }
18229 {
18230 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18231 }
18232 return resultobj;
18233 fail:
18234 return NULL;
18235 }
18236
18237
18238 static PyObject *_wrap_DateTime_SetToLastWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18239 PyObject *resultobj;
18240 wxDateTime *arg1 = (wxDateTime *) 0 ;
18241 int arg2 ;
18242 int arg3 = (int) wxDateTime::Inv_Month ;
18243 int arg4 = (int) wxDateTime::Inv_Year ;
18244 bool result;
18245 PyObject * obj0 = 0 ;
18246 PyObject * obj1 = 0 ;
18247 PyObject * obj2 = 0 ;
18248 PyObject * obj3 = 0 ;
18249 char *kwnames[] = {
18250 (char *) "self",(char *) "weekday",(char *) "month",(char *) "year", NULL
18251 };
18252
18253 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_SetToLastWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18254 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18255 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18256 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
18257 if (PyErr_Occurred()) SWIG_fail;
18258 if (obj2) {
18259 arg3 = (wxDateTime::Month) SWIG_AsInt(obj2);
18260 if (PyErr_Occurred()) SWIG_fail;
18261 }
18262 if (obj3) {
18263 arg4 = (int) SWIG_AsInt(obj3);
18264 if (PyErr_Occurred()) SWIG_fail;
18265 }
18266 {
18267 PyThreadState* __tstate = wxPyBeginAllowThreads();
18268 result = (bool)(arg1)->SetToLastWeekDay((wxDateTime::WeekDay )arg2,(wxDateTime::Month )arg3,arg4);
18269
18270 wxPyEndAllowThreads(__tstate);
18271 if (PyErr_Occurred()) SWIG_fail;
18272 }
18273 {
18274 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18275 }
18276 return resultobj;
18277 fail:
18278 return NULL;
18279 }
18280
18281
18282 static PyObject *_wrap_DateTime_GetLastWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18283 PyObject *resultobj;
18284 wxDateTime *arg1 = (wxDateTime *) 0 ;
18285 int arg2 ;
18286 int arg3 = (int) wxDateTime::Inv_Month ;
18287 int arg4 = (int) wxDateTime::Inv_Year ;
18288 wxDateTime result;
18289 PyObject * obj0 = 0 ;
18290 PyObject * obj1 = 0 ;
18291 PyObject * obj2 = 0 ;
18292 PyObject * obj3 = 0 ;
18293 char *kwnames[] = {
18294 (char *) "self",(char *) "weekday",(char *) "month",(char *) "year", NULL
18295 };
18296
18297 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_GetLastWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18298 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18299 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18300 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
18301 if (PyErr_Occurred()) SWIG_fail;
18302 if (obj2) {
18303 arg3 = (wxDateTime::Month) SWIG_AsInt(obj2);
18304 if (PyErr_Occurred()) SWIG_fail;
18305 }
18306 if (obj3) {
18307 arg4 = (int) SWIG_AsInt(obj3);
18308 if (PyErr_Occurred()) SWIG_fail;
18309 }
18310 {
18311 PyThreadState* __tstate = wxPyBeginAllowThreads();
18312 result = (arg1)->GetLastWeekDay((wxDateTime::WeekDay )arg2,(wxDateTime::Month )arg3,arg4);
18313
18314 wxPyEndAllowThreads(__tstate);
18315 if (PyErr_Occurred()) SWIG_fail;
18316 }
18317 {
18318 wxDateTime * resultptr;
18319 resultptr = new wxDateTime((wxDateTime &) result);
18320 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18321 }
18322 return resultobj;
18323 fail:
18324 return NULL;
18325 }
18326
18327
18328 static PyObject *_wrap_DateTime_SetToTheWeek(PyObject *self, PyObject *args, PyObject *kwargs) {
18329 PyObject *resultobj;
18330 wxDateTime *arg1 = (wxDateTime *) 0 ;
18331 int arg2 ;
18332 int arg3 = (int) wxDateTime::Mon ;
18333 int arg4 = (int) wxDateTime::Monday_First ;
18334 bool result;
18335 PyObject * obj0 = 0 ;
18336 PyObject * obj1 = 0 ;
18337 PyObject * obj2 = 0 ;
18338 PyObject * obj3 = 0 ;
18339 char *kwnames[] = {
18340 (char *) "self",(char *) "numWeek",(char *) "weekday",(char *) "flags", NULL
18341 };
18342
18343 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_SetToTheWeek",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18344 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18345 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18346 arg2 = (int) SWIG_AsInt(obj1);
18347 if (PyErr_Occurred()) SWIG_fail;
18348 if (obj2) {
18349 arg3 = (wxDateTime::WeekDay) SWIG_AsInt(obj2);
18350 if (PyErr_Occurred()) SWIG_fail;
18351 }
18352 if (obj3) {
18353 arg4 = (wxDateTime::WeekFlags) SWIG_AsInt(obj3);
18354 if (PyErr_Occurred()) SWIG_fail;
18355 }
18356 {
18357 PyThreadState* __tstate = wxPyBeginAllowThreads();
18358 result = (bool)(arg1)->SetToTheWeek(arg2,(wxDateTime::WeekDay )arg3,(wxDateTime::WeekFlags )arg4);
18359
18360 wxPyEndAllowThreads(__tstate);
18361 if (PyErr_Occurred()) SWIG_fail;
18362 }
18363 {
18364 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18365 }
18366 return resultobj;
18367 fail:
18368 return NULL;
18369 }
18370
18371
18372 static PyObject *_wrap_DateTime_GetWeek(PyObject *self, PyObject *args, PyObject *kwargs) {
18373 PyObject *resultobj;
18374 wxDateTime *arg1 = (wxDateTime *) 0 ;
18375 int arg2 ;
18376 int arg3 = (int) wxDateTime::Mon ;
18377 int arg4 = (int) wxDateTime::Monday_First ;
18378 wxDateTime result;
18379 PyObject * obj0 = 0 ;
18380 PyObject * obj1 = 0 ;
18381 PyObject * obj2 = 0 ;
18382 PyObject * obj3 = 0 ;
18383 char *kwnames[] = {
18384 (char *) "self",(char *) "numWeek",(char *) "weekday",(char *) "flags", NULL
18385 };
18386
18387 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_GetWeek",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18388 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18389 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18390 arg2 = (int) SWIG_AsInt(obj1);
18391 if (PyErr_Occurred()) SWIG_fail;
18392 if (obj2) {
18393 arg3 = (wxDateTime::WeekDay) SWIG_AsInt(obj2);
18394 if (PyErr_Occurred()) SWIG_fail;
18395 }
18396 if (obj3) {
18397 arg4 = (wxDateTime::WeekFlags) SWIG_AsInt(obj3);
18398 if (PyErr_Occurred()) SWIG_fail;
18399 }
18400 {
18401 PyThreadState* __tstate = wxPyBeginAllowThreads();
18402 result = (arg1)->GetWeek(arg2,(wxDateTime::WeekDay )arg3,(wxDateTime::WeekFlags )arg4);
18403
18404 wxPyEndAllowThreads(__tstate);
18405 if (PyErr_Occurred()) SWIG_fail;
18406 }
18407 {
18408 wxDateTime * resultptr;
18409 resultptr = new wxDateTime((wxDateTime &) result);
18410 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18411 }
18412 return resultobj;
18413 fail:
18414 return NULL;
18415 }
18416
18417
18418 static PyObject *_wrap_DateTime_SetToLastMonthDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18419 PyObject *resultobj;
18420 wxDateTime *arg1 = (wxDateTime *) 0 ;
18421 int arg2 = (int) wxDateTime::Inv_Month ;
18422 int arg3 = (int) wxDateTime::Inv_Year ;
18423 wxDateTime *result;
18424 PyObject * obj0 = 0 ;
18425 PyObject * obj1 = 0 ;
18426 PyObject * obj2 = 0 ;
18427 char *kwnames[] = {
18428 (char *) "self",(char *) "month",(char *) "year", NULL
18429 };
18430
18431 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_SetToLastMonthDay",kwnames,&obj0,&obj1,&obj2)) goto fail;
18432 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18433 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18434 if (obj1) {
18435 arg2 = (wxDateTime::Month) SWIG_AsInt(obj1);
18436 if (PyErr_Occurred()) SWIG_fail;
18437 }
18438 if (obj2) {
18439 arg3 = (int) SWIG_AsInt(obj2);
18440 if (PyErr_Occurred()) SWIG_fail;
18441 }
18442 {
18443 PyThreadState* __tstate = wxPyBeginAllowThreads();
18444 {
18445 wxDateTime &_result_ref = (arg1)->SetToLastMonthDay((wxDateTime::Month )arg2,arg3);
18446 result = (wxDateTime *) &_result_ref;
18447 }
18448
18449 wxPyEndAllowThreads(__tstate);
18450 if (PyErr_Occurred()) SWIG_fail;
18451 }
18452 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18453 return resultobj;
18454 fail:
18455 return NULL;
18456 }
18457
18458
18459 static PyObject *_wrap_DateTime_GetLastMonthDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18460 PyObject *resultobj;
18461 wxDateTime *arg1 = (wxDateTime *) 0 ;
18462 int arg2 = (int) wxDateTime::Inv_Month ;
18463 int arg3 = (int) wxDateTime::Inv_Year ;
18464 wxDateTime result;
18465 PyObject * obj0 = 0 ;
18466 PyObject * obj1 = 0 ;
18467 PyObject * obj2 = 0 ;
18468 char *kwnames[] = {
18469 (char *) "self",(char *) "month",(char *) "year", NULL
18470 };
18471
18472 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetLastMonthDay",kwnames,&obj0,&obj1,&obj2)) goto fail;
18473 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18474 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18475 if (obj1) {
18476 arg2 = (wxDateTime::Month) SWIG_AsInt(obj1);
18477 if (PyErr_Occurred()) SWIG_fail;
18478 }
18479 if (obj2) {
18480 arg3 = (int) SWIG_AsInt(obj2);
18481 if (PyErr_Occurred()) SWIG_fail;
18482 }
18483 {
18484 PyThreadState* __tstate = wxPyBeginAllowThreads();
18485 result = (arg1)->GetLastMonthDay((wxDateTime::Month )arg2,arg3);
18486
18487 wxPyEndAllowThreads(__tstate);
18488 if (PyErr_Occurred()) SWIG_fail;
18489 }
18490 {
18491 wxDateTime * resultptr;
18492 resultptr = new wxDateTime((wxDateTime &) result);
18493 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18494 }
18495 return resultobj;
18496 fail:
18497 return NULL;
18498 }
18499
18500
18501 static PyObject *_wrap_DateTime_SetToYearDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18502 PyObject *resultobj;
18503 wxDateTime *arg1 = (wxDateTime *) 0 ;
18504 int arg2 ;
18505 wxDateTime *result;
18506 PyObject * obj0 = 0 ;
18507 PyObject * obj1 = 0 ;
18508 char *kwnames[] = {
18509 (char *) "self",(char *) "yday", NULL
18510 };
18511
18512 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToYearDay",kwnames,&obj0,&obj1)) goto fail;
18513 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18514 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18515 arg2 = (int) SWIG_AsInt(obj1);
18516 if (PyErr_Occurred()) SWIG_fail;
18517 {
18518 PyThreadState* __tstate = wxPyBeginAllowThreads();
18519 {
18520 wxDateTime &_result_ref = (arg1)->SetToYearDay(arg2);
18521 result = (wxDateTime *) &_result_ref;
18522 }
18523
18524 wxPyEndAllowThreads(__tstate);
18525 if (PyErr_Occurred()) SWIG_fail;
18526 }
18527 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18528 return resultobj;
18529 fail:
18530 return NULL;
18531 }
18532
18533
18534 static PyObject *_wrap_DateTime_GetYearDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18535 PyObject *resultobj;
18536 wxDateTime *arg1 = (wxDateTime *) 0 ;
18537 int arg2 ;
18538 wxDateTime result;
18539 PyObject * obj0 = 0 ;
18540 PyObject * obj1 = 0 ;
18541 char *kwnames[] = {
18542 (char *) "self",(char *) "yday", NULL
18543 };
18544
18545 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetYearDay",kwnames,&obj0,&obj1)) goto fail;
18546 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18547 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18548 arg2 = (int) SWIG_AsInt(obj1);
18549 if (PyErr_Occurred()) SWIG_fail;
18550 {
18551 PyThreadState* __tstate = wxPyBeginAllowThreads();
18552 result = (arg1)->GetYearDay(arg2);
18553
18554 wxPyEndAllowThreads(__tstate);
18555 if (PyErr_Occurred()) SWIG_fail;
18556 }
18557 {
18558 wxDateTime * resultptr;
18559 resultptr = new wxDateTime((wxDateTime &) result);
18560 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18561 }
18562 return resultobj;
18563 fail:
18564 return NULL;
18565 }
18566
18567
18568 static PyObject *_wrap_DateTime_GetJulianDayNumber(PyObject *self, PyObject *args, PyObject *kwargs) {
18569 PyObject *resultobj;
18570 wxDateTime *arg1 = (wxDateTime *) 0 ;
18571 double result;
18572 PyObject * obj0 = 0 ;
18573 char *kwnames[] = {
18574 (char *) "self", NULL
18575 };
18576
18577 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetJulianDayNumber",kwnames,&obj0)) goto fail;
18578 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18579 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18580 {
18581 PyThreadState* __tstate = wxPyBeginAllowThreads();
18582 result = (double)(arg1)->GetJulianDayNumber();
18583
18584 wxPyEndAllowThreads(__tstate);
18585 if (PyErr_Occurred()) SWIG_fail;
18586 }
18587 resultobj = SWIG_FromDouble((double)result);
18588 return resultobj;
18589 fail:
18590 return NULL;
18591 }
18592
18593
18594 static PyObject *_wrap_DateTime_GetJDN(PyObject *self, PyObject *args, PyObject *kwargs) {
18595 PyObject *resultobj;
18596 wxDateTime *arg1 = (wxDateTime *) 0 ;
18597 double result;
18598 PyObject * obj0 = 0 ;
18599 char *kwnames[] = {
18600 (char *) "self", NULL
18601 };
18602
18603 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetJDN",kwnames,&obj0)) goto fail;
18604 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18605 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18606 {
18607 PyThreadState* __tstate = wxPyBeginAllowThreads();
18608 result = (double)(arg1)->GetJDN();
18609
18610 wxPyEndAllowThreads(__tstate);
18611 if (PyErr_Occurred()) SWIG_fail;
18612 }
18613 resultobj = SWIG_FromDouble((double)result);
18614 return resultobj;
18615 fail:
18616 return NULL;
18617 }
18618
18619
18620 static PyObject *_wrap_DateTime_GetModifiedJulianDayNumber(PyObject *self, PyObject *args, PyObject *kwargs) {
18621 PyObject *resultobj;
18622 wxDateTime *arg1 = (wxDateTime *) 0 ;
18623 double result;
18624 PyObject * obj0 = 0 ;
18625 char *kwnames[] = {
18626 (char *) "self", NULL
18627 };
18628
18629 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetModifiedJulianDayNumber",kwnames,&obj0)) goto fail;
18630 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18631 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18632 {
18633 PyThreadState* __tstate = wxPyBeginAllowThreads();
18634 result = (double)((wxDateTime const *)arg1)->GetModifiedJulianDayNumber();
18635
18636 wxPyEndAllowThreads(__tstate);
18637 if (PyErr_Occurred()) SWIG_fail;
18638 }
18639 resultobj = SWIG_FromDouble((double)result);
18640 return resultobj;
18641 fail:
18642 return NULL;
18643 }
18644
18645
18646 static PyObject *_wrap_DateTime_GetMJD(PyObject *self, PyObject *args, PyObject *kwargs) {
18647 PyObject *resultobj;
18648 wxDateTime *arg1 = (wxDateTime *) 0 ;
18649 double result;
18650 PyObject * obj0 = 0 ;
18651 char *kwnames[] = {
18652 (char *) "self", NULL
18653 };
18654
18655 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetMJD",kwnames,&obj0)) goto fail;
18656 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18657 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18658 {
18659 PyThreadState* __tstate = wxPyBeginAllowThreads();
18660 result = (double)(arg1)->GetMJD();
18661
18662 wxPyEndAllowThreads(__tstate);
18663 if (PyErr_Occurred()) SWIG_fail;
18664 }
18665 resultobj = SWIG_FromDouble((double)result);
18666 return resultobj;
18667 fail:
18668 return NULL;
18669 }
18670
18671
18672 static PyObject *_wrap_DateTime_GetRataDie(PyObject *self, PyObject *args, PyObject *kwargs) {
18673 PyObject *resultobj;
18674 wxDateTime *arg1 = (wxDateTime *) 0 ;
18675 double result;
18676 PyObject * obj0 = 0 ;
18677 char *kwnames[] = {
18678 (char *) "self", NULL
18679 };
18680
18681 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetRataDie",kwnames,&obj0)) goto fail;
18682 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18683 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18684 {
18685 PyThreadState* __tstate = wxPyBeginAllowThreads();
18686 result = (double)(arg1)->GetRataDie();
18687
18688 wxPyEndAllowThreads(__tstate);
18689 if (PyErr_Occurred()) SWIG_fail;
18690 }
18691 resultobj = SWIG_FromDouble((double)result);
18692 return resultobj;
18693 fail:
18694 return NULL;
18695 }
18696
18697
18698 static PyObject *_wrap_DateTime_ToTimezone(PyObject *self, PyObject *args, PyObject *kwargs) {
18699 PyObject *resultobj;
18700 wxDateTime *arg1 = (wxDateTime *) 0 ;
18701 wxDateTime::TimeZone *arg2 = 0 ;
18702 bool arg3 = (bool) False ;
18703 wxDateTime result;
18704 bool temp2 = False ;
18705 PyObject * obj0 = 0 ;
18706 PyObject * obj1 = 0 ;
18707 PyObject * obj2 = 0 ;
18708 char *kwnames[] = {
18709 (char *) "self",(char *) "tz",(char *) "noDST", NULL
18710 };
18711
18712 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_ToTimezone",kwnames,&obj0,&obj1,&obj2)) goto fail;
18713 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18714 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18715 {
18716 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
18717 temp2 = True;
18718 }
18719 if (obj2) {
18720 arg3 = (bool) SWIG_AsBool(obj2);
18721 if (PyErr_Occurred()) SWIG_fail;
18722 }
18723 {
18724 PyThreadState* __tstate = wxPyBeginAllowThreads();
18725 result = (arg1)->ToTimezone((wxDateTime::TimeZone const &)*arg2,arg3);
18726
18727 wxPyEndAllowThreads(__tstate);
18728 if (PyErr_Occurred()) SWIG_fail;
18729 }
18730 {
18731 wxDateTime * resultptr;
18732 resultptr = new wxDateTime((wxDateTime &) result);
18733 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18734 }
18735 {
18736 if (temp2) delete arg2;
18737 }
18738 return resultobj;
18739 fail:
18740 {
18741 if (temp2) delete arg2;
18742 }
18743 return NULL;
18744 }
18745
18746
18747 static PyObject *_wrap_DateTime_MakeTimezone(PyObject *self, PyObject *args, PyObject *kwargs) {
18748 PyObject *resultobj;
18749 wxDateTime *arg1 = (wxDateTime *) 0 ;
18750 wxDateTime::TimeZone *arg2 = 0 ;
18751 bool arg3 = (bool) False ;
18752 wxDateTime *result;
18753 bool temp2 = False ;
18754 PyObject * obj0 = 0 ;
18755 PyObject * obj1 = 0 ;
18756 PyObject * obj2 = 0 ;
18757 char *kwnames[] = {
18758 (char *) "self",(char *) "tz",(char *) "noDST", NULL
18759 };
18760
18761 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_MakeTimezone",kwnames,&obj0,&obj1,&obj2)) goto fail;
18762 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18763 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18764 {
18765 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
18766 temp2 = True;
18767 }
18768 if (obj2) {
18769 arg3 = (bool) SWIG_AsBool(obj2);
18770 if (PyErr_Occurred()) SWIG_fail;
18771 }
18772 {
18773 PyThreadState* __tstate = wxPyBeginAllowThreads();
18774 {
18775 wxDateTime &_result_ref = (arg1)->MakeTimezone((wxDateTime::TimeZone const &)*arg2,arg3);
18776 result = (wxDateTime *) &_result_ref;
18777 }
18778
18779 wxPyEndAllowThreads(__tstate);
18780 if (PyErr_Occurred()) SWIG_fail;
18781 }
18782 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18783 {
18784 if (temp2) delete arg2;
18785 }
18786 return resultobj;
18787 fail:
18788 {
18789 if (temp2) delete arg2;
18790 }
18791 return NULL;
18792 }
18793
18794
18795 static PyObject *_wrap_DateTime_ToGMT(PyObject *self, PyObject *args, PyObject *kwargs) {
18796 PyObject *resultobj;
18797 wxDateTime *arg1 = (wxDateTime *) 0 ;
18798 bool arg2 = (bool) False ;
18799 wxDateTime result;
18800 PyObject * obj0 = 0 ;
18801 PyObject * obj1 = 0 ;
18802 char *kwnames[] = {
18803 (char *) "self",(char *) "noDST", NULL
18804 };
18805
18806 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_ToGMT",kwnames,&obj0,&obj1)) goto fail;
18807 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18808 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18809 if (obj1) {
18810 arg2 = (bool) SWIG_AsBool(obj1);
18811 if (PyErr_Occurred()) SWIG_fail;
18812 }
18813 {
18814 PyThreadState* __tstate = wxPyBeginAllowThreads();
18815 result = (arg1)->ToGMT(arg2);
18816
18817 wxPyEndAllowThreads(__tstate);
18818 if (PyErr_Occurred()) SWIG_fail;
18819 }
18820 {
18821 wxDateTime * resultptr;
18822 resultptr = new wxDateTime((wxDateTime &) result);
18823 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18824 }
18825 return resultobj;
18826 fail:
18827 return NULL;
18828 }
18829
18830
18831 static PyObject *_wrap_DateTime_MakeGMT(PyObject *self, PyObject *args, PyObject *kwargs) {
18832 PyObject *resultobj;
18833 wxDateTime *arg1 = (wxDateTime *) 0 ;
18834 bool arg2 = (bool) False ;
18835 wxDateTime *result;
18836 PyObject * obj0 = 0 ;
18837 PyObject * obj1 = 0 ;
18838 char *kwnames[] = {
18839 (char *) "self",(char *) "noDST", NULL
18840 };
18841
18842 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_MakeGMT",kwnames,&obj0,&obj1)) goto fail;
18843 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18844 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18845 if (obj1) {
18846 arg2 = (bool) SWIG_AsBool(obj1);
18847 if (PyErr_Occurred()) SWIG_fail;
18848 }
18849 {
18850 PyThreadState* __tstate = wxPyBeginAllowThreads();
18851 {
18852 wxDateTime &_result_ref = (arg1)->MakeGMT(arg2);
18853 result = (wxDateTime *) &_result_ref;
18854 }
18855
18856 wxPyEndAllowThreads(__tstate);
18857 if (PyErr_Occurred()) SWIG_fail;
18858 }
18859 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18860 return resultobj;
18861 fail:
18862 return NULL;
18863 }
18864
18865
18866 static PyObject *_wrap_DateTime_IsDST(PyObject *self, PyObject *args, PyObject *kwargs) {
18867 PyObject *resultobj;
18868 wxDateTime *arg1 = (wxDateTime *) 0 ;
18869 int arg2 = (int) wxDateTime::Country_Default ;
18870 int result;
18871 PyObject * obj0 = 0 ;
18872 PyObject * obj1 = 0 ;
18873 char *kwnames[] = {
18874 (char *) "self",(char *) "country", NULL
18875 };
18876
18877 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_IsDST",kwnames,&obj0,&obj1)) goto fail;
18878 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18879 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18880 if (obj1) {
18881 arg2 = (wxDateTime::Country) SWIG_AsInt(obj1);
18882 if (PyErr_Occurred()) SWIG_fail;
18883 }
18884 {
18885 PyThreadState* __tstate = wxPyBeginAllowThreads();
18886 result = (int)(arg1)->IsDST((wxDateTime::Country )arg2);
18887
18888 wxPyEndAllowThreads(__tstate);
18889 if (PyErr_Occurred()) SWIG_fail;
18890 }
18891 resultobj = SWIG_FromInt((int)result);
18892 return resultobj;
18893 fail:
18894 return NULL;
18895 }
18896
18897
18898 static PyObject *_wrap_DateTime_IsValid(PyObject *self, PyObject *args, PyObject *kwargs) {
18899 PyObject *resultobj;
18900 wxDateTime *arg1 = (wxDateTime *) 0 ;
18901 bool result;
18902 PyObject * obj0 = 0 ;
18903 char *kwnames[] = {
18904 (char *) "self", NULL
18905 };
18906
18907 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_IsValid",kwnames,&obj0)) goto fail;
18908 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18909 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18910 {
18911 PyThreadState* __tstate = wxPyBeginAllowThreads();
18912 result = (bool)((wxDateTime const *)arg1)->IsValid();
18913
18914 wxPyEndAllowThreads(__tstate);
18915 if (PyErr_Occurred()) SWIG_fail;
18916 }
18917 {
18918 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18919 }
18920 return resultobj;
18921 fail:
18922 return NULL;
18923 }
18924
18925
18926 static PyObject *_wrap_DateTime_GetTicks(PyObject *self, PyObject *args, PyObject *kwargs) {
18927 PyObject *resultobj;
18928 wxDateTime *arg1 = (wxDateTime *) 0 ;
18929 time_t result;
18930 PyObject * obj0 = 0 ;
18931 char *kwnames[] = {
18932 (char *) "self", NULL
18933 };
18934
18935 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetTicks",kwnames,&obj0)) goto fail;
18936 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18937 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18938 {
18939 PyThreadState* __tstate = wxPyBeginAllowThreads();
18940 result = (time_t)((wxDateTime const *)arg1)->GetTicks();
18941
18942 wxPyEndAllowThreads(__tstate);
18943 if (PyErr_Occurred()) SWIG_fail;
18944 }
18945 resultobj = SWIG_FromUnsignedInt((unsigned int)result);
18946 return resultobj;
18947 fail:
18948 return NULL;
18949 }
18950
18951
18952 static PyObject *_wrap_DateTime_GetYear(PyObject *self, PyObject *args, PyObject *kwargs) {
18953 PyObject *resultobj;
18954 wxDateTime *arg1 = (wxDateTime *) 0 ;
18955 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
18956 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
18957 int result;
18958 bool temp2 = False ;
18959 PyObject * obj0 = 0 ;
18960 PyObject * obj1 = 0 ;
18961 char *kwnames[] = {
18962 (char *) "self",(char *) "tz", NULL
18963 };
18964
18965 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetYear",kwnames,&obj0,&obj1)) goto fail;
18966 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18967 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18968 if (obj1) {
18969 {
18970 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
18971 temp2 = True;
18972 }
18973 }
18974 {
18975 PyThreadState* __tstate = wxPyBeginAllowThreads();
18976 result = (int)((wxDateTime const *)arg1)->GetYear((wxDateTime::TimeZone const &)*arg2);
18977
18978 wxPyEndAllowThreads(__tstate);
18979 if (PyErr_Occurred()) SWIG_fail;
18980 }
18981 resultobj = SWIG_FromInt((int)result);
18982 {
18983 if (temp2) delete arg2;
18984 }
18985 return resultobj;
18986 fail:
18987 {
18988 if (temp2) delete arg2;
18989 }
18990 return NULL;
18991 }
18992
18993
18994 static PyObject *_wrap_DateTime_GetMonth(PyObject *self, PyObject *args, PyObject *kwargs) {
18995 PyObject *resultobj;
18996 wxDateTime *arg1 = (wxDateTime *) 0 ;
18997 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
18998 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
18999 int result;
19000 bool temp2 = False ;
19001 PyObject * obj0 = 0 ;
19002 PyObject * obj1 = 0 ;
19003 char *kwnames[] = {
19004 (char *) "self",(char *) "tz", NULL
19005 };
19006
19007 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMonth",kwnames,&obj0,&obj1)) goto fail;
19008 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19009 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19010 if (obj1) {
19011 {
19012 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19013 temp2 = True;
19014 }
19015 }
19016 {
19017 PyThreadState* __tstate = wxPyBeginAllowThreads();
19018 result = (int)((wxDateTime const *)arg1)->GetMonth((wxDateTime::TimeZone const &)*arg2);
19019
19020 wxPyEndAllowThreads(__tstate);
19021 if (PyErr_Occurred()) SWIG_fail;
19022 }
19023 resultobj = SWIG_FromInt((int)result);
19024 {
19025 if (temp2) delete arg2;
19026 }
19027 return resultobj;
19028 fail:
19029 {
19030 if (temp2) delete arg2;
19031 }
19032 return NULL;
19033 }
19034
19035
19036 static PyObject *_wrap_DateTime_GetDay(PyObject *self, PyObject *args, PyObject *kwargs) {
19037 PyObject *resultobj;
19038 wxDateTime *arg1 = (wxDateTime *) 0 ;
19039 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19040 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19041 int result;
19042 bool temp2 = False ;
19043 PyObject * obj0 = 0 ;
19044 PyObject * obj1 = 0 ;
19045 char *kwnames[] = {
19046 (char *) "self",(char *) "tz", NULL
19047 };
19048
19049 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetDay",kwnames,&obj0,&obj1)) goto fail;
19050 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19051 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19052 if (obj1) {
19053 {
19054 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19055 temp2 = True;
19056 }
19057 }
19058 {
19059 PyThreadState* __tstate = wxPyBeginAllowThreads();
19060 result = (int)((wxDateTime const *)arg1)->GetDay((wxDateTime::TimeZone const &)*arg2);
19061
19062 wxPyEndAllowThreads(__tstate);
19063 if (PyErr_Occurred()) SWIG_fail;
19064 }
19065 resultobj = SWIG_FromInt((int)result);
19066 {
19067 if (temp2) delete arg2;
19068 }
19069 return resultobj;
19070 fail:
19071 {
19072 if (temp2) delete arg2;
19073 }
19074 return NULL;
19075 }
19076
19077
19078 static PyObject *_wrap_DateTime_GetWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
19079 PyObject *resultobj;
19080 wxDateTime *arg1 = (wxDateTime *) 0 ;
19081 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19082 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19083 int result;
19084 bool temp2 = False ;
19085 PyObject * obj0 = 0 ;
19086 PyObject * obj1 = 0 ;
19087 char *kwnames[] = {
19088 (char *) "self",(char *) "tz", NULL
19089 };
19090
19091 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetWeekDay",kwnames,&obj0,&obj1)) goto fail;
19092 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19093 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19094 if (obj1) {
19095 {
19096 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19097 temp2 = True;
19098 }
19099 }
19100 {
19101 PyThreadState* __tstate = wxPyBeginAllowThreads();
19102 result = (int)((wxDateTime const *)arg1)->GetWeekDay((wxDateTime::TimeZone const &)*arg2);
19103
19104 wxPyEndAllowThreads(__tstate);
19105 if (PyErr_Occurred()) SWIG_fail;
19106 }
19107 resultobj = SWIG_FromInt((int)result);
19108 {
19109 if (temp2) delete arg2;
19110 }
19111 return resultobj;
19112 fail:
19113 {
19114 if (temp2) delete arg2;
19115 }
19116 return NULL;
19117 }
19118
19119
19120 static PyObject *_wrap_DateTime_GetHour(PyObject *self, PyObject *args, PyObject *kwargs) {
19121 PyObject *resultobj;
19122 wxDateTime *arg1 = (wxDateTime *) 0 ;
19123 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19124 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19125 int result;
19126 bool temp2 = False ;
19127 PyObject * obj0 = 0 ;
19128 PyObject * obj1 = 0 ;
19129 char *kwnames[] = {
19130 (char *) "self",(char *) "tz", NULL
19131 };
19132
19133 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetHour",kwnames,&obj0,&obj1)) goto fail;
19134 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19135 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19136 if (obj1) {
19137 {
19138 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19139 temp2 = True;
19140 }
19141 }
19142 {
19143 PyThreadState* __tstate = wxPyBeginAllowThreads();
19144 result = (int)((wxDateTime const *)arg1)->GetHour((wxDateTime::TimeZone const &)*arg2);
19145
19146 wxPyEndAllowThreads(__tstate);
19147 if (PyErr_Occurred()) SWIG_fail;
19148 }
19149 resultobj = SWIG_FromInt((int)result);
19150 {
19151 if (temp2) delete arg2;
19152 }
19153 return resultobj;
19154 fail:
19155 {
19156 if (temp2) delete arg2;
19157 }
19158 return NULL;
19159 }
19160
19161
19162 static PyObject *_wrap_DateTime_GetMinute(PyObject *self, PyObject *args, PyObject *kwargs) {
19163 PyObject *resultobj;
19164 wxDateTime *arg1 = (wxDateTime *) 0 ;
19165 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19166 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19167 int result;
19168 bool temp2 = False ;
19169 PyObject * obj0 = 0 ;
19170 PyObject * obj1 = 0 ;
19171 char *kwnames[] = {
19172 (char *) "self",(char *) "tz", NULL
19173 };
19174
19175 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMinute",kwnames,&obj0,&obj1)) goto fail;
19176 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19177 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19178 if (obj1) {
19179 {
19180 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19181 temp2 = True;
19182 }
19183 }
19184 {
19185 PyThreadState* __tstate = wxPyBeginAllowThreads();
19186 result = (int)((wxDateTime const *)arg1)->GetMinute((wxDateTime::TimeZone const &)*arg2);
19187
19188 wxPyEndAllowThreads(__tstate);
19189 if (PyErr_Occurred()) SWIG_fail;
19190 }
19191 resultobj = SWIG_FromInt((int)result);
19192 {
19193 if (temp2) delete arg2;
19194 }
19195 return resultobj;
19196 fail:
19197 {
19198 if (temp2) delete arg2;
19199 }
19200 return NULL;
19201 }
19202
19203
19204 static PyObject *_wrap_DateTime_GetSecond(PyObject *self, PyObject *args, PyObject *kwargs) {
19205 PyObject *resultobj;
19206 wxDateTime *arg1 = (wxDateTime *) 0 ;
19207 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19208 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19209 int result;
19210 bool temp2 = False ;
19211 PyObject * obj0 = 0 ;
19212 PyObject * obj1 = 0 ;
19213 char *kwnames[] = {
19214 (char *) "self",(char *) "tz", NULL
19215 };
19216
19217 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetSecond",kwnames,&obj0,&obj1)) goto fail;
19218 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19219 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19220 if (obj1) {
19221 {
19222 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19223 temp2 = True;
19224 }
19225 }
19226 {
19227 PyThreadState* __tstate = wxPyBeginAllowThreads();
19228 result = (int)((wxDateTime const *)arg1)->GetSecond((wxDateTime::TimeZone const &)*arg2);
19229
19230 wxPyEndAllowThreads(__tstate);
19231 if (PyErr_Occurred()) SWIG_fail;
19232 }
19233 resultobj = SWIG_FromInt((int)result);
19234 {
19235 if (temp2) delete arg2;
19236 }
19237 return resultobj;
19238 fail:
19239 {
19240 if (temp2) delete arg2;
19241 }
19242 return NULL;
19243 }
19244
19245
19246 static PyObject *_wrap_DateTime_GetMillisecond(PyObject *self, PyObject *args, PyObject *kwargs) {
19247 PyObject *resultobj;
19248 wxDateTime *arg1 = (wxDateTime *) 0 ;
19249 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19250 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19251 int result;
19252 bool temp2 = False ;
19253 PyObject * obj0 = 0 ;
19254 PyObject * obj1 = 0 ;
19255 char *kwnames[] = {
19256 (char *) "self",(char *) "tz", NULL
19257 };
19258
19259 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMillisecond",kwnames,&obj0,&obj1)) goto fail;
19260 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19261 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19262 if (obj1) {
19263 {
19264 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19265 temp2 = True;
19266 }
19267 }
19268 {
19269 PyThreadState* __tstate = wxPyBeginAllowThreads();
19270 result = (int)((wxDateTime const *)arg1)->GetMillisecond((wxDateTime::TimeZone const &)*arg2);
19271
19272 wxPyEndAllowThreads(__tstate);
19273 if (PyErr_Occurred()) SWIG_fail;
19274 }
19275 resultobj = SWIG_FromInt((int)result);
19276 {
19277 if (temp2) delete arg2;
19278 }
19279 return resultobj;
19280 fail:
19281 {
19282 if (temp2) delete arg2;
19283 }
19284 return NULL;
19285 }
19286
19287
19288 static PyObject *_wrap_DateTime_GetDayOfYear(PyObject *self, PyObject *args, PyObject *kwargs) {
19289 PyObject *resultobj;
19290 wxDateTime *arg1 = (wxDateTime *) 0 ;
19291 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19292 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19293 int result;
19294 bool temp2 = False ;
19295 PyObject * obj0 = 0 ;
19296 PyObject * obj1 = 0 ;
19297 char *kwnames[] = {
19298 (char *) "self",(char *) "tz", NULL
19299 };
19300
19301 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetDayOfYear",kwnames,&obj0,&obj1)) goto fail;
19302 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19303 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19304 if (obj1) {
19305 {
19306 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19307 temp2 = True;
19308 }
19309 }
19310 {
19311 PyThreadState* __tstate = wxPyBeginAllowThreads();
19312 result = (int)((wxDateTime const *)arg1)->GetDayOfYear((wxDateTime::TimeZone const &)*arg2);
19313
19314 wxPyEndAllowThreads(__tstate);
19315 if (PyErr_Occurred()) SWIG_fail;
19316 }
19317 resultobj = SWIG_FromInt((int)result);
19318 {
19319 if (temp2) delete arg2;
19320 }
19321 return resultobj;
19322 fail:
19323 {
19324 if (temp2) delete arg2;
19325 }
19326 return NULL;
19327 }
19328
19329
19330 static PyObject *_wrap_DateTime_GetWeekOfYear(PyObject *self, PyObject *args, PyObject *kwargs) {
19331 PyObject *resultobj;
19332 wxDateTime *arg1 = (wxDateTime *) 0 ;
19333 int arg2 = (int) wxDateTime::Monday_First ;
19334 wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ;
19335 wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ;
19336 int result;
19337 bool temp3 = False ;
19338 PyObject * obj0 = 0 ;
19339 PyObject * obj1 = 0 ;
19340 PyObject * obj2 = 0 ;
19341 char *kwnames[] = {
19342 (char *) "self",(char *) "flags",(char *) "tz", NULL
19343 };
19344
19345 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetWeekOfYear",kwnames,&obj0,&obj1,&obj2)) goto fail;
19346 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19347 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19348 if (obj1) {
19349 arg2 = (wxDateTime::WeekFlags) SWIG_AsInt(obj1);
19350 if (PyErr_Occurred()) SWIG_fail;
19351 }
19352 if (obj2) {
19353 {
19354 arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2));
19355 temp3 = True;
19356 }
19357 }
19358 {
19359 PyThreadState* __tstate = wxPyBeginAllowThreads();
19360 result = (int)((wxDateTime const *)arg1)->GetWeekOfYear((wxDateTime::WeekFlags )arg2,(wxDateTime::TimeZone const &)*arg3);
19361
19362 wxPyEndAllowThreads(__tstate);
19363 if (PyErr_Occurred()) SWIG_fail;
19364 }
19365 resultobj = SWIG_FromInt((int)result);
19366 {
19367 if (temp3) delete arg3;
19368 }
19369 return resultobj;
19370 fail:
19371 {
19372 if (temp3) delete arg3;
19373 }
19374 return NULL;
19375 }
19376
19377
19378 static PyObject *_wrap_DateTime_GetWeekOfMonth(PyObject *self, PyObject *args, PyObject *kwargs) {
19379 PyObject *resultobj;
19380 wxDateTime *arg1 = (wxDateTime *) 0 ;
19381 int arg2 = (int) wxDateTime::Monday_First ;
19382 wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ;
19383 wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ;
19384 int result;
19385 bool temp3 = False ;
19386 PyObject * obj0 = 0 ;
19387 PyObject * obj1 = 0 ;
19388 PyObject * obj2 = 0 ;
19389 char *kwnames[] = {
19390 (char *) "self",(char *) "flags",(char *) "tz", NULL
19391 };
19392
19393 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetWeekOfMonth",kwnames,&obj0,&obj1,&obj2)) goto fail;
19394 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19395 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19396 if (obj1) {
19397 arg2 = (wxDateTime::WeekFlags) SWIG_AsInt(obj1);
19398 if (PyErr_Occurred()) SWIG_fail;
19399 }
19400 if (obj2) {
19401 {
19402 arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2));
19403 temp3 = True;
19404 }
19405 }
19406 {
19407 PyThreadState* __tstate = wxPyBeginAllowThreads();
19408 result = (int)((wxDateTime const *)arg1)->GetWeekOfMonth((wxDateTime::WeekFlags )arg2,(wxDateTime::TimeZone const &)*arg3);
19409
19410 wxPyEndAllowThreads(__tstate);
19411 if (PyErr_Occurred()) SWIG_fail;
19412 }
19413 resultobj = SWIG_FromInt((int)result);
19414 {
19415 if (temp3) delete arg3;
19416 }
19417 return resultobj;
19418 fail:
19419 {
19420 if (temp3) delete arg3;
19421 }
19422 return NULL;
19423 }
19424
19425
19426 static PyObject *_wrap_DateTime_IsWorkDay(PyObject *self, PyObject *args, PyObject *kwargs) {
19427 PyObject *resultobj;
19428 wxDateTime *arg1 = (wxDateTime *) 0 ;
19429 int arg2 = (int) wxDateTime::Country_Default ;
19430 bool result;
19431 PyObject * obj0 = 0 ;
19432 PyObject * obj1 = 0 ;
19433 char *kwnames[] = {
19434 (char *) "self",(char *) "country", NULL
19435 };
19436
19437 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_IsWorkDay",kwnames,&obj0,&obj1)) goto fail;
19438 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19439 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19440 if (obj1) {
19441 arg2 = (wxDateTime::Country) SWIG_AsInt(obj1);
19442 if (PyErr_Occurred()) SWIG_fail;
19443 }
19444 {
19445 PyThreadState* __tstate = wxPyBeginAllowThreads();
19446 result = (bool)((wxDateTime const *)arg1)->IsWorkDay((wxDateTime::Country )arg2);
19447
19448 wxPyEndAllowThreads(__tstate);
19449 if (PyErr_Occurred()) SWIG_fail;
19450 }
19451 {
19452 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19453 }
19454 return resultobj;
19455 fail:
19456 return NULL;
19457 }
19458
19459
19460 static PyObject *_wrap_DateTime_IsEqualTo(PyObject *self, PyObject *args, PyObject *kwargs) {
19461 PyObject *resultobj;
19462 wxDateTime *arg1 = (wxDateTime *) 0 ;
19463 wxDateTime *arg2 = 0 ;
19464 bool result;
19465 PyObject * obj0 = 0 ;
19466 PyObject * obj1 = 0 ;
19467 char *kwnames[] = {
19468 (char *) "self",(char *) "datetime", NULL
19469 };
19470
19471 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsEqualTo",kwnames,&obj0,&obj1)) goto fail;
19472 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19473 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19474 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19475 SWIG_POINTER_EXCEPTION | 0)) == -1)
19476 SWIG_fail;
19477 if (arg2 == NULL) {
19478 PyErr_SetString(PyExc_TypeError,"null reference");
19479 SWIG_fail;
19480 }
19481 {
19482 PyThreadState* __tstate = wxPyBeginAllowThreads();
19483 result = (bool)((wxDateTime const *)arg1)->IsEqualTo((wxDateTime const &)*arg2);
19484
19485 wxPyEndAllowThreads(__tstate);
19486 if (PyErr_Occurred()) SWIG_fail;
19487 }
19488 {
19489 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19490 }
19491 return resultobj;
19492 fail:
19493 return NULL;
19494 }
19495
19496
19497 static PyObject *_wrap_DateTime_IsEarlierThan(PyObject *self, PyObject *args, PyObject *kwargs) {
19498 PyObject *resultobj;
19499 wxDateTime *arg1 = (wxDateTime *) 0 ;
19500 wxDateTime *arg2 = 0 ;
19501 bool result;
19502 PyObject * obj0 = 0 ;
19503 PyObject * obj1 = 0 ;
19504 char *kwnames[] = {
19505 (char *) "self",(char *) "datetime", NULL
19506 };
19507
19508 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsEarlierThan",kwnames,&obj0,&obj1)) goto fail;
19509 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19510 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19511 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19512 SWIG_POINTER_EXCEPTION | 0)) == -1)
19513 SWIG_fail;
19514 if (arg2 == NULL) {
19515 PyErr_SetString(PyExc_TypeError,"null reference");
19516 SWIG_fail;
19517 }
19518 {
19519 PyThreadState* __tstate = wxPyBeginAllowThreads();
19520 result = (bool)((wxDateTime const *)arg1)->IsEarlierThan((wxDateTime const &)*arg2);
19521
19522 wxPyEndAllowThreads(__tstate);
19523 if (PyErr_Occurred()) SWIG_fail;
19524 }
19525 {
19526 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19527 }
19528 return resultobj;
19529 fail:
19530 return NULL;
19531 }
19532
19533
19534 static PyObject *_wrap_DateTime_IsLaterThan(PyObject *self, PyObject *args, PyObject *kwargs) {
19535 PyObject *resultobj;
19536 wxDateTime *arg1 = (wxDateTime *) 0 ;
19537 wxDateTime *arg2 = 0 ;
19538 bool result;
19539 PyObject * obj0 = 0 ;
19540 PyObject * obj1 = 0 ;
19541 char *kwnames[] = {
19542 (char *) "self",(char *) "datetime", NULL
19543 };
19544
19545 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsLaterThan",kwnames,&obj0,&obj1)) goto fail;
19546 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19547 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19548 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19549 SWIG_POINTER_EXCEPTION | 0)) == -1)
19550 SWIG_fail;
19551 if (arg2 == NULL) {
19552 PyErr_SetString(PyExc_TypeError,"null reference");
19553 SWIG_fail;
19554 }
19555 {
19556 PyThreadState* __tstate = wxPyBeginAllowThreads();
19557 result = (bool)((wxDateTime const *)arg1)->IsLaterThan((wxDateTime const &)*arg2);
19558
19559 wxPyEndAllowThreads(__tstate);
19560 if (PyErr_Occurred()) SWIG_fail;
19561 }
19562 {
19563 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19564 }
19565 return resultobj;
19566 fail:
19567 return NULL;
19568 }
19569
19570
19571 static PyObject *_wrap_DateTime_IsStrictlyBetween(PyObject *self, PyObject *args, PyObject *kwargs) {
19572 PyObject *resultobj;
19573 wxDateTime *arg1 = (wxDateTime *) 0 ;
19574 wxDateTime *arg2 = 0 ;
19575 wxDateTime *arg3 = 0 ;
19576 bool result;
19577 PyObject * obj0 = 0 ;
19578 PyObject * obj1 = 0 ;
19579 PyObject * obj2 = 0 ;
19580 char *kwnames[] = {
19581 (char *) "self",(char *) "t1",(char *) "t2", NULL
19582 };
19583
19584 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsStrictlyBetween",kwnames,&obj0,&obj1,&obj2)) goto fail;
19585 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19586 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19587 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19588 SWIG_POINTER_EXCEPTION | 0)) == -1)
19589 SWIG_fail;
19590 if (arg2 == NULL) {
19591 PyErr_SetString(PyExc_TypeError,"null reference");
19592 SWIG_fail;
19593 }
19594 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDateTime,
19595 SWIG_POINTER_EXCEPTION | 0)) == -1)
19596 SWIG_fail;
19597 if (arg3 == NULL) {
19598 PyErr_SetString(PyExc_TypeError,"null reference");
19599 SWIG_fail;
19600 }
19601 {
19602 PyThreadState* __tstate = wxPyBeginAllowThreads();
19603 result = (bool)((wxDateTime const *)arg1)->IsStrictlyBetween((wxDateTime const &)*arg2,(wxDateTime const &)*arg3);
19604
19605 wxPyEndAllowThreads(__tstate);
19606 if (PyErr_Occurred()) SWIG_fail;
19607 }
19608 {
19609 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19610 }
19611 return resultobj;
19612 fail:
19613 return NULL;
19614 }
19615
19616
19617 static PyObject *_wrap_DateTime_IsBetween(PyObject *self, PyObject *args, PyObject *kwargs) {
19618 PyObject *resultobj;
19619 wxDateTime *arg1 = (wxDateTime *) 0 ;
19620 wxDateTime *arg2 = 0 ;
19621 wxDateTime *arg3 = 0 ;
19622 bool result;
19623 PyObject * obj0 = 0 ;
19624 PyObject * obj1 = 0 ;
19625 PyObject * obj2 = 0 ;
19626 char *kwnames[] = {
19627 (char *) "self",(char *) "t1",(char *) "t2", NULL
19628 };
19629
19630 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsBetween",kwnames,&obj0,&obj1,&obj2)) goto fail;
19631 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19632 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19633 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19634 SWIG_POINTER_EXCEPTION | 0)) == -1)
19635 SWIG_fail;
19636 if (arg2 == NULL) {
19637 PyErr_SetString(PyExc_TypeError,"null reference");
19638 SWIG_fail;
19639 }
19640 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDateTime,
19641 SWIG_POINTER_EXCEPTION | 0)) == -1)
19642 SWIG_fail;
19643 if (arg3 == NULL) {
19644 PyErr_SetString(PyExc_TypeError,"null reference");
19645 SWIG_fail;
19646 }
19647 {
19648 PyThreadState* __tstate = wxPyBeginAllowThreads();
19649 result = (bool)((wxDateTime const *)arg1)->IsBetween((wxDateTime const &)*arg2,(wxDateTime const &)*arg3);
19650
19651 wxPyEndAllowThreads(__tstate);
19652 if (PyErr_Occurred()) SWIG_fail;
19653 }
19654 {
19655 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19656 }
19657 return resultobj;
19658 fail:
19659 return NULL;
19660 }
19661
19662
19663 static PyObject *_wrap_DateTime_IsSameDate(PyObject *self, PyObject *args, PyObject *kwargs) {
19664 PyObject *resultobj;
19665 wxDateTime *arg1 = (wxDateTime *) 0 ;
19666 wxDateTime *arg2 = 0 ;
19667 bool result;
19668 PyObject * obj0 = 0 ;
19669 PyObject * obj1 = 0 ;
19670 char *kwnames[] = {
19671 (char *) "self",(char *) "dt", NULL
19672 };
19673
19674 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsSameDate",kwnames,&obj0,&obj1)) goto fail;
19675 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19676 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19677 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19678 SWIG_POINTER_EXCEPTION | 0)) == -1)
19679 SWIG_fail;
19680 if (arg2 == NULL) {
19681 PyErr_SetString(PyExc_TypeError,"null reference");
19682 SWIG_fail;
19683 }
19684 {
19685 PyThreadState* __tstate = wxPyBeginAllowThreads();
19686 result = (bool)((wxDateTime const *)arg1)->IsSameDate((wxDateTime const &)*arg2);
19687
19688 wxPyEndAllowThreads(__tstate);
19689 if (PyErr_Occurred()) SWIG_fail;
19690 }
19691 {
19692 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19693 }
19694 return resultobj;
19695 fail:
19696 return NULL;
19697 }
19698
19699
19700 static PyObject *_wrap_DateTime_IsSameTime(PyObject *self, PyObject *args, PyObject *kwargs) {
19701 PyObject *resultobj;
19702 wxDateTime *arg1 = (wxDateTime *) 0 ;
19703 wxDateTime *arg2 = 0 ;
19704 bool result;
19705 PyObject * obj0 = 0 ;
19706 PyObject * obj1 = 0 ;
19707 char *kwnames[] = {
19708 (char *) "self",(char *) "dt", NULL
19709 };
19710
19711 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsSameTime",kwnames,&obj0,&obj1)) goto fail;
19712 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19713 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19714 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19715 SWIG_POINTER_EXCEPTION | 0)) == -1)
19716 SWIG_fail;
19717 if (arg2 == NULL) {
19718 PyErr_SetString(PyExc_TypeError,"null reference");
19719 SWIG_fail;
19720 }
19721 {
19722 PyThreadState* __tstate = wxPyBeginAllowThreads();
19723 result = (bool)((wxDateTime const *)arg1)->IsSameTime((wxDateTime const &)*arg2);
19724
19725 wxPyEndAllowThreads(__tstate);
19726 if (PyErr_Occurred()) SWIG_fail;
19727 }
19728 {
19729 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19730 }
19731 return resultobj;
19732 fail:
19733 return NULL;
19734 }
19735
19736
19737 static PyObject *_wrap_DateTime_IsEqualUpTo(PyObject *self, PyObject *args, PyObject *kwargs) {
19738 PyObject *resultobj;
19739 wxDateTime *arg1 = (wxDateTime *) 0 ;
19740 wxDateTime *arg2 = 0 ;
19741 wxTimeSpan *arg3 = 0 ;
19742 bool result;
19743 PyObject * obj0 = 0 ;
19744 PyObject * obj1 = 0 ;
19745 PyObject * obj2 = 0 ;
19746 char *kwnames[] = {
19747 (char *) "self",(char *) "dt",(char *) "ts", NULL
19748 };
19749
19750 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsEqualUpTo",kwnames,&obj0,&obj1,&obj2)) goto fail;
19751 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19752 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19753 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19754 SWIG_POINTER_EXCEPTION | 0)) == -1)
19755 SWIG_fail;
19756 if (arg2 == NULL) {
19757 PyErr_SetString(PyExc_TypeError,"null reference");
19758 SWIG_fail;
19759 }
19760 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxTimeSpan,
19761 SWIG_POINTER_EXCEPTION | 0)) == -1)
19762 SWIG_fail;
19763 if (arg3 == NULL) {
19764 PyErr_SetString(PyExc_TypeError,"null reference");
19765 SWIG_fail;
19766 }
19767 {
19768 PyThreadState* __tstate = wxPyBeginAllowThreads();
19769 result = (bool)((wxDateTime const *)arg1)->IsEqualUpTo((wxDateTime const &)*arg2,(wxTimeSpan const &)*arg3);
19770
19771 wxPyEndAllowThreads(__tstate);
19772 if (PyErr_Occurred()) SWIG_fail;
19773 }
19774 {
19775 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19776 }
19777 return resultobj;
19778 fail:
19779 return NULL;
19780 }
19781
19782
19783 static PyObject *_wrap_DateTime_AddTS(PyObject *self, PyObject *args, PyObject *kwargs) {
19784 PyObject *resultobj;
19785 wxDateTime *arg1 = (wxDateTime *) 0 ;
19786 wxTimeSpan *arg2 = 0 ;
19787 wxDateTime *result;
19788 PyObject * obj0 = 0 ;
19789 PyObject * obj1 = 0 ;
19790 char *kwnames[] = {
19791 (char *) "self",(char *) "diff", NULL
19792 };
19793
19794 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_AddTS",kwnames,&obj0,&obj1)) goto fail;
19795 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19796 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19797 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
19798 SWIG_POINTER_EXCEPTION | 0)) == -1)
19799 SWIG_fail;
19800 if (arg2 == NULL) {
19801 PyErr_SetString(PyExc_TypeError,"null reference");
19802 SWIG_fail;
19803 }
19804 {
19805 PyThreadState* __tstate = wxPyBeginAllowThreads();
19806 {
19807 wxDateTime &_result_ref = (arg1)->Add((wxTimeSpan const &)*arg2);
19808 result = (wxDateTime *) &_result_ref;
19809 }
19810
19811 wxPyEndAllowThreads(__tstate);
19812 if (PyErr_Occurred()) SWIG_fail;
19813 }
19814 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
19815 return resultobj;
19816 fail:
19817 return NULL;
19818 }
19819
19820
19821 static PyObject *_wrap_DateTime_AddDS(PyObject *self, PyObject *args, PyObject *kwargs) {
19822 PyObject *resultobj;
19823 wxDateTime *arg1 = (wxDateTime *) 0 ;
19824 wxDateSpan *arg2 = 0 ;
19825 wxDateTime *result;
19826 PyObject * obj0 = 0 ;
19827 PyObject * obj1 = 0 ;
19828 char *kwnames[] = {
19829 (char *) "self",(char *) "diff", NULL
19830 };
19831
19832 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_AddDS",kwnames,&obj0,&obj1)) goto fail;
19833 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19834 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19835 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
19836 SWIG_POINTER_EXCEPTION | 0)) == -1)
19837 SWIG_fail;
19838 if (arg2 == NULL) {
19839 PyErr_SetString(PyExc_TypeError,"null reference");
19840 SWIG_fail;
19841 }
19842 {
19843 PyThreadState* __tstate = wxPyBeginAllowThreads();
19844 {
19845 wxDateTime &_result_ref = (arg1)->Add((wxDateSpan const &)*arg2);
19846 result = (wxDateTime *) &_result_ref;
19847 }
19848
19849 wxPyEndAllowThreads(__tstate);
19850 if (PyErr_Occurred()) SWIG_fail;
19851 }
19852 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
19853 return resultobj;
19854 fail:
19855 return NULL;
19856 }
19857
19858
19859 static PyObject *_wrap_DateTime_SubtractTS(PyObject *self, PyObject *args, PyObject *kwargs) {
19860 PyObject *resultobj;
19861 wxDateTime *arg1 = (wxDateTime *) 0 ;
19862 wxTimeSpan *arg2 = 0 ;
19863 wxDateTime *result;
19864 PyObject * obj0 = 0 ;
19865 PyObject * obj1 = 0 ;
19866 char *kwnames[] = {
19867 (char *) "self",(char *) "diff", NULL
19868 };
19869
19870 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SubtractTS",kwnames,&obj0,&obj1)) goto fail;
19871 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19872 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19873 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
19874 SWIG_POINTER_EXCEPTION | 0)) == -1)
19875 SWIG_fail;
19876 if (arg2 == NULL) {
19877 PyErr_SetString(PyExc_TypeError,"null reference");
19878 SWIG_fail;
19879 }
19880 {
19881 PyThreadState* __tstate = wxPyBeginAllowThreads();
19882 {
19883 wxDateTime &_result_ref = (arg1)->Subtract((wxTimeSpan const &)*arg2);
19884 result = (wxDateTime *) &_result_ref;
19885 }
19886
19887 wxPyEndAllowThreads(__tstate);
19888 if (PyErr_Occurred()) SWIG_fail;
19889 }
19890 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
19891 return resultobj;
19892 fail:
19893 return NULL;
19894 }
19895
19896
19897 static PyObject *_wrap_DateTime_SubtractDS(PyObject *self, PyObject *args, PyObject *kwargs) {
19898 PyObject *resultobj;
19899 wxDateTime *arg1 = (wxDateTime *) 0 ;
19900 wxDateSpan *arg2 = 0 ;
19901 wxDateTime *result;
19902 PyObject * obj0 = 0 ;
19903 PyObject * obj1 = 0 ;
19904 char *kwnames[] = {
19905 (char *) "self",(char *) "diff", NULL
19906 };
19907
19908 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SubtractDS",kwnames,&obj0,&obj1)) goto fail;
19909 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19910 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19911 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
19912 SWIG_POINTER_EXCEPTION | 0)) == -1)
19913 SWIG_fail;
19914 if (arg2 == NULL) {
19915 PyErr_SetString(PyExc_TypeError,"null reference");
19916 SWIG_fail;
19917 }
19918 {
19919 PyThreadState* __tstate = wxPyBeginAllowThreads();
19920 {
19921 wxDateTime &_result_ref = (arg1)->Subtract((wxDateSpan const &)*arg2);
19922 result = (wxDateTime *) &_result_ref;
19923 }
19924
19925 wxPyEndAllowThreads(__tstate);
19926 if (PyErr_Occurred()) SWIG_fail;
19927 }
19928 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
19929 return resultobj;
19930 fail:
19931 return NULL;
19932 }
19933
19934
19935 static PyObject *_wrap_DateTime_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) {
19936 PyObject *resultobj;
19937 wxDateTime *arg1 = (wxDateTime *) 0 ;
19938 wxDateTime *arg2 = 0 ;
19939 wxTimeSpan result;
19940 PyObject * obj0 = 0 ;
19941 PyObject * obj1 = 0 ;
19942 char *kwnames[] = {
19943 (char *) "self",(char *) "dt", NULL
19944 };
19945
19946 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_Subtract",kwnames,&obj0,&obj1)) goto fail;
19947 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19948 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19949 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19950 SWIG_POINTER_EXCEPTION | 0)) == -1)
19951 SWIG_fail;
19952 if (arg2 == NULL) {
19953 PyErr_SetString(PyExc_TypeError,"null reference");
19954 SWIG_fail;
19955 }
19956 {
19957 PyThreadState* __tstate = wxPyBeginAllowThreads();
19958 result = ((wxDateTime const *)arg1)->Subtract((wxDateTime const &)*arg2);
19959
19960 wxPyEndAllowThreads(__tstate);
19961 if (PyErr_Occurred()) SWIG_fail;
19962 }
19963 {
19964 wxTimeSpan * resultptr;
19965 resultptr = new wxTimeSpan((wxTimeSpan &) result);
19966 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
19967 }
19968 return resultobj;
19969 fail:
19970 return NULL;
19971 }
19972
19973
19974 static PyObject *_wrap_DateTime___iadd____SWIG_0(PyObject *self, PyObject *args) {
19975 PyObject *resultobj;
19976 wxDateTime *arg1 = (wxDateTime *) 0 ;
19977 wxTimeSpan *arg2 = 0 ;
19978 wxDateTime *result;
19979 PyObject * obj0 = 0 ;
19980 PyObject * obj1 = 0 ;
19981
19982 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___iadd__",&obj0,&obj1)) goto fail;
19983 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19984 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19985 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
19986 SWIG_POINTER_EXCEPTION | 0)) == -1)
19987 SWIG_fail;
19988 if (arg2 == NULL) {
19989 PyErr_SetString(PyExc_TypeError,"null reference");
19990 SWIG_fail;
19991 }
19992 {
19993 PyThreadState* __tstate = wxPyBeginAllowThreads();
19994 {
19995 wxDateTime &_result_ref = (arg1)->operator +=((wxTimeSpan const &)*arg2);
19996 result = (wxDateTime *) &_result_ref;
19997 }
19998
19999 wxPyEndAllowThreads(__tstate);
20000 if (PyErr_Occurred()) SWIG_fail;
20001 }
20002 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
20003 return resultobj;
20004 fail:
20005 return NULL;
20006 }
20007
20008
20009 static PyObject *_wrap_DateTime___iadd____SWIG_1(PyObject *self, PyObject *args) {
20010 PyObject *resultobj;
20011 wxDateTime *arg1 = (wxDateTime *) 0 ;
20012 wxDateSpan *arg2 = 0 ;
20013 wxDateTime *result;
20014 PyObject * obj0 = 0 ;
20015 PyObject * obj1 = 0 ;
20016
20017 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___iadd__",&obj0,&obj1)) goto fail;
20018 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20019 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20020 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
20021 SWIG_POINTER_EXCEPTION | 0)) == -1)
20022 SWIG_fail;
20023 if (arg2 == NULL) {
20024 PyErr_SetString(PyExc_TypeError,"null reference");
20025 SWIG_fail;
20026 }
20027 {
20028 PyThreadState* __tstate = wxPyBeginAllowThreads();
20029 {
20030 wxDateTime &_result_ref = (arg1)->operator +=((wxDateSpan const &)*arg2);
20031 result = (wxDateTime *) &_result_ref;
20032 }
20033
20034 wxPyEndAllowThreads(__tstate);
20035 if (PyErr_Occurred()) SWIG_fail;
20036 }
20037 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
20038 return resultobj;
20039 fail:
20040 return NULL;
20041 }
20042
20043
20044 static PyObject *_wrap_DateTime___iadd__(PyObject *self, PyObject *args) {
20045 int argc;
20046 PyObject *argv[3];
20047 int ii;
20048
20049 argc = PyObject_Length(args);
20050 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
20051 argv[ii] = PyTuple_GetItem(args,ii);
20052 }
20053 if (argc == 2) {
20054 int _v;
20055 {
20056 void *ptr;
20057 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20058 _v = 0;
20059 PyErr_Clear();
20060 } else {
20061 _v = 1;
20062 }
20063 }
20064 if (_v) {
20065 {
20066 void *ptr;
20067 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) {
20068 _v = 0;
20069 PyErr_Clear();
20070 } else {
20071 _v = 1;
20072 }
20073 }
20074 if (_v) {
20075 return _wrap_DateTime___iadd____SWIG_0(self,args);
20076 }
20077 }
20078 }
20079 if (argc == 2) {
20080 int _v;
20081 {
20082 void *ptr;
20083 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20084 _v = 0;
20085 PyErr_Clear();
20086 } else {
20087 _v = 1;
20088 }
20089 }
20090 if (_v) {
20091 {
20092 void *ptr;
20093 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) {
20094 _v = 0;
20095 PyErr_Clear();
20096 } else {
20097 _v = 1;
20098 }
20099 }
20100 if (_v) {
20101 return _wrap_DateTime___iadd____SWIG_1(self,args);
20102 }
20103 }
20104 }
20105
20106 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___iadd__'");
20107 return NULL;
20108 }
20109
20110
20111 static PyObject *_wrap_DateTime___isub____SWIG_0(PyObject *self, PyObject *args) {
20112 PyObject *resultobj;
20113 wxDateTime *arg1 = (wxDateTime *) 0 ;
20114 wxTimeSpan *arg2 = 0 ;
20115 wxDateTime *result;
20116 PyObject * obj0 = 0 ;
20117 PyObject * obj1 = 0 ;
20118
20119 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___isub__",&obj0,&obj1)) goto fail;
20120 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20121 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20122 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
20123 SWIG_POINTER_EXCEPTION | 0)) == -1)
20124 SWIG_fail;
20125 if (arg2 == NULL) {
20126 PyErr_SetString(PyExc_TypeError,"null reference");
20127 SWIG_fail;
20128 }
20129 {
20130 PyThreadState* __tstate = wxPyBeginAllowThreads();
20131 {
20132 wxDateTime &_result_ref = (arg1)->operator -=((wxTimeSpan const &)*arg2);
20133 result = (wxDateTime *) &_result_ref;
20134 }
20135
20136 wxPyEndAllowThreads(__tstate);
20137 if (PyErr_Occurred()) SWIG_fail;
20138 }
20139 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
20140 return resultobj;
20141 fail:
20142 return NULL;
20143 }
20144
20145
20146 static PyObject *_wrap_DateTime___isub____SWIG_1(PyObject *self, PyObject *args) {
20147 PyObject *resultobj;
20148 wxDateTime *arg1 = (wxDateTime *) 0 ;
20149 wxDateSpan *arg2 = 0 ;
20150 wxDateTime *result;
20151 PyObject * obj0 = 0 ;
20152 PyObject * obj1 = 0 ;
20153
20154 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___isub__",&obj0,&obj1)) goto fail;
20155 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20156 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20157 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
20158 SWIG_POINTER_EXCEPTION | 0)) == -1)
20159 SWIG_fail;
20160 if (arg2 == NULL) {
20161 PyErr_SetString(PyExc_TypeError,"null reference");
20162 SWIG_fail;
20163 }
20164 {
20165 PyThreadState* __tstate = wxPyBeginAllowThreads();
20166 {
20167 wxDateTime &_result_ref = (arg1)->operator -=((wxDateSpan const &)*arg2);
20168 result = (wxDateTime *) &_result_ref;
20169 }
20170
20171 wxPyEndAllowThreads(__tstate);
20172 if (PyErr_Occurred()) SWIG_fail;
20173 }
20174 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
20175 return resultobj;
20176 fail:
20177 return NULL;
20178 }
20179
20180
20181 static PyObject *_wrap_DateTime___isub__(PyObject *self, PyObject *args) {
20182 int argc;
20183 PyObject *argv[3];
20184 int ii;
20185
20186 argc = PyObject_Length(args);
20187 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
20188 argv[ii] = PyTuple_GetItem(args,ii);
20189 }
20190 if (argc == 2) {
20191 int _v;
20192 {
20193 void *ptr;
20194 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20195 _v = 0;
20196 PyErr_Clear();
20197 } else {
20198 _v = 1;
20199 }
20200 }
20201 if (_v) {
20202 {
20203 void *ptr;
20204 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) {
20205 _v = 0;
20206 PyErr_Clear();
20207 } else {
20208 _v = 1;
20209 }
20210 }
20211 if (_v) {
20212 return _wrap_DateTime___isub____SWIG_0(self,args);
20213 }
20214 }
20215 }
20216 if (argc == 2) {
20217 int _v;
20218 {
20219 void *ptr;
20220 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20221 _v = 0;
20222 PyErr_Clear();
20223 } else {
20224 _v = 1;
20225 }
20226 }
20227 if (_v) {
20228 {
20229 void *ptr;
20230 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) {
20231 _v = 0;
20232 PyErr_Clear();
20233 } else {
20234 _v = 1;
20235 }
20236 }
20237 if (_v) {
20238 return _wrap_DateTime___isub____SWIG_1(self,args);
20239 }
20240 }
20241 }
20242
20243 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___isub__'");
20244 return NULL;
20245 }
20246
20247
20248 static PyObject *_wrap_DateTime___add____SWIG_0(PyObject *self, PyObject *args) {
20249 PyObject *resultobj;
20250 wxDateTime *arg1 = (wxDateTime *) 0 ;
20251 wxTimeSpan *arg2 = 0 ;
20252 wxDateTime result;
20253 PyObject * obj0 = 0 ;
20254 PyObject * obj1 = 0 ;
20255
20256 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___add__",&obj0,&obj1)) goto fail;
20257 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20258 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20259 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
20260 SWIG_POINTER_EXCEPTION | 0)) == -1)
20261 SWIG_fail;
20262 if (arg2 == NULL) {
20263 PyErr_SetString(PyExc_TypeError,"null reference");
20264 SWIG_fail;
20265 }
20266 {
20267 PyThreadState* __tstate = wxPyBeginAllowThreads();
20268 result = wxDateTime___add____SWIG_0(arg1,(wxTimeSpan const &)*arg2);
20269
20270 wxPyEndAllowThreads(__tstate);
20271 if (PyErr_Occurred()) SWIG_fail;
20272 }
20273 {
20274 wxDateTime * resultptr;
20275 resultptr = new wxDateTime((wxDateTime &) result);
20276 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
20277 }
20278 return resultobj;
20279 fail:
20280 return NULL;
20281 }
20282
20283
20284 static PyObject *_wrap_DateTime___add____SWIG_1(PyObject *self, PyObject *args) {
20285 PyObject *resultobj;
20286 wxDateTime *arg1 = (wxDateTime *) 0 ;
20287 wxDateSpan *arg2 = 0 ;
20288 wxDateTime result;
20289 PyObject * obj0 = 0 ;
20290 PyObject * obj1 = 0 ;
20291
20292 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___add__",&obj0,&obj1)) goto fail;
20293 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20294 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20295 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
20296 SWIG_POINTER_EXCEPTION | 0)) == -1)
20297 SWIG_fail;
20298 if (arg2 == NULL) {
20299 PyErr_SetString(PyExc_TypeError,"null reference");
20300 SWIG_fail;
20301 }
20302 {
20303 PyThreadState* __tstate = wxPyBeginAllowThreads();
20304 result = wxDateTime___add____SWIG_1(arg1,(wxDateSpan const &)*arg2);
20305
20306 wxPyEndAllowThreads(__tstate);
20307 if (PyErr_Occurred()) SWIG_fail;
20308 }
20309 {
20310 wxDateTime * resultptr;
20311 resultptr = new wxDateTime((wxDateTime &) result);
20312 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
20313 }
20314 return resultobj;
20315 fail:
20316 return NULL;
20317 }
20318
20319
20320 static PyObject *_wrap_DateTime___add__(PyObject *self, PyObject *args) {
20321 int argc;
20322 PyObject *argv[3];
20323 int ii;
20324
20325 argc = PyObject_Length(args);
20326 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
20327 argv[ii] = PyTuple_GetItem(args,ii);
20328 }
20329 if (argc == 2) {
20330 int _v;
20331 {
20332 void *ptr;
20333 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20334 _v = 0;
20335 PyErr_Clear();
20336 } else {
20337 _v = 1;
20338 }
20339 }
20340 if (_v) {
20341 {
20342 void *ptr;
20343 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) {
20344 _v = 0;
20345 PyErr_Clear();
20346 } else {
20347 _v = 1;
20348 }
20349 }
20350 if (_v) {
20351 return _wrap_DateTime___add____SWIG_0(self,args);
20352 }
20353 }
20354 }
20355 if (argc == 2) {
20356 int _v;
20357 {
20358 void *ptr;
20359 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20360 _v = 0;
20361 PyErr_Clear();
20362 } else {
20363 _v = 1;
20364 }
20365 }
20366 if (_v) {
20367 {
20368 void *ptr;
20369 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) {
20370 _v = 0;
20371 PyErr_Clear();
20372 } else {
20373 _v = 1;
20374 }
20375 }
20376 if (_v) {
20377 return _wrap_DateTime___add____SWIG_1(self,args);
20378 }
20379 }
20380 }
20381
20382 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___add__'");
20383 return NULL;
20384 }
20385
20386
20387 static PyObject *_wrap_DateTime___sub____SWIG_0(PyObject *self, PyObject *args) {
20388 PyObject *resultobj;
20389 wxDateTime *arg1 = (wxDateTime *) 0 ;
20390 wxDateTime *arg2 = 0 ;
20391 wxTimeSpan result;
20392 PyObject * obj0 = 0 ;
20393 PyObject * obj1 = 0 ;
20394
20395 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail;
20396 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20397 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20398 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20399 SWIG_POINTER_EXCEPTION | 0)) == -1)
20400 SWIG_fail;
20401 if (arg2 == NULL) {
20402 PyErr_SetString(PyExc_TypeError,"null reference");
20403 SWIG_fail;
20404 }
20405 {
20406 PyThreadState* __tstate = wxPyBeginAllowThreads();
20407 result = wxDateTime___sub____SWIG_0(arg1,(wxDateTime const &)*arg2);
20408
20409 wxPyEndAllowThreads(__tstate);
20410 if (PyErr_Occurred()) SWIG_fail;
20411 }
20412 {
20413 wxTimeSpan * resultptr;
20414 resultptr = new wxTimeSpan((wxTimeSpan &) result);
20415 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
20416 }
20417 return resultobj;
20418 fail:
20419 return NULL;
20420 }
20421
20422
20423 static PyObject *_wrap_DateTime___sub____SWIG_1(PyObject *self, PyObject *args) {
20424 PyObject *resultobj;
20425 wxDateTime *arg1 = (wxDateTime *) 0 ;
20426 wxTimeSpan *arg2 = 0 ;
20427 wxDateTime result;
20428 PyObject * obj0 = 0 ;
20429 PyObject * obj1 = 0 ;
20430
20431 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail;
20432 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20433 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20434 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
20435 SWIG_POINTER_EXCEPTION | 0)) == -1)
20436 SWIG_fail;
20437 if (arg2 == NULL) {
20438 PyErr_SetString(PyExc_TypeError,"null reference");
20439 SWIG_fail;
20440 }
20441 {
20442 PyThreadState* __tstate = wxPyBeginAllowThreads();
20443 result = wxDateTime___sub____SWIG_1(arg1,(wxTimeSpan const &)*arg2);
20444
20445 wxPyEndAllowThreads(__tstate);
20446 if (PyErr_Occurred()) SWIG_fail;
20447 }
20448 {
20449 wxDateTime * resultptr;
20450 resultptr = new wxDateTime((wxDateTime &) result);
20451 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
20452 }
20453 return resultobj;
20454 fail:
20455 return NULL;
20456 }
20457
20458
20459 static PyObject *_wrap_DateTime___sub____SWIG_2(PyObject *self, PyObject *args) {
20460 PyObject *resultobj;
20461 wxDateTime *arg1 = (wxDateTime *) 0 ;
20462 wxDateSpan *arg2 = 0 ;
20463 wxDateTime result;
20464 PyObject * obj0 = 0 ;
20465 PyObject * obj1 = 0 ;
20466
20467 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail;
20468 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20469 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20470 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
20471 SWIG_POINTER_EXCEPTION | 0)) == -1)
20472 SWIG_fail;
20473 if (arg2 == NULL) {
20474 PyErr_SetString(PyExc_TypeError,"null reference");
20475 SWIG_fail;
20476 }
20477 {
20478 PyThreadState* __tstate = wxPyBeginAllowThreads();
20479 result = wxDateTime___sub____SWIG_2(arg1,(wxDateSpan const &)*arg2);
20480
20481 wxPyEndAllowThreads(__tstate);
20482 if (PyErr_Occurred()) SWIG_fail;
20483 }
20484 {
20485 wxDateTime * resultptr;
20486 resultptr = new wxDateTime((wxDateTime &) result);
20487 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
20488 }
20489 return resultobj;
20490 fail:
20491 return NULL;
20492 }
20493
20494
20495 static PyObject *_wrap_DateTime___sub__(PyObject *self, PyObject *args) {
20496 int argc;
20497 PyObject *argv[3];
20498 int ii;
20499
20500 argc = PyObject_Length(args);
20501 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
20502 argv[ii] = PyTuple_GetItem(args,ii);
20503 }
20504 if (argc == 2) {
20505 int _v;
20506 {
20507 void *ptr;
20508 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20509 _v = 0;
20510 PyErr_Clear();
20511 } else {
20512 _v = 1;
20513 }
20514 }
20515 if (_v) {
20516 {
20517 void *ptr;
20518 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20519 _v = 0;
20520 PyErr_Clear();
20521 } else {
20522 _v = 1;
20523 }
20524 }
20525 if (_v) {
20526 return _wrap_DateTime___sub____SWIG_0(self,args);
20527 }
20528 }
20529 }
20530 if (argc == 2) {
20531 int _v;
20532 {
20533 void *ptr;
20534 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20535 _v = 0;
20536 PyErr_Clear();
20537 } else {
20538 _v = 1;
20539 }
20540 }
20541 if (_v) {
20542 {
20543 void *ptr;
20544 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) {
20545 _v = 0;
20546 PyErr_Clear();
20547 } else {
20548 _v = 1;
20549 }
20550 }
20551 if (_v) {
20552 return _wrap_DateTime___sub____SWIG_1(self,args);
20553 }
20554 }
20555 }
20556 if (argc == 2) {
20557 int _v;
20558 {
20559 void *ptr;
20560 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20561 _v = 0;
20562 PyErr_Clear();
20563 } else {
20564 _v = 1;
20565 }
20566 }
20567 if (_v) {
20568 {
20569 void *ptr;
20570 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) {
20571 _v = 0;
20572 PyErr_Clear();
20573 } else {
20574 _v = 1;
20575 }
20576 }
20577 if (_v) {
20578 return _wrap_DateTime___sub____SWIG_2(self,args);
20579 }
20580 }
20581 }
20582
20583 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___sub__'");
20584 return NULL;
20585 }
20586
20587
20588 static PyObject *_wrap_DateTime___lt__(PyObject *self, PyObject *args) {
20589 PyObject *resultobj;
20590 wxDateTime *arg1 = (wxDateTime *) 0 ;
20591 wxDateTime *arg2 = (wxDateTime *) 0 ;
20592 bool result;
20593 PyObject * obj0 = 0 ;
20594 PyObject * obj1 = 0 ;
20595
20596 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___lt__",&obj0,&obj1)) goto fail;
20597 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20598 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20599 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20600 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20601 {
20602 PyThreadState* __tstate = wxPyBeginAllowThreads();
20603 result = (bool)wxDateTime___lt__(arg1,(wxDateTime const *)arg2);
20604
20605 wxPyEndAllowThreads(__tstate);
20606 if (PyErr_Occurred()) SWIG_fail;
20607 }
20608 {
20609 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20610 }
20611 return resultobj;
20612 fail:
20613 return NULL;
20614 }
20615
20616
20617 static PyObject *_wrap_DateTime___le__(PyObject *self, PyObject *args) {
20618 PyObject *resultobj;
20619 wxDateTime *arg1 = (wxDateTime *) 0 ;
20620 wxDateTime *arg2 = (wxDateTime *) 0 ;
20621 bool result;
20622 PyObject * obj0 = 0 ;
20623 PyObject * obj1 = 0 ;
20624
20625 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___le__",&obj0,&obj1)) goto fail;
20626 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20627 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20628 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20629 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20630 {
20631 PyThreadState* __tstate = wxPyBeginAllowThreads();
20632 result = (bool)wxDateTime___le__(arg1,(wxDateTime const *)arg2);
20633
20634 wxPyEndAllowThreads(__tstate);
20635 if (PyErr_Occurred()) SWIG_fail;
20636 }
20637 {
20638 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20639 }
20640 return resultobj;
20641 fail:
20642 return NULL;
20643 }
20644
20645
20646 static PyObject *_wrap_DateTime___gt__(PyObject *self, PyObject *args) {
20647 PyObject *resultobj;
20648 wxDateTime *arg1 = (wxDateTime *) 0 ;
20649 wxDateTime *arg2 = (wxDateTime *) 0 ;
20650 bool result;
20651 PyObject * obj0 = 0 ;
20652 PyObject * obj1 = 0 ;
20653
20654 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___gt__",&obj0,&obj1)) goto fail;
20655 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20656 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20657 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20658 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20659 {
20660 PyThreadState* __tstate = wxPyBeginAllowThreads();
20661 result = (bool)wxDateTime___gt__(arg1,(wxDateTime const *)arg2);
20662
20663 wxPyEndAllowThreads(__tstate);
20664 if (PyErr_Occurred()) SWIG_fail;
20665 }
20666 {
20667 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20668 }
20669 return resultobj;
20670 fail:
20671 return NULL;
20672 }
20673
20674
20675 static PyObject *_wrap_DateTime___ge__(PyObject *self, PyObject *args) {
20676 PyObject *resultobj;
20677 wxDateTime *arg1 = (wxDateTime *) 0 ;
20678 wxDateTime *arg2 = (wxDateTime *) 0 ;
20679 bool result;
20680 PyObject * obj0 = 0 ;
20681 PyObject * obj1 = 0 ;
20682
20683 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___ge__",&obj0,&obj1)) goto fail;
20684 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20685 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20686 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20687 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20688 {
20689 PyThreadState* __tstate = wxPyBeginAllowThreads();
20690 result = (bool)wxDateTime___ge__(arg1,(wxDateTime const *)arg2);
20691
20692 wxPyEndAllowThreads(__tstate);
20693 if (PyErr_Occurred()) SWIG_fail;
20694 }
20695 {
20696 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20697 }
20698 return resultobj;
20699 fail:
20700 return NULL;
20701 }
20702
20703
20704 static PyObject *_wrap_DateTime___eq__(PyObject *self, PyObject *args) {
20705 PyObject *resultobj;
20706 wxDateTime *arg1 = (wxDateTime *) 0 ;
20707 wxDateTime *arg2 = (wxDateTime *) 0 ;
20708 bool result;
20709 PyObject * obj0 = 0 ;
20710 PyObject * obj1 = 0 ;
20711
20712 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___eq__",&obj0,&obj1)) goto fail;
20713 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20714 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20715 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20716 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20717 {
20718 PyThreadState* __tstate = wxPyBeginAllowThreads();
20719 result = (bool)wxDateTime___eq__(arg1,(wxDateTime const *)arg2);
20720
20721 wxPyEndAllowThreads(__tstate);
20722 if (PyErr_Occurred()) SWIG_fail;
20723 }
20724 {
20725 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20726 }
20727 return resultobj;
20728 fail:
20729 return NULL;
20730 }
20731
20732
20733 static PyObject *_wrap_DateTime___ne__(PyObject *self, PyObject *args) {
20734 PyObject *resultobj;
20735 wxDateTime *arg1 = (wxDateTime *) 0 ;
20736 wxDateTime *arg2 = (wxDateTime *) 0 ;
20737 bool result;
20738 PyObject * obj0 = 0 ;
20739 PyObject * obj1 = 0 ;
20740
20741 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___ne__",&obj0,&obj1)) goto fail;
20742 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20743 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20744 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20745 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20746 {
20747 PyThreadState* __tstate = wxPyBeginAllowThreads();
20748 result = (bool)wxDateTime___ne__(arg1,(wxDateTime const *)arg2);
20749
20750 wxPyEndAllowThreads(__tstate);
20751 if (PyErr_Occurred()) SWIG_fail;
20752 }
20753 {
20754 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20755 }
20756 return resultobj;
20757 fail:
20758 return NULL;
20759 }
20760
20761
20762 static PyObject *_wrap_DateTime_ParseRfc822Date(PyObject *self, PyObject *args, PyObject *kwargs) {
20763 PyObject *resultobj;
20764 wxDateTime *arg1 = (wxDateTime *) 0 ;
20765 wxString *arg2 = 0 ;
20766 int result;
20767 bool temp2 = False ;
20768 PyObject * obj0 = 0 ;
20769 PyObject * obj1 = 0 ;
20770 char *kwnames[] = {
20771 (char *) "self",(char *) "date", NULL
20772 };
20773
20774 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseRfc822Date",kwnames,&obj0,&obj1)) goto fail;
20775 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20776 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20777 {
20778 arg2 = wxString_in_helper(obj1);
20779 if (arg2 == NULL) SWIG_fail;
20780 temp2 = True;
20781 }
20782 {
20783 PyThreadState* __tstate = wxPyBeginAllowThreads();
20784 result = (int)wxDateTime_ParseRfc822Date(arg1,(wxString const &)*arg2);
20785
20786 wxPyEndAllowThreads(__tstate);
20787 if (PyErr_Occurred()) SWIG_fail;
20788 }
20789 resultobj = SWIG_FromInt((int)result);
20790 {
20791 if (temp2)
20792 delete arg2;
20793 }
20794 return resultobj;
20795 fail:
20796 {
20797 if (temp2)
20798 delete arg2;
20799 }
20800 return NULL;
20801 }
20802
20803
20804 static PyObject *_wrap_DateTime_ParseFormat(PyObject *self, PyObject *args, PyObject *kwargs) {
20805 PyObject *resultobj;
20806 wxDateTime *arg1 = (wxDateTime *) 0 ;
20807 wxString *arg2 = 0 ;
20808 wxString const &arg3_defvalue = wxPyDateFormatStr ;
20809 wxString *arg3 = (wxString *) &arg3_defvalue ;
20810 wxDateTime const &arg4_defvalue = wxDefaultDateTime ;
20811 wxDateTime *arg4 = (wxDateTime *) &arg4_defvalue ;
20812 int result;
20813 bool temp2 = False ;
20814 bool temp3 = False ;
20815 PyObject * obj0 = 0 ;
20816 PyObject * obj1 = 0 ;
20817 PyObject * obj2 = 0 ;
20818 PyObject * obj3 = 0 ;
20819 char *kwnames[] = {
20820 (char *) "self",(char *) "date",(char *) "format",(char *) "dateDef", NULL
20821 };
20822
20823 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_ParseFormat",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
20824 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20825 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20826 {
20827 arg2 = wxString_in_helper(obj1);
20828 if (arg2 == NULL) SWIG_fail;
20829 temp2 = True;
20830 }
20831 if (obj2) {
20832 {
20833 arg3 = wxString_in_helper(obj2);
20834 if (arg3 == NULL) SWIG_fail;
20835 temp3 = True;
20836 }
20837 }
20838 if (obj3) {
20839 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxDateTime,
20840 SWIG_POINTER_EXCEPTION | 0)) == -1)
20841 SWIG_fail;
20842 if (arg4 == NULL) {
20843 PyErr_SetString(PyExc_TypeError,"null reference");
20844 SWIG_fail;
20845 }
20846 }
20847 {
20848 PyThreadState* __tstate = wxPyBeginAllowThreads();
20849 result = (int)wxDateTime_ParseFormat(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxDateTime const &)*arg4);
20850
20851 wxPyEndAllowThreads(__tstate);
20852 if (PyErr_Occurred()) SWIG_fail;
20853 }
20854 resultobj = SWIG_FromInt((int)result);
20855 {
20856 if (temp2)
20857 delete arg2;
20858 }
20859 {
20860 if (temp3)
20861 delete arg3;
20862 }
20863 return resultobj;
20864 fail:
20865 {
20866 if (temp2)
20867 delete arg2;
20868 }
20869 {
20870 if (temp3)
20871 delete arg3;
20872 }
20873 return NULL;
20874 }
20875
20876
20877 static PyObject *_wrap_DateTime_ParseDateTime(PyObject *self, PyObject *args, PyObject *kwargs) {
20878 PyObject *resultobj;
20879 wxDateTime *arg1 = (wxDateTime *) 0 ;
20880 wxString *arg2 = 0 ;
20881 int result;
20882 bool temp2 = False ;
20883 PyObject * obj0 = 0 ;
20884 PyObject * obj1 = 0 ;
20885 char *kwnames[] = {
20886 (char *) "self",(char *) "datetime", NULL
20887 };
20888
20889 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseDateTime",kwnames,&obj0,&obj1)) goto fail;
20890 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20891 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20892 {
20893 arg2 = wxString_in_helper(obj1);
20894 if (arg2 == NULL) SWIG_fail;
20895 temp2 = True;
20896 }
20897 {
20898 PyThreadState* __tstate = wxPyBeginAllowThreads();
20899 result = (int)wxDateTime_ParseDateTime(arg1,(wxString const &)*arg2);
20900
20901 wxPyEndAllowThreads(__tstate);
20902 if (PyErr_Occurred()) SWIG_fail;
20903 }
20904 resultobj = SWIG_FromInt((int)result);
20905 {
20906 if (temp2)
20907 delete arg2;
20908 }
20909 return resultobj;
20910 fail:
20911 {
20912 if (temp2)
20913 delete arg2;
20914 }
20915 return NULL;
20916 }
20917
20918
20919 static PyObject *_wrap_DateTime_ParseDate(PyObject *self, PyObject *args, PyObject *kwargs) {
20920 PyObject *resultobj;
20921 wxDateTime *arg1 = (wxDateTime *) 0 ;
20922 wxString *arg2 = 0 ;
20923 int result;
20924 bool temp2 = False ;
20925 PyObject * obj0 = 0 ;
20926 PyObject * obj1 = 0 ;
20927 char *kwnames[] = {
20928 (char *) "self",(char *) "date", NULL
20929 };
20930
20931 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseDate",kwnames,&obj0,&obj1)) goto fail;
20932 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20933 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20934 {
20935 arg2 = wxString_in_helper(obj1);
20936 if (arg2 == NULL) SWIG_fail;
20937 temp2 = True;
20938 }
20939 {
20940 PyThreadState* __tstate = wxPyBeginAllowThreads();
20941 result = (int)wxDateTime_ParseDate(arg1,(wxString const &)*arg2);
20942
20943 wxPyEndAllowThreads(__tstate);
20944 if (PyErr_Occurred()) SWIG_fail;
20945 }
20946 resultobj = SWIG_FromInt((int)result);
20947 {
20948 if (temp2)
20949 delete arg2;
20950 }
20951 return resultobj;
20952 fail:
20953 {
20954 if (temp2)
20955 delete arg2;
20956 }
20957 return NULL;
20958 }
20959
20960
20961 static PyObject *_wrap_DateTime_ParseTime(PyObject *self, PyObject *args, PyObject *kwargs) {
20962 PyObject *resultobj;
20963 wxDateTime *arg1 = (wxDateTime *) 0 ;
20964 wxString *arg2 = 0 ;
20965 int result;
20966 bool temp2 = False ;
20967 PyObject * obj0 = 0 ;
20968 PyObject * obj1 = 0 ;
20969 char *kwnames[] = {
20970 (char *) "self",(char *) "time", NULL
20971 };
20972
20973 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseTime",kwnames,&obj0,&obj1)) goto fail;
20974 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20975 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20976 {
20977 arg2 = wxString_in_helper(obj1);
20978 if (arg2 == NULL) SWIG_fail;
20979 temp2 = True;
20980 }
20981 {
20982 PyThreadState* __tstate = wxPyBeginAllowThreads();
20983 result = (int)wxDateTime_ParseTime(arg1,(wxString const &)*arg2);
20984
20985 wxPyEndAllowThreads(__tstate);
20986 if (PyErr_Occurred()) SWIG_fail;
20987 }
20988 resultobj = SWIG_FromInt((int)result);
20989 {
20990 if (temp2)
20991 delete arg2;
20992 }
20993 return resultobj;
20994 fail:
20995 {
20996 if (temp2)
20997 delete arg2;
20998 }
20999 return NULL;
21000 }
21001
21002
21003 static PyObject *_wrap_DateTime_Format(PyObject *self, PyObject *args, PyObject *kwargs) {
21004 PyObject *resultobj;
21005 wxDateTime *arg1 = (wxDateTime *) 0 ;
21006 wxString const &arg2_defvalue = wxPyDateFormatStr ;
21007 wxString *arg2 = (wxString *) &arg2_defvalue ;
21008 wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ;
21009 wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ;
21010 wxString result;
21011 bool temp2 = False ;
21012 bool temp3 = False ;
21013 PyObject * obj0 = 0 ;
21014 PyObject * obj1 = 0 ;
21015 PyObject * obj2 = 0 ;
21016 char *kwnames[] = {
21017 (char *) "self",(char *) "format",(char *) "tz", NULL
21018 };
21019
21020 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_Format",kwnames,&obj0,&obj1,&obj2)) goto fail;
21021 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21022 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21023 if (obj1) {
21024 {
21025 arg2 = wxString_in_helper(obj1);
21026 if (arg2 == NULL) SWIG_fail;
21027 temp2 = True;
21028 }
21029 }
21030 if (obj2) {
21031 {
21032 arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2));
21033 temp3 = True;
21034 }
21035 }
21036 {
21037 PyThreadState* __tstate = wxPyBeginAllowThreads();
21038 result = ((wxDateTime const *)arg1)->Format((wxString const &)*arg2,(wxDateTime::TimeZone const &)*arg3);
21039
21040 wxPyEndAllowThreads(__tstate);
21041 if (PyErr_Occurred()) SWIG_fail;
21042 }
21043 {
21044 #if wxUSE_UNICODE
21045 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
21046 #else
21047 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
21048 #endif
21049 }
21050 {
21051 if (temp2)
21052 delete arg2;
21053 }
21054 {
21055 if (temp3) delete arg3;
21056 }
21057 return resultobj;
21058 fail:
21059 {
21060 if (temp2)
21061 delete arg2;
21062 }
21063 {
21064 if (temp3) delete arg3;
21065 }
21066 return NULL;
21067 }
21068
21069
21070 static PyObject *_wrap_DateTime_FormatDate(PyObject *self, PyObject *args, PyObject *kwargs) {
21071 PyObject *resultobj;
21072 wxDateTime *arg1 = (wxDateTime *) 0 ;
21073 wxString result;
21074 PyObject * obj0 = 0 ;
21075 char *kwnames[] = {
21076 (char *) "self", NULL
21077 };
21078
21079 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatDate",kwnames,&obj0)) goto fail;
21080 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21081 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21082 {
21083 PyThreadState* __tstate = wxPyBeginAllowThreads();
21084 result = ((wxDateTime const *)arg1)->FormatDate();
21085
21086 wxPyEndAllowThreads(__tstate);
21087 if (PyErr_Occurred()) SWIG_fail;
21088 }
21089 {
21090 #if wxUSE_UNICODE
21091 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
21092 #else
21093 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
21094 #endif
21095 }
21096 return resultobj;
21097 fail:
21098 return NULL;
21099 }
21100
21101
21102 static PyObject *_wrap_DateTime_FormatTime(PyObject *self, PyObject *args, PyObject *kwargs) {
21103 PyObject *resultobj;
21104 wxDateTime *arg1 = (wxDateTime *) 0 ;
21105 wxString result;
21106 PyObject * obj0 = 0 ;
21107 char *kwnames[] = {
21108 (char *) "self", NULL
21109 };
21110
21111 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatTime",kwnames,&obj0)) goto fail;
21112 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21113 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21114 {
21115 PyThreadState* __tstate = wxPyBeginAllowThreads();
21116 result = ((wxDateTime const *)arg1)->FormatTime();
21117
21118 wxPyEndAllowThreads(__tstate);
21119 if (PyErr_Occurred()) SWIG_fail;
21120 }
21121 {
21122 #if wxUSE_UNICODE
21123 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
21124 #else
21125 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
21126 #endif
21127 }
21128 return resultobj;
21129 fail:
21130 return NULL;
21131 }
21132
21133
21134 static PyObject *_wrap_DateTime_FormatISODate(PyObject *self, PyObject *args, PyObject *kwargs) {
21135 PyObject *resultobj;
21136 wxDateTime *arg1 = (wxDateTime *) 0 ;
21137 wxString result;
21138 PyObject * obj0 = 0 ;
21139 char *kwnames[] = {
21140 (char *) "self", NULL
21141 };
21142
21143 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatISODate",kwnames,&obj0)) goto fail;
21144 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21145 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21146 {
21147 PyThreadState* __tstate = wxPyBeginAllowThreads();
21148 result = ((wxDateTime const *)arg1)->FormatISODate();
21149
21150 wxPyEndAllowThreads(__tstate);
21151 if (PyErr_Occurred()) SWIG_fail;
21152 }
21153 {
21154 #if wxUSE_UNICODE
21155 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
21156 #else
21157 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
21158 #endif
21159 }
21160 return resultobj;
21161 fail:
21162 return NULL;
21163 }
21164
21165
21166 static PyObject *_wrap_DateTime_FormatISOTime(PyObject *self, PyObject *args, PyObject *kwargs) {
21167 PyObject *resultobj;
21168 wxDateTime *arg1 = (wxDateTime *) 0 ;
21169 wxString result;
21170 PyObject * obj0 = 0 ;
21171 char *kwnames[] = {
21172 (char *) "self", NULL
21173 };
21174
21175 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatISOTime",kwnames,&obj0)) goto fail;
21176 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21177 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21178 {
21179 PyThreadState* __tstate = wxPyBeginAllowThreads();
21180 result = ((wxDateTime const *)arg1)->FormatISOTime();
21181
21182 wxPyEndAllowThreads(__tstate);
21183 if (PyErr_Occurred()) SWIG_fail;
21184 }
21185 {
21186 #if wxUSE_UNICODE
21187 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
21188 #else
21189 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
21190 #endif
21191 }
21192 return resultobj;
21193 fail:
21194 return NULL;
21195 }
21196
21197
21198 static PyObject * DateTime_swigregister(PyObject *self, PyObject *args) {
21199 PyObject *obj;
21200 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
21201 SWIG_TypeClientData(SWIGTYPE_p_wxDateTime, obj);
21202 Py_INCREF(obj);
21203 return Py_BuildValue((char *)"");
21204 }
21205 static PyObject *_wrap_TimeSpan_Seconds(PyObject *self, PyObject *args, PyObject *kwargs) {
21206 PyObject *resultobj;
21207 long arg1 ;
21208 wxTimeSpan result;
21209 PyObject * obj0 = 0 ;
21210 char *kwnames[] = {
21211 (char *) "sec", NULL
21212 };
21213
21214 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Seconds",kwnames,&obj0)) goto fail;
21215 arg1 = (long) SWIG_AsLong(obj0);
21216 if (PyErr_Occurred()) SWIG_fail;
21217 {
21218 PyThreadState* __tstate = wxPyBeginAllowThreads();
21219 result = wxTimeSpan::Seconds(arg1);
21220
21221 wxPyEndAllowThreads(__tstate);
21222 if (PyErr_Occurred()) SWIG_fail;
21223 }
21224 {
21225 wxTimeSpan * resultptr;
21226 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21227 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21228 }
21229 return resultobj;
21230 fail:
21231 return NULL;
21232 }
21233
21234
21235 static PyObject *_wrap_TimeSpan_Second(PyObject *self, PyObject *args, PyObject *kwargs) {
21236 PyObject *resultobj;
21237 wxTimeSpan result;
21238 char *kwnames[] = {
21239 NULL
21240 };
21241
21242 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Second",kwnames)) goto fail;
21243 {
21244 PyThreadState* __tstate = wxPyBeginAllowThreads();
21245 result = wxTimeSpan::Second();
21246
21247 wxPyEndAllowThreads(__tstate);
21248 if (PyErr_Occurred()) SWIG_fail;
21249 }
21250 {
21251 wxTimeSpan * resultptr;
21252 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21253 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21254 }
21255 return resultobj;
21256 fail:
21257 return NULL;
21258 }
21259
21260
21261 static PyObject *_wrap_TimeSpan_Minutes(PyObject *self, PyObject *args, PyObject *kwargs) {
21262 PyObject *resultobj;
21263 long arg1 ;
21264 wxTimeSpan result;
21265 PyObject * obj0 = 0 ;
21266 char *kwnames[] = {
21267 (char *) "min", NULL
21268 };
21269
21270 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Minutes",kwnames,&obj0)) goto fail;
21271 arg1 = (long) SWIG_AsLong(obj0);
21272 if (PyErr_Occurred()) SWIG_fail;
21273 {
21274 PyThreadState* __tstate = wxPyBeginAllowThreads();
21275 result = wxTimeSpan::Minutes(arg1);
21276
21277 wxPyEndAllowThreads(__tstate);
21278 if (PyErr_Occurred()) SWIG_fail;
21279 }
21280 {
21281 wxTimeSpan * resultptr;
21282 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21283 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21284 }
21285 return resultobj;
21286 fail:
21287 return NULL;
21288 }
21289
21290
21291 static PyObject *_wrap_TimeSpan_Minute(PyObject *self, PyObject *args, PyObject *kwargs) {
21292 PyObject *resultobj;
21293 wxTimeSpan result;
21294 char *kwnames[] = {
21295 NULL
21296 };
21297
21298 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Minute",kwnames)) goto fail;
21299 {
21300 PyThreadState* __tstate = wxPyBeginAllowThreads();
21301 result = wxTimeSpan::Minute();
21302
21303 wxPyEndAllowThreads(__tstate);
21304 if (PyErr_Occurred()) SWIG_fail;
21305 }
21306 {
21307 wxTimeSpan * resultptr;
21308 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21309 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21310 }
21311 return resultobj;
21312 fail:
21313 return NULL;
21314 }
21315
21316
21317 static PyObject *_wrap_TimeSpan_Hours(PyObject *self, PyObject *args, PyObject *kwargs) {
21318 PyObject *resultobj;
21319 long arg1 ;
21320 wxTimeSpan result;
21321 PyObject * obj0 = 0 ;
21322 char *kwnames[] = {
21323 (char *) "hours", NULL
21324 };
21325
21326 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Hours",kwnames,&obj0)) goto fail;
21327 arg1 = (long) SWIG_AsLong(obj0);
21328 if (PyErr_Occurred()) SWIG_fail;
21329 {
21330 PyThreadState* __tstate = wxPyBeginAllowThreads();
21331 result = wxTimeSpan::Hours(arg1);
21332
21333 wxPyEndAllowThreads(__tstate);
21334 if (PyErr_Occurred()) SWIG_fail;
21335 }
21336 {
21337 wxTimeSpan * resultptr;
21338 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21339 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21340 }
21341 return resultobj;
21342 fail:
21343 return NULL;
21344 }
21345
21346
21347 static PyObject *_wrap_TimeSpan_Hour(PyObject *self, PyObject *args, PyObject *kwargs) {
21348 PyObject *resultobj;
21349 wxTimeSpan result;
21350 char *kwnames[] = {
21351 NULL
21352 };
21353
21354 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Hour",kwnames)) goto fail;
21355 {
21356 PyThreadState* __tstate = wxPyBeginAllowThreads();
21357 result = wxTimeSpan::Hour();
21358
21359 wxPyEndAllowThreads(__tstate);
21360 if (PyErr_Occurred()) SWIG_fail;
21361 }
21362 {
21363 wxTimeSpan * resultptr;
21364 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21365 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21366 }
21367 return resultobj;
21368 fail:
21369 return NULL;
21370 }
21371
21372
21373 static PyObject *_wrap_TimeSpan_Days(PyObject *self, PyObject *args, PyObject *kwargs) {
21374 PyObject *resultobj;
21375 long arg1 ;
21376 wxTimeSpan result;
21377 PyObject * obj0 = 0 ;
21378 char *kwnames[] = {
21379 (char *) "days", NULL
21380 };
21381
21382 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Days",kwnames,&obj0)) goto fail;
21383 arg1 = (long) SWIG_AsLong(obj0);
21384 if (PyErr_Occurred()) SWIG_fail;
21385 {
21386 PyThreadState* __tstate = wxPyBeginAllowThreads();
21387 result = wxTimeSpan::Days(arg1);
21388
21389 wxPyEndAllowThreads(__tstate);
21390 if (PyErr_Occurred()) SWIG_fail;
21391 }
21392 {
21393 wxTimeSpan * resultptr;
21394 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21395 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21396 }
21397 return resultobj;
21398 fail:
21399 return NULL;
21400 }
21401
21402
21403 static PyObject *_wrap_TimeSpan_Day(PyObject *self, PyObject *args, PyObject *kwargs) {
21404 PyObject *resultobj;
21405 wxTimeSpan result;
21406 char *kwnames[] = {
21407 NULL
21408 };
21409
21410 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Day",kwnames)) goto fail;
21411 {
21412 PyThreadState* __tstate = wxPyBeginAllowThreads();
21413 result = wxTimeSpan::Day();
21414
21415 wxPyEndAllowThreads(__tstate);
21416 if (PyErr_Occurred()) SWIG_fail;
21417 }
21418 {
21419 wxTimeSpan * resultptr;
21420 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21421 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21422 }
21423 return resultobj;
21424 fail:
21425 return NULL;
21426 }
21427
21428
21429 static PyObject *_wrap_TimeSpan_Weeks(PyObject *self, PyObject *args, PyObject *kwargs) {
21430 PyObject *resultobj;
21431 long arg1 ;
21432 wxTimeSpan result;
21433 PyObject * obj0 = 0 ;
21434 char *kwnames[] = {
21435 (char *) "days", NULL
21436 };
21437
21438 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Weeks",kwnames,&obj0)) goto fail;
21439 arg1 = (long) SWIG_AsLong(obj0);
21440 if (PyErr_Occurred()) SWIG_fail;
21441 {
21442 PyThreadState* __tstate = wxPyBeginAllowThreads();
21443 result = wxTimeSpan::Weeks(arg1);
21444
21445 wxPyEndAllowThreads(__tstate);
21446 if (PyErr_Occurred()) SWIG_fail;
21447 }
21448 {
21449 wxTimeSpan * resultptr;
21450 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21451 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21452 }
21453 return resultobj;
21454 fail:
21455 return NULL;
21456 }
21457
21458
21459 static PyObject *_wrap_TimeSpan_Week(PyObject *self, PyObject *args, PyObject *kwargs) {
21460 PyObject *resultobj;
21461 wxTimeSpan result;
21462 char *kwnames[] = {
21463 NULL
21464 };
21465
21466 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Week",kwnames)) goto fail;
21467 {
21468 PyThreadState* __tstate = wxPyBeginAllowThreads();
21469 result = wxTimeSpan::Week();
21470
21471 wxPyEndAllowThreads(__tstate);
21472 if (PyErr_Occurred()) SWIG_fail;
21473 }
21474 {
21475 wxTimeSpan * resultptr;
21476 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21477 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21478 }
21479 return resultobj;
21480 fail:
21481 return NULL;
21482 }
21483
21484
21485 static PyObject *_wrap_new_TimeSpan(PyObject *self, PyObject *args, PyObject *kwargs) {
21486 PyObject *resultobj;
21487 long arg1 = (long) 0 ;
21488 long arg2 = (long) 0 ;
21489 long arg3 = (long) 0 ;
21490 long arg4 = (long) 0 ;
21491 wxTimeSpan *result;
21492 PyObject * obj0 = 0 ;
21493 PyObject * obj1 = 0 ;
21494 PyObject * obj2 = 0 ;
21495 PyObject * obj3 = 0 ;
21496 char *kwnames[] = {
21497 (char *) "hours",(char *) "minutes",(char *) "seconds",(char *) "milliseconds", NULL
21498 };
21499
21500 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TimeSpan",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
21501 if (obj0) {
21502 arg1 = (long) SWIG_AsLong(obj0);
21503 if (PyErr_Occurred()) SWIG_fail;
21504 }
21505 if (obj1) {
21506 arg2 = (long) SWIG_AsLong(obj1);
21507 if (PyErr_Occurred()) SWIG_fail;
21508 }
21509 if (obj2) {
21510 arg3 = (long) SWIG_AsLong(obj2);
21511 if (PyErr_Occurred()) SWIG_fail;
21512 }
21513 if (obj3) {
21514 arg4 = (long) SWIG_AsLong(obj3);
21515 if (PyErr_Occurred()) SWIG_fail;
21516 }
21517 {
21518 PyThreadState* __tstate = wxPyBeginAllowThreads();
21519 result = (wxTimeSpan *)new wxTimeSpan(arg1,arg2,arg3,arg4);
21520
21521 wxPyEndAllowThreads(__tstate);
21522 if (PyErr_Occurred()) SWIG_fail;
21523 }
21524 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 1);
21525 return resultobj;
21526 fail:
21527 return NULL;
21528 }
21529
21530
21531 static PyObject *_wrap_delete_TimeSpan(PyObject *self, PyObject *args, PyObject *kwargs) {
21532 PyObject *resultobj;
21533 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21534 PyObject * obj0 = 0 ;
21535 char *kwnames[] = {
21536 (char *) "self", NULL
21537 };
21538
21539 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TimeSpan",kwnames,&obj0)) goto fail;
21540 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21541 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21542 {
21543 PyThreadState* __tstate = wxPyBeginAllowThreads();
21544 delete arg1;
21545
21546 wxPyEndAllowThreads(__tstate);
21547 if (PyErr_Occurred()) SWIG_fail;
21548 }
21549 Py_INCREF(Py_None); resultobj = Py_None;
21550 return resultobj;
21551 fail:
21552 return NULL;
21553 }
21554
21555
21556 static PyObject *_wrap_TimeSpan_Add(PyObject *self, PyObject *args, PyObject *kwargs) {
21557 PyObject *resultobj;
21558 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21559 wxTimeSpan *arg2 = 0 ;
21560 wxTimeSpan *result;
21561 PyObject * obj0 = 0 ;
21562 PyObject * obj1 = 0 ;
21563 char *kwnames[] = {
21564 (char *) "self",(char *) "diff", NULL
21565 };
21566
21567 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Add",kwnames,&obj0,&obj1)) goto fail;
21568 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21569 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21570 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
21571 SWIG_POINTER_EXCEPTION | 0)) == -1)
21572 SWIG_fail;
21573 if (arg2 == NULL) {
21574 PyErr_SetString(PyExc_TypeError,"null reference");
21575 SWIG_fail;
21576 }
21577 {
21578 PyThreadState* __tstate = wxPyBeginAllowThreads();
21579 {
21580 wxTimeSpan &_result_ref = (arg1)->Add((wxTimeSpan const &)*arg2);
21581 result = (wxTimeSpan *) &_result_ref;
21582 }
21583
21584 wxPyEndAllowThreads(__tstate);
21585 if (PyErr_Occurred()) SWIG_fail;
21586 }
21587 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
21588 return resultobj;
21589 fail:
21590 return NULL;
21591 }
21592
21593
21594 static PyObject *_wrap_TimeSpan_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) {
21595 PyObject *resultobj;
21596 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21597 wxTimeSpan *arg2 = 0 ;
21598 wxTimeSpan *result;
21599 PyObject * obj0 = 0 ;
21600 PyObject * obj1 = 0 ;
21601 char *kwnames[] = {
21602 (char *) "self",(char *) "diff", NULL
21603 };
21604
21605 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Subtract",kwnames,&obj0,&obj1)) goto fail;
21606 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21607 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21608 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
21609 SWIG_POINTER_EXCEPTION | 0)) == -1)
21610 SWIG_fail;
21611 if (arg2 == NULL) {
21612 PyErr_SetString(PyExc_TypeError,"null reference");
21613 SWIG_fail;
21614 }
21615 {
21616 PyThreadState* __tstate = wxPyBeginAllowThreads();
21617 {
21618 wxTimeSpan &_result_ref = (arg1)->Subtract((wxTimeSpan const &)*arg2);
21619 result = (wxTimeSpan *) &_result_ref;
21620 }
21621
21622 wxPyEndAllowThreads(__tstate);
21623 if (PyErr_Occurred()) SWIG_fail;
21624 }
21625 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
21626 return resultobj;
21627 fail:
21628 return NULL;
21629 }
21630
21631
21632 static PyObject *_wrap_TimeSpan_Multiply(PyObject *self, PyObject *args, PyObject *kwargs) {
21633 PyObject *resultobj;
21634 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21635 int arg2 ;
21636 wxTimeSpan *result;
21637 PyObject * obj0 = 0 ;
21638 PyObject * obj1 = 0 ;
21639 char *kwnames[] = {
21640 (char *) "self",(char *) "n", NULL
21641 };
21642
21643 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Multiply",kwnames,&obj0,&obj1)) goto fail;
21644 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21645 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21646 arg2 = (int) SWIG_AsInt(obj1);
21647 if (PyErr_Occurred()) SWIG_fail;
21648 {
21649 PyThreadState* __tstate = wxPyBeginAllowThreads();
21650 {
21651 wxTimeSpan &_result_ref = (arg1)->Multiply(arg2);
21652 result = (wxTimeSpan *) &_result_ref;
21653 }
21654
21655 wxPyEndAllowThreads(__tstate);
21656 if (PyErr_Occurred()) SWIG_fail;
21657 }
21658 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
21659 return resultobj;
21660 fail:
21661 return NULL;
21662 }
21663
21664
21665 static PyObject *_wrap_TimeSpan_Neg(PyObject *self, PyObject *args, PyObject *kwargs) {
21666 PyObject *resultobj;
21667 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21668 wxTimeSpan *result;
21669 PyObject * obj0 = 0 ;
21670 char *kwnames[] = {
21671 (char *) "self", NULL
21672 };
21673
21674 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Neg",kwnames,&obj0)) goto fail;
21675 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21676 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21677 {
21678 PyThreadState* __tstate = wxPyBeginAllowThreads();
21679 {
21680 wxTimeSpan &_result_ref = (arg1)->Neg();
21681 result = (wxTimeSpan *) &_result_ref;
21682 }
21683
21684 wxPyEndAllowThreads(__tstate);
21685 if (PyErr_Occurred()) SWIG_fail;
21686 }
21687 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
21688 return resultobj;
21689 fail:
21690 return NULL;
21691 }
21692
21693
21694 static PyObject *_wrap_TimeSpan_Abs(PyObject *self, PyObject *args, PyObject *kwargs) {
21695 PyObject *resultobj;
21696 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21697 wxTimeSpan result;
21698 PyObject * obj0 = 0 ;
21699 char *kwnames[] = {
21700 (char *) "self", NULL
21701 };
21702
21703 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Abs",kwnames,&obj0)) goto fail;
21704 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21705 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21706 {
21707 PyThreadState* __tstate = wxPyBeginAllowThreads();
21708 result = ((wxTimeSpan const *)arg1)->Abs();
21709
21710 wxPyEndAllowThreads(__tstate);
21711 if (PyErr_Occurred()) SWIG_fail;
21712 }
21713 {
21714 wxTimeSpan * resultptr;
21715 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21716 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21717 }
21718 return resultobj;
21719 fail:
21720 return NULL;
21721 }
21722
21723
21724 static PyObject *_wrap_TimeSpan___iadd__(PyObject *self, PyObject *args, PyObject *kwargs) {
21725 PyObject *resultobj;
21726 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21727 wxTimeSpan *arg2 = 0 ;
21728 wxTimeSpan *result;
21729 PyObject * obj0 = 0 ;
21730 PyObject * obj1 = 0 ;
21731 char *kwnames[] = {
21732 (char *) "self",(char *) "diff", NULL
21733 };
21734
21735 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___iadd__",kwnames,&obj0,&obj1)) goto fail;
21736 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21737 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21738 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
21739 SWIG_POINTER_EXCEPTION | 0)) == -1)
21740 SWIG_fail;
21741 if (arg2 == NULL) {
21742 PyErr_SetString(PyExc_TypeError,"null reference");
21743 SWIG_fail;
21744 }
21745 {
21746 PyThreadState* __tstate = wxPyBeginAllowThreads();
21747 {
21748 wxTimeSpan &_result_ref = (arg1)->operator +=((wxTimeSpan const &)*arg2);
21749 result = (wxTimeSpan *) &_result_ref;
21750 }
21751
21752 wxPyEndAllowThreads(__tstate);
21753 if (PyErr_Occurred()) SWIG_fail;
21754 }
21755 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
21756 return resultobj;
21757 fail:
21758 return NULL;
21759 }
21760
21761
21762 static PyObject *_wrap_TimeSpan___isub__(PyObject *self, PyObject *args, PyObject *kwargs) {
21763 PyObject *resultobj;
21764 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21765 wxTimeSpan *arg2 = 0 ;
21766 wxTimeSpan *result;
21767 PyObject * obj0 = 0 ;
21768 PyObject * obj1 = 0 ;
21769 char *kwnames[] = {
21770 (char *) "self",(char *) "diff", NULL
21771 };
21772
21773 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___isub__",kwnames,&obj0,&obj1)) goto fail;
21774 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21775 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21776 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
21777 SWIG_POINTER_EXCEPTION | 0)) == -1)
21778 SWIG_fail;
21779 if (arg2 == NULL) {
21780 PyErr_SetString(PyExc_TypeError,"null reference");
21781 SWIG_fail;
21782 }
21783 {
21784 PyThreadState* __tstate = wxPyBeginAllowThreads();
21785 {
21786 wxTimeSpan &_result_ref = (arg1)->operator -=((wxTimeSpan const &)*arg2);
21787 result = (wxTimeSpan *) &_result_ref;
21788 }
21789
21790 wxPyEndAllowThreads(__tstate);
21791 if (PyErr_Occurred()) SWIG_fail;
21792 }
21793 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
21794 return resultobj;
21795 fail:
21796 return NULL;
21797 }
21798
21799
21800 static PyObject *_wrap_TimeSpan___imul__(PyObject *self, PyObject *args, PyObject *kwargs) {
21801 PyObject *resultobj;
21802 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21803 int arg2 ;
21804 wxTimeSpan *result;
21805 PyObject * obj0 = 0 ;
21806 PyObject * obj1 = 0 ;
21807 char *kwnames[] = {
21808 (char *) "self",(char *) "n", NULL
21809 };
21810
21811 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___imul__",kwnames,&obj0,&obj1)) goto fail;
21812 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21813 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21814 arg2 = (int) SWIG_AsInt(obj1);
21815 if (PyErr_Occurred()) SWIG_fail;
21816 {
21817 PyThreadState* __tstate = wxPyBeginAllowThreads();
21818 {
21819 wxTimeSpan &_result_ref = (arg1)->operator *=(arg2);
21820 result = (wxTimeSpan *) &_result_ref;
21821 }
21822
21823 wxPyEndAllowThreads(__tstate);
21824 if (PyErr_Occurred()) SWIG_fail;
21825 }
21826 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
21827 return resultobj;
21828 fail:
21829 return NULL;
21830 }
21831
21832
21833 static PyObject *_wrap_TimeSpan___neg__(PyObject *self, PyObject *args, PyObject *kwargs) {
21834 PyObject *resultobj;
21835 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21836 wxTimeSpan *result;
21837 PyObject * obj0 = 0 ;
21838 char *kwnames[] = {
21839 (char *) "self", NULL
21840 };
21841
21842 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan___neg__",kwnames,&obj0)) goto fail;
21843 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21844 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21845 {
21846 PyThreadState* __tstate = wxPyBeginAllowThreads();
21847 {
21848 wxTimeSpan &_result_ref = (arg1)->operator -();
21849 result = (wxTimeSpan *) &_result_ref;
21850 }
21851
21852 wxPyEndAllowThreads(__tstate);
21853 if (PyErr_Occurred()) SWIG_fail;
21854 }
21855 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
21856 return resultobj;
21857 fail:
21858 return NULL;
21859 }
21860
21861
21862 static PyObject *_wrap_TimeSpan___add__(PyObject *self, PyObject *args, PyObject *kwargs) {
21863 PyObject *resultobj;
21864 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21865 wxTimeSpan *arg2 = 0 ;
21866 wxTimeSpan result;
21867 PyObject * obj0 = 0 ;
21868 PyObject * obj1 = 0 ;
21869 char *kwnames[] = {
21870 (char *) "self",(char *) "other", NULL
21871 };
21872
21873 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___add__",kwnames,&obj0,&obj1)) goto fail;
21874 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21875 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21876 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
21877 SWIG_POINTER_EXCEPTION | 0)) == -1)
21878 SWIG_fail;
21879 if (arg2 == NULL) {
21880 PyErr_SetString(PyExc_TypeError,"null reference");
21881 SWIG_fail;
21882 }
21883 {
21884 PyThreadState* __tstate = wxPyBeginAllowThreads();
21885 result = wxTimeSpan___add__(arg1,(wxTimeSpan const &)*arg2);
21886
21887 wxPyEndAllowThreads(__tstate);
21888 if (PyErr_Occurred()) SWIG_fail;
21889 }
21890 {
21891 wxTimeSpan * resultptr;
21892 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21893 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21894 }
21895 return resultobj;
21896 fail:
21897 return NULL;
21898 }
21899
21900
21901 static PyObject *_wrap_TimeSpan___sub__(PyObject *self, PyObject *args, PyObject *kwargs) {
21902 PyObject *resultobj;
21903 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21904 wxTimeSpan *arg2 = 0 ;
21905 wxTimeSpan result;
21906 PyObject * obj0 = 0 ;
21907 PyObject * obj1 = 0 ;
21908 char *kwnames[] = {
21909 (char *) "self",(char *) "other", NULL
21910 };
21911
21912 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___sub__",kwnames,&obj0,&obj1)) goto fail;
21913 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21914 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21915 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
21916 SWIG_POINTER_EXCEPTION | 0)) == -1)
21917 SWIG_fail;
21918 if (arg2 == NULL) {
21919 PyErr_SetString(PyExc_TypeError,"null reference");
21920 SWIG_fail;
21921 }
21922 {
21923 PyThreadState* __tstate = wxPyBeginAllowThreads();
21924 result = wxTimeSpan___sub__(arg1,(wxTimeSpan const &)*arg2);
21925
21926 wxPyEndAllowThreads(__tstate);
21927 if (PyErr_Occurred()) SWIG_fail;
21928 }
21929 {
21930 wxTimeSpan * resultptr;
21931 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21932 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21933 }
21934 return resultobj;
21935 fail:
21936 return NULL;
21937 }
21938
21939
21940 static PyObject *_wrap_TimeSpan___mul__(PyObject *self, PyObject *args, PyObject *kwargs) {
21941 PyObject *resultobj;
21942 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21943 int arg2 ;
21944 wxTimeSpan result;
21945 PyObject * obj0 = 0 ;
21946 PyObject * obj1 = 0 ;
21947 char *kwnames[] = {
21948 (char *) "self",(char *) "n", NULL
21949 };
21950
21951 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___mul__",kwnames,&obj0,&obj1)) goto fail;
21952 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21953 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21954 arg2 = (int) SWIG_AsInt(obj1);
21955 if (PyErr_Occurred()) SWIG_fail;
21956 {
21957 PyThreadState* __tstate = wxPyBeginAllowThreads();
21958 result = wxTimeSpan___mul__(arg1,arg2);
21959
21960 wxPyEndAllowThreads(__tstate);
21961 if (PyErr_Occurred()) SWIG_fail;
21962 }
21963 {
21964 wxTimeSpan * resultptr;
21965 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21966 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21967 }
21968 return resultobj;
21969 fail:
21970 return NULL;
21971 }
21972
21973
21974 static PyObject *_wrap_TimeSpan___rmul__(PyObject *self, PyObject *args, PyObject *kwargs) {
21975 PyObject *resultobj;
21976 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21977 int arg2 ;
21978 wxTimeSpan result;
21979 PyObject * obj0 = 0 ;
21980 PyObject * obj1 = 0 ;
21981 char *kwnames[] = {
21982 (char *) "self",(char *) "n", NULL
21983 };
21984
21985 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___rmul__",kwnames,&obj0,&obj1)) goto fail;
21986 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21987 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21988 arg2 = (int) SWIG_AsInt(obj1);
21989 if (PyErr_Occurred()) SWIG_fail;
21990 {
21991 PyThreadState* __tstate = wxPyBeginAllowThreads();
21992 result = wxTimeSpan___rmul__(arg1,arg2);
21993
21994 wxPyEndAllowThreads(__tstate);
21995 if (PyErr_Occurred()) SWIG_fail;
21996 }
21997 {
21998 wxTimeSpan * resultptr;
21999 resultptr = new wxTimeSpan((wxTimeSpan &) result);
22000 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
22001 }
22002 return resultobj;
22003 fail:
22004 return NULL;
22005 }
22006
22007
22008 static PyObject *_wrap_TimeSpan___lt__(PyObject *self, PyObject *args, PyObject *kwargs) {
22009 PyObject *resultobj;
22010 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22011 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
22012 bool result;
22013 PyObject * obj0 = 0 ;
22014 PyObject * obj1 = 0 ;
22015 char *kwnames[] = {
22016 (char *) "self",(char *) "other", NULL
22017 };
22018
22019 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___lt__",kwnames,&obj0,&obj1)) goto fail;
22020 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22021 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22022 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22023 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22024 {
22025 PyThreadState* __tstate = wxPyBeginAllowThreads();
22026 result = (bool)wxTimeSpan___lt__(arg1,(wxTimeSpan const *)arg2);
22027
22028 wxPyEndAllowThreads(__tstate);
22029 if (PyErr_Occurred()) SWIG_fail;
22030 }
22031 {
22032 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22033 }
22034 return resultobj;
22035 fail:
22036 return NULL;
22037 }
22038
22039
22040 static PyObject *_wrap_TimeSpan___le__(PyObject *self, PyObject *args, PyObject *kwargs) {
22041 PyObject *resultobj;
22042 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22043 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
22044 bool result;
22045 PyObject * obj0 = 0 ;
22046 PyObject * obj1 = 0 ;
22047 char *kwnames[] = {
22048 (char *) "self",(char *) "other", NULL
22049 };
22050
22051 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___le__",kwnames,&obj0,&obj1)) goto fail;
22052 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22053 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22054 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22055 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22056 {
22057 PyThreadState* __tstate = wxPyBeginAllowThreads();
22058 result = (bool)wxTimeSpan___le__(arg1,(wxTimeSpan const *)arg2);
22059
22060 wxPyEndAllowThreads(__tstate);
22061 if (PyErr_Occurred()) SWIG_fail;
22062 }
22063 {
22064 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22065 }
22066 return resultobj;
22067 fail:
22068 return NULL;
22069 }
22070
22071
22072 static PyObject *_wrap_TimeSpan___gt__(PyObject *self, PyObject *args, PyObject *kwargs) {
22073 PyObject *resultobj;
22074 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22075 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
22076 bool result;
22077 PyObject * obj0 = 0 ;
22078 PyObject * obj1 = 0 ;
22079 char *kwnames[] = {
22080 (char *) "self",(char *) "other", NULL
22081 };
22082
22083 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___gt__",kwnames,&obj0,&obj1)) goto fail;
22084 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22085 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22086 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22087 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22088 {
22089 PyThreadState* __tstate = wxPyBeginAllowThreads();
22090 result = (bool)wxTimeSpan___gt__(arg1,(wxTimeSpan const *)arg2);
22091
22092 wxPyEndAllowThreads(__tstate);
22093 if (PyErr_Occurred()) SWIG_fail;
22094 }
22095 {
22096 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22097 }
22098 return resultobj;
22099 fail:
22100 return NULL;
22101 }
22102
22103
22104 static PyObject *_wrap_TimeSpan___ge__(PyObject *self, PyObject *args, PyObject *kwargs) {
22105 PyObject *resultobj;
22106 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22107 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
22108 bool result;
22109 PyObject * obj0 = 0 ;
22110 PyObject * obj1 = 0 ;
22111 char *kwnames[] = {
22112 (char *) "self",(char *) "other", NULL
22113 };
22114
22115 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___ge__",kwnames,&obj0,&obj1)) goto fail;
22116 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22117 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22118 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22119 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22120 {
22121 PyThreadState* __tstate = wxPyBeginAllowThreads();
22122 result = (bool)wxTimeSpan___ge__(arg1,(wxTimeSpan const *)arg2);
22123
22124 wxPyEndAllowThreads(__tstate);
22125 if (PyErr_Occurred()) SWIG_fail;
22126 }
22127 {
22128 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22129 }
22130 return resultobj;
22131 fail:
22132 return NULL;
22133 }
22134
22135
22136 static PyObject *_wrap_TimeSpan___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
22137 PyObject *resultobj;
22138 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22139 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
22140 bool result;
22141 PyObject * obj0 = 0 ;
22142 PyObject * obj1 = 0 ;
22143 char *kwnames[] = {
22144 (char *) "self",(char *) "other", NULL
22145 };
22146
22147 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___eq__",kwnames,&obj0,&obj1)) goto fail;
22148 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22149 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22150 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22151 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22152 {
22153 PyThreadState* __tstate = wxPyBeginAllowThreads();
22154 result = (bool)wxTimeSpan___eq__(arg1,(wxTimeSpan const *)arg2);
22155
22156 wxPyEndAllowThreads(__tstate);
22157 if (PyErr_Occurred()) SWIG_fail;
22158 }
22159 {
22160 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22161 }
22162 return resultobj;
22163 fail:
22164 return NULL;
22165 }
22166
22167
22168 static PyObject *_wrap_TimeSpan___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
22169 PyObject *resultobj;
22170 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22171 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
22172 bool result;
22173 PyObject * obj0 = 0 ;
22174 PyObject * obj1 = 0 ;
22175 char *kwnames[] = {
22176 (char *) "self",(char *) "other", NULL
22177 };
22178
22179 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___ne__",kwnames,&obj0,&obj1)) goto fail;
22180 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22181 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22182 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22183 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22184 {
22185 PyThreadState* __tstate = wxPyBeginAllowThreads();
22186 result = (bool)wxTimeSpan___ne__(arg1,(wxTimeSpan const *)arg2);
22187
22188 wxPyEndAllowThreads(__tstate);
22189 if (PyErr_Occurred()) SWIG_fail;
22190 }
22191 {
22192 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22193 }
22194 return resultobj;
22195 fail:
22196 return NULL;
22197 }
22198
22199
22200 static PyObject *_wrap_TimeSpan_IsNull(PyObject *self, PyObject *args, PyObject *kwargs) {
22201 PyObject *resultobj;
22202 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22203 bool result;
22204 PyObject * obj0 = 0 ;
22205 char *kwnames[] = {
22206 (char *) "self", NULL
22207 };
22208
22209 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsNull",kwnames,&obj0)) goto fail;
22210 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22211 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22212 {
22213 PyThreadState* __tstate = wxPyBeginAllowThreads();
22214 result = (bool)((wxTimeSpan const *)arg1)->IsNull();
22215
22216 wxPyEndAllowThreads(__tstate);
22217 if (PyErr_Occurred()) SWIG_fail;
22218 }
22219 {
22220 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22221 }
22222 return resultobj;
22223 fail:
22224 return NULL;
22225 }
22226
22227
22228 static PyObject *_wrap_TimeSpan_IsPositive(PyObject *self, PyObject *args, PyObject *kwargs) {
22229 PyObject *resultobj;
22230 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22231 bool result;
22232 PyObject * obj0 = 0 ;
22233 char *kwnames[] = {
22234 (char *) "self", NULL
22235 };
22236
22237 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsPositive",kwnames,&obj0)) goto fail;
22238 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22239 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22240 {
22241 PyThreadState* __tstate = wxPyBeginAllowThreads();
22242 result = (bool)((wxTimeSpan const *)arg1)->IsPositive();
22243
22244 wxPyEndAllowThreads(__tstate);
22245 if (PyErr_Occurred()) SWIG_fail;
22246 }
22247 {
22248 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22249 }
22250 return resultobj;
22251 fail:
22252 return NULL;
22253 }
22254
22255
22256 static PyObject *_wrap_TimeSpan_IsNegative(PyObject *self, PyObject *args, PyObject *kwargs) {
22257 PyObject *resultobj;
22258 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22259 bool result;
22260 PyObject * obj0 = 0 ;
22261 char *kwnames[] = {
22262 (char *) "self", NULL
22263 };
22264
22265 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsNegative",kwnames,&obj0)) goto fail;
22266 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22267 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22268 {
22269 PyThreadState* __tstate = wxPyBeginAllowThreads();
22270 result = (bool)((wxTimeSpan const *)arg1)->IsNegative();
22271
22272 wxPyEndAllowThreads(__tstate);
22273 if (PyErr_Occurred()) SWIG_fail;
22274 }
22275 {
22276 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22277 }
22278 return resultobj;
22279 fail:
22280 return NULL;
22281 }
22282
22283
22284 static PyObject *_wrap_TimeSpan_IsEqualTo(PyObject *self, PyObject *args, PyObject *kwargs) {
22285 PyObject *resultobj;
22286 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22287 wxTimeSpan *arg2 = 0 ;
22288 bool result;
22289 PyObject * obj0 = 0 ;
22290 PyObject * obj1 = 0 ;
22291 char *kwnames[] = {
22292 (char *) "self",(char *) "ts", NULL
22293 };
22294
22295 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsEqualTo",kwnames,&obj0,&obj1)) goto fail;
22296 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22297 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22298 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22299 SWIG_POINTER_EXCEPTION | 0)) == -1)
22300 SWIG_fail;
22301 if (arg2 == NULL) {
22302 PyErr_SetString(PyExc_TypeError,"null reference");
22303 SWIG_fail;
22304 }
22305 {
22306 PyThreadState* __tstate = wxPyBeginAllowThreads();
22307 result = (bool)((wxTimeSpan const *)arg1)->IsEqualTo((wxTimeSpan const &)*arg2);
22308
22309 wxPyEndAllowThreads(__tstate);
22310 if (PyErr_Occurred()) SWIG_fail;
22311 }
22312 {
22313 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22314 }
22315 return resultobj;
22316 fail:
22317 return NULL;
22318 }
22319
22320
22321 static PyObject *_wrap_TimeSpan_IsLongerThan(PyObject *self, PyObject *args, PyObject *kwargs) {
22322 PyObject *resultobj;
22323 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22324 wxTimeSpan *arg2 = 0 ;
22325 bool result;
22326 PyObject * obj0 = 0 ;
22327 PyObject * obj1 = 0 ;
22328 char *kwnames[] = {
22329 (char *) "self",(char *) "ts", NULL
22330 };
22331
22332 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsLongerThan",kwnames,&obj0,&obj1)) goto fail;
22333 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22334 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22335 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22336 SWIG_POINTER_EXCEPTION | 0)) == -1)
22337 SWIG_fail;
22338 if (arg2 == NULL) {
22339 PyErr_SetString(PyExc_TypeError,"null reference");
22340 SWIG_fail;
22341 }
22342 {
22343 PyThreadState* __tstate = wxPyBeginAllowThreads();
22344 result = (bool)((wxTimeSpan const *)arg1)->IsLongerThan((wxTimeSpan const &)*arg2);
22345
22346 wxPyEndAllowThreads(__tstate);
22347 if (PyErr_Occurred()) SWIG_fail;
22348 }
22349 {
22350 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22351 }
22352 return resultobj;
22353 fail:
22354 return NULL;
22355 }
22356
22357
22358 static PyObject *_wrap_TimeSpan_IsShorterThan(PyObject *self, PyObject *args, PyObject *kwargs) {
22359 PyObject *resultobj;
22360 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22361 wxTimeSpan *arg2 = 0 ;
22362 bool result;
22363 PyObject * obj0 = 0 ;
22364 PyObject * obj1 = 0 ;
22365 char *kwnames[] = {
22366 (char *) "self",(char *) "t", NULL
22367 };
22368
22369 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsShorterThan",kwnames,&obj0,&obj1)) goto fail;
22370 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22371 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22372 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22373 SWIG_POINTER_EXCEPTION | 0)) == -1)
22374 SWIG_fail;
22375 if (arg2 == NULL) {
22376 PyErr_SetString(PyExc_TypeError,"null reference");
22377 SWIG_fail;
22378 }
22379 {
22380 PyThreadState* __tstate = wxPyBeginAllowThreads();
22381 result = (bool)((wxTimeSpan const *)arg1)->IsShorterThan((wxTimeSpan const &)*arg2);
22382
22383 wxPyEndAllowThreads(__tstate);
22384 if (PyErr_Occurred()) SWIG_fail;
22385 }
22386 {
22387 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22388 }
22389 return resultobj;
22390 fail:
22391 return NULL;
22392 }
22393
22394
22395 static PyObject *_wrap_TimeSpan_GetWeeks(PyObject *self, PyObject *args, PyObject *kwargs) {
22396 PyObject *resultobj;
22397 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22398 int result;
22399 PyObject * obj0 = 0 ;
22400 char *kwnames[] = {
22401 (char *) "self", NULL
22402 };
22403
22404 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetWeeks",kwnames,&obj0)) goto fail;
22405 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22406 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22407 {
22408 PyThreadState* __tstate = wxPyBeginAllowThreads();
22409 result = (int)((wxTimeSpan const *)arg1)->GetWeeks();
22410
22411 wxPyEndAllowThreads(__tstate);
22412 if (PyErr_Occurred()) SWIG_fail;
22413 }
22414 resultobj = SWIG_FromInt((int)result);
22415 return resultobj;
22416 fail:
22417 return NULL;
22418 }
22419
22420
22421 static PyObject *_wrap_TimeSpan_GetDays(PyObject *self, PyObject *args, PyObject *kwargs) {
22422 PyObject *resultobj;
22423 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22424 int result;
22425 PyObject * obj0 = 0 ;
22426 char *kwnames[] = {
22427 (char *) "self", NULL
22428 };
22429
22430 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetDays",kwnames,&obj0)) goto fail;
22431 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22432 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22433 {
22434 PyThreadState* __tstate = wxPyBeginAllowThreads();
22435 result = (int)((wxTimeSpan const *)arg1)->GetDays();
22436
22437 wxPyEndAllowThreads(__tstate);
22438 if (PyErr_Occurred()) SWIG_fail;
22439 }
22440 resultobj = SWIG_FromInt((int)result);
22441 return resultobj;
22442 fail:
22443 return NULL;
22444 }
22445
22446
22447 static PyObject *_wrap_TimeSpan_GetHours(PyObject *self, PyObject *args, PyObject *kwargs) {
22448 PyObject *resultobj;
22449 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22450 int result;
22451 PyObject * obj0 = 0 ;
22452 char *kwnames[] = {
22453 (char *) "self", NULL
22454 };
22455
22456 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetHours",kwnames,&obj0)) goto fail;
22457 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22458 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22459 {
22460 PyThreadState* __tstate = wxPyBeginAllowThreads();
22461 result = (int)((wxTimeSpan const *)arg1)->GetHours();
22462
22463 wxPyEndAllowThreads(__tstate);
22464 if (PyErr_Occurred()) SWIG_fail;
22465 }
22466 resultobj = SWIG_FromInt((int)result);
22467 return resultobj;
22468 fail:
22469 return NULL;
22470 }
22471
22472
22473 static PyObject *_wrap_TimeSpan_GetMinutes(PyObject *self, PyObject *args, PyObject *kwargs) {
22474 PyObject *resultobj;
22475 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22476 int result;
22477 PyObject * obj0 = 0 ;
22478 char *kwnames[] = {
22479 (char *) "self", NULL
22480 };
22481
22482 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetMinutes",kwnames,&obj0)) goto fail;
22483 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22484 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22485 {
22486 PyThreadState* __tstate = wxPyBeginAllowThreads();
22487 result = (int)((wxTimeSpan const *)arg1)->GetMinutes();
22488
22489 wxPyEndAllowThreads(__tstate);
22490 if (PyErr_Occurred()) SWIG_fail;
22491 }
22492 resultobj = SWIG_FromInt((int)result);
22493 return resultobj;
22494 fail:
22495 return NULL;
22496 }
22497
22498
22499 static PyObject *_wrap_TimeSpan_GetSeconds(PyObject *self, PyObject *args, PyObject *kwargs) {
22500 PyObject *resultobj;
22501 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22502 wxLongLong result;
22503 PyObject * obj0 = 0 ;
22504 char *kwnames[] = {
22505 (char *) "self", NULL
22506 };
22507
22508 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetSeconds",kwnames,&obj0)) goto fail;
22509 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22510 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22511 {
22512 PyThreadState* __tstate = wxPyBeginAllowThreads();
22513 result = ((wxTimeSpan const *)arg1)->GetSeconds();
22514
22515 wxPyEndAllowThreads(__tstate);
22516 if (PyErr_Occurred()) SWIG_fail;
22517 }
22518 {
22519 PyObject *hi, *lo, *shifter, *shifted;
22520 hi = PyLong_FromLong( (&result)->GetHi() );
22521 lo = PyLong_FromLong( (&result)->GetLo() );
22522 shifter = PyLong_FromLong(32);
22523 shifted = PyNumber_Lshift(hi, shifter);
22524 resultobj = PyNumber_Or(shifted, lo);
22525 Py_DECREF(hi);
22526 Py_DECREF(lo);
22527 Py_DECREF(shifter);
22528 Py_DECREF(shifted);
22529 }
22530 return resultobj;
22531 fail:
22532 return NULL;
22533 }
22534
22535
22536 static PyObject *_wrap_TimeSpan_GetMilliseconds(PyObject *self, PyObject *args, PyObject *kwargs) {
22537 PyObject *resultobj;
22538 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22539 wxLongLong result;
22540 PyObject * obj0 = 0 ;
22541 char *kwnames[] = {
22542 (char *) "self", NULL
22543 };
22544
22545 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetMilliseconds",kwnames,&obj0)) goto fail;
22546 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22547 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22548 {
22549 PyThreadState* __tstate = wxPyBeginAllowThreads();
22550 result = ((wxTimeSpan const *)arg1)->GetMilliseconds();
22551
22552 wxPyEndAllowThreads(__tstate);
22553 if (PyErr_Occurred()) SWIG_fail;
22554 }
22555 {
22556 PyObject *hi, *lo, *shifter, *shifted;
22557 hi = PyLong_FromLong( (&result)->GetHi() );
22558 lo = PyLong_FromLong( (&result)->GetLo() );
22559 shifter = PyLong_FromLong(32);
22560 shifted = PyNumber_Lshift(hi, shifter);
22561 resultobj = PyNumber_Or(shifted, lo);
22562 Py_DECREF(hi);
22563 Py_DECREF(lo);
22564 Py_DECREF(shifter);
22565 Py_DECREF(shifted);
22566 }
22567 return resultobj;
22568 fail:
22569 return NULL;
22570 }
22571
22572
22573 static PyObject *_wrap_TimeSpan_Format(PyObject *self, PyObject *args, PyObject *kwargs) {
22574 PyObject *resultobj;
22575 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22576 wxString const &arg2_defvalue = wxPyTimeSpanFormatStr ;
22577 wxString *arg2 = (wxString *) &arg2_defvalue ;
22578 wxString result;
22579 bool temp2 = False ;
22580 PyObject * obj0 = 0 ;
22581 PyObject * obj1 = 0 ;
22582 char *kwnames[] = {
22583 (char *) "self",(char *) "format", NULL
22584 };
22585
22586 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TimeSpan_Format",kwnames,&obj0,&obj1)) goto fail;
22587 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22588 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22589 if (obj1) {
22590 {
22591 arg2 = wxString_in_helper(obj1);
22592 if (arg2 == NULL) SWIG_fail;
22593 temp2 = True;
22594 }
22595 }
22596 {
22597 PyThreadState* __tstate = wxPyBeginAllowThreads();
22598 result = ((wxTimeSpan const *)arg1)->Format((wxString const &)*arg2);
22599
22600 wxPyEndAllowThreads(__tstate);
22601 if (PyErr_Occurred()) SWIG_fail;
22602 }
22603 {
22604 #if wxUSE_UNICODE
22605 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
22606 #else
22607 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
22608 #endif
22609 }
22610 {
22611 if (temp2)
22612 delete arg2;
22613 }
22614 return resultobj;
22615 fail:
22616 {
22617 if (temp2)
22618 delete arg2;
22619 }
22620 return NULL;
22621 }
22622
22623
22624 static PyObject * TimeSpan_swigregister(PyObject *self, PyObject *args) {
22625 PyObject *obj;
22626 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
22627 SWIG_TypeClientData(SWIGTYPE_p_wxTimeSpan, obj);
22628 Py_INCREF(obj);
22629 return Py_BuildValue((char *)"");
22630 }
22631 static PyObject *_wrap_new_DateSpan(PyObject *self, PyObject *args, PyObject *kwargs) {
22632 PyObject *resultobj;
22633 int arg1 = (int) 0 ;
22634 int arg2 = (int) 0 ;
22635 int arg3 = (int) 0 ;
22636 int arg4 = (int) 0 ;
22637 wxDateSpan *result;
22638 PyObject * obj0 = 0 ;
22639 PyObject * obj1 = 0 ;
22640 PyObject * obj2 = 0 ;
22641 PyObject * obj3 = 0 ;
22642 char *kwnames[] = {
22643 (char *) "years",(char *) "months",(char *) "weeks",(char *) "days", NULL
22644 };
22645
22646 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_DateSpan",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
22647 if (obj0) {
22648 arg1 = (int) SWIG_AsInt(obj0);
22649 if (PyErr_Occurred()) SWIG_fail;
22650 }
22651 if (obj1) {
22652 arg2 = (int) SWIG_AsInt(obj1);
22653 if (PyErr_Occurred()) SWIG_fail;
22654 }
22655 if (obj2) {
22656 arg3 = (int) SWIG_AsInt(obj2);
22657 if (PyErr_Occurred()) SWIG_fail;
22658 }
22659 if (obj3) {
22660 arg4 = (int) SWIG_AsInt(obj3);
22661 if (PyErr_Occurred()) SWIG_fail;
22662 }
22663 {
22664 PyThreadState* __tstate = wxPyBeginAllowThreads();
22665 result = (wxDateSpan *)new wxDateSpan(arg1,arg2,arg3,arg4);
22666
22667 wxPyEndAllowThreads(__tstate);
22668 if (PyErr_Occurred()) SWIG_fail;
22669 }
22670 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 1);
22671 return resultobj;
22672 fail:
22673 return NULL;
22674 }
22675
22676
22677 static PyObject *_wrap_delete_DateSpan(PyObject *self, PyObject *args, PyObject *kwargs) {
22678 PyObject *resultobj;
22679 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
22680 PyObject * obj0 = 0 ;
22681 char *kwnames[] = {
22682 (char *) "self", NULL
22683 };
22684
22685 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DateSpan",kwnames,&obj0)) goto fail;
22686 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
22687 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22688 {
22689 PyThreadState* __tstate = wxPyBeginAllowThreads();
22690 delete arg1;
22691
22692 wxPyEndAllowThreads(__tstate);
22693 if (PyErr_Occurred()) SWIG_fail;
22694 }
22695 Py_INCREF(Py_None); resultobj = Py_None;
22696 return resultobj;
22697 fail:
22698 return NULL;
22699 }
22700
22701
22702 static PyObject *_wrap_DateSpan_Days(PyObject *self, PyObject *args, PyObject *kwargs) {
22703 PyObject *resultobj;
22704 int arg1 ;
22705 wxDateSpan result;
22706 PyObject * obj0 = 0 ;
22707 char *kwnames[] = {
22708 (char *) "days", NULL
22709 };
22710
22711 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Days",kwnames,&obj0)) goto fail;
22712 arg1 = (int) SWIG_AsInt(obj0);
22713 if (PyErr_Occurred()) SWIG_fail;
22714 {
22715 PyThreadState* __tstate = wxPyBeginAllowThreads();
22716 result = wxDateSpan::Days(arg1);
22717
22718 wxPyEndAllowThreads(__tstate);
22719 if (PyErr_Occurred()) SWIG_fail;
22720 }
22721 {
22722 wxDateSpan * resultptr;
22723 resultptr = new wxDateSpan((wxDateSpan &) result);
22724 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
22725 }
22726 return resultobj;
22727 fail:
22728 return NULL;
22729 }
22730
22731
22732 static PyObject *_wrap_DateSpan_Day(PyObject *self, PyObject *args, PyObject *kwargs) {
22733 PyObject *resultobj;
22734 wxDateSpan result;
22735 char *kwnames[] = {
22736 NULL
22737 };
22738
22739 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Day",kwnames)) goto fail;
22740 {
22741 PyThreadState* __tstate = wxPyBeginAllowThreads();
22742 result = wxDateSpan::Day();
22743
22744 wxPyEndAllowThreads(__tstate);
22745 if (PyErr_Occurred()) SWIG_fail;
22746 }
22747 {
22748 wxDateSpan * resultptr;
22749 resultptr = new wxDateSpan((wxDateSpan &) result);
22750 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
22751 }
22752 return resultobj;
22753 fail:
22754 return NULL;
22755 }
22756
22757
22758 static PyObject *_wrap_DateSpan_Weeks(PyObject *self, PyObject *args, PyObject *kwargs) {
22759 PyObject *resultobj;
22760 int arg1 ;
22761 wxDateSpan result;
22762 PyObject * obj0 = 0 ;
22763 char *kwnames[] = {
22764 (char *) "weeks", NULL
22765 };
22766
22767 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Weeks",kwnames,&obj0)) goto fail;
22768 arg1 = (int) SWIG_AsInt(obj0);
22769 if (PyErr_Occurred()) SWIG_fail;
22770 {
22771 PyThreadState* __tstate = wxPyBeginAllowThreads();
22772 result = wxDateSpan::Weeks(arg1);
22773
22774 wxPyEndAllowThreads(__tstate);
22775 if (PyErr_Occurred()) SWIG_fail;
22776 }
22777 {
22778 wxDateSpan * resultptr;
22779 resultptr = new wxDateSpan((wxDateSpan &) result);
22780 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
22781 }
22782 return resultobj;
22783 fail:
22784 return NULL;
22785 }
22786
22787
22788 static PyObject *_wrap_DateSpan_Week(PyObject *self, PyObject *args, PyObject *kwargs) {
22789 PyObject *resultobj;
22790 wxDateSpan result;
22791 char *kwnames[] = {
22792 NULL
22793 };
22794
22795 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Week",kwnames)) goto fail;
22796 {
22797 PyThreadState* __tstate = wxPyBeginAllowThreads();
22798 result = wxDateSpan::Week();
22799
22800 wxPyEndAllowThreads(__tstate);
22801 if (PyErr_Occurred()) SWIG_fail;
22802 }
22803 {
22804 wxDateSpan * resultptr;
22805 resultptr = new wxDateSpan((wxDateSpan &) result);
22806 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
22807 }
22808 return resultobj;
22809 fail:
22810 return NULL;
22811 }
22812
22813
22814 static PyObject *_wrap_DateSpan_Months(PyObject *self, PyObject *args, PyObject *kwargs) {
22815 PyObject *resultobj;
22816 int arg1 ;
22817 wxDateSpan result;
22818 PyObject * obj0 = 0 ;
22819 char *kwnames[] = {
22820 (char *) "mon", NULL
22821 };
22822
22823 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Months",kwnames,&obj0)) goto fail;
22824 arg1 = (int) SWIG_AsInt(obj0);
22825 if (PyErr_Occurred()) SWIG_fail;
22826 {
22827 PyThreadState* __tstate = wxPyBeginAllowThreads();
22828 result = wxDateSpan::Months(arg1);
22829
22830 wxPyEndAllowThreads(__tstate);
22831 if (PyErr_Occurred()) SWIG_fail;
22832 }
22833 {
22834 wxDateSpan * resultptr;
22835 resultptr = new wxDateSpan((wxDateSpan &) result);
22836 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
22837 }
22838 return resultobj;
22839 fail:
22840 return NULL;
22841 }
22842
22843
22844 static PyObject *_wrap_DateSpan_Month(PyObject *self, PyObject *args, PyObject *kwargs) {
22845 PyObject *resultobj;
22846 wxDateSpan result;
22847 char *kwnames[] = {
22848 NULL
22849 };
22850
22851 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Month",kwnames)) goto fail;
22852 {
22853 PyThreadState* __tstate = wxPyBeginAllowThreads();
22854 result = wxDateSpan::Month();
22855
22856 wxPyEndAllowThreads(__tstate);
22857 if (PyErr_Occurred()) SWIG_fail;
22858 }
22859 {
22860 wxDateSpan * resultptr;
22861 resultptr = new wxDateSpan((wxDateSpan &) result);
22862 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
22863 }
22864 return resultobj;
22865 fail:
22866 return NULL;
22867 }
22868
22869
22870 static PyObject *_wrap_DateSpan_Years(PyObject *self, PyObject *args, PyObject *kwargs) {
22871 PyObject *resultobj;
22872 int arg1 ;
22873 wxDateSpan result;
22874 PyObject * obj0 = 0 ;
22875 char *kwnames[] = {
22876 (char *) "years", NULL
22877 };
22878
22879 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Years",kwnames,&obj0)) goto fail;
22880 arg1 = (int) SWIG_AsInt(obj0);
22881 if (PyErr_Occurred()) SWIG_fail;
22882 {
22883 PyThreadState* __tstate = wxPyBeginAllowThreads();
22884 result = wxDateSpan::Years(arg1);
22885
22886 wxPyEndAllowThreads(__tstate);
22887 if (PyErr_Occurred()) SWIG_fail;
22888 }
22889 {
22890 wxDateSpan * resultptr;
22891 resultptr = new wxDateSpan((wxDateSpan &) result);
22892 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
22893 }
22894 return resultobj;
22895 fail:
22896 return NULL;
22897 }
22898
22899
22900 static PyObject *_wrap_DateSpan_Year(PyObject *self, PyObject *args, PyObject *kwargs) {
22901 PyObject *resultobj;
22902 wxDateSpan result;
22903 char *kwnames[] = {
22904 NULL
22905 };
22906
22907 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Year",kwnames)) goto fail;
22908 {
22909 PyThreadState* __tstate = wxPyBeginAllowThreads();
22910 result = wxDateSpan::Year();
22911
22912 wxPyEndAllowThreads(__tstate);
22913 if (PyErr_Occurred()) SWIG_fail;
22914 }
22915 {
22916 wxDateSpan * resultptr;
22917 resultptr = new wxDateSpan((wxDateSpan &) result);
22918 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
22919 }
22920 return resultobj;
22921 fail:
22922 return NULL;
22923 }
22924
22925
22926 static PyObject *_wrap_DateSpan_SetYears(PyObject *self, PyObject *args, PyObject *kwargs) {
22927 PyObject *resultobj;
22928 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
22929 int arg2 ;
22930 wxDateSpan *result;
22931 PyObject * obj0 = 0 ;
22932 PyObject * obj1 = 0 ;
22933 char *kwnames[] = {
22934 (char *) "self",(char *) "n", NULL
22935 };
22936
22937 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetYears",kwnames,&obj0,&obj1)) goto fail;
22938 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
22939 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22940 arg2 = (int) SWIG_AsInt(obj1);
22941 if (PyErr_Occurred()) SWIG_fail;
22942 {
22943 PyThreadState* __tstate = wxPyBeginAllowThreads();
22944 {
22945 wxDateSpan &_result_ref = (arg1)->SetYears(arg2);
22946 result = (wxDateSpan *) &_result_ref;
22947 }
22948
22949 wxPyEndAllowThreads(__tstate);
22950 if (PyErr_Occurred()) SWIG_fail;
22951 }
22952 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
22953 return resultobj;
22954 fail:
22955 return NULL;
22956 }
22957
22958
22959 static PyObject *_wrap_DateSpan_SetMonths(PyObject *self, PyObject *args, PyObject *kwargs) {
22960 PyObject *resultobj;
22961 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
22962 int arg2 ;
22963 wxDateSpan *result;
22964 PyObject * obj0 = 0 ;
22965 PyObject * obj1 = 0 ;
22966 char *kwnames[] = {
22967 (char *) "self",(char *) "n", NULL
22968 };
22969
22970 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetMonths",kwnames,&obj0,&obj1)) goto fail;
22971 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
22972 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22973 arg2 = (int) SWIG_AsInt(obj1);
22974 if (PyErr_Occurred()) SWIG_fail;
22975 {
22976 PyThreadState* __tstate = wxPyBeginAllowThreads();
22977 {
22978 wxDateSpan &_result_ref = (arg1)->SetMonths(arg2);
22979 result = (wxDateSpan *) &_result_ref;
22980 }
22981
22982 wxPyEndAllowThreads(__tstate);
22983 if (PyErr_Occurred()) SWIG_fail;
22984 }
22985 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
22986 return resultobj;
22987 fail:
22988 return NULL;
22989 }
22990
22991
22992 static PyObject *_wrap_DateSpan_SetWeeks(PyObject *self, PyObject *args, PyObject *kwargs) {
22993 PyObject *resultobj;
22994 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
22995 int arg2 ;
22996 wxDateSpan *result;
22997 PyObject * obj0 = 0 ;
22998 PyObject * obj1 = 0 ;
22999 char *kwnames[] = {
23000 (char *) "self",(char *) "n", NULL
23001 };
23002
23003 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetWeeks",kwnames,&obj0,&obj1)) goto fail;
23004 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23005 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23006 arg2 = (int) SWIG_AsInt(obj1);
23007 if (PyErr_Occurred()) SWIG_fail;
23008 {
23009 PyThreadState* __tstate = wxPyBeginAllowThreads();
23010 {
23011 wxDateSpan &_result_ref = (arg1)->SetWeeks(arg2);
23012 result = (wxDateSpan *) &_result_ref;
23013 }
23014
23015 wxPyEndAllowThreads(__tstate);
23016 if (PyErr_Occurred()) SWIG_fail;
23017 }
23018 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23019 return resultobj;
23020 fail:
23021 return NULL;
23022 }
23023
23024
23025 static PyObject *_wrap_DateSpan_SetDays(PyObject *self, PyObject *args, PyObject *kwargs) {
23026 PyObject *resultobj;
23027 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23028 int arg2 ;
23029 wxDateSpan *result;
23030 PyObject * obj0 = 0 ;
23031 PyObject * obj1 = 0 ;
23032 char *kwnames[] = {
23033 (char *) "self",(char *) "n", NULL
23034 };
23035
23036 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetDays",kwnames,&obj0,&obj1)) goto fail;
23037 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23038 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23039 arg2 = (int) SWIG_AsInt(obj1);
23040 if (PyErr_Occurred()) SWIG_fail;
23041 {
23042 PyThreadState* __tstate = wxPyBeginAllowThreads();
23043 {
23044 wxDateSpan &_result_ref = (arg1)->SetDays(arg2);
23045 result = (wxDateSpan *) &_result_ref;
23046 }
23047
23048 wxPyEndAllowThreads(__tstate);
23049 if (PyErr_Occurred()) SWIG_fail;
23050 }
23051 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23052 return resultobj;
23053 fail:
23054 return NULL;
23055 }
23056
23057
23058 static PyObject *_wrap_DateSpan_GetYears(PyObject *self, PyObject *args, PyObject *kwargs) {
23059 PyObject *resultobj;
23060 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23061 int result;
23062 PyObject * obj0 = 0 ;
23063 char *kwnames[] = {
23064 (char *) "self", NULL
23065 };
23066
23067 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetYears",kwnames,&obj0)) goto fail;
23068 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23069 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23070 {
23071 PyThreadState* __tstate = wxPyBeginAllowThreads();
23072 result = (int)((wxDateSpan const *)arg1)->GetYears();
23073
23074 wxPyEndAllowThreads(__tstate);
23075 if (PyErr_Occurred()) SWIG_fail;
23076 }
23077 resultobj = SWIG_FromInt((int)result);
23078 return resultobj;
23079 fail:
23080 return NULL;
23081 }
23082
23083
23084 static PyObject *_wrap_DateSpan_GetMonths(PyObject *self, PyObject *args, PyObject *kwargs) {
23085 PyObject *resultobj;
23086 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23087 int result;
23088 PyObject * obj0 = 0 ;
23089 char *kwnames[] = {
23090 (char *) "self", NULL
23091 };
23092
23093 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetMonths",kwnames,&obj0)) goto fail;
23094 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23095 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23096 {
23097 PyThreadState* __tstate = wxPyBeginAllowThreads();
23098 result = (int)((wxDateSpan const *)arg1)->GetMonths();
23099
23100 wxPyEndAllowThreads(__tstate);
23101 if (PyErr_Occurred()) SWIG_fail;
23102 }
23103 resultobj = SWIG_FromInt((int)result);
23104 return resultobj;
23105 fail:
23106 return NULL;
23107 }
23108
23109
23110 static PyObject *_wrap_DateSpan_GetWeeks(PyObject *self, PyObject *args, PyObject *kwargs) {
23111 PyObject *resultobj;
23112 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23113 int result;
23114 PyObject * obj0 = 0 ;
23115 char *kwnames[] = {
23116 (char *) "self", NULL
23117 };
23118
23119 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetWeeks",kwnames,&obj0)) goto fail;
23120 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23121 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23122 {
23123 PyThreadState* __tstate = wxPyBeginAllowThreads();
23124 result = (int)((wxDateSpan const *)arg1)->GetWeeks();
23125
23126 wxPyEndAllowThreads(__tstate);
23127 if (PyErr_Occurred()) SWIG_fail;
23128 }
23129 resultobj = SWIG_FromInt((int)result);
23130 return resultobj;
23131 fail:
23132 return NULL;
23133 }
23134
23135
23136 static PyObject *_wrap_DateSpan_GetDays(PyObject *self, PyObject *args, PyObject *kwargs) {
23137 PyObject *resultobj;
23138 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23139 int result;
23140 PyObject * obj0 = 0 ;
23141 char *kwnames[] = {
23142 (char *) "self", NULL
23143 };
23144
23145 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetDays",kwnames,&obj0)) goto fail;
23146 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23147 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23148 {
23149 PyThreadState* __tstate = wxPyBeginAllowThreads();
23150 result = (int)((wxDateSpan const *)arg1)->GetDays();
23151
23152 wxPyEndAllowThreads(__tstate);
23153 if (PyErr_Occurred()) SWIG_fail;
23154 }
23155 resultobj = SWIG_FromInt((int)result);
23156 return resultobj;
23157 fail:
23158 return NULL;
23159 }
23160
23161
23162 static PyObject *_wrap_DateSpan_GetTotalDays(PyObject *self, PyObject *args, PyObject *kwargs) {
23163 PyObject *resultobj;
23164 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23165 int result;
23166 PyObject * obj0 = 0 ;
23167 char *kwnames[] = {
23168 (char *) "self", NULL
23169 };
23170
23171 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetTotalDays",kwnames,&obj0)) goto fail;
23172 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23173 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23174 {
23175 PyThreadState* __tstate = wxPyBeginAllowThreads();
23176 result = (int)((wxDateSpan const *)arg1)->GetTotalDays();
23177
23178 wxPyEndAllowThreads(__tstate);
23179 if (PyErr_Occurred()) SWIG_fail;
23180 }
23181 resultobj = SWIG_FromInt((int)result);
23182 return resultobj;
23183 fail:
23184 return NULL;
23185 }
23186
23187
23188 static PyObject *_wrap_DateSpan_Add(PyObject *self, PyObject *args, PyObject *kwargs) {
23189 PyObject *resultobj;
23190 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23191 wxDateSpan *arg2 = 0 ;
23192 wxDateSpan *result;
23193 PyObject * obj0 = 0 ;
23194 PyObject * obj1 = 0 ;
23195 char *kwnames[] = {
23196 (char *) "self",(char *) "other", NULL
23197 };
23198
23199 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Add",kwnames,&obj0,&obj1)) goto fail;
23200 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23201 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23202 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23203 SWIG_POINTER_EXCEPTION | 0)) == -1)
23204 SWIG_fail;
23205 if (arg2 == NULL) {
23206 PyErr_SetString(PyExc_TypeError,"null reference");
23207 SWIG_fail;
23208 }
23209 {
23210 PyThreadState* __tstate = wxPyBeginAllowThreads();
23211 {
23212 wxDateSpan &_result_ref = (arg1)->Add((wxDateSpan const &)*arg2);
23213 result = (wxDateSpan *) &_result_ref;
23214 }
23215
23216 wxPyEndAllowThreads(__tstate);
23217 if (PyErr_Occurred()) SWIG_fail;
23218 }
23219 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23220 return resultobj;
23221 fail:
23222 return NULL;
23223 }
23224
23225
23226 static PyObject *_wrap_DateSpan_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) {
23227 PyObject *resultobj;
23228 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23229 wxDateSpan *arg2 = 0 ;
23230 wxDateSpan *result;
23231 PyObject * obj0 = 0 ;
23232 PyObject * obj1 = 0 ;
23233 char *kwnames[] = {
23234 (char *) "self",(char *) "other", NULL
23235 };
23236
23237 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Subtract",kwnames,&obj0,&obj1)) goto fail;
23238 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23239 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23240 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23241 SWIG_POINTER_EXCEPTION | 0)) == -1)
23242 SWIG_fail;
23243 if (arg2 == NULL) {
23244 PyErr_SetString(PyExc_TypeError,"null reference");
23245 SWIG_fail;
23246 }
23247 {
23248 PyThreadState* __tstate = wxPyBeginAllowThreads();
23249 {
23250 wxDateSpan &_result_ref = (arg1)->Subtract((wxDateSpan const &)*arg2);
23251 result = (wxDateSpan *) &_result_ref;
23252 }
23253
23254 wxPyEndAllowThreads(__tstate);
23255 if (PyErr_Occurred()) SWIG_fail;
23256 }
23257 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23258 return resultobj;
23259 fail:
23260 return NULL;
23261 }
23262
23263
23264 static PyObject *_wrap_DateSpan_Neg(PyObject *self, PyObject *args, PyObject *kwargs) {
23265 PyObject *resultobj;
23266 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23267 wxDateSpan *result;
23268 PyObject * obj0 = 0 ;
23269 char *kwnames[] = {
23270 (char *) "self", NULL
23271 };
23272
23273 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Neg",kwnames,&obj0)) goto fail;
23274 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23275 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23276 {
23277 PyThreadState* __tstate = wxPyBeginAllowThreads();
23278 {
23279 wxDateSpan &_result_ref = (arg1)->Neg();
23280 result = (wxDateSpan *) &_result_ref;
23281 }
23282
23283 wxPyEndAllowThreads(__tstate);
23284 if (PyErr_Occurred()) SWIG_fail;
23285 }
23286 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23287 return resultobj;
23288 fail:
23289 return NULL;
23290 }
23291
23292
23293 static PyObject *_wrap_DateSpan_Multiply(PyObject *self, PyObject *args, PyObject *kwargs) {
23294 PyObject *resultobj;
23295 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23296 int arg2 ;
23297 wxDateSpan *result;
23298 PyObject * obj0 = 0 ;
23299 PyObject * obj1 = 0 ;
23300 char *kwnames[] = {
23301 (char *) "self",(char *) "factor", NULL
23302 };
23303
23304 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Multiply",kwnames,&obj0,&obj1)) goto fail;
23305 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23306 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23307 arg2 = (int) SWIG_AsInt(obj1);
23308 if (PyErr_Occurred()) SWIG_fail;
23309 {
23310 PyThreadState* __tstate = wxPyBeginAllowThreads();
23311 {
23312 wxDateSpan &_result_ref = (arg1)->Multiply(arg2);
23313 result = (wxDateSpan *) &_result_ref;
23314 }
23315
23316 wxPyEndAllowThreads(__tstate);
23317 if (PyErr_Occurred()) SWIG_fail;
23318 }
23319 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23320 return resultobj;
23321 fail:
23322 return NULL;
23323 }
23324
23325
23326 static PyObject *_wrap_DateSpan___iadd__(PyObject *self, PyObject *args, PyObject *kwargs) {
23327 PyObject *resultobj;
23328 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23329 wxDateSpan *arg2 = 0 ;
23330 wxDateSpan *result;
23331 PyObject * obj0 = 0 ;
23332 PyObject * obj1 = 0 ;
23333 char *kwnames[] = {
23334 (char *) "self",(char *) "other", NULL
23335 };
23336
23337 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___iadd__",kwnames,&obj0,&obj1)) goto fail;
23338 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23339 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23340 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23341 SWIG_POINTER_EXCEPTION | 0)) == -1)
23342 SWIG_fail;
23343 if (arg2 == NULL) {
23344 PyErr_SetString(PyExc_TypeError,"null reference");
23345 SWIG_fail;
23346 }
23347 {
23348 PyThreadState* __tstate = wxPyBeginAllowThreads();
23349 {
23350 wxDateSpan &_result_ref = (arg1)->operator +=((wxDateSpan const &)*arg2);
23351 result = (wxDateSpan *) &_result_ref;
23352 }
23353
23354 wxPyEndAllowThreads(__tstate);
23355 if (PyErr_Occurred()) SWIG_fail;
23356 }
23357 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23358 return resultobj;
23359 fail:
23360 return NULL;
23361 }
23362
23363
23364 static PyObject *_wrap_DateSpan___isub__(PyObject *self, PyObject *args, PyObject *kwargs) {
23365 PyObject *resultobj;
23366 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23367 wxDateSpan *arg2 = 0 ;
23368 wxDateSpan *result;
23369 PyObject * obj0 = 0 ;
23370 PyObject * obj1 = 0 ;
23371 char *kwnames[] = {
23372 (char *) "self",(char *) "other", NULL
23373 };
23374
23375 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___isub__",kwnames,&obj0,&obj1)) goto fail;
23376 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23377 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23378 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23379 SWIG_POINTER_EXCEPTION | 0)) == -1)
23380 SWIG_fail;
23381 if (arg2 == NULL) {
23382 PyErr_SetString(PyExc_TypeError,"null reference");
23383 SWIG_fail;
23384 }
23385 {
23386 PyThreadState* __tstate = wxPyBeginAllowThreads();
23387 {
23388 wxDateSpan &_result_ref = (arg1)->operator -=((wxDateSpan const &)*arg2);
23389 result = (wxDateSpan *) &_result_ref;
23390 }
23391
23392 wxPyEndAllowThreads(__tstate);
23393 if (PyErr_Occurred()) SWIG_fail;
23394 }
23395 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23396 return resultobj;
23397 fail:
23398 return NULL;
23399 }
23400
23401
23402 static PyObject *_wrap_DateSpan___neg__(PyObject *self, PyObject *args, PyObject *kwargs) {
23403 PyObject *resultobj;
23404 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23405 wxDateSpan *result;
23406 PyObject * obj0 = 0 ;
23407 char *kwnames[] = {
23408 (char *) "self", NULL
23409 };
23410
23411 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan___neg__",kwnames,&obj0)) goto fail;
23412 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23413 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23414 {
23415 PyThreadState* __tstate = wxPyBeginAllowThreads();
23416 {
23417 wxDateSpan &_result_ref = (arg1)->operator -();
23418 result = (wxDateSpan *) &_result_ref;
23419 }
23420
23421 wxPyEndAllowThreads(__tstate);
23422 if (PyErr_Occurred()) SWIG_fail;
23423 }
23424 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23425 return resultobj;
23426 fail:
23427 return NULL;
23428 }
23429
23430
23431 static PyObject *_wrap_DateSpan___imul__(PyObject *self, PyObject *args, PyObject *kwargs) {
23432 PyObject *resultobj;
23433 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23434 int arg2 ;
23435 wxDateSpan *result;
23436 PyObject * obj0 = 0 ;
23437 PyObject * obj1 = 0 ;
23438 char *kwnames[] = {
23439 (char *) "self",(char *) "factor", NULL
23440 };
23441
23442 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___imul__",kwnames,&obj0,&obj1)) goto fail;
23443 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23444 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23445 arg2 = (int) SWIG_AsInt(obj1);
23446 if (PyErr_Occurred()) SWIG_fail;
23447 {
23448 PyThreadState* __tstate = wxPyBeginAllowThreads();
23449 {
23450 wxDateSpan &_result_ref = (arg1)->operator *=(arg2);
23451 result = (wxDateSpan *) &_result_ref;
23452 }
23453
23454 wxPyEndAllowThreads(__tstate);
23455 if (PyErr_Occurred()) SWIG_fail;
23456 }
23457 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23458 return resultobj;
23459 fail:
23460 return NULL;
23461 }
23462
23463
23464 static PyObject *_wrap_DateSpan___add__(PyObject *self, PyObject *args, PyObject *kwargs) {
23465 PyObject *resultobj;
23466 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23467 wxDateSpan *arg2 = 0 ;
23468 wxDateSpan result;
23469 PyObject * obj0 = 0 ;
23470 PyObject * obj1 = 0 ;
23471 char *kwnames[] = {
23472 (char *) "self",(char *) "other", NULL
23473 };
23474
23475 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___add__",kwnames,&obj0,&obj1)) goto fail;
23476 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23477 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23478 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23479 SWIG_POINTER_EXCEPTION | 0)) == -1)
23480 SWIG_fail;
23481 if (arg2 == NULL) {
23482 PyErr_SetString(PyExc_TypeError,"null reference");
23483 SWIG_fail;
23484 }
23485 {
23486 PyThreadState* __tstate = wxPyBeginAllowThreads();
23487 result = wxDateSpan___add__(arg1,(wxDateSpan const &)*arg2);
23488
23489 wxPyEndAllowThreads(__tstate);
23490 if (PyErr_Occurred()) SWIG_fail;
23491 }
23492 {
23493 wxDateSpan * resultptr;
23494 resultptr = new wxDateSpan((wxDateSpan &) result);
23495 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
23496 }
23497 return resultobj;
23498 fail:
23499 return NULL;
23500 }
23501
23502
23503 static PyObject *_wrap_DateSpan___sub__(PyObject *self, PyObject *args, PyObject *kwargs) {
23504 PyObject *resultobj;
23505 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23506 wxDateSpan *arg2 = 0 ;
23507 wxDateSpan result;
23508 PyObject * obj0 = 0 ;
23509 PyObject * obj1 = 0 ;
23510 char *kwnames[] = {
23511 (char *) "self",(char *) "other", NULL
23512 };
23513
23514 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___sub__",kwnames,&obj0,&obj1)) goto fail;
23515 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23516 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23517 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23518 SWIG_POINTER_EXCEPTION | 0)) == -1)
23519 SWIG_fail;
23520 if (arg2 == NULL) {
23521 PyErr_SetString(PyExc_TypeError,"null reference");
23522 SWIG_fail;
23523 }
23524 {
23525 PyThreadState* __tstate = wxPyBeginAllowThreads();
23526 result = wxDateSpan___sub__(arg1,(wxDateSpan const &)*arg2);
23527
23528 wxPyEndAllowThreads(__tstate);
23529 if (PyErr_Occurred()) SWIG_fail;
23530 }
23531 {
23532 wxDateSpan * resultptr;
23533 resultptr = new wxDateSpan((wxDateSpan &) result);
23534 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
23535 }
23536 return resultobj;
23537 fail:
23538 return NULL;
23539 }
23540
23541
23542 static PyObject *_wrap_DateSpan___mul__(PyObject *self, PyObject *args, PyObject *kwargs) {
23543 PyObject *resultobj;
23544 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23545 int arg2 ;
23546 wxDateSpan result;
23547 PyObject * obj0 = 0 ;
23548 PyObject * obj1 = 0 ;
23549 char *kwnames[] = {
23550 (char *) "self",(char *) "n", NULL
23551 };
23552
23553 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___mul__",kwnames,&obj0,&obj1)) goto fail;
23554 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23555 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23556 arg2 = (int) SWIG_AsInt(obj1);
23557 if (PyErr_Occurred()) SWIG_fail;
23558 {
23559 PyThreadState* __tstate = wxPyBeginAllowThreads();
23560 result = wxDateSpan___mul__(arg1,arg2);
23561
23562 wxPyEndAllowThreads(__tstate);
23563 if (PyErr_Occurred()) SWIG_fail;
23564 }
23565 {
23566 wxDateSpan * resultptr;
23567 resultptr = new wxDateSpan((wxDateSpan &) result);
23568 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
23569 }
23570 return resultobj;
23571 fail:
23572 return NULL;
23573 }
23574
23575
23576 static PyObject *_wrap_DateSpan___rmul__(PyObject *self, PyObject *args, PyObject *kwargs) {
23577 PyObject *resultobj;
23578 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23579 int arg2 ;
23580 wxDateSpan result;
23581 PyObject * obj0 = 0 ;
23582 PyObject * obj1 = 0 ;
23583 char *kwnames[] = {
23584 (char *) "self",(char *) "n", NULL
23585 };
23586
23587 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___rmul__",kwnames,&obj0,&obj1)) goto fail;
23588 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23589 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23590 arg2 = (int) SWIG_AsInt(obj1);
23591 if (PyErr_Occurred()) SWIG_fail;
23592 {
23593 PyThreadState* __tstate = wxPyBeginAllowThreads();
23594 result = wxDateSpan___rmul__(arg1,arg2);
23595
23596 wxPyEndAllowThreads(__tstate);
23597 if (PyErr_Occurred()) SWIG_fail;
23598 }
23599 {
23600 wxDateSpan * resultptr;
23601 resultptr = new wxDateSpan((wxDateSpan &) result);
23602 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
23603 }
23604 return resultobj;
23605 fail:
23606 return NULL;
23607 }
23608
23609
23610 static PyObject *_wrap_DateSpan___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
23611 PyObject *resultobj;
23612 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23613 wxDateSpan *arg2 = (wxDateSpan *) 0 ;
23614 bool result;
23615 PyObject * obj0 = 0 ;
23616 PyObject * obj1 = 0 ;
23617 char *kwnames[] = {
23618 (char *) "self",(char *) "other", NULL
23619 };
23620
23621 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___eq__",kwnames,&obj0,&obj1)) goto fail;
23622 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23623 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23624 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23625 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23626 {
23627 PyThreadState* __tstate = wxPyBeginAllowThreads();
23628 result = (bool)wxDateSpan___eq__(arg1,(wxDateSpan const *)arg2);
23629
23630 wxPyEndAllowThreads(__tstate);
23631 if (PyErr_Occurred()) SWIG_fail;
23632 }
23633 {
23634 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23635 }
23636 return resultobj;
23637 fail:
23638 return NULL;
23639 }
23640
23641
23642 static PyObject *_wrap_DateSpan___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
23643 PyObject *resultobj;
23644 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23645 wxDateSpan *arg2 = (wxDateSpan *) 0 ;
23646 bool result;
23647 PyObject * obj0 = 0 ;
23648 PyObject * obj1 = 0 ;
23649 char *kwnames[] = {
23650 (char *) "self",(char *) "other", NULL
23651 };
23652
23653 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___ne__",kwnames,&obj0,&obj1)) goto fail;
23654 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23655 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23656 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23657 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23658 {
23659 PyThreadState* __tstate = wxPyBeginAllowThreads();
23660 result = (bool)wxDateSpan___ne__(arg1,(wxDateSpan const *)arg2);
23661
23662 wxPyEndAllowThreads(__tstate);
23663 if (PyErr_Occurred()) SWIG_fail;
23664 }
23665 {
23666 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23667 }
23668 return resultobj;
23669 fail:
23670 return NULL;
23671 }
23672
23673
23674 static PyObject * DateSpan_swigregister(PyObject *self, PyObject *args) {
23675 PyObject *obj;
23676 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
23677 SWIG_TypeClientData(SWIGTYPE_p_wxDateSpan, obj);
23678 Py_INCREF(obj);
23679 return Py_BuildValue((char *)"");
23680 }
23681 static PyObject *_wrap_GetLocalTime(PyObject *self, PyObject *args, PyObject *kwargs) {
23682 PyObject *resultobj;
23683 long result;
23684 char *kwnames[] = {
23685 NULL
23686 };
23687
23688 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocalTime",kwnames)) goto fail;
23689 {
23690 PyThreadState* __tstate = wxPyBeginAllowThreads();
23691 result = (long)wxGetLocalTime();
23692
23693 wxPyEndAllowThreads(__tstate);
23694 if (PyErr_Occurred()) SWIG_fail;
23695 }
23696 resultobj = SWIG_FromLong((long)result);
23697 return resultobj;
23698 fail:
23699 return NULL;
23700 }
23701
23702
23703 static PyObject *_wrap_GetUTCTime(PyObject *self, PyObject *args, PyObject *kwargs) {
23704 PyObject *resultobj;
23705 long result;
23706 char *kwnames[] = {
23707 NULL
23708 };
23709
23710 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUTCTime",kwnames)) goto fail;
23711 {
23712 PyThreadState* __tstate = wxPyBeginAllowThreads();
23713 result = (long)wxGetUTCTime();
23714
23715 wxPyEndAllowThreads(__tstate);
23716 if (PyErr_Occurred()) SWIG_fail;
23717 }
23718 resultobj = SWIG_FromLong((long)result);
23719 return resultobj;
23720 fail:
23721 return NULL;
23722 }
23723
23724
23725 static PyObject *_wrap_GetCurrentTime(PyObject *self, PyObject *args, PyObject *kwargs) {
23726 PyObject *resultobj;
23727 long result;
23728 char *kwnames[] = {
23729 NULL
23730 };
23731
23732 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetCurrentTime",kwnames)) goto fail;
23733 {
23734 PyThreadState* __tstate = wxPyBeginAllowThreads();
23735 result = (long)wxGetCurrentTime();
23736
23737 wxPyEndAllowThreads(__tstate);
23738 if (PyErr_Occurred()) SWIG_fail;
23739 }
23740 resultobj = SWIG_FromLong((long)result);
23741 return resultobj;
23742 fail:
23743 return NULL;
23744 }
23745
23746
23747 static PyObject *_wrap_GetLocalTimeMillis(PyObject *self, PyObject *args, PyObject *kwargs) {
23748 PyObject *resultobj;
23749 wxLongLong result;
23750 char *kwnames[] = {
23751 NULL
23752 };
23753
23754 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocalTimeMillis",kwnames)) goto fail;
23755 {
23756 PyThreadState* __tstate = wxPyBeginAllowThreads();
23757 result = wxGetLocalTimeMillis();
23758
23759 wxPyEndAllowThreads(__tstate);
23760 if (PyErr_Occurred()) SWIG_fail;
23761 }
23762 {
23763 PyObject *hi, *lo, *shifter, *shifted;
23764 hi = PyLong_FromLong( (&result)->GetHi() );
23765 lo = PyLong_FromLong( (&result)->GetLo() );
23766 shifter = PyLong_FromLong(32);
23767 shifted = PyNumber_Lshift(hi, shifter);
23768 resultobj = PyNumber_Or(shifted, lo);
23769 Py_DECREF(hi);
23770 Py_DECREF(lo);
23771 Py_DECREF(shifter);
23772 Py_DECREF(shifted);
23773 }
23774 return resultobj;
23775 fail:
23776 return NULL;
23777 }
23778
23779
23780 static int _wrap_DefaultDateTime_set(PyObject *_val) {
23781 PyErr_SetString(PyExc_TypeError,"Variable DefaultDateTime is read-only.");
23782 return 1;
23783 }
23784
23785
23786 static PyObject *_wrap_DefaultDateTime_get() {
23787 PyObject *pyobj;
23788
23789 pyobj = SWIG_NewPointerObj((void *)(&wxDefaultDateTime), SWIGTYPE_p_wxDateTime, 0);
23790 return pyobj;
23791 }
23792
23793
23794 static PyObject *_wrap_new_DataFormat(PyObject *self, PyObject *args, PyObject *kwargs) {
23795 PyObject *resultobj;
23796 int arg1 ;
23797 wxDataFormat *result;
23798 PyObject * obj0 = 0 ;
23799 char *kwnames[] = {
23800 (char *) "type", NULL
23801 };
23802
23803 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DataFormat",kwnames,&obj0)) goto fail;
23804 arg1 = (wxDataFormatId) SWIG_AsInt(obj0);
23805 if (PyErr_Occurred()) SWIG_fail;
23806 {
23807 PyThreadState* __tstate = wxPyBeginAllowThreads();
23808 result = (wxDataFormat *)new wxDataFormat((wxDataFormatId )arg1);
23809
23810 wxPyEndAllowThreads(__tstate);
23811 if (PyErr_Occurred()) SWIG_fail;
23812 }
23813 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataFormat, 1);
23814 return resultobj;
23815 fail:
23816 return NULL;
23817 }
23818
23819
23820 static PyObject *_wrap_new_CustomDataFormat(PyObject *self, PyObject *args, PyObject *kwargs) {
23821 PyObject *resultobj;
23822 wxString *arg1 = 0 ;
23823 wxDataFormat *result;
23824 bool temp1 = False ;
23825 PyObject * obj0 = 0 ;
23826 char *kwnames[] = {
23827 (char *) "format", NULL
23828 };
23829
23830 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CustomDataFormat",kwnames,&obj0)) goto fail;
23831 {
23832 arg1 = wxString_in_helper(obj0);
23833 if (arg1 == NULL) SWIG_fail;
23834 temp1 = True;
23835 }
23836 {
23837 PyThreadState* __tstate = wxPyBeginAllowThreads();
23838 result = (wxDataFormat *)new wxDataFormat((wxString const &)*arg1);
23839
23840 wxPyEndAllowThreads(__tstate);
23841 if (PyErr_Occurred()) SWIG_fail;
23842 }
23843 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataFormat, 1);
23844 {
23845 if (temp1)
23846 delete arg1;
23847 }
23848 return resultobj;
23849 fail:
23850 {
23851 if (temp1)
23852 delete arg1;
23853 }
23854 return NULL;
23855 }
23856
23857
23858 static PyObject *_wrap_delete_DataFormat(PyObject *self, PyObject *args, PyObject *kwargs) {
23859 PyObject *resultobj;
23860 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
23861 PyObject * obj0 = 0 ;
23862 char *kwnames[] = {
23863 (char *) "self", NULL
23864 };
23865
23866 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DataFormat",kwnames,&obj0)) goto fail;
23867 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
23868 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23869 {
23870 PyThreadState* __tstate = wxPyBeginAllowThreads();
23871 delete arg1;
23872
23873 wxPyEndAllowThreads(__tstate);
23874 if (PyErr_Occurred()) SWIG_fail;
23875 }
23876 Py_INCREF(Py_None); resultobj = Py_None;
23877 return resultobj;
23878 fail:
23879 return NULL;
23880 }
23881
23882
23883 static PyObject *_wrap_DataFormat___eq____SWIG_0(PyObject *self, PyObject *args) {
23884 PyObject *resultobj;
23885 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
23886 int arg2 ;
23887 bool result;
23888 PyObject * obj0 = 0 ;
23889 PyObject * obj1 = 0 ;
23890
23891 if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___eq__",&obj0,&obj1)) goto fail;
23892 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
23893 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23894 arg2 = (wxDataFormatId) SWIG_AsInt(obj1);
23895 if (PyErr_Occurred()) SWIG_fail;
23896 {
23897 PyThreadState* __tstate = wxPyBeginAllowThreads();
23898 result = (bool)((wxDataFormat const *)arg1)->operator ==((wxDataFormatId )arg2);
23899
23900 wxPyEndAllowThreads(__tstate);
23901 if (PyErr_Occurred()) SWIG_fail;
23902 }
23903 {
23904 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23905 }
23906 return resultobj;
23907 fail:
23908 return NULL;
23909 }
23910
23911
23912 static PyObject *_wrap_DataFormat___ne____SWIG_0(PyObject *self, PyObject *args) {
23913 PyObject *resultobj;
23914 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
23915 int arg2 ;
23916 bool result;
23917 PyObject * obj0 = 0 ;
23918 PyObject * obj1 = 0 ;
23919
23920 if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___ne__",&obj0,&obj1)) goto fail;
23921 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
23922 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23923 arg2 = (wxDataFormatId) SWIG_AsInt(obj1);
23924 if (PyErr_Occurred()) SWIG_fail;
23925 {
23926 PyThreadState* __tstate = wxPyBeginAllowThreads();
23927 result = (bool)((wxDataFormat const *)arg1)->operator !=((wxDataFormatId )arg2);
23928
23929 wxPyEndAllowThreads(__tstate);
23930 if (PyErr_Occurred()) SWIG_fail;
23931 }
23932 {
23933 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23934 }
23935 return resultobj;
23936 fail:
23937 return NULL;
23938 }
23939
23940
23941 static PyObject *_wrap_DataFormat___eq____SWIG_1(PyObject *self, PyObject *args) {
23942 PyObject *resultobj;
23943 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
23944 wxDataFormat *arg2 = 0 ;
23945 bool result;
23946 PyObject * obj0 = 0 ;
23947 PyObject * obj1 = 0 ;
23948
23949 if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___eq__",&obj0,&obj1)) goto fail;
23950 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
23951 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23952 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
23953 SWIG_POINTER_EXCEPTION | 0)) == -1)
23954 SWIG_fail;
23955 if (arg2 == NULL) {
23956 PyErr_SetString(PyExc_TypeError,"null reference");
23957 SWIG_fail;
23958 }
23959 {
23960 PyThreadState* __tstate = wxPyBeginAllowThreads();
23961 result = (bool)((wxDataFormat const *)arg1)->operator ==((wxDataFormat const &)*arg2);
23962
23963 wxPyEndAllowThreads(__tstate);
23964 if (PyErr_Occurred()) SWIG_fail;
23965 }
23966 {
23967 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23968 }
23969 return resultobj;
23970 fail:
23971 return NULL;
23972 }
23973
23974
23975 static PyObject *_wrap_DataFormat___eq__(PyObject *self, PyObject *args) {
23976 int argc;
23977 PyObject *argv[3];
23978 int ii;
23979
23980 argc = PyObject_Length(args);
23981 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
23982 argv[ii] = PyTuple_GetItem(args,ii);
23983 }
23984 if (argc == 2) {
23985 int _v;
23986 {
23987 void *ptr;
23988 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
23989 _v = 0;
23990 PyErr_Clear();
23991 } else {
23992 _v = 1;
23993 }
23994 }
23995 if (_v) {
23996 {
23997 void *ptr;
23998 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
23999 _v = 0;
24000 PyErr_Clear();
24001 } else {
24002 _v = 1;
24003 }
24004 }
24005 if (_v) {
24006 return _wrap_DataFormat___eq____SWIG_1(self,args);
24007 }
24008 }
24009 }
24010 if (argc == 2) {
24011 int _v;
24012 {
24013 void *ptr;
24014 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
24015 _v = 0;
24016 PyErr_Clear();
24017 } else {
24018 _v = 1;
24019 }
24020 }
24021 if (_v) {
24022 _v = SWIG_CheckInt(argv[1]);
24023 if (_v) {
24024 return _wrap_DataFormat___eq____SWIG_0(self,args);
24025 }
24026 }
24027 }
24028
24029 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DataFormat___eq__'");
24030 return NULL;
24031 }
24032
24033
24034 static PyObject *_wrap_DataFormat___ne____SWIG_1(PyObject *self, PyObject *args) {
24035 PyObject *resultobj;
24036 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
24037 wxDataFormat *arg2 = 0 ;
24038 bool result;
24039 PyObject * obj0 = 0 ;
24040 PyObject * obj1 = 0 ;
24041
24042 if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___ne__",&obj0,&obj1)) goto fail;
24043 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24044 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24045 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
24046 SWIG_POINTER_EXCEPTION | 0)) == -1)
24047 SWIG_fail;
24048 if (arg2 == NULL) {
24049 PyErr_SetString(PyExc_TypeError,"null reference");
24050 SWIG_fail;
24051 }
24052 {
24053 PyThreadState* __tstate = wxPyBeginAllowThreads();
24054 result = (bool)((wxDataFormat const *)arg1)->operator !=((wxDataFormat const &)*arg2);
24055
24056 wxPyEndAllowThreads(__tstate);
24057 if (PyErr_Occurred()) SWIG_fail;
24058 }
24059 {
24060 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24061 }
24062 return resultobj;
24063 fail:
24064 return NULL;
24065 }
24066
24067
24068 static PyObject *_wrap_DataFormat___ne__(PyObject *self, PyObject *args) {
24069 int argc;
24070 PyObject *argv[3];
24071 int ii;
24072
24073 argc = PyObject_Length(args);
24074 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
24075 argv[ii] = PyTuple_GetItem(args,ii);
24076 }
24077 if (argc == 2) {
24078 int _v;
24079 {
24080 void *ptr;
24081 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
24082 _v = 0;
24083 PyErr_Clear();
24084 } else {
24085 _v = 1;
24086 }
24087 }
24088 if (_v) {
24089 {
24090 void *ptr;
24091 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
24092 _v = 0;
24093 PyErr_Clear();
24094 } else {
24095 _v = 1;
24096 }
24097 }
24098 if (_v) {
24099 return _wrap_DataFormat___ne____SWIG_1(self,args);
24100 }
24101 }
24102 }
24103 if (argc == 2) {
24104 int _v;
24105 {
24106 void *ptr;
24107 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
24108 _v = 0;
24109 PyErr_Clear();
24110 } else {
24111 _v = 1;
24112 }
24113 }
24114 if (_v) {
24115 _v = SWIG_CheckInt(argv[1]);
24116 if (_v) {
24117 return _wrap_DataFormat___ne____SWIG_0(self,args);
24118 }
24119 }
24120 }
24121
24122 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DataFormat___ne__'");
24123 return NULL;
24124 }
24125
24126
24127 static PyObject *_wrap_DataFormat_SetType(PyObject *self, PyObject *args, PyObject *kwargs) {
24128 PyObject *resultobj;
24129 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
24130 int arg2 ;
24131 PyObject * obj0 = 0 ;
24132 PyObject * obj1 = 0 ;
24133 char *kwnames[] = {
24134 (char *) "self",(char *) "format", NULL
24135 };
24136
24137 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataFormat_SetType",kwnames,&obj0,&obj1)) goto fail;
24138 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24139 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24140 arg2 = (wxDataFormatId) SWIG_AsInt(obj1);
24141 if (PyErr_Occurred()) SWIG_fail;
24142 {
24143 PyThreadState* __tstate = wxPyBeginAllowThreads();
24144 (arg1)->SetType((wxDataFormatId )arg2);
24145
24146 wxPyEndAllowThreads(__tstate);
24147 if (PyErr_Occurred()) SWIG_fail;
24148 }
24149 Py_INCREF(Py_None); resultobj = Py_None;
24150 return resultobj;
24151 fail:
24152 return NULL;
24153 }
24154
24155
24156 static PyObject *_wrap_DataFormat_GetType(PyObject *self, PyObject *args, PyObject *kwargs) {
24157 PyObject *resultobj;
24158 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
24159 int result;
24160 PyObject * obj0 = 0 ;
24161 char *kwnames[] = {
24162 (char *) "self", NULL
24163 };
24164
24165 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataFormat_GetType",kwnames,&obj0)) goto fail;
24166 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24167 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24168 {
24169 PyThreadState* __tstate = wxPyBeginAllowThreads();
24170 result = (int)((wxDataFormat const *)arg1)->GetType();
24171
24172 wxPyEndAllowThreads(__tstate);
24173 if (PyErr_Occurred()) SWIG_fail;
24174 }
24175 resultobj = SWIG_FromInt((int)result);
24176 return resultobj;
24177 fail:
24178 return NULL;
24179 }
24180
24181
24182 static PyObject *_wrap_DataFormat_GetId(PyObject *self, PyObject *args, PyObject *kwargs) {
24183 PyObject *resultobj;
24184 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
24185 wxString result;
24186 PyObject * obj0 = 0 ;
24187 char *kwnames[] = {
24188 (char *) "self", NULL
24189 };
24190
24191 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataFormat_GetId",kwnames,&obj0)) goto fail;
24192 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24193 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24194 {
24195 PyThreadState* __tstate = wxPyBeginAllowThreads();
24196 result = ((wxDataFormat const *)arg1)->GetId();
24197
24198 wxPyEndAllowThreads(__tstate);
24199 if (PyErr_Occurred()) SWIG_fail;
24200 }
24201 {
24202 #if wxUSE_UNICODE
24203 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
24204 #else
24205 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
24206 #endif
24207 }
24208 return resultobj;
24209 fail:
24210 return NULL;
24211 }
24212
24213
24214 static PyObject *_wrap_DataFormat_SetId(PyObject *self, PyObject *args, PyObject *kwargs) {
24215 PyObject *resultobj;
24216 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
24217 wxString *arg2 = 0 ;
24218 bool temp2 = False ;
24219 PyObject * obj0 = 0 ;
24220 PyObject * obj1 = 0 ;
24221 char *kwnames[] = {
24222 (char *) "self",(char *) "format", NULL
24223 };
24224
24225 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataFormat_SetId",kwnames,&obj0,&obj1)) goto fail;
24226 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24227 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24228 {
24229 arg2 = wxString_in_helper(obj1);
24230 if (arg2 == NULL) SWIG_fail;
24231 temp2 = True;
24232 }
24233 {
24234 PyThreadState* __tstate = wxPyBeginAllowThreads();
24235 (arg1)->SetId((wxString const &)*arg2);
24236
24237 wxPyEndAllowThreads(__tstate);
24238 if (PyErr_Occurred()) SWIG_fail;
24239 }
24240 Py_INCREF(Py_None); resultobj = Py_None;
24241 {
24242 if (temp2)
24243 delete arg2;
24244 }
24245 return resultobj;
24246 fail:
24247 {
24248 if (temp2)
24249 delete arg2;
24250 }
24251 return NULL;
24252 }
24253
24254
24255 static PyObject * DataFormat_swigregister(PyObject *self, PyObject *args) {
24256 PyObject *obj;
24257 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24258 SWIG_TypeClientData(SWIGTYPE_p_wxDataFormat, obj);
24259 Py_INCREF(obj);
24260 return Py_BuildValue((char *)"");
24261 }
24262 static int _wrap_FormatInvalid_set(PyObject *_val) {
24263 PyErr_SetString(PyExc_TypeError,"Variable FormatInvalid is read-only.");
24264 return 1;
24265 }
24266
24267
24268 static PyObject *_wrap_FormatInvalid_get() {
24269 PyObject *pyobj;
24270
24271 pyobj = SWIG_NewPointerObj((void *)(&wxFormatInvalid), SWIGTYPE_p_wxDataFormat, 0);
24272 return pyobj;
24273 }
24274
24275
24276 static PyObject *_wrap_delete_DataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
24277 PyObject *resultobj;
24278 wxDataObject *arg1 = (wxDataObject *) 0 ;
24279 PyObject * obj0 = 0 ;
24280 char *kwnames[] = {
24281 (char *) "self", NULL
24282 };
24283
24284 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DataObject",kwnames,&obj0)) goto fail;
24285 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24286 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24287 {
24288 PyThreadState* __tstate = wxPyBeginAllowThreads();
24289 delete arg1;
24290
24291 wxPyEndAllowThreads(__tstate);
24292 if (PyErr_Occurred()) SWIG_fail;
24293 }
24294 Py_INCREF(Py_None); resultobj = Py_None;
24295 return resultobj;
24296 fail:
24297 return NULL;
24298 }
24299
24300
24301 static PyObject *_wrap_DataObject_GetPreferredFormat(PyObject *self, PyObject *args, PyObject *kwargs) {
24302 PyObject *resultobj;
24303 wxDataObject *arg1 = (wxDataObject *) 0 ;
24304 int arg2 = (int) wxDataObject::Get ;
24305 SwigValueWrapper< wxDataFormat > result;
24306 PyObject * obj0 = 0 ;
24307 PyObject * obj1 = 0 ;
24308 char *kwnames[] = {
24309 (char *) "self",(char *) "dir", NULL
24310 };
24311
24312 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DataObject_GetPreferredFormat",kwnames,&obj0,&obj1)) goto fail;
24313 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24314 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24315 if (obj1) {
24316 arg2 = (wxDataObject::Direction) SWIG_AsInt(obj1);
24317 if (PyErr_Occurred()) SWIG_fail;
24318 }
24319 {
24320 PyThreadState* __tstate = wxPyBeginAllowThreads();
24321 result = ((wxDataObject const *)arg1)->GetPreferredFormat((wxDataObject::Direction )arg2);
24322
24323 wxPyEndAllowThreads(__tstate);
24324 if (PyErr_Occurred()) SWIG_fail;
24325 }
24326 {
24327 wxDataFormat * resultptr;
24328 resultptr = new wxDataFormat((wxDataFormat &) result);
24329 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDataFormat, 1);
24330 }
24331 return resultobj;
24332 fail:
24333 return NULL;
24334 }
24335
24336
24337 static PyObject *_wrap_DataObject_GetFormatCount(PyObject *self, PyObject *args, PyObject *kwargs) {
24338 PyObject *resultobj;
24339 wxDataObject *arg1 = (wxDataObject *) 0 ;
24340 int arg2 = (int) wxDataObject::Get ;
24341 size_t result;
24342 PyObject * obj0 = 0 ;
24343 PyObject * obj1 = 0 ;
24344 char *kwnames[] = {
24345 (char *) "self",(char *) "dir", NULL
24346 };
24347
24348 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DataObject_GetFormatCount",kwnames,&obj0,&obj1)) goto fail;
24349 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24350 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24351 if (obj1) {
24352 arg2 = (wxDataObject::Direction) SWIG_AsInt(obj1);
24353 if (PyErr_Occurred()) SWIG_fail;
24354 }
24355 {
24356 PyThreadState* __tstate = wxPyBeginAllowThreads();
24357 result = (size_t)((wxDataObject const *)arg1)->GetFormatCount((wxDataObject::Direction )arg2);
24358
24359 wxPyEndAllowThreads(__tstate);
24360 if (PyErr_Occurred()) SWIG_fail;
24361 }
24362 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
24363 return resultobj;
24364 fail:
24365 return NULL;
24366 }
24367
24368
24369 static PyObject *_wrap_DataObject_IsSupported(PyObject *self, PyObject *args, PyObject *kwargs) {
24370 PyObject *resultobj;
24371 wxDataObject *arg1 = (wxDataObject *) 0 ;
24372 wxDataFormat *arg2 = 0 ;
24373 int arg3 = (int) wxDataObject::Get ;
24374 bool result;
24375 PyObject * obj0 = 0 ;
24376 PyObject * obj1 = 0 ;
24377 PyObject * obj2 = 0 ;
24378 char *kwnames[] = {
24379 (char *) "self",(char *) "format",(char *) "dir", NULL
24380 };
24381
24382 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DataObject_IsSupported",kwnames,&obj0,&obj1,&obj2)) goto fail;
24383 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24384 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24385 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
24386 SWIG_POINTER_EXCEPTION | 0)) == -1)
24387 SWIG_fail;
24388 if (arg2 == NULL) {
24389 PyErr_SetString(PyExc_TypeError,"null reference");
24390 SWIG_fail;
24391 }
24392 if (obj2) {
24393 arg3 = (wxDataObject::Direction) SWIG_AsInt(obj2);
24394 if (PyErr_Occurred()) SWIG_fail;
24395 }
24396 {
24397 PyThreadState* __tstate = wxPyBeginAllowThreads();
24398 result = (bool)((wxDataObject const *)arg1)->IsSupported((wxDataFormat const &)*arg2,(wxDataObject::Direction )arg3);
24399
24400 wxPyEndAllowThreads(__tstate);
24401 if (PyErr_Occurred()) SWIG_fail;
24402 }
24403 {
24404 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24405 }
24406 return resultobj;
24407 fail:
24408 return NULL;
24409 }
24410
24411
24412 static PyObject *_wrap_DataObject_GetDataSize(PyObject *self, PyObject *args, PyObject *kwargs) {
24413 PyObject *resultobj;
24414 wxDataObject *arg1 = (wxDataObject *) 0 ;
24415 wxDataFormat *arg2 = 0 ;
24416 size_t result;
24417 PyObject * obj0 = 0 ;
24418 PyObject * obj1 = 0 ;
24419 char *kwnames[] = {
24420 (char *) "self",(char *) "format", NULL
24421 };
24422
24423 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObject_GetDataSize",kwnames,&obj0,&obj1)) goto fail;
24424 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24425 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24426 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
24427 SWIG_POINTER_EXCEPTION | 0)) == -1)
24428 SWIG_fail;
24429 if (arg2 == NULL) {
24430 PyErr_SetString(PyExc_TypeError,"null reference");
24431 SWIG_fail;
24432 }
24433 {
24434 PyThreadState* __tstate = wxPyBeginAllowThreads();
24435 result = (size_t)((wxDataObject const *)arg1)->GetDataSize((wxDataFormat const &)*arg2);
24436
24437 wxPyEndAllowThreads(__tstate);
24438 if (PyErr_Occurred()) SWIG_fail;
24439 }
24440 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
24441 return resultobj;
24442 fail:
24443 return NULL;
24444 }
24445
24446
24447 static PyObject *_wrap_DataObject_GetAllFormats(PyObject *self, PyObject *args, PyObject *kwargs) {
24448 PyObject *resultobj;
24449 wxDataObject *arg1 = (wxDataObject *) 0 ;
24450 int arg2 = (int) wxDataObject::Get ;
24451 PyObject *result;
24452 PyObject * obj0 = 0 ;
24453 PyObject * obj1 = 0 ;
24454 char *kwnames[] = {
24455 (char *) "self",(char *) "dir", NULL
24456 };
24457
24458 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DataObject_GetAllFormats",kwnames,&obj0,&obj1)) goto fail;
24459 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24460 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24461 if (obj1) {
24462 arg2 = (wxDataObject::Direction) SWIG_AsInt(obj1);
24463 if (PyErr_Occurred()) SWIG_fail;
24464 }
24465 {
24466 PyThreadState* __tstate = wxPyBeginAllowThreads();
24467 result = (PyObject *)wxDataObject_GetAllFormats(arg1,(wxDataObject::Direction )arg2);
24468
24469 wxPyEndAllowThreads(__tstate);
24470 if (PyErr_Occurred()) SWIG_fail;
24471 }
24472 resultobj = result;
24473 return resultobj;
24474 fail:
24475 return NULL;
24476 }
24477
24478
24479 static PyObject *_wrap_DataObject_GetDataHere(PyObject *self, PyObject *args, PyObject *kwargs) {
24480 PyObject *resultobj;
24481 wxDataObject *arg1 = (wxDataObject *) 0 ;
24482 wxDataFormat *arg2 = 0 ;
24483 PyObject *result;
24484 PyObject * obj0 = 0 ;
24485 PyObject * obj1 = 0 ;
24486 char *kwnames[] = {
24487 (char *) "self",(char *) "format", NULL
24488 };
24489
24490 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObject_GetDataHere",kwnames,&obj0,&obj1)) goto fail;
24491 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24492 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24493 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
24494 SWIG_POINTER_EXCEPTION | 0)) == -1)
24495 SWIG_fail;
24496 if (arg2 == NULL) {
24497 PyErr_SetString(PyExc_TypeError,"null reference");
24498 SWIG_fail;
24499 }
24500 {
24501 PyThreadState* __tstate = wxPyBeginAllowThreads();
24502 result = (PyObject *)wxDataObject_GetDataHere(arg1,(wxDataFormat const &)*arg2);
24503
24504 wxPyEndAllowThreads(__tstate);
24505 if (PyErr_Occurred()) SWIG_fail;
24506 }
24507 resultobj = result;
24508 return resultobj;
24509 fail:
24510 return NULL;
24511 }
24512
24513
24514 static PyObject *_wrap_DataObject_SetData(PyObject *self, PyObject *args, PyObject *kwargs) {
24515 PyObject *resultobj;
24516 wxDataObject *arg1 = (wxDataObject *) 0 ;
24517 wxDataFormat *arg2 = 0 ;
24518 PyObject *arg3 = (PyObject *) 0 ;
24519 bool result;
24520 PyObject * obj0 = 0 ;
24521 PyObject * obj1 = 0 ;
24522 PyObject * obj2 = 0 ;
24523 char *kwnames[] = {
24524 (char *) "self",(char *) "format",(char *) "data", NULL
24525 };
24526
24527 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DataObject_SetData",kwnames,&obj0,&obj1,&obj2)) goto fail;
24528 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24529 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24530 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
24531 SWIG_POINTER_EXCEPTION | 0)) == -1)
24532 SWIG_fail;
24533 if (arg2 == NULL) {
24534 PyErr_SetString(PyExc_TypeError,"null reference");
24535 SWIG_fail;
24536 }
24537 arg3 = obj2;
24538 {
24539 PyThreadState* __tstate = wxPyBeginAllowThreads();
24540 result = (bool)wxDataObject_SetData(arg1,(wxDataFormat const &)*arg2,arg3);
24541
24542 wxPyEndAllowThreads(__tstate);
24543 if (PyErr_Occurred()) SWIG_fail;
24544 }
24545 {
24546 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24547 }
24548 return resultobj;
24549 fail:
24550 return NULL;
24551 }
24552
24553
24554 static PyObject * DataObject_swigregister(PyObject *self, PyObject *args) {
24555 PyObject *obj;
24556 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24557 SWIG_TypeClientData(SWIGTYPE_p_wxDataObject, obj);
24558 Py_INCREF(obj);
24559 return Py_BuildValue((char *)"");
24560 }
24561 static PyObject *_wrap_new_DataObjectSimple(PyObject *self, PyObject *args, PyObject *kwargs) {
24562 PyObject *resultobj;
24563 wxDataFormat const &arg1_defvalue = wxFormatInvalid ;
24564 wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ;
24565 wxDataObjectSimple *result;
24566 PyObject * obj0 = 0 ;
24567 char *kwnames[] = {
24568 (char *) "format", NULL
24569 };
24570
24571 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_DataObjectSimple",kwnames,&obj0)) goto fail;
24572 if (obj0) {
24573 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24574 SWIG_POINTER_EXCEPTION | 0)) == -1)
24575 SWIG_fail;
24576 if (arg1 == NULL) {
24577 PyErr_SetString(PyExc_TypeError,"null reference");
24578 SWIG_fail;
24579 }
24580 }
24581 {
24582 PyThreadState* __tstate = wxPyBeginAllowThreads();
24583 result = (wxDataObjectSimple *)new wxDataObjectSimple((wxDataFormat const &)*arg1);
24584
24585 wxPyEndAllowThreads(__tstate);
24586 if (PyErr_Occurred()) SWIG_fail;
24587 }
24588 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObjectSimple, 1);
24589 return resultobj;
24590 fail:
24591 return NULL;
24592 }
24593
24594
24595 static PyObject *_wrap_DataObjectSimple_GetFormat(PyObject *self, PyObject *args, PyObject *kwargs) {
24596 PyObject *resultobj;
24597 wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ;
24598 wxDataFormat *result;
24599 PyObject * obj0 = 0 ;
24600 char *kwnames[] = {
24601 (char *) "self", NULL
24602 };
24603
24604 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataObjectSimple_GetFormat",kwnames,&obj0)) goto fail;
24605 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple,
24606 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24607 {
24608 PyThreadState* __tstate = wxPyBeginAllowThreads();
24609 {
24610 wxDataFormat const &_result_ref = (arg1)->GetFormat();
24611 result = (wxDataFormat *) &_result_ref;
24612 }
24613
24614 wxPyEndAllowThreads(__tstate);
24615 if (PyErr_Occurred()) SWIG_fail;
24616 }
24617 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataFormat, 0);
24618 return resultobj;
24619 fail:
24620 return NULL;
24621 }
24622
24623
24624 static PyObject *_wrap_DataObjectSimple_SetFormat(PyObject *self, PyObject *args, PyObject *kwargs) {
24625 PyObject *resultobj;
24626 wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ;
24627 wxDataFormat *arg2 = 0 ;
24628 PyObject * obj0 = 0 ;
24629 PyObject * obj1 = 0 ;
24630 char *kwnames[] = {
24631 (char *) "self",(char *) "format", NULL
24632 };
24633
24634 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObjectSimple_SetFormat",kwnames,&obj0,&obj1)) goto fail;
24635 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple,
24636 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24637 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
24638 SWIG_POINTER_EXCEPTION | 0)) == -1)
24639 SWIG_fail;
24640 if (arg2 == NULL) {
24641 PyErr_SetString(PyExc_TypeError,"null reference");
24642 SWIG_fail;
24643 }
24644 {
24645 PyThreadState* __tstate = wxPyBeginAllowThreads();
24646 (arg1)->SetFormat((wxDataFormat const &)*arg2);
24647
24648 wxPyEndAllowThreads(__tstate);
24649 if (PyErr_Occurred()) SWIG_fail;
24650 }
24651 Py_INCREF(Py_None); resultobj = Py_None;
24652 return resultobj;
24653 fail:
24654 return NULL;
24655 }
24656
24657
24658 static PyObject *_wrap_DataObjectSimple_GetDataSize(PyObject *self, PyObject *args, PyObject *kwargs) {
24659 PyObject *resultobj;
24660 wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ;
24661 size_t result;
24662 PyObject * obj0 = 0 ;
24663 char *kwnames[] = {
24664 (char *) "self", NULL
24665 };
24666
24667 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataObjectSimple_GetDataSize",kwnames,&obj0)) goto fail;
24668 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple,
24669 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24670 {
24671 PyThreadState* __tstate = wxPyBeginAllowThreads();
24672 result = (size_t)((wxDataObjectSimple const *)arg1)->GetDataSize();
24673
24674 wxPyEndAllowThreads(__tstate);
24675 if (PyErr_Occurred()) SWIG_fail;
24676 }
24677 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
24678 return resultobj;
24679 fail:
24680 return NULL;
24681 }
24682
24683
24684 static PyObject *_wrap_DataObjectSimple_GetDataHere(PyObject *self, PyObject *args, PyObject *kwargs) {
24685 PyObject *resultobj;
24686 wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ;
24687 PyObject *result;
24688 PyObject * obj0 = 0 ;
24689 char *kwnames[] = {
24690 (char *) "self", NULL
24691 };
24692
24693 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataObjectSimple_GetDataHere",kwnames,&obj0)) goto fail;
24694 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple,
24695 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24696 {
24697 PyThreadState* __tstate = wxPyBeginAllowThreads();
24698 result = (PyObject *)wxDataObjectSimple_GetDataHere(arg1);
24699
24700 wxPyEndAllowThreads(__tstate);
24701 if (PyErr_Occurred()) SWIG_fail;
24702 }
24703 resultobj = result;
24704 return resultobj;
24705 fail:
24706 return NULL;
24707 }
24708
24709
24710 static PyObject *_wrap_DataObjectSimple_SetData(PyObject *self, PyObject *args, PyObject *kwargs) {
24711 PyObject *resultobj;
24712 wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ;
24713 PyObject *arg2 = (PyObject *) 0 ;
24714 bool result;
24715 PyObject * obj0 = 0 ;
24716 PyObject * obj1 = 0 ;
24717 char *kwnames[] = {
24718 (char *) "self",(char *) "data", NULL
24719 };
24720
24721 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObjectSimple_SetData",kwnames,&obj0,&obj1)) goto fail;
24722 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple,
24723 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24724 arg2 = obj1;
24725 {
24726 PyThreadState* __tstate = wxPyBeginAllowThreads();
24727 result = (bool)wxDataObjectSimple_SetData(arg1,arg2);
24728
24729 wxPyEndAllowThreads(__tstate);
24730 if (PyErr_Occurred()) SWIG_fail;
24731 }
24732 {
24733 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24734 }
24735 return resultobj;
24736 fail:
24737 return NULL;
24738 }
24739
24740
24741 static PyObject * DataObjectSimple_swigregister(PyObject *self, PyObject *args) {
24742 PyObject *obj;
24743 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24744 SWIG_TypeClientData(SWIGTYPE_p_wxDataObjectSimple, obj);
24745 Py_INCREF(obj);
24746 return Py_BuildValue((char *)"");
24747 }
24748 static PyObject *_wrap_new_PyDataObjectSimple(PyObject *self, PyObject *args, PyObject *kwargs) {
24749 PyObject *resultobj;
24750 wxDataFormat const &arg1_defvalue = wxFormatInvalid ;
24751 wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ;
24752 wxPyDataObjectSimple *result;
24753 PyObject * obj0 = 0 ;
24754 char *kwnames[] = {
24755 (char *) "format", NULL
24756 };
24757
24758 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyDataObjectSimple",kwnames,&obj0)) goto fail;
24759 if (obj0) {
24760 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24761 SWIG_POINTER_EXCEPTION | 0)) == -1)
24762 SWIG_fail;
24763 if (arg1 == NULL) {
24764 PyErr_SetString(PyExc_TypeError,"null reference");
24765 SWIG_fail;
24766 }
24767 }
24768 {
24769 PyThreadState* __tstate = wxPyBeginAllowThreads();
24770 result = (wxPyDataObjectSimple *)new wxPyDataObjectSimple((wxDataFormat const &)*arg1);
24771
24772 wxPyEndAllowThreads(__tstate);
24773 if (PyErr_Occurred()) SWIG_fail;
24774 }
24775 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDataObjectSimple, 1);
24776 return resultobj;
24777 fail:
24778 return NULL;
24779 }
24780
24781
24782 static PyObject *_wrap_PyDataObjectSimple__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
24783 PyObject *resultobj;
24784 wxPyDataObjectSimple *arg1 = (wxPyDataObjectSimple *) 0 ;
24785 PyObject *arg2 = (PyObject *) 0 ;
24786 PyObject *arg3 = (PyObject *) 0 ;
24787 PyObject * obj0 = 0 ;
24788 PyObject * obj1 = 0 ;
24789 PyObject * obj2 = 0 ;
24790 char *kwnames[] = {
24791 (char *) "self",(char *) "self",(char *) "_class", NULL
24792 };
24793
24794 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyDataObjectSimple__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
24795 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDataObjectSimple,
24796 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24797 arg2 = obj1;
24798 arg3 = obj2;
24799 {
24800 PyThreadState* __tstate = wxPyBeginAllowThreads();
24801 (arg1)->_setCallbackInfo(arg2,arg3);
24802
24803 wxPyEndAllowThreads(__tstate);
24804 if (PyErr_Occurred()) SWIG_fail;
24805 }
24806 Py_INCREF(Py_None); resultobj = Py_None;
24807 return resultobj;
24808 fail:
24809 return NULL;
24810 }
24811
24812
24813 static PyObject * PyDataObjectSimple_swigregister(PyObject *self, PyObject *args) {
24814 PyObject *obj;
24815 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24816 SWIG_TypeClientData(SWIGTYPE_p_wxPyDataObjectSimple, obj);
24817 Py_INCREF(obj);
24818 return Py_BuildValue((char *)"");
24819 }
24820 static PyObject *_wrap_new_DataObjectComposite(PyObject *self, PyObject *args, PyObject *kwargs) {
24821 PyObject *resultobj;
24822 wxDataObjectComposite *result;
24823 char *kwnames[] = {
24824 NULL
24825 };
24826
24827 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DataObjectComposite",kwnames)) goto fail;
24828 {
24829 PyThreadState* __tstate = wxPyBeginAllowThreads();
24830 result = (wxDataObjectComposite *)new wxDataObjectComposite();
24831
24832 wxPyEndAllowThreads(__tstate);
24833 if (PyErr_Occurred()) SWIG_fail;
24834 }
24835 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObjectComposite, 1);
24836 return resultobj;
24837 fail:
24838 return NULL;
24839 }
24840
24841
24842 static PyObject *_wrap_DataObjectComposite_Add(PyObject *self, PyObject *args, PyObject *kwargs) {
24843 PyObject *resultobj;
24844 wxDataObjectComposite *arg1 = (wxDataObjectComposite *) 0 ;
24845 wxDataObjectSimple *arg2 = (wxDataObjectSimple *) 0 ;
24846 bool arg3 = (bool) False ;
24847 PyObject * obj0 = 0 ;
24848 PyObject * obj1 = 0 ;
24849 PyObject * obj2 = 0 ;
24850 char *kwnames[] = {
24851 (char *) "self",(char *) "dataObject",(char *) "preferred", NULL
24852 };
24853
24854 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DataObjectComposite_Add",kwnames,&obj0,&obj1,&obj2)) goto fail;
24855 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectComposite,
24856 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24857 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObjectSimple,
24858 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
24859 if (obj2) {
24860 arg3 = (bool) SWIG_AsBool(obj2);
24861 if (PyErr_Occurred()) SWIG_fail;
24862 }
24863 {
24864 PyThreadState* __tstate = wxPyBeginAllowThreads();
24865 (arg1)->Add(arg2,arg3);
24866
24867 wxPyEndAllowThreads(__tstate);
24868 if (PyErr_Occurred()) SWIG_fail;
24869 }
24870 Py_INCREF(Py_None); resultobj = Py_None;
24871 return resultobj;
24872 fail:
24873 return NULL;
24874 }
24875
24876
24877 static PyObject * DataObjectComposite_swigregister(PyObject *self, PyObject *args) {
24878 PyObject *obj;
24879 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24880 SWIG_TypeClientData(SWIGTYPE_p_wxDataObjectComposite, obj);
24881 Py_INCREF(obj);
24882 return Py_BuildValue((char *)"");
24883 }
24884 static PyObject *_wrap_new_TextDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
24885 PyObject *resultobj;
24886 wxString const &arg1_defvalue = wxPyEmptyString ;
24887 wxString *arg1 = (wxString *) &arg1_defvalue ;
24888 wxTextDataObject *result;
24889 bool temp1 = False ;
24890 PyObject * obj0 = 0 ;
24891 char *kwnames[] = {
24892 (char *) "text", NULL
24893 };
24894
24895 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TextDataObject",kwnames,&obj0)) goto fail;
24896 if (obj0) {
24897 {
24898 arg1 = wxString_in_helper(obj0);
24899 if (arg1 == NULL) SWIG_fail;
24900 temp1 = True;
24901 }
24902 }
24903 {
24904 PyThreadState* __tstate = wxPyBeginAllowThreads();
24905 result = (wxTextDataObject *)new wxTextDataObject((wxString const &)*arg1);
24906
24907 wxPyEndAllowThreads(__tstate);
24908 if (PyErr_Occurred()) SWIG_fail;
24909 }
24910 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextDataObject, 1);
24911 {
24912 if (temp1)
24913 delete arg1;
24914 }
24915 return resultobj;
24916 fail:
24917 {
24918 if (temp1)
24919 delete arg1;
24920 }
24921 return NULL;
24922 }
24923
24924
24925 static PyObject *_wrap_TextDataObject_GetTextLength(PyObject *self, PyObject *args, PyObject *kwargs) {
24926 PyObject *resultobj;
24927 wxTextDataObject *arg1 = (wxTextDataObject *) 0 ;
24928 size_t result;
24929 PyObject * obj0 = 0 ;
24930 char *kwnames[] = {
24931 (char *) "self", NULL
24932 };
24933
24934 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDataObject_GetTextLength",kwnames,&obj0)) goto fail;
24935 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextDataObject,
24936 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24937 {
24938 PyThreadState* __tstate = wxPyBeginAllowThreads();
24939 result = (size_t)(arg1)->GetTextLength();
24940
24941 wxPyEndAllowThreads(__tstate);
24942 if (PyErr_Occurred()) SWIG_fail;
24943 }
24944 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
24945 return resultobj;
24946 fail:
24947 return NULL;
24948 }
24949
24950
24951 static PyObject *_wrap_TextDataObject_GetText(PyObject *self, PyObject *args, PyObject *kwargs) {
24952 PyObject *resultobj;
24953 wxTextDataObject *arg1 = (wxTextDataObject *) 0 ;
24954 wxString result;
24955 PyObject * obj0 = 0 ;
24956 char *kwnames[] = {
24957 (char *) "self", NULL
24958 };
24959
24960 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDataObject_GetText",kwnames,&obj0)) goto fail;
24961 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextDataObject,
24962 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24963 {
24964 PyThreadState* __tstate = wxPyBeginAllowThreads();
24965 result = (arg1)->GetText();
24966
24967 wxPyEndAllowThreads(__tstate);
24968 if (PyErr_Occurred()) SWIG_fail;
24969 }
24970 {
24971 #if wxUSE_UNICODE
24972 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
24973 #else
24974 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
24975 #endif
24976 }
24977 return resultobj;
24978 fail:
24979 return NULL;
24980 }
24981
24982
24983 static PyObject *_wrap_TextDataObject_SetText(PyObject *self, PyObject *args, PyObject *kwargs) {
24984 PyObject *resultobj;
24985 wxTextDataObject *arg1 = (wxTextDataObject *) 0 ;
24986 wxString *arg2 = 0 ;
24987 bool temp2 = False ;
24988 PyObject * obj0 = 0 ;
24989 PyObject * obj1 = 0 ;
24990 char *kwnames[] = {
24991 (char *) "self",(char *) "text", NULL
24992 };
24993
24994 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextDataObject_SetText",kwnames,&obj0,&obj1)) goto fail;
24995 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextDataObject,
24996 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24997 {
24998 arg2 = wxString_in_helper(obj1);
24999 if (arg2 == NULL) SWIG_fail;
25000 temp2 = True;
25001 }
25002 {
25003 PyThreadState* __tstate = wxPyBeginAllowThreads();
25004 (arg1)->SetText((wxString const &)*arg2);
25005
25006 wxPyEndAllowThreads(__tstate);
25007 if (PyErr_Occurred()) SWIG_fail;
25008 }
25009 Py_INCREF(Py_None); resultobj = Py_None;
25010 {
25011 if (temp2)
25012 delete arg2;
25013 }
25014 return resultobj;
25015 fail:
25016 {
25017 if (temp2)
25018 delete arg2;
25019 }
25020 return NULL;
25021 }
25022
25023
25024 static PyObject * TextDataObject_swigregister(PyObject *self, PyObject *args) {
25025 PyObject *obj;
25026 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25027 SWIG_TypeClientData(SWIGTYPE_p_wxTextDataObject, obj);
25028 Py_INCREF(obj);
25029 return Py_BuildValue((char *)"");
25030 }
25031 static PyObject *_wrap_new_PyTextDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
25032 PyObject *resultobj;
25033 wxString const &arg1_defvalue = wxPyEmptyString ;
25034 wxString *arg1 = (wxString *) &arg1_defvalue ;
25035 wxPyTextDataObject *result;
25036 bool temp1 = False ;
25037 PyObject * obj0 = 0 ;
25038 char *kwnames[] = {
25039 (char *) "text", NULL
25040 };
25041
25042 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyTextDataObject",kwnames,&obj0)) goto fail;
25043 if (obj0) {
25044 {
25045 arg1 = wxString_in_helper(obj0);
25046 if (arg1 == NULL) SWIG_fail;
25047 temp1 = True;
25048 }
25049 }
25050 {
25051 PyThreadState* __tstate = wxPyBeginAllowThreads();
25052 result = (wxPyTextDataObject *)new wxPyTextDataObject((wxString const &)*arg1);
25053
25054 wxPyEndAllowThreads(__tstate);
25055 if (PyErr_Occurred()) SWIG_fail;
25056 }
25057 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTextDataObject, 1);
25058 {
25059 if (temp1)
25060 delete arg1;
25061 }
25062 return resultobj;
25063 fail:
25064 {
25065 if (temp1)
25066 delete arg1;
25067 }
25068 return NULL;
25069 }
25070
25071
25072 static PyObject *_wrap_PyTextDataObject__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
25073 PyObject *resultobj;
25074 wxPyTextDataObject *arg1 = (wxPyTextDataObject *) 0 ;
25075 PyObject *arg2 = (PyObject *) 0 ;
25076 PyObject *arg3 = (PyObject *) 0 ;
25077 PyObject * obj0 = 0 ;
25078 PyObject * obj1 = 0 ;
25079 PyObject * obj2 = 0 ;
25080 char *kwnames[] = {
25081 (char *) "self",(char *) "self",(char *) "_class", NULL
25082 };
25083
25084 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyTextDataObject__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
25085 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDataObject,
25086 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25087 arg2 = obj1;
25088 arg3 = obj2;
25089 {
25090 PyThreadState* __tstate = wxPyBeginAllowThreads();
25091 (arg1)->_setCallbackInfo(arg2,arg3);
25092
25093 wxPyEndAllowThreads(__tstate);
25094 if (PyErr_Occurred()) SWIG_fail;
25095 }
25096 Py_INCREF(Py_None); resultobj = Py_None;
25097 return resultobj;
25098 fail:
25099 return NULL;
25100 }
25101
25102
25103 static PyObject * PyTextDataObject_swigregister(PyObject *self, PyObject *args) {
25104 PyObject *obj;
25105 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25106 SWIG_TypeClientData(SWIGTYPE_p_wxPyTextDataObject, obj);
25107 Py_INCREF(obj);
25108 return Py_BuildValue((char *)"");
25109 }
25110 static PyObject *_wrap_new_BitmapDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
25111 PyObject *resultobj;
25112 wxBitmap const &arg1_defvalue = wxNullBitmap ;
25113 wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ;
25114 wxBitmapDataObject *result;
25115 PyObject * obj0 = 0 ;
25116 char *kwnames[] = {
25117 (char *) "bitmap", NULL
25118 };
25119
25120 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BitmapDataObject",kwnames,&obj0)) goto fail;
25121 if (obj0) {
25122 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
25123 SWIG_POINTER_EXCEPTION | 0)) == -1)
25124 SWIG_fail;
25125 if (arg1 == NULL) {
25126 PyErr_SetString(PyExc_TypeError,"null reference");
25127 SWIG_fail;
25128 }
25129 }
25130 {
25131 PyThreadState* __tstate = wxPyBeginAllowThreads();
25132 result = (wxBitmapDataObject *)new wxBitmapDataObject((wxBitmap const &)*arg1);
25133
25134 wxPyEndAllowThreads(__tstate);
25135 if (PyErr_Occurred()) SWIG_fail;
25136 }
25137 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmapDataObject, 1);
25138 return resultobj;
25139 fail:
25140 return NULL;
25141 }
25142
25143
25144 static PyObject *_wrap_BitmapDataObject_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
25145 PyObject *resultobj;
25146 wxBitmapDataObject *arg1 = (wxBitmapDataObject *) 0 ;
25147 wxBitmap result;
25148 PyObject * obj0 = 0 ;
25149 char *kwnames[] = {
25150 (char *) "self", NULL
25151 };
25152
25153 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapDataObject_GetBitmap",kwnames,&obj0)) goto fail;
25154 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapDataObject,
25155 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25156 {
25157 PyThreadState* __tstate = wxPyBeginAllowThreads();
25158 result = ((wxBitmapDataObject const *)arg1)->GetBitmap();
25159
25160 wxPyEndAllowThreads(__tstate);
25161 if (PyErr_Occurred()) SWIG_fail;
25162 }
25163 {
25164 wxBitmap * resultptr;
25165 resultptr = new wxBitmap((wxBitmap &) result);
25166 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
25167 }
25168 return resultobj;
25169 fail:
25170 return NULL;
25171 }
25172
25173
25174 static PyObject *_wrap_BitmapDataObject_SetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
25175 PyObject *resultobj;
25176 wxBitmapDataObject *arg1 = (wxBitmapDataObject *) 0 ;
25177 wxBitmap *arg2 = 0 ;
25178 PyObject * obj0 = 0 ;
25179 PyObject * obj1 = 0 ;
25180 char *kwnames[] = {
25181 (char *) "self",(char *) "bitmap", NULL
25182 };
25183
25184 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapDataObject_SetBitmap",kwnames,&obj0,&obj1)) goto fail;
25185 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapDataObject,
25186 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25187 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
25188 SWIG_POINTER_EXCEPTION | 0)) == -1)
25189 SWIG_fail;
25190 if (arg2 == NULL) {
25191 PyErr_SetString(PyExc_TypeError,"null reference");
25192 SWIG_fail;
25193 }
25194 {
25195 PyThreadState* __tstate = wxPyBeginAllowThreads();
25196 (arg1)->SetBitmap((wxBitmap const &)*arg2);
25197
25198 wxPyEndAllowThreads(__tstate);
25199 if (PyErr_Occurred()) SWIG_fail;
25200 }
25201 Py_INCREF(Py_None); resultobj = Py_None;
25202 return resultobj;
25203 fail:
25204 return NULL;
25205 }
25206
25207
25208 static PyObject * BitmapDataObject_swigregister(PyObject *self, PyObject *args) {
25209 PyObject *obj;
25210 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25211 SWIG_TypeClientData(SWIGTYPE_p_wxBitmapDataObject, obj);
25212 Py_INCREF(obj);
25213 return Py_BuildValue((char *)"");
25214 }
25215 static PyObject *_wrap_new_PyBitmapDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
25216 PyObject *resultobj;
25217 wxBitmap const &arg1_defvalue = wxNullBitmap ;
25218 wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ;
25219 wxPyBitmapDataObject *result;
25220 PyObject * obj0 = 0 ;
25221 char *kwnames[] = {
25222 (char *) "bitmap", NULL
25223 };
25224
25225 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyBitmapDataObject",kwnames,&obj0)) goto fail;
25226 if (obj0) {
25227 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
25228 SWIG_POINTER_EXCEPTION | 0)) == -1)
25229 SWIG_fail;
25230 if (arg1 == NULL) {
25231 PyErr_SetString(PyExc_TypeError,"null reference");
25232 SWIG_fail;
25233 }
25234 }
25235 {
25236 PyThreadState* __tstate = wxPyBeginAllowThreads();
25237 result = (wxPyBitmapDataObject *)new wxPyBitmapDataObject((wxBitmap const &)*arg1);
25238
25239 wxPyEndAllowThreads(__tstate);
25240 if (PyErr_Occurred()) SWIG_fail;
25241 }
25242 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyBitmapDataObject, 1);
25243 return resultobj;
25244 fail:
25245 return NULL;
25246 }
25247
25248
25249 static PyObject *_wrap_PyBitmapDataObject__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
25250 PyObject *resultobj;
25251 wxPyBitmapDataObject *arg1 = (wxPyBitmapDataObject *) 0 ;
25252 PyObject *arg2 = (PyObject *) 0 ;
25253 PyObject *arg3 = (PyObject *) 0 ;
25254 PyObject * obj0 = 0 ;
25255 PyObject * obj1 = 0 ;
25256 PyObject * obj2 = 0 ;
25257 char *kwnames[] = {
25258 (char *) "self",(char *) "self",(char *) "_class", NULL
25259 };
25260
25261 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyBitmapDataObject__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
25262 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyBitmapDataObject,
25263 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25264 arg2 = obj1;
25265 arg3 = obj2;
25266 {
25267 PyThreadState* __tstate = wxPyBeginAllowThreads();
25268 (arg1)->_setCallbackInfo(arg2,arg3);
25269
25270 wxPyEndAllowThreads(__tstate);
25271 if (PyErr_Occurred()) SWIG_fail;
25272 }
25273 Py_INCREF(Py_None); resultobj = Py_None;
25274 return resultobj;
25275 fail:
25276 return NULL;
25277 }
25278
25279
25280 static PyObject * PyBitmapDataObject_swigregister(PyObject *self, PyObject *args) {
25281 PyObject *obj;
25282 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25283 SWIG_TypeClientData(SWIGTYPE_p_wxPyBitmapDataObject, obj);
25284 Py_INCREF(obj);
25285 return Py_BuildValue((char *)"");
25286 }
25287 static PyObject *_wrap_new_FileDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
25288 PyObject *resultobj;
25289 wxFileDataObject *result;
25290 char *kwnames[] = {
25291 NULL
25292 };
25293
25294 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileDataObject",kwnames)) goto fail;
25295 {
25296 PyThreadState* __tstate = wxPyBeginAllowThreads();
25297 result = (wxFileDataObject *)new wxFileDataObject();
25298
25299 wxPyEndAllowThreads(__tstate);
25300 if (PyErr_Occurred()) SWIG_fail;
25301 }
25302 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileDataObject, 1);
25303 return resultobj;
25304 fail:
25305 return NULL;
25306 }
25307
25308
25309 static PyObject *_wrap_FileDataObject_GetFilenames(PyObject *self, PyObject *args, PyObject *kwargs) {
25310 PyObject *resultobj;
25311 wxFileDataObject *arg1 = (wxFileDataObject *) 0 ;
25312 wxArrayString *result;
25313 PyObject * obj0 = 0 ;
25314 char *kwnames[] = {
25315 (char *) "self", NULL
25316 };
25317
25318 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDataObject_GetFilenames",kwnames,&obj0)) goto fail;
25319 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDataObject,
25320 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25321 {
25322 PyThreadState* __tstate = wxPyBeginAllowThreads();
25323 {
25324 wxArrayString const &_result_ref = (arg1)->GetFilenames();
25325 result = (wxArrayString *) &_result_ref;
25326 }
25327
25328 wxPyEndAllowThreads(__tstate);
25329 if (PyErr_Occurred()) SWIG_fail;
25330 }
25331 {
25332 resultobj = wxArrayString2PyList_helper(*result);
25333 }
25334 return resultobj;
25335 fail:
25336 return NULL;
25337 }
25338
25339
25340 static PyObject *_wrap_FileDataObject_AddFile(PyObject *self, PyObject *args, PyObject *kwargs) {
25341 PyObject *resultobj;
25342 wxFileDataObject *arg1 = (wxFileDataObject *) 0 ;
25343 wxString *arg2 = 0 ;
25344 bool temp2 = False ;
25345 PyObject * obj0 = 0 ;
25346 PyObject * obj1 = 0 ;
25347 char *kwnames[] = {
25348 (char *) "self",(char *) "filename", NULL
25349 };
25350
25351 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDataObject_AddFile",kwnames,&obj0,&obj1)) goto fail;
25352 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDataObject,
25353 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25354 {
25355 arg2 = wxString_in_helper(obj1);
25356 if (arg2 == NULL) SWIG_fail;
25357 temp2 = True;
25358 }
25359 {
25360 PyThreadState* __tstate = wxPyBeginAllowThreads();
25361 (arg1)->AddFile((wxString const &)*arg2);
25362
25363 wxPyEndAllowThreads(__tstate);
25364 if (PyErr_Occurred()) SWIG_fail;
25365 }
25366 Py_INCREF(Py_None); resultobj = Py_None;
25367 {
25368 if (temp2)
25369 delete arg2;
25370 }
25371 return resultobj;
25372 fail:
25373 {
25374 if (temp2)
25375 delete arg2;
25376 }
25377 return NULL;
25378 }
25379
25380
25381 static PyObject * FileDataObject_swigregister(PyObject *self, PyObject *args) {
25382 PyObject *obj;
25383 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25384 SWIG_TypeClientData(SWIGTYPE_p_wxFileDataObject, obj);
25385 Py_INCREF(obj);
25386 return Py_BuildValue((char *)"");
25387 }
25388 static PyObject *_wrap_new_CustomDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
25389 PyObject *resultobj;
25390 wxDataFormat const &arg1_defvalue = wxFormatInvalid ;
25391 wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ;
25392 wxCustomDataObject *result;
25393 PyObject * obj0 = 0 ;
25394 char *kwnames[] = {
25395 (char *) "format", NULL
25396 };
25397
25398 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_CustomDataObject",kwnames,&obj0)) goto fail;
25399 if (obj0) {
25400 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
25401 SWIG_POINTER_EXCEPTION | 0)) == -1)
25402 SWIG_fail;
25403 if (arg1 == NULL) {
25404 PyErr_SetString(PyExc_TypeError,"null reference");
25405 SWIG_fail;
25406 }
25407 }
25408 {
25409 PyThreadState* __tstate = wxPyBeginAllowThreads();
25410 result = (wxCustomDataObject *)new wxCustomDataObject((wxDataFormat const &)*arg1);
25411
25412 wxPyEndAllowThreads(__tstate);
25413 if (PyErr_Occurred()) SWIG_fail;
25414 }
25415 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCustomDataObject, 1);
25416 return resultobj;
25417 fail:
25418 return NULL;
25419 }
25420
25421
25422 static PyObject *_wrap_CustomDataObject_SetData(PyObject *self, PyObject *args, PyObject *kwargs) {
25423 PyObject *resultobj;
25424 wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ;
25425 PyObject *arg2 = (PyObject *) 0 ;
25426 bool result;
25427 PyObject * obj0 = 0 ;
25428 PyObject * obj1 = 0 ;
25429 char *kwnames[] = {
25430 (char *) "self",(char *) "data", NULL
25431 };
25432
25433 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CustomDataObject_SetData",kwnames,&obj0,&obj1)) goto fail;
25434 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCustomDataObject,
25435 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25436 arg2 = obj1;
25437 {
25438 PyThreadState* __tstate = wxPyBeginAllowThreads();
25439 result = (bool)wxCustomDataObject_SetData(arg1,arg2);
25440
25441 wxPyEndAllowThreads(__tstate);
25442 if (PyErr_Occurred()) SWIG_fail;
25443 }
25444 {
25445 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25446 }
25447 return resultobj;
25448 fail:
25449 return NULL;
25450 }
25451
25452
25453 static PyObject *_wrap_CustomDataObject_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
25454 PyObject *resultobj;
25455 wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ;
25456 size_t result;
25457 PyObject * obj0 = 0 ;
25458 char *kwnames[] = {
25459 (char *) "self", NULL
25460 };
25461
25462 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CustomDataObject_GetSize",kwnames,&obj0)) goto fail;
25463 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCustomDataObject,
25464 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25465 {
25466 PyThreadState* __tstate = wxPyBeginAllowThreads();
25467 result = (size_t)(arg1)->GetSize();
25468
25469 wxPyEndAllowThreads(__tstate);
25470 if (PyErr_Occurred()) SWIG_fail;
25471 }
25472 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
25473 return resultobj;
25474 fail:
25475 return NULL;
25476 }
25477
25478
25479 static PyObject *_wrap_CustomDataObject_GetData(PyObject *self, PyObject *args, PyObject *kwargs) {
25480 PyObject *resultobj;
25481 wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ;
25482 PyObject *result;
25483 PyObject * obj0 = 0 ;
25484 char *kwnames[] = {
25485 (char *) "self", NULL
25486 };
25487
25488 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CustomDataObject_GetData",kwnames,&obj0)) goto fail;
25489 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCustomDataObject,
25490 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25491 {
25492 PyThreadState* __tstate = wxPyBeginAllowThreads();
25493 result = (PyObject *)wxCustomDataObject_GetData(arg1);
25494
25495 wxPyEndAllowThreads(__tstate);
25496 if (PyErr_Occurred()) SWIG_fail;
25497 }
25498 resultobj = result;
25499 return resultobj;
25500 fail:
25501 return NULL;
25502 }
25503
25504
25505 static PyObject * CustomDataObject_swigregister(PyObject *self, PyObject *args) {
25506 PyObject *obj;
25507 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25508 SWIG_TypeClientData(SWIGTYPE_p_wxCustomDataObject, obj);
25509 Py_INCREF(obj);
25510 return Py_BuildValue((char *)"");
25511 }
25512 static PyObject *_wrap_new_URLDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
25513 PyObject *resultobj;
25514 wxURLDataObject *result;
25515 char *kwnames[] = {
25516 NULL
25517 };
25518
25519 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_URLDataObject",kwnames)) goto fail;
25520 {
25521 PyThreadState* __tstate = wxPyBeginAllowThreads();
25522 result = (wxURLDataObject *)new wxURLDataObject();
25523
25524 wxPyEndAllowThreads(__tstate);
25525 if (PyErr_Occurred()) SWIG_fail;
25526 }
25527 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxURLDataObject, 1);
25528 return resultobj;
25529 fail:
25530 return NULL;
25531 }
25532
25533
25534 static PyObject *_wrap_URLDataObject_GetURL(PyObject *self, PyObject *args, PyObject *kwargs) {
25535 PyObject *resultobj;
25536 wxURLDataObject *arg1 = (wxURLDataObject *) 0 ;
25537 wxString result;
25538 PyObject * obj0 = 0 ;
25539 char *kwnames[] = {
25540 (char *) "self", NULL
25541 };
25542
25543 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:URLDataObject_GetURL",kwnames,&obj0)) goto fail;
25544 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxURLDataObject,
25545 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25546 {
25547 PyThreadState* __tstate = wxPyBeginAllowThreads();
25548 result = (arg1)->GetURL();
25549
25550 wxPyEndAllowThreads(__tstate);
25551 if (PyErr_Occurred()) SWIG_fail;
25552 }
25553 {
25554 #if wxUSE_UNICODE
25555 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
25556 #else
25557 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
25558 #endif
25559 }
25560 return resultobj;
25561 fail:
25562 return NULL;
25563 }
25564
25565
25566 static PyObject *_wrap_URLDataObject_SetURL(PyObject *self, PyObject *args, PyObject *kwargs) {
25567 PyObject *resultobj;
25568 wxURLDataObject *arg1 = (wxURLDataObject *) 0 ;
25569 wxString *arg2 = 0 ;
25570 bool temp2 = False ;
25571 PyObject * obj0 = 0 ;
25572 PyObject * obj1 = 0 ;
25573 char *kwnames[] = {
25574 (char *) "self",(char *) "url", NULL
25575 };
25576
25577 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:URLDataObject_SetURL",kwnames,&obj0,&obj1)) goto fail;
25578 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxURLDataObject,
25579 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25580 {
25581 arg2 = wxString_in_helper(obj1);
25582 if (arg2 == NULL) SWIG_fail;
25583 temp2 = True;
25584 }
25585 {
25586 PyThreadState* __tstate = wxPyBeginAllowThreads();
25587 (arg1)->SetURL((wxString const &)*arg2);
25588
25589 wxPyEndAllowThreads(__tstate);
25590 if (PyErr_Occurred()) SWIG_fail;
25591 }
25592 Py_INCREF(Py_None); resultobj = Py_None;
25593 {
25594 if (temp2)
25595 delete arg2;
25596 }
25597 return resultobj;
25598 fail:
25599 {
25600 if (temp2)
25601 delete arg2;
25602 }
25603 return NULL;
25604 }
25605
25606
25607 static PyObject * URLDataObject_swigregister(PyObject *self, PyObject *args) {
25608 PyObject *obj;
25609 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25610 SWIG_TypeClientData(SWIGTYPE_p_wxURLDataObject, obj);
25611 Py_INCREF(obj);
25612 return Py_BuildValue((char *)"");
25613 }
25614 static PyObject *_wrap_new_MetafileDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
25615 PyObject *resultobj;
25616 wxMetafileDataObject *result;
25617 char *kwnames[] = {
25618 NULL
25619 };
25620
25621 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MetafileDataObject",kwnames)) goto fail;
25622 {
25623 PyThreadState* __tstate = wxPyBeginAllowThreads();
25624 result = (wxMetafileDataObject *)new wxMetafileDataObject();
25625
25626 wxPyEndAllowThreads(__tstate);
25627 if (PyErr_Occurred()) SWIG_fail;
25628 }
25629 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetafileDataObject, 1);
25630 return resultobj;
25631 fail:
25632 return NULL;
25633 }
25634
25635
25636 static PyObject *_wrap_MetafileDataObject_SetMetafile(PyObject *self, PyObject *args, PyObject *kwargs) {
25637 PyObject *resultobj;
25638 wxMetafileDataObject *arg1 = (wxMetafileDataObject *) 0 ;
25639 wxMetafile *arg2 = 0 ;
25640 PyObject * obj0 = 0 ;
25641 PyObject * obj1 = 0 ;
25642 char *kwnames[] = {
25643 (char *) "self",(char *) "metafile", NULL
25644 };
25645
25646 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MetafileDataObject_SetMetafile",kwnames,&obj0,&obj1)) goto fail;
25647 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetafileDataObject,
25648 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25649 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMetafile,
25650 SWIG_POINTER_EXCEPTION | 0)) == -1)
25651 SWIG_fail;
25652 if (arg2 == NULL) {
25653 PyErr_SetString(PyExc_TypeError,"null reference");
25654 SWIG_fail;
25655 }
25656 {
25657 PyThreadState* __tstate = wxPyBeginAllowThreads();
25658 (arg1)->SetMetafile((wxMetafile const &)*arg2);
25659
25660 wxPyEndAllowThreads(__tstate);
25661 if (PyErr_Occurred()) SWIG_fail;
25662 }
25663 Py_INCREF(Py_None); resultobj = Py_None;
25664 return resultobj;
25665 fail:
25666 return NULL;
25667 }
25668
25669
25670 static PyObject *_wrap_MetafileDataObject_GetMetafile(PyObject *self, PyObject *args, PyObject *kwargs) {
25671 PyObject *resultobj;
25672 wxMetafileDataObject *arg1 = (wxMetafileDataObject *) 0 ;
25673 wxMetafile result;
25674 PyObject * obj0 = 0 ;
25675 char *kwnames[] = {
25676 (char *) "self", NULL
25677 };
25678
25679 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetafileDataObject_GetMetafile",kwnames,&obj0)) goto fail;
25680 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetafileDataObject,
25681 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25682 {
25683 PyThreadState* __tstate = wxPyBeginAllowThreads();
25684 result = ((wxMetafileDataObject const *)arg1)->GetMetafile();
25685
25686 wxPyEndAllowThreads(__tstate);
25687 if (PyErr_Occurred()) SWIG_fail;
25688 }
25689 {
25690 wxMetafile * resultptr;
25691 resultptr = new wxMetafile((wxMetafile &) result);
25692 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxMetafile, 1);
25693 }
25694 return resultobj;
25695 fail:
25696 return NULL;
25697 }
25698
25699
25700 static PyObject * MetafileDataObject_swigregister(PyObject *self, PyObject *args) {
25701 PyObject *obj;
25702 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25703 SWIG_TypeClientData(SWIGTYPE_p_wxMetafileDataObject, obj);
25704 Py_INCREF(obj);
25705 return Py_BuildValue((char *)"");
25706 }
25707 static PyObject *_wrap_IsDragResultOk(PyObject *self, PyObject *args, PyObject *kwargs) {
25708 PyObject *resultobj;
25709 int arg1 ;
25710 bool result;
25711 PyObject * obj0 = 0 ;
25712 char *kwnames[] = {
25713 (char *) "res", NULL
25714 };
25715
25716 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IsDragResultOk",kwnames,&obj0)) goto fail;
25717 arg1 = (wxDragResult) SWIG_AsInt(obj0);
25718 if (PyErr_Occurred()) SWIG_fail;
25719 {
25720 PyThreadState* __tstate = wxPyBeginAllowThreads();
25721 result = (bool)wxIsDragResultOk((wxDragResult )arg1);
25722
25723 wxPyEndAllowThreads(__tstate);
25724 if (PyErr_Occurred()) SWIG_fail;
25725 }
25726 {
25727 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25728 }
25729 return resultobj;
25730 fail:
25731 return NULL;
25732 }
25733
25734
25735 static PyObject *_wrap_new_DropSource(PyObject *self, PyObject *args, PyObject *kwargs) {
25736 PyObject *resultobj;
25737 wxWindow *arg1 = (wxWindow *) 0 ;
25738 wxCursor const &arg2_defvalue = wxNullCursor ;
25739 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
25740 wxCursor const &arg3_defvalue = wxNullCursor ;
25741 wxCursor *arg3 = (wxCursor *) &arg3_defvalue ;
25742 wxCursor const &arg4_defvalue = wxNullCursor ;
25743 wxCursor *arg4 = (wxCursor *) &arg4_defvalue ;
25744 wxPyDropSource *result;
25745 PyObject * obj0 = 0 ;
25746 PyObject * obj1 = 0 ;
25747 PyObject * obj2 = 0 ;
25748 PyObject * obj3 = 0 ;
25749 char *kwnames[] = {
25750 (char *) "win",(char *) "copy",(char *) "move",(char *) "none", NULL
25751 };
25752
25753 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:new_DropSource",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
25754 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25755 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25756 if (obj1) {
25757 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor,
25758 SWIG_POINTER_EXCEPTION | 0)) == -1)
25759 SWIG_fail;
25760 if (arg2 == NULL) {
25761 PyErr_SetString(PyExc_TypeError,"null reference");
25762 SWIG_fail;
25763 }
25764 }
25765 if (obj2) {
25766 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxCursor,
25767 SWIG_POINTER_EXCEPTION | 0)) == -1)
25768 SWIG_fail;
25769 if (arg3 == NULL) {
25770 PyErr_SetString(PyExc_TypeError,"null reference");
25771 SWIG_fail;
25772 }
25773 }
25774 if (obj3) {
25775 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxCursor,
25776 SWIG_POINTER_EXCEPTION | 0)) == -1)
25777 SWIG_fail;
25778 if (arg4 == NULL) {
25779 PyErr_SetString(PyExc_TypeError,"null reference");
25780 SWIG_fail;
25781 }
25782 }
25783 {
25784 PyThreadState* __tstate = wxPyBeginAllowThreads();
25785 result = (wxPyDropSource *)new wxPyDropSource(arg1,(wxCursor const &)*arg2,(wxCursor const &)*arg3,(wxCursor const &)*arg4);
25786
25787 wxPyEndAllowThreads(__tstate);
25788 if (PyErr_Occurred()) SWIG_fail;
25789 }
25790 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDropSource, 1);
25791 return resultobj;
25792 fail:
25793 return NULL;
25794 }
25795
25796
25797 static PyObject *_wrap_DropSource__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
25798 PyObject *resultobj;
25799 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
25800 PyObject *arg2 = (PyObject *) 0 ;
25801 PyObject *arg3 = (PyObject *) 0 ;
25802 int arg4 ;
25803 PyObject * obj0 = 0 ;
25804 PyObject * obj1 = 0 ;
25805 PyObject * obj2 = 0 ;
25806 PyObject * obj3 = 0 ;
25807 char *kwnames[] = {
25808 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
25809 };
25810
25811 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropSource__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
25812 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
25813 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25814 arg2 = obj1;
25815 arg3 = obj2;
25816 arg4 = (int) SWIG_AsInt(obj3);
25817 if (PyErr_Occurred()) SWIG_fail;
25818 {
25819 PyThreadState* __tstate = wxPyBeginAllowThreads();
25820 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
25821
25822 wxPyEndAllowThreads(__tstate);
25823 if (PyErr_Occurred()) SWIG_fail;
25824 }
25825 Py_INCREF(Py_None); resultobj = Py_None;
25826 return resultobj;
25827 fail:
25828 return NULL;
25829 }
25830
25831
25832 static PyObject *_wrap_delete_DropSource(PyObject *self, PyObject *args, PyObject *kwargs) {
25833 PyObject *resultobj;
25834 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
25835 PyObject * obj0 = 0 ;
25836 char *kwnames[] = {
25837 (char *) "self", NULL
25838 };
25839
25840 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DropSource",kwnames,&obj0)) goto fail;
25841 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
25842 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25843 {
25844 PyThreadState* __tstate = wxPyBeginAllowThreads();
25845 delete arg1;
25846
25847 wxPyEndAllowThreads(__tstate);
25848 if (PyErr_Occurred()) SWIG_fail;
25849 }
25850 Py_INCREF(Py_None); resultobj = Py_None;
25851 return resultobj;
25852 fail:
25853 return NULL;
25854 }
25855
25856
25857 static PyObject *_wrap_DropSource_SetData(PyObject *self, PyObject *args, PyObject *kwargs) {
25858 PyObject *resultobj;
25859 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
25860 wxDataObject *arg2 = 0 ;
25861 PyObject * obj0 = 0 ;
25862 PyObject * obj1 = 0 ;
25863 char *kwnames[] = {
25864 (char *) "self",(char *) "data", NULL
25865 };
25866
25867 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropSource_SetData",kwnames,&obj0,&obj1)) goto fail;
25868 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
25869 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25870 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject,
25871 SWIG_POINTER_EXCEPTION | 0)) == -1)
25872 SWIG_fail;
25873 if (arg2 == NULL) {
25874 PyErr_SetString(PyExc_TypeError,"null reference");
25875 SWIG_fail;
25876 }
25877 {
25878 PyThreadState* __tstate = wxPyBeginAllowThreads();
25879 (arg1)->SetData(*arg2);
25880
25881 wxPyEndAllowThreads(__tstate);
25882 if (PyErr_Occurred()) SWIG_fail;
25883 }
25884 Py_INCREF(Py_None); resultobj = Py_None;
25885 return resultobj;
25886 fail:
25887 return NULL;
25888 }
25889
25890
25891 static PyObject *_wrap_DropSource_GetDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
25892 PyObject *resultobj;
25893 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
25894 wxDataObject *result;
25895 PyObject * obj0 = 0 ;
25896 char *kwnames[] = {
25897 (char *) "self", NULL
25898 };
25899
25900 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropSource_GetDataObject",kwnames,&obj0)) goto fail;
25901 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
25902 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25903 {
25904 PyThreadState* __tstate = wxPyBeginAllowThreads();
25905 result = (wxDataObject *)(arg1)->GetDataObject();
25906
25907 wxPyEndAllowThreads(__tstate);
25908 if (PyErr_Occurred()) SWIG_fail;
25909 }
25910 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObject, 0);
25911 return resultobj;
25912 fail:
25913 return NULL;
25914 }
25915
25916
25917 static PyObject *_wrap_DropSource_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
25918 PyObject *resultobj;
25919 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
25920 int arg2 ;
25921 wxCursor *arg3 = 0 ;
25922 PyObject * obj0 = 0 ;
25923 PyObject * obj1 = 0 ;
25924 PyObject * obj2 = 0 ;
25925 char *kwnames[] = {
25926 (char *) "self",(char *) "res",(char *) "cursor", NULL
25927 };
25928
25929 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropSource_SetCursor",kwnames,&obj0,&obj1,&obj2)) goto fail;
25930 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
25931 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25932 arg2 = (wxDragResult) SWIG_AsInt(obj1);
25933 if (PyErr_Occurred()) SWIG_fail;
25934 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxCursor,
25935 SWIG_POINTER_EXCEPTION | 0)) == -1)
25936 SWIG_fail;
25937 if (arg3 == NULL) {
25938 PyErr_SetString(PyExc_TypeError,"null reference");
25939 SWIG_fail;
25940 }
25941 {
25942 PyThreadState* __tstate = wxPyBeginAllowThreads();
25943 (arg1)->SetCursor((wxDragResult )arg2,(wxCursor const &)*arg3);
25944
25945 wxPyEndAllowThreads(__tstate);
25946 if (PyErr_Occurred()) SWIG_fail;
25947 }
25948 Py_INCREF(Py_None); resultobj = Py_None;
25949 return resultobj;
25950 fail:
25951 return NULL;
25952 }
25953
25954
25955 static PyObject *_wrap_DropSource_DoDragDrop(PyObject *self, PyObject *args, PyObject *kwargs) {
25956 PyObject *resultobj;
25957 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
25958 int arg2 = (int) wxDrag_CopyOnly ;
25959 int result;
25960 PyObject * obj0 = 0 ;
25961 PyObject * obj1 = 0 ;
25962 char *kwnames[] = {
25963 (char *) "self",(char *) "flags", NULL
25964 };
25965
25966 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DropSource_DoDragDrop",kwnames,&obj0,&obj1)) goto fail;
25967 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
25968 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25969 if (obj1) {
25970 arg2 = (int) SWIG_AsInt(obj1);
25971 if (PyErr_Occurred()) SWIG_fail;
25972 }
25973 {
25974 PyThreadState* __tstate = wxPyBeginAllowThreads();
25975 result = (int)(arg1)->DoDragDrop(arg2);
25976
25977 wxPyEndAllowThreads(__tstate);
25978 if (PyErr_Occurred()) SWIG_fail;
25979 }
25980 resultobj = SWIG_FromInt((int)result);
25981 return resultobj;
25982 fail:
25983 return NULL;
25984 }
25985
25986
25987 static PyObject *_wrap_DropSource_base_GiveFeedback(PyObject *self, PyObject *args, PyObject *kwargs) {
25988 PyObject *resultobj;
25989 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
25990 int arg2 ;
25991 bool result;
25992 PyObject * obj0 = 0 ;
25993 PyObject * obj1 = 0 ;
25994 char *kwnames[] = {
25995 (char *) "self",(char *) "effect", NULL
25996 };
25997
25998 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropSource_base_GiveFeedback",kwnames,&obj0,&obj1)) goto fail;
25999 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
26000 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26001 arg2 = (wxDragResult) SWIG_AsInt(obj1);
26002 if (PyErr_Occurred()) SWIG_fail;
26003 {
26004 PyThreadState* __tstate = wxPyBeginAllowThreads();
26005 result = (bool)(arg1)->base_GiveFeedback((wxDragResult )arg2);
26006
26007 wxPyEndAllowThreads(__tstate);
26008 if (PyErr_Occurred()) SWIG_fail;
26009 }
26010 {
26011 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26012 }
26013 return resultobj;
26014 fail:
26015 return NULL;
26016 }
26017
26018
26019 static PyObject * DropSource_swigregister(PyObject *self, PyObject *args) {
26020 PyObject *obj;
26021 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
26022 SWIG_TypeClientData(SWIGTYPE_p_wxPyDropSource, obj);
26023 Py_INCREF(obj);
26024 return Py_BuildValue((char *)"");
26025 }
26026 static PyObject *_wrap_new_DropTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
26027 PyObject *resultobj;
26028 wxDataObject *arg1 = (wxDataObject *) NULL ;
26029 wxPyDropTarget *result;
26030 PyObject * obj0 = 0 ;
26031 char *kwnames[] = {
26032 (char *) "dataObject", NULL
26033 };
26034
26035 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_DropTarget",kwnames,&obj0)) goto fail;
26036 if (obj0) {
26037 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
26038 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
26039 }
26040 {
26041 PyThreadState* __tstate = wxPyBeginAllowThreads();
26042 result = (wxPyDropTarget *)new wxPyDropTarget(arg1);
26043
26044 wxPyEndAllowThreads(__tstate);
26045 if (PyErr_Occurred()) SWIG_fail;
26046 }
26047 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDropTarget, 1);
26048 return resultobj;
26049 fail:
26050 return NULL;
26051 }
26052
26053
26054 static PyObject *_wrap_DropTarget__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
26055 PyObject *resultobj;
26056 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26057 PyObject *arg2 = (PyObject *) 0 ;
26058 PyObject *arg3 = (PyObject *) 0 ;
26059 PyObject * obj0 = 0 ;
26060 PyObject * obj1 = 0 ;
26061 PyObject * obj2 = 0 ;
26062 char *kwnames[] = {
26063 (char *) "self",(char *) "self",(char *) "_class", NULL
26064 };
26065
26066 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
26067 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26068 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26069 arg2 = obj1;
26070 arg3 = obj2;
26071 {
26072 PyThreadState* __tstate = wxPyBeginAllowThreads();
26073 (arg1)->_setCallbackInfo(arg2,arg3);
26074
26075 wxPyEndAllowThreads(__tstate);
26076 if (PyErr_Occurred()) SWIG_fail;
26077 }
26078 Py_INCREF(Py_None); resultobj = Py_None;
26079 return resultobj;
26080 fail:
26081 return NULL;
26082 }
26083
26084
26085 static PyObject *_wrap_delete_DropTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
26086 PyObject *resultobj;
26087 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26088 PyObject * obj0 = 0 ;
26089 char *kwnames[] = {
26090 (char *) "self", NULL
26091 };
26092
26093 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DropTarget",kwnames,&obj0)) goto fail;
26094 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26095 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26096 {
26097 PyThreadState* __tstate = wxPyBeginAllowThreads();
26098 delete arg1;
26099
26100 wxPyEndAllowThreads(__tstate);
26101 if (PyErr_Occurred()) SWIG_fail;
26102 }
26103 Py_INCREF(Py_None); resultobj = Py_None;
26104 return resultobj;
26105 fail:
26106 return NULL;
26107 }
26108
26109
26110 static PyObject *_wrap_DropTarget_GetDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
26111 PyObject *resultobj;
26112 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26113 wxDataObject *result;
26114 PyObject * obj0 = 0 ;
26115 char *kwnames[] = {
26116 (char *) "self", NULL
26117 };
26118
26119 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_GetDataObject",kwnames,&obj0)) goto fail;
26120 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26121 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26122 {
26123 PyThreadState* __tstate = wxPyBeginAllowThreads();
26124 result = (wxDataObject *)(arg1)->GetDataObject();
26125
26126 wxPyEndAllowThreads(__tstate);
26127 if (PyErr_Occurred()) SWIG_fail;
26128 }
26129 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObject, 0);
26130 return resultobj;
26131 fail:
26132 return NULL;
26133 }
26134
26135
26136 static PyObject *_wrap_DropTarget_SetDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
26137 PyObject *resultobj;
26138 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26139 wxDataObject *arg2 = (wxDataObject *) 0 ;
26140 PyObject * obj0 = 0 ;
26141 PyObject * obj1 = 0 ;
26142 char *kwnames[] = {
26143 (char *) "self",(char *) "dataObject", NULL
26144 };
26145
26146 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropTarget_SetDataObject",kwnames,&obj0,&obj1)) goto fail;
26147 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26148 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26149 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject,
26150 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
26151 {
26152 PyThreadState* __tstate = wxPyBeginAllowThreads();
26153 (arg1)->SetDataObject(arg2);
26154
26155 wxPyEndAllowThreads(__tstate);
26156 if (PyErr_Occurred()) SWIG_fail;
26157 }
26158 Py_INCREF(Py_None); resultobj = Py_None;
26159 return resultobj;
26160 fail:
26161 return NULL;
26162 }
26163
26164
26165 static PyObject *_wrap_DropTarget_base_OnEnter(PyObject *self, PyObject *args, PyObject *kwargs) {
26166 PyObject *resultobj;
26167 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26168 int arg2 ;
26169 int arg3 ;
26170 int arg4 ;
26171 int result;
26172 PyObject * obj0 = 0 ;
26173 PyObject * obj1 = 0 ;
26174 PyObject * obj2 = 0 ;
26175 PyObject * obj3 = 0 ;
26176 char *kwnames[] = {
26177 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26178 };
26179
26180 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropTarget_base_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26181 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26182 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26183 arg2 = (int) SWIG_AsInt(obj1);
26184 if (PyErr_Occurred()) SWIG_fail;
26185 arg3 = (int) SWIG_AsInt(obj2);
26186 if (PyErr_Occurred()) SWIG_fail;
26187 arg4 = (wxDragResult) SWIG_AsInt(obj3);
26188 if (PyErr_Occurred()) SWIG_fail;
26189 {
26190 PyThreadState* __tstate = wxPyBeginAllowThreads();
26191 result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4);
26192
26193 wxPyEndAllowThreads(__tstate);
26194 if (PyErr_Occurred()) SWIG_fail;
26195 }
26196 resultobj = SWIG_FromInt((int)result);
26197 return resultobj;
26198 fail:
26199 return NULL;
26200 }
26201
26202
26203 static PyObject *_wrap_DropTarget_base_OnDragOver(PyObject *self, PyObject *args, PyObject *kwargs) {
26204 PyObject *resultobj;
26205 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26206 int arg2 ;
26207 int arg3 ;
26208 int arg4 ;
26209 int result;
26210 PyObject * obj0 = 0 ;
26211 PyObject * obj1 = 0 ;
26212 PyObject * obj2 = 0 ;
26213 PyObject * obj3 = 0 ;
26214 char *kwnames[] = {
26215 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26216 };
26217
26218 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropTarget_base_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26219 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26220 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26221 arg2 = (int) SWIG_AsInt(obj1);
26222 if (PyErr_Occurred()) SWIG_fail;
26223 arg3 = (int) SWIG_AsInt(obj2);
26224 if (PyErr_Occurred()) SWIG_fail;
26225 arg4 = (wxDragResult) SWIG_AsInt(obj3);
26226 if (PyErr_Occurred()) SWIG_fail;
26227 {
26228 PyThreadState* __tstate = wxPyBeginAllowThreads();
26229 result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4);
26230
26231 wxPyEndAllowThreads(__tstate);
26232 if (PyErr_Occurred()) SWIG_fail;
26233 }
26234 resultobj = SWIG_FromInt((int)result);
26235 return resultobj;
26236 fail:
26237 return NULL;
26238 }
26239
26240
26241 static PyObject *_wrap_DropTarget_base_OnLeave(PyObject *self, PyObject *args, PyObject *kwargs) {
26242 PyObject *resultobj;
26243 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26244 PyObject * obj0 = 0 ;
26245 char *kwnames[] = {
26246 (char *) "self", NULL
26247 };
26248
26249 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_base_OnLeave",kwnames,&obj0)) goto fail;
26250 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26251 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26252 {
26253 PyThreadState* __tstate = wxPyBeginAllowThreads();
26254 (arg1)->base_OnLeave();
26255
26256 wxPyEndAllowThreads(__tstate);
26257 if (PyErr_Occurred()) SWIG_fail;
26258 }
26259 Py_INCREF(Py_None); resultobj = Py_None;
26260 return resultobj;
26261 fail:
26262 return NULL;
26263 }
26264
26265
26266 static PyObject *_wrap_DropTarget_base_OnDrop(PyObject *self, PyObject *args, PyObject *kwargs) {
26267 PyObject *resultobj;
26268 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26269 int arg2 ;
26270 int arg3 ;
26271 bool result;
26272 PyObject * obj0 = 0 ;
26273 PyObject * obj1 = 0 ;
26274 PyObject * obj2 = 0 ;
26275 char *kwnames[] = {
26276 (char *) "self",(char *) "x",(char *) "y", NULL
26277 };
26278
26279 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropTarget_base_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail;
26280 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26281 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26282 arg2 = (int) SWIG_AsInt(obj1);
26283 if (PyErr_Occurred()) SWIG_fail;
26284 arg3 = (int) SWIG_AsInt(obj2);
26285 if (PyErr_Occurred()) SWIG_fail;
26286 {
26287 PyThreadState* __tstate = wxPyBeginAllowThreads();
26288 result = (bool)(arg1)->base_OnDrop(arg2,arg3);
26289
26290 wxPyEndAllowThreads(__tstate);
26291 if (PyErr_Occurred()) SWIG_fail;
26292 }
26293 {
26294 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26295 }
26296 return resultobj;
26297 fail:
26298 return NULL;
26299 }
26300
26301
26302 static PyObject *_wrap_DropTarget_GetData(PyObject *self, PyObject *args, PyObject *kwargs) {
26303 PyObject *resultobj;
26304 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26305 bool result;
26306 PyObject * obj0 = 0 ;
26307 char *kwnames[] = {
26308 (char *) "self", NULL
26309 };
26310
26311 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_GetData",kwnames,&obj0)) goto fail;
26312 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26313 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26314 {
26315 PyThreadState* __tstate = wxPyBeginAllowThreads();
26316 result = (bool)(arg1)->GetData();
26317
26318 wxPyEndAllowThreads(__tstate);
26319 if (PyErr_Occurred()) SWIG_fail;
26320 }
26321 {
26322 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26323 }
26324 return resultobj;
26325 fail:
26326 return NULL;
26327 }
26328
26329
26330 static PyObject * DropTarget_swigregister(PyObject *self, PyObject *args) {
26331 PyObject *obj;
26332 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
26333 SWIG_TypeClientData(SWIGTYPE_p_wxPyDropTarget, obj);
26334 Py_INCREF(obj);
26335 return Py_BuildValue((char *)"");
26336 }
26337 static PyObject *_wrap_new_TextDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
26338 PyObject *resultobj;
26339 wxPyTextDropTarget *result;
26340 char *kwnames[] = {
26341 NULL
26342 };
26343
26344 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TextDropTarget",kwnames)) goto fail;
26345 {
26346 PyThreadState* __tstate = wxPyBeginAllowThreads();
26347 result = (wxPyTextDropTarget *)new wxPyTextDropTarget();
26348
26349 wxPyEndAllowThreads(__tstate);
26350 if (PyErr_Occurred()) SWIG_fail;
26351 }
26352 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTextDropTarget, 1);
26353 return resultobj;
26354 fail:
26355 return NULL;
26356 }
26357
26358
26359 static PyObject *_wrap_TextDropTarget__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
26360 PyObject *resultobj;
26361 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
26362 PyObject *arg2 = (PyObject *) 0 ;
26363 PyObject *arg3 = (PyObject *) 0 ;
26364 PyObject * obj0 = 0 ;
26365 PyObject * obj1 = 0 ;
26366 PyObject * obj2 = 0 ;
26367 char *kwnames[] = {
26368 (char *) "self",(char *) "self",(char *) "_class", NULL
26369 };
26370
26371 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextDropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
26372 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget,
26373 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26374 arg2 = obj1;
26375 arg3 = obj2;
26376 {
26377 PyThreadState* __tstate = wxPyBeginAllowThreads();
26378 (arg1)->_setCallbackInfo(arg2,arg3);
26379
26380 wxPyEndAllowThreads(__tstate);
26381 if (PyErr_Occurred()) SWIG_fail;
26382 }
26383 Py_INCREF(Py_None); resultobj = Py_None;
26384 return resultobj;
26385 fail:
26386 return NULL;
26387 }
26388
26389
26390 static PyObject *_wrap_TextDropTarget_base_OnEnter(PyObject *self, PyObject *args, PyObject *kwargs) {
26391 PyObject *resultobj;
26392 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
26393 int arg2 ;
26394 int arg3 ;
26395 int arg4 ;
26396 int result;
26397 PyObject * obj0 = 0 ;
26398 PyObject * obj1 = 0 ;
26399 PyObject * obj2 = 0 ;
26400 PyObject * obj3 = 0 ;
26401 char *kwnames[] = {
26402 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26403 };
26404
26405 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_base_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26406 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget,
26407 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26408 arg2 = (int) SWIG_AsInt(obj1);
26409 if (PyErr_Occurred()) SWIG_fail;
26410 arg3 = (int) SWIG_AsInt(obj2);
26411 if (PyErr_Occurred()) SWIG_fail;
26412 arg4 = (wxDragResult) SWIG_AsInt(obj3);
26413 if (PyErr_Occurred()) SWIG_fail;
26414 {
26415 PyThreadState* __tstate = wxPyBeginAllowThreads();
26416 result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4);
26417
26418 wxPyEndAllowThreads(__tstate);
26419 if (PyErr_Occurred()) SWIG_fail;
26420 }
26421 resultobj = SWIG_FromInt((int)result);
26422 return resultobj;
26423 fail:
26424 return NULL;
26425 }
26426
26427
26428 static PyObject *_wrap_TextDropTarget_base_OnDragOver(PyObject *self, PyObject *args, PyObject *kwargs) {
26429 PyObject *resultobj;
26430 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
26431 int arg2 ;
26432 int arg3 ;
26433 int arg4 ;
26434 int result;
26435 PyObject * obj0 = 0 ;
26436 PyObject * obj1 = 0 ;
26437 PyObject * obj2 = 0 ;
26438 PyObject * obj3 = 0 ;
26439 char *kwnames[] = {
26440 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26441 };
26442
26443 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_base_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26444 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget,
26445 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26446 arg2 = (int) SWIG_AsInt(obj1);
26447 if (PyErr_Occurred()) SWIG_fail;
26448 arg3 = (int) SWIG_AsInt(obj2);
26449 if (PyErr_Occurred()) SWIG_fail;
26450 arg4 = (wxDragResult) SWIG_AsInt(obj3);
26451 if (PyErr_Occurred()) SWIG_fail;
26452 {
26453 PyThreadState* __tstate = wxPyBeginAllowThreads();
26454 result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4);
26455
26456 wxPyEndAllowThreads(__tstate);
26457 if (PyErr_Occurred()) SWIG_fail;
26458 }
26459 resultobj = SWIG_FromInt((int)result);
26460 return resultobj;
26461 fail:
26462 return NULL;
26463 }
26464
26465
26466 static PyObject *_wrap_TextDropTarget_base_OnLeave(PyObject *self, PyObject *args, PyObject *kwargs) {
26467 PyObject *resultobj;
26468 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
26469 PyObject * obj0 = 0 ;
26470 char *kwnames[] = {
26471 (char *) "self", NULL
26472 };
26473
26474 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDropTarget_base_OnLeave",kwnames,&obj0)) goto fail;
26475 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget,
26476 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26477 {
26478 PyThreadState* __tstate = wxPyBeginAllowThreads();
26479 (arg1)->base_OnLeave();
26480
26481 wxPyEndAllowThreads(__tstate);
26482 if (PyErr_Occurred()) SWIG_fail;
26483 }
26484 Py_INCREF(Py_None); resultobj = Py_None;
26485 return resultobj;
26486 fail:
26487 return NULL;
26488 }
26489
26490
26491 static PyObject *_wrap_TextDropTarget_base_OnDrop(PyObject *self, PyObject *args, PyObject *kwargs) {
26492 PyObject *resultobj;
26493 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
26494 int arg2 ;
26495 int arg3 ;
26496 bool result;
26497 PyObject * obj0 = 0 ;
26498 PyObject * obj1 = 0 ;
26499 PyObject * obj2 = 0 ;
26500 char *kwnames[] = {
26501 (char *) "self",(char *) "x",(char *) "y", NULL
26502 };
26503
26504 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextDropTarget_base_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail;
26505 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget,
26506 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26507 arg2 = (int) SWIG_AsInt(obj1);
26508 if (PyErr_Occurred()) SWIG_fail;
26509 arg3 = (int) SWIG_AsInt(obj2);
26510 if (PyErr_Occurred()) SWIG_fail;
26511 {
26512 PyThreadState* __tstate = wxPyBeginAllowThreads();
26513 result = (bool)(arg1)->base_OnDrop(arg2,arg3);
26514
26515 wxPyEndAllowThreads(__tstate);
26516 if (PyErr_Occurred()) SWIG_fail;
26517 }
26518 {
26519 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26520 }
26521 return resultobj;
26522 fail:
26523 return NULL;
26524 }
26525
26526
26527 static PyObject *_wrap_TextDropTarget_base_OnData(PyObject *self, PyObject *args, PyObject *kwargs) {
26528 PyObject *resultobj;
26529 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
26530 int arg2 ;
26531 int arg3 ;
26532 int arg4 ;
26533 int result;
26534 PyObject * obj0 = 0 ;
26535 PyObject * obj1 = 0 ;
26536 PyObject * obj2 = 0 ;
26537 PyObject * obj3 = 0 ;
26538 char *kwnames[] = {
26539 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26540 };
26541
26542 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_base_OnData",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26543 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget,
26544 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26545 arg2 = (int) SWIG_AsInt(obj1);
26546 if (PyErr_Occurred()) SWIG_fail;
26547 arg3 = (int) SWIG_AsInt(obj2);
26548 if (PyErr_Occurred()) SWIG_fail;
26549 arg4 = (wxDragResult) SWIG_AsInt(obj3);
26550 if (PyErr_Occurred()) SWIG_fail;
26551 {
26552 PyThreadState* __tstate = wxPyBeginAllowThreads();
26553 result = (int)(arg1)->base_OnData(arg2,arg3,(wxDragResult )arg4);
26554
26555 wxPyEndAllowThreads(__tstate);
26556 if (PyErr_Occurred()) SWIG_fail;
26557 }
26558 resultobj = SWIG_FromInt((int)result);
26559 return resultobj;
26560 fail:
26561 return NULL;
26562 }
26563
26564
26565 static PyObject * TextDropTarget_swigregister(PyObject *self, PyObject *args) {
26566 PyObject *obj;
26567 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
26568 SWIG_TypeClientData(SWIGTYPE_p_wxPyTextDropTarget, obj);
26569 Py_INCREF(obj);
26570 return Py_BuildValue((char *)"");
26571 }
26572 static PyObject *_wrap_new_FileDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
26573 PyObject *resultobj;
26574 wxPyFileDropTarget *result;
26575 char *kwnames[] = {
26576 NULL
26577 };
26578
26579 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileDropTarget",kwnames)) goto fail;
26580 {
26581 PyThreadState* __tstate = wxPyBeginAllowThreads();
26582 result = (wxPyFileDropTarget *)new wxPyFileDropTarget();
26583
26584 wxPyEndAllowThreads(__tstate);
26585 if (PyErr_Occurred()) SWIG_fail;
26586 }
26587 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyFileDropTarget, 1);
26588 return resultobj;
26589 fail:
26590 return NULL;
26591 }
26592
26593
26594 static PyObject *_wrap_FileDropTarget__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
26595 PyObject *resultobj;
26596 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
26597 PyObject *arg2 = (PyObject *) 0 ;
26598 PyObject *arg3 = (PyObject *) 0 ;
26599 PyObject * obj0 = 0 ;
26600 PyObject * obj1 = 0 ;
26601 PyObject * obj2 = 0 ;
26602 char *kwnames[] = {
26603 (char *) "self",(char *) "self",(char *) "_class", NULL
26604 };
26605
26606 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileDropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
26607 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget,
26608 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26609 arg2 = obj1;
26610 arg3 = obj2;
26611 {
26612 PyThreadState* __tstate = wxPyBeginAllowThreads();
26613 (arg1)->_setCallbackInfo(arg2,arg3);
26614
26615 wxPyEndAllowThreads(__tstate);
26616 if (PyErr_Occurred()) SWIG_fail;
26617 }
26618 Py_INCREF(Py_None); resultobj = Py_None;
26619 return resultobj;
26620 fail:
26621 return NULL;
26622 }
26623
26624
26625 static PyObject *_wrap_FileDropTarget_base_OnEnter(PyObject *self, PyObject *args, PyObject *kwargs) {
26626 PyObject *resultobj;
26627 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
26628 int arg2 ;
26629 int arg3 ;
26630 int arg4 ;
26631 int result;
26632 PyObject * obj0 = 0 ;
26633 PyObject * obj1 = 0 ;
26634 PyObject * obj2 = 0 ;
26635 PyObject * obj3 = 0 ;
26636 char *kwnames[] = {
26637 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26638 };
26639
26640 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_base_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26641 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget,
26642 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26643 arg2 = (int) SWIG_AsInt(obj1);
26644 if (PyErr_Occurred()) SWIG_fail;
26645 arg3 = (int) SWIG_AsInt(obj2);
26646 if (PyErr_Occurred()) SWIG_fail;
26647 arg4 = (wxDragResult) SWIG_AsInt(obj3);
26648 if (PyErr_Occurred()) SWIG_fail;
26649 {
26650 PyThreadState* __tstate = wxPyBeginAllowThreads();
26651 result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4);
26652
26653 wxPyEndAllowThreads(__tstate);
26654 if (PyErr_Occurred()) SWIG_fail;
26655 }
26656 resultobj = SWIG_FromInt((int)result);
26657 return resultobj;
26658 fail:
26659 return NULL;
26660 }
26661
26662
26663 static PyObject *_wrap_FileDropTarget_base_OnDragOver(PyObject *self, PyObject *args, PyObject *kwargs) {
26664 PyObject *resultobj;
26665 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
26666 int arg2 ;
26667 int arg3 ;
26668 int arg4 ;
26669 int result;
26670 PyObject * obj0 = 0 ;
26671 PyObject * obj1 = 0 ;
26672 PyObject * obj2 = 0 ;
26673 PyObject * obj3 = 0 ;
26674 char *kwnames[] = {
26675 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26676 };
26677
26678 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_base_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26679 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget,
26680 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26681 arg2 = (int) SWIG_AsInt(obj1);
26682 if (PyErr_Occurred()) SWIG_fail;
26683 arg3 = (int) SWIG_AsInt(obj2);
26684 if (PyErr_Occurred()) SWIG_fail;
26685 arg4 = (wxDragResult) SWIG_AsInt(obj3);
26686 if (PyErr_Occurred()) SWIG_fail;
26687 {
26688 PyThreadState* __tstate = wxPyBeginAllowThreads();
26689 result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4);
26690
26691 wxPyEndAllowThreads(__tstate);
26692 if (PyErr_Occurred()) SWIG_fail;
26693 }
26694 resultobj = SWIG_FromInt((int)result);
26695 return resultobj;
26696 fail:
26697 return NULL;
26698 }
26699
26700
26701 static PyObject *_wrap_FileDropTarget_base_OnLeave(PyObject *self, PyObject *args, PyObject *kwargs) {
26702 PyObject *resultobj;
26703 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
26704 PyObject * obj0 = 0 ;
26705 char *kwnames[] = {
26706 (char *) "self", NULL
26707 };
26708
26709 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDropTarget_base_OnLeave",kwnames,&obj0)) goto fail;
26710 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget,
26711 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26712 {
26713 PyThreadState* __tstate = wxPyBeginAllowThreads();
26714 (arg1)->base_OnLeave();
26715
26716 wxPyEndAllowThreads(__tstate);
26717 if (PyErr_Occurred()) SWIG_fail;
26718 }
26719 Py_INCREF(Py_None); resultobj = Py_None;
26720 return resultobj;
26721 fail:
26722 return NULL;
26723 }
26724
26725
26726 static PyObject *_wrap_FileDropTarget_base_OnDrop(PyObject *self, PyObject *args, PyObject *kwargs) {
26727 PyObject *resultobj;
26728 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
26729 int arg2 ;
26730 int arg3 ;
26731 bool result;
26732 PyObject * obj0 = 0 ;
26733 PyObject * obj1 = 0 ;
26734 PyObject * obj2 = 0 ;
26735 char *kwnames[] = {
26736 (char *) "self",(char *) "x",(char *) "y", NULL
26737 };
26738
26739 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileDropTarget_base_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail;
26740 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget,
26741 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26742 arg2 = (int) SWIG_AsInt(obj1);
26743 if (PyErr_Occurred()) SWIG_fail;
26744 arg3 = (int) SWIG_AsInt(obj2);
26745 if (PyErr_Occurred()) SWIG_fail;
26746 {
26747 PyThreadState* __tstate = wxPyBeginAllowThreads();
26748 result = (bool)(arg1)->base_OnDrop(arg2,arg3);
26749
26750 wxPyEndAllowThreads(__tstate);
26751 if (PyErr_Occurred()) SWIG_fail;
26752 }
26753 {
26754 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26755 }
26756 return resultobj;
26757 fail:
26758 return NULL;
26759 }
26760
26761
26762 static PyObject *_wrap_FileDropTarget_base_OnData(PyObject *self, PyObject *args, PyObject *kwargs) {
26763 PyObject *resultobj;
26764 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
26765 int arg2 ;
26766 int arg3 ;
26767 int arg4 ;
26768 int result;
26769 PyObject * obj0 = 0 ;
26770 PyObject * obj1 = 0 ;
26771 PyObject * obj2 = 0 ;
26772 PyObject * obj3 = 0 ;
26773 char *kwnames[] = {
26774 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26775 };
26776
26777 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_base_OnData",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26778 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget,
26779 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26780 arg2 = (int) SWIG_AsInt(obj1);
26781 if (PyErr_Occurred()) SWIG_fail;
26782 arg3 = (int) SWIG_AsInt(obj2);
26783 if (PyErr_Occurred()) SWIG_fail;
26784 arg4 = (wxDragResult) SWIG_AsInt(obj3);
26785 if (PyErr_Occurred()) SWIG_fail;
26786 {
26787 PyThreadState* __tstate = wxPyBeginAllowThreads();
26788 result = (int)(arg1)->base_OnData(arg2,arg3,(wxDragResult )arg4);
26789
26790 wxPyEndAllowThreads(__tstate);
26791 if (PyErr_Occurred()) SWIG_fail;
26792 }
26793 resultobj = SWIG_FromInt((int)result);
26794 return resultobj;
26795 fail:
26796 return NULL;
26797 }
26798
26799
26800 static PyObject * FileDropTarget_swigregister(PyObject *self, PyObject *args) {
26801 PyObject *obj;
26802 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
26803 SWIG_TypeClientData(SWIGTYPE_p_wxPyFileDropTarget, obj);
26804 Py_INCREF(obj);
26805 return Py_BuildValue((char *)"");
26806 }
26807 static PyObject *_wrap_new_Clipboard(PyObject *self, PyObject *args, PyObject *kwargs) {
26808 PyObject *resultobj;
26809 wxClipboard *result;
26810 char *kwnames[] = {
26811 NULL
26812 };
26813
26814 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Clipboard",kwnames)) goto fail;
26815 {
26816 PyThreadState* __tstate = wxPyBeginAllowThreads();
26817 result = (wxClipboard *)new wxClipboard();
26818
26819 wxPyEndAllowThreads(__tstate);
26820 if (PyErr_Occurred()) SWIG_fail;
26821 }
26822 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClipboard, 1);
26823 return resultobj;
26824 fail:
26825 return NULL;
26826 }
26827
26828
26829 static PyObject *_wrap_delete_Clipboard(PyObject *self, PyObject *args, PyObject *kwargs) {
26830 PyObject *resultobj;
26831 wxClipboard *arg1 = (wxClipboard *) 0 ;
26832 PyObject * obj0 = 0 ;
26833 char *kwnames[] = {
26834 (char *) "self", NULL
26835 };
26836
26837 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Clipboard",kwnames,&obj0)) goto fail;
26838 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
26839 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26840 {
26841 PyThreadState* __tstate = wxPyBeginAllowThreads();
26842 delete arg1;
26843
26844 wxPyEndAllowThreads(__tstate);
26845 if (PyErr_Occurred()) SWIG_fail;
26846 }
26847 Py_INCREF(Py_None); resultobj = Py_None;
26848 return resultobj;
26849 fail:
26850 return NULL;
26851 }
26852
26853
26854 static PyObject *_wrap_Clipboard_Open(PyObject *self, PyObject *args, PyObject *kwargs) {
26855 PyObject *resultobj;
26856 wxClipboard *arg1 = (wxClipboard *) 0 ;
26857 bool result;
26858 PyObject * obj0 = 0 ;
26859 char *kwnames[] = {
26860 (char *) "self", NULL
26861 };
26862
26863 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Open",kwnames,&obj0)) goto fail;
26864 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
26865 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26866 {
26867 PyThreadState* __tstate = wxPyBeginAllowThreads();
26868 result = (bool)(arg1)->Open();
26869
26870 wxPyEndAllowThreads(__tstate);
26871 if (PyErr_Occurred()) SWIG_fail;
26872 }
26873 {
26874 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26875 }
26876 return resultobj;
26877 fail:
26878 return NULL;
26879 }
26880
26881
26882 static PyObject *_wrap_Clipboard_Close(PyObject *self, PyObject *args, PyObject *kwargs) {
26883 PyObject *resultobj;
26884 wxClipboard *arg1 = (wxClipboard *) 0 ;
26885 PyObject * obj0 = 0 ;
26886 char *kwnames[] = {
26887 (char *) "self", NULL
26888 };
26889
26890 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Close",kwnames,&obj0)) goto fail;
26891 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
26892 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26893 {
26894 PyThreadState* __tstate = wxPyBeginAllowThreads();
26895 (arg1)->Close();
26896
26897 wxPyEndAllowThreads(__tstate);
26898 if (PyErr_Occurred()) SWIG_fail;
26899 }
26900 Py_INCREF(Py_None); resultobj = Py_None;
26901 return resultobj;
26902 fail:
26903 return NULL;
26904 }
26905
26906
26907 static PyObject *_wrap_Clipboard_IsOpened(PyObject *self, PyObject *args, PyObject *kwargs) {
26908 PyObject *resultobj;
26909 wxClipboard *arg1 = (wxClipboard *) 0 ;
26910 bool result;
26911 PyObject * obj0 = 0 ;
26912 char *kwnames[] = {
26913 (char *) "self", NULL
26914 };
26915
26916 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_IsOpened",kwnames,&obj0)) goto fail;
26917 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
26918 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26919 {
26920 PyThreadState* __tstate = wxPyBeginAllowThreads();
26921 result = (bool)((wxClipboard const *)arg1)->IsOpened();
26922
26923 wxPyEndAllowThreads(__tstate);
26924 if (PyErr_Occurred()) SWIG_fail;
26925 }
26926 {
26927 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26928 }
26929 return resultobj;
26930 fail:
26931 return NULL;
26932 }
26933
26934
26935 static PyObject *_wrap_Clipboard_AddData(PyObject *self, PyObject *args, PyObject *kwargs) {
26936 PyObject *resultobj;
26937 wxClipboard *arg1 = (wxClipboard *) 0 ;
26938 wxDataObject *arg2 = (wxDataObject *) 0 ;
26939 bool result;
26940 PyObject * obj0 = 0 ;
26941 PyObject * obj1 = 0 ;
26942 char *kwnames[] = {
26943 (char *) "self",(char *) "data", NULL
26944 };
26945
26946 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_AddData",kwnames,&obj0,&obj1)) goto fail;
26947 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
26948 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26949 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject,
26950 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
26951 {
26952 PyThreadState* __tstate = wxPyBeginAllowThreads();
26953 result = (bool)(arg1)->AddData(arg2);
26954
26955 wxPyEndAllowThreads(__tstate);
26956 if (PyErr_Occurred()) SWIG_fail;
26957 }
26958 {
26959 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26960 }
26961 return resultobj;
26962 fail:
26963 return NULL;
26964 }
26965
26966
26967 static PyObject *_wrap_Clipboard_SetData(PyObject *self, PyObject *args, PyObject *kwargs) {
26968 PyObject *resultobj;
26969 wxClipboard *arg1 = (wxClipboard *) 0 ;
26970 wxDataObject *arg2 = (wxDataObject *) 0 ;
26971 bool result;
26972 PyObject * obj0 = 0 ;
26973 PyObject * obj1 = 0 ;
26974 char *kwnames[] = {
26975 (char *) "self",(char *) "data", NULL
26976 };
26977
26978 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_SetData",kwnames,&obj0,&obj1)) goto fail;
26979 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
26980 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26981 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject,
26982 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
26983 {
26984 PyThreadState* __tstate = wxPyBeginAllowThreads();
26985 result = (bool)(arg1)->SetData(arg2);
26986
26987 wxPyEndAllowThreads(__tstate);
26988 if (PyErr_Occurred()) SWIG_fail;
26989 }
26990 {
26991 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26992 }
26993 return resultobj;
26994 fail:
26995 return NULL;
26996 }
26997
26998
26999 static PyObject *_wrap_Clipboard_IsSupported(PyObject *self, PyObject *args, PyObject *kwargs) {
27000 PyObject *resultobj;
27001 wxClipboard *arg1 = (wxClipboard *) 0 ;
27002 wxDataFormat *arg2 = 0 ;
27003 bool result;
27004 PyObject * obj0 = 0 ;
27005 PyObject * obj1 = 0 ;
27006 char *kwnames[] = {
27007 (char *) "self",(char *) "format", NULL
27008 };
27009
27010 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_IsSupported",kwnames,&obj0,&obj1)) goto fail;
27011 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27012 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27013 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
27014 SWIG_POINTER_EXCEPTION | 0)) == -1)
27015 SWIG_fail;
27016 if (arg2 == NULL) {
27017 PyErr_SetString(PyExc_TypeError,"null reference");
27018 SWIG_fail;
27019 }
27020 {
27021 PyThreadState* __tstate = wxPyBeginAllowThreads();
27022 result = (bool)(arg1)->IsSupported((wxDataFormat const &)*arg2);
27023
27024 wxPyEndAllowThreads(__tstate);
27025 if (PyErr_Occurred()) SWIG_fail;
27026 }
27027 {
27028 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27029 }
27030 return resultobj;
27031 fail:
27032 return NULL;
27033 }
27034
27035
27036 static PyObject *_wrap_Clipboard_GetData(PyObject *self, PyObject *args, PyObject *kwargs) {
27037 PyObject *resultobj;
27038 wxClipboard *arg1 = (wxClipboard *) 0 ;
27039 wxDataObject *arg2 = 0 ;
27040 bool result;
27041 PyObject * obj0 = 0 ;
27042 PyObject * obj1 = 0 ;
27043 char *kwnames[] = {
27044 (char *) "self",(char *) "data", NULL
27045 };
27046
27047 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_GetData",kwnames,&obj0,&obj1)) goto fail;
27048 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27049 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27050 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject,
27051 SWIG_POINTER_EXCEPTION | 0)) == -1)
27052 SWIG_fail;
27053 if (arg2 == NULL) {
27054 PyErr_SetString(PyExc_TypeError,"null reference");
27055 SWIG_fail;
27056 }
27057 {
27058 PyThreadState* __tstate = wxPyBeginAllowThreads();
27059 result = (bool)(arg1)->GetData(*arg2);
27060
27061 wxPyEndAllowThreads(__tstate);
27062 if (PyErr_Occurred()) SWIG_fail;
27063 }
27064 {
27065 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27066 }
27067 return resultobj;
27068 fail:
27069 return NULL;
27070 }
27071
27072
27073 static PyObject *_wrap_Clipboard_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
27074 PyObject *resultobj;
27075 wxClipboard *arg1 = (wxClipboard *) 0 ;
27076 PyObject * obj0 = 0 ;
27077 char *kwnames[] = {
27078 (char *) "self", NULL
27079 };
27080
27081 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Clear",kwnames,&obj0)) goto fail;
27082 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27083 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27084 {
27085 PyThreadState* __tstate = wxPyBeginAllowThreads();
27086 (arg1)->Clear();
27087
27088 wxPyEndAllowThreads(__tstate);
27089 if (PyErr_Occurred()) SWIG_fail;
27090 }
27091 Py_INCREF(Py_None); resultobj = Py_None;
27092 return resultobj;
27093 fail:
27094 return NULL;
27095 }
27096
27097
27098 static PyObject *_wrap_Clipboard_Flush(PyObject *self, PyObject *args, PyObject *kwargs) {
27099 PyObject *resultobj;
27100 wxClipboard *arg1 = (wxClipboard *) 0 ;
27101 bool result;
27102 PyObject * obj0 = 0 ;
27103 char *kwnames[] = {
27104 (char *) "self", NULL
27105 };
27106
27107 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Flush",kwnames,&obj0)) goto fail;
27108 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27109 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27110 {
27111 PyThreadState* __tstate = wxPyBeginAllowThreads();
27112 result = (bool)(arg1)->Flush();
27113
27114 wxPyEndAllowThreads(__tstate);
27115 if (PyErr_Occurred()) SWIG_fail;
27116 }
27117 {
27118 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27119 }
27120 return resultobj;
27121 fail:
27122 return NULL;
27123 }
27124
27125
27126 static PyObject *_wrap_Clipboard_UsePrimarySelection(PyObject *self, PyObject *args, PyObject *kwargs) {
27127 PyObject *resultobj;
27128 wxClipboard *arg1 = (wxClipboard *) 0 ;
27129 bool arg2 = (bool) True ;
27130 PyObject * obj0 = 0 ;
27131 PyObject * obj1 = 0 ;
27132 char *kwnames[] = {
27133 (char *) "self",(char *) "primary", NULL
27134 };
27135
27136 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Clipboard_UsePrimarySelection",kwnames,&obj0,&obj1)) goto fail;
27137 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27138 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27139 if (obj1) {
27140 arg2 = (bool) SWIG_AsBool(obj1);
27141 if (PyErr_Occurred()) SWIG_fail;
27142 }
27143 {
27144 PyThreadState* __tstate = wxPyBeginAllowThreads();
27145 (arg1)->UsePrimarySelection(arg2);
27146
27147 wxPyEndAllowThreads(__tstate);
27148 if (PyErr_Occurred()) SWIG_fail;
27149 }
27150 Py_INCREF(Py_None); resultobj = Py_None;
27151 return resultobj;
27152 fail:
27153 return NULL;
27154 }
27155
27156
27157 static PyObject * Clipboard_swigregister(PyObject *self, PyObject *args) {
27158 PyObject *obj;
27159 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
27160 SWIG_TypeClientData(SWIGTYPE_p_wxClipboard, obj);
27161 Py_INCREF(obj);
27162 return Py_BuildValue((char *)"");
27163 }
27164 static int _wrap_TheClipboard_set(PyObject *_val) {
27165 PyErr_SetString(PyExc_TypeError,"Variable TheClipboard is read-only.");
27166 return 1;
27167 }
27168
27169
27170 static PyObject *_wrap_TheClipboard_get() {
27171 PyObject *pyobj;
27172
27173 pyobj = SWIG_NewPointerObj((void *)(wxTheClipboard), SWIGTYPE_p_wxClipboard, 0);
27174 return pyobj;
27175 }
27176
27177
27178 static PyObject *_wrap_new_ClipboardLocker(PyObject *self, PyObject *args, PyObject *kwargs) {
27179 PyObject *resultobj;
27180 wxClipboard *arg1 = (wxClipboard *) NULL ;
27181 wxClipboardLocker *result;
27182 PyObject * obj0 = 0 ;
27183 char *kwnames[] = {
27184 (char *) "clipboard", NULL
27185 };
27186
27187 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_ClipboardLocker",kwnames,&obj0)) goto fail;
27188 if (obj0) {
27189 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27190 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27191 }
27192 {
27193 PyThreadState* __tstate = wxPyBeginAllowThreads();
27194 result = (wxClipboardLocker *)new wxClipboardLocker(arg1);
27195
27196 wxPyEndAllowThreads(__tstate);
27197 if (PyErr_Occurred()) SWIG_fail;
27198 }
27199 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClipboardLocker, 1);
27200 return resultobj;
27201 fail:
27202 return NULL;
27203 }
27204
27205
27206 static PyObject *_wrap_delete_ClipboardLocker(PyObject *self, PyObject *args, PyObject *kwargs) {
27207 PyObject *resultobj;
27208 wxClipboardLocker *arg1 = (wxClipboardLocker *) 0 ;
27209 PyObject * obj0 = 0 ;
27210 char *kwnames[] = {
27211 (char *) "self", NULL
27212 };
27213
27214 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ClipboardLocker",kwnames,&obj0)) goto fail;
27215 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboardLocker,
27216 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27217 {
27218 PyThreadState* __tstate = wxPyBeginAllowThreads();
27219 delete arg1;
27220
27221 wxPyEndAllowThreads(__tstate);
27222 if (PyErr_Occurred()) SWIG_fail;
27223 }
27224 Py_INCREF(Py_None); resultobj = Py_None;
27225 return resultobj;
27226 fail:
27227 return NULL;
27228 }
27229
27230
27231 static PyObject *_wrap_ClipboardLocker___nonzero__(PyObject *self, PyObject *args, PyObject *kwargs) {
27232 PyObject *resultobj;
27233 wxClipboardLocker *arg1 = (wxClipboardLocker *) 0 ;
27234 bool result;
27235 PyObject * obj0 = 0 ;
27236 char *kwnames[] = {
27237 (char *) "self", NULL
27238 };
27239
27240 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ClipboardLocker___nonzero__",kwnames,&obj0)) goto fail;
27241 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboardLocker,
27242 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27243 {
27244 PyThreadState* __tstate = wxPyBeginAllowThreads();
27245 result = (bool)wxClipboardLocker___nonzero__(arg1);
27246
27247 wxPyEndAllowThreads(__tstate);
27248 if (PyErr_Occurred()) SWIG_fail;
27249 }
27250 {
27251 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27252 }
27253 return resultobj;
27254 fail:
27255 return NULL;
27256 }
27257
27258
27259 static PyObject * ClipboardLocker_swigregister(PyObject *self, PyObject *args) {
27260 PyObject *obj;
27261 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
27262 SWIG_TypeClientData(SWIGTYPE_p_wxClipboardLocker, obj);
27263 Py_INCREF(obj);
27264 return Py_BuildValue((char *)"");
27265 }
27266 static PyObject *_wrap_new_VideoMode(PyObject *self, PyObject *args, PyObject *kwargs) {
27267 PyObject *resultobj;
27268 int arg1 = (int) 0 ;
27269 int arg2 = (int) 0 ;
27270 int arg3 = (int) 0 ;
27271 int arg4 = (int) 0 ;
27272 wxVideoMode *result;
27273 PyObject * obj0 = 0 ;
27274 PyObject * obj1 = 0 ;
27275 PyObject * obj2 = 0 ;
27276 PyObject * obj3 = 0 ;
27277 char *kwnames[] = {
27278 (char *) "width",(char *) "height",(char *) "depth",(char *) "freq", NULL
27279 };
27280
27281 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_VideoMode",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
27282 if (obj0) {
27283 arg1 = (int) SWIG_AsInt(obj0);
27284 if (PyErr_Occurred()) SWIG_fail;
27285 }
27286 if (obj1) {
27287 arg2 = (int) SWIG_AsInt(obj1);
27288 if (PyErr_Occurred()) SWIG_fail;
27289 }
27290 if (obj2) {
27291 arg3 = (int) SWIG_AsInt(obj2);
27292 if (PyErr_Occurred()) SWIG_fail;
27293 }
27294 if (obj3) {
27295 arg4 = (int) SWIG_AsInt(obj3);
27296 if (PyErr_Occurred()) SWIG_fail;
27297 }
27298 {
27299 PyThreadState* __tstate = wxPyBeginAllowThreads();
27300 result = (wxVideoMode *)new wxVideoMode(arg1,arg2,arg3,arg4);
27301
27302 wxPyEndAllowThreads(__tstate);
27303 if (PyErr_Occurred()) SWIG_fail;
27304 }
27305 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxVideoMode, 1);
27306 return resultobj;
27307 fail:
27308 return NULL;
27309 }
27310
27311
27312 static PyObject *_wrap_delete_VideoMode(PyObject *self, PyObject *args, PyObject *kwargs) {
27313 PyObject *resultobj;
27314 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27315 PyObject * obj0 = 0 ;
27316 char *kwnames[] = {
27317 (char *) "self", NULL
27318 };
27319
27320 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_VideoMode",kwnames,&obj0)) goto fail;
27321 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27322 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27323 {
27324 PyThreadState* __tstate = wxPyBeginAllowThreads();
27325 delete arg1;
27326
27327 wxPyEndAllowThreads(__tstate);
27328 if (PyErr_Occurred()) SWIG_fail;
27329 }
27330 Py_INCREF(Py_None); resultobj = Py_None;
27331 return resultobj;
27332 fail:
27333 return NULL;
27334 }
27335
27336
27337 static PyObject *_wrap_VideoMode_Matches(PyObject *self, PyObject *args, PyObject *kwargs) {
27338 PyObject *resultobj;
27339 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27340 wxVideoMode *arg2 = 0 ;
27341 bool result;
27342 PyObject * obj0 = 0 ;
27343 PyObject * obj1 = 0 ;
27344 char *kwnames[] = {
27345 (char *) "self",(char *) "other", NULL
27346 };
27347
27348 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_Matches",kwnames,&obj0,&obj1)) goto fail;
27349 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27350 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27351 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode,
27352 SWIG_POINTER_EXCEPTION | 0)) == -1)
27353 SWIG_fail;
27354 if (arg2 == NULL) {
27355 PyErr_SetString(PyExc_TypeError,"null reference");
27356 SWIG_fail;
27357 }
27358 {
27359 PyThreadState* __tstate = wxPyBeginAllowThreads();
27360 result = (bool)((wxVideoMode const *)arg1)->Matches((wxVideoMode const &)*arg2);
27361
27362 wxPyEndAllowThreads(__tstate);
27363 if (PyErr_Occurred()) SWIG_fail;
27364 }
27365 {
27366 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27367 }
27368 return resultobj;
27369 fail:
27370 return NULL;
27371 }
27372
27373
27374 static PyObject *_wrap_VideoMode_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
27375 PyObject *resultobj;
27376 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27377 int result;
27378 PyObject * obj0 = 0 ;
27379 char *kwnames[] = {
27380 (char *) "self", NULL
27381 };
27382
27383 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_GetWidth",kwnames,&obj0)) goto fail;
27384 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27385 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27386 {
27387 PyThreadState* __tstate = wxPyBeginAllowThreads();
27388 result = (int)((wxVideoMode const *)arg1)->GetWidth();
27389
27390 wxPyEndAllowThreads(__tstate);
27391 if (PyErr_Occurred()) SWIG_fail;
27392 }
27393 resultobj = SWIG_FromInt((int)result);
27394 return resultobj;
27395 fail:
27396 return NULL;
27397 }
27398
27399
27400 static PyObject *_wrap_VideoMode_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
27401 PyObject *resultobj;
27402 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27403 int result;
27404 PyObject * obj0 = 0 ;
27405 char *kwnames[] = {
27406 (char *) "self", NULL
27407 };
27408
27409 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_GetHeight",kwnames,&obj0)) goto fail;
27410 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27411 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27412 {
27413 PyThreadState* __tstate = wxPyBeginAllowThreads();
27414 result = (int)((wxVideoMode const *)arg1)->GetHeight();
27415
27416 wxPyEndAllowThreads(__tstate);
27417 if (PyErr_Occurred()) SWIG_fail;
27418 }
27419 resultobj = SWIG_FromInt((int)result);
27420 return resultobj;
27421 fail:
27422 return NULL;
27423 }
27424
27425
27426 static PyObject *_wrap_VideoMode_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
27427 PyObject *resultobj;
27428 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27429 int result;
27430 PyObject * obj0 = 0 ;
27431 char *kwnames[] = {
27432 (char *) "self", NULL
27433 };
27434
27435 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_GetDepth",kwnames,&obj0)) goto fail;
27436 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27437 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27438 {
27439 PyThreadState* __tstate = wxPyBeginAllowThreads();
27440 result = (int)((wxVideoMode const *)arg1)->GetDepth();
27441
27442 wxPyEndAllowThreads(__tstate);
27443 if (PyErr_Occurred()) SWIG_fail;
27444 }
27445 resultobj = SWIG_FromInt((int)result);
27446 return resultobj;
27447 fail:
27448 return NULL;
27449 }
27450
27451
27452 static PyObject *_wrap_VideoMode_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
27453 PyObject *resultobj;
27454 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27455 bool result;
27456 PyObject * obj0 = 0 ;
27457 char *kwnames[] = {
27458 (char *) "self", NULL
27459 };
27460
27461 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_IsOk",kwnames,&obj0)) goto fail;
27462 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27463 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27464 {
27465 PyThreadState* __tstate = wxPyBeginAllowThreads();
27466 result = (bool)((wxVideoMode const *)arg1)->IsOk();
27467
27468 wxPyEndAllowThreads(__tstate);
27469 if (PyErr_Occurred()) SWIG_fail;
27470 }
27471 {
27472 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27473 }
27474 return resultobj;
27475 fail:
27476 return NULL;
27477 }
27478
27479
27480 static PyObject *_wrap_VideoMode___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
27481 PyObject *resultobj;
27482 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27483 wxVideoMode *arg2 = (wxVideoMode *) 0 ;
27484 bool result;
27485 PyObject * obj0 = 0 ;
27486 PyObject * obj1 = 0 ;
27487 char *kwnames[] = {
27488 (char *) "self",(char *) "other", NULL
27489 };
27490
27491 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode___eq__",kwnames,&obj0,&obj1)) goto fail;
27492 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27493 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27494 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode,
27495 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27496 {
27497 PyThreadState* __tstate = wxPyBeginAllowThreads();
27498 result = (bool)wxVideoMode___eq__(arg1,(wxVideoMode const *)arg2);
27499
27500 wxPyEndAllowThreads(__tstate);
27501 if (PyErr_Occurred()) SWIG_fail;
27502 }
27503 {
27504 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27505 }
27506 return resultobj;
27507 fail:
27508 return NULL;
27509 }
27510
27511
27512 static PyObject *_wrap_VideoMode___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
27513 PyObject *resultobj;
27514 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27515 wxVideoMode *arg2 = (wxVideoMode *) 0 ;
27516 bool result;
27517 PyObject * obj0 = 0 ;
27518 PyObject * obj1 = 0 ;
27519 char *kwnames[] = {
27520 (char *) "self",(char *) "other", NULL
27521 };
27522
27523 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode___ne__",kwnames,&obj0,&obj1)) goto fail;
27524 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27525 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27526 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode,
27527 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27528 {
27529 PyThreadState* __tstate = wxPyBeginAllowThreads();
27530 result = (bool)wxVideoMode___ne__(arg1,(wxVideoMode const *)arg2);
27531
27532 wxPyEndAllowThreads(__tstate);
27533 if (PyErr_Occurred()) SWIG_fail;
27534 }
27535 {
27536 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27537 }
27538 return resultobj;
27539 fail:
27540 return NULL;
27541 }
27542
27543
27544 static PyObject *_wrap_VideoMode_w_set(PyObject *self, PyObject *args, PyObject *kwargs) {
27545 PyObject *resultobj;
27546 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27547 int arg2 ;
27548 PyObject * obj0 = 0 ;
27549 PyObject * obj1 = 0 ;
27550 char *kwnames[] = {
27551 (char *) "self",(char *) "w", NULL
27552 };
27553
27554 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_w_set",kwnames,&obj0,&obj1)) goto fail;
27555 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27556 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27557 arg2 = (int) SWIG_AsInt(obj1);
27558 if (PyErr_Occurred()) SWIG_fail;
27559 if (arg1) (arg1)->w = arg2;
27560
27561 Py_INCREF(Py_None); resultobj = Py_None;
27562 return resultobj;
27563 fail:
27564 return NULL;
27565 }
27566
27567
27568 static PyObject *_wrap_VideoMode_w_get(PyObject *self, PyObject *args, PyObject *kwargs) {
27569 PyObject *resultobj;
27570 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27571 int result;
27572 PyObject * obj0 = 0 ;
27573 char *kwnames[] = {
27574 (char *) "self", NULL
27575 };
27576
27577 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_w_get",kwnames,&obj0)) goto fail;
27578 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27579 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27580 result = (int) ((arg1)->w);
27581
27582 resultobj = SWIG_FromInt((int)result);
27583 return resultobj;
27584 fail:
27585 return NULL;
27586 }
27587
27588
27589 static PyObject *_wrap_VideoMode_h_set(PyObject *self, PyObject *args, PyObject *kwargs) {
27590 PyObject *resultobj;
27591 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27592 int arg2 ;
27593 PyObject * obj0 = 0 ;
27594 PyObject * obj1 = 0 ;
27595 char *kwnames[] = {
27596 (char *) "self",(char *) "h", NULL
27597 };
27598
27599 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_h_set",kwnames,&obj0,&obj1)) goto fail;
27600 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27601 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27602 arg2 = (int) SWIG_AsInt(obj1);
27603 if (PyErr_Occurred()) SWIG_fail;
27604 if (arg1) (arg1)->h = arg2;
27605
27606 Py_INCREF(Py_None); resultobj = Py_None;
27607 return resultobj;
27608 fail:
27609 return NULL;
27610 }
27611
27612
27613 static PyObject *_wrap_VideoMode_h_get(PyObject *self, PyObject *args, PyObject *kwargs) {
27614 PyObject *resultobj;
27615 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27616 int result;
27617 PyObject * obj0 = 0 ;
27618 char *kwnames[] = {
27619 (char *) "self", NULL
27620 };
27621
27622 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_h_get",kwnames,&obj0)) goto fail;
27623 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27624 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27625 result = (int) ((arg1)->h);
27626
27627 resultobj = SWIG_FromInt((int)result);
27628 return resultobj;
27629 fail:
27630 return NULL;
27631 }
27632
27633
27634 static PyObject *_wrap_VideoMode_bpp_set(PyObject *self, PyObject *args, PyObject *kwargs) {
27635 PyObject *resultobj;
27636 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27637 int arg2 ;
27638 PyObject * obj0 = 0 ;
27639 PyObject * obj1 = 0 ;
27640 char *kwnames[] = {
27641 (char *) "self",(char *) "bpp", NULL
27642 };
27643
27644 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_bpp_set",kwnames,&obj0,&obj1)) goto fail;
27645 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27646 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27647 arg2 = (int) SWIG_AsInt(obj1);
27648 if (PyErr_Occurred()) SWIG_fail;
27649 if (arg1) (arg1)->bpp = arg2;
27650
27651 Py_INCREF(Py_None); resultobj = Py_None;
27652 return resultobj;
27653 fail:
27654 return NULL;
27655 }
27656
27657
27658 static PyObject *_wrap_VideoMode_bpp_get(PyObject *self, PyObject *args, PyObject *kwargs) {
27659 PyObject *resultobj;
27660 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27661 int result;
27662 PyObject * obj0 = 0 ;
27663 char *kwnames[] = {
27664 (char *) "self", NULL
27665 };
27666
27667 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_bpp_get",kwnames,&obj0)) goto fail;
27668 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27669 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27670 result = (int) ((arg1)->bpp);
27671
27672 resultobj = SWIG_FromInt((int)result);
27673 return resultobj;
27674 fail:
27675 return NULL;
27676 }
27677
27678
27679 static PyObject *_wrap_VideoMode_refresh_set(PyObject *self, PyObject *args, PyObject *kwargs) {
27680 PyObject *resultobj;
27681 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27682 int arg2 ;
27683 PyObject * obj0 = 0 ;
27684 PyObject * obj1 = 0 ;
27685 char *kwnames[] = {
27686 (char *) "self",(char *) "refresh", NULL
27687 };
27688
27689 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_refresh_set",kwnames,&obj0,&obj1)) goto fail;
27690 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27691 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27692 arg2 = (int) SWIG_AsInt(obj1);
27693 if (PyErr_Occurred()) SWIG_fail;
27694 if (arg1) (arg1)->refresh = arg2;
27695
27696 Py_INCREF(Py_None); resultobj = Py_None;
27697 return resultobj;
27698 fail:
27699 return NULL;
27700 }
27701
27702
27703 static PyObject *_wrap_VideoMode_refresh_get(PyObject *self, PyObject *args, PyObject *kwargs) {
27704 PyObject *resultobj;
27705 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27706 int result;
27707 PyObject * obj0 = 0 ;
27708 char *kwnames[] = {
27709 (char *) "self", NULL
27710 };
27711
27712 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_refresh_get",kwnames,&obj0)) goto fail;
27713 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27714 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27715 result = (int) ((arg1)->refresh);
27716
27717 resultobj = SWIG_FromInt((int)result);
27718 return resultobj;
27719 fail:
27720 return NULL;
27721 }
27722
27723
27724 static PyObject * VideoMode_swigregister(PyObject *self, PyObject *args) {
27725 PyObject *obj;
27726 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
27727 SWIG_TypeClientData(SWIGTYPE_p_wxVideoMode, obj);
27728 Py_INCREF(obj);
27729 return Py_BuildValue((char *)"");
27730 }
27731 static int _wrap_DefaultVideoMode_set(PyObject *_val) {
27732 PyErr_SetString(PyExc_TypeError,"Variable DefaultVideoMode is read-only.");
27733 return 1;
27734 }
27735
27736
27737 static PyObject *_wrap_DefaultVideoMode_get() {
27738 PyObject *pyobj;
27739
27740 pyobj = SWIG_NewPointerObj((void *)(&wxDefaultVideoMode), SWIGTYPE_p_wxVideoMode, 0);
27741 return pyobj;
27742 }
27743
27744
27745 static PyObject *_wrap_new_Display(PyObject *self, PyObject *args, PyObject *kwargs) {
27746 PyObject *resultobj;
27747 size_t arg1 = (size_t) 0 ;
27748 wxDisplay *result;
27749 PyObject * obj0 = 0 ;
27750 char *kwnames[] = {
27751 (char *) "index", NULL
27752 };
27753
27754 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Display",kwnames,&obj0)) goto fail;
27755 if (obj0) {
27756 arg1 = (size_t) SWIG_AsUnsignedLong(obj0);
27757 if (PyErr_Occurred()) SWIG_fail;
27758 }
27759 {
27760 PyThreadState* __tstate = wxPyBeginAllowThreads();
27761 result = (wxDisplay *)new wxDisplay(arg1);
27762
27763 wxPyEndAllowThreads(__tstate);
27764 if (PyErr_Occurred()) SWIG_fail;
27765 }
27766 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDisplay, 1);
27767 return resultobj;
27768 fail:
27769 return NULL;
27770 }
27771
27772
27773 static PyObject *_wrap_delete_Display(PyObject *self, PyObject *args, PyObject *kwargs) {
27774 PyObject *resultobj;
27775 wxDisplay *arg1 = (wxDisplay *) 0 ;
27776 PyObject * obj0 = 0 ;
27777 char *kwnames[] = {
27778 (char *) "self", NULL
27779 };
27780
27781 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Display",kwnames,&obj0)) goto fail;
27782 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
27783 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27784 {
27785 PyThreadState* __tstate = wxPyBeginAllowThreads();
27786 delete arg1;
27787
27788 wxPyEndAllowThreads(__tstate);
27789 if (PyErr_Occurred()) SWIG_fail;
27790 }
27791 Py_INCREF(Py_None); resultobj = Py_None;
27792 return resultobj;
27793 fail:
27794 return NULL;
27795 }
27796
27797
27798 static PyObject *_wrap_Display_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
27799 PyObject *resultobj;
27800 size_t result;
27801 char *kwnames[] = {
27802 NULL
27803 };
27804
27805 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Display_GetCount",kwnames)) goto fail;
27806 {
27807 PyThreadState* __tstate = wxPyBeginAllowThreads();
27808 result = (size_t)wxDisplay::GetCount();
27809
27810 wxPyEndAllowThreads(__tstate);
27811 if (PyErr_Occurred()) SWIG_fail;
27812 }
27813 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
27814 return resultobj;
27815 fail:
27816 return NULL;
27817 }
27818
27819
27820 static PyObject *_wrap_Display_GetFromPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
27821 PyObject *resultobj;
27822 wxPoint *arg1 = 0 ;
27823 int result;
27824 wxPoint temp1 ;
27825 PyObject * obj0 = 0 ;
27826 char *kwnames[] = {
27827 (char *) "pt", NULL
27828 };
27829
27830 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetFromPoint",kwnames,&obj0)) goto fail;
27831 {
27832 arg1 = &temp1;
27833 if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail;
27834 }
27835 {
27836 PyThreadState* __tstate = wxPyBeginAllowThreads();
27837 result = (int)wxDisplay::GetFromPoint((wxPoint const &)*arg1);
27838
27839 wxPyEndAllowThreads(__tstate);
27840 if (PyErr_Occurred()) SWIG_fail;
27841 }
27842 resultobj = SWIG_FromInt((int)result);
27843 return resultobj;
27844 fail:
27845 return NULL;
27846 }
27847
27848
27849 static PyObject *_wrap_Display_GetFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
27850 PyObject *resultobj;
27851 wxWindow *arg1 = (wxWindow *) 0 ;
27852 int result;
27853 PyObject * obj0 = 0 ;
27854 char *kwnames[] = {
27855 (char *) "window", NULL
27856 };
27857
27858 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetFromWindow",kwnames,&obj0)) goto fail;
27859 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27860 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27861 {
27862 PyThreadState* __tstate = wxPyBeginAllowThreads();
27863 result = (int)wxDisplay::GetFromWindow(arg1);
27864
27865 wxPyEndAllowThreads(__tstate);
27866 if (PyErr_Occurred()) SWIG_fail;
27867 }
27868 resultobj = SWIG_FromInt((int)result);
27869 return resultobj;
27870 fail:
27871 return NULL;
27872 }
27873
27874
27875 static PyObject *_wrap_Display_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
27876 PyObject *resultobj;
27877 wxDisplay *arg1 = (wxDisplay *) 0 ;
27878 bool result;
27879 PyObject * obj0 = 0 ;
27880 char *kwnames[] = {
27881 (char *) "self", NULL
27882 };
27883
27884 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_IsOk",kwnames,&obj0)) goto fail;
27885 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
27886 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27887 {
27888 PyThreadState* __tstate = wxPyBeginAllowThreads();
27889 result = (bool)((wxDisplay const *)arg1)->IsOk();
27890
27891 wxPyEndAllowThreads(__tstate);
27892 if (PyErr_Occurred()) SWIG_fail;
27893 }
27894 {
27895 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27896 }
27897 return resultobj;
27898 fail:
27899 return NULL;
27900 }
27901
27902
27903 static PyObject *_wrap_Display_GetGeometry(PyObject *self, PyObject *args, PyObject *kwargs) {
27904 PyObject *resultobj;
27905 wxDisplay *arg1 = (wxDisplay *) 0 ;
27906 wxRect result;
27907 PyObject * obj0 = 0 ;
27908 char *kwnames[] = {
27909 (char *) "self", NULL
27910 };
27911
27912 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetGeometry",kwnames,&obj0)) goto fail;
27913 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
27914 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27915 {
27916 PyThreadState* __tstate = wxPyBeginAllowThreads();
27917 result = ((wxDisplay const *)arg1)->GetGeometry();
27918
27919 wxPyEndAllowThreads(__tstate);
27920 if (PyErr_Occurred()) SWIG_fail;
27921 }
27922 {
27923 wxRect * resultptr;
27924 resultptr = new wxRect((wxRect &) result);
27925 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
27926 }
27927 return resultobj;
27928 fail:
27929 return NULL;
27930 }
27931
27932
27933 static PyObject *_wrap_Display_GetName(PyObject *self, PyObject *args, PyObject *kwargs) {
27934 PyObject *resultobj;
27935 wxDisplay *arg1 = (wxDisplay *) 0 ;
27936 wxString result;
27937 PyObject * obj0 = 0 ;
27938 char *kwnames[] = {
27939 (char *) "self", NULL
27940 };
27941
27942 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetName",kwnames,&obj0)) goto fail;
27943 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
27944 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27945 {
27946 PyThreadState* __tstate = wxPyBeginAllowThreads();
27947 result = ((wxDisplay const *)arg1)->GetName();
27948
27949 wxPyEndAllowThreads(__tstate);
27950 if (PyErr_Occurred()) SWIG_fail;
27951 }
27952 {
27953 #if wxUSE_UNICODE
27954 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
27955 #else
27956 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
27957 #endif
27958 }
27959 return resultobj;
27960 fail:
27961 return NULL;
27962 }
27963
27964
27965 static PyObject *_wrap_Display_IsPrimary(PyObject *self, PyObject *args, PyObject *kwargs) {
27966 PyObject *resultobj;
27967 wxDisplay *arg1 = (wxDisplay *) 0 ;
27968 bool result;
27969 PyObject * obj0 = 0 ;
27970 char *kwnames[] = {
27971 (char *) "self", NULL
27972 };
27973
27974 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_IsPrimary",kwnames,&obj0)) goto fail;
27975 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
27976 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27977 {
27978 PyThreadState* __tstate = wxPyBeginAllowThreads();
27979 result = (bool)((wxDisplay const *)arg1)->IsPrimary();
27980
27981 wxPyEndAllowThreads(__tstate);
27982 if (PyErr_Occurred()) SWIG_fail;
27983 }
27984 {
27985 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27986 }
27987 return resultobj;
27988 fail:
27989 return NULL;
27990 }
27991
27992
27993 static PyObject *_wrap_Display_GetModes(PyObject *self, PyObject *args, PyObject *kwargs) {
27994 PyObject *resultobj;
27995 wxDisplay *arg1 = (wxDisplay *) 0 ;
27996 wxVideoMode const &arg2_defvalue = wxDefaultVideoMode ;
27997 wxVideoMode *arg2 = (wxVideoMode *) &arg2_defvalue ;
27998 PyObject *result;
27999 PyObject * obj0 = 0 ;
28000 PyObject * obj1 = 0 ;
28001 char *kwnames[] = {
28002 (char *) "self",(char *) "mode", NULL
28003 };
28004
28005 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Display_GetModes",kwnames,&obj0,&obj1)) goto fail;
28006 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
28007 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28008 if (obj1) {
28009 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode,
28010 SWIG_POINTER_EXCEPTION | 0)) == -1)
28011 SWIG_fail;
28012 if (arg2 == NULL) {
28013 PyErr_SetString(PyExc_TypeError,"null reference");
28014 SWIG_fail;
28015 }
28016 }
28017 {
28018 PyThreadState* __tstate = wxPyBeginAllowThreads();
28019 result = (PyObject *)wxDisplay_GetModes(arg1,(wxVideoMode const &)*arg2);
28020
28021 wxPyEndAllowThreads(__tstate);
28022 if (PyErr_Occurred()) SWIG_fail;
28023 }
28024 resultobj = result;
28025 return resultobj;
28026 fail:
28027 return NULL;
28028 }
28029
28030
28031 static PyObject *_wrap_Display_GetCurrentMode(PyObject *self, PyObject *args, PyObject *kwargs) {
28032 PyObject *resultobj;
28033 wxDisplay *arg1 = (wxDisplay *) 0 ;
28034 wxVideoMode result;
28035 PyObject * obj0 = 0 ;
28036 char *kwnames[] = {
28037 (char *) "self", NULL
28038 };
28039
28040 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetCurrentMode",kwnames,&obj0)) goto fail;
28041 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
28042 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28043 {
28044 PyThreadState* __tstate = wxPyBeginAllowThreads();
28045 result = ((wxDisplay const *)arg1)->GetCurrentMode();
28046
28047 wxPyEndAllowThreads(__tstate);
28048 if (PyErr_Occurred()) SWIG_fail;
28049 }
28050 {
28051 wxVideoMode * resultptr;
28052 resultptr = new wxVideoMode((wxVideoMode &) result);
28053 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVideoMode, 1);
28054 }
28055 return resultobj;
28056 fail:
28057 return NULL;
28058 }
28059
28060
28061 static PyObject *_wrap_Display_ChangeMode(PyObject *self, PyObject *args, PyObject *kwargs) {
28062 PyObject *resultobj;
28063 wxDisplay *arg1 = (wxDisplay *) 0 ;
28064 wxVideoMode const &arg2_defvalue = wxDefaultVideoMode ;
28065 wxVideoMode *arg2 = (wxVideoMode *) &arg2_defvalue ;
28066 bool result;
28067 PyObject * obj0 = 0 ;
28068 PyObject * obj1 = 0 ;
28069 char *kwnames[] = {
28070 (char *) "self",(char *) "mode", NULL
28071 };
28072
28073 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Display_ChangeMode",kwnames,&obj0,&obj1)) goto fail;
28074 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
28075 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28076 if (obj1) {
28077 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode,
28078 SWIG_POINTER_EXCEPTION | 0)) == -1)
28079 SWIG_fail;
28080 if (arg2 == NULL) {
28081 PyErr_SetString(PyExc_TypeError,"null reference");
28082 SWIG_fail;
28083 }
28084 }
28085 {
28086 PyThreadState* __tstate = wxPyBeginAllowThreads();
28087 result = (bool)(arg1)->ChangeMode((wxVideoMode const &)*arg2);
28088
28089 wxPyEndAllowThreads(__tstate);
28090 if (PyErr_Occurred()) SWIG_fail;
28091 }
28092 {
28093 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28094 }
28095 return resultobj;
28096 fail:
28097 return NULL;
28098 }
28099
28100
28101 static PyObject *_wrap_Display_ResetMode(PyObject *self, PyObject *args, PyObject *kwargs) {
28102 PyObject *resultobj;
28103 wxDisplay *arg1 = (wxDisplay *) 0 ;
28104 PyObject * obj0 = 0 ;
28105 char *kwnames[] = {
28106 (char *) "self", NULL
28107 };
28108
28109 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_ResetMode",kwnames,&obj0)) goto fail;
28110 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
28111 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28112 {
28113 PyThreadState* __tstate = wxPyBeginAllowThreads();
28114 (arg1)->ResetMode();
28115
28116 wxPyEndAllowThreads(__tstate);
28117 if (PyErr_Occurred()) SWIG_fail;
28118 }
28119 Py_INCREF(Py_None); resultobj = Py_None;
28120 return resultobj;
28121 fail:
28122 return NULL;
28123 }
28124
28125
28126 static PyObject * Display_swigregister(PyObject *self, PyObject *args) {
28127 PyObject *obj;
28128 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
28129 SWIG_TypeClientData(SWIGTYPE_p_wxDisplay, obj);
28130 Py_INCREF(obj);
28131 return Py_BuildValue((char *)"");
28132 }
28133 static PyMethodDef SwigMethods[] = {
28134 { (char *)"SystemSettings_GetColour", (PyCFunction) _wrap_SystemSettings_GetColour, METH_VARARGS | METH_KEYWORDS },
28135 { (char *)"SystemSettings_GetFont", (PyCFunction) _wrap_SystemSettings_GetFont, METH_VARARGS | METH_KEYWORDS },
28136 { (char *)"SystemSettings_GetMetric", (PyCFunction) _wrap_SystemSettings_GetMetric, METH_VARARGS | METH_KEYWORDS },
28137 { (char *)"SystemSettings_HasFeature", (PyCFunction) _wrap_SystemSettings_HasFeature, METH_VARARGS | METH_KEYWORDS },
28138 { (char *)"SystemSettings_GetScreenType", (PyCFunction) _wrap_SystemSettings_GetScreenType, METH_VARARGS | METH_KEYWORDS },
28139 { (char *)"SystemSettings_SetScreenType", (PyCFunction) _wrap_SystemSettings_SetScreenType, METH_VARARGS | METH_KEYWORDS },
28140 { (char *)"SystemSettings_swigregister", SystemSettings_swigregister, METH_VARARGS },
28141 { (char *)"new_SystemOptions", (PyCFunction) _wrap_new_SystemOptions, METH_VARARGS | METH_KEYWORDS },
28142 { (char *)"SystemOptions_SetOption", (PyCFunction) _wrap_SystemOptions_SetOption, METH_VARARGS | METH_KEYWORDS },
28143 { (char *)"SystemOptions_SetOptionInt", (PyCFunction) _wrap_SystemOptions_SetOptionInt, METH_VARARGS | METH_KEYWORDS },
28144 { (char *)"SystemOptions_GetOption", (PyCFunction) _wrap_SystemOptions_GetOption, METH_VARARGS | METH_KEYWORDS },
28145 { (char *)"SystemOptions_GetOptionInt", (PyCFunction) _wrap_SystemOptions_GetOptionInt, METH_VARARGS | METH_KEYWORDS },
28146 { (char *)"SystemOptions_HasOption", (PyCFunction) _wrap_SystemOptions_HasOption, METH_VARARGS | METH_KEYWORDS },
28147 { (char *)"SystemOptions_swigregister", SystemOptions_swigregister, METH_VARARGS },
28148 { (char *)"NewId", (PyCFunction) _wrap_NewId, METH_VARARGS | METH_KEYWORDS },
28149 { (char *)"RegisterId", (PyCFunction) _wrap_RegisterId, METH_VARARGS | METH_KEYWORDS },
28150 { (char *)"GetCurrentId", (PyCFunction) _wrap_GetCurrentId, METH_VARARGS | METH_KEYWORDS },
28151 { (char *)"Bell", (PyCFunction) _wrap_Bell, METH_VARARGS | METH_KEYWORDS },
28152 { (char *)"EndBusyCursor", (PyCFunction) _wrap_EndBusyCursor, METH_VARARGS | METH_KEYWORDS },
28153 { (char *)"GetElapsedTime", (PyCFunction) _wrap_GetElapsedTime, METH_VARARGS | METH_KEYWORDS },
28154 { (char *)"GetMousePosition", (PyCFunction) _wrap_GetMousePosition, METH_VARARGS | METH_KEYWORDS },
28155 { (char *)"IsBusy", (PyCFunction) _wrap_IsBusy, METH_VARARGS | METH_KEYWORDS },
28156 { (char *)"Now", (PyCFunction) _wrap_Now, METH_VARARGS | METH_KEYWORDS },
28157 { (char *)"Shell", (PyCFunction) _wrap_Shell, METH_VARARGS | METH_KEYWORDS },
28158 { (char *)"StartTimer", (PyCFunction) _wrap_StartTimer, METH_VARARGS | METH_KEYWORDS },
28159 { (char *)"GetOsVersion", (PyCFunction) _wrap_GetOsVersion, METH_VARARGS | METH_KEYWORDS },
28160 { (char *)"GetOsDescription", (PyCFunction) _wrap_GetOsDescription, METH_VARARGS | METH_KEYWORDS },
28161 { (char *)"GetFreeMemory", (PyCFunction) _wrap_GetFreeMemory, METH_VARARGS | METH_KEYWORDS },
28162 { (char *)"Shutdown", (PyCFunction) _wrap_Shutdown, METH_VARARGS | METH_KEYWORDS },
28163 { (char *)"Sleep", (PyCFunction) _wrap_Sleep, METH_VARARGS | METH_KEYWORDS },
28164 { (char *)"Usleep", (PyCFunction) _wrap_Usleep, METH_VARARGS | METH_KEYWORDS },
28165 { (char *)"EnableTopLevelWindows", (PyCFunction) _wrap_EnableTopLevelWindows, METH_VARARGS | METH_KEYWORDS },
28166 { (char *)"StripMenuCodes", (PyCFunction) _wrap_StripMenuCodes, METH_VARARGS | METH_KEYWORDS },
28167 { (char *)"GetEmailAddress", (PyCFunction) _wrap_GetEmailAddress, METH_VARARGS | METH_KEYWORDS },
28168 { (char *)"GetHostName", (PyCFunction) _wrap_GetHostName, METH_VARARGS | METH_KEYWORDS },
28169 { (char *)"GetFullHostName", (PyCFunction) _wrap_GetFullHostName, METH_VARARGS | METH_KEYWORDS },
28170 { (char *)"GetUserId", (PyCFunction) _wrap_GetUserId, METH_VARARGS | METH_KEYWORDS },
28171 { (char *)"GetUserName", (PyCFunction) _wrap_GetUserName, METH_VARARGS | METH_KEYWORDS },
28172 { (char *)"GetHomeDir", (PyCFunction) _wrap_GetHomeDir, METH_VARARGS | METH_KEYWORDS },
28173 { (char *)"GetUserHome", (PyCFunction) _wrap_GetUserHome, METH_VARARGS | METH_KEYWORDS },
28174 { (char *)"GetProcessId", (PyCFunction) _wrap_GetProcessId, METH_VARARGS | METH_KEYWORDS },
28175 { (char *)"Trap", (PyCFunction) _wrap_Trap, METH_VARARGS | METH_KEYWORDS },
28176 { (char *)"FileSelector", (PyCFunction) _wrap_FileSelector, METH_VARARGS | METH_KEYWORDS },
28177 { (char *)"LoadFileSelector", (PyCFunction) _wrap_LoadFileSelector, METH_VARARGS | METH_KEYWORDS },
28178 { (char *)"SaveFileSelector", (PyCFunction) _wrap_SaveFileSelector, METH_VARARGS | METH_KEYWORDS },
28179 { (char *)"DirSelector", (PyCFunction) _wrap_DirSelector, METH_VARARGS | METH_KEYWORDS },
28180 { (char *)"GetTextFromUser", (PyCFunction) _wrap_GetTextFromUser, METH_VARARGS | METH_KEYWORDS },
28181 { (char *)"GetPasswordFromUser", (PyCFunction) _wrap_GetPasswordFromUser, METH_VARARGS | METH_KEYWORDS },
28182 { (char *)"GetSingleChoice", (PyCFunction) _wrap_GetSingleChoice, METH_VARARGS | METH_KEYWORDS },
28183 { (char *)"GetSingleChoiceIndex", (PyCFunction) _wrap_GetSingleChoiceIndex, METH_VARARGS | METH_KEYWORDS },
28184 { (char *)"MessageBox", (PyCFunction) _wrap_MessageBox, METH_VARARGS | METH_KEYWORDS },
28185 { (char *)"GetNumberFromUser", (PyCFunction) _wrap_GetNumberFromUser, METH_VARARGS | METH_KEYWORDS },
28186 { (char *)"ColourDisplay", (PyCFunction) _wrap_ColourDisplay, METH_VARARGS | METH_KEYWORDS },
28187 { (char *)"DisplayDepth", (PyCFunction) _wrap_DisplayDepth, METH_VARARGS | METH_KEYWORDS },
28188 { (char *)"GetDisplayDepth", (PyCFunction) _wrap_GetDisplayDepth, METH_VARARGS | METH_KEYWORDS },
28189 { (char *)"DisplaySize", (PyCFunction) _wrap_DisplaySize, METH_VARARGS | METH_KEYWORDS },
28190 { (char *)"GetDisplaySize", (PyCFunction) _wrap_GetDisplaySize, METH_VARARGS | METH_KEYWORDS },
28191 { (char *)"DisplaySizeMM", (PyCFunction) _wrap_DisplaySizeMM, METH_VARARGS | METH_KEYWORDS },
28192 { (char *)"GetDisplaySizeMM", (PyCFunction) _wrap_GetDisplaySizeMM, METH_VARARGS | METH_KEYWORDS },
28193 { (char *)"ClientDisplayRect", (PyCFunction) _wrap_ClientDisplayRect, METH_VARARGS | METH_KEYWORDS },
28194 { (char *)"GetClientDisplayRect", (PyCFunction) _wrap_GetClientDisplayRect, METH_VARARGS | METH_KEYWORDS },
28195 { (char *)"SetCursor", (PyCFunction) _wrap_SetCursor, METH_VARARGS | METH_KEYWORDS },
28196 { (char *)"BeginBusyCursor", (PyCFunction) _wrap_BeginBusyCursor, METH_VARARGS | METH_KEYWORDS },
28197 { (char *)"GetActiveWindow", (PyCFunction) _wrap_GetActiveWindow, METH_VARARGS | METH_KEYWORDS },
28198 { (char *)"GenericFindWindowAtPoint", (PyCFunction) _wrap_GenericFindWindowAtPoint, METH_VARARGS | METH_KEYWORDS },
28199 { (char *)"FindWindowAtPoint", (PyCFunction) _wrap_FindWindowAtPoint, METH_VARARGS | METH_KEYWORDS },
28200 { (char *)"GetTopLevelParent", (PyCFunction) _wrap_GetTopLevelParent, METH_VARARGS | METH_KEYWORDS },
28201 { (char *)"GetKeyState", (PyCFunction) _wrap_GetKeyState, METH_VARARGS | METH_KEYWORDS },
28202 { (char *)"WakeUpMainThread", (PyCFunction) _wrap_WakeUpMainThread, METH_VARARGS | METH_KEYWORDS },
28203 { (char *)"MutexGuiEnter", (PyCFunction) _wrap_MutexGuiEnter, METH_VARARGS | METH_KEYWORDS },
28204 { (char *)"MutexGuiLeave", (PyCFunction) _wrap_MutexGuiLeave, METH_VARARGS | METH_KEYWORDS },
28205 { (char *)"new_MutexGuiLocker", (PyCFunction) _wrap_new_MutexGuiLocker, METH_VARARGS | METH_KEYWORDS },
28206 { (char *)"delete_MutexGuiLocker", (PyCFunction) _wrap_delete_MutexGuiLocker, METH_VARARGS | METH_KEYWORDS },
28207 { (char *)"MutexGuiLocker_swigregister", MutexGuiLocker_swigregister, METH_VARARGS },
28208 { (char *)"Thread_IsMain", (PyCFunction) _wrap_Thread_IsMain, METH_VARARGS | METH_KEYWORDS },
28209 { (char *)"new_ToolTip", (PyCFunction) _wrap_new_ToolTip, METH_VARARGS | METH_KEYWORDS },
28210 { (char *)"ToolTip_SetTip", (PyCFunction) _wrap_ToolTip_SetTip, METH_VARARGS | METH_KEYWORDS },
28211 { (char *)"ToolTip_GetTip", (PyCFunction) _wrap_ToolTip_GetTip, METH_VARARGS | METH_KEYWORDS },
28212 { (char *)"ToolTip_GetWindow", (PyCFunction) _wrap_ToolTip_GetWindow, METH_VARARGS | METH_KEYWORDS },
28213 { (char *)"ToolTip_Enable", (PyCFunction) _wrap_ToolTip_Enable, METH_VARARGS | METH_KEYWORDS },
28214 { (char *)"ToolTip_SetDelay", (PyCFunction) _wrap_ToolTip_SetDelay, METH_VARARGS | METH_KEYWORDS },
28215 { (char *)"ToolTip_swigregister", ToolTip_swigregister, METH_VARARGS },
28216 { (char *)"new_Caret", (PyCFunction) _wrap_new_Caret, METH_VARARGS | METH_KEYWORDS },
28217 { (char *)"delete_Caret", (PyCFunction) _wrap_delete_Caret, METH_VARARGS | METH_KEYWORDS },
28218 { (char *)"Caret_IsOk", (PyCFunction) _wrap_Caret_IsOk, METH_VARARGS | METH_KEYWORDS },
28219 { (char *)"Caret_IsVisible", (PyCFunction) _wrap_Caret_IsVisible, METH_VARARGS | METH_KEYWORDS },
28220 { (char *)"Caret_GetPosition", (PyCFunction) _wrap_Caret_GetPosition, METH_VARARGS | METH_KEYWORDS },
28221 { (char *)"Caret_GetPositionTuple", (PyCFunction) _wrap_Caret_GetPositionTuple, METH_VARARGS | METH_KEYWORDS },
28222 { (char *)"Caret_GetSize", (PyCFunction) _wrap_Caret_GetSize, METH_VARARGS | METH_KEYWORDS },
28223 { (char *)"Caret_GetSizeTuple", (PyCFunction) _wrap_Caret_GetSizeTuple, METH_VARARGS | METH_KEYWORDS },
28224 { (char *)"Caret_GetWindow", (PyCFunction) _wrap_Caret_GetWindow, METH_VARARGS | METH_KEYWORDS },
28225 { (char *)"Caret_MoveXY", (PyCFunction) _wrap_Caret_MoveXY, METH_VARARGS | METH_KEYWORDS },
28226 { (char *)"Caret_Move", (PyCFunction) _wrap_Caret_Move, METH_VARARGS | METH_KEYWORDS },
28227 { (char *)"Caret_SetSizeWH", (PyCFunction) _wrap_Caret_SetSizeWH, METH_VARARGS | METH_KEYWORDS },
28228 { (char *)"Caret_SetSize", (PyCFunction) _wrap_Caret_SetSize, METH_VARARGS | METH_KEYWORDS },
28229 { (char *)"Caret_Show", (PyCFunction) _wrap_Caret_Show, METH_VARARGS | METH_KEYWORDS },
28230 { (char *)"Caret_Hide", (PyCFunction) _wrap_Caret_Hide, METH_VARARGS | METH_KEYWORDS },
28231 { (char *)"Caret_swigregister", Caret_swigregister, METH_VARARGS },
28232 { (char *)"Caret_GetBlinkTime", (PyCFunction) _wrap_Caret_GetBlinkTime, METH_VARARGS | METH_KEYWORDS },
28233 { (char *)"Caret_SetBlinkTime", (PyCFunction) _wrap_Caret_SetBlinkTime, METH_VARARGS | METH_KEYWORDS },
28234 { (char *)"new_BusyCursor", (PyCFunction) _wrap_new_BusyCursor, METH_VARARGS | METH_KEYWORDS },
28235 { (char *)"delete_BusyCursor", (PyCFunction) _wrap_delete_BusyCursor, METH_VARARGS | METH_KEYWORDS },
28236 { (char *)"BusyCursor_swigregister", BusyCursor_swigregister, METH_VARARGS },
28237 { (char *)"new_WindowDisabler", (PyCFunction) _wrap_new_WindowDisabler, METH_VARARGS | METH_KEYWORDS },
28238 { (char *)"delete_WindowDisabler", (PyCFunction) _wrap_delete_WindowDisabler, METH_VARARGS | METH_KEYWORDS },
28239 { (char *)"WindowDisabler_swigregister", WindowDisabler_swigregister, METH_VARARGS },
28240 { (char *)"new_BusyInfo", (PyCFunction) _wrap_new_BusyInfo, METH_VARARGS | METH_KEYWORDS },
28241 { (char *)"delete_BusyInfo", (PyCFunction) _wrap_delete_BusyInfo, METH_VARARGS | METH_KEYWORDS },
28242 { (char *)"BusyInfo_swigregister", BusyInfo_swigregister, METH_VARARGS },
28243 { (char *)"new_StopWatch", (PyCFunction) _wrap_new_StopWatch, METH_VARARGS | METH_KEYWORDS },
28244 { (char *)"StopWatch_Start", (PyCFunction) _wrap_StopWatch_Start, METH_VARARGS | METH_KEYWORDS },
28245 { (char *)"StopWatch_Pause", (PyCFunction) _wrap_StopWatch_Pause, METH_VARARGS | METH_KEYWORDS },
28246 { (char *)"StopWatch_Resume", (PyCFunction) _wrap_StopWatch_Resume, METH_VARARGS | METH_KEYWORDS },
28247 { (char *)"StopWatch_Time", (PyCFunction) _wrap_StopWatch_Time, METH_VARARGS | METH_KEYWORDS },
28248 { (char *)"StopWatch_swigregister", StopWatch_swigregister, METH_VARARGS },
28249 { (char *)"new_FileHistory", (PyCFunction) _wrap_new_FileHistory, METH_VARARGS | METH_KEYWORDS },
28250 { (char *)"delete_FileHistory", (PyCFunction) _wrap_delete_FileHistory, METH_VARARGS | METH_KEYWORDS },
28251 { (char *)"FileHistory_AddFileToHistory", (PyCFunction) _wrap_FileHistory_AddFileToHistory, METH_VARARGS | METH_KEYWORDS },
28252 { (char *)"FileHistory_RemoveFileFromHistory", (PyCFunction) _wrap_FileHistory_RemoveFileFromHistory, METH_VARARGS | METH_KEYWORDS },
28253 { (char *)"FileHistory_GetMaxFiles", (PyCFunction) _wrap_FileHistory_GetMaxFiles, METH_VARARGS | METH_KEYWORDS },
28254 { (char *)"FileHistory_UseMenu", (PyCFunction) _wrap_FileHistory_UseMenu, METH_VARARGS | METH_KEYWORDS },
28255 { (char *)"FileHistory_RemoveMenu", (PyCFunction) _wrap_FileHistory_RemoveMenu, METH_VARARGS | METH_KEYWORDS },
28256 { (char *)"FileHistory_Load", (PyCFunction) _wrap_FileHistory_Load, METH_VARARGS | METH_KEYWORDS },
28257 { (char *)"FileHistory_Save", (PyCFunction) _wrap_FileHistory_Save, METH_VARARGS | METH_KEYWORDS },
28258 { (char *)"FileHistory_AddFilesToMenu", (PyCFunction) _wrap_FileHistory_AddFilesToMenu, METH_VARARGS | METH_KEYWORDS },
28259 { (char *)"FileHistory_AddFilesToThisMenu", (PyCFunction) _wrap_FileHistory_AddFilesToThisMenu, METH_VARARGS | METH_KEYWORDS },
28260 { (char *)"FileHistory_GetHistoryFile", (PyCFunction) _wrap_FileHistory_GetHistoryFile, METH_VARARGS | METH_KEYWORDS },
28261 { (char *)"FileHistory_GetCount", (PyCFunction) _wrap_FileHistory_GetCount, METH_VARARGS | METH_KEYWORDS },
28262 { (char *)"FileHistory_swigregister", FileHistory_swigregister, METH_VARARGS },
28263 { (char *)"new_SingleInstanceChecker", (PyCFunction) _wrap_new_SingleInstanceChecker, METH_VARARGS | METH_KEYWORDS },
28264 { (char *)"new_PreSingleInstanceChecker", (PyCFunction) _wrap_new_PreSingleInstanceChecker, METH_VARARGS | METH_KEYWORDS },
28265 { (char *)"delete_SingleInstanceChecker", (PyCFunction) _wrap_delete_SingleInstanceChecker, METH_VARARGS | METH_KEYWORDS },
28266 { (char *)"SingleInstanceChecker_Create", (PyCFunction) _wrap_SingleInstanceChecker_Create, METH_VARARGS | METH_KEYWORDS },
28267 { (char *)"SingleInstanceChecker_IsAnotherRunning", (PyCFunction) _wrap_SingleInstanceChecker_IsAnotherRunning, METH_VARARGS | METH_KEYWORDS },
28268 { (char *)"SingleInstanceChecker_swigregister", SingleInstanceChecker_swigregister, METH_VARARGS },
28269 { (char *)"DrawWindowOnDC", (PyCFunction) _wrap_DrawWindowOnDC, METH_VARARGS | METH_KEYWORDS },
28270 { (char *)"delete_TipProvider", (PyCFunction) _wrap_delete_TipProvider, METH_VARARGS | METH_KEYWORDS },
28271 { (char *)"TipProvider_GetTip", (PyCFunction) _wrap_TipProvider_GetTip, METH_VARARGS | METH_KEYWORDS },
28272 { (char *)"TipProvider_GetCurrentTip", (PyCFunction) _wrap_TipProvider_GetCurrentTip, METH_VARARGS | METH_KEYWORDS },
28273 { (char *)"TipProvider_PreprocessTip", (PyCFunction) _wrap_TipProvider_PreprocessTip, METH_VARARGS | METH_KEYWORDS },
28274 { (char *)"TipProvider_swigregister", TipProvider_swigregister, METH_VARARGS },
28275 { (char *)"new_PyTipProvider", (PyCFunction) _wrap_new_PyTipProvider, METH_VARARGS | METH_KEYWORDS },
28276 { (char *)"PyTipProvider__setCallbackInfo", (PyCFunction) _wrap_PyTipProvider__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
28277 { (char *)"PyTipProvider_swigregister", PyTipProvider_swigregister, METH_VARARGS },
28278 { (char *)"ShowTip", (PyCFunction) _wrap_ShowTip, METH_VARARGS | METH_KEYWORDS },
28279 { (char *)"CreateFileTipProvider", (PyCFunction) _wrap_CreateFileTipProvider, METH_VARARGS | METH_KEYWORDS },
28280 { (char *)"new_Timer", (PyCFunction) _wrap_new_Timer, METH_VARARGS | METH_KEYWORDS },
28281 { (char *)"delete_Timer", (PyCFunction) _wrap_delete_Timer, METH_VARARGS | METH_KEYWORDS },
28282 { (char *)"Timer__setCallbackInfo", (PyCFunction) _wrap_Timer__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
28283 { (char *)"Timer_SetOwner", (PyCFunction) _wrap_Timer_SetOwner, METH_VARARGS | METH_KEYWORDS },
28284 { (char *)"Timer_GetOwner", (PyCFunction) _wrap_Timer_GetOwner, METH_VARARGS | METH_KEYWORDS },
28285 { (char *)"Timer_Start", (PyCFunction) _wrap_Timer_Start, METH_VARARGS | METH_KEYWORDS },
28286 { (char *)"Timer_Stop", (PyCFunction) _wrap_Timer_Stop, METH_VARARGS | METH_KEYWORDS },
28287 { (char *)"Timer_IsRunning", (PyCFunction) _wrap_Timer_IsRunning, METH_VARARGS | METH_KEYWORDS },
28288 { (char *)"Timer_GetInterval", (PyCFunction) _wrap_Timer_GetInterval, METH_VARARGS | METH_KEYWORDS },
28289 { (char *)"Timer_IsOneShot", (PyCFunction) _wrap_Timer_IsOneShot, METH_VARARGS | METH_KEYWORDS },
28290 { (char *)"Timer_GetId", (PyCFunction) _wrap_Timer_GetId, METH_VARARGS | METH_KEYWORDS },
28291 { (char *)"Timer_swigregister", Timer_swigregister, METH_VARARGS },
28292 { (char *)"new_TimerEvent", (PyCFunction) _wrap_new_TimerEvent, METH_VARARGS | METH_KEYWORDS },
28293 { (char *)"TimerEvent_GetInterval", (PyCFunction) _wrap_TimerEvent_GetInterval, METH_VARARGS | METH_KEYWORDS },
28294 { (char *)"TimerEvent_swigregister", TimerEvent_swigregister, METH_VARARGS },
28295 { (char *)"new_TimerRunner", _wrap_new_TimerRunner, METH_VARARGS },
28296 { (char *)"delete_TimerRunner", (PyCFunction) _wrap_delete_TimerRunner, METH_VARARGS | METH_KEYWORDS },
28297 { (char *)"TimerRunner_Start", (PyCFunction) _wrap_TimerRunner_Start, METH_VARARGS | METH_KEYWORDS },
28298 { (char *)"TimerRunner_swigregister", TimerRunner_swigregister, METH_VARARGS },
28299 { (char *)"new_Log", (PyCFunction) _wrap_new_Log, METH_VARARGS | METH_KEYWORDS },
28300 { (char *)"Log_IsEnabled", (PyCFunction) _wrap_Log_IsEnabled, METH_VARARGS | METH_KEYWORDS },
28301 { (char *)"Log_EnableLogging", (PyCFunction) _wrap_Log_EnableLogging, METH_VARARGS | METH_KEYWORDS },
28302 { (char *)"Log_OnLog", (PyCFunction) _wrap_Log_OnLog, METH_VARARGS | METH_KEYWORDS },
28303 { (char *)"Log_Flush", (PyCFunction) _wrap_Log_Flush, METH_VARARGS | METH_KEYWORDS },
28304 { (char *)"Log_FlushActive", (PyCFunction) _wrap_Log_FlushActive, METH_VARARGS | METH_KEYWORDS },
28305 { (char *)"Log_GetActiveTarget", (PyCFunction) _wrap_Log_GetActiveTarget, METH_VARARGS | METH_KEYWORDS },
28306 { (char *)"Log_SetActiveTarget", (PyCFunction) _wrap_Log_SetActiveTarget, METH_VARARGS | METH_KEYWORDS },
28307 { (char *)"Log_Suspend", (PyCFunction) _wrap_Log_Suspend, METH_VARARGS | METH_KEYWORDS },
28308 { (char *)"Log_Resume", (PyCFunction) _wrap_Log_Resume, METH_VARARGS | METH_KEYWORDS },
28309 { (char *)"Log_SetVerbose", (PyCFunction) _wrap_Log_SetVerbose, METH_VARARGS | METH_KEYWORDS },
28310 { (char *)"Log_SetLogLevel", (PyCFunction) _wrap_Log_SetLogLevel, METH_VARARGS | METH_KEYWORDS },
28311 { (char *)"Log_DontCreateOnDemand", (PyCFunction) _wrap_Log_DontCreateOnDemand, METH_VARARGS | METH_KEYWORDS },
28312 { (char *)"Log_SetTraceMask", (PyCFunction) _wrap_Log_SetTraceMask, METH_VARARGS | METH_KEYWORDS },
28313 { (char *)"Log_AddTraceMask", (PyCFunction) _wrap_Log_AddTraceMask, METH_VARARGS | METH_KEYWORDS },
28314 { (char *)"Log_RemoveTraceMask", (PyCFunction) _wrap_Log_RemoveTraceMask, METH_VARARGS | METH_KEYWORDS },
28315 { (char *)"Log_ClearTraceMasks", (PyCFunction) _wrap_Log_ClearTraceMasks, METH_VARARGS | METH_KEYWORDS },
28316 { (char *)"Log_GetTraceMasks", (PyCFunction) _wrap_Log_GetTraceMasks, METH_VARARGS | METH_KEYWORDS },
28317 { (char *)"Log_SetTimestamp", (PyCFunction) _wrap_Log_SetTimestamp, METH_VARARGS | METH_KEYWORDS },
28318 { (char *)"Log_GetVerbose", (PyCFunction) _wrap_Log_GetVerbose, METH_VARARGS | METH_KEYWORDS },
28319 { (char *)"Log_GetTraceMask", (PyCFunction) _wrap_Log_GetTraceMask, METH_VARARGS | METH_KEYWORDS },
28320 { (char *)"Log_IsAllowedTraceMask", (PyCFunction) _wrap_Log_IsAllowedTraceMask, METH_VARARGS | METH_KEYWORDS },
28321 { (char *)"Log_GetLogLevel", (PyCFunction) _wrap_Log_GetLogLevel, METH_VARARGS | METH_KEYWORDS },
28322 { (char *)"Log_GetTimestamp", (PyCFunction) _wrap_Log_GetTimestamp, METH_VARARGS | METH_KEYWORDS },
28323 { (char *)"Log_TimeStamp", (PyCFunction) _wrap_Log_TimeStamp, METH_VARARGS | METH_KEYWORDS },
28324 { (char *)"Log_Destroy", (PyCFunction) _wrap_Log_Destroy, METH_VARARGS | METH_KEYWORDS },
28325 { (char *)"Log_swigregister", Log_swigregister, METH_VARARGS },
28326 { (char *)"new_LogStderr", (PyCFunction) _wrap_new_LogStderr, METH_VARARGS | METH_KEYWORDS },
28327 { (char *)"LogStderr_swigregister", LogStderr_swigregister, METH_VARARGS },
28328 { (char *)"new_LogTextCtrl", (PyCFunction) _wrap_new_LogTextCtrl, METH_VARARGS | METH_KEYWORDS },
28329 { (char *)"LogTextCtrl_swigregister", LogTextCtrl_swigregister, METH_VARARGS },
28330 { (char *)"new_LogGui", (PyCFunction) _wrap_new_LogGui, METH_VARARGS | METH_KEYWORDS },
28331 { (char *)"LogGui_swigregister", LogGui_swigregister, METH_VARARGS },
28332 { (char *)"new_LogWindow", (PyCFunction) _wrap_new_LogWindow, METH_VARARGS | METH_KEYWORDS },
28333 { (char *)"LogWindow_Show", (PyCFunction) _wrap_LogWindow_Show, METH_VARARGS | METH_KEYWORDS },
28334 { (char *)"LogWindow_GetFrame", (PyCFunction) _wrap_LogWindow_GetFrame, METH_VARARGS | METH_KEYWORDS },
28335 { (char *)"LogWindow_GetOldLog", (PyCFunction) _wrap_LogWindow_GetOldLog, METH_VARARGS | METH_KEYWORDS },
28336 { (char *)"LogWindow_IsPassingMessages", (PyCFunction) _wrap_LogWindow_IsPassingMessages, METH_VARARGS | METH_KEYWORDS },
28337 { (char *)"LogWindow_PassMessages", (PyCFunction) _wrap_LogWindow_PassMessages, METH_VARARGS | METH_KEYWORDS },
28338 { (char *)"LogWindow_swigregister", LogWindow_swigregister, METH_VARARGS },
28339 { (char *)"new_LogChain", (PyCFunction) _wrap_new_LogChain, METH_VARARGS | METH_KEYWORDS },
28340 { (char *)"LogChain_SetLog", (PyCFunction) _wrap_LogChain_SetLog, METH_VARARGS | METH_KEYWORDS },
28341 { (char *)"LogChain_PassMessages", (PyCFunction) _wrap_LogChain_PassMessages, METH_VARARGS | METH_KEYWORDS },
28342 { (char *)"LogChain_IsPassingMessages", (PyCFunction) _wrap_LogChain_IsPassingMessages, METH_VARARGS | METH_KEYWORDS },
28343 { (char *)"LogChain_GetOldLog", (PyCFunction) _wrap_LogChain_GetOldLog, METH_VARARGS | METH_KEYWORDS },
28344 { (char *)"LogChain_swigregister", LogChain_swigregister, METH_VARARGS },
28345 { (char *)"SysErrorCode", (PyCFunction) _wrap_SysErrorCode, METH_VARARGS | METH_KEYWORDS },
28346 { (char *)"SysErrorMsg", (PyCFunction) _wrap_SysErrorMsg, METH_VARARGS | METH_KEYWORDS },
28347 { (char *)"LogFatalError", (PyCFunction) _wrap_LogFatalError, METH_VARARGS | METH_KEYWORDS },
28348 { (char *)"LogError", (PyCFunction) _wrap_LogError, METH_VARARGS | METH_KEYWORDS },
28349 { (char *)"LogWarning", (PyCFunction) _wrap_LogWarning, METH_VARARGS | METH_KEYWORDS },
28350 { (char *)"LogMessage", (PyCFunction) _wrap_LogMessage, METH_VARARGS | METH_KEYWORDS },
28351 { (char *)"LogInfo", (PyCFunction) _wrap_LogInfo, METH_VARARGS | METH_KEYWORDS },
28352 { (char *)"LogDebug", (PyCFunction) _wrap_LogDebug, METH_VARARGS | METH_KEYWORDS },
28353 { (char *)"LogVerbose", (PyCFunction) _wrap_LogVerbose, METH_VARARGS | METH_KEYWORDS },
28354 { (char *)"LogStatus", (PyCFunction) _wrap_LogStatus, METH_VARARGS | METH_KEYWORDS },
28355 { (char *)"LogStatusFrame", (PyCFunction) _wrap_LogStatusFrame, METH_VARARGS | METH_KEYWORDS },
28356 { (char *)"LogSysError", (PyCFunction) _wrap_LogSysError, METH_VARARGS | METH_KEYWORDS },
28357 { (char *)"LogTrace", _wrap_LogTrace, METH_VARARGS },
28358 { (char *)"LogGeneric", (PyCFunction) _wrap_LogGeneric, METH_VARARGS | METH_KEYWORDS },
28359 { (char *)"SafeShowMessage", (PyCFunction) _wrap_SafeShowMessage, METH_VARARGS | METH_KEYWORDS },
28360 { (char *)"new_LogNull", (PyCFunction) _wrap_new_LogNull, METH_VARARGS | METH_KEYWORDS },
28361 { (char *)"delete_LogNull", (PyCFunction) _wrap_delete_LogNull, METH_VARARGS | METH_KEYWORDS },
28362 { (char *)"LogNull_swigregister", LogNull_swigregister, METH_VARARGS },
28363 { (char *)"new_PyLog", (PyCFunction) _wrap_new_PyLog, METH_VARARGS | METH_KEYWORDS },
28364 { (char *)"PyLog__setCallbackInfo", (PyCFunction) _wrap_PyLog__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
28365 { (char *)"PyLog_swigregister", PyLog_swigregister, METH_VARARGS },
28366 { (char *)"Process_Kill", (PyCFunction) _wrap_Process_Kill, METH_VARARGS | METH_KEYWORDS },
28367 { (char *)"Process_Exists", (PyCFunction) _wrap_Process_Exists, METH_VARARGS | METH_KEYWORDS },
28368 { (char *)"Process_Open", (PyCFunction) _wrap_Process_Open, METH_VARARGS | METH_KEYWORDS },
28369 { (char *)"new_Process", (PyCFunction) _wrap_new_Process, METH_VARARGS | METH_KEYWORDS },
28370 { (char *)"Process__setCallbackInfo", (PyCFunction) _wrap_Process__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
28371 { (char *)"Process_base_OnTerminate", (PyCFunction) _wrap_Process_base_OnTerminate, METH_VARARGS | METH_KEYWORDS },
28372 { (char *)"Process_Redirect", (PyCFunction) _wrap_Process_Redirect, METH_VARARGS | METH_KEYWORDS },
28373 { (char *)"Process_IsRedirected", (PyCFunction) _wrap_Process_IsRedirected, METH_VARARGS | METH_KEYWORDS },
28374 { (char *)"Process_Detach", (PyCFunction) _wrap_Process_Detach, METH_VARARGS | METH_KEYWORDS },
28375 { (char *)"Process_GetInputStream", (PyCFunction) _wrap_Process_GetInputStream, METH_VARARGS | METH_KEYWORDS },
28376 { (char *)"Process_GetErrorStream", (PyCFunction) _wrap_Process_GetErrorStream, METH_VARARGS | METH_KEYWORDS },
28377 { (char *)"Process_GetOutputStream", (PyCFunction) _wrap_Process_GetOutputStream, METH_VARARGS | METH_KEYWORDS },
28378 { (char *)"Process_CloseOutput", (PyCFunction) _wrap_Process_CloseOutput, METH_VARARGS | METH_KEYWORDS },
28379 { (char *)"Process_IsInputOpened", (PyCFunction) _wrap_Process_IsInputOpened, METH_VARARGS | METH_KEYWORDS },
28380 { (char *)"Process_IsInputAvailable", (PyCFunction) _wrap_Process_IsInputAvailable, METH_VARARGS | METH_KEYWORDS },
28381 { (char *)"Process_IsErrorAvailable", (PyCFunction) _wrap_Process_IsErrorAvailable, METH_VARARGS | METH_KEYWORDS },
28382 { (char *)"Process_swigregister", Process_swigregister, METH_VARARGS },
28383 { (char *)"new_ProcessEvent", (PyCFunction) _wrap_new_ProcessEvent, METH_VARARGS | METH_KEYWORDS },
28384 { (char *)"ProcessEvent_GetPid", (PyCFunction) _wrap_ProcessEvent_GetPid, METH_VARARGS | METH_KEYWORDS },
28385 { (char *)"ProcessEvent_GetExitCode", (PyCFunction) _wrap_ProcessEvent_GetExitCode, METH_VARARGS | METH_KEYWORDS },
28386 { (char *)"ProcessEvent_m_pid_set", (PyCFunction) _wrap_ProcessEvent_m_pid_set, METH_VARARGS | METH_KEYWORDS },
28387 { (char *)"ProcessEvent_m_pid_get", (PyCFunction) _wrap_ProcessEvent_m_pid_get, METH_VARARGS | METH_KEYWORDS },
28388 { (char *)"ProcessEvent_m_exitcode_set", (PyCFunction) _wrap_ProcessEvent_m_exitcode_set, METH_VARARGS | METH_KEYWORDS },
28389 { (char *)"ProcessEvent_m_exitcode_get", (PyCFunction) _wrap_ProcessEvent_m_exitcode_get, METH_VARARGS | METH_KEYWORDS },
28390 { (char *)"ProcessEvent_swigregister", ProcessEvent_swigregister, METH_VARARGS },
28391 { (char *)"Execute", (PyCFunction) _wrap_Execute, METH_VARARGS | METH_KEYWORDS },
28392 { (char *)"new_Joystick", (PyCFunction) _wrap_new_Joystick, METH_VARARGS | METH_KEYWORDS },
28393 { (char *)"delete_Joystick", (PyCFunction) _wrap_delete_Joystick, METH_VARARGS | METH_KEYWORDS },
28394 { (char *)"Joystick_GetPosition", (PyCFunction) _wrap_Joystick_GetPosition, METH_VARARGS | METH_KEYWORDS },
28395 { (char *)"Joystick_GetZPosition", (PyCFunction) _wrap_Joystick_GetZPosition, METH_VARARGS | METH_KEYWORDS },
28396 { (char *)"Joystick_GetButtonState", (PyCFunction) _wrap_Joystick_GetButtonState, METH_VARARGS | METH_KEYWORDS },
28397 { (char *)"Joystick_GetPOVPosition", (PyCFunction) _wrap_Joystick_GetPOVPosition, METH_VARARGS | METH_KEYWORDS },
28398 { (char *)"Joystick_GetPOVCTSPosition", (PyCFunction) _wrap_Joystick_GetPOVCTSPosition, METH_VARARGS | METH_KEYWORDS },
28399 { (char *)"Joystick_GetRudderPosition", (PyCFunction) _wrap_Joystick_GetRudderPosition, METH_VARARGS | METH_KEYWORDS },
28400 { (char *)"Joystick_GetUPosition", (PyCFunction) _wrap_Joystick_GetUPosition, METH_VARARGS | METH_KEYWORDS },
28401 { (char *)"Joystick_GetVPosition", (PyCFunction) _wrap_Joystick_GetVPosition, METH_VARARGS | METH_KEYWORDS },
28402 { (char *)"Joystick_GetMovementThreshold", (PyCFunction) _wrap_Joystick_GetMovementThreshold, METH_VARARGS | METH_KEYWORDS },
28403 { (char *)"Joystick_SetMovementThreshold", (PyCFunction) _wrap_Joystick_SetMovementThreshold, METH_VARARGS | METH_KEYWORDS },
28404 { (char *)"Joystick_IsOk", (PyCFunction) _wrap_Joystick_IsOk, METH_VARARGS | METH_KEYWORDS },
28405 { (char *)"Joystick_GetNumberJoysticks", (PyCFunction) _wrap_Joystick_GetNumberJoysticks, METH_VARARGS | METH_KEYWORDS },
28406 { (char *)"Joystick_GetManufacturerId", (PyCFunction) _wrap_Joystick_GetManufacturerId, METH_VARARGS | METH_KEYWORDS },
28407 { (char *)"Joystick_GetProductId", (PyCFunction) _wrap_Joystick_GetProductId, METH_VARARGS | METH_KEYWORDS },
28408 { (char *)"Joystick_GetProductName", (PyCFunction) _wrap_Joystick_GetProductName, METH_VARARGS | METH_KEYWORDS },
28409 { (char *)"Joystick_GetXMin", (PyCFunction) _wrap_Joystick_GetXMin, METH_VARARGS | METH_KEYWORDS },
28410 { (char *)"Joystick_GetYMin", (PyCFunction) _wrap_Joystick_GetYMin, METH_VARARGS | METH_KEYWORDS },
28411 { (char *)"Joystick_GetZMin", (PyCFunction) _wrap_Joystick_GetZMin, METH_VARARGS | METH_KEYWORDS },
28412 { (char *)"Joystick_GetXMax", (PyCFunction) _wrap_Joystick_GetXMax, METH_VARARGS | METH_KEYWORDS },
28413 { (char *)"Joystick_GetYMax", (PyCFunction) _wrap_Joystick_GetYMax, METH_VARARGS | METH_KEYWORDS },
28414 { (char *)"Joystick_GetZMax", (PyCFunction) _wrap_Joystick_GetZMax, METH_VARARGS | METH_KEYWORDS },
28415 { (char *)"Joystick_GetNumberButtons", (PyCFunction) _wrap_Joystick_GetNumberButtons, METH_VARARGS | METH_KEYWORDS },
28416 { (char *)"Joystick_GetNumberAxes", (PyCFunction) _wrap_Joystick_GetNumberAxes, METH_VARARGS | METH_KEYWORDS },
28417 { (char *)"Joystick_GetMaxButtons", (PyCFunction) _wrap_Joystick_GetMaxButtons, METH_VARARGS | METH_KEYWORDS },
28418 { (char *)"Joystick_GetMaxAxes", (PyCFunction) _wrap_Joystick_GetMaxAxes, METH_VARARGS | METH_KEYWORDS },
28419 { (char *)"Joystick_GetPollingMin", (PyCFunction) _wrap_Joystick_GetPollingMin, METH_VARARGS | METH_KEYWORDS },
28420 { (char *)"Joystick_GetPollingMax", (PyCFunction) _wrap_Joystick_GetPollingMax, METH_VARARGS | METH_KEYWORDS },
28421 { (char *)"Joystick_GetRudderMin", (PyCFunction) _wrap_Joystick_GetRudderMin, METH_VARARGS | METH_KEYWORDS },
28422 { (char *)"Joystick_GetRudderMax", (PyCFunction) _wrap_Joystick_GetRudderMax, METH_VARARGS | METH_KEYWORDS },
28423 { (char *)"Joystick_GetUMin", (PyCFunction) _wrap_Joystick_GetUMin, METH_VARARGS | METH_KEYWORDS },
28424 { (char *)"Joystick_GetUMax", (PyCFunction) _wrap_Joystick_GetUMax, METH_VARARGS | METH_KEYWORDS },
28425 { (char *)"Joystick_GetVMin", (PyCFunction) _wrap_Joystick_GetVMin, METH_VARARGS | METH_KEYWORDS },
28426 { (char *)"Joystick_GetVMax", (PyCFunction) _wrap_Joystick_GetVMax, METH_VARARGS | METH_KEYWORDS },
28427 { (char *)"Joystick_HasRudder", (PyCFunction) _wrap_Joystick_HasRudder, METH_VARARGS | METH_KEYWORDS },
28428 { (char *)"Joystick_HasZ", (PyCFunction) _wrap_Joystick_HasZ, METH_VARARGS | METH_KEYWORDS },
28429 { (char *)"Joystick_HasU", (PyCFunction) _wrap_Joystick_HasU, METH_VARARGS | METH_KEYWORDS },
28430 { (char *)"Joystick_HasV", (PyCFunction) _wrap_Joystick_HasV, METH_VARARGS | METH_KEYWORDS },
28431 { (char *)"Joystick_HasPOV", (PyCFunction) _wrap_Joystick_HasPOV, METH_VARARGS | METH_KEYWORDS },
28432 { (char *)"Joystick_HasPOV4Dir", (PyCFunction) _wrap_Joystick_HasPOV4Dir, METH_VARARGS | METH_KEYWORDS },
28433 { (char *)"Joystick_HasPOVCTS", (PyCFunction) _wrap_Joystick_HasPOVCTS, METH_VARARGS | METH_KEYWORDS },
28434 { (char *)"Joystick_SetCapture", (PyCFunction) _wrap_Joystick_SetCapture, METH_VARARGS | METH_KEYWORDS },
28435 { (char *)"Joystick_ReleaseCapture", (PyCFunction) _wrap_Joystick_ReleaseCapture, METH_VARARGS | METH_KEYWORDS },
28436 { (char *)"Joystick_swigregister", Joystick_swigregister, METH_VARARGS },
28437 { (char *)"JoystickEvent_m_pos_set", (PyCFunction) _wrap_JoystickEvent_m_pos_set, METH_VARARGS | METH_KEYWORDS },
28438 { (char *)"JoystickEvent_m_pos_get", (PyCFunction) _wrap_JoystickEvent_m_pos_get, METH_VARARGS | METH_KEYWORDS },
28439 { (char *)"JoystickEvent_m_zPosition_set", (PyCFunction) _wrap_JoystickEvent_m_zPosition_set, METH_VARARGS | METH_KEYWORDS },
28440 { (char *)"JoystickEvent_m_zPosition_get", (PyCFunction) _wrap_JoystickEvent_m_zPosition_get, METH_VARARGS | METH_KEYWORDS },
28441 { (char *)"JoystickEvent_m_buttonChange_set", (PyCFunction) _wrap_JoystickEvent_m_buttonChange_set, METH_VARARGS | METH_KEYWORDS },
28442 { (char *)"JoystickEvent_m_buttonChange_get", (PyCFunction) _wrap_JoystickEvent_m_buttonChange_get, METH_VARARGS | METH_KEYWORDS },
28443 { (char *)"JoystickEvent_m_buttonState_set", (PyCFunction) _wrap_JoystickEvent_m_buttonState_set, METH_VARARGS | METH_KEYWORDS },
28444 { (char *)"JoystickEvent_m_buttonState_get", (PyCFunction) _wrap_JoystickEvent_m_buttonState_get, METH_VARARGS | METH_KEYWORDS },
28445 { (char *)"JoystickEvent_m_joyStick_set", (PyCFunction) _wrap_JoystickEvent_m_joyStick_set, METH_VARARGS | METH_KEYWORDS },
28446 { (char *)"JoystickEvent_m_joyStick_get", (PyCFunction) _wrap_JoystickEvent_m_joyStick_get, METH_VARARGS | METH_KEYWORDS },
28447 { (char *)"new_JoystickEvent", (PyCFunction) _wrap_new_JoystickEvent, METH_VARARGS | METH_KEYWORDS },
28448 { (char *)"JoystickEvent_GetPosition", (PyCFunction) _wrap_JoystickEvent_GetPosition, METH_VARARGS | METH_KEYWORDS },
28449 { (char *)"JoystickEvent_GetZPosition", (PyCFunction) _wrap_JoystickEvent_GetZPosition, METH_VARARGS | METH_KEYWORDS },
28450 { (char *)"JoystickEvent_GetButtonState", (PyCFunction) _wrap_JoystickEvent_GetButtonState, METH_VARARGS | METH_KEYWORDS },
28451 { (char *)"JoystickEvent_GetButtonChange", (PyCFunction) _wrap_JoystickEvent_GetButtonChange, METH_VARARGS | METH_KEYWORDS },
28452 { (char *)"JoystickEvent_GetJoystick", (PyCFunction) _wrap_JoystickEvent_GetJoystick, METH_VARARGS | METH_KEYWORDS },
28453 { (char *)"JoystickEvent_SetJoystick", (PyCFunction) _wrap_JoystickEvent_SetJoystick, METH_VARARGS | METH_KEYWORDS },
28454 { (char *)"JoystickEvent_SetButtonState", (PyCFunction) _wrap_JoystickEvent_SetButtonState, METH_VARARGS | METH_KEYWORDS },
28455 { (char *)"JoystickEvent_SetButtonChange", (PyCFunction) _wrap_JoystickEvent_SetButtonChange, METH_VARARGS | METH_KEYWORDS },
28456 { (char *)"JoystickEvent_SetPosition", (PyCFunction) _wrap_JoystickEvent_SetPosition, METH_VARARGS | METH_KEYWORDS },
28457 { (char *)"JoystickEvent_SetZPosition", (PyCFunction) _wrap_JoystickEvent_SetZPosition, METH_VARARGS | METH_KEYWORDS },
28458 { (char *)"JoystickEvent_IsButton", (PyCFunction) _wrap_JoystickEvent_IsButton, METH_VARARGS | METH_KEYWORDS },
28459 { (char *)"JoystickEvent_IsMove", (PyCFunction) _wrap_JoystickEvent_IsMove, METH_VARARGS | METH_KEYWORDS },
28460 { (char *)"JoystickEvent_IsZMove", (PyCFunction) _wrap_JoystickEvent_IsZMove, METH_VARARGS | METH_KEYWORDS },
28461 { (char *)"JoystickEvent_ButtonDown", (PyCFunction) _wrap_JoystickEvent_ButtonDown, METH_VARARGS | METH_KEYWORDS },
28462 { (char *)"JoystickEvent_ButtonUp", (PyCFunction) _wrap_JoystickEvent_ButtonUp, METH_VARARGS | METH_KEYWORDS },
28463 { (char *)"JoystickEvent_ButtonIsDown", (PyCFunction) _wrap_JoystickEvent_ButtonIsDown, METH_VARARGS | METH_KEYWORDS },
28464 { (char *)"JoystickEvent_swigregister", JoystickEvent_swigregister, METH_VARARGS },
28465 { (char *)"new_Sound", (PyCFunction) _wrap_new_Sound, METH_VARARGS | METH_KEYWORDS },
28466 { (char *)"new_SoundFromData", (PyCFunction) _wrap_new_SoundFromData, METH_VARARGS | METH_KEYWORDS },
28467 { (char *)"delete_Sound", (PyCFunction) _wrap_delete_Sound, METH_VARARGS | METH_KEYWORDS },
28468 { (char *)"Sound_Create", (PyCFunction) _wrap_Sound_Create, METH_VARARGS | METH_KEYWORDS },
28469 { (char *)"Sound_CreateFromData", (PyCFunction) _wrap_Sound_CreateFromData, METH_VARARGS | METH_KEYWORDS },
28470 { (char *)"Sound_IsOk", (PyCFunction) _wrap_Sound_IsOk, METH_VARARGS | METH_KEYWORDS },
28471 { (char *)"Sound_Play", (PyCFunction) _wrap_Sound_Play, METH_VARARGS | METH_KEYWORDS },
28472 { (char *)"Sound_PlaySound", (PyCFunction) _wrap_Sound_PlaySound, METH_VARARGS | METH_KEYWORDS },
28473 { (char *)"Sound_Stop", (PyCFunction) _wrap_Sound_Stop, METH_VARARGS | METH_KEYWORDS },
28474 { (char *)"Sound_swigregister", Sound_swigregister, METH_VARARGS },
28475 { (char *)"new_FileTypeInfo", (PyCFunction) _wrap_new_FileTypeInfo, METH_VARARGS | METH_KEYWORDS },
28476 { (char *)"new_FileTypeInfoSequence", (PyCFunction) _wrap_new_FileTypeInfoSequence, METH_VARARGS | METH_KEYWORDS },
28477 { (char *)"new_NullFileTypeInfo", (PyCFunction) _wrap_new_NullFileTypeInfo, METH_VARARGS | METH_KEYWORDS },
28478 { (char *)"FileTypeInfo_IsValid", (PyCFunction) _wrap_FileTypeInfo_IsValid, METH_VARARGS | METH_KEYWORDS },
28479 { (char *)"FileTypeInfo_SetIcon", (PyCFunction) _wrap_FileTypeInfo_SetIcon, METH_VARARGS | METH_KEYWORDS },
28480 { (char *)"FileTypeInfo_SetShortDesc", (PyCFunction) _wrap_FileTypeInfo_SetShortDesc, METH_VARARGS | METH_KEYWORDS },
28481 { (char *)"FileTypeInfo_GetMimeType", (PyCFunction) _wrap_FileTypeInfo_GetMimeType, METH_VARARGS | METH_KEYWORDS },
28482 { (char *)"FileTypeInfo_GetOpenCommand", (PyCFunction) _wrap_FileTypeInfo_GetOpenCommand, METH_VARARGS | METH_KEYWORDS },
28483 { (char *)"FileTypeInfo_GetPrintCommand", (PyCFunction) _wrap_FileTypeInfo_GetPrintCommand, METH_VARARGS | METH_KEYWORDS },
28484 { (char *)"FileTypeInfo_GetShortDesc", (PyCFunction) _wrap_FileTypeInfo_GetShortDesc, METH_VARARGS | METH_KEYWORDS },
28485 { (char *)"FileTypeInfo_GetDescription", (PyCFunction) _wrap_FileTypeInfo_GetDescription, METH_VARARGS | METH_KEYWORDS },
28486 { (char *)"FileTypeInfo_GetExtensions", (PyCFunction) _wrap_FileTypeInfo_GetExtensions, METH_VARARGS | METH_KEYWORDS },
28487 { (char *)"FileTypeInfo_GetExtensionsCount", (PyCFunction) _wrap_FileTypeInfo_GetExtensionsCount, METH_VARARGS | METH_KEYWORDS },
28488 { (char *)"FileTypeInfo_GetIconFile", (PyCFunction) _wrap_FileTypeInfo_GetIconFile, METH_VARARGS | METH_KEYWORDS },
28489 { (char *)"FileTypeInfo_GetIconIndex", (PyCFunction) _wrap_FileTypeInfo_GetIconIndex, METH_VARARGS | METH_KEYWORDS },
28490 { (char *)"FileTypeInfo_swigregister", FileTypeInfo_swigregister, METH_VARARGS },
28491 { (char *)"new_FileType", (PyCFunction) _wrap_new_FileType, METH_VARARGS | METH_KEYWORDS },
28492 { (char *)"delete_FileType", (PyCFunction) _wrap_delete_FileType, METH_VARARGS | METH_KEYWORDS },
28493 { (char *)"FileType_GetMimeType", (PyCFunction) _wrap_FileType_GetMimeType, METH_VARARGS | METH_KEYWORDS },
28494 { (char *)"FileType_GetMimeTypes", (PyCFunction) _wrap_FileType_GetMimeTypes, METH_VARARGS | METH_KEYWORDS },
28495 { (char *)"FileType_GetExtensions", (PyCFunction) _wrap_FileType_GetExtensions, METH_VARARGS | METH_KEYWORDS },
28496 { (char *)"FileType_GetIcon", (PyCFunction) _wrap_FileType_GetIcon, METH_VARARGS | METH_KEYWORDS },
28497 { (char *)"FileType_GetIconInfo", (PyCFunction) _wrap_FileType_GetIconInfo, METH_VARARGS | METH_KEYWORDS },
28498 { (char *)"FileType_GetDescription", (PyCFunction) _wrap_FileType_GetDescription, METH_VARARGS | METH_KEYWORDS },
28499 { (char *)"FileType_GetOpenCommand", (PyCFunction) _wrap_FileType_GetOpenCommand, METH_VARARGS | METH_KEYWORDS },
28500 { (char *)"FileType_GetPrintCommand", (PyCFunction) _wrap_FileType_GetPrintCommand, METH_VARARGS | METH_KEYWORDS },
28501 { (char *)"FileType_GetAllCommands", (PyCFunction) _wrap_FileType_GetAllCommands, METH_VARARGS | METH_KEYWORDS },
28502 { (char *)"FileType_SetCommand", (PyCFunction) _wrap_FileType_SetCommand, METH_VARARGS | METH_KEYWORDS },
28503 { (char *)"FileType_SetDefaultIcon", (PyCFunction) _wrap_FileType_SetDefaultIcon, METH_VARARGS | METH_KEYWORDS },
28504 { (char *)"FileType_Unassociate", (PyCFunction) _wrap_FileType_Unassociate, METH_VARARGS | METH_KEYWORDS },
28505 { (char *)"FileType_ExpandCommand", (PyCFunction) _wrap_FileType_ExpandCommand, METH_VARARGS | METH_KEYWORDS },
28506 { (char *)"FileType_swigregister", FileType_swigregister, METH_VARARGS },
28507 { (char *)"MimeTypesManager_IsOfType", (PyCFunction) _wrap_MimeTypesManager_IsOfType, METH_VARARGS | METH_KEYWORDS },
28508 { (char *)"new_MimeTypesManager", (PyCFunction) _wrap_new_MimeTypesManager, METH_VARARGS | METH_KEYWORDS },
28509 { (char *)"MimeTypesManager_Initialize", (PyCFunction) _wrap_MimeTypesManager_Initialize, METH_VARARGS | METH_KEYWORDS },
28510 { (char *)"MimeTypesManager_ClearData", (PyCFunction) _wrap_MimeTypesManager_ClearData, METH_VARARGS | METH_KEYWORDS },
28511 { (char *)"MimeTypesManager_GetFileTypeFromExtension", (PyCFunction) _wrap_MimeTypesManager_GetFileTypeFromExtension, METH_VARARGS | METH_KEYWORDS },
28512 { (char *)"MimeTypesManager_GetFileTypeFromMimeType", (PyCFunction) _wrap_MimeTypesManager_GetFileTypeFromMimeType, METH_VARARGS | METH_KEYWORDS },
28513 { (char *)"MimeTypesManager_ReadMailcap", (PyCFunction) _wrap_MimeTypesManager_ReadMailcap, METH_VARARGS | METH_KEYWORDS },
28514 { (char *)"MimeTypesManager_ReadMimeTypes", (PyCFunction) _wrap_MimeTypesManager_ReadMimeTypes, METH_VARARGS | METH_KEYWORDS },
28515 { (char *)"MimeTypesManager_EnumAllFileTypes", (PyCFunction) _wrap_MimeTypesManager_EnumAllFileTypes, METH_VARARGS | METH_KEYWORDS },
28516 { (char *)"MimeTypesManager_AddFallback", (PyCFunction) _wrap_MimeTypesManager_AddFallback, METH_VARARGS | METH_KEYWORDS },
28517 { (char *)"MimeTypesManager_Associate", (PyCFunction) _wrap_MimeTypesManager_Associate, METH_VARARGS | METH_KEYWORDS },
28518 { (char *)"MimeTypesManager_Unassociate", (PyCFunction) _wrap_MimeTypesManager_Unassociate, METH_VARARGS | METH_KEYWORDS },
28519 { (char *)"delete_MimeTypesManager", (PyCFunction) _wrap_delete_MimeTypesManager, METH_VARARGS | METH_KEYWORDS },
28520 { (char *)"MimeTypesManager_swigregister", MimeTypesManager_swigregister, METH_VARARGS },
28521 { (char *)"new_ArtProvider", (PyCFunction) _wrap_new_ArtProvider, METH_VARARGS | METH_KEYWORDS },
28522 { (char *)"ArtProvider__setCallbackInfo", (PyCFunction) _wrap_ArtProvider__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
28523 { (char *)"ArtProvider_PushProvider", (PyCFunction) _wrap_ArtProvider_PushProvider, METH_VARARGS | METH_KEYWORDS },
28524 { (char *)"ArtProvider_PopProvider", (PyCFunction) _wrap_ArtProvider_PopProvider, METH_VARARGS | METH_KEYWORDS },
28525 { (char *)"ArtProvider_RemoveProvider", (PyCFunction) _wrap_ArtProvider_RemoveProvider, METH_VARARGS | METH_KEYWORDS },
28526 { (char *)"ArtProvider_GetBitmap", (PyCFunction) _wrap_ArtProvider_GetBitmap, METH_VARARGS | METH_KEYWORDS },
28527 { (char *)"ArtProvider_GetIcon", (PyCFunction) _wrap_ArtProvider_GetIcon, METH_VARARGS | METH_KEYWORDS },
28528 { (char *)"ArtProvider_Destroy", (PyCFunction) _wrap_ArtProvider_Destroy, METH_VARARGS | METH_KEYWORDS },
28529 { (char *)"ArtProvider_swigregister", ArtProvider_swigregister, METH_VARARGS },
28530 { (char *)"delete_ConfigBase", (PyCFunction) _wrap_delete_ConfigBase, METH_VARARGS | METH_KEYWORDS },
28531 { (char *)"ConfigBase_Set", (PyCFunction) _wrap_ConfigBase_Set, METH_VARARGS | METH_KEYWORDS },
28532 { (char *)"ConfigBase_Get", (PyCFunction) _wrap_ConfigBase_Get, METH_VARARGS | METH_KEYWORDS },
28533 { (char *)"ConfigBase_Create", (PyCFunction) _wrap_ConfigBase_Create, METH_VARARGS | METH_KEYWORDS },
28534 { (char *)"ConfigBase_DontCreateOnDemand", (PyCFunction) _wrap_ConfigBase_DontCreateOnDemand, METH_VARARGS | METH_KEYWORDS },
28535 { (char *)"ConfigBase_SetPath", (PyCFunction) _wrap_ConfigBase_SetPath, METH_VARARGS | METH_KEYWORDS },
28536 { (char *)"ConfigBase_GetPath", (PyCFunction) _wrap_ConfigBase_GetPath, METH_VARARGS | METH_KEYWORDS },
28537 { (char *)"ConfigBase_GetFirstGroup", (PyCFunction) _wrap_ConfigBase_GetFirstGroup, METH_VARARGS | METH_KEYWORDS },
28538 { (char *)"ConfigBase_GetNextGroup", (PyCFunction) _wrap_ConfigBase_GetNextGroup, METH_VARARGS | METH_KEYWORDS },
28539 { (char *)"ConfigBase_GetFirstEntry", (PyCFunction) _wrap_ConfigBase_GetFirstEntry, METH_VARARGS | METH_KEYWORDS },
28540 { (char *)"ConfigBase_GetNextEntry", (PyCFunction) _wrap_ConfigBase_GetNextEntry, METH_VARARGS | METH_KEYWORDS },
28541 { (char *)"ConfigBase_GetNumberOfEntries", (PyCFunction) _wrap_ConfigBase_GetNumberOfEntries, METH_VARARGS | METH_KEYWORDS },
28542 { (char *)"ConfigBase_GetNumberOfGroups", (PyCFunction) _wrap_ConfigBase_GetNumberOfGroups, METH_VARARGS | METH_KEYWORDS },
28543 { (char *)"ConfigBase_HasGroup", (PyCFunction) _wrap_ConfigBase_HasGroup, METH_VARARGS | METH_KEYWORDS },
28544 { (char *)"ConfigBase_HasEntry", (PyCFunction) _wrap_ConfigBase_HasEntry, METH_VARARGS | METH_KEYWORDS },
28545 { (char *)"ConfigBase_Exists", (PyCFunction) _wrap_ConfigBase_Exists, METH_VARARGS | METH_KEYWORDS },
28546 { (char *)"ConfigBase_GetEntryType", (PyCFunction) _wrap_ConfigBase_GetEntryType, METH_VARARGS | METH_KEYWORDS },
28547 { (char *)"ConfigBase_Read", (PyCFunction) _wrap_ConfigBase_Read, METH_VARARGS | METH_KEYWORDS },
28548 { (char *)"ConfigBase_ReadInt", (PyCFunction) _wrap_ConfigBase_ReadInt, METH_VARARGS | METH_KEYWORDS },
28549 { (char *)"ConfigBase_ReadFloat", (PyCFunction) _wrap_ConfigBase_ReadFloat, METH_VARARGS | METH_KEYWORDS },
28550 { (char *)"ConfigBase_ReadBool", (PyCFunction) _wrap_ConfigBase_ReadBool, METH_VARARGS | METH_KEYWORDS },
28551 { (char *)"ConfigBase_Write", (PyCFunction) _wrap_ConfigBase_Write, METH_VARARGS | METH_KEYWORDS },
28552 { (char *)"ConfigBase_WriteInt", (PyCFunction) _wrap_ConfigBase_WriteInt, METH_VARARGS | METH_KEYWORDS },
28553 { (char *)"ConfigBase_WriteFloat", (PyCFunction) _wrap_ConfigBase_WriteFloat, METH_VARARGS | METH_KEYWORDS },
28554 { (char *)"ConfigBase_WriteBool", (PyCFunction) _wrap_ConfigBase_WriteBool, METH_VARARGS | METH_KEYWORDS },
28555 { (char *)"ConfigBase_Flush", (PyCFunction) _wrap_ConfigBase_Flush, METH_VARARGS | METH_KEYWORDS },
28556 { (char *)"ConfigBase_RenameEntry", (PyCFunction) _wrap_ConfigBase_RenameEntry, METH_VARARGS | METH_KEYWORDS },
28557 { (char *)"ConfigBase_RenameGroup", (PyCFunction) _wrap_ConfigBase_RenameGroup, METH_VARARGS | METH_KEYWORDS },
28558 { (char *)"ConfigBase_DeleteEntry", (PyCFunction) _wrap_ConfigBase_DeleteEntry, METH_VARARGS | METH_KEYWORDS },
28559 { (char *)"ConfigBase_DeleteGroup", (PyCFunction) _wrap_ConfigBase_DeleteGroup, METH_VARARGS | METH_KEYWORDS },
28560 { (char *)"ConfigBase_DeleteAll", (PyCFunction) _wrap_ConfigBase_DeleteAll, METH_VARARGS | METH_KEYWORDS },
28561 { (char *)"ConfigBase_SetExpandEnvVars", (PyCFunction) _wrap_ConfigBase_SetExpandEnvVars, METH_VARARGS | METH_KEYWORDS },
28562 { (char *)"ConfigBase_IsExpandingEnvVars", (PyCFunction) _wrap_ConfigBase_IsExpandingEnvVars, METH_VARARGS | METH_KEYWORDS },
28563 { (char *)"ConfigBase_SetRecordDefaults", (PyCFunction) _wrap_ConfigBase_SetRecordDefaults, METH_VARARGS | METH_KEYWORDS },
28564 { (char *)"ConfigBase_IsRecordingDefaults", (PyCFunction) _wrap_ConfigBase_IsRecordingDefaults, METH_VARARGS | METH_KEYWORDS },
28565 { (char *)"ConfigBase_ExpandEnvVars", (PyCFunction) _wrap_ConfigBase_ExpandEnvVars, METH_VARARGS | METH_KEYWORDS },
28566 { (char *)"ConfigBase_GetAppName", (PyCFunction) _wrap_ConfigBase_GetAppName, METH_VARARGS | METH_KEYWORDS },
28567 { (char *)"ConfigBase_GetVendorName", (PyCFunction) _wrap_ConfigBase_GetVendorName, METH_VARARGS | METH_KEYWORDS },
28568 { (char *)"ConfigBase_SetAppName", (PyCFunction) _wrap_ConfigBase_SetAppName, METH_VARARGS | METH_KEYWORDS },
28569 { (char *)"ConfigBase_SetVendorName", (PyCFunction) _wrap_ConfigBase_SetVendorName, METH_VARARGS | METH_KEYWORDS },
28570 { (char *)"ConfigBase_SetStyle", (PyCFunction) _wrap_ConfigBase_SetStyle, METH_VARARGS | METH_KEYWORDS },
28571 { (char *)"ConfigBase_GetStyle", (PyCFunction) _wrap_ConfigBase_GetStyle, METH_VARARGS | METH_KEYWORDS },
28572 { (char *)"ConfigBase_swigregister", ConfigBase_swigregister, METH_VARARGS },
28573 { (char *)"new_Config", (PyCFunction) _wrap_new_Config, METH_VARARGS | METH_KEYWORDS },
28574 { (char *)"delete_Config", (PyCFunction) _wrap_delete_Config, METH_VARARGS | METH_KEYWORDS },
28575 { (char *)"Config_swigregister", Config_swigregister, METH_VARARGS },
28576 { (char *)"new_FileConfig", (PyCFunction) _wrap_new_FileConfig, METH_VARARGS | METH_KEYWORDS },
28577 { (char *)"delete_FileConfig", (PyCFunction) _wrap_delete_FileConfig, METH_VARARGS | METH_KEYWORDS },
28578 { (char *)"FileConfig_swigregister", FileConfig_swigregister, METH_VARARGS },
28579 { (char *)"new_ConfigPathChanger", (PyCFunction) _wrap_new_ConfigPathChanger, METH_VARARGS | METH_KEYWORDS },
28580 { (char *)"delete_ConfigPathChanger", (PyCFunction) _wrap_delete_ConfigPathChanger, METH_VARARGS | METH_KEYWORDS },
28581 { (char *)"ConfigPathChanger_Name", (PyCFunction) _wrap_ConfigPathChanger_Name, METH_VARARGS | METH_KEYWORDS },
28582 { (char *)"ConfigPathChanger_swigregister", ConfigPathChanger_swigregister, METH_VARARGS },
28583 { (char *)"ExpandEnvVars", (PyCFunction) _wrap_ExpandEnvVars, METH_VARARGS | METH_KEYWORDS },
28584 { (char *)"DateTime_SetCountry", (PyCFunction) _wrap_DateTime_SetCountry, METH_VARARGS | METH_KEYWORDS },
28585 { (char *)"DateTime_GetCountry", (PyCFunction) _wrap_DateTime_GetCountry, METH_VARARGS | METH_KEYWORDS },
28586 { (char *)"DateTime_IsWestEuropeanCountry", (PyCFunction) _wrap_DateTime_IsWestEuropeanCountry, METH_VARARGS | METH_KEYWORDS },
28587 { (char *)"DateTime_GetCurrentYear", (PyCFunction) _wrap_DateTime_GetCurrentYear, METH_VARARGS | METH_KEYWORDS },
28588 { (char *)"DateTime_ConvertYearToBC", (PyCFunction) _wrap_DateTime_ConvertYearToBC, METH_VARARGS | METH_KEYWORDS },
28589 { (char *)"DateTime_GetCurrentMonth", (PyCFunction) _wrap_DateTime_GetCurrentMonth, METH_VARARGS | METH_KEYWORDS },
28590 { (char *)"DateTime_IsLeapYear", (PyCFunction) _wrap_DateTime_IsLeapYear, METH_VARARGS | METH_KEYWORDS },
28591 { (char *)"DateTime_GetCentury", (PyCFunction) _wrap_DateTime_GetCentury, METH_VARARGS | METH_KEYWORDS },
28592 { (char *)"DateTime_GetNumberOfDaysinYear", (PyCFunction) _wrap_DateTime_GetNumberOfDaysinYear, METH_VARARGS | METH_KEYWORDS },
28593 { (char *)"DateTime_GetNumberOfDaysInMonth", (PyCFunction) _wrap_DateTime_GetNumberOfDaysInMonth, METH_VARARGS | METH_KEYWORDS },
28594 { (char *)"DateTime_GetMonthName", (PyCFunction) _wrap_DateTime_GetMonthName, METH_VARARGS | METH_KEYWORDS },
28595 { (char *)"DateTime_GetWeekDayName", (PyCFunction) _wrap_DateTime_GetWeekDayName, METH_VARARGS | METH_KEYWORDS },
28596 { (char *)"DateTime_GetAmPmStrings", (PyCFunction) _wrap_DateTime_GetAmPmStrings, METH_VARARGS | METH_KEYWORDS },
28597 { (char *)"DateTime_IsDSTApplicable", (PyCFunction) _wrap_DateTime_IsDSTApplicable, METH_VARARGS | METH_KEYWORDS },
28598 { (char *)"DateTime_GetBeginDST", (PyCFunction) _wrap_DateTime_GetBeginDST, METH_VARARGS | METH_KEYWORDS },
28599 { (char *)"DateTime_GetEndDST", (PyCFunction) _wrap_DateTime_GetEndDST, METH_VARARGS | METH_KEYWORDS },
28600 { (char *)"DateTime_Now", (PyCFunction) _wrap_DateTime_Now, METH_VARARGS | METH_KEYWORDS },
28601 { (char *)"DateTime_UNow", (PyCFunction) _wrap_DateTime_UNow, METH_VARARGS | METH_KEYWORDS },
28602 { (char *)"DateTime_Today", (PyCFunction) _wrap_DateTime_Today, METH_VARARGS | METH_KEYWORDS },
28603 { (char *)"new_DateTime", (PyCFunction) _wrap_new_DateTime, METH_VARARGS | METH_KEYWORDS },
28604 { (char *)"new_DateTimeFromTimeT", (PyCFunction) _wrap_new_DateTimeFromTimeT, METH_VARARGS | METH_KEYWORDS },
28605 { (char *)"new_DateTimeFromJDN", (PyCFunction) _wrap_new_DateTimeFromJDN, METH_VARARGS | METH_KEYWORDS },
28606 { (char *)"new_DateTimeFromHMS", (PyCFunction) _wrap_new_DateTimeFromHMS, METH_VARARGS | METH_KEYWORDS },
28607 { (char *)"new_DateTimeFromDMY", (PyCFunction) _wrap_new_DateTimeFromDMY, METH_VARARGS | METH_KEYWORDS },
28608 { (char *)"delete_DateTime", (PyCFunction) _wrap_delete_DateTime, METH_VARARGS | METH_KEYWORDS },
28609 { (char *)"DateTime_SetToCurrent", (PyCFunction) _wrap_DateTime_SetToCurrent, METH_VARARGS | METH_KEYWORDS },
28610 { (char *)"DateTime_SetTimeT", (PyCFunction) _wrap_DateTime_SetTimeT, METH_VARARGS | METH_KEYWORDS },
28611 { (char *)"DateTime_SetJDN", (PyCFunction) _wrap_DateTime_SetJDN, METH_VARARGS | METH_KEYWORDS },
28612 { (char *)"DateTime_SetHMS", (PyCFunction) _wrap_DateTime_SetHMS, METH_VARARGS | METH_KEYWORDS },
28613 { (char *)"DateTime_Set", (PyCFunction) _wrap_DateTime_Set, METH_VARARGS | METH_KEYWORDS },
28614 { (char *)"DateTime_ResetTime", (PyCFunction) _wrap_DateTime_ResetTime, METH_VARARGS | METH_KEYWORDS },
28615 { (char *)"DateTime_SetYear", (PyCFunction) _wrap_DateTime_SetYear, METH_VARARGS | METH_KEYWORDS },
28616 { (char *)"DateTime_SetMonth", (PyCFunction) _wrap_DateTime_SetMonth, METH_VARARGS | METH_KEYWORDS },
28617 { (char *)"DateTime_SetDay", (PyCFunction) _wrap_DateTime_SetDay, METH_VARARGS | METH_KEYWORDS },
28618 { (char *)"DateTime_SetHour", (PyCFunction) _wrap_DateTime_SetHour, METH_VARARGS | METH_KEYWORDS },
28619 { (char *)"DateTime_SetMinute", (PyCFunction) _wrap_DateTime_SetMinute, METH_VARARGS | METH_KEYWORDS },
28620 { (char *)"DateTime_SetSecond", (PyCFunction) _wrap_DateTime_SetSecond, METH_VARARGS | METH_KEYWORDS },
28621 { (char *)"DateTime_SetMillisecond", (PyCFunction) _wrap_DateTime_SetMillisecond, METH_VARARGS | METH_KEYWORDS },
28622 { (char *)"DateTime_SetToWeekDayInSameWeek", (PyCFunction) _wrap_DateTime_SetToWeekDayInSameWeek, METH_VARARGS | METH_KEYWORDS },
28623 { (char *)"DateTime_GetWeekDayInSameWeek", (PyCFunction) _wrap_DateTime_GetWeekDayInSameWeek, METH_VARARGS | METH_KEYWORDS },
28624 { (char *)"DateTime_SetToNextWeekDay", (PyCFunction) _wrap_DateTime_SetToNextWeekDay, METH_VARARGS | METH_KEYWORDS },
28625 { (char *)"DateTime_GetNextWeekDay", (PyCFunction) _wrap_DateTime_GetNextWeekDay, METH_VARARGS | METH_KEYWORDS },
28626 { (char *)"DateTime_SetToPrevWeekDay", (PyCFunction) _wrap_DateTime_SetToPrevWeekDay, METH_VARARGS | METH_KEYWORDS },
28627 { (char *)"DateTime_GetPrevWeekDay", (PyCFunction) _wrap_DateTime_GetPrevWeekDay, METH_VARARGS | METH_KEYWORDS },
28628 { (char *)"DateTime_SetToWeekDay", (PyCFunction) _wrap_DateTime_SetToWeekDay, METH_VARARGS | METH_KEYWORDS },
28629 { (char *)"DateTime_SetToLastWeekDay", (PyCFunction) _wrap_DateTime_SetToLastWeekDay, METH_VARARGS | METH_KEYWORDS },
28630 { (char *)"DateTime_GetLastWeekDay", (PyCFunction) _wrap_DateTime_GetLastWeekDay, METH_VARARGS | METH_KEYWORDS },
28631 { (char *)"DateTime_SetToTheWeek", (PyCFunction) _wrap_DateTime_SetToTheWeek, METH_VARARGS | METH_KEYWORDS },
28632 { (char *)"DateTime_GetWeek", (PyCFunction) _wrap_DateTime_GetWeek, METH_VARARGS | METH_KEYWORDS },
28633 { (char *)"DateTime_SetToLastMonthDay", (PyCFunction) _wrap_DateTime_SetToLastMonthDay, METH_VARARGS | METH_KEYWORDS },
28634 { (char *)"DateTime_GetLastMonthDay", (PyCFunction) _wrap_DateTime_GetLastMonthDay, METH_VARARGS | METH_KEYWORDS },
28635 { (char *)"DateTime_SetToYearDay", (PyCFunction) _wrap_DateTime_SetToYearDay, METH_VARARGS | METH_KEYWORDS },
28636 { (char *)"DateTime_GetYearDay", (PyCFunction) _wrap_DateTime_GetYearDay, METH_VARARGS | METH_KEYWORDS },
28637 { (char *)"DateTime_GetJulianDayNumber", (PyCFunction) _wrap_DateTime_GetJulianDayNumber, METH_VARARGS | METH_KEYWORDS },
28638 { (char *)"DateTime_GetJDN", (PyCFunction) _wrap_DateTime_GetJDN, METH_VARARGS | METH_KEYWORDS },
28639 { (char *)"DateTime_GetModifiedJulianDayNumber", (PyCFunction) _wrap_DateTime_GetModifiedJulianDayNumber, METH_VARARGS | METH_KEYWORDS },
28640 { (char *)"DateTime_GetMJD", (PyCFunction) _wrap_DateTime_GetMJD, METH_VARARGS | METH_KEYWORDS },
28641 { (char *)"DateTime_GetRataDie", (PyCFunction) _wrap_DateTime_GetRataDie, METH_VARARGS | METH_KEYWORDS },
28642 { (char *)"DateTime_ToTimezone", (PyCFunction) _wrap_DateTime_ToTimezone, METH_VARARGS | METH_KEYWORDS },
28643 { (char *)"DateTime_MakeTimezone", (PyCFunction) _wrap_DateTime_MakeTimezone, METH_VARARGS | METH_KEYWORDS },
28644 { (char *)"DateTime_ToGMT", (PyCFunction) _wrap_DateTime_ToGMT, METH_VARARGS | METH_KEYWORDS },
28645 { (char *)"DateTime_MakeGMT", (PyCFunction) _wrap_DateTime_MakeGMT, METH_VARARGS | METH_KEYWORDS },
28646 { (char *)"DateTime_IsDST", (PyCFunction) _wrap_DateTime_IsDST, METH_VARARGS | METH_KEYWORDS },
28647 { (char *)"DateTime_IsValid", (PyCFunction) _wrap_DateTime_IsValid, METH_VARARGS | METH_KEYWORDS },
28648 { (char *)"DateTime_GetTicks", (PyCFunction) _wrap_DateTime_GetTicks, METH_VARARGS | METH_KEYWORDS },
28649 { (char *)"DateTime_GetYear", (PyCFunction) _wrap_DateTime_GetYear, METH_VARARGS | METH_KEYWORDS },
28650 { (char *)"DateTime_GetMonth", (PyCFunction) _wrap_DateTime_GetMonth, METH_VARARGS | METH_KEYWORDS },
28651 { (char *)"DateTime_GetDay", (PyCFunction) _wrap_DateTime_GetDay, METH_VARARGS | METH_KEYWORDS },
28652 { (char *)"DateTime_GetWeekDay", (PyCFunction) _wrap_DateTime_GetWeekDay, METH_VARARGS | METH_KEYWORDS },
28653 { (char *)"DateTime_GetHour", (PyCFunction) _wrap_DateTime_GetHour, METH_VARARGS | METH_KEYWORDS },
28654 { (char *)"DateTime_GetMinute", (PyCFunction) _wrap_DateTime_GetMinute, METH_VARARGS | METH_KEYWORDS },
28655 { (char *)"DateTime_GetSecond", (PyCFunction) _wrap_DateTime_GetSecond, METH_VARARGS | METH_KEYWORDS },
28656 { (char *)"DateTime_GetMillisecond", (PyCFunction) _wrap_DateTime_GetMillisecond, METH_VARARGS | METH_KEYWORDS },
28657 { (char *)"DateTime_GetDayOfYear", (PyCFunction) _wrap_DateTime_GetDayOfYear, METH_VARARGS | METH_KEYWORDS },
28658 { (char *)"DateTime_GetWeekOfYear", (PyCFunction) _wrap_DateTime_GetWeekOfYear, METH_VARARGS | METH_KEYWORDS },
28659 { (char *)"DateTime_GetWeekOfMonth", (PyCFunction) _wrap_DateTime_GetWeekOfMonth, METH_VARARGS | METH_KEYWORDS },
28660 { (char *)"DateTime_IsWorkDay", (PyCFunction) _wrap_DateTime_IsWorkDay, METH_VARARGS | METH_KEYWORDS },
28661 { (char *)"DateTime_IsEqualTo", (PyCFunction) _wrap_DateTime_IsEqualTo, METH_VARARGS | METH_KEYWORDS },
28662 { (char *)"DateTime_IsEarlierThan", (PyCFunction) _wrap_DateTime_IsEarlierThan, METH_VARARGS | METH_KEYWORDS },
28663 { (char *)"DateTime_IsLaterThan", (PyCFunction) _wrap_DateTime_IsLaterThan, METH_VARARGS | METH_KEYWORDS },
28664 { (char *)"DateTime_IsStrictlyBetween", (PyCFunction) _wrap_DateTime_IsStrictlyBetween, METH_VARARGS | METH_KEYWORDS },
28665 { (char *)"DateTime_IsBetween", (PyCFunction) _wrap_DateTime_IsBetween, METH_VARARGS | METH_KEYWORDS },
28666 { (char *)"DateTime_IsSameDate", (PyCFunction) _wrap_DateTime_IsSameDate, METH_VARARGS | METH_KEYWORDS },
28667 { (char *)"DateTime_IsSameTime", (PyCFunction) _wrap_DateTime_IsSameTime, METH_VARARGS | METH_KEYWORDS },
28668 { (char *)"DateTime_IsEqualUpTo", (PyCFunction) _wrap_DateTime_IsEqualUpTo, METH_VARARGS | METH_KEYWORDS },
28669 { (char *)"DateTime_AddTS", (PyCFunction) _wrap_DateTime_AddTS, METH_VARARGS | METH_KEYWORDS },
28670 { (char *)"DateTime_AddDS", (PyCFunction) _wrap_DateTime_AddDS, METH_VARARGS | METH_KEYWORDS },
28671 { (char *)"DateTime_SubtractTS", (PyCFunction) _wrap_DateTime_SubtractTS, METH_VARARGS | METH_KEYWORDS },
28672 { (char *)"DateTime_SubtractDS", (PyCFunction) _wrap_DateTime_SubtractDS, METH_VARARGS | METH_KEYWORDS },
28673 { (char *)"DateTime_Subtract", (PyCFunction) _wrap_DateTime_Subtract, METH_VARARGS | METH_KEYWORDS },
28674 { (char *)"DateTime___iadd__", _wrap_DateTime___iadd__, METH_VARARGS },
28675 { (char *)"DateTime___isub__", _wrap_DateTime___isub__, METH_VARARGS },
28676 { (char *)"DateTime___add__", _wrap_DateTime___add__, METH_VARARGS },
28677 { (char *)"DateTime___sub__", _wrap_DateTime___sub__, METH_VARARGS },
28678 { (char *)"DateTime___lt__", _wrap_DateTime___lt__, METH_VARARGS },
28679 { (char *)"DateTime___le__", _wrap_DateTime___le__, METH_VARARGS },
28680 { (char *)"DateTime___gt__", _wrap_DateTime___gt__, METH_VARARGS },
28681 { (char *)"DateTime___ge__", _wrap_DateTime___ge__, METH_VARARGS },
28682 { (char *)"DateTime___eq__", _wrap_DateTime___eq__, METH_VARARGS },
28683 { (char *)"DateTime___ne__", _wrap_DateTime___ne__, METH_VARARGS },
28684 { (char *)"DateTime_ParseRfc822Date", (PyCFunction) _wrap_DateTime_ParseRfc822Date, METH_VARARGS | METH_KEYWORDS },
28685 { (char *)"DateTime_ParseFormat", (PyCFunction) _wrap_DateTime_ParseFormat, METH_VARARGS | METH_KEYWORDS },
28686 { (char *)"DateTime_ParseDateTime", (PyCFunction) _wrap_DateTime_ParseDateTime, METH_VARARGS | METH_KEYWORDS },
28687 { (char *)"DateTime_ParseDate", (PyCFunction) _wrap_DateTime_ParseDate, METH_VARARGS | METH_KEYWORDS },
28688 { (char *)"DateTime_ParseTime", (PyCFunction) _wrap_DateTime_ParseTime, METH_VARARGS | METH_KEYWORDS },
28689 { (char *)"DateTime_Format", (PyCFunction) _wrap_DateTime_Format, METH_VARARGS | METH_KEYWORDS },
28690 { (char *)"DateTime_FormatDate", (PyCFunction) _wrap_DateTime_FormatDate, METH_VARARGS | METH_KEYWORDS },
28691 { (char *)"DateTime_FormatTime", (PyCFunction) _wrap_DateTime_FormatTime, METH_VARARGS | METH_KEYWORDS },
28692 { (char *)"DateTime_FormatISODate", (PyCFunction) _wrap_DateTime_FormatISODate, METH_VARARGS | METH_KEYWORDS },
28693 { (char *)"DateTime_FormatISOTime", (PyCFunction) _wrap_DateTime_FormatISOTime, METH_VARARGS | METH_KEYWORDS },
28694 { (char *)"DateTime_swigregister", DateTime_swigregister, METH_VARARGS },
28695 { (char *)"TimeSpan_Seconds", (PyCFunction) _wrap_TimeSpan_Seconds, METH_VARARGS | METH_KEYWORDS },
28696 { (char *)"TimeSpan_Second", (PyCFunction) _wrap_TimeSpan_Second, METH_VARARGS | METH_KEYWORDS },
28697 { (char *)"TimeSpan_Minutes", (PyCFunction) _wrap_TimeSpan_Minutes, METH_VARARGS | METH_KEYWORDS },
28698 { (char *)"TimeSpan_Minute", (PyCFunction) _wrap_TimeSpan_Minute, METH_VARARGS | METH_KEYWORDS },
28699 { (char *)"TimeSpan_Hours", (PyCFunction) _wrap_TimeSpan_Hours, METH_VARARGS | METH_KEYWORDS },
28700 { (char *)"TimeSpan_Hour", (PyCFunction) _wrap_TimeSpan_Hour, METH_VARARGS | METH_KEYWORDS },
28701 { (char *)"TimeSpan_Days", (PyCFunction) _wrap_TimeSpan_Days, METH_VARARGS | METH_KEYWORDS },
28702 { (char *)"TimeSpan_Day", (PyCFunction) _wrap_TimeSpan_Day, METH_VARARGS | METH_KEYWORDS },
28703 { (char *)"TimeSpan_Weeks", (PyCFunction) _wrap_TimeSpan_Weeks, METH_VARARGS | METH_KEYWORDS },
28704 { (char *)"TimeSpan_Week", (PyCFunction) _wrap_TimeSpan_Week, METH_VARARGS | METH_KEYWORDS },
28705 { (char *)"new_TimeSpan", (PyCFunction) _wrap_new_TimeSpan, METH_VARARGS | METH_KEYWORDS },
28706 { (char *)"delete_TimeSpan", (PyCFunction) _wrap_delete_TimeSpan, METH_VARARGS | METH_KEYWORDS },
28707 { (char *)"TimeSpan_Add", (PyCFunction) _wrap_TimeSpan_Add, METH_VARARGS | METH_KEYWORDS },
28708 { (char *)"TimeSpan_Subtract", (PyCFunction) _wrap_TimeSpan_Subtract, METH_VARARGS | METH_KEYWORDS },
28709 { (char *)"TimeSpan_Multiply", (PyCFunction) _wrap_TimeSpan_Multiply, METH_VARARGS | METH_KEYWORDS },
28710 { (char *)"TimeSpan_Neg", (PyCFunction) _wrap_TimeSpan_Neg, METH_VARARGS | METH_KEYWORDS },
28711 { (char *)"TimeSpan_Abs", (PyCFunction) _wrap_TimeSpan_Abs, METH_VARARGS | METH_KEYWORDS },
28712 { (char *)"TimeSpan___iadd__", (PyCFunction) _wrap_TimeSpan___iadd__, METH_VARARGS | METH_KEYWORDS },
28713 { (char *)"TimeSpan___isub__", (PyCFunction) _wrap_TimeSpan___isub__, METH_VARARGS | METH_KEYWORDS },
28714 { (char *)"TimeSpan___imul__", (PyCFunction) _wrap_TimeSpan___imul__, METH_VARARGS | METH_KEYWORDS },
28715 { (char *)"TimeSpan___neg__", (PyCFunction) _wrap_TimeSpan___neg__, METH_VARARGS | METH_KEYWORDS },
28716 { (char *)"TimeSpan___add__", (PyCFunction) _wrap_TimeSpan___add__, METH_VARARGS | METH_KEYWORDS },
28717 { (char *)"TimeSpan___sub__", (PyCFunction) _wrap_TimeSpan___sub__, METH_VARARGS | METH_KEYWORDS },
28718 { (char *)"TimeSpan___mul__", (PyCFunction) _wrap_TimeSpan___mul__, METH_VARARGS | METH_KEYWORDS },
28719 { (char *)"TimeSpan___rmul__", (PyCFunction) _wrap_TimeSpan___rmul__, METH_VARARGS | METH_KEYWORDS },
28720 { (char *)"TimeSpan___lt__", (PyCFunction) _wrap_TimeSpan___lt__, METH_VARARGS | METH_KEYWORDS },
28721 { (char *)"TimeSpan___le__", (PyCFunction) _wrap_TimeSpan___le__, METH_VARARGS | METH_KEYWORDS },
28722 { (char *)"TimeSpan___gt__", (PyCFunction) _wrap_TimeSpan___gt__, METH_VARARGS | METH_KEYWORDS },
28723 { (char *)"TimeSpan___ge__", (PyCFunction) _wrap_TimeSpan___ge__, METH_VARARGS | METH_KEYWORDS },
28724 { (char *)"TimeSpan___eq__", (PyCFunction) _wrap_TimeSpan___eq__, METH_VARARGS | METH_KEYWORDS },
28725 { (char *)"TimeSpan___ne__", (PyCFunction) _wrap_TimeSpan___ne__, METH_VARARGS | METH_KEYWORDS },
28726 { (char *)"TimeSpan_IsNull", (PyCFunction) _wrap_TimeSpan_IsNull, METH_VARARGS | METH_KEYWORDS },
28727 { (char *)"TimeSpan_IsPositive", (PyCFunction) _wrap_TimeSpan_IsPositive, METH_VARARGS | METH_KEYWORDS },
28728 { (char *)"TimeSpan_IsNegative", (PyCFunction) _wrap_TimeSpan_IsNegative, METH_VARARGS | METH_KEYWORDS },
28729 { (char *)"TimeSpan_IsEqualTo", (PyCFunction) _wrap_TimeSpan_IsEqualTo, METH_VARARGS | METH_KEYWORDS },
28730 { (char *)"TimeSpan_IsLongerThan", (PyCFunction) _wrap_TimeSpan_IsLongerThan, METH_VARARGS | METH_KEYWORDS },
28731 { (char *)"TimeSpan_IsShorterThan", (PyCFunction) _wrap_TimeSpan_IsShorterThan, METH_VARARGS | METH_KEYWORDS },
28732 { (char *)"TimeSpan_GetWeeks", (PyCFunction) _wrap_TimeSpan_GetWeeks, METH_VARARGS | METH_KEYWORDS },
28733 { (char *)"TimeSpan_GetDays", (PyCFunction) _wrap_TimeSpan_GetDays, METH_VARARGS | METH_KEYWORDS },
28734 { (char *)"TimeSpan_GetHours", (PyCFunction) _wrap_TimeSpan_GetHours, METH_VARARGS | METH_KEYWORDS },
28735 { (char *)"TimeSpan_GetMinutes", (PyCFunction) _wrap_TimeSpan_GetMinutes, METH_VARARGS | METH_KEYWORDS },
28736 { (char *)"TimeSpan_GetSeconds", (PyCFunction) _wrap_TimeSpan_GetSeconds, METH_VARARGS | METH_KEYWORDS },
28737 { (char *)"TimeSpan_GetMilliseconds", (PyCFunction) _wrap_TimeSpan_GetMilliseconds, METH_VARARGS | METH_KEYWORDS },
28738 { (char *)"TimeSpan_Format", (PyCFunction) _wrap_TimeSpan_Format, METH_VARARGS | METH_KEYWORDS },
28739 { (char *)"TimeSpan_swigregister", TimeSpan_swigregister, METH_VARARGS },
28740 { (char *)"new_DateSpan", (PyCFunction) _wrap_new_DateSpan, METH_VARARGS | METH_KEYWORDS },
28741 { (char *)"delete_DateSpan", (PyCFunction) _wrap_delete_DateSpan, METH_VARARGS | METH_KEYWORDS },
28742 { (char *)"DateSpan_Days", (PyCFunction) _wrap_DateSpan_Days, METH_VARARGS | METH_KEYWORDS },
28743 { (char *)"DateSpan_Day", (PyCFunction) _wrap_DateSpan_Day, METH_VARARGS | METH_KEYWORDS },
28744 { (char *)"DateSpan_Weeks", (PyCFunction) _wrap_DateSpan_Weeks, METH_VARARGS | METH_KEYWORDS },
28745 { (char *)"DateSpan_Week", (PyCFunction) _wrap_DateSpan_Week, METH_VARARGS | METH_KEYWORDS },
28746 { (char *)"DateSpan_Months", (PyCFunction) _wrap_DateSpan_Months, METH_VARARGS | METH_KEYWORDS },
28747 { (char *)"DateSpan_Month", (PyCFunction) _wrap_DateSpan_Month, METH_VARARGS | METH_KEYWORDS },
28748 { (char *)"DateSpan_Years", (PyCFunction) _wrap_DateSpan_Years, METH_VARARGS | METH_KEYWORDS },
28749 { (char *)"DateSpan_Year", (PyCFunction) _wrap_DateSpan_Year, METH_VARARGS | METH_KEYWORDS },
28750 { (char *)"DateSpan_SetYears", (PyCFunction) _wrap_DateSpan_SetYears, METH_VARARGS | METH_KEYWORDS },
28751 { (char *)"DateSpan_SetMonths", (PyCFunction) _wrap_DateSpan_SetMonths, METH_VARARGS | METH_KEYWORDS },
28752 { (char *)"DateSpan_SetWeeks", (PyCFunction) _wrap_DateSpan_SetWeeks, METH_VARARGS | METH_KEYWORDS },
28753 { (char *)"DateSpan_SetDays", (PyCFunction) _wrap_DateSpan_SetDays, METH_VARARGS | METH_KEYWORDS },
28754 { (char *)"DateSpan_GetYears", (PyCFunction) _wrap_DateSpan_GetYears, METH_VARARGS | METH_KEYWORDS },
28755 { (char *)"DateSpan_GetMonths", (PyCFunction) _wrap_DateSpan_GetMonths, METH_VARARGS | METH_KEYWORDS },
28756 { (char *)"DateSpan_GetWeeks", (PyCFunction) _wrap_DateSpan_GetWeeks, METH_VARARGS | METH_KEYWORDS },
28757 { (char *)"DateSpan_GetDays", (PyCFunction) _wrap_DateSpan_GetDays, METH_VARARGS | METH_KEYWORDS },
28758 { (char *)"DateSpan_GetTotalDays", (PyCFunction) _wrap_DateSpan_GetTotalDays, METH_VARARGS | METH_KEYWORDS },
28759 { (char *)"DateSpan_Add", (PyCFunction) _wrap_DateSpan_Add, METH_VARARGS | METH_KEYWORDS },
28760 { (char *)"DateSpan_Subtract", (PyCFunction) _wrap_DateSpan_Subtract, METH_VARARGS | METH_KEYWORDS },
28761 { (char *)"DateSpan_Neg", (PyCFunction) _wrap_DateSpan_Neg, METH_VARARGS | METH_KEYWORDS },
28762 { (char *)"DateSpan_Multiply", (PyCFunction) _wrap_DateSpan_Multiply, METH_VARARGS | METH_KEYWORDS },
28763 { (char *)"DateSpan___iadd__", (PyCFunction) _wrap_DateSpan___iadd__, METH_VARARGS | METH_KEYWORDS },
28764 { (char *)"DateSpan___isub__", (PyCFunction) _wrap_DateSpan___isub__, METH_VARARGS | METH_KEYWORDS },
28765 { (char *)"DateSpan___neg__", (PyCFunction) _wrap_DateSpan___neg__, METH_VARARGS | METH_KEYWORDS },
28766 { (char *)"DateSpan___imul__", (PyCFunction) _wrap_DateSpan___imul__, METH_VARARGS | METH_KEYWORDS },
28767 { (char *)"DateSpan___add__", (PyCFunction) _wrap_DateSpan___add__, METH_VARARGS | METH_KEYWORDS },
28768 { (char *)"DateSpan___sub__", (PyCFunction) _wrap_DateSpan___sub__, METH_VARARGS | METH_KEYWORDS },
28769 { (char *)"DateSpan___mul__", (PyCFunction) _wrap_DateSpan___mul__, METH_VARARGS | METH_KEYWORDS },
28770 { (char *)"DateSpan___rmul__", (PyCFunction) _wrap_DateSpan___rmul__, METH_VARARGS | METH_KEYWORDS },
28771 { (char *)"DateSpan___eq__", (PyCFunction) _wrap_DateSpan___eq__, METH_VARARGS | METH_KEYWORDS },
28772 { (char *)"DateSpan___ne__", (PyCFunction) _wrap_DateSpan___ne__, METH_VARARGS | METH_KEYWORDS },
28773 { (char *)"DateSpan_swigregister", DateSpan_swigregister, METH_VARARGS },
28774 { (char *)"GetLocalTime", (PyCFunction) _wrap_GetLocalTime, METH_VARARGS | METH_KEYWORDS },
28775 { (char *)"GetUTCTime", (PyCFunction) _wrap_GetUTCTime, METH_VARARGS | METH_KEYWORDS },
28776 { (char *)"GetCurrentTime", (PyCFunction) _wrap_GetCurrentTime, METH_VARARGS | METH_KEYWORDS },
28777 { (char *)"GetLocalTimeMillis", (PyCFunction) _wrap_GetLocalTimeMillis, METH_VARARGS | METH_KEYWORDS },
28778 { (char *)"new_DataFormat", (PyCFunction) _wrap_new_DataFormat, METH_VARARGS | METH_KEYWORDS },
28779 { (char *)"new_CustomDataFormat", (PyCFunction) _wrap_new_CustomDataFormat, METH_VARARGS | METH_KEYWORDS },
28780 { (char *)"delete_DataFormat", (PyCFunction) _wrap_delete_DataFormat, METH_VARARGS | METH_KEYWORDS },
28781 { (char *)"DataFormat___eq__", _wrap_DataFormat___eq__, METH_VARARGS },
28782 { (char *)"DataFormat___ne__", _wrap_DataFormat___ne__, METH_VARARGS },
28783 { (char *)"DataFormat_SetType", (PyCFunction) _wrap_DataFormat_SetType, METH_VARARGS | METH_KEYWORDS },
28784 { (char *)"DataFormat_GetType", (PyCFunction) _wrap_DataFormat_GetType, METH_VARARGS | METH_KEYWORDS },
28785 { (char *)"DataFormat_GetId", (PyCFunction) _wrap_DataFormat_GetId, METH_VARARGS | METH_KEYWORDS },
28786 { (char *)"DataFormat_SetId", (PyCFunction) _wrap_DataFormat_SetId, METH_VARARGS | METH_KEYWORDS },
28787 { (char *)"DataFormat_swigregister", DataFormat_swigregister, METH_VARARGS },
28788 { (char *)"delete_DataObject", (PyCFunction) _wrap_delete_DataObject, METH_VARARGS | METH_KEYWORDS },
28789 { (char *)"DataObject_GetPreferredFormat", (PyCFunction) _wrap_DataObject_GetPreferredFormat, METH_VARARGS | METH_KEYWORDS },
28790 { (char *)"DataObject_GetFormatCount", (PyCFunction) _wrap_DataObject_GetFormatCount, METH_VARARGS | METH_KEYWORDS },
28791 { (char *)"DataObject_IsSupported", (PyCFunction) _wrap_DataObject_IsSupported, METH_VARARGS | METH_KEYWORDS },
28792 { (char *)"DataObject_GetDataSize", (PyCFunction) _wrap_DataObject_GetDataSize, METH_VARARGS | METH_KEYWORDS },
28793 { (char *)"DataObject_GetAllFormats", (PyCFunction) _wrap_DataObject_GetAllFormats, METH_VARARGS | METH_KEYWORDS },
28794 { (char *)"DataObject_GetDataHere", (PyCFunction) _wrap_DataObject_GetDataHere, METH_VARARGS | METH_KEYWORDS },
28795 { (char *)"DataObject_SetData", (PyCFunction) _wrap_DataObject_SetData, METH_VARARGS | METH_KEYWORDS },
28796 { (char *)"DataObject_swigregister", DataObject_swigregister, METH_VARARGS },
28797 { (char *)"new_DataObjectSimple", (PyCFunction) _wrap_new_DataObjectSimple, METH_VARARGS | METH_KEYWORDS },
28798 { (char *)"DataObjectSimple_GetFormat", (PyCFunction) _wrap_DataObjectSimple_GetFormat, METH_VARARGS | METH_KEYWORDS },
28799 { (char *)"DataObjectSimple_SetFormat", (PyCFunction) _wrap_DataObjectSimple_SetFormat, METH_VARARGS | METH_KEYWORDS },
28800 { (char *)"DataObjectSimple_GetDataSize", (PyCFunction) _wrap_DataObjectSimple_GetDataSize, METH_VARARGS | METH_KEYWORDS },
28801 { (char *)"DataObjectSimple_GetDataHere", (PyCFunction) _wrap_DataObjectSimple_GetDataHere, METH_VARARGS | METH_KEYWORDS },
28802 { (char *)"DataObjectSimple_SetData", (PyCFunction) _wrap_DataObjectSimple_SetData, METH_VARARGS | METH_KEYWORDS },
28803 { (char *)"DataObjectSimple_swigregister", DataObjectSimple_swigregister, METH_VARARGS },
28804 { (char *)"new_PyDataObjectSimple", (PyCFunction) _wrap_new_PyDataObjectSimple, METH_VARARGS | METH_KEYWORDS },
28805 { (char *)"PyDataObjectSimple__setCallbackInfo", (PyCFunction) _wrap_PyDataObjectSimple__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
28806 { (char *)"PyDataObjectSimple_swigregister", PyDataObjectSimple_swigregister, METH_VARARGS },
28807 { (char *)"new_DataObjectComposite", (PyCFunction) _wrap_new_DataObjectComposite, METH_VARARGS | METH_KEYWORDS },
28808 { (char *)"DataObjectComposite_Add", (PyCFunction) _wrap_DataObjectComposite_Add, METH_VARARGS | METH_KEYWORDS },
28809 { (char *)"DataObjectComposite_swigregister", DataObjectComposite_swigregister, METH_VARARGS },
28810 { (char *)"new_TextDataObject", (PyCFunction) _wrap_new_TextDataObject, METH_VARARGS | METH_KEYWORDS },
28811 { (char *)"TextDataObject_GetTextLength", (PyCFunction) _wrap_TextDataObject_GetTextLength, METH_VARARGS | METH_KEYWORDS },
28812 { (char *)"TextDataObject_GetText", (PyCFunction) _wrap_TextDataObject_GetText, METH_VARARGS | METH_KEYWORDS },
28813 { (char *)"TextDataObject_SetText", (PyCFunction) _wrap_TextDataObject_SetText, METH_VARARGS | METH_KEYWORDS },
28814 { (char *)"TextDataObject_swigregister", TextDataObject_swigregister, METH_VARARGS },
28815 { (char *)"new_PyTextDataObject", (PyCFunction) _wrap_new_PyTextDataObject, METH_VARARGS | METH_KEYWORDS },
28816 { (char *)"PyTextDataObject__setCallbackInfo", (PyCFunction) _wrap_PyTextDataObject__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
28817 { (char *)"PyTextDataObject_swigregister", PyTextDataObject_swigregister, METH_VARARGS },
28818 { (char *)"new_BitmapDataObject", (PyCFunction) _wrap_new_BitmapDataObject, METH_VARARGS | METH_KEYWORDS },
28819 { (char *)"BitmapDataObject_GetBitmap", (PyCFunction) _wrap_BitmapDataObject_GetBitmap, METH_VARARGS | METH_KEYWORDS },
28820 { (char *)"BitmapDataObject_SetBitmap", (PyCFunction) _wrap_BitmapDataObject_SetBitmap, METH_VARARGS | METH_KEYWORDS },
28821 { (char *)"BitmapDataObject_swigregister", BitmapDataObject_swigregister, METH_VARARGS },
28822 { (char *)"new_PyBitmapDataObject", (PyCFunction) _wrap_new_PyBitmapDataObject, METH_VARARGS | METH_KEYWORDS },
28823 { (char *)"PyBitmapDataObject__setCallbackInfo", (PyCFunction) _wrap_PyBitmapDataObject__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
28824 { (char *)"PyBitmapDataObject_swigregister", PyBitmapDataObject_swigregister, METH_VARARGS },
28825 { (char *)"new_FileDataObject", (PyCFunction) _wrap_new_FileDataObject, METH_VARARGS | METH_KEYWORDS },
28826 { (char *)"FileDataObject_GetFilenames", (PyCFunction) _wrap_FileDataObject_GetFilenames, METH_VARARGS | METH_KEYWORDS },
28827 { (char *)"FileDataObject_AddFile", (PyCFunction) _wrap_FileDataObject_AddFile, METH_VARARGS | METH_KEYWORDS },
28828 { (char *)"FileDataObject_swigregister", FileDataObject_swigregister, METH_VARARGS },
28829 { (char *)"new_CustomDataObject", (PyCFunction) _wrap_new_CustomDataObject, METH_VARARGS | METH_KEYWORDS },
28830 { (char *)"CustomDataObject_SetData", (PyCFunction) _wrap_CustomDataObject_SetData, METH_VARARGS | METH_KEYWORDS },
28831 { (char *)"CustomDataObject_GetSize", (PyCFunction) _wrap_CustomDataObject_GetSize, METH_VARARGS | METH_KEYWORDS },
28832 { (char *)"CustomDataObject_GetData", (PyCFunction) _wrap_CustomDataObject_GetData, METH_VARARGS | METH_KEYWORDS },
28833 { (char *)"CustomDataObject_swigregister", CustomDataObject_swigregister, METH_VARARGS },
28834 { (char *)"new_URLDataObject", (PyCFunction) _wrap_new_URLDataObject, METH_VARARGS | METH_KEYWORDS },
28835 { (char *)"URLDataObject_GetURL", (PyCFunction) _wrap_URLDataObject_GetURL, METH_VARARGS | METH_KEYWORDS },
28836 { (char *)"URLDataObject_SetURL", (PyCFunction) _wrap_URLDataObject_SetURL, METH_VARARGS | METH_KEYWORDS },
28837 { (char *)"URLDataObject_swigregister", URLDataObject_swigregister, METH_VARARGS },
28838 { (char *)"new_MetafileDataObject", (PyCFunction) _wrap_new_MetafileDataObject, METH_VARARGS | METH_KEYWORDS },
28839 { (char *)"MetafileDataObject_SetMetafile", (PyCFunction) _wrap_MetafileDataObject_SetMetafile, METH_VARARGS | METH_KEYWORDS },
28840 { (char *)"MetafileDataObject_GetMetafile", (PyCFunction) _wrap_MetafileDataObject_GetMetafile, METH_VARARGS | METH_KEYWORDS },
28841 { (char *)"MetafileDataObject_swigregister", MetafileDataObject_swigregister, METH_VARARGS },
28842 { (char *)"IsDragResultOk", (PyCFunction) _wrap_IsDragResultOk, METH_VARARGS | METH_KEYWORDS },
28843 { (char *)"new_DropSource", (PyCFunction) _wrap_new_DropSource, METH_VARARGS | METH_KEYWORDS },
28844 { (char *)"DropSource__setCallbackInfo", (PyCFunction) _wrap_DropSource__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
28845 { (char *)"delete_DropSource", (PyCFunction) _wrap_delete_DropSource, METH_VARARGS | METH_KEYWORDS },
28846 { (char *)"DropSource_SetData", (PyCFunction) _wrap_DropSource_SetData, METH_VARARGS | METH_KEYWORDS },
28847 { (char *)"DropSource_GetDataObject", (PyCFunction) _wrap_DropSource_GetDataObject, METH_VARARGS | METH_KEYWORDS },
28848 { (char *)"DropSource_SetCursor", (PyCFunction) _wrap_DropSource_SetCursor, METH_VARARGS | METH_KEYWORDS },
28849 { (char *)"DropSource_DoDragDrop", (PyCFunction) _wrap_DropSource_DoDragDrop, METH_VARARGS | METH_KEYWORDS },
28850 { (char *)"DropSource_base_GiveFeedback", (PyCFunction) _wrap_DropSource_base_GiveFeedback, METH_VARARGS | METH_KEYWORDS },
28851 { (char *)"DropSource_swigregister", DropSource_swigregister, METH_VARARGS },
28852 { (char *)"new_DropTarget", (PyCFunction) _wrap_new_DropTarget, METH_VARARGS | METH_KEYWORDS },
28853 { (char *)"DropTarget__setCallbackInfo", (PyCFunction) _wrap_DropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
28854 { (char *)"delete_DropTarget", (PyCFunction) _wrap_delete_DropTarget, METH_VARARGS | METH_KEYWORDS },
28855 { (char *)"DropTarget_GetDataObject", (PyCFunction) _wrap_DropTarget_GetDataObject, METH_VARARGS | METH_KEYWORDS },
28856 { (char *)"DropTarget_SetDataObject", (PyCFunction) _wrap_DropTarget_SetDataObject, METH_VARARGS | METH_KEYWORDS },
28857 { (char *)"DropTarget_base_OnEnter", (PyCFunction) _wrap_DropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS },
28858 { (char *)"DropTarget_base_OnDragOver", (PyCFunction) _wrap_DropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS },
28859 { (char *)"DropTarget_base_OnLeave", (PyCFunction) _wrap_DropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS },
28860 { (char *)"DropTarget_base_OnDrop", (PyCFunction) _wrap_DropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS },
28861 { (char *)"DropTarget_GetData", (PyCFunction) _wrap_DropTarget_GetData, METH_VARARGS | METH_KEYWORDS },
28862 { (char *)"DropTarget_swigregister", DropTarget_swigregister, METH_VARARGS },
28863 { (char *)"new_TextDropTarget", (PyCFunction) _wrap_new_TextDropTarget, METH_VARARGS | METH_KEYWORDS },
28864 { (char *)"TextDropTarget__setCallbackInfo", (PyCFunction) _wrap_TextDropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
28865 { (char *)"TextDropTarget_base_OnEnter", (PyCFunction) _wrap_TextDropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS },
28866 { (char *)"TextDropTarget_base_OnDragOver", (PyCFunction) _wrap_TextDropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS },
28867 { (char *)"TextDropTarget_base_OnLeave", (PyCFunction) _wrap_TextDropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS },
28868 { (char *)"TextDropTarget_base_OnDrop", (PyCFunction) _wrap_TextDropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS },
28869 { (char *)"TextDropTarget_base_OnData", (PyCFunction) _wrap_TextDropTarget_base_OnData, METH_VARARGS | METH_KEYWORDS },
28870 { (char *)"TextDropTarget_swigregister", TextDropTarget_swigregister, METH_VARARGS },
28871 { (char *)"new_FileDropTarget", (PyCFunction) _wrap_new_FileDropTarget, METH_VARARGS | METH_KEYWORDS },
28872 { (char *)"FileDropTarget__setCallbackInfo", (PyCFunction) _wrap_FileDropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
28873 { (char *)"FileDropTarget_base_OnEnter", (PyCFunction) _wrap_FileDropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS },
28874 { (char *)"FileDropTarget_base_OnDragOver", (PyCFunction) _wrap_FileDropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS },
28875 { (char *)"FileDropTarget_base_OnLeave", (PyCFunction) _wrap_FileDropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS },
28876 { (char *)"FileDropTarget_base_OnDrop", (PyCFunction) _wrap_FileDropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS },
28877 { (char *)"FileDropTarget_base_OnData", (PyCFunction) _wrap_FileDropTarget_base_OnData, METH_VARARGS | METH_KEYWORDS },
28878 { (char *)"FileDropTarget_swigregister", FileDropTarget_swigregister, METH_VARARGS },
28879 { (char *)"new_Clipboard", (PyCFunction) _wrap_new_Clipboard, METH_VARARGS | METH_KEYWORDS },
28880 { (char *)"delete_Clipboard", (PyCFunction) _wrap_delete_Clipboard, METH_VARARGS | METH_KEYWORDS },
28881 { (char *)"Clipboard_Open", (PyCFunction) _wrap_Clipboard_Open, METH_VARARGS | METH_KEYWORDS },
28882 { (char *)"Clipboard_Close", (PyCFunction) _wrap_Clipboard_Close, METH_VARARGS | METH_KEYWORDS },
28883 { (char *)"Clipboard_IsOpened", (PyCFunction) _wrap_Clipboard_IsOpened, METH_VARARGS | METH_KEYWORDS },
28884 { (char *)"Clipboard_AddData", (PyCFunction) _wrap_Clipboard_AddData, METH_VARARGS | METH_KEYWORDS },
28885 { (char *)"Clipboard_SetData", (PyCFunction) _wrap_Clipboard_SetData, METH_VARARGS | METH_KEYWORDS },
28886 { (char *)"Clipboard_IsSupported", (PyCFunction) _wrap_Clipboard_IsSupported, METH_VARARGS | METH_KEYWORDS },
28887 { (char *)"Clipboard_GetData", (PyCFunction) _wrap_Clipboard_GetData, METH_VARARGS | METH_KEYWORDS },
28888 { (char *)"Clipboard_Clear", (PyCFunction) _wrap_Clipboard_Clear, METH_VARARGS | METH_KEYWORDS },
28889 { (char *)"Clipboard_Flush", (PyCFunction) _wrap_Clipboard_Flush, METH_VARARGS | METH_KEYWORDS },
28890 { (char *)"Clipboard_UsePrimarySelection", (PyCFunction) _wrap_Clipboard_UsePrimarySelection, METH_VARARGS | METH_KEYWORDS },
28891 { (char *)"Clipboard_swigregister", Clipboard_swigregister, METH_VARARGS },
28892 { (char *)"new_ClipboardLocker", (PyCFunction) _wrap_new_ClipboardLocker, METH_VARARGS | METH_KEYWORDS },
28893 { (char *)"delete_ClipboardLocker", (PyCFunction) _wrap_delete_ClipboardLocker, METH_VARARGS | METH_KEYWORDS },
28894 { (char *)"ClipboardLocker___nonzero__", (PyCFunction) _wrap_ClipboardLocker___nonzero__, METH_VARARGS | METH_KEYWORDS },
28895 { (char *)"ClipboardLocker_swigregister", ClipboardLocker_swigregister, METH_VARARGS },
28896 { (char *)"new_VideoMode", (PyCFunction) _wrap_new_VideoMode, METH_VARARGS | METH_KEYWORDS },
28897 { (char *)"delete_VideoMode", (PyCFunction) _wrap_delete_VideoMode, METH_VARARGS | METH_KEYWORDS },
28898 { (char *)"VideoMode_Matches", (PyCFunction) _wrap_VideoMode_Matches, METH_VARARGS | METH_KEYWORDS },
28899 { (char *)"VideoMode_GetWidth", (PyCFunction) _wrap_VideoMode_GetWidth, METH_VARARGS | METH_KEYWORDS },
28900 { (char *)"VideoMode_GetHeight", (PyCFunction) _wrap_VideoMode_GetHeight, METH_VARARGS | METH_KEYWORDS },
28901 { (char *)"VideoMode_GetDepth", (PyCFunction) _wrap_VideoMode_GetDepth, METH_VARARGS | METH_KEYWORDS },
28902 { (char *)"VideoMode_IsOk", (PyCFunction) _wrap_VideoMode_IsOk, METH_VARARGS | METH_KEYWORDS },
28903 { (char *)"VideoMode___eq__", (PyCFunction) _wrap_VideoMode___eq__, METH_VARARGS | METH_KEYWORDS },
28904 { (char *)"VideoMode___ne__", (PyCFunction) _wrap_VideoMode___ne__, METH_VARARGS | METH_KEYWORDS },
28905 { (char *)"VideoMode_w_set", (PyCFunction) _wrap_VideoMode_w_set, METH_VARARGS | METH_KEYWORDS },
28906 { (char *)"VideoMode_w_get", (PyCFunction) _wrap_VideoMode_w_get, METH_VARARGS | METH_KEYWORDS },
28907 { (char *)"VideoMode_h_set", (PyCFunction) _wrap_VideoMode_h_set, METH_VARARGS | METH_KEYWORDS },
28908 { (char *)"VideoMode_h_get", (PyCFunction) _wrap_VideoMode_h_get, METH_VARARGS | METH_KEYWORDS },
28909 { (char *)"VideoMode_bpp_set", (PyCFunction) _wrap_VideoMode_bpp_set, METH_VARARGS | METH_KEYWORDS },
28910 { (char *)"VideoMode_bpp_get", (PyCFunction) _wrap_VideoMode_bpp_get, METH_VARARGS | METH_KEYWORDS },
28911 { (char *)"VideoMode_refresh_set", (PyCFunction) _wrap_VideoMode_refresh_set, METH_VARARGS | METH_KEYWORDS },
28912 { (char *)"VideoMode_refresh_get", (PyCFunction) _wrap_VideoMode_refresh_get, METH_VARARGS | METH_KEYWORDS },
28913 { (char *)"VideoMode_swigregister", VideoMode_swigregister, METH_VARARGS },
28914 { (char *)"new_Display", (PyCFunction) _wrap_new_Display, METH_VARARGS | METH_KEYWORDS },
28915 { (char *)"delete_Display", (PyCFunction) _wrap_delete_Display, METH_VARARGS | METH_KEYWORDS },
28916 { (char *)"Display_GetCount", (PyCFunction) _wrap_Display_GetCount, METH_VARARGS | METH_KEYWORDS },
28917 { (char *)"Display_GetFromPoint", (PyCFunction) _wrap_Display_GetFromPoint, METH_VARARGS | METH_KEYWORDS },
28918 { (char *)"Display_GetFromWindow", (PyCFunction) _wrap_Display_GetFromWindow, METH_VARARGS | METH_KEYWORDS },
28919 { (char *)"Display_IsOk", (PyCFunction) _wrap_Display_IsOk, METH_VARARGS | METH_KEYWORDS },
28920 { (char *)"Display_GetGeometry", (PyCFunction) _wrap_Display_GetGeometry, METH_VARARGS | METH_KEYWORDS },
28921 { (char *)"Display_GetName", (PyCFunction) _wrap_Display_GetName, METH_VARARGS | METH_KEYWORDS },
28922 { (char *)"Display_IsPrimary", (PyCFunction) _wrap_Display_IsPrimary, METH_VARARGS | METH_KEYWORDS },
28923 { (char *)"Display_GetModes", (PyCFunction) _wrap_Display_GetModes, METH_VARARGS | METH_KEYWORDS },
28924 { (char *)"Display_GetCurrentMode", (PyCFunction) _wrap_Display_GetCurrentMode, METH_VARARGS | METH_KEYWORDS },
28925 { (char *)"Display_ChangeMode", (PyCFunction) _wrap_Display_ChangeMode, METH_VARARGS | METH_KEYWORDS },
28926 { (char *)"Display_ResetMode", (PyCFunction) _wrap_Display_ResetMode, METH_VARARGS | METH_KEYWORDS },
28927 { (char *)"Display_swigregister", Display_swigregister, METH_VARARGS },
28928 { NULL, NULL }
28929 };
28930
28931
28932 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
28933
28934 static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) {
28935 return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x));
28936 }
28937 static void *_p_wxMenuEventTo_p_wxEvent(void *x) {
28938 return (void *)((wxEvent *) ((wxMenuEvent *) x));
28939 }
28940 static void *_p_wxCloseEventTo_p_wxEvent(void *x) {
28941 return (void *)((wxEvent *) ((wxCloseEvent *) x));
28942 }
28943 static void *_p_wxMouseEventTo_p_wxEvent(void *x) {
28944 return (void *)((wxEvent *) ((wxMouseEvent *) x));
28945 }
28946 static void *_p_wxEraseEventTo_p_wxEvent(void *x) {
28947 return (void *)((wxEvent *) ((wxEraseEvent *) x));
28948 }
28949 static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) {
28950 return (void *)((wxEvent *) ((wxSetCursorEvent *) x));
28951 }
28952 static void *_p_wxTimerEventTo_p_wxEvent(void *x) {
28953 return (void *)((wxEvent *) ((wxTimerEvent *) x));
28954 }
28955 static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) {
28956 return (void *)((wxEvent *) ((wxInitDialogEvent *) x));
28957 }
28958 static void *_p_wxScrollEventTo_p_wxEvent(void *x) {
28959 return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x));
28960 }
28961 static void *_p_wxPyEventTo_p_wxEvent(void *x) {
28962 return (void *)((wxEvent *) ((wxPyEvent *) x));
28963 }
28964 static void *_p_wxNotifyEventTo_p_wxEvent(void *x) {
28965 return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x));
28966 }
28967 static void *_p_wxJoystickEventTo_p_wxEvent(void *x) {
28968 return (void *)((wxEvent *) ((wxJoystickEvent *) x));
28969 }
28970 static void *_p_wxIdleEventTo_p_wxEvent(void *x) {
28971 return (void *)((wxEvent *) ((wxIdleEvent *) x));
28972 }
28973 static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) {
28974 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x));
28975 }
28976 static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) {
28977 return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x));
28978 }
28979 static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) {
28980 return (void *)((wxEvent *) ((wxMaximizeEvent *) x));
28981 }
28982 static void *_p_wxIconizeEventTo_p_wxEvent(void *x) {
28983 return (void *)((wxEvent *) ((wxIconizeEvent *) x));
28984 }
28985 static void *_p_wxActivateEventTo_p_wxEvent(void *x) {
28986 return (void *)((wxEvent *) ((wxActivateEvent *) x));
28987 }
28988 static void *_p_wxSizeEventTo_p_wxEvent(void *x) {
28989 return (void *)((wxEvent *) ((wxSizeEvent *) x));
28990 }
28991 static void *_p_wxMoveEventTo_p_wxEvent(void *x) {
28992 return (void *)((wxEvent *) ((wxMoveEvent *) x));
28993 }
28994 static void *_p_wxPaintEventTo_p_wxEvent(void *x) {
28995 return (void *)((wxEvent *) ((wxPaintEvent *) x));
28996 }
28997 static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) {
28998 return (void *)((wxEvent *) ((wxNcPaintEvent *) x));
28999 }
29000 static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) {
29001 return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x));
29002 }
29003 static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) {
29004 return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x));
29005 }
29006 static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) {
29007 return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x));
29008 }
29009 static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) {
29010 return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x));
29011 }
29012 static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) {
29013 return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x));
29014 }
29015 static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) {
29016 return (void *)((wxEvent *) ((wxDropFilesEvent *) x));
29017 }
29018 static void *_p_wxFocusEventTo_p_wxEvent(void *x) {
29019 return (void *)((wxEvent *) ((wxFocusEvent *) x));
29020 }
29021 static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) {
29022 return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x));
29023 }
29024 static void *_p_wxProcessEventTo_p_wxEvent(void *x) {
29025 return (void *)((wxEvent *) ((wxProcessEvent *) x));
29026 }
29027 static void *_p_wxShowEventTo_p_wxEvent(void *x) {
29028 return (void *)((wxEvent *) ((wxShowEvent *) x));
29029 }
29030 static void *_p_wxCommandEventTo_p_wxEvent(void *x) {
29031 return (void *)((wxEvent *) ((wxCommandEvent *) x));
29032 }
29033 static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) {
29034 return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x));
29035 }
29036 static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) {
29037 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x));
29038 }
29039 static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) {
29040 return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x));
29041 }
29042 static void *_p_wxKeyEventTo_p_wxEvent(void *x) {
29043 return (void *)((wxEvent *) ((wxKeyEvent *) x));
29044 }
29045 static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) {
29046 return (void *)((wxEvent *) ((wxScrollWinEvent *) x));
29047 }
29048 static void *_p_wxFileConfigTo_p_wxConfigBase(void *x) {
29049 return (void *)((wxConfigBase *) ((wxFileConfig *) x));
29050 }
29051 static void *_p_wxConfigTo_p_wxConfigBase(void *x) {
29052 return (void *)((wxConfigBase *) ((wxConfig *) x));
29053 }
29054 static void *_p_wxPyBitmapDataObjectTo_p_wxBitmapDataObject(void *x) {
29055 return (void *)((wxBitmapDataObject *) ((wxPyBitmapDataObject *) x));
29056 }
29057 static void *_p_wxPyTextDataObjectTo_p_wxTextDataObject(void *x) {
29058 return (void *)((wxTextDataObject *) ((wxPyTextDataObject *) x));
29059 }
29060 static void *_p_wxDataObjectSimpleTo_p_wxDataObject(void *x) {
29061 return (void *)((wxDataObject *) ((wxDataObjectSimple *) x));
29062 }
29063 static void *_p_wxPyDataObjectSimpleTo_p_wxDataObject(void *x) {
29064 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxPyDataObjectSimple *) x));
29065 }
29066 static void *_p_wxDataObjectCompositeTo_p_wxDataObject(void *x) {
29067 return (void *)((wxDataObject *) ((wxDataObjectComposite *) x));
29068 }
29069 static void *_p_wxTextDataObjectTo_p_wxDataObject(void *x) {
29070 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxTextDataObject *) x));
29071 }
29072 static void *_p_wxPyTextDataObjectTo_p_wxDataObject(void *x) {
29073 return (void *)((wxDataObject *) (wxDataObjectSimple *)(wxTextDataObject *) ((wxPyTextDataObject *) x));
29074 }
29075 static void *_p_wxBitmapDataObjectTo_p_wxDataObject(void *x) {
29076 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxBitmapDataObject *) x));
29077 }
29078 static void *_p_wxPyBitmapDataObjectTo_p_wxDataObject(void *x) {
29079 return (void *)((wxDataObject *) (wxDataObjectSimple *)(wxBitmapDataObject *) ((wxPyBitmapDataObject *) x));
29080 }
29081 static void *_p_wxFileDataObjectTo_p_wxDataObject(void *x) {
29082 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxFileDataObject *) x));
29083 }
29084 static void *_p_wxCustomDataObjectTo_p_wxDataObject(void *x) {
29085 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxCustomDataObject *) x));
29086 }
29087 static void *_p_wxURLDataObjectTo_p_wxDataObject(void *x) {
29088 return (void *)((wxDataObject *) (wxDataObjectComposite *) ((wxURLDataObject *) x));
29089 }
29090 static void *_p_wxMetafileDataObjectTo_p_wxDataObject(void *x) {
29091 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxMetafileDataObject *) x));
29092 }
29093 static void *_p_wxURLDataObjectTo_p_wxDataObjectComposite(void *x) {
29094 return (void *)((wxDataObjectComposite *) ((wxURLDataObject *) x));
29095 }
29096 static void *_p_wxPyDataObjectSimpleTo_p_wxDataObjectSimple(void *x) {
29097 return (void *)((wxDataObjectSimple *) ((wxPyDataObjectSimple *) x));
29098 }
29099 static void *_p_wxTextDataObjectTo_p_wxDataObjectSimple(void *x) {
29100 return (void *)((wxDataObjectSimple *) ((wxTextDataObject *) x));
29101 }
29102 static void *_p_wxPyTextDataObjectTo_p_wxDataObjectSimple(void *x) {
29103 return (void *)((wxDataObjectSimple *) (wxTextDataObject *) ((wxPyTextDataObject *) x));
29104 }
29105 static void *_p_wxBitmapDataObjectTo_p_wxDataObjectSimple(void *x) {
29106 return (void *)((wxDataObjectSimple *) ((wxBitmapDataObject *) x));
29107 }
29108 static void *_p_wxPyBitmapDataObjectTo_p_wxDataObjectSimple(void *x) {
29109 return (void *)((wxDataObjectSimple *) (wxBitmapDataObject *) ((wxPyBitmapDataObject *) x));
29110 }
29111 static void *_p_wxFileDataObjectTo_p_wxDataObjectSimple(void *x) {
29112 return (void *)((wxDataObjectSimple *) ((wxFileDataObject *) x));
29113 }
29114 static void *_p_wxCustomDataObjectTo_p_wxDataObjectSimple(void *x) {
29115 return (void *)((wxDataObjectSimple *) ((wxCustomDataObject *) x));
29116 }
29117 static void *_p_wxMetafileDataObjectTo_p_wxDataObjectSimple(void *x) {
29118 return (void *)((wxDataObjectSimple *) ((wxMetafileDataObject *) x));
29119 }
29120 static void *_p_wxControlTo_p_wxEvtHandler(void *x) {
29121 return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x));
29122 }
29123 static void *_p_wxWindowTo_p_wxEvtHandler(void *x) {
29124 return (void *)((wxEvtHandler *) ((wxWindow *) x));
29125 }
29126 static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) {
29127 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x));
29128 }
29129 static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) {
29130 return (void *)((wxEvtHandler *) ((wxPyApp *) x));
29131 }
29132 static void *_p_wxPyTimerTo_p_wxEvtHandler(void *x) {
29133 return (void *)((wxEvtHandler *) ((wxPyTimer *) x));
29134 }
29135 static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) {
29136 return (void *)((wxEvtHandler *) ((wxValidator *) x));
29137 }
29138 static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) {
29139 return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x));
29140 }
29141 static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) {
29142 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x));
29143 }
29144 static void *_p_wxMenuTo_p_wxEvtHandler(void *x) {
29145 return (void *)((wxEvtHandler *) ((wxMenu *) x));
29146 }
29147 static void *_p_wxPyProcessTo_p_wxEvtHandler(void *x) {
29148 return (void *)((wxEvtHandler *) ((wxPyProcess *) x));
29149 }
29150 static void *_p_wxPyTipProviderTo_p_wxTipProvider(void *x) {
29151 return (void *)((wxTipProvider *) ((wxPyTipProvider *) x));
29152 }
29153 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
29154 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
29155 }
29156 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
29157 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
29158 }
29159 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
29160 return (void *)((wxObject *) ((wxSizerItem *) x));
29161 }
29162 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
29163 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
29164 }
29165 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
29166 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
29167 }
29168 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
29169 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
29170 }
29171 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
29172 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
29173 }
29174 static void *_p_wxSizerTo_p_wxObject(void *x) {
29175 return (void *)((wxObject *) ((wxSizer *) x));
29176 }
29177 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
29178 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
29179 }
29180 static void *_p_wxFileHistoryTo_p_wxObject(void *x) {
29181 return (void *)((wxObject *) ((wxFileHistory *) x));
29182 }
29183 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
29184 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
29185 }
29186 static void *_p_wxEventTo_p_wxObject(void *x) {
29187 return (void *)((wxObject *) ((wxEvent *) x));
29188 }
29189 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
29190 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
29191 }
29192 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
29193 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
29194 }
29195 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
29196 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
29197 }
29198 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
29199 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
29200 }
29201 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
29202 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
29203 }
29204 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
29205 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
29206 }
29207 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
29208 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
29209 }
29210 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
29211 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
29212 }
29213 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
29214 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
29215 }
29216 static void *_p_wxControlTo_p_wxObject(void *x) {
29217 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
29218 }
29219 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
29220 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
29221 }
29222 static void *_p_wxTimerEventTo_p_wxObject(void *x) {
29223 return (void *)((wxObject *) (wxEvent *) ((wxTimerEvent *) x));
29224 }
29225 static void *_p_wxFSFileTo_p_wxObject(void *x) {
29226 return (void *)((wxObject *) ((wxFSFile *) x));
29227 }
29228 static void *_p_wxClipboardTo_p_wxObject(void *x) {
29229 return (void *)((wxObject *) ((wxClipboard *) x));
29230 }
29231 static void *_p_wxPySizerTo_p_wxObject(void *x) {
29232 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
29233 }
29234 static void *_p_wxPyEventTo_p_wxObject(void *x) {
29235 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
29236 }
29237 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
29238 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
29239 }
29240 static void *_p_wxShowEventTo_p_wxObject(void *x) {
29241 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
29242 }
29243 static void *_p_wxToolTipTo_p_wxObject(void *x) {
29244 return (void *)((wxObject *) ((wxToolTip *) x));
29245 }
29246 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
29247 return (void *)((wxObject *) ((wxMenuItem *) x));
29248 }
29249 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
29250 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
29251 }
29252 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
29253 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
29254 }
29255 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
29256 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
29257 }
29258 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
29259 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
29260 }
29261 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
29262 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
29263 }
29264 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
29265 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
29266 }
29267 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
29268 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
29269 }
29270 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
29271 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
29272 }
29273 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
29274 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
29275 }
29276 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
29277 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
29278 }
29279 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
29280 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
29281 }
29282 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
29283 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
29284 }
29285 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
29286 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
29287 }
29288 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
29289 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
29290 }
29291 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
29292 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
29293 }
29294 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
29295 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
29296 }
29297 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
29298 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
29299 }
29300 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
29301 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
29302 }
29303 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
29304 return (void *)((wxObject *) ((wxImageHandler *) x));
29305 }
29306 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
29307 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
29308 }
29309 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
29310 return (void *)((wxObject *) ((wxEvtHandler *) x));
29311 }
29312 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
29313 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
29314 }
29315 static void *_p_wxImageTo_p_wxObject(void *x) {
29316 return (void *)((wxObject *) ((wxImage *) x));
29317 }
29318 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
29319 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
29320 }
29321 static void *_p_wxSystemOptionsTo_p_wxObject(void *x) {
29322 return (void *)((wxObject *) ((wxSystemOptions *) x));
29323 }
29324 static void *_p_wxJoystickEventTo_p_wxObject(void *x) {
29325 return (void *)((wxObject *) (wxEvent *) ((wxJoystickEvent *) x));
29326 }
29327 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
29328 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
29329 }
29330 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
29331 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
29332 }
29333 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
29334 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
29335 }
29336 static void *_p_wxWindowTo_p_wxObject(void *x) {
29337 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
29338 }
29339 static void *_p_wxMenuTo_p_wxObject(void *x) {
29340 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
29341 }
29342 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
29343 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
29344 }
29345 static void *_p_wxPyProcessTo_p_wxObject(void *x) {
29346 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyProcess *) x));
29347 }
29348 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
29349 return (void *)((wxObject *) ((wxFileSystem *) x));
29350 }
29351 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
29352 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
29353 }
29354 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
29355 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
29356 }
29357 static void *_p_wxPyAppTo_p_wxObject(void *x) {
29358 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
29359 }
29360 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
29361 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
29362 }
29363 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
29364 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
29365 }
29366 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
29367 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
29368 }
29369 static void *_p_wxBusyInfoTo_p_wxObject(void *x) {
29370 return (void *)((wxObject *) ((wxBusyInfo *) x));
29371 }
29372 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
29373 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
29374 }
29375 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
29376 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
29377 }
29378 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
29379 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
29380 }
29381 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
29382 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
29383 }
29384 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
29385 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
29386 }
29387 static void *_p_wxProcessEventTo_p_wxObject(void *x) {
29388 return (void *)((wxObject *) (wxEvent *) ((wxProcessEvent *) x));
29389 }
29390 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
29391 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
29392 }
29393 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
29394 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
29395 }
29396 static void *_p_wxValidatorTo_p_wxObject(void *x) {
29397 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
29398 }
29399 static void *_p_wxPyTimerTo_p_wxObject(void *x) {
29400 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyTimer *) x));
29401 }
29402 static void *_p_wxLogStderrTo_p_wxLog(void *x) {
29403 return (void *)((wxLog *) ((wxLogStderr *) x));
29404 }
29405 static void *_p_wxLogTextCtrlTo_p_wxLog(void *x) {
29406 return (void *)((wxLog *) ((wxLogTextCtrl *) x));
29407 }
29408 static void *_p_wxLogWindowTo_p_wxLog(void *x) {
29409 return (void *)((wxLog *) ((wxLogWindow *) x));
29410 }
29411 static void *_p_wxLogChainTo_p_wxLog(void *x) {
29412 return (void *)((wxLog *) ((wxLogChain *) x));
29413 }
29414 static void *_p_wxLogGuiTo_p_wxLog(void *x) {
29415 return (void *)((wxLog *) ((wxLogGui *) x));
29416 }
29417 static void *_p_wxPyLogTo_p_wxLog(void *x) {
29418 return (void *)((wxLog *) ((wxPyLog *) x));
29419 }
29420 static void *_p_wxControlTo_p_wxWindow(void *x) {
29421 return (void *)((wxWindow *) ((wxControl *) x));
29422 }
29423 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
29424 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
29425 }
29426 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
29427 return (void *)((wxWindow *) ((wxMenuBar *) x));
29428 }
29429 static void *_p_wxPyTextDropTargetTo_p_wxPyDropTarget(void *x) {
29430 return (void *)((wxPyDropTarget *) ((wxPyTextDropTarget *) x));
29431 }
29432 static void *_p_wxPyFileDropTargetTo_p_wxPyDropTarget(void *x) {
29433 return (void *)((wxPyDropTarget *) ((wxPyFileDropTarget *) x));
29434 }
29435 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}};
29436 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}};
29437 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}};
29438 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}};
29439 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}};
29440 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}};
29441 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}};
29442 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}};
29443 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}};
29444 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}};
29445 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}};
29446 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}};
29447 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}};
29448 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}};
29449 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}};
29450 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}};
29451 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}};
29452 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}};
29453 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}};
29454 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}};
29455 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}};
29456 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}};
29457 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}};
29458 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}};
29459 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}};
29460 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}};
29461 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}};
29462 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}};
29463 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}};
29464 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}};
29465 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}};
29466 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}};
29467 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}};
29468 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}};
29469 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}};
29470 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}};
29471 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}};
29472 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}};
29473 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}};
29474 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}};
29475 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}};
29476 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}};
29477 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}};
29478 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}};
29479 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}};
29480 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}};
29481 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}};
29482 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}};
29483 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}};
29484 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}};
29485 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}};
29486 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}};
29487 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}};
29488 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}};
29489 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}};
29490 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}};
29491 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}};
29492 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}};
29493 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}};
29494 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}};
29495 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}};
29496 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}};
29497 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}};
29498 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}};
29499 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}};
29500 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}};
29501 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}};
29502 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}};
29503 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}};
29504 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}};
29505 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}};
29506 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}};
29507 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}};
29508 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}};
29509 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}};
29510 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}};
29511 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}};
29512 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}};
29513 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}};
29514 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}};
29515 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}};
29516 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}};
29517 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}};
29518 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}};
29519 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}};
29520 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}};
29521
29522 static swig_type_info *swig_types_initial[] = {
29523 _swigt__p_wxLogChain,
29524 _swigt__p_wxMutexGuiLocker,
29525 _swigt__p_wxMetafile,
29526 _swigt__p_wxFileHistory,
29527 _swigt__p_wxLog,
29528 _swigt__p_wxDateTime__TimeZone,
29529 _swigt__p_wxMenu,
29530 _swigt__p_wxEvent,
29531 _swigt__p_wxConfigBase,
29532 _swigt__p_wxDisplay,
29533 _swigt__p_wxFileType,
29534 _swigt__p_wxLogGui,
29535 _swigt__p_wxFont,
29536 _swigt__p_wxDataFormat,
29537 _swigt__p_wxTimerEvent,
29538 _swigt__p_wxCaret,
29539 _swigt__p_int,
29540 _swigt__p_wxSize,
29541 _swigt__p_wxClipboard,
29542 _swigt__p_wxStopWatch,
29543 _swigt__p_wxDC,
29544 _swigt__p_wxClipboardLocker,
29545 _swigt__p_wxIcon,
29546 _swigt__p_wxLogStderr,
29547 _swigt__p_wxLogTextCtrl,
29548 _swigt__p_wxTextCtrl,
29549 _swigt__p_wxBusyCursor,
29550 _swigt__p_wxPyBitmapDataObject,
29551 _swigt__p_wxPyTextDataObject,
29552 _swigt__p_wxBitmapDataObject,
29553 _swigt__p_wxTextDataObject,
29554 _swigt__p_wxDataObject,
29555 _swigt__p_wxFileDataObject,
29556 _swigt__p_wxCustomDataObject,
29557 _swigt__p_wxURLDataObject,
29558 _swigt__p_wxMetafileDataObject,
29559 _swigt__p_wxSound,
29560 _swigt__p_wxTimerRunner,
29561 _swigt__p_wxLogWindow,
29562 _swigt__p_wxTimeSpan,
29563 _swigt__p_wxArrayString,
29564 _swigt__p_wxWindowDisabler,
29565 _swigt__p_wxToolTip,
29566 _swigt__p_wxDataObjectComposite,
29567 _swigt__p_wxFileConfig,
29568 _swigt__p_wxSystemSettings,
29569 _swigt__p_wxVideoMode,
29570 _swigt__p_wxPyDataObjectSimple,
29571 _swigt__p_wxDataObjectSimple,
29572 _swigt__p_wxEvtHandler,
29573 _swigt__p_wxRect,
29574 _swigt__p_char,
29575 _swigt__p_wxSingleInstanceChecker,
29576 _swigt__p_wxFileTypeInfo,
29577 _swigt__p_wxFrame,
29578 _swigt__p_wxTimer,
29579 _swigt__p_wxMimeTypesManager,
29580 _swigt__p_wxPyArtProvider,
29581 _swigt__p_wxPyTipProvider,
29582 _swigt__p_wxTipProvider,
29583 _swigt__p_wxJoystick,
29584 _swigt__p_wxSystemOptions,
29585 _swigt__p_wxPoint,
29586 _swigt__p_wxJoystickEvent,
29587 _swigt__p_wxCursor,
29588 _swigt__p_wxObject,
29589 _swigt__p_wxOutputStream,
29590 _swigt__p_wxDateTime,
29591 _swigt__p_wxPyDropSource,
29592 _swigt__p_wxWindow,
29593 _swigt__p_wxString,
29594 _swigt__p_wxPyProcess,
29595 _swigt__p_wxBitmap,
29596 _swigt__p_wxConfig,
29597 _swigt__p_wxChar,
29598 _swigt__p_wxBusyInfo,
29599 _swigt__p_wxPyDropTarget,
29600 _swigt__p_wxPyTextDropTarget,
29601 _swigt__p_wxPyFileDropTarget,
29602 _swigt__p_wxProcessEvent,
29603 _swigt__p_wxPyLog,
29604 _swigt__p_wxLogNull,
29605 _swigt__p_wxColour,
29606 _swigt__p_wxConfigPathChanger,
29607 _swigt__p_wxPyTimer,
29608 _swigt__p_wxDateSpan,
29609 0
29610 };
29611
29612
29613 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
29614
29615 static swig_const_info swig_const_table[] = {
29616 { SWIG_PY_POINTER, (char*)"TRACE_MemAlloc", 0, 0, (void *)"memalloc", &SWIGTYPE_p_char},
29617 { SWIG_PY_POINTER, (char*)"TRACE_Messages", 0, 0, (void *)"messages", &SWIGTYPE_p_char},
29618 { SWIG_PY_POINTER, (char*)"TRACE_ResAlloc", 0, 0, (void *)"resalloc", &SWIGTYPE_p_char},
29619 { SWIG_PY_POINTER, (char*)"TRACE_RefCount", 0, 0, (void *)"refcount", &SWIGTYPE_p_char},
29620 { SWIG_PY_POINTER, (char*)"TRACE_OleCalls", 0, 0, (void *)"ole", &SWIGTYPE_p_char},
29621 {0}};
29622
29623 #ifdef __cplusplus
29624 }
29625 #endif
29626
29627 #ifdef __cplusplus
29628 extern "C"
29629 #endif
29630 SWIGEXPORT(void) SWIG_init(void) {
29631 static PyObject *SWIG_globals = 0;
29632 static int typeinit = 0;
29633 PyObject *m, *d;
29634 int i;
29635 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
29636 m = Py_InitModule((char *) SWIG_name, SwigMethods);
29637 d = PyModule_GetDict(m);
29638
29639 if (!typeinit) {
29640 for (i = 0; swig_types_initial[i]; i++) {
29641 swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
29642 }
29643 typeinit = 1;
29644 }
29645 SWIG_InstallConstants(d,swig_const_table);
29646
29647 PyDict_SetItemString(d,"SYS_OEM_FIXED_FONT", SWIG_FromInt((int)wxSYS_OEM_FIXED_FONT));
29648 PyDict_SetItemString(d,"SYS_ANSI_FIXED_FONT", SWIG_FromInt((int)wxSYS_ANSI_FIXED_FONT));
29649 PyDict_SetItemString(d,"SYS_ANSI_VAR_FONT", SWIG_FromInt((int)wxSYS_ANSI_VAR_FONT));
29650 PyDict_SetItemString(d,"SYS_SYSTEM_FONT", SWIG_FromInt((int)wxSYS_SYSTEM_FONT));
29651 PyDict_SetItemString(d,"SYS_DEVICE_DEFAULT_FONT", SWIG_FromInt((int)wxSYS_DEVICE_DEFAULT_FONT));
29652 PyDict_SetItemString(d,"SYS_DEFAULT_PALETTE", SWIG_FromInt((int)wxSYS_DEFAULT_PALETTE));
29653 PyDict_SetItemString(d,"SYS_SYSTEM_FIXED_FONT", SWIG_FromInt((int)wxSYS_SYSTEM_FIXED_FONT));
29654 PyDict_SetItemString(d,"SYS_DEFAULT_GUI_FONT", SWIG_FromInt((int)wxSYS_DEFAULT_GUI_FONT));
29655 PyDict_SetItemString(d,"SYS_ICONTITLE_FONT", SWIG_FromInt((int)wxSYS_ICONTITLE_FONT));
29656 PyDict_SetItemString(d,"SYS_COLOUR_SCROLLBAR", SWIG_FromInt((int)wxSYS_COLOUR_SCROLLBAR));
29657 PyDict_SetItemString(d,"SYS_COLOUR_BACKGROUND", SWIG_FromInt((int)wxSYS_COLOUR_BACKGROUND));
29658 PyDict_SetItemString(d,"SYS_COLOUR_DESKTOP", SWIG_FromInt((int)wxSYS_COLOUR_DESKTOP));
29659 PyDict_SetItemString(d,"SYS_COLOUR_ACTIVECAPTION", SWIG_FromInt((int)wxSYS_COLOUR_ACTIVECAPTION));
29660 PyDict_SetItemString(d,"SYS_COLOUR_INACTIVECAPTION", SWIG_FromInt((int)wxSYS_COLOUR_INACTIVECAPTION));
29661 PyDict_SetItemString(d,"SYS_COLOUR_MENU", SWIG_FromInt((int)wxSYS_COLOUR_MENU));
29662 PyDict_SetItemString(d,"SYS_COLOUR_WINDOW", SWIG_FromInt((int)wxSYS_COLOUR_WINDOW));
29663 PyDict_SetItemString(d,"SYS_COLOUR_WINDOWFRAME", SWIG_FromInt((int)wxSYS_COLOUR_WINDOWFRAME));
29664 PyDict_SetItemString(d,"SYS_COLOUR_MENUTEXT", SWIG_FromInt((int)wxSYS_COLOUR_MENUTEXT));
29665 PyDict_SetItemString(d,"SYS_COLOUR_WINDOWTEXT", SWIG_FromInt((int)wxSYS_COLOUR_WINDOWTEXT));
29666 PyDict_SetItemString(d,"SYS_COLOUR_CAPTIONTEXT", SWIG_FromInt((int)wxSYS_COLOUR_CAPTIONTEXT));
29667 PyDict_SetItemString(d,"SYS_COLOUR_ACTIVEBORDER", SWIG_FromInt((int)wxSYS_COLOUR_ACTIVEBORDER));
29668 PyDict_SetItemString(d,"SYS_COLOUR_INACTIVEBORDER", SWIG_FromInt((int)wxSYS_COLOUR_INACTIVEBORDER));
29669 PyDict_SetItemString(d,"SYS_COLOUR_APPWORKSPACE", SWIG_FromInt((int)wxSYS_COLOUR_APPWORKSPACE));
29670 PyDict_SetItemString(d,"SYS_COLOUR_HIGHLIGHT", SWIG_FromInt((int)wxSYS_COLOUR_HIGHLIGHT));
29671 PyDict_SetItemString(d,"SYS_COLOUR_HIGHLIGHTTEXT", SWIG_FromInt((int)wxSYS_COLOUR_HIGHLIGHTTEXT));
29672 PyDict_SetItemString(d,"SYS_COLOUR_BTNFACE", SWIG_FromInt((int)wxSYS_COLOUR_BTNFACE));
29673 PyDict_SetItemString(d,"SYS_COLOUR_3DFACE", SWIG_FromInt((int)wxSYS_COLOUR_3DFACE));
29674 PyDict_SetItemString(d,"SYS_COLOUR_BTNSHADOW", SWIG_FromInt((int)wxSYS_COLOUR_BTNSHADOW));
29675 PyDict_SetItemString(d,"SYS_COLOUR_3DSHADOW", SWIG_FromInt((int)wxSYS_COLOUR_3DSHADOW));
29676 PyDict_SetItemString(d,"SYS_COLOUR_GRAYTEXT", SWIG_FromInt((int)wxSYS_COLOUR_GRAYTEXT));
29677 PyDict_SetItemString(d,"SYS_COLOUR_BTNTEXT", SWIG_FromInt((int)wxSYS_COLOUR_BTNTEXT));
29678 PyDict_SetItemString(d,"SYS_COLOUR_INACTIVECAPTIONTEXT", SWIG_FromInt((int)wxSYS_COLOUR_INACTIVECAPTIONTEXT));
29679 PyDict_SetItemString(d,"SYS_COLOUR_BTNHIGHLIGHT", SWIG_FromInt((int)wxSYS_COLOUR_BTNHIGHLIGHT));
29680 PyDict_SetItemString(d,"SYS_COLOUR_BTNHILIGHT", SWIG_FromInt((int)wxSYS_COLOUR_BTNHILIGHT));
29681 PyDict_SetItemString(d,"SYS_COLOUR_3DHIGHLIGHT", SWIG_FromInt((int)wxSYS_COLOUR_3DHIGHLIGHT));
29682 PyDict_SetItemString(d,"SYS_COLOUR_3DHILIGHT", SWIG_FromInt((int)wxSYS_COLOUR_3DHILIGHT));
29683 PyDict_SetItemString(d,"SYS_COLOUR_3DDKSHADOW", SWIG_FromInt((int)wxSYS_COLOUR_3DDKSHADOW));
29684 PyDict_SetItemString(d,"SYS_COLOUR_3DLIGHT", SWIG_FromInt((int)wxSYS_COLOUR_3DLIGHT));
29685 PyDict_SetItemString(d,"SYS_COLOUR_INFOTEXT", SWIG_FromInt((int)wxSYS_COLOUR_INFOTEXT));
29686 PyDict_SetItemString(d,"SYS_COLOUR_INFOBK", SWIG_FromInt((int)wxSYS_COLOUR_INFOBK));
29687 PyDict_SetItemString(d,"SYS_COLOUR_LISTBOX", SWIG_FromInt((int)wxSYS_COLOUR_LISTBOX));
29688 PyDict_SetItemString(d,"SYS_COLOUR_HOTLIGHT", SWIG_FromInt((int)wxSYS_COLOUR_HOTLIGHT));
29689 PyDict_SetItemString(d,"SYS_COLOUR_GRADIENTACTIVECAPTION", SWIG_FromInt((int)wxSYS_COLOUR_GRADIENTACTIVECAPTION));
29690 PyDict_SetItemString(d,"SYS_COLOUR_GRADIENTINACTIVECAPTION", SWIG_FromInt((int)wxSYS_COLOUR_GRADIENTINACTIVECAPTION));
29691 PyDict_SetItemString(d,"SYS_COLOUR_MENUHILIGHT", SWIG_FromInt((int)wxSYS_COLOUR_MENUHILIGHT));
29692 PyDict_SetItemString(d,"SYS_COLOUR_MENUBAR", SWIG_FromInt((int)wxSYS_COLOUR_MENUBAR));
29693 PyDict_SetItemString(d,"SYS_COLOUR_MAX", SWIG_FromInt((int)wxSYS_COLOUR_MAX));
29694 PyDict_SetItemString(d,"SYS_MOUSE_BUTTONS", SWIG_FromInt((int)wxSYS_MOUSE_BUTTONS));
29695 PyDict_SetItemString(d,"SYS_BORDER_X", SWIG_FromInt((int)wxSYS_BORDER_X));
29696 PyDict_SetItemString(d,"SYS_BORDER_Y", SWIG_FromInt((int)wxSYS_BORDER_Y));
29697 PyDict_SetItemString(d,"SYS_CURSOR_X", SWIG_FromInt((int)wxSYS_CURSOR_X));
29698 PyDict_SetItemString(d,"SYS_CURSOR_Y", SWIG_FromInt((int)wxSYS_CURSOR_Y));
29699 PyDict_SetItemString(d,"SYS_DCLICK_X", SWIG_FromInt((int)wxSYS_DCLICK_X));
29700 PyDict_SetItemString(d,"SYS_DCLICK_Y", SWIG_FromInt((int)wxSYS_DCLICK_Y));
29701 PyDict_SetItemString(d,"SYS_DRAG_X", SWIG_FromInt((int)wxSYS_DRAG_X));
29702 PyDict_SetItemString(d,"SYS_DRAG_Y", SWIG_FromInt((int)wxSYS_DRAG_Y));
29703 PyDict_SetItemString(d,"SYS_EDGE_X", SWIG_FromInt((int)wxSYS_EDGE_X));
29704 PyDict_SetItemString(d,"SYS_EDGE_Y", SWIG_FromInt((int)wxSYS_EDGE_Y));
29705 PyDict_SetItemString(d,"SYS_HSCROLL_ARROW_X", SWIG_FromInt((int)wxSYS_HSCROLL_ARROW_X));
29706 PyDict_SetItemString(d,"SYS_HSCROLL_ARROW_Y", SWIG_FromInt((int)wxSYS_HSCROLL_ARROW_Y));
29707 PyDict_SetItemString(d,"SYS_HTHUMB_X", SWIG_FromInt((int)wxSYS_HTHUMB_X));
29708 PyDict_SetItemString(d,"SYS_ICON_X", SWIG_FromInt((int)wxSYS_ICON_X));
29709 PyDict_SetItemString(d,"SYS_ICON_Y", SWIG_FromInt((int)wxSYS_ICON_Y));
29710 PyDict_SetItemString(d,"SYS_ICONSPACING_X", SWIG_FromInt((int)wxSYS_ICONSPACING_X));
29711 PyDict_SetItemString(d,"SYS_ICONSPACING_Y", SWIG_FromInt((int)wxSYS_ICONSPACING_Y));
29712 PyDict_SetItemString(d,"SYS_WINDOWMIN_X", SWIG_FromInt((int)wxSYS_WINDOWMIN_X));
29713 PyDict_SetItemString(d,"SYS_WINDOWMIN_Y", SWIG_FromInt((int)wxSYS_WINDOWMIN_Y));
29714 PyDict_SetItemString(d,"SYS_SCREEN_X", SWIG_FromInt((int)wxSYS_SCREEN_X));
29715 PyDict_SetItemString(d,"SYS_SCREEN_Y", SWIG_FromInt((int)wxSYS_SCREEN_Y));
29716 PyDict_SetItemString(d,"SYS_FRAMESIZE_X", SWIG_FromInt((int)wxSYS_FRAMESIZE_X));
29717 PyDict_SetItemString(d,"SYS_FRAMESIZE_Y", SWIG_FromInt((int)wxSYS_FRAMESIZE_Y));
29718 PyDict_SetItemString(d,"SYS_SMALLICON_X", SWIG_FromInt((int)wxSYS_SMALLICON_X));
29719 PyDict_SetItemString(d,"SYS_SMALLICON_Y", SWIG_FromInt((int)wxSYS_SMALLICON_Y));
29720 PyDict_SetItemString(d,"SYS_HSCROLL_Y", SWIG_FromInt((int)wxSYS_HSCROLL_Y));
29721 PyDict_SetItemString(d,"SYS_VSCROLL_X", SWIG_FromInt((int)wxSYS_VSCROLL_X));
29722 PyDict_SetItemString(d,"SYS_VSCROLL_ARROW_X", SWIG_FromInt((int)wxSYS_VSCROLL_ARROW_X));
29723 PyDict_SetItemString(d,"SYS_VSCROLL_ARROW_Y", SWIG_FromInt((int)wxSYS_VSCROLL_ARROW_Y));
29724 PyDict_SetItemString(d,"SYS_VTHUMB_Y", SWIG_FromInt((int)wxSYS_VTHUMB_Y));
29725 PyDict_SetItemString(d,"SYS_CAPTION_Y", SWIG_FromInt((int)wxSYS_CAPTION_Y));
29726 PyDict_SetItemString(d,"SYS_MENU_Y", SWIG_FromInt((int)wxSYS_MENU_Y));
29727 PyDict_SetItemString(d,"SYS_NETWORK_PRESENT", SWIG_FromInt((int)wxSYS_NETWORK_PRESENT));
29728 PyDict_SetItemString(d,"SYS_PENWINDOWS_PRESENT", SWIG_FromInt((int)wxSYS_PENWINDOWS_PRESENT));
29729 PyDict_SetItemString(d,"SYS_SHOW_SOUNDS", SWIG_FromInt((int)wxSYS_SHOW_SOUNDS));
29730 PyDict_SetItemString(d,"SYS_SWAP_BUTTONS", SWIG_FromInt((int)wxSYS_SWAP_BUTTONS));
29731 PyDict_SetItemString(d,"SYS_CAN_DRAW_FRAME_DECORATIONS", SWIG_FromInt((int)wxSYS_CAN_DRAW_FRAME_DECORATIONS));
29732 PyDict_SetItemString(d,"SYS_CAN_ICONIZE_FRAME", SWIG_FromInt((int)wxSYS_CAN_ICONIZE_FRAME));
29733 PyDict_SetItemString(d,"SYS_SCREEN_NONE", SWIG_FromInt((int)wxSYS_SCREEN_NONE));
29734 PyDict_SetItemString(d,"SYS_SCREEN_TINY", SWIG_FromInt((int)wxSYS_SCREEN_TINY));
29735 PyDict_SetItemString(d,"SYS_SCREEN_PDA", SWIG_FromInt((int)wxSYS_SCREEN_PDA));
29736 PyDict_SetItemString(d,"SYS_SCREEN_SMALL", SWIG_FromInt((int)wxSYS_SCREEN_SMALL));
29737 PyDict_SetItemString(d,"SYS_SCREEN_DESKTOP", SWIG_FromInt((int)wxSYS_SCREEN_DESKTOP));
29738 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
29739 SWIG_addvarlink(SWIG_globals,(char*)"FileSelectorPromptStr",_wrap_FileSelectorPromptStr_get, _wrap_FileSelectorPromptStr_set);
29740 SWIG_addvarlink(SWIG_globals,(char*)"FileSelectorDefaultWildcardStr",_wrap_FileSelectorDefaultWildcardStr_get, _wrap_FileSelectorDefaultWildcardStr_set);
29741 SWIG_addvarlink(SWIG_globals,(char*)"DirSelectorPromptStr",_wrap_DirSelectorPromptStr_get, _wrap_DirSelectorPromptStr_set);
29742 PyDict_SetItemString(d,"SHUTDOWN_POWEROFF", SWIG_FromInt((int)wxSHUTDOWN_POWEROFF));
29743 PyDict_SetItemString(d,"SHUTDOWN_REBOOT", SWIG_FromInt((int)wxSHUTDOWN_REBOOT));
29744 PyDict_SetItemString(d,"TIMER_CONTINUOUS", SWIG_FromInt((int)wxTIMER_CONTINUOUS));
29745 PyDict_SetItemString(d,"TIMER_ONE_SHOT", SWIG_FromInt((int)wxTIMER_ONE_SHOT));
29746 PyDict_SetItemString(d, "wxEVT_TIMER", PyInt_FromLong(wxEVT_TIMER));
29747
29748 wxPyPtrTypeMap_Add("wxTimer", "wxPyTimer");
29749
29750 PyDict_SetItemString(d,"LOG_FatalError", SWIG_FromInt((int)wxLOG_FatalError));
29751 PyDict_SetItemString(d,"LOG_Error", SWIG_FromInt((int)wxLOG_Error));
29752 PyDict_SetItemString(d,"LOG_Warning", SWIG_FromInt((int)wxLOG_Warning));
29753 PyDict_SetItemString(d,"LOG_Message", SWIG_FromInt((int)wxLOG_Message));
29754 PyDict_SetItemString(d,"LOG_Status", SWIG_FromInt((int)wxLOG_Status));
29755 PyDict_SetItemString(d,"LOG_Info", SWIG_FromInt((int)wxLOG_Info));
29756 PyDict_SetItemString(d,"LOG_Debug", SWIG_FromInt((int)wxLOG_Debug));
29757 PyDict_SetItemString(d,"LOG_Trace", SWIG_FromInt((int)wxLOG_Trace));
29758 PyDict_SetItemString(d,"LOG_Progress", SWIG_FromInt((int)wxLOG_Progress));
29759 PyDict_SetItemString(d,"LOG_User", SWIG_FromInt((int)wxLOG_User));
29760 PyDict_SetItemString(d,"LOG_Max", SWIG_FromInt((int)wxLOG_Max));
29761 PyDict_SetItemString(d,"TRACE_MemAlloc", SWIG_FromCharPtr("memalloc"));
29762 PyDict_SetItemString(d,"TRACE_Messages", SWIG_FromCharPtr("messages"));
29763 PyDict_SetItemString(d,"TRACE_ResAlloc", SWIG_FromCharPtr("resalloc"));
29764 PyDict_SetItemString(d,"TRACE_RefCount", SWIG_FromCharPtr("refcount"));
29765 PyDict_SetItemString(d,"TRACE_OleCalls", SWIG_FromCharPtr("ole"));
29766 PyDict_SetItemString(d,"TraceMemAlloc", SWIG_FromInt((int)0x0001));
29767 PyDict_SetItemString(d,"TraceMessages", SWIG_FromInt((int)0x0002));
29768 PyDict_SetItemString(d,"TraceResAlloc", SWIG_FromInt((int)0x0004));
29769 PyDict_SetItemString(d,"TraceRefCount", SWIG_FromInt((int)0x0008));
29770 PyDict_SetItemString(d,"TraceOleCalls", SWIG_FromInt((int)0x0100));
29771 PyDict_SetItemString(d,"PROCESS_DEFAULT", SWIG_FromInt((int)wxPROCESS_DEFAULT));
29772 PyDict_SetItemString(d,"PROCESS_REDIRECT", SWIG_FromInt((int)wxPROCESS_REDIRECT));
29773 PyDict_SetItemString(d,"KILL_OK", SWIG_FromInt((int)wxKILL_OK));
29774 PyDict_SetItemString(d,"KILL_BAD_SIGNAL", SWIG_FromInt((int)wxKILL_BAD_SIGNAL));
29775 PyDict_SetItemString(d,"KILL_ACCESS_DENIED", SWIG_FromInt((int)wxKILL_ACCESS_DENIED));
29776 PyDict_SetItemString(d,"KILL_NO_PROCESS", SWIG_FromInt((int)wxKILL_NO_PROCESS));
29777 PyDict_SetItemString(d,"KILL_ERROR", SWIG_FromInt((int)wxKILL_ERROR));
29778 PyDict_SetItemString(d,"SIGNONE", SWIG_FromInt((int)wxSIGNONE));
29779 PyDict_SetItemString(d,"SIGHUP", SWIG_FromInt((int)wxSIGHUP));
29780 PyDict_SetItemString(d,"SIGINT", SWIG_FromInt((int)wxSIGINT));
29781 PyDict_SetItemString(d,"SIGQUIT", SWIG_FromInt((int)wxSIGQUIT));
29782 PyDict_SetItemString(d,"SIGILL", SWIG_FromInt((int)wxSIGILL));
29783 PyDict_SetItemString(d,"SIGTRAP", SWIG_FromInt((int)wxSIGTRAP));
29784 PyDict_SetItemString(d,"SIGABRT", SWIG_FromInt((int)wxSIGABRT));
29785 PyDict_SetItemString(d,"SIGIOT", SWIG_FromInt((int)wxSIGIOT));
29786 PyDict_SetItemString(d,"SIGEMT", SWIG_FromInt((int)wxSIGEMT));
29787 PyDict_SetItemString(d,"SIGFPE", SWIG_FromInt((int)wxSIGFPE));
29788 PyDict_SetItemString(d,"SIGKILL", SWIG_FromInt((int)wxSIGKILL));
29789 PyDict_SetItemString(d,"SIGBUS", SWIG_FromInt((int)wxSIGBUS));
29790 PyDict_SetItemString(d,"SIGSEGV", SWIG_FromInt((int)wxSIGSEGV));
29791 PyDict_SetItemString(d,"SIGSYS", SWIG_FromInt((int)wxSIGSYS));
29792 PyDict_SetItemString(d,"SIGPIPE", SWIG_FromInt((int)wxSIGPIPE));
29793 PyDict_SetItemString(d,"SIGALRM", SWIG_FromInt((int)wxSIGALRM));
29794 PyDict_SetItemString(d,"SIGTERM", SWIG_FromInt((int)wxSIGTERM));
29795 PyDict_SetItemString(d, "wxEVT_END_PROCESS", PyInt_FromLong(wxEVT_END_PROCESS));
29796 PyDict_SetItemString(d,"EXEC_ASYNC", SWIG_FromInt((int)wxEXEC_ASYNC));
29797 PyDict_SetItemString(d,"EXEC_SYNC", SWIG_FromInt((int)wxEXEC_SYNC));
29798 PyDict_SetItemString(d,"EXEC_NOHIDE", SWIG_FromInt((int)wxEXEC_NOHIDE));
29799 PyDict_SetItemString(d,"EXEC_MAKE_GROUP_LEADER", SWIG_FromInt((int)wxEXEC_MAKE_GROUP_LEADER));
29800
29801 wxPyPtrTypeMap_Add("wxProcess", "wxPyProcess");
29802
29803 PyDict_SetItemString(d,"JOYSTICK1", SWIG_FromInt((int)wxJOYSTICK1));
29804 PyDict_SetItemString(d,"JOYSTICK2", SWIG_FromInt((int)wxJOYSTICK2));
29805 PyDict_SetItemString(d,"JOY_BUTTON_ANY", SWIG_FromInt((int)wxJOY_BUTTON_ANY));
29806 PyDict_SetItemString(d,"JOY_BUTTON1", SWIG_FromInt((int)wxJOY_BUTTON1));
29807 PyDict_SetItemString(d,"JOY_BUTTON2", SWIG_FromInt((int)wxJOY_BUTTON2));
29808 PyDict_SetItemString(d,"JOY_BUTTON3", SWIG_FromInt((int)wxJOY_BUTTON3));
29809 PyDict_SetItemString(d,"JOY_BUTTON4", SWIG_FromInt((int)wxJOY_BUTTON4));
29810 PyDict_SetItemString(d, "wxEVT_JOY_BUTTON_DOWN", PyInt_FromLong(wxEVT_JOY_BUTTON_DOWN));
29811 PyDict_SetItemString(d, "wxEVT_JOY_BUTTON_UP", PyInt_FromLong(wxEVT_JOY_BUTTON_UP));
29812 PyDict_SetItemString(d, "wxEVT_JOY_MOVE", PyInt_FromLong(wxEVT_JOY_MOVE));
29813 PyDict_SetItemString(d, "wxEVT_JOY_ZMOVE", PyInt_FromLong(wxEVT_JOY_ZMOVE));
29814 PyDict_SetItemString(d,"SOUND_SYNC", SWIG_FromInt((int)wxSOUND_SYNC));
29815 PyDict_SetItemString(d,"SOUND_ASYNC", SWIG_FromInt((int)wxSOUND_ASYNC));
29816 PyDict_SetItemString(d,"SOUND_LOOP", SWIG_FromInt((int)wxSOUND_LOOP));
29817 PyDict_SetItemString(d,"MAILCAP_STANDARD", SWIG_FromInt((int)wxMAILCAP_STANDARD));
29818 PyDict_SetItemString(d,"MAILCAP_NETSCAPE", SWIG_FromInt((int)wxMAILCAP_NETSCAPE));
29819 PyDict_SetItemString(d,"MAILCAP_KDE", SWIG_FromInt((int)wxMAILCAP_KDE));
29820 PyDict_SetItemString(d,"MAILCAP_GNOME", SWIG_FromInt((int)wxMAILCAP_GNOME));
29821 PyDict_SetItemString(d,"MAILCAP_ALL", SWIG_FromInt((int)wxMAILCAP_ALL));
29822 SWIG_addvarlink(SWIG_globals,(char*)"TheMimeTypesManager",_wrap_TheMimeTypesManager_get, _wrap_TheMimeTypesManager_set);
29823 SWIG_addvarlink(SWIG_globals,(char*)"ART_TOOLBAR",_wrap_ART_TOOLBAR_get, _wrap_ART_TOOLBAR_set);
29824 SWIG_addvarlink(SWIG_globals,(char*)"ART_MENU",_wrap_ART_MENU_get, _wrap_ART_MENU_set);
29825 SWIG_addvarlink(SWIG_globals,(char*)"ART_FRAME_ICON",_wrap_ART_FRAME_ICON_get, _wrap_ART_FRAME_ICON_set);
29826 SWIG_addvarlink(SWIG_globals,(char*)"ART_CMN_DIALOG",_wrap_ART_CMN_DIALOG_get, _wrap_ART_CMN_DIALOG_set);
29827 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_BROWSER",_wrap_ART_HELP_BROWSER_get, _wrap_ART_HELP_BROWSER_set);
29828 SWIG_addvarlink(SWIG_globals,(char*)"ART_MESSAGE_BOX",_wrap_ART_MESSAGE_BOX_get, _wrap_ART_MESSAGE_BOX_set);
29829 SWIG_addvarlink(SWIG_globals,(char*)"ART_OTHER",_wrap_ART_OTHER_get, _wrap_ART_OTHER_set);
29830 SWIG_addvarlink(SWIG_globals,(char*)"ART_ADD_BOOKMARK",_wrap_ART_ADD_BOOKMARK_get, _wrap_ART_ADD_BOOKMARK_set);
29831 SWIG_addvarlink(SWIG_globals,(char*)"ART_DEL_BOOKMARK",_wrap_ART_DEL_BOOKMARK_get, _wrap_ART_DEL_BOOKMARK_set);
29832 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_SIDE_PANEL",_wrap_ART_HELP_SIDE_PANEL_get, _wrap_ART_HELP_SIDE_PANEL_set);
29833 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_SETTINGS",_wrap_ART_HELP_SETTINGS_get, _wrap_ART_HELP_SETTINGS_set);
29834 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_BOOK",_wrap_ART_HELP_BOOK_get, _wrap_ART_HELP_BOOK_set);
29835 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_FOLDER",_wrap_ART_HELP_FOLDER_get, _wrap_ART_HELP_FOLDER_set);
29836 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_PAGE",_wrap_ART_HELP_PAGE_get, _wrap_ART_HELP_PAGE_set);
29837 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_BACK",_wrap_ART_GO_BACK_get, _wrap_ART_GO_BACK_set);
29838 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_FORWARD",_wrap_ART_GO_FORWARD_get, _wrap_ART_GO_FORWARD_set);
29839 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_UP",_wrap_ART_GO_UP_get, _wrap_ART_GO_UP_set);
29840 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_DOWN",_wrap_ART_GO_DOWN_get, _wrap_ART_GO_DOWN_set);
29841 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_TO_PARENT",_wrap_ART_GO_TO_PARENT_get, _wrap_ART_GO_TO_PARENT_set);
29842 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_HOME",_wrap_ART_GO_HOME_get, _wrap_ART_GO_HOME_set);
29843 SWIG_addvarlink(SWIG_globals,(char*)"ART_FILE_OPEN",_wrap_ART_FILE_OPEN_get, _wrap_ART_FILE_OPEN_set);
29844 SWIG_addvarlink(SWIG_globals,(char*)"ART_PRINT",_wrap_ART_PRINT_get, _wrap_ART_PRINT_set);
29845 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP",_wrap_ART_HELP_get, _wrap_ART_HELP_set);
29846 SWIG_addvarlink(SWIG_globals,(char*)"ART_TIP",_wrap_ART_TIP_get, _wrap_ART_TIP_set);
29847 SWIG_addvarlink(SWIG_globals,(char*)"ART_REPORT_VIEW",_wrap_ART_REPORT_VIEW_get, _wrap_ART_REPORT_VIEW_set);
29848 SWIG_addvarlink(SWIG_globals,(char*)"ART_LIST_VIEW",_wrap_ART_LIST_VIEW_get, _wrap_ART_LIST_VIEW_set);
29849 SWIG_addvarlink(SWIG_globals,(char*)"ART_NEW_DIR",_wrap_ART_NEW_DIR_get, _wrap_ART_NEW_DIR_set);
29850 SWIG_addvarlink(SWIG_globals,(char*)"ART_FOLDER",_wrap_ART_FOLDER_get, _wrap_ART_FOLDER_set);
29851 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_DIR_UP",_wrap_ART_GO_DIR_UP_get, _wrap_ART_GO_DIR_UP_set);
29852 SWIG_addvarlink(SWIG_globals,(char*)"ART_EXECUTABLE_FILE",_wrap_ART_EXECUTABLE_FILE_get, _wrap_ART_EXECUTABLE_FILE_set);
29853 SWIG_addvarlink(SWIG_globals,(char*)"ART_NORMAL_FILE",_wrap_ART_NORMAL_FILE_get, _wrap_ART_NORMAL_FILE_set);
29854 SWIG_addvarlink(SWIG_globals,(char*)"ART_TICK_MARK",_wrap_ART_TICK_MARK_get, _wrap_ART_TICK_MARK_set);
29855 SWIG_addvarlink(SWIG_globals,(char*)"ART_CROSS_MARK",_wrap_ART_CROSS_MARK_get, _wrap_ART_CROSS_MARK_set);
29856 SWIG_addvarlink(SWIG_globals,(char*)"ART_ERROR",_wrap_ART_ERROR_get, _wrap_ART_ERROR_set);
29857 SWIG_addvarlink(SWIG_globals,(char*)"ART_QUESTION",_wrap_ART_QUESTION_get, _wrap_ART_QUESTION_set);
29858 SWIG_addvarlink(SWIG_globals,(char*)"ART_WARNING",_wrap_ART_WARNING_get, _wrap_ART_WARNING_set);
29859 SWIG_addvarlink(SWIG_globals,(char*)"ART_INFORMATION",_wrap_ART_INFORMATION_get, _wrap_ART_INFORMATION_set);
29860 SWIG_addvarlink(SWIG_globals,(char*)"ART_MISSING_IMAGE",_wrap_ART_MISSING_IMAGE_get, _wrap_ART_MISSING_IMAGE_set);
29861
29862 wxPyPtrTypeMap_Add("wxArtProvider", "wxPyArtProvider");
29863
29864 PyDict_SetItemString(d,"CONFIG_USE_LOCAL_FILE", SWIG_FromInt((int)wxCONFIG_USE_LOCAL_FILE));
29865 PyDict_SetItemString(d,"CONFIG_USE_GLOBAL_FILE", SWIG_FromInt((int)wxCONFIG_USE_GLOBAL_FILE));
29866 PyDict_SetItemString(d,"CONFIG_USE_RELATIVE_PATH", SWIG_FromInt((int)wxCONFIG_USE_RELATIVE_PATH));
29867 PyDict_SetItemString(d,"CONFIG_USE_NO_ESCAPE_CHARACTERS", SWIG_FromInt((int)wxCONFIG_USE_NO_ESCAPE_CHARACTERS));
29868 PyDict_SetItemString(d,"ConfigBase_Type_Unknown", SWIG_FromInt((int)wxConfigBase::Type_Unknown));
29869 PyDict_SetItemString(d,"ConfigBase_Type_String", SWIG_FromInt((int)wxConfigBase::Type_String));
29870 PyDict_SetItemString(d,"ConfigBase_Type_Boolean", SWIG_FromInt((int)wxConfigBase::Type_Boolean));
29871 PyDict_SetItemString(d,"ConfigBase_Type_Integer", SWIG_FromInt((int)wxConfigBase::Type_Integer));
29872 PyDict_SetItemString(d,"ConfigBase_Type_Float", SWIG_FromInt((int)wxConfigBase::Type_Float));
29873 SWIG_addvarlink(SWIG_globals,(char*)"DateFormatStr",_wrap_DateFormatStr_get, _wrap_DateFormatStr_set);
29874 SWIG_addvarlink(SWIG_globals,(char*)"TimeSpanFormatStr",_wrap_TimeSpanFormatStr_get, _wrap_TimeSpanFormatStr_set);
29875 PyDict_SetItemString(d,"DateTime_Local", SWIG_FromInt((int)wxDateTime::Local));
29876 PyDict_SetItemString(d,"DateTime_GMT_12", SWIG_FromInt((int)wxDateTime::GMT_12));
29877 PyDict_SetItemString(d,"DateTime_GMT_11", SWIG_FromInt((int)wxDateTime::GMT_11));
29878 PyDict_SetItemString(d,"DateTime_GMT_10", SWIG_FromInt((int)wxDateTime::GMT_10));
29879 PyDict_SetItemString(d,"DateTime_GMT_9", SWIG_FromInt((int)wxDateTime::GMT_9));
29880 PyDict_SetItemString(d,"DateTime_GMT_8", SWIG_FromInt((int)wxDateTime::GMT_8));
29881 PyDict_SetItemString(d,"DateTime_GMT_7", SWIG_FromInt((int)wxDateTime::GMT_7));
29882 PyDict_SetItemString(d,"DateTime_GMT_6", SWIG_FromInt((int)wxDateTime::GMT_6));
29883 PyDict_SetItemString(d,"DateTime_GMT_5", SWIG_FromInt((int)wxDateTime::GMT_5));
29884 PyDict_SetItemString(d,"DateTime_GMT_4", SWIG_FromInt((int)wxDateTime::GMT_4));
29885 PyDict_SetItemString(d,"DateTime_GMT_3", SWIG_FromInt((int)wxDateTime::GMT_3));
29886 PyDict_SetItemString(d,"DateTime_GMT_2", SWIG_FromInt((int)wxDateTime::GMT_2));
29887 PyDict_SetItemString(d,"DateTime_GMT_1", SWIG_FromInt((int)wxDateTime::GMT_1));
29888 PyDict_SetItemString(d,"DateTime_GMT0", SWIG_FromInt((int)wxDateTime::GMT0));
29889 PyDict_SetItemString(d,"DateTime_GMT1", SWIG_FromInt((int)wxDateTime::GMT1));
29890 PyDict_SetItemString(d,"DateTime_GMT2", SWIG_FromInt((int)wxDateTime::GMT2));
29891 PyDict_SetItemString(d,"DateTime_GMT3", SWIG_FromInt((int)wxDateTime::GMT3));
29892 PyDict_SetItemString(d,"DateTime_GMT4", SWIG_FromInt((int)wxDateTime::GMT4));
29893 PyDict_SetItemString(d,"DateTime_GMT5", SWIG_FromInt((int)wxDateTime::GMT5));
29894 PyDict_SetItemString(d,"DateTime_GMT6", SWIG_FromInt((int)wxDateTime::GMT6));
29895 PyDict_SetItemString(d,"DateTime_GMT7", SWIG_FromInt((int)wxDateTime::GMT7));
29896 PyDict_SetItemString(d,"DateTime_GMT8", SWIG_FromInt((int)wxDateTime::GMT8));
29897 PyDict_SetItemString(d,"DateTime_GMT9", SWIG_FromInt((int)wxDateTime::GMT9));
29898 PyDict_SetItemString(d,"DateTime_GMT10", SWIG_FromInt((int)wxDateTime::GMT10));
29899 PyDict_SetItemString(d,"DateTime_GMT11", SWIG_FromInt((int)wxDateTime::GMT11));
29900 PyDict_SetItemString(d,"DateTime_GMT12", SWIG_FromInt((int)wxDateTime::GMT12));
29901 PyDict_SetItemString(d,"DateTime_WET", SWIG_FromInt((int)wxDateTime::WET));
29902 PyDict_SetItemString(d,"DateTime_WEST", SWIG_FromInt((int)wxDateTime::WEST));
29903 PyDict_SetItemString(d,"DateTime_CET", SWIG_FromInt((int)wxDateTime::CET));
29904 PyDict_SetItemString(d,"DateTime_CEST", SWIG_FromInt((int)wxDateTime::CEST));
29905 PyDict_SetItemString(d,"DateTime_EET", SWIG_FromInt((int)wxDateTime::EET));
29906 PyDict_SetItemString(d,"DateTime_EEST", SWIG_FromInt((int)wxDateTime::EEST));
29907 PyDict_SetItemString(d,"DateTime_MSK", SWIG_FromInt((int)wxDateTime::MSK));
29908 PyDict_SetItemString(d,"DateTime_MSD", SWIG_FromInt((int)wxDateTime::MSD));
29909 PyDict_SetItemString(d,"DateTime_AST", SWIG_FromInt((int)wxDateTime::AST));
29910 PyDict_SetItemString(d,"DateTime_ADT", SWIG_FromInt((int)wxDateTime::ADT));
29911 PyDict_SetItemString(d,"DateTime_EST", SWIG_FromInt((int)wxDateTime::EST));
29912 PyDict_SetItemString(d,"DateTime_EDT", SWIG_FromInt((int)wxDateTime::EDT));
29913 PyDict_SetItemString(d,"DateTime_CST", SWIG_FromInt((int)wxDateTime::CST));
29914 PyDict_SetItemString(d,"DateTime_CDT", SWIG_FromInt((int)wxDateTime::CDT));
29915 PyDict_SetItemString(d,"DateTime_MST", SWIG_FromInt((int)wxDateTime::MST));
29916 PyDict_SetItemString(d,"DateTime_MDT", SWIG_FromInt((int)wxDateTime::MDT));
29917 PyDict_SetItemString(d,"DateTime_PST", SWIG_FromInt((int)wxDateTime::PST));
29918 PyDict_SetItemString(d,"DateTime_PDT", SWIG_FromInt((int)wxDateTime::PDT));
29919 PyDict_SetItemString(d,"DateTime_HST", SWIG_FromInt((int)wxDateTime::HST));
29920 PyDict_SetItemString(d,"DateTime_AKST", SWIG_FromInt((int)wxDateTime::AKST));
29921 PyDict_SetItemString(d,"DateTime_AKDT", SWIG_FromInt((int)wxDateTime::AKDT));
29922 PyDict_SetItemString(d,"DateTime_A_WST", SWIG_FromInt((int)wxDateTime::A_WST));
29923 PyDict_SetItemString(d,"DateTime_A_CST", SWIG_FromInt((int)wxDateTime::A_CST));
29924 PyDict_SetItemString(d,"DateTime_A_EST", SWIG_FromInt((int)wxDateTime::A_EST));
29925 PyDict_SetItemString(d,"DateTime_A_ESST", SWIG_FromInt((int)wxDateTime::A_ESST));
29926 PyDict_SetItemString(d,"DateTime_UTC", SWIG_FromInt((int)wxDateTime::UTC));
29927 PyDict_SetItemString(d,"DateTime_Gregorian", SWIG_FromInt((int)wxDateTime::Gregorian));
29928 PyDict_SetItemString(d,"DateTime_Julian", SWIG_FromInt((int)wxDateTime::Julian));
29929 PyDict_SetItemString(d,"DateTime_Gr_Unknown", SWIG_FromInt((int)wxDateTime::Gr_Unknown));
29930 PyDict_SetItemString(d,"DateTime_Gr_Standard", SWIG_FromInt((int)wxDateTime::Gr_Standard));
29931 PyDict_SetItemString(d,"DateTime_Gr_Alaska", SWIG_FromInt((int)wxDateTime::Gr_Alaska));
29932 PyDict_SetItemString(d,"DateTime_Gr_Albania", SWIG_FromInt((int)wxDateTime::Gr_Albania));
29933 PyDict_SetItemString(d,"DateTime_Gr_Austria", SWIG_FromInt((int)wxDateTime::Gr_Austria));
29934 PyDict_SetItemString(d,"DateTime_Gr_Austria_Brixen", SWIG_FromInt((int)wxDateTime::Gr_Austria_Brixen));
29935 PyDict_SetItemString(d,"DateTime_Gr_Austria_Salzburg", SWIG_FromInt((int)wxDateTime::Gr_Austria_Salzburg));
29936 PyDict_SetItemString(d,"DateTime_Gr_Austria_Tyrol", SWIG_FromInt((int)wxDateTime::Gr_Austria_Tyrol));
29937 PyDict_SetItemString(d,"DateTime_Gr_Austria_Carinthia", SWIG_FromInt((int)wxDateTime::Gr_Austria_Carinthia));
29938 PyDict_SetItemString(d,"DateTime_Gr_Austria_Styria", SWIG_FromInt((int)wxDateTime::Gr_Austria_Styria));
29939 PyDict_SetItemString(d,"DateTime_Gr_Belgium", SWIG_FromInt((int)wxDateTime::Gr_Belgium));
29940 PyDict_SetItemString(d,"DateTime_Gr_Bulgaria", SWIG_FromInt((int)wxDateTime::Gr_Bulgaria));
29941 PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_1", SWIG_FromInt((int)wxDateTime::Gr_Bulgaria_1));
29942 PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_2", SWIG_FromInt((int)wxDateTime::Gr_Bulgaria_2));
29943 PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_3", SWIG_FromInt((int)wxDateTime::Gr_Bulgaria_3));
29944 PyDict_SetItemString(d,"DateTime_Gr_Canada", SWIG_FromInt((int)wxDateTime::Gr_Canada));
29945 PyDict_SetItemString(d,"DateTime_Gr_China", SWIG_FromInt((int)wxDateTime::Gr_China));
29946 PyDict_SetItemString(d,"DateTime_Gr_China_1", SWIG_FromInt((int)wxDateTime::Gr_China_1));
29947 PyDict_SetItemString(d,"DateTime_Gr_China_2", SWIG_FromInt((int)wxDateTime::Gr_China_2));
29948 PyDict_SetItemString(d,"DateTime_Gr_Czechoslovakia", SWIG_FromInt((int)wxDateTime::Gr_Czechoslovakia));
29949 PyDict_SetItemString(d,"DateTime_Gr_Denmark", SWIG_FromInt((int)wxDateTime::Gr_Denmark));
29950 PyDict_SetItemString(d,"DateTime_Gr_Egypt", SWIG_FromInt((int)wxDateTime::Gr_Egypt));
29951 PyDict_SetItemString(d,"DateTime_Gr_Estonia", SWIG_FromInt((int)wxDateTime::Gr_Estonia));
29952 PyDict_SetItemString(d,"DateTime_Gr_Finland", SWIG_FromInt((int)wxDateTime::Gr_Finland));
29953 PyDict_SetItemString(d,"DateTime_Gr_France", SWIG_FromInt((int)wxDateTime::Gr_France));
29954 PyDict_SetItemString(d,"DateTime_Gr_France_Alsace", SWIG_FromInt((int)wxDateTime::Gr_France_Alsace));
29955 PyDict_SetItemString(d,"DateTime_Gr_France_Lorraine", SWIG_FromInt((int)wxDateTime::Gr_France_Lorraine));
29956 PyDict_SetItemString(d,"DateTime_Gr_France_Strasbourg", SWIG_FromInt((int)wxDateTime::Gr_France_Strasbourg));
29957 PyDict_SetItemString(d,"DateTime_Gr_Germany", SWIG_FromInt((int)wxDateTime::Gr_Germany));
29958 PyDict_SetItemString(d,"DateTime_Gr_Germany_Catholic", SWIG_FromInt((int)wxDateTime::Gr_Germany_Catholic));
29959 PyDict_SetItemString(d,"DateTime_Gr_Germany_Prussia", SWIG_FromInt((int)wxDateTime::Gr_Germany_Prussia));
29960 PyDict_SetItemString(d,"DateTime_Gr_Germany_Protestant", SWIG_FromInt((int)wxDateTime::Gr_Germany_Protestant));
29961 PyDict_SetItemString(d,"DateTime_Gr_GreatBritain", SWIG_FromInt((int)wxDateTime::Gr_GreatBritain));
29962 PyDict_SetItemString(d,"DateTime_Gr_Greece", SWIG_FromInt((int)wxDateTime::Gr_Greece));
29963 PyDict_SetItemString(d,"DateTime_Gr_Hungary", SWIG_FromInt((int)wxDateTime::Gr_Hungary));
29964 PyDict_SetItemString(d,"DateTime_Gr_Ireland", SWIG_FromInt((int)wxDateTime::Gr_Ireland));
29965 PyDict_SetItemString(d,"DateTime_Gr_Italy", SWIG_FromInt((int)wxDateTime::Gr_Italy));
29966 PyDict_SetItemString(d,"DateTime_Gr_Japan", SWIG_FromInt((int)wxDateTime::Gr_Japan));
29967 PyDict_SetItemString(d,"DateTime_Gr_Japan_1", SWIG_FromInt((int)wxDateTime::Gr_Japan_1));
29968 PyDict_SetItemString(d,"DateTime_Gr_Japan_2", SWIG_FromInt((int)wxDateTime::Gr_Japan_2));
29969 PyDict_SetItemString(d,"DateTime_Gr_Japan_3", SWIG_FromInt((int)wxDateTime::Gr_Japan_3));
29970 PyDict_SetItemString(d,"DateTime_Gr_Latvia", SWIG_FromInt((int)wxDateTime::Gr_Latvia));
29971 PyDict_SetItemString(d,"DateTime_Gr_Lithuania", SWIG_FromInt((int)wxDateTime::Gr_Lithuania));
29972 PyDict_SetItemString(d,"DateTime_Gr_Luxemburg", SWIG_FromInt((int)wxDateTime::Gr_Luxemburg));
29973 PyDict_SetItemString(d,"DateTime_Gr_Netherlands", SWIG_FromInt((int)wxDateTime::Gr_Netherlands));
29974 PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Groningen", SWIG_FromInt((int)wxDateTime::Gr_Netherlands_Groningen));
29975 PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Gelderland", SWIG_FromInt((int)wxDateTime::Gr_Netherlands_Gelderland));
29976 PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Utrecht", SWIG_FromInt((int)wxDateTime::Gr_Netherlands_Utrecht));
29977 PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Friesland", SWIG_FromInt((int)wxDateTime::Gr_Netherlands_Friesland));
29978 PyDict_SetItemString(d,"DateTime_Gr_Norway", SWIG_FromInt((int)wxDateTime::Gr_Norway));
29979 PyDict_SetItemString(d,"DateTime_Gr_Poland", SWIG_FromInt((int)wxDateTime::Gr_Poland));
29980 PyDict_SetItemString(d,"DateTime_Gr_Portugal", SWIG_FromInt((int)wxDateTime::Gr_Portugal));
29981 PyDict_SetItemString(d,"DateTime_Gr_Romania", SWIG_FromInt((int)wxDateTime::Gr_Romania));
29982 PyDict_SetItemString(d,"DateTime_Gr_Russia", SWIG_FromInt((int)wxDateTime::Gr_Russia));
29983 PyDict_SetItemString(d,"DateTime_Gr_Scotland", SWIG_FromInt((int)wxDateTime::Gr_Scotland));
29984 PyDict_SetItemString(d,"DateTime_Gr_Spain", SWIG_FromInt((int)wxDateTime::Gr_Spain));
29985 PyDict_SetItemString(d,"DateTime_Gr_Sweden", SWIG_FromInt((int)wxDateTime::Gr_Sweden));
29986 PyDict_SetItemString(d,"DateTime_Gr_Switzerland", SWIG_FromInt((int)wxDateTime::Gr_Switzerland));
29987 PyDict_SetItemString(d,"DateTime_Gr_Switzerland_Catholic", SWIG_FromInt((int)wxDateTime::Gr_Switzerland_Catholic));
29988 PyDict_SetItemString(d,"DateTime_Gr_Switzerland_Protestant", SWIG_FromInt((int)wxDateTime::Gr_Switzerland_Protestant));
29989 PyDict_SetItemString(d,"DateTime_Gr_Turkey", SWIG_FromInt((int)wxDateTime::Gr_Turkey));
29990 PyDict_SetItemString(d,"DateTime_Gr_USA", SWIG_FromInt((int)wxDateTime::Gr_USA));
29991 PyDict_SetItemString(d,"DateTime_Gr_Wales", SWIG_FromInt((int)wxDateTime::Gr_Wales));
29992 PyDict_SetItemString(d,"DateTime_Gr_Yugoslavia", SWIG_FromInt((int)wxDateTime::Gr_Yugoslavia));
29993 PyDict_SetItemString(d,"DateTime_Country_Unknown", SWIG_FromInt((int)wxDateTime::Country_Unknown));
29994 PyDict_SetItemString(d,"DateTime_Country_Default", SWIG_FromInt((int)wxDateTime::Country_Default));
29995 PyDict_SetItemString(d,"DateTime_Country_WesternEurope_Start", SWIG_FromInt((int)wxDateTime::Country_WesternEurope_Start));
29996 PyDict_SetItemString(d,"DateTime_Country_EEC", SWIG_FromInt((int)wxDateTime::Country_EEC));
29997 PyDict_SetItemString(d,"DateTime_France", SWIG_FromInt((int)wxDateTime::France));
29998 PyDict_SetItemString(d,"DateTime_Germany", SWIG_FromInt((int)wxDateTime::Germany));
29999 PyDict_SetItemString(d,"DateTime_UK", SWIG_FromInt((int)wxDateTime::UK));
30000 PyDict_SetItemString(d,"DateTime_Country_WesternEurope_End", SWIG_FromInt((int)wxDateTime::Country_WesternEurope_End));
30001 PyDict_SetItemString(d,"DateTime_Russia", SWIG_FromInt((int)wxDateTime::Russia));
30002 PyDict_SetItemString(d,"DateTime_USA", SWIG_FromInt((int)wxDateTime::USA));
30003 PyDict_SetItemString(d,"DateTime_Jan", SWIG_FromInt((int)wxDateTime::Jan));
30004 PyDict_SetItemString(d,"DateTime_Feb", SWIG_FromInt((int)wxDateTime::Feb));
30005 PyDict_SetItemString(d,"DateTime_Mar", SWIG_FromInt((int)wxDateTime::Mar));
30006 PyDict_SetItemString(d,"DateTime_Apr", SWIG_FromInt((int)wxDateTime::Apr));
30007 PyDict_SetItemString(d,"DateTime_May", SWIG_FromInt((int)wxDateTime::May));
30008 PyDict_SetItemString(d,"DateTime_Jun", SWIG_FromInt((int)wxDateTime::Jun));
30009 PyDict_SetItemString(d,"DateTime_Jul", SWIG_FromInt((int)wxDateTime::Jul));
30010 PyDict_SetItemString(d,"DateTime_Aug", SWIG_FromInt((int)wxDateTime::Aug));
30011 PyDict_SetItemString(d,"DateTime_Sep", SWIG_FromInt((int)wxDateTime::Sep));
30012 PyDict_SetItemString(d,"DateTime_Oct", SWIG_FromInt((int)wxDateTime::Oct));
30013 PyDict_SetItemString(d,"DateTime_Nov", SWIG_FromInt((int)wxDateTime::Nov));
30014 PyDict_SetItemString(d,"DateTime_Dec", SWIG_FromInt((int)wxDateTime::Dec));
30015 PyDict_SetItemString(d,"DateTime_Inv_Month", SWIG_FromInt((int)wxDateTime::Inv_Month));
30016 PyDict_SetItemString(d,"DateTime_Sun", SWIG_FromInt((int)wxDateTime::Sun));
30017 PyDict_SetItemString(d,"DateTime_Mon", SWIG_FromInt((int)wxDateTime::Mon));
30018 PyDict_SetItemString(d,"DateTime_Tue", SWIG_FromInt((int)wxDateTime::Tue));
30019 PyDict_SetItemString(d,"DateTime_Wed", SWIG_FromInt((int)wxDateTime::Wed));
30020 PyDict_SetItemString(d,"DateTime_Thu", SWIG_FromInt((int)wxDateTime::Thu));
30021 PyDict_SetItemString(d,"DateTime_Fri", SWIG_FromInt((int)wxDateTime::Fri));
30022 PyDict_SetItemString(d,"DateTime_Sat", SWIG_FromInt((int)wxDateTime::Sat));
30023 PyDict_SetItemString(d,"DateTime_Inv_WeekDay", SWIG_FromInt((int)wxDateTime::Inv_WeekDay));
30024 PyDict_SetItemString(d,"DateTime_Inv_Year", SWIG_FromInt((int)wxDateTime::Inv_Year));
30025 PyDict_SetItemString(d,"DateTime_Name_Full", SWIG_FromInt((int)wxDateTime::Name_Full));
30026 PyDict_SetItemString(d,"DateTime_Name_Abbr", SWIG_FromInt((int)wxDateTime::Name_Abbr));
30027 PyDict_SetItemString(d,"DateTime_Default_First", SWIG_FromInt((int)wxDateTime::Default_First));
30028 PyDict_SetItemString(d,"DateTime_Monday_First", SWIG_FromInt((int)wxDateTime::Monday_First));
30029 PyDict_SetItemString(d,"DateTime_Sunday_First", SWIG_FromInt((int)wxDateTime::Sunday_First));
30030 SWIG_addvarlink(SWIG_globals,(char*)"DefaultDateTime",_wrap_DefaultDateTime_get, _wrap_DefaultDateTime_set);
30031 PyDict_SetItemString(d,"DF_INVALID", SWIG_FromInt((int)wxDF_INVALID));
30032 PyDict_SetItemString(d,"DF_TEXT", SWIG_FromInt((int)wxDF_TEXT));
30033 PyDict_SetItemString(d,"DF_BITMAP", SWIG_FromInt((int)wxDF_BITMAP));
30034 PyDict_SetItemString(d,"DF_METAFILE", SWIG_FromInt((int)wxDF_METAFILE));
30035 PyDict_SetItemString(d,"DF_SYLK", SWIG_FromInt((int)wxDF_SYLK));
30036 PyDict_SetItemString(d,"DF_DIF", SWIG_FromInt((int)wxDF_DIF));
30037 PyDict_SetItemString(d,"DF_TIFF", SWIG_FromInt((int)wxDF_TIFF));
30038 PyDict_SetItemString(d,"DF_OEMTEXT", SWIG_FromInt((int)wxDF_OEMTEXT));
30039 PyDict_SetItemString(d,"DF_DIB", SWIG_FromInt((int)wxDF_DIB));
30040 PyDict_SetItemString(d,"DF_PALETTE", SWIG_FromInt((int)wxDF_PALETTE));
30041 PyDict_SetItemString(d,"DF_PENDATA", SWIG_FromInt((int)wxDF_PENDATA));
30042 PyDict_SetItemString(d,"DF_RIFF", SWIG_FromInt((int)wxDF_RIFF));
30043 PyDict_SetItemString(d,"DF_WAVE", SWIG_FromInt((int)wxDF_WAVE));
30044 PyDict_SetItemString(d,"DF_UNICODETEXT", SWIG_FromInt((int)wxDF_UNICODETEXT));
30045 PyDict_SetItemString(d,"DF_ENHMETAFILE", SWIG_FromInt((int)wxDF_ENHMETAFILE));
30046 PyDict_SetItemString(d,"DF_FILENAME", SWIG_FromInt((int)wxDF_FILENAME));
30047 PyDict_SetItemString(d,"DF_LOCALE", SWIG_FromInt((int)wxDF_LOCALE));
30048 PyDict_SetItemString(d,"DF_PRIVATE", SWIG_FromInt((int)wxDF_PRIVATE));
30049 PyDict_SetItemString(d,"DF_HTML", SWIG_FromInt((int)wxDF_HTML));
30050 PyDict_SetItemString(d,"DF_MAX", SWIG_FromInt((int)wxDF_MAX));
30051 SWIG_addvarlink(SWIG_globals,(char*)"FormatInvalid",_wrap_FormatInvalid_get, _wrap_FormatInvalid_set);
30052 PyDict_SetItemString(d,"DataObject_Get", SWIG_FromInt((int)wxDataObject::Get));
30053 PyDict_SetItemString(d,"DataObject_Set", SWIG_FromInt((int)wxDataObject::Set));
30054 PyDict_SetItemString(d,"DataObject_Both", SWIG_FromInt((int)wxDataObject::Both));
30055 PyDict_SetItemString(d,"Drag_CopyOnly", SWIG_FromInt((int)wxDrag_CopyOnly));
30056 PyDict_SetItemString(d,"Drag_AllowMove", SWIG_FromInt((int)wxDrag_AllowMove));
30057 PyDict_SetItemString(d,"Drag_DefaultMove", SWIG_FromInt((int)wxDrag_DefaultMove));
30058 PyDict_SetItemString(d,"DragError", SWIG_FromInt((int)wxDragError));
30059 PyDict_SetItemString(d,"DragNone", SWIG_FromInt((int)wxDragNone));
30060 PyDict_SetItemString(d,"DragCopy", SWIG_FromInt((int)wxDragCopy));
30061 PyDict_SetItemString(d,"DragMove", SWIG_FromInt((int)wxDragMove));
30062 PyDict_SetItemString(d,"DragLink", SWIG_FromInt((int)wxDragLink));
30063 PyDict_SetItemString(d,"DragCancel", SWIG_FromInt((int)wxDragCancel));
30064
30065 wxPyPtrTypeMap_Add("wxDropSource", "wxPyDropSource");
30066 wxPyPtrTypeMap_Add("wxDropTarget", "wxPyDropTarget");
30067 wxPyPtrTypeMap_Add("wxTextDropTarget", "wxPyTextDropTarget");
30068 wxPyPtrTypeMap_Add("wxFileDropTarget", "wxPyFileDropTarget");
30069
30070 SWIG_addvarlink(SWIG_globals,(char*)"TheClipboard",_wrap_TheClipboard_get, _wrap_TheClipboard_set);
30071 SWIG_addvarlink(SWIG_globals,(char*)"DefaultVideoMode",_wrap_DefaultVideoMode_get, _wrap_DefaultVideoMode_set);
30072 }
30073