]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/mac/_misc_wrap.cpp
e6c82b04b064bdc7508d20725e5caf84ea3c2934
[wxWidgets.git] / wxPython / src / mac / _misc_wrap.cpp
1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 1.3.22
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11 #define SWIGPYTHON
12 #define SWIG_NOINCLUDE
13
14 #ifdef __cplusplus
15 template<class T> class SwigValueWrapper {
16 T *tt;
17 public:
18 SwigValueWrapper() : tt(0) { }
19 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
20 SwigValueWrapper(const T& t) : tt(new T(t)) { }
21 ~SwigValueWrapper() { delete tt; }
22 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
23 operator T&() const { return *tt; }
24 T *operator&() { return tt; }
25 private:
26 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
27 };
28 #endif
29
30
31 #include "Python.h"
32
33 /*************************************************************** -*- c -*-
34 * python/precommon.swg
35 *
36 * Rename all exported symbols from common.swg, to avoid symbol
37 * clashes if multiple interpreters are included
38 *
39 ************************************************************************/
40
41 #define SWIG_TypeRegister SWIG_Python_TypeRegister
42 #define SWIG_TypeCheck SWIG_Python_TypeCheck
43 #define SWIG_TypeCast SWIG_Python_TypeCast
44 #define SWIG_TypeDynamicCast SWIG_Python_TypeDynamicCast
45 #define SWIG_TypeName SWIG_Python_TypeName
46 #define SWIG_TypeQuery SWIG_Python_TypeQuery
47 #define SWIG_TypeClientData SWIG_Python_TypeClientData
48 #define SWIG_PackData SWIG_Python_PackData
49 #define SWIG_UnpackData SWIG_Python_UnpackData
50
51
52 /***********************************************************************
53 * common.swg for wxPython
54 *
55 * Include only the function prototypes and such from SWIG's common.swg,
56 * but not the runtime functions themselves. This helps keep the
57 * wrapper files clean of unnecessary stuff that is in the libpy.c file
58 * anyway.
59 *
60 ************************************************************************/
61
62 #include <string.h>
63
64 #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
65 # if defined(_MSC_VER) || defined(__GNUC__)
66 # if defined(STATIC_LINKED)
67 # define SWIGEXPORT(a) a
68 # define SWIGIMPORT(a) extern a
69 # else
70 # define SWIGEXPORT(a) __declspec(dllexport) a
71 # define SWIGIMPORT(a) extern a
72 # endif
73 # else
74 # if defined(__BORLANDC__)
75 # define SWIGEXPORT(a) a _export
76 # define SWIGIMPORT(a) a _export
77 # else
78 # define SWIGEXPORT(a) a
79 # define SWIGIMPORT(a) a
80 # endif
81 # endif
82 #else
83 # define SWIGEXPORT(a) a
84 # define SWIGIMPORT(a) a
85 #endif
86
87 #ifdef SWIG_GLOBAL
88 # define SWIGRUNTIME(a) SWIGEXPORT(a)
89 #else
90 # define SWIGRUNTIME(a) static a
91 #endif
92
93 #ifdef __cplusplus
94 extern "C" {
95 #endif
96
97 typedef void *(*swig_converter_func)(void *);
98 typedef struct swig_type_info *(*swig_dycast_func)(void **);
99
100 typedef struct swig_type_info {
101 const char *name;
102 swig_converter_func converter;
103 const char *str;
104 void *clientdata;
105 swig_dycast_func dcast;
106 struct swig_type_info *next;
107 struct swig_type_info *prev;
108 } swig_type_info;
109
110
111 SWIGIMPORT(swig_type_info *) SWIG_TypeRegister(swig_type_info *);
112 SWIGIMPORT(swig_type_info *) SWIG_TypeCheck(char *c, swig_type_info *);
113 SWIGIMPORT(void *) SWIG_TypeCast(swig_type_info *, void *);
114 SWIGIMPORT(swig_type_info *) SWIG_TypeDynamicCast(swig_type_info *, void **);
115 SWIGIMPORT(const char *) SWIG_TypeName(const swig_type_info *);
116 SWIGIMPORT(swig_type_info *) SWIG_TypeQuery(const char *);
117 SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info *, void *);
118 SWIGIMPORT(char *) SWIG_PackData(char *, void *, int);
119 SWIGIMPORT(char *) SWIG_UnpackData(char *, void *, int);
120
121
122 #ifdef __cplusplus
123 }
124 #endif
125
126 /***********************************************************************
127 * pyrun.swg for wxPython
128 *
129 * Include only the function prototypes and such from SWIG's pyrun.swg,
130 * but not the runtime functions themselves. This helps keep the
131 * wrapper files clean of unnecessary stuff that is in the libpy.c file
132 * anyway.
133 *
134 ************************************************************************/
135
136 #include "Python.h"
137
138 #ifdef __cplusplus
139 extern "C" {
140 #endif
141
142 #define SWIG_PY_INT 1
143 #define SWIG_PY_FLOAT 2
144 #define SWIG_PY_STRING 3
145 #define SWIG_PY_POINTER 4
146 #define SWIG_PY_BINARY 5
147
148 /* Flags for pointer conversion */
149
150 #define SWIG_POINTER_EXCEPTION 0x1
151 #define SWIG_POINTER_DISOWN 0x2
152
153 /* Exception handling in wrappers */
154 #define SWIG_fail goto fail
155
156 /* Constant information structure */
157 typedef struct swig_const_info {
158 int type;
159 char *name;
160 long lvalue;
161 double dvalue;
162 void *pvalue;
163 swig_type_info **ptype;
164 } swig_const_info;
165
166 /* Common SWIG API */
167 #define SWIG_ConvertPtr(obj, pp, type, flags) \
168 SWIG_Python_ConvertPtr(obj, pp, type, flags)
169 #define SWIG_NewPointerObj(p, type, flags) \
170 SWIG_Python_NewPointerObj(p, type, flags)
171 #define SWIG_MustGetPtr(p, type, argnum, flags) \
172 SWIG_Python_MustGetPtr(p, type, argnum, flags)
173
174 /* Python-specific SWIG API */
175 #define SWIG_newvarlink() \
176 SWIG_Python_newvarlink()
177 #define SWIG_addvarlink(p, name, get_attr, set_attr) \
178 SWIG_Python_addvarlink(p, name, get_attr, set_attr)
179 #define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) \
180 SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags)
181 #define SWIG_NewPackedObj(ptr, sz, type) \
182 SWIG_Python_NewPackedObj(ptr, sz, type)
183 #define SWIG_InstallConstants(d, constants) \
184 SWIG_Python_InstallConstants(d, constants)
185
186 typedef double (*py_objasdbl_conv)(PyObject *obj);
187
188 SWIGIMPORT(int) SWIG_Python_ConvertPtr(PyObject *, void **, swig_type_info *, int);
189 SWIGIMPORT(PyObject *) SWIG_Python_NewPointerObj(void *, swig_type_info *,int own);
190 SWIGIMPORT(void *) SWIG_Python_MustGetPtr(PyObject *, swig_type_info *, int, int);
191 SWIGIMPORT(PyObject *) SWIG_Python_newvarlink(void);
192 SWIGIMPORT(void) SWIG_Python_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *));
193 SWIGIMPORT(int) SWIG_Python_ConvertPacked(PyObject *, void *, int sz, swig_type_info *, int);
194 SWIGIMPORT(PyObject *) SWIG_Python_NewPackedObj(void *, int sz, swig_type_info *);
195 SWIGIMPORT(void) SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]);
196
197
198 /* Contract support */
199
200 #define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else
201
202 #ifdef __cplusplus
203 }
204 #endif
205
206
207 /* -------- TYPES TABLE (BEGIN) -------- */
208
209 #define SWIGTYPE_p_wxLogChain swig_types[0]
210 #define SWIGTYPE_p_wxMutexGuiLocker swig_types[1]
211 #define SWIGTYPE_p_wxMetafile swig_types[2]
212 #define SWIGTYPE_p_wxFileHistory swig_types[3]
213 #define SWIGTYPE_p_wxLog swig_types[4]
214 #define SWIGTYPE_p_wxDateTime__TimeZone swig_types[5]
215 #define SWIGTYPE_p_wxMenu swig_types[6]
216 #define SWIGTYPE_p_wxEvent swig_types[7]
217 #define SWIGTYPE_p_wxConfigBase swig_types[8]
218 #define SWIGTYPE_p_wxDisplay swig_types[9]
219 #define SWIGTYPE_p_wxFileType swig_types[10]
220 #define SWIGTYPE_p_wxLogGui swig_types[11]
221 #define SWIGTYPE_p_wxFont swig_types[12]
222 #define SWIGTYPE_p_wxDataFormat swig_types[13]
223 #define SWIGTYPE_p_wxTimerEvent swig_types[14]
224 #define SWIGTYPE_p_wxCaret swig_types[15]
225 #define SWIGTYPE_p_int swig_types[16]
226 #define SWIGTYPE_p_wxSize swig_types[17]
227 #define SWIGTYPE_p_wxClipboard swig_types[18]
228 #define SWIGTYPE_p_wxStopWatch swig_types[19]
229 #define SWIGTYPE_p_wxDC swig_types[20]
230 #define SWIGTYPE_p_wxClipboardLocker swig_types[21]
231 #define SWIGTYPE_p_wxIcon swig_types[22]
232 #define SWIGTYPE_p_wxLogStderr swig_types[23]
233 #define SWIGTYPE_p_wxLogTextCtrl swig_types[24]
234 #define SWIGTYPE_p_wxTextCtrl swig_types[25]
235 #define SWIGTYPE_p_wxBusyCursor swig_types[26]
236 #define SWIGTYPE_p_wxPyBitmapDataObject swig_types[27]
237 #define SWIGTYPE_p_wxPyTextDataObject swig_types[28]
238 #define SWIGTYPE_p_wxBitmapDataObject swig_types[29]
239 #define SWIGTYPE_p_wxTextDataObject swig_types[30]
240 #define SWIGTYPE_p_wxDataObject swig_types[31]
241 #define SWIGTYPE_p_wxFileDataObject swig_types[32]
242 #define SWIGTYPE_p_wxCustomDataObject swig_types[33]
243 #define SWIGTYPE_p_wxURLDataObject swig_types[34]
244 #define SWIGTYPE_p_wxMetafileDataObject swig_types[35]
245 #define SWIGTYPE_p_wxSound swig_types[36]
246 #define SWIGTYPE_p_wxTimerRunner swig_types[37]
247 #define SWIGTYPE_p_wxLogWindow swig_types[38]
248 #define SWIGTYPE_p_wxTimeSpan swig_types[39]
249 #define SWIGTYPE_p_wxArrayString swig_types[40]
250 #define SWIGTYPE_p_wxWindowDisabler swig_types[41]
251 #define SWIGTYPE_p_wxToolTip swig_types[42]
252 #define SWIGTYPE_p_wxDataObjectComposite swig_types[43]
253 #define SWIGTYPE_p_wxFileConfig swig_types[44]
254 #define SWIGTYPE_p_wxSystemSettings swig_types[45]
255 #define SWIGTYPE_p_wxVideoMode swig_types[46]
256 #define SWIGTYPE_p_wxPyDataObjectSimple swig_types[47]
257 #define SWIGTYPE_p_wxDataObjectSimple swig_types[48]
258 #define SWIGTYPE_p_wxEvtHandler swig_types[49]
259 #define SWIGTYPE_p_wxRect swig_types[50]
260 #define SWIGTYPE_p_char swig_types[51]
261 #define SWIGTYPE_p_wxSingleInstanceChecker swig_types[52]
262 #define SWIGTYPE_p_wxFileTypeInfo swig_types[53]
263 #define SWIGTYPE_p_wxFrame swig_types[54]
264 #define SWIGTYPE_p_wxTimer swig_types[55]
265 #define SWIGTYPE_p_wxMimeTypesManager swig_types[56]
266 #define SWIGTYPE_p_wxPyArtProvider swig_types[57]
267 #define SWIGTYPE_p_wxPyTipProvider swig_types[58]
268 #define SWIGTYPE_p_wxTipProvider swig_types[59]
269 #define SWIGTYPE_p_wxJoystick swig_types[60]
270 #define SWIGTYPE_p_wxSystemOptions swig_types[61]
271 #define SWIGTYPE_p_wxPoint swig_types[62]
272 #define SWIGTYPE_p_wxJoystickEvent swig_types[63]
273 #define SWIGTYPE_p_wxCursor swig_types[64]
274 #define SWIGTYPE_p_wxObject swig_types[65]
275 #define SWIGTYPE_p_wxOutputStream swig_types[66]
276 #define SWIGTYPE_p_wxDateTime swig_types[67]
277 #define SWIGTYPE_p_wxPyDropSource swig_types[68]
278 #define SWIGTYPE_p_wxWindow swig_types[69]
279 #define SWIGTYPE_p_wxString swig_types[70]
280 #define SWIGTYPE_p_wxPyProcess swig_types[71]
281 #define SWIGTYPE_p_wxBitmap swig_types[72]
282 #define SWIGTYPE_p_wxConfig swig_types[73]
283 #define SWIGTYPE_p_wxChar swig_types[74]
284 #define SWIGTYPE_p_wxBusyInfo swig_types[75]
285 #define SWIGTYPE_p_wxPyDropTarget swig_types[76]
286 #define SWIGTYPE_p_wxPyTextDropTarget swig_types[77]
287 #define SWIGTYPE_p_wxPyFileDropTarget swig_types[78]
288 #define SWIGTYPE_p_wxProcessEvent swig_types[79]
289 #define SWIGTYPE_p_wxPyLog swig_types[80]
290 #define SWIGTYPE_p_wxLogNull swig_types[81]
291 #define SWIGTYPE_p_wxColour swig_types[82]
292 #define SWIGTYPE_p_wxConfigPathChanger swig_types[83]
293 #define SWIGTYPE_p_wxPyTimer swig_types[84]
294 #define SWIGTYPE_p_wxDateSpan swig_types[85]
295 static swig_type_info *swig_types[87];
296
297 /* -------- TYPES TABLE (END) -------- */
298
299
300 /*-----------------------------------------------
301 @(target):= _misc_.so
302 ------------------------------------------------*/
303 #define SWIG_init init_misc_
304
305 #define SWIG_name "_misc_"
306
307 /* Auxiliar swig macros */
308
309 #ifdef __cplusplus
310 #define SWIGSTATICINLINE(a) static inline a
311 #define SWIGSTATIC(a) static a
312 #define swig_new_array(type, size) (new type[(size)])
313 #define swig_delete_array(cptr) delete[] cptr
314 #define swig_const_cast(type,a) const_cast<type>(a)
315 #define swig_static_cast(type,a) static_cast<type>(a)
316 #define swig_reinterpret_cast(type,a) reinterpret_cast<type>(a)
317
318 #ifdef HAVE_NUMERIC_CAST
319 #define swig_numeric_cast(type,a) numeric_cast<type>(a)
320 #else
321 #define swig_numeric_cast(type,a) static_cast<type>(a)
322 #endif
323
324 #else /* C case */
325
326 #define SWIGSTATICINLINE(a) static a
327 #define SWIGSTATIC(a) static a
328 #define swig_new_array(type, size) ((type*) malloc((size)*sizeof(type)))
329 #define swig_delete_array(cptr) free((char*)cptr)
330 #define swig_const_cast(type,a) (type)(a)
331 #define swig_static_cast(type,a) (type)(a)
332 #define swig_reinterpret_cast(type,a) (type)(a)
333 #define swig_numeric_cast(type,a) (type)(a)
334
335 #endif /* __cplusplus */
336
337
338 #define SWIG_FromSignedChar PyInt_FromLong
339 #define SWIG_FromUnsignedChar PyInt_FromLong
340 #define SWIG_FromShort PyInt_FromLong
341 #define SWIG_FromUnsignedShort PyInt_FromLong
342 #define SWIG_FromInt PyInt_FromLong
343 #define SWIG_FromLong PyInt_FromLong
344 #define SWIG_FromFloat PyFloat_FromDouble
345 #define SWIG_FromDouble PyFloat_FromDouble
346 #define SWIG_FromFloat PyFloat_FromDouble
347 #define SWIG_FromDouble PyFloat_FromDouble
348
349
350 #include "wx/wxPython/wxPython.h"
351 #include "wx/wxPython/pyclasses.h"
352 #include "wx/wxPython/pyistream.h"
353
354 static const wxString wxPyEmptyString(wxEmptyString);
355
356
357
358 #include <limits.h>
359
360
361 SWIGSTATICINLINE(long)
362 SWIG_CheckLongInRange(long value, const char* type,
363 long min_value, long max_value)
364 {
365 if (!PyErr_Occurred()) {
366 if (value < min_value) {
367 PyObject *err =
368 PyString_FromFormat("value %ld is less than '%s' minimum %ld",
369 value, type, min_value);
370
371 PyErr_SetObject(PyExc_OverflowError, err);
372 Py_DECREF(err);
373 } else if (value > max_value) {
374 PyObject *err =
375 PyString_FromFormat("value %ld is greater than '%s' maximum %ld",
376 value, type, max_value);
377 PyErr_SetObject(PyExc_OverflowError, err);
378 Py_DECREF(err);
379 }
380 }
381 return value;
382 }
383
384
385 SWIGSTATICINLINE(long)
386 SWIG_AsLong(PyObject * obj)
387 {
388 if (PyNumber_Check(obj))
389 return PyInt_AsLong(obj);
390 else {
391 PyObject* errmsg = PyString_FromFormat("Expected number, got %s",
392 obj->ob_type->tp_name);
393 PyErr_SetObject(PyExc_TypeError, errmsg);
394 Py_DECREF(errmsg);
395 return 0;
396 }
397 }
398
399
400 #if INT_MAX != LONG_MAX
401 SWIGSTATICINLINE(int)
402 SWIG_AsInt(PyObject *obj)
403 {
404 return swig_numeric_cast(int,
405 SWIG_CheckLongInRange(SWIG_AsLong(obj),
406 "int", INT_MIN, INT_MAX));
407 }
408 #else
409 #define SWIG_AsInt SWIG_AsLong
410 #endif
411
412
413 SWIGSTATICINLINE(int)
414 SWIG_CheckInt(PyObject* obj)
415 {
416 SWIG_AsInt(obj);
417 if (PyErr_Occurred()) {
418 PyErr_Clear();
419 return 0;
420 } else {
421 return 1;
422 }
423 }
424
425
426 #include <wx/stockitem.h>
427
428 static const wxString wxPyFileSelectorPromptStr(wxFileSelectorPromptStr);
429 static const wxString wxPyFileSelectorDefaultWildcardStr(wxFileSelectorDefaultWildcardStr);
430 static const wxString wxPyDirSelectorPromptStr(wxDirSelectorPromptStr);
431
432 SWIGSTATICINLINE(int)
433 SWIG_CheckLong(PyObject* obj)
434 {
435 SWIG_AsLong(obj);
436 if (PyErr_Occurred()) {
437 PyErr_Clear();
438 return 0;
439 } else {
440 return 1;
441 }
442 }
443
444
445 SWIGSTATICINLINE(bool)
446 SWIG_AsBool(PyObject *obj)
447 {
448 return PyObject_IsTrue(obj) ? true : false;
449 }
450
451
452 SWIGSTATICINLINE(int)
453 SWIG_CheckBool(PyObject* obj)
454 {
455 SWIG_AsBool(obj);
456 if (PyErr_Occurred()) {
457 PyErr_Clear();
458 return 0;
459 } else {
460 return 1;
461 }
462 }
463
464
465 static PyObject* t_output_helper(PyObject* target, PyObject* o) {
466 PyObject* o2;
467 PyObject* o3;
468
469 if (!target) {
470 target = o;
471 } else if (target == Py_None) {
472 Py_DECREF(Py_None);
473 target = o;
474 } else {
475 if (!PyTuple_Check(target)) {
476 o2 = target;
477 target = PyTuple_New(1);
478 PyTuple_SetItem(target, 0, o2);
479 }
480 o3 = PyTuple_New(1);
481 PyTuple_SetItem(o3, 0, o);
482
483 o2 = target;
484 target = PySequence_Concat(o2, o3);
485 Py_DECREF(o2);
486 Py_DECREF(o3);
487 }
488 return target;
489 }
490
491
492 SWIGSTATICINLINE(unsigned long)
493 SWIG_AsUnsignedLong(PyObject * obj)
494 {
495 if (PyLong_Check(obj)) {
496 return PyLong_AsUnsignedLong(obj);
497 } else {
498 long i = SWIG_AsLong(obj);
499 if ( !PyErr_Occurred() && (i < 0)) {
500 PyErr_SetString(PyExc_TypeError, "negative value received for unsigned type");
501 }
502 return i;
503 }
504 }
505
506
507 SWIGSTATICINLINE(int)
508 SWIG_CheckUnsignedLong(PyObject* obj)
509 {
510 SWIG_AsUnsignedLong(obj);
511 if (PyErr_Occurred()) {
512 PyErr_Clear();
513 return 0;
514 } else {
515 return 1;
516 }
517 }
518
519
520 SWIGSTATICINLINE(PyObject* )
521 SWIG_FromUnsignedLong(unsigned long value)
522 {
523 return (value > LONG_MAX) ?
524 PyLong_FromUnsignedLong(value)
525 : PyInt_FromLong(swig_numeric_cast(long,value));
526 }
527
528
529 bool wxThread_IsMain() {
530 #ifdef WXP_WITH_THREAD
531 return wxThread::IsMain();
532 #else
533 return True;
534 #endif
535 }
536
537
538 int wxCaret_GetBlinkTime() {
539 return wxCaret::GetBlinkTime();
540 }
541
542 void wxCaret_SetBlinkTime(int milliseconds) {
543 wxCaret::SetBlinkTime(milliseconds);
544 }
545
546
547 #include <wx/snglinst.h>
548
549
550 #ifdef __WXMSW__
551 #include <wx/msw/private.h>
552 #include <wx/dynload.h>
553 #endif
554
555
556
557 void wxDrawWindowOnDC(wxWindow* window, const wxDC& dc, int method)
558 {
559 #ifdef __WXMSW__
560
561 switch (method)
562 {
563 case 1:
564 // This one only partially works. Appears to be an undocumented
565 // "standard" convention that not all widgets adhear to. For
566 // example, for some widgets backgrounds or non-client areas may
567 // not be painted.
568 ::SendMessage(GetHwndOf(window), WM_PAINT, (long)GetHdcOf(dc), 0);
569 break;
570
571 case 2:
572 // This one works much better, except for on XP. On Win2k nearly
573 // all widgets and their children are captured correctly[**]. On
574 // XP with Themes activated most native widgets draw only
575 // partially, if at all. Without themes it works just like on
576 // Win2k.
577 //
578 // ** For example the radio buttons in a wxRadioBox are not its
579 // children by default, but you can capture it via the panel
580 // instead, or change RADIOBTN_PARENT_IS_RADIOBOX in radiobox.cpp.
581 ::SendMessage(GetHwndOf(window), WM_PRINT, (long)GetHdcOf(dc),
582 PRF_CLIENT | PRF_NONCLIENT | PRF_CHILDREN |
583 PRF_ERASEBKGND | PRF_OWNED );
584 break;
585
586 case 3:
587 // This one is only defined in the latest SDK and is only
588 // available on XP. MSDN says it is similar to sending WM_PRINT
589 // so I expect that it will work similar to the above. Since it
590 // is avaialble only on XP, it can't be compiled like this and
591 // will have to be loaded dynamically.
592 // //::PrintWindow(GetHwndOf(window), GetHdcOf(dc), 0); //break;
593
594 // fall through
595
596 case 4:
597 // Use PrintWindow if available, or fallback to WM_PRINT
598 // otherwise. Unfortunately using PrintWindow is even worse than
599 // WM_PRINT. For most native widgets nothing is drawn to the dc
600 // at all, with or without Themes.
601 typedef BOOL (WINAPI *PrintWindow_t)(HWND, HDC, UINT);
602 static bool s_triedToLoad = False;
603 static PrintWindow_t pfnPrintWindow = NULL;
604 if ( !s_triedToLoad )
605 {
606
607 s_triedToLoad = True;
608 wxDynamicLibrary dllUser32(_T("user32.dll"));
609 if ( dllUser32.IsLoaded() )
610 {
611 wxLogNull nolog; // Don't report errors here
612 pfnPrintWindow = (PrintWindow_t)dllUser32.GetSymbol(_T("PrintWindow"));
613 }
614 }
615 if (pfnPrintWindow)
616 {
617 printf("Using PrintWindow\n");
618 pfnPrintWindow(GetHwndOf(window), GetHdcOf(dc), 0);
619 }
620 else
621 {
622 printf("Using WM_PRINT\n");
623 ::SendMessage(GetHwndOf(window), WM_PRINT, (long)GetHdcOf(dc),
624 PRF_CLIENT | PRF_NONCLIENT | PRF_CHILDREN | PRF_ERASEBKGND | PRF_OWNED );
625 }
626 }
627 #endif
628 }
629
630
631
632 #include <wx/tipdlg.h>
633
634
635 class wxPyTipProvider : public wxTipProvider {
636 public:
637 wxPyTipProvider(size_t currentTip)
638 : wxTipProvider(currentTip) {}
639
640 DEC_PYCALLBACK_STRING__pure(GetTip);
641 DEC_PYCALLBACK_STRING_STRING(PreprocessTip);
642 PYPRIVATE;
643 };
644
645 IMP_PYCALLBACK_STRING__pure( wxPyTipProvider, wxTipProvider, GetTip);
646 IMP_PYCALLBACK_STRING_STRING(wxPyTipProvider, wxTipProvider, PreprocessTip);
647
648
649 //IMP_PYCALLBACK__(wxPyTimer, wxTimer, Notify);
650
651 IMPLEMENT_ABSTRACT_CLASS(wxPyTimer, wxTimer);
652
653 void wxPyTimer::Notify() {
654 bool found;
655 bool blocked = wxPyBeginBlockThreads();
656 if ((found = wxPyCBH_findCallback(m_myInst, "Notify")))
657 wxPyCBH_callCallback(m_myInst, Py_BuildValue("()"));
658 wxPyEndBlockThreads(blocked);
659 if (! found)
660 wxTimer::Notify();
661 }
662 void wxPyTimer::base_Notify() {
663 wxTimer::Notify();
664 }
665
666
667
668 SWIGSTATICINLINE(PyObject *)
669 SWIG_FromCharPtr(const char* cptr)
670 {
671 size_t size = cptr ? strlen(cptr) : 0;
672 if (cptr) {
673 if (size > INT_MAX) {
674 return SWIG_NewPointerObj(swig_const_cast(char*,cptr),
675 SWIG_TypeQuery("char *"), 0);
676 } else {
677 return PyString_FromStringAndSize(cptr, swig_numeric_cast(int,size));
678 }
679 } else {
680 Py_INCREF(Py_None);
681 return Py_None;
682 }
683 }
684
685
686 SWIGSTATICINLINE(unsigned long)
687 SWIG_CheckUnsignedLongInRange(unsigned long value, const char* type,
688 unsigned long max_value)
689 {
690 if (!PyErr_Occurred()) {
691 if (value > max_value) {
692 PyObject *err =
693 PyString_FromFormat("value %ld is greater than '%s' minimum %ld",
694 value, type, max_value);
695 PyErr_SetObject(PyExc_OverflowError, err);
696 Py_DECREF(err);
697 }
698 }
699 return value;
700 }
701
702
703 #if UINT_MAX != ULONG_MAX
704 SWIGSTATICINLINE(unsigned int)
705 SWIG_AsUnsignedInt(PyObject *obj)
706 {
707 return swig_numeric_cast(unsigned int,
708 SWIG_CheckUnsignedLongInRange(SWIG_AsUnsignedLong(obj),
709 "unsigned int", UINT_MAX));
710 }
711 #else
712 #define SWIG_AsUnsignedInt SWIG_AsUnsignedLong
713 #endif
714
715
716 SWIGSTATICINLINE(int)
717 SWIG_CheckUnsignedInt(PyObject* obj)
718 {
719 SWIG_AsUnsignedInt(obj);
720 if (PyErr_Occurred()) {
721 PyErr_Clear();
722 return 0;
723 } else {
724 return 1;
725 }
726 }
727
728 wxString Log_TimeStamp(){
729 wxString msg;
730 wxLog::TimeStamp(&msg);
731 return msg;
732 }
733 void wxLog_Destroy(wxLog *self){ delete self; }
734
735 // A wxLog class that can be derived from in wxPython
736 class wxPyLog : public wxLog {
737 public:
738 wxPyLog() : wxLog() {}
739
740 virtual void DoLog(wxLogLevel level, const wxChar *szString, time_t t) {
741 bool found;
742 bool blocked = wxPyBeginBlockThreads();
743 if ((found = wxPyCBH_findCallback(m_myInst, "DoLog"))) {
744 PyObject* s = wx2PyString(szString);
745 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iOi)", level, s, t));
746 Py_DECREF(s);
747 }
748 wxPyEndBlockThreads(blocked);
749 if (! found)
750 wxLog::DoLog(level, szString, t);
751 }
752
753 virtual void DoLogString(const wxChar *szString, time_t t) {
754 bool found;
755 bool blocked = wxPyBeginBlockThreads();
756 if ((found = wxPyCBH_findCallback(m_myInst, "DoLogString"))) {
757 PyObject* s = wx2PyString(szString);
758 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(Oi)", s, t));
759 Py_DECREF(s);
760 }
761 wxPyEndBlockThreads(blocked);
762 if (! found)
763 wxLog::DoLogString(szString, t);
764 }
765
766 PYPRIVATE;
767 };
768
769
770
771
772 IMP_PYCALLBACK_VOID_INTINT( wxPyProcess, wxProcess, OnTerminate);
773
774
775 #include <wx/joystick.h>
776
777
778 #if !wxUSE_JOYSTICK && !defined(__WXMSW__)
779 // A C++ stub class for wxJoystick for platforms that don't have it.
780 class wxJoystick : public wxObject {
781 public:
782 wxJoystick(int joystick = wxJOYSTICK1) {
783 bool blocked = wxPyBeginBlockThreads();
784 PyErr_SetString(PyExc_NotImplementedError,
785 "wxJoystick is not available on this platform.");
786 wxPyEndBlockThreads(blocked);
787 }
788 wxPoint GetPosition() { return wxPoint(-1,-1); }
789 int GetZPosition() { return -1; }
790 int GetButtonState() { return -1; }
791 int GetPOVPosition() { return -1; }
792 int GetPOVCTSPosition() { return -1; }
793 int GetRudderPosition() { return -1; }
794 int GetUPosition() { return -1; }
795 int GetVPosition() { return -1; }
796 int GetMovementThreshold() { return -1; }
797 void SetMovementThreshold(int threshold) {}
798
799 bool IsOk(void) { return False; }
800 int GetNumberJoysticks() { return -1; }
801 int GetManufacturerId() { return -1; }
802 int GetProductId() { return -1; }
803 wxString GetProductName() { return wxEmptyString; }
804 int GetXMin() { return -1; }
805 int GetYMin() { return -1; }
806 int GetZMin() { return -1; }
807 int GetXMax() { return -1; }
808 int GetYMax() { return -1; }
809 int GetZMax() { return -1; }
810 int GetNumberButtons() { return -1; }
811 int GetNumberAxes() { return -1; }
812 int GetMaxButtons() { return -1; }
813 int GetMaxAxes() { return -1; }
814 int GetPollingMin() { return -1; }
815 int GetPollingMax() { return -1; }
816 int GetRudderMin() { return -1; }
817 int GetRudderMax() { return -1; }
818 int GetUMin() { return -1; }
819 int GetUMax() { return -1; }
820 int GetVMin() { return -1; }
821 int GetVMax() { return -1; }
822
823 bool HasRudder() { return False; }
824 bool HasZ() { return False; }
825 bool HasU() { return False; }
826 bool HasV() { return False; }
827 bool HasPOV() { return False; }
828 bool HasPOV4Dir() { return False; }
829 bool HasPOVCTS() { return False; }
830
831 bool SetCapture(wxWindow* win, int pollingFreq = 0) { return False; }
832 bool ReleaseCapture() { return False; }
833 };
834 #endif
835
836
837 #include <wx/sound.h>
838
839
840 #if !wxUSE_SOUND
841 // A C++ stub class for wxWave for platforms that don't have it.
842 class wxSound : public wxObject
843 {
844 public:
845 wxSound() {
846 bool blocked = wxPyBeginBlockThreads();
847 PyErr_SetString(PyExc_NotImplementedError,
848 "wxSound is not available on this platform.");
849 wxPyEndBlockThreads(blocked);
850 }
851 wxSound(const wxString&/*, bool*/) {
852 bool blocked = wxPyBeginBlockThreads();
853 PyErr_SetString(PyExc_NotImplementedError,
854 "wxSound is not available on this platform.");
855 wxPyEndBlockThreads(blocked);
856 }
857 wxSound(int, const wxByte*) {
858 bool blocked = wxPyBeginBlockThreads();
859 PyErr_SetString(PyExc_NotImplementedError,
860 "wxSound is not available on this platform.");
861 wxPyEndBlockThreads(blocked);
862 }
863
864 ~wxSound() {};
865
866 bool Create(const wxString&/*, bool*/) { return false; }
867 bool Create(int, const wxByte*) { return false; };
868 bool IsOk() { return false; };
869 bool Play(unsigned) const { return false; }
870 static bool Play(const wxString&, unsigned) { return false; }
871 static void Stop() {}
872 };
873
874 #endif
875
876 wxSound *new_wxSound(wxString const &fileName){
877 if (fileName.Length() == 0)
878 return new wxSound;
879 else
880 return new wxSound(fileName);
881 }
882 wxSound *new_wxSound(PyObject *data){
883 unsigned char* buffer; int size;
884 wxSound *sound = NULL;
885
886 bool blocked = wxPyBeginBlockThreads();
887 if (!PyArg_Parse(data, "t#", &buffer, &size))
888 goto done;
889 sound = new wxSound(size, buffer);
890 done:
891 wxPyEndBlockThreads(blocked);
892 return sound;
893 }
894 bool wxSound_CreateFromData(wxSound *self,PyObject *data){
895 #ifndef __WXMAC__
896 unsigned char* buffer;
897 int size;
898 bool rv = False;
899
900 bool blocked = wxPyBeginBlockThreads();
901 if (!PyArg_Parse(data, "t#", &buffer, &size))
902 goto done;
903 rv = self->Create(size, buffer);
904 done:
905 wxPyEndBlockThreads(blocked);
906 return rv;
907 #else
908 bool blocked = wxPyBeginBlockThreads();
909 PyErr_SetString(PyExc_NotImplementedError,
910 "Create from data is not available on this platform.");
911 wxPyEndBlockThreads(blocked);
912 return False;
913 #endif
914 }
915 void Sound_Stop(){ wxPyRaiseNotImplemented(); }
916
917 #include <wx/mimetype.h>
918
919 PyObject *wxFileType_GetMimeType(wxFileType *self){
920 wxString str;
921 if (self->GetMimeType(&str))
922 return wx2PyString(str);
923 else
924 RETURN_NONE();
925 }
926 PyObject *wxFileType_GetMimeTypes(wxFileType *self){
927 wxArrayString arr;
928 if (self->GetMimeTypes(arr))
929 return wxArrayString2PyList_helper(arr);
930 else
931 RETURN_NONE();
932 }
933 PyObject *wxFileType_GetExtensions(wxFileType *self){
934 wxArrayString arr;
935 if (self->GetExtensions(arr))
936 return wxArrayString2PyList_helper(arr);
937 else
938 RETURN_NONE();
939 }
940 wxIcon *wxFileType_GetIcon(wxFileType *self){
941 wxIconLocation loc;
942 if (self->GetIcon(&loc))
943 return new wxIcon(loc);
944 else
945 return NULL;
946 }
947 PyObject *wxFileType_GetIconInfo(wxFileType *self){
948 wxIconLocation loc;
949 if (self->GetIcon(&loc)) {
950 wxString iconFile = loc.GetFileName();
951 int iconIndex = -1;
952
953
954
955 // Make a tuple and put the values in it
956 bool blocked = wxPyBeginBlockThreads();
957 PyObject* tuple = PyTuple_New(3);
958 PyTuple_SetItem(tuple, 0, wxPyConstructObject(new wxIcon(loc),
959 wxT("wxIcon"), True));
960 PyTuple_SetItem(tuple, 1, wx2PyString(iconFile));
961 PyTuple_SetItem(tuple, 2, PyInt_FromLong(iconIndex));
962 wxPyEndBlockThreads(blocked);
963 return tuple;
964 }
965 else
966 RETURN_NONE();
967 }
968 PyObject *wxFileType_GetDescription(wxFileType *self){
969 wxString str;
970 if (self->GetDescription(&str))
971 return wx2PyString(str);
972 else
973 RETURN_NONE();
974 }
975 PyObject *wxFileType_GetOpenCommand(wxFileType *self,wxString const &filename,wxString const &mimetype){
976 wxString str;
977 if (self->GetOpenCommand(&str, wxFileType::MessageParameters(filename, mimetype)))
978 return wx2PyString(str);
979 else
980 RETURN_NONE();
981 }
982 PyObject *wxFileType_GetPrintCommand(wxFileType *self,wxString const &filename,wxString const &mimetype){
983 wxString str;
984 if (self->GetPrintCommand(&str, wxFileType::MessageParameters(filename, mimetype)))
985 return wx2PyString(str);
986 else
987 RETURN_NONE();
988 }
989 PyObject *wxFileType_GetAllCommands(wxFileType *self,wxString const &filename,wxString const &mimetype){
990 wxArrayString verbs;
991 wxArrayString commands;
992 if (self->GetAllCommands(&verbs, &commands,
993 wxFileType::MessageParameters(filename, mimetype))) {
994 bool blocked = wxPyBeginBlockThreads();
995 PyObject* tuple = PyTuple_New(2);
996 PyTuple_SetItem(tuple, 0, wxArrayString2PyList_helper(verbs));
997 PyTuple_SetItem(tuple, 1, wxArrayString2PyList_helper(commands));
998 wxPyEndBlockThreads(blocked);
999 return tuple;
1000 }
1001 else
1002 RETURN_NONE();
1003 }
1004 wxString FileType_ExpandCommand(wxString const &command,wxString const &filename,wxString const &mimetype){
1005 return wxFileType::ExpandCommand(command,
1006 wxFileType::MessageParameters(filename, mimetype));
1007 }
1008 PyObject *wxMimeTypesManager_EnumAllFileTypes(wxMimeTypesManager *self){
1009 wxArrayString arr;
1010 self->EnumAllFileTypes(arr);
1011 return wxArrayString2PyList_helper(arr);
1012 }
1013
1014 #include <wx/artprov.h>
1015
1016 static const wxString wxPyART_TOOLBAR(wxART_TOOLBAR);
1017 static const wxString wxPyART_MENU(wxART_MENU);
1018 static const wxString wxPyART_FRAME_ICON(wxART_FRAME_ICON);
1019 static const wxString wxPyART_CMN_DIALOG(wxART_CMN_DIALOG);
1020 static const wxString wxPyART_HELP_BROWSER(wxART_HELP_BROWSER);
1021 static const wxString wxPyART_MESSAGE_BOX(wxART_MESSAGE_BOX);
1022 static const wxString wxPyART_BUTTON(wxART_BUTTON);
1023 static const wxString wxPyART_OTHER(wxART_OTHER);
1024 static const wxString wxPyART_ADD_BOOKMARK(wxART_ADD_BOOKMARK);
1025 static const wxString wxPyART_DEL_BOOKMARK(wxART_DEL_BOOKMARK);
1026 static const wxString wxPyART_HELP_SIDE_PANEL(wxART_HELP_SIDE_PANEL);
1027 static const wxString wxPyART_HELP_SETTINGS(wxART_HELP_SETTINGS);
1028 static const wxString wxPyART_HELP_BOOK(wxART_HELP_BOOK);
1029 static const wxString wxPyART_HELP_FOLDER(wxART_HELP_FOLDER);
1030 static const wxString wxPyART_HELP_PAGE(wxART_HELP_PAGE);
1031 static const wxString wxPyART_GO_BACK(wxART_GO_BACK);
1032 static const wxString wxPyART_GO_FORWARD(wxART_GO_FORWARD);
1033 static const wxString wxPyART_GO_UP(wxART_GO_UP);
1034 static const wxString wxPyART_GO_DOWN(wxART_GO_DOWN);
1035 static const wxString wxPyART_GO_TO_PARENT(wxART_GO_TO_PARENT);
1036 static const wxString wxPyART_GO_HOME(wxART_GO_HOME);
1037 static const wxString wxPyART_FILE_OPEN(wxART_FILE_OPEN);
1038 static const wxString wxPyART_PRINT(wxART_PRINT);
1039 static const wxString wxPyART_HELP(wxART_HELP);
1040 static const wxString wxPyART_TIP(wxART_TIP);
1041 static const wxString wxPyART_REPORT_VIEW(wxART_REPORT_VIEW);
1042 static const wxString wxPyART_LIST_VIEW(wxART_LIST_VIEW);
1043 static const wxString wxPyART_NEW_DIR(wxART_NEW_DIR);
1044 static const wxString wxPyART_FOLDER(wxART_FOLDER);
1045 static const wxString wxPyART_GO_DIR_UP(wxART_GO_DIR_UP);
1046 static const wxString wxPyART_EXECUTABLE_FILE(wxART_EXECUTABLE_FILE);
1047 static const wxString wxPyART_NORMAL_FILE(wxART_NORMAL_FILE);
1048 static const wxString wxPyART_TICK_MARK(wxART_TICK_MARK);
1049 static const wxString wxPyART_CROSS_MARK(wxART_CROSS_MARK);
1050 static const wxString wxPyART_ERROR(wxART_ERROR);
1051 static const wxString wxPyART_QUESTION(wxART_QUESTION);
1052 static const wxString wxPyART_WARNING(wxART_WARNING);
1053 static const wxString wxPyART_INFORMATION(wxART_INFORMATION);
1054 static const wxString wxPyART_MISSING_IMAGE(wxART_MISSING_IMAGE);
1055 // Python aware wxArtProvider
1056 class wxPyArtProvider : public wxArtProvider {
1057 public:
1058
1059 virtual wxBitmap CreateBitmap(const wxArtID& id,
1060 const wxArtClient& client,
1061 const wxSize& size) {
1062 wxBitmap rval = wxNullBitmap;
1063 bool blocked = wxPyBeginBlockThreads();
1064 if ((wxPyCBH_findCallback(m_myInst, "CreateBitmap"))) {
1065 PyObject* so = wxPyConstructObject((void*)&size, wxT("wxSize"), 0);
1066 PyObject* ro;
1067 wxBitmap* ptr;
1068 PyObject* s1, *s2;
1069 s1 = wx2PyString(id);
1070 s2 = wx2PyString(client);
1071 ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OOO)", s1, s2, so));
1072 Py_DECREF(so);
1073 Py_DECREF(s1);
1074 Py_DECREF(s2);
1075 if (ro) {
1076 if (wxPyConvertSwigPtr(ro, (void**)&ptr, wxT("wxBitmap")))
1077 rval = *ptr;
1078 Py_DECREF(ro);
1079 }
1080 }
1081 wxPyEndBlockThreads(blocked);
1082 return rval;
1083 }
1084
1085 PYPRIVATE;
1086 };
1087
1088 void wxPyArtProvider_Destroy(wxPyArtProvider *self){ delete self; }
1089
1090
1091
1092 static PyObject* __EnumerationHelper(bool flag, wxString& str, long index) {
1093 PyObject* ret = PyTuple_New(3);
1094 if (ret) {
1095 PyTuple_SET_ITEM(ret, 0, PyInt_FromLong(flag));
1096 PyTuple_SET_ITEM(ret, 1, wx2PyString(str));
1097 PyTuple_SET_ITEM(ret, 2, PyInt_FromLong(index));
1098 }
1099 return ret;
1100 }
1101
1102 PyObject *wxConfigBase_GetFirstGroup(wxConfigBase *self){
1103 bool cont;
1104 long index = 0;
1105 wxString value;
1106
1107 cont = self->GetFirstGroup(value, index);
1108 return __EnumerationHelper(cont, value, index);
1109 }
1110 PyObject *wxConfigBase_GetNextGroup(wxConfigBase *self,long index){
1111 bool cont;
1112 wxString value;
1113
1114 cont = self->GetNextGroup(value, index);
1115 return __EnumerationHelper(cont, value, index);
1116 }
1117 PyObject *wxConfigBase_GetFirstEntry(wxConfigBase *self){
1118 bool cont;
1119 long index = 0;
1120 wxString value;
1121
1122 cont = self->GetFirstEntry(value, index);
1123 return __EnumerationHelper(cont, value, index);
1124 }
1125 PyObject *wxConfigBase_GetNextEntry(wxConfigBase *self,long index){
1126 bool cont;
1127 wxString value;
1128
1129 cont = self->GetNextEntry(value, index);
1130 return __EnumerationHelper(cont, value, index);
1131 }
1132 long wxConfigBase_ReadInt(wxConfigBase *self,wxString const &key,long defaultVal){
1133 long rv;
1134 self->Read(key, &rv, defaultVal);
1135 return rv;
1136 }
1137
1138 SWIGSTATICINLINE(double)
1139 SWIG_AsDouble(PyObject *obj)
1140 {
1141 if (PyNumber_Check(obj))
1142 return PyFloat_AsDouble(obj);
1143 else {
1144 PyObject* errmsg = PyString_FromFormat("Expected number, got %s",
1145 obj->ob_type->tp_name);
1146 PyErr_SetObject(PyExc_TypeError, errmsg);
1147 Py_DECREF(errmsg);
1148 return 0;
1149 }
1150 }
1151
1152
1153 SWIGSTATICINLINE(int)
1154 SWIG_CheckDouble(PyObject* obj)
1155 {
1156 SWIG_AsDouble(obj);
1157 if (PyErr_Occurred()) {
1158 PyErr_Clear();
1159 return 0;
1160 } else {
1161 return 1;
1162 }
1163 }
1164
1165 double wxConfigBase_ReadFloat(wxConfigBase *self,wxString const &key,double defaultVal){
1166 double rv;
1167 self->Read(key, &rv, defaultVal);
1168 return rv;
1169 }
1170 bool wxConfigBase_ReadBool(wxConfigBase *self,wxString const &key,bool defaultVal){
1171 bool rv;
1172 self->Read(key, &rv, defaultVal);
1173 return rv;
1174 }
1175
1176 #include <wx/datetime.h>
1177
1178
1179 static const wxString wxPyDateFormatStr(wxT("%c"));
1180 static const wxString wxPyTimeSpanFormatStr(wxT("%H:%M:%S"));
1181
1182 #define LOCAL_TZ wxDateTime::Local
1183
1184
1185 #if UINT_MAX < LONG_MAX
1186 #define SWIG_FromUnsignedInt SWIG_FromLong
1187 #else
1188 #define SWIG_FromUnsignedInt SWIG_FromUnsignedLong
1189 #endif
1190
1191 wxDateTime wxDateTime___add____SWIG_0(wxDateTime *self,wxTimeSpan const &other){ return *self + other; }
1192 wxDateTime wxDateTime___add____SWIG_1(wxDateTime *self,wxDateSpan const &other){ return *self + other; }
1193 wxTimeSpan wxDateTime___sub____SWIG_0(wxDateTime *self,wxDateTime const &other){ return *self - other; }
1194 wxDateTime wxDateTime___sub____SWIG_1(wxDateTime *self,wxTimeSpan const &other){ return *self - other; }
1195 wxDateTime wxDateTime___sub____SWIG_2(wxDateTime *self,wxDateSpan const &other){ return *self - other; }
1196 bool wxDateTime___lt__(wxDateTime *self,wxDateTime const *other){
1197 if (!other || !self->IsValid() || !other->IsValid()) return self < other;
1198 return (*self < *other);
1199 }
1200 bool wxDateTime___le__(wxDateTime *self,wxDateTime const *other){
1201 if (!other || !self->IsValid() || !other->IsValid()) return self <= other;
1202 return (*self <= *other);
1203 }
1204 bool wxDateTime___gt__(wxDateTime *self,wxDateTime const *other){
1205 if (!other || !self->IsValid() || !other->IsValid()) return self > other;
1206 return (*self > *other);
1207 }
1208 bool wxDateTime___ge__(wxDateTime *self,wxDateTime const *other){
1209 if (!other || !self->IsValid() || !other->IsValid()) return self >= other;
1210 return (*self >= *other);
1211 }
1212 bool wxDateTime___eq__(wxDateTime *self,wxDateTime const *other){
1213 if (!other || !self->IsValid() || !other->IsValid()) return self == other;
1214 return (*self == *other);
1215 }
1216 bool wxDateTime___ne__(wxDateTime *self,wxDateTime const *other){
1217 if (!other || !self->IsValid() || !other->IsValid()) return self != other;
1218 return (*self != *other);
1219 }
1220 int wxDateTime_ParseRfc822Date(wxDateTime *self,wxString const &date){
1221 const wxChar* rv;
1222 const wxChar* _date = date;
1223 rv = self->ParseRfc822Date(_date);
1224 if (rv == NULL) return -1;
1225 return rv - _date;
1226 }
1227 int wxDateTime_ParseFormat(wxDateTime *self,wxString const &date,wxString const &format,wxDateTime const &dateDef){
1228 const wxChar* rv;
1229 const wxChar* _date = date;
1230 rv = self->ParseFormat(_date, format, dateDef);
1231 if (rv == NULL) return -1;
1232 return rv - _date;
1233 }
1234 int wxDateTime_ParseDateTime(wxDateTime *self,wxString const &datetime){
1235 const wxChar* rv;
1236 const wxChar* _datetime = datetime;
1237 rv = self->ParseDateTime(_datetime);
1238 if (rv == NULL) return -1;
1239 return rv - _datetime;
1240 }
1241 int wxDateTime_ParseDate(wxDateTime *self,wxString const &date){
1242 const wxChar* rv;
1243 const wxChar* _date = date;
1244 rv = self->ParseDate(_date);
1245 if (rv == NULL) return -1;
1246 return rv - _date;
1247 }
1248 int wxDateTime_ParseTime(wxDateTime *self,wxString const &time){
1249 const wxChar* rv;
1250 const wxChar* _time = time;
1251 rv = self->ParseTime(_time);
1252 if (rv == NULL) return -1;
1253 return rv - _time;
1254 }
1255 wxTimeSpan wxTimeSpan___add__(wxTimeSpan *self,wxTimeSpan const &other){ return *self + other; }
1256 wxTimeSpan wxTimeSpan___sub__(wxTimeSpan *self,wxTimeSpan const &other){ return *self - other; }
1257 wxTimeSpan wxTimeSpan___mul__(wxTimeSpan *self,int n){ return *self * n; }
1258 wxTimeSpan wxTimeSpan___rmul__(wxTimeSpan *self,int n){ return n * *self; }
1259 bool wxTimeSpan___lt__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self < *other) : False; }
1260 bool wxTimeSpan___le__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self <= *other) : False; }
1261 bool wxTimeSpan___gt__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self > *other) : True; }
1262 bool wxTimeSpan___ge__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self >= *other) : True; }
1263 bool wxTimeSpan___eq__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self == *other) : False; }
1264 bool wxTimeSpan___ne__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self != *other) : True; }
1265 wxDateSpan wxDateSpan___add__(wxDateSpan *self,wxDateSpan const &other){ return *self + other; }
1266 wxDateSpan wxDateSpan___sub__(wxDateSpan *self,wxDateSpan const &other){ return *self - other; }
1267 wxDateSpan wxDateSpan___mul__(wxDateSpan *self,int n){ return *self * n; }
1268 wxDateSpan wxDateSpan___rmul__(wxDateSpan *self,int n){ return n * *self; }
1269 bool wxDateSpan___eq__(wxDateSpan *self,wxDateSpan const *other){ return other ? (*self == *other) : False; }
1270 bool wxDateSpan___ne__(wxDateSpan *self,wxDateSpan const *other){ return other ? (*self != *other) : True; }
1271
1272 #include <wx/dataobj.h>
1273
1274 PyObject *wxDataObject_GetAllFormats(wxDataObject *self,wxDataObject::Direction dir){
1275 size_t count = self->GetFormatCount(dir);
1276 wxDataFormat* formats = new wxDataFormat[count];
1277 self->GetAllFormats(formats, dir);
1278
1279 bool blocked = wxPyBeginBlockThreads();
1280 PyObject* list = PyList_New(count);
1281 for (size_t i=0; i<count; i++) {
1282 wxDataFormat* format = new wxDataFormat(formats[i]);
1283 PyObject* obj = wxPyConstructObject((void*)format, wxT("wxDataFormat"), True);
1284 PyList_Append(list, obj);
1285 Py_DECREF(obj);
1286 }
1287 wxPyEndBlockThreads(blocked);
1288 delete [] formats;
1289 return list;
1290 }
1291 PyObject *wxDataObject_GetDataHere(wxDataObject *self,wxDataFormat const &format){
1292 PyObject* rval = NULL;
1293 size_t size = self->GetDataSize(format);
1294 bool blocked = wxPyBeginBlockThreads();
1295 if (size) {
1296 char* buf = new char[size];
1297 if (self->GetDataHere(format, buf))
1298 rval = PyString_FromStringAndSize(buf, size);
1299 delete [] buf;
1300 }
1301 if (! rval) {
1302 rval = Py_None;
1303 Py_INCREF(rval);
1304 }
1305 wxPyEndBlockThreads(blocked);
1306 return rval;
1307 }
1308 bool wxDataObject_SetData(wxDataObject *self,wxDataFormat const &format,PyObject *data){
1309 bool rval;
1310 bool blocked = wxPyBeginBlockThreads();
1311 if (PyString_Check(data)) {
1312 rval = self->SetData(format, PyString_Size(data), PyString_AsString(data));
1313 }
1314 else {
1315 // raise a TypeError if not a string
1316 PyErr_SetString(PyExc_TypeError, "String expected.");
1317 rval = False;
1318 }
1319 wxPyEndBlockThreads(blocked);
1320 return rval;
1321 }
1322 PyObject *wxDataObjectSimple_GetDataHere(wxDataObjectSimple *self){
1323 PyObject* rval = NULL;
1324 size_t size = self->GetDataSize();
1325 bool blocked = wxPyBeginBlockThreads();
1326 if (size) {
1327 char* buf = new char[size];
1328 if (self->GetDataHere(buf))
1329 rval = PyString_FromStringAndSize(buf, size);
1330 delete [] buf;
1331 }
1332 if (! rval) {
1333 rval = Py_None;
1334 Py_INCREF(rval);
1335 }
1336 wxPyEndBlockThreads(blocked);
1337 return rval;
1338 }
1339 bool wxDataObjectSimple_SetData(wxDataObjectSimple *self,PyObject *data){
1340 bool rval;
1341 bool blocked = wxPyBeginBlockThreads();
1342 if (PyString_Check(data)) {
1343 rval = self->SetData(PyString_Size(data), PyString_AsString(data));
1344 }
1345 else {
1346 // raise a TypeError if not a string
1347 PyErr_SetString(PyExc_TypeError, "String expected.");
1348 rval = False;
1349 }
1350 wxPyEndBlockThreads(blocked);
1351 return rval;
1352 }
1353 // Create a new class for wxPython to use
1354 class wxPyDataObjectSimple : public wxDataObjectSimple {
1355 public:
1356 wxPyDataObjectSimple(const wxDataFormat& format = wxFormatInvalid)
1357 : wxDataObjectSimple(format) {}
1358
1359 DEC_PYCALLBACK_SIZET__const(GetDataSize);
1360 bool GetDataHere(void *buf) const;
1361 bool SetData(size_t len, const void *buf) const;
1362 PYPRIVATE;
1363 };
1364
1365 IMP_PYCALLBACK_SIZET__const(wxPyDataObjectSimple, wxDataObjectSimple, GetDataSize);
1366
1367 bool wxPyDataObjectSimple::GetDataHere(void *buf) const {
1368 // We need to get the data for this object and write it to buf. I think
1369 // the best way to do this for wxPython is to have the Python method
1370 // return either a string or None and then act appropriately with the
1371 // C++ version.
1372
1373 bool rval = False;
1374 bool blocked = wxPyBeginBlockThreads();
1375 if (wxPyCBH_findCallback(m_myInst, "GetDataHere")) {
1376 PyObject* ro;
1377 ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()"));
1378 if (ro) {
1379 rval = (ro != Py_None && PyString_Check(ro));
1380 if (rval)
1381 memcpy(buf, PyString_AsString(ro), PyString_Size(ro));
1382 Py_DECREF(ro);
1383 }
1384 }
1385 wxPyEndBlockThreads(blocked);
1386 return rval;
1387 }
1388
1389 bool wxPyDataObjectSimple::SetData(size_t len, const void *buf) const{
1390 // For this one we simply need to make a string from buf and len
1391 // and send it to the Python method.
1392 bool rval = False;
1393 bool blocked = wxPyBeginBlockThreads();
1394 if (wxPyCBH_findCallback(m_myInst, "SetData")) {
1395 PyObject* data = PyString_FromStringAndSize((char*)buf, len);
1396 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(O)", data));
1397 Py_DECREF(data);
1398 }
1399 wxPyEndBlockThreads(blocked);
1400 return rval;
1401 }
1402
1403 // Create a new class for wxPython to use
1404 class wxPyTextDataObject : public wxTextDataObject {
1405 public:
1406 wxPyTextDataObject(const wxString& text = wxPyEmptyString)
1407 : wxTextDataObject(text) {}
1408
1409 DEC_PYCALLBACK_SIZET__const(GetTextLength);
1410 DEC_PYCALLBACK_STRING__const(GetText);
1411 DEC_PYCALLBACK__STRING(SetText);
1412 PYPRIVATE;
1413 };
1414
1415 IMP_PYCALLBACK_SIZET__const(wxPyTextDataObject, wxTextDataObject, GetTextLength);
1416 IMP_PYCALLBACK_STRING__const(wxPyTextDataObject, wxTextDataObject, GetText);
1417 IMP_PYCALLBACK__STRING(wxPyTextDataObject, wxTextDataObject, SetText);
1418
1419
1420 // Create a new class for wxPython to use
1421 class wxPyBitmapDataObject : public wxBitmapDataObject {
1422 public:
1423 wxPyBitmapDataObject(const wxBitmap& bitmap = wxNullBitmap)
1424 : wxBitmapDataObject(bitmap) {}
1425
1426 wxBitmap GetBitmap() const;
1427 void SetBitmap(const wxBitmap& bitmap);
1428 PYPRIVATE;
1429 };
1430
1431 wxBitmap wxPyBitmapDataObject::GetBitmap() const {
1432 wxBitmap* rval = &wxNullBitmap;
1433 bool blocked = wxPyBeginBlockThreads();
1434 if (wxPyCBH_findCallback(m_myInst, "GetBitmap")) {
1435 PyObject* ro;
1436 wxBitmap* ptr;
1437 ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()"));
1438 if (ro) {
1439 if (wxPyConvertSwigPtr(ro, (void **)&ptr, wxT("wxBitmap")))
1440 rval = ptr;
1441 Py_DECREF(ro);
1442 }
1443 }
1444 wxPyEndBlockThreads(blocked);
1445 return *rval;
1446 }
1447
1448 void wxPyBitmapDataObject::SetBitmap(const wxBitmap& bitmap) {
1449 bool blocked = wxPyBeginBlockThreads();
1450 if (wxPyCBH_findCallback(m_myInst, "SetBitmap")) {
1451 PyObject* bo = wxPyConstructObject((void*)&bitmap, wxT("wxBitmap"), False);
1452 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(O)", bo));
1453 Py_DECREF(bo);
1454 }
1455 wxPyEndBlockThreads(blocked);
1456 }
1457
1458 bool wxCustomDataObject_SetData(wxCustomDataObject *self,PyObject *data){
1459 bool rval;
1460 bool blocked = wxPyBeginBlockThreads();
1461 if (PyString_Check(data)) {
1462 rval = self->SetData(PyString_Size(data), PyString_AsString(data));
1463 }
1464 else {
1465 // raise a TypeError if not a string
1466 PyErr_SetString(PyExc_TypeError, "String expected.");
1467 rval = False;
1468 }
1469 wxPyEndBlockThreads(blocked);
1470 return rval;
1471 }
1472 PyObject *wxCustomDataObject_GetData(wxCustomDataObject *self){
1473 PyObject* obj;
1474 bool blocked = wxPyBeginBlockThreads();
1475 obj = PyString_FromStringAndSize((char*)self->GetData(), self->GetSize());
1476 wxPyEndBlockThreads(blocked);
1477 return obj;
1478 }
1479
1480 #include <wx/metafile.h>
1481
1482
1483 IMP_PYCALLBACK_BOOL_DR(wxPyDropSource, wxDropSource, GiveFeedback);
1484
1485
1486 IMP_PYCALLBACK__(wxPyDropTarget, wxDropTarget, OnLeave);
1487 IMP_PYCALLBACK_DR_2WXCDR(wxPyDropTarget, wxDropTarget, OnEnter);
1488 IMP_PYCALLBACK_DR_2WXCDR(wxPyDropTarget, wxDropTarget, OnDragOver);
1489 IMP_PYCALLBACK_DR_2WXCDR_pure(wxPyDropTarget, wxDropTarget, OnData);
1490 IMP_PYCALLBACK_BOOL_INTINT(wxPyDropTarget, wxDropTarget, OnDrop);
1491
1492
1493 class wxPyTextDropTarget : public wxTextDropTarget {
1494 public:
1495 wxPyTextDropTarget() {}
1496
1497 DEC_PYCALLBACK_BOOL_INTINTSTR_pure(OnDropText);
1498
1499 DEC_PYCALLBACK__(OnLeave);
1500 DEC_PYCALLBACK_DR_2WXCDR(OnEnter);
1501 DEC_PYCALLBACK_DR_2WXCDR(OnDragOver);
1502 DEC_PYCALLBACK_DR_2WXCDR(OnData);
1503 DEC_PYCALLBACK_BOOL_INTINT(OnDrop);
1504
1505 PYPRIVATE;
1506 };
1507
1508 IMP_PYCALLBACK_BOOL_INTINTSTR_pure(wxPyTextDropTarget, wxTextDropTarget, OnDropText);
1509 IMP_PYCALLBACK__(wxPyTextDropTarget, wxTextDropTarget, OnLeave);
1510 IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnEnter);
1511 IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnDragOver);
1512 IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnData);
1513 IMP_PYCALLBACK_BOOL_INTINT(wxPyTextDropTarget, wxTextDropTarget, OnDrop);
1514
1515
1516
1517 class wxPyFileDropTarget : public wxFileDropTarget {
1518 public:
1519 wxPyFileDropTarget() {}
1520
1521 virtual bool OnDropFiles(wxCoord x, wxCoord y, const wxArrayString& filenames);
1522
1523 DEC_PYCALLBACK__(OnLeave);
1524 DEC_PYCALLBACK_DR_2WXCDR(OnEnter);
1525 DEC_PYCALLBACK_DR_2WXCDR(OnDragOver);
1526 DEC_PYCALLBACK_DR_2WXCDR(OnData);
1527 DEC_PYCALLBACK_BOOL_INTINT(OnDrop);
1528
1529 PYPRIVATE;
1530 };
1531
1532 bool wxPyFileDropTarget::OnDropFiles(wxCoord x, wxCoord y,
1533 const wxArrayString& filenames) {
1534 bool rval = False;
1535 bool blocked = wxPyBeginBlockThreads();
1536 if (wxPyCBH_findCallback(m_myInst, "OnDropFiles")) {
1537 PyObject* list = wxArrayString2PyList_helper(filenames);
1538 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iiO)",x,y,list));
1539 Py_DECREF(list);
1540 }
1541 wxPyEndBlockThreads(blocked);
1542 return rval;
1543 }
1544
1545
1546
1547 IMP_PYCALLBACK__(wxPyFileDropTarget, wxFileDropTarget, OnLeave);
1548 IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnEnter);
1549 IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnDragOver);
1550 IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnData);
1551 IMP_PYCALLBACK_BOOL_INTINT(wxPyFileDropTarget, wxFileDropTarget, OnDrop);
1552
1553
1554
1555
1556 bool wxClipboardLocker___nonzero__(wxClipboardLocker *self){ return !!(*self); }
1557
1558 #include <wx/display.h>
1559
1560 bool wxVideoMode___eq__(wxVideoMode *self,wxVideoMode const *other){ return other ? (*self == *other) : False; }
1561 bool wxVideoMode___ne__(wxVideoMode *self,wxVideoMode const *other){ return other ? (*self != *other) : True; }
1562
1563 // dummy version of wxDisplay for when it is not enabled in the wxWidgets build
1564 #if !wxUSE_DISPLAY
1565 #include <wx/dynarray.h>
1566 #include <wx/vidmode.h>
1567
1568 WX_DECLARE_OBJARRAY(wxVideoMode, wxArrayVideoModes);
1569 #include "wx/arrimpl.cpp"
1570 WX_DEFINE_OBJARRAY(wxArrayVideoModes);
1571 const wxVideoMode wxDefaultVideoMode;
1572
1573 class wxDisplay
1574 {
1575 public:
1576 wxDisplay(size_t index = 0) { wxPyRaiseNotImplemented(); }
1577 ~wxDisplay() {}
1578
1579 static size_t GetCount()
1580 { wxPyRaiseNotImplemented(); return 0; }
1581
1582 static int GetFromPoint(const wxPoint& pt)
1583 { wxPyRaiseNotImplemented(); return wxNOT_FOUND; }
1584 static int GetFromWindow(wxWindow *window)
1585 { wxPyRaiseNotImplemented(); return wxNOT_FOUND; }
1586
1587 virtual bool IsOk() const { return false; }
1588 virtual wxRect GetGeometry() const { wxRect r; return r; }
1589 virtual wxString GetName() const { return wxEmptyString; }
1590 bool IsPrimary() const { return false; }
1591
1592 wxArrayVideoModes GetModes(const wxVideoMode& mode = wxDefaultVideoMode)
1593 { wxArrayVideoModes a; return a; }
1594
1595 virtual wxVideoMode GetCurrentMode() const
1596 { return wxDefaultVideoMode; }
1597
1598 virtual bool ChangeMode(const wxVideoMode& mode = wxDefaultVideoMode)
1599 { return false; }
1600
1601 void ResetMode() {}
1602 };
1603 #endif
1604
1605 int Display_GetFromWindow(wxWindow *window){ wxPyRaiseNotImplemented(); return wxNOT_FOUND; }
1606 PyObject *wxDisplay_GetModes(wxDisplay *self,wxVideoMode const &mode){
1607 PyObject* pyList = NULL;
1608 wxArrayVideoModes arr = self->GetModes(mode);
1609 bool blocked = wxPyBeginBlockThreads();
1610 pyList = PyList_New(0);
1611 for (int i=0; i < arr.GetCount(); i++) {
1612 wxVideoMode* m = new wxVideoMode(arr.Item(i));
1613 PyObject* pyObj = wxPyConstructObject(m, wxT("wxVideoMode"), true);
1614 PyList_Append(pyList, pyObj);
1615 Py_DECREF(pyObj);
1616 }
1617 wxPyEndBlockThreads(blocked);
1618 return pyList;
1619 }
1620 #ifdef __cplusplus
1621 extern "C" {
1622 #endif
1623 static PyObject *_wrap_SystemSettings_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1624 PyObject *resultobj;
1625 int arg1 ;
1626 wxColour result;
1627 PyObject * obj0 = 0 ;
1628 char *kwnames[] = {
1629 (char *) "index", NULL
1630 };
1631
1632 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_GetColour",kwnames,&obj0)) goto fail;
1633 arg1 = (wxSystemColour) SWIG_AsInt(obj0);
1634 if (PyErr_Occurred()) SWIG_fail;
1635 {
1636 if (!wxPyCheckForApp()) SWIG_fail;
1637 PyThreadState* __tstate = wxPyBeginAllowThreads();
1638 result = wxSystemSettings::GetColour((wxSystemColour )arg1);
1639
1640 wxPyEndAllowThreads(__tstate);
1641 if (PyErr_Occurred()) SWIG_fail;
1642 }
1643 {
1644 wxColour * resultptr;
1645 resultptr = new wxColour((wxColour &) result);
1646 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
1647 }
1648 return resultobj;
1649 fail:
1650 return NULL;
1651 }
1652
1653
1654 static PyObject *_wrap_SystemSettings_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
1655 PyObject *resultobj;
1656 int arg1 ;
1657 wxFont result;
1658 PyObject * obj0 = 0 ;
1659 char *kwnames[] = {
1660 (char *) "index", NULL
1661 };
1662
1663 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_GetFont",kwnames,&obj0)) goto fail;
1664 arg1 = (wxSystemFont) SWIG_AsInt(obj0);
1665 if (PyErr_Occurred()) SWIG_fail;
1666 {
1667 if (!wxPyCheckForApp()) SWIG_fail;
1668 PyThreadState* __tstate = wxPyBeginAllowThreads();
1669 result = wxSystemSettings::GetFont((wxSystemFont )arg1);
1670
1671 wxPyEndAllowThreads(__tstate);
1672 if (PyErr_Occurred()) SWIG_fail;
1673 }
1674 {
1675 wxFont * resultptr;
1676 resultptr = new wxFont((wxFont &) result);
1677 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1);
1678 }
1679 return resultobj;
1680 fail:
1681 return NULL;
1682 }
1683
1684
1685 static PyObject *_wrap_SystemSettings_GetMetric(PyObject *self, PyObject *args, PyObject *kwargs) {
1686 PyObject *resultobj;
1687 int arg1 ;
1688 int result;
1689 PyObject * obj0 = 0 ;
1690 char *kwnames[] = {
1691 (char *) "index", NULL
1692 };
1693
1694 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_GetMetric",kwnames,&obj0)) goto fail;
1695 arg1 = (wxSystemMetric) SWIG_AsInt(obj0);
1696 if (PyErr_Occurred()) SWIG_fail;
1697 {
1698 if (!wxPyCheckForApp()) SWIG_fail;
1699 PyThreadState* __tstate = wxPyBeginAllowThreads();
1700 result = (int)wxSystemSettings::GetMetric((wxSystemMetric )arg1);
1701
1702 wxPyEndAllowThreads(__tstate);
1703 if (PyErr_Occurred()) SWIG_fail;
1704 }
1705 resultobj = SWIG_FromInt((int)result);
1706 return resultobj;
1707 fail:
1708 return NULL;
1709 }
1710
1711
1712 static PyObject *_wrap_SystemSettings_HasFeature(PyObject *self, PyObject *args, PyObject *kwargs) {
1713 PyObject *resultobj;
1714 int arg1 ;
1715 bool result;
1716 PyObject * obj0 = 0 ;
1717 char *kwnames[] = {
1718 (char *) "index", NULL
1719 };
1720
1721 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_HasFeature",kwnames,&obj0)) goto fail;
1722 arg1 = (wxSystemFeature) SWIG_AsInt(obj0);
1723 if (PyErr_Occurred()) SWIG_fail;
1724 {
1725 if (!wxPyCheckForApp()) SWIG_fail;
1726 PyThreadState* __tstate = wxPyBeginAllowThreads();
1727 result = (bool)wxSystemSettings::HasFeature((wxSystemFeature )arg1);
1728
1729 wxPyEndAllowThreads(__tstate);
1730 if (PyErr_Occurred()) SWIG_fail;
1731 }
1732 {
1733 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1734 }
1735 return resultobj;
1736 fail:
1737 return NULL;
1738 }
1739
1740
1741 static PyObject *_wrap_SystemSettings_GetScreenType(PyObject *self, PyObject *args, PyObject *kwargs) {
1742 PyObject *resultobj;
1743 int result;
1744 char *kwnames[] = {
1745 NULL
1746 };
1747
1748 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":SystemSettings_GetScreenType",kwnames)) goto fail;
1749 {
1750 if (!wxPyCheckForApp()) SWIG_fail;
1751 PyThreadState* __tstate = wxPyBeginAllowThreads();
1752 result = (int)wxSystemSettings::GetScreenType();
1753
1754 wxPyEndAllowThreads(__tstate);
1755 if (PyErr_Occurred()) SWIG_fail;
1756 }
1757 resultobj = SWIG_FromInt((int)result);
1758 return resultobj;
1759 fail:
1760 return NULL;
1761 }
1762
1763
1764 static PyObject *_wrap_SystemSettings_SetScreenType(PyObject *self, PyObject *args, PyObject *kwargs) {
1765 PyObject *resultobj;
1766 int arg1 ;
1767 PyObject * obj0 = 0 ;
1768 char *kwnames[] = {
1769 (char *) "screen", NULL
1770 };
1771
1772 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_SetScreenType",kwnames,&obj0)) goto fail;
1773 arg1 = (wxSystemScreenType) SWIG_AsInt(obj0);
1774 if (PyErr_Occurred()) SWIG_fail;
1775 {
1776 if (!wxPyCheckForApp()) SWIG_fail;
1777 PyThreadState* __tstate = wxPyBeginAllowThreads();
1778 wxSystemSettings::SetScreenType((wxSystemScreenType )arg1);
1779
1780 wxPyEndAllowThreads(__tstate);
1781 if (PyErr_Occurred()) SWIG_fail;
1782 }
1783 Py_INCREF(Py_None); resultobj = Py_None;
1784 return resultobj;
1785 fail:
1786 return NULL;
1787 }
1788
1789
1790 static PyObject * SystemSettings_swigregister(PyObject *self, PyObject *args) {
1791 PyObject *obj;
1792 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1793 SWIG_TypeClientData(SWIGTYPE_p_wxSystemSettings, obj);
1794 Py_INCREF(obj);
1795 return Py_BuildValue((char *)"");
1796 }
1797 static PyObject *_wrap_new_SystemOptions(PyObject *self, PyObject *args, PyObject *kwargs) {
1798 PyObject *resultobj;
1799 wxSystemOptions *result;
1800 char *kwnames[] = {
1801 NULL
1802 };
1803
1804 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SystemOptions",kwnames)) goto fail;
1805 {
1806 PyThreadState* __tstate = wxPyBeginAllowThreads();
1807 result = (wxSystemOptions *)new wxSystemOptions();
1808
1809 wxPyEndAllowThreads(__tstate);
1810 if (PyErr_Occurred()) SWIG_fail;
1811 }
1812 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSystemOptions, 1);
1813 return resultobj;
1814 fail:
1815 return NULL;
1816 }
1817
1818
1819 static PyObject *_wrap_SystemOptions_SetOption(PyObject *self, PyObject *args, PyObject *kwargs) {
1820 PyObject *resultobj;
1821 wxString *arg1 = 0 ;
1822 wxString *arg2 = 0 ;
1823 bool temp1 = False ;
1824 bool temp2 = False ;
1825 PyObject * obj0 = 0 ;
1826 PyObject * obj1 = 0 ;
1827 char *kwnames[] = {
1828 (char *) "name",(char *) "value", NULL
1829 };
1830
1831 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SystemOptions_SetOption",kwnames,&obj0,&obj1)) goto fail;
1832 {
1833 arg1 = wxString_in_helper(obj0);
1834 if (arg1 == NULL) SWIG_fail;
1835 temp1 = True;
1836 }
1837 {
1838 arg2 = wxString_in_helper(obj1);
1839 if (arg2 == NULL) SWIG_fail;
1840 temp2 = True;
1841 }
1842 {
1843 PyThreadState* __tstate = wxPyBeginAllowThreads();
1844 wxSystemOptions::SetOption((wxString const &)*arg1,(wxString const &)*arg2);
1845
1846 wxPyEndAllowThreads(__tstate);
1847 if (PyErr_Occurred()) SWIG_fail;
1848 }
1849 Py_INCREF(Py_None); resultobj = Py_None;
1850 {
1851 if (temp1)
1852 delete arg1;
1853 }
1854 {
1855 if (temp2)
1856 delete arg2;
1857 }
1858 return resultobj;
1859 fail:
1860 {
1861 if (temp1)
1862 delete arg1;
1863 }
1864 {
1865 if (temp2)
1866 delete arg2;
1867 }
1868 return NULL;
1869 }
1870
1871
1872 static PyObject *_wrap_SystemOptions_SetOptionInt(PyObject *self, PyObject *args, PyObject *kwargs) {
1873 PyObject *resultobj;
1874 wxString *arg1 = 0 ;
1875 int arg2 ;
1876 bool temp1 = False ;
1877 PyObject * obj0 = 0 ;
1878 PyObject * obj1 = 0 ;
1879 char *kwnames[] = {
1880 (char *) "name",(char *) "value", NULL
1881 };
1882
1883 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SystemOptions_SetOptionInt",kwnames,&obj0,&obj1)) goto fail;
1884 {
1885 arg1 = wxString_in_helper(obj0);
1886 if (arg1 == NULL) SWIG_fail;
1887 temp1 = True;
1888 }
1889 arg2 = (int) SWIG_AsInt(obj1);
1890 if (PyErr_Occurred()) SWIG_fail;
1891 {
1892 PyThreadState* __tstate = wxPyBeginAllowThreads();
1893 wxSystemOptions::SetOption((wxString const &)*arg1,arg2);
1894
1895 wxPyEndAllowThreads(__tstate);
1896 if (PyErr_Occurred()) SWIG_fail;
1897 }
1898 Py_INCREF(Py_None); resultobj = Py_None;
1899 {
1900 if (temp1)
1901 delete arg1;
1902 }
1903 return resultobj;
1904 fail:
1905 {
1906 if (temp1)
1907 delete arg1;
1908 }
1909 return NULL;
1910 }
1911
1912
1913 static PyObject *_wrap_SystemOptions_GetOption(PyObject *self, PyObject *args, PyObject *kwargs) {
1914 PyObject *resultobj;
1915 wxString *arg1 = 0 ;
1916 wxString result;
1917 bool temp1 = False ;
1918 PyObject * obj0 = 0 ;
1919 char *kwnames[] = {
1920 (char *) "name", NULL
1921 };
1922
1923 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_GetOption",kwnames,&obj0)) goto fail;
1924 {
1925 arg1 = wxString_in_helper(obj0);
1926 if (arg1 == NULL) SWIG_fail;
1927 temp1 = True;
1928 }
1929 {
1930 PyThreadState* __tstate = wxPyBeginAllowThreads();
1931 result = wxSystemOptions::GetOption((wxString const &)*arg1);
1932
1933 wxPyEndAllowThreads(__tstate);
1934 if (PyErr_Occurred()) SWIG_fail;
1935 }
1936 {
1937 #if wxUSE_UNICODE
1938 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
1939 #else
1940 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
1941 #endif
1942 }
1943 {
1944 if (temp1)
1945 delete arg1;
1946 }
1947 return resultobj;
1948 fail:
1949 {
1950 if (temp1)
1951 delete arg1;
1952 }
1953 return NULL;
1954 }
1955
1956
1957 static PyObject *_wrap_SystemOptions_GetOptionInt(PyObject *self, PyObject *args, PyObject *kwargs) {
1958 PyObject *resultobj;
1959 wxString *arg1 = 0 ;
1960 int result;
1961 bool temp1 = False ;
1962 PyObject * obj0 = 0 ;
1963 char *kwnames[] = {
1964 (char *) "name", NULL
1965 };
1966
1967 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_GetOptionInt",kwnames,&obj0)) goto fail;
1968 {
1969 arg1 = wxString_in_helper(obj0);
1970 if (arg1 == NULL) SWIG_fail;
1971 temp1 = True;
1972 }
1973 {
1974 PyThreadState* __tstate = wxPyBeginAllowThreads();
1975 result = (int)wxSystemOptions::GetOptionInt((wxString const &)*arg1);
1976
1977 wxPyEndAllowThreads(__tstate);
1978 if (PyErr_Occurred()) SWIG_fail;
1979 }
1980 resultobj = SWIG_FromInt((int)result);
1981 {
1982 if (temp1)
1983 delete arg1;
1984 }
1985 return resultobj;
1986 fail:
1987 {
1988 if (temp1)
1989 delete arg1;
1990 }
1991 return NULL;
1992 }
1993
1994
1995 static PyObject *_wrap_SystemOptions_HasOption(PyObject *self, PyObject *args, PyObject *kwargs) {
1996 PyObject *resultobj;
1997 wxString *arg1 = 0 ;
1998 bool result;
1999 bool temp1 = False ;
2000 PyObject * obj0 = 0 ;
2001 char *kwnames[] = {
2002 (char *) "name", NULL
2003 };
2004
2005 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_HasOption",kwnames,&obj0)) goto fail;
2006 {
2007 arg1 = wxString_in_helper(obj0);
2008 if (arg1 == NULL) SWIG_fail;
2009 temp1 = True;
2010 }
2011 {
2012 PyThreadState* __tstate = wxPyBeginAllowThreads();
2013 result = (bool)wxSystemOptions::HasOption((wxString const &)*arg1);
2014
2015 wxPyEndAllowThreads(__tstate);
2016 if (PyErr_Occurred()) SWIG_fail;
2017 }
2018 {
2019 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2020 }
2021 {
2022 if (temp1)
2023 delete arg1;
2024 }
2025 return resultobj;
2026 fail:
2027 {
2028 if (temp1)
2029 delete arg1;
2030 }
2031 return NULL;
2032 }
2033
2034
2035 static PyObject * SystemOptions_swigregister(PyObject *self, PyObject *args) {
2036 PyObject *obj;
2037 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2038 SWIG_TypeClientData(SWIGTYPE_p_wxSystemOptions, obj);
2039 Py_INCREF(obj);
2040 return Py_BuildValue((char *)"");
2041 }
2042 static int _wrap_FileSelectorPromptStr_set(PyObject *_val) {
2043 PyErr_SetString(PyExc_TypeError,"Variable FileSelectorPromptStr is read-only.");
2044 return 1;
2045 }
2046
2047
2048 static PyObject *_wrap_FileSelectorPromptStr_get() {
2049 PyObject *pyobj;
2050
2051 {
2052 #if wxUSE_UNICODE
2053 pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len());
2054 #else
2055 pyobj = PyString_FromStringAndSize((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len());
2056 #endif
2057 }
2058 return pyobj;
2059 }
2060
2061
2062 static int _wrap_FileSelectorDefaultWildcardStr_set(PyObject *_val) {
2063 PyErr_SetString(PyExc_TypeError,"Variable FileSelectorDefaultWildcardStr is read-only.");
2064 return 1;
2065 }
2066
2067
2068 static PyObject *_wrap_FileSelectorDefaultWildcardStr_get() {
2069 PyObject *pyobj;
2070
2071 {
2072 #if wxUSE_UNICODE
2073 pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len());
2074 #else
2075 pyobj = PyString_FromStringAndSize((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len());
2076 #endif
2077 }
2078 return pyobj;
2079 }
2080
2081
2082 static int _wrap_DirSelectorPromptStr_set(PyObject *_val) {
2083 PyErr_SetString(PyExc_TypeError,"Variable DirSelectorPromptStr is read-only.");
2084 return 1;
2085 }
2086
2087
2088 static PyObject *_wrap_DirSelectorPromptStr_get() {
2089 PyObject *pyobj;
2090
2091 {
2092 #if wxUSE_UNICODE
2093 pyobj = PyUnicode_FromWideChar((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len());
2094 #else
2095 pyobj = PyString_FromStringAndSize((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len());
2096 #endif
2097 }
2098 return pyobj;
2099 }
2100
2101
2102 static PyObject *_wrap_NewId(PyObject *self, PyObject *args, PyObject *kwargs) {
2103 PyObject *resultobj;
2104 long result;
2105 char *kwnames[] = {
2106 NULL
2107 };
2108
2109 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":NewId",kwnames)) goto fail;
2110 {
2111 PyThreadState* __tstate = wxPyBeginAllowThreads();
2112 result = (long)wxNewId();
2113
2114 wxPyEndAllowThreads(__tstate);
2115 if (PyErr_Occurred()) SWIG_fail;
2116 }
2117 resultobj = SWIG_FromLong((long)result);
2118 return resultobj;
2119 fail:
2120 return NULL;
2121 }
2122
2123
2124 static PyObject *_wrap_RegisterId(PyObject *self, PyObject *args, PyObject *kwargs) {
2125 PyObject *resultobj;
2126 long arg1 ;
2127 PyObject * obj0 = 0 ;
2128 char *kwnames[] = {
2129 (char *) "id", NULL
2130 };
2131
2132 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegisterId",kwnames,&obj0)) goto fail;
2133 arg1 = (long) SWIG_AsLong(obj0);
2134 if (PyErr_Occurred()) SWIG_fail;
2135 {
2136 PyThreadState* __tstate = wxPyBeginAllowThreads();
2137 wxRegisterId(arg1);
2138
2139 wxPyEndAllowThreads(__tstate);
2140 if (PyErr_Occurred()) SWIG_fail;
2141 }
2142 Py_INCREF(Py_None); resultobj = Py_None;
2143 return resultobj;
2144 fail:
2145 return NULL;
2146 }
2147
2148
2149 static PyObject *_wrap_GetCurrentId(PyObject *self, PyObject *args, PyObject *kwargs) {
2150 PyObject *resultobj;
2151 long result;
2152 char *kwnames[] = {
2153 NULL
2154 };
2155
2156 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetCurrentId",kwnames)) goto fail;
2157 {
2158 PyThreadState* __tstate = wxPyBeginAllowThreads();
2159 result = (long)wxGetCurrentId();
2160
2161 wxPyEndAllowThreads(__tstate);
2162 if (PyErr_Occurred()) SWIG_fail;
2163 }
2164 resultobj = SWIG_FromLong((long)result);
2165 return resultobj;
2166 fail:
2167 return NULL;
2168 }
2169
2170
2171 static PyObject *_wrap_Bell(PyObject *self, PyObject *args, PyObject *kwargs) {
2172 PyObject *resultobj;
2173 char *kwnames[] = {
2174 NULL
2175 };
2176
2177 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Bell",kwnames)) goto fail;
2178 {
2179 if (!wxPyCheckForApp()) SWIG_fail;
2180 PyThreadState* __tstate = wxPyBeginAllowThreads();
2181 wxBell();
2182
2183 wxPyEndAllowThreads(__tstate);
2184 if (PyErr_Occurred()) SWIG_fail;
2185 }
2186 Py_INCREF(Py_None); resultobj = Py_None;
2187 return resultobj;
2188 fail:
2189 return NULL;
2190 }
2191
2192
2193 static PyObject *_wrap_EndBusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
2194 PyObject *resultobj;
2195 char *kwnames[] = {
2196 NULL
2197 };
2198
2199 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":EndBusyCursor",kwnames)) goto fail;
2200 {
2201 if (!wxPyCheckForApp()) SWIG_fail;
2202 PyThreadState* __tstate = wxPyBeginAllowThreads();
2203 wxEndBusyCursor();
2204
2205 wxPyEndAllowThreads(__tstate);
2206 if (PyErr_Occurred()) SWIG_fail;
2207 }
2208 Py_INCREF(Py_None); resultobj = Py_None;
2209 return resultobj;
2210 fail:
2211 return NULL;
2212 }
2213
2214
2215 static PyObject *_wrap_GetElapsedTime(PyObject *self, PyObject *args, PyObject *kwargs) {
2216 PyObject *resultobj;
2217 bool arg1 = (bool) True ;
2218 long result;
2219 PyObject * obj0 = 0 ;
2220 char *kwnames[] = {
2221 (char *) "resetTimer", NULL
2222 };
2223
2224 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:GetElapsedTime",kwnames,&obj0)) goto fail;
2225 if (obj0) {
2226 arg1 = (bool) SWIG_AsBool(obj0);
2227 if (PyErr_Occurred()) SWIG_fail;
2228 }
2229 {
2230 PyThreadState* __tstate = wxPyBeginAllowThreads();
2231 result = (long)wxGetElapsedTime(arg1);
2232
2233 wxPyEndAllowThreads(__tstate);
2234 if (PyErr_Occurred()) SWIG_fail;
2235 }
2236 resultobj = SWIG_FromLong((long)result);
2237 return resultobj;
2238 fail:
2239 return NULL;
2240 }
2241
2242
2243 static PyObject *_wrap_GetMousePosition(PyObject *self, PyObject *args, PyObject *kwargs) {
2244 PyObject *resultobj;
2245 int *arg1 = (int *) 0 ;
2246 int *arg2 = (int *) 0 ;
2247 int temp1 ;
2248 int temp2 ;
2249 char *kwnames[] = {
2250 NULL
2251 };
2252
2253 arg1 = &temp1;
2254 arg2 = &temp2;
2255 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetMousePosition",kwnames)) goto fail;
2256 {
2257 if (!wxPyCheckForApp()) SWIG_fail;
2258 PyThreadState* __tstate = wxPyBeginAllowThreads();
2259 wxGetMousePosition(arg1,arg2);
2260
2261 wxPyEndAllowThreads(__tstate);
2262 if (PyErr_Occurred()) SWIG_fail;
2263 }
2264 Py_INCREF(Py_None); resultobj = Py_None;
2265 {
2266 PyObject *o = PyInt_FromLong((long) (*arg1));
2267 resultobj = t_output_helper(resultobj,o);
2268 }
2269 {
2270 PyObject *o = PyInt_FromLong((long) (*arg2));
2271 resultobj = t_output_helper(resultobj,o);
2272 }
2273 return resultobj;
2274 fail:
2275 return NULL;
2276 }
2277
2278
2279 static PyObject *_wrap_IsBusy(PyObject *self, PyObject *args, PyObject *kwargs) {
2280 PyObject *resultobj;
2281 bool result;
2282 char *kwnames[] = {
2283 NULL
2284 };
2285
2286 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":IsBusy",kwnames)) goto fail;
2287 {
2288 PyThreadState* __tstate = wxPyBeginAllowThreads();
2289 result = (bool)wxIsBusy();
2290
2291 wxPyEndAllowThreads(__tstate);
2292 if (PyErr_Occurred()) SWIG_fail;
2293 }
2294 {
2295 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2296 }
2297 return resultobj;
2298 fail:
2299 return NULL;
2300 }
2301
2302
2303 static PyObject *_wrap_Now(PyObject *self, PyObject *args, PyObject *kwargs) {
2304 PyObject *resultobj;
2305 wxString result;
2306 char *kwnames[] = {
2307 NULL
2308 };
2309
2310 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Now",kwnames)) goto fail;
2311 {
2312 PyThreadState* __tstate = wxPyBeginAllowThreads();
2313 result = wxNow();
2314
2315 wxPyEndAllowThreads(__tstate);
2316 if (PyErr_Occurred()) SWIG_fail;
2317 }
2318 {
2319 #if wxUSE_UNICODE
2320 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2321 #else
2322 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2323 #endif
2324 }
2325 return resultobj;
2326 fail:
2327 return NULL;
2328 }
2329
2330
2331 static PyObject *_wrap_Shell(PyObject *self, PyObject *args, PyObject *kwargs) {
2332 PyObject *resultobj;
2333 wxString const &arg1_defvalue = wxPyEmptyString ;
2334 wxString *arg1 = (wxString *) &arg1_defvalue ;
2335 bool result;
2336 bool temp1 = False ;
2337 PyObject * obj0 = 0 ;
2338 char *kwnames[] = {
2339 (char *) "command", NULL
2340 };
2341
2342 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Shell",kwnames,&obj0)) goto fail;
2343 if (obj0) {
2344 {
2345 arg1 = wxString_in_helper(obj0);
2346 if (arg1 == NULL) SWIG_fail;
2347 temp1 = True;
2348 }
2349 }
2350 {
2351 PyThreadState* __tstate = wxPyBeginAllowThreads();
2352 result = (bool)wxShell((wxString const &)*arg1);
2353
2354 wxPyEndAllowThreads(__tstate);
2355 if (PyErr_Occurred()) SWIG_fail;
2356 }
2357 {
2358 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2359 }
2360 {
2361 if (temp1)
2362 delete arg1;
2363 }
2364 return resultobj;
2365 fail:
2366 {
2367 if (temp1)
2368 delete arg1;
2369 }
2370 return NULL;
2371 }
2372
2373
2374 static PyObject *_wrap_StartTimer(PyObject *self, PyObject *args, PyObject *kwargs) {
2375 PyObject *resultobj;
2376 char *kwnames[] = {
2377 NULL
2378 };
2379
2380 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":StartTimer",kwnames)) goto fail;
2381 {
2382 PyThreadState* __tstate = wxPyBeginAllowThreads();
2383 wxStartTimer();
2384
2385 wxPyEndAllowThreads(__tstate);
2386 if (PyErr_Occurred()) SWIG_fail;
2387 }
2388 Py_INCREF(Py_None); resultobj = Py_None;
2389 return resultobj;
2390 fail:
2391 return NULL;
2392 }
2393
2394
2395 static PyObject *_wrap_GetOsVersion(PyObject *self, PyObject *args, PyObject *kwargs) {
2396 PyObject *resultobj;
2397 int *arg1 = (int *) 0 ;
2398 int *arg2 = (int *) 0 ;
2399 int result;
2400 int temp1 ;
2401 int temp2 ;
2402 char *kwnames[] = {
2403 NULL
2404 };
2405
2406 arg1 = &temp1;
2407 arg2 = &temp2;
2408 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetOsVersion",kwnames)) goto fail;
2409 {
2410 PyThreadState* __tstate = wxPyBeginAllowThreads();
2411 result = (int)wxGetOsVersion(arg1,arg2);
2412
2413 wxPyEndAllowThreads(__tstate);
2414 if (PyErr_Occurred()) SWIG_fail;
2415 }
2416 resultobj = SWIG_FromInt((int)result);
2417 {
2418 PyObject *o = PyInt_FromLong((long) (*arg1));
2419 resultobj = t_output_helper(resultobj,o);
2420 }
2421 {
2422 PyObject *o = PyInt_FromLong((long) (*arg2));
2423 resultobj = t_output_helper(resultobj,o);
2424 }
2425 return resultobj;
2426 fail:
2427 return NULL;
2428 }
2429
2430
2431 static PyObject *_wrap_GetOsDescription(PyObject *self, PyObject *args, PyObject *kwargs) {
2432 PyObject *resultobj;
2433 wxString result;
2434 char *kwnames[] = {
2435 NULL
2436 };
2437
2438 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetOsDescription",kwnames)) goto fail;
2439 {
2440 PyThreadState* __tstate = wxPyBeginAllowThreads();
2441 result = wxGetOsDescription();
2442
2443 wxPyEndAllowThreads(__tstate);
2444 if (PyErr_Occurred()) SWIG_fail;
2445 }
2446 {
2447 #if wxUSE_UNICODE
2448 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2449 #else
2450 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2451 #endif
2452 }
2453 return resultobj;
2454 fail:
2455 return NULL;
2456 }
2457
2458
2459 static PyObject *_wrap_GetFreeMemory(PyObject *self, PyObject *args, PyObject *kwargs) {
2460 PyObject *resultobj;
2461 long result;
2462 char *kwnames[] = {
2463 NULL
2464 };
2465
2466 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetFreeMemory",kwnames)) goto fail;
2467 {
2468 PyThreadState* __tstate = wxPyBeginAllowThreads();
2469 result = (long)wxGetFreeMemory();
2470
2471 wxPyEndAllowThreads(__tstate);
2472 if (PyErr_Occurred()) SWIG_fail;
2473 }
2474 resultobj = SWIG_FromLong((long)result);
2475 return resultobj;
2476 fail:
2477 return NULL;
2478 }
2479
2480
2481 static PyObject *_wrap_Shutdown(PyObject *self, PyObject *args, PyObject *kwargs) {
2482 PyObject *resultobj;
2483 int arg1 ;
2484 bool result;
2485 PyObject * obj0 = 0 ;
2486 char *kwnames[] = {
2487 (char *) "wFlags", NULL
2488 };
2489
2490 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Shutdown",kwnames,&obj0)) goto fail;
2491 arg1 = (wxShutdownFlags) SWIG_AsInt(obj0);
2492 if (PyErr_Occurred()) SWIG_fail;
2493 {
2494 if (!wxPyCheckForApp()) SWIG_fail;
2495 PyThreadState* __tstate = wxPyBeginAllowThreads();
2496 result = (bool)wxShutdown((wxShutdownFlags )arg1);
2497
2498 wxPyEndAllowThreads(__tstate);
2499 if (PyErr_Occurred()) SWIG_fail;
2500 }
2501 {
2502 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2503 }
2504 return resultobj;
2505 fail:
2506 return NULL;
2507 }
2508
2509
2510 static PyObject *_wrap_Sleep(PyObject *self, PyObject *args, PyObject *kwargs) {
2511 PyObject *resultobj;
2512 int arg1 ;
2513 PyObject * obj0 = 0 ;
2514 char *kwnames[] = {
2515 (char *) "secs", NULL
2516 };
2517
2518 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sleep",kwnames,&obj0)) goto fail;
2519 arg1 = (int) SWIG_AsInt(obj0);
2520 if (PyErr_Occurred()) SWIG_fail;
2521 {
2522 PyThreadState* __tstate = wxPyBeginAllowThreads();
2523 wxSleep(arg1);
2524
2525 wxPyEndAllowThreads(__tstate);
2526 if (PyErr_Occurred()) SWIG_fail;
2527 }
2528 Py_INCREF(Py_None); resultobj = Py_None;
2529 return resultobj;
2530 fail:
2531 return NULL;
2532 }
2533
2534
2535 static PyObject *_wrap_MilliSleep(PyObject *self, PyObject *args, PyObject *kwargs) {
2536 PyObject *resultobj;
2537 unsigned long arg1 ;
2538 PyObject * obj0 = 0 ;
2539 char *kwnames[] = {
2540 (char *) "milliseconds", NULL
2541 };
2542
2543 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MilliSleep",kwnames,&obj0)) goto fail;
2544 arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0);
2545 if (PyErr_Occurred()) SWIG_fail;
2546 {
2547 PyThreadState* __tstate = wxPyBeginAllowThreads();
2548 wxMilliSleep(arg1);
2549
2550 wxPyEndAllowThreads(__tstate);
2551 if (PyErr_Occurred()) SWIG_fail;
2552 }
2553 Py_INCREF(Py_None); resultobj = Py_None;
2554 return resultobj;
2555 fail:
2556 return NULL;
2557 }
2558
2559
2560 static PyObject *_wrap_MicroSleep(PyObject *self, PyObject *args, PyObject *kwargs) {
2561 PyObject *resultobj;
2562 unsigned long arg1 ;
2563 PyObject * obj0 = 0 ;
2564 char *kwnames[] = {
2565 (char *) "microseconds", NULL
2566 };
2567
2568 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MicroSleep",kwnames,&obj0)) goto fail;
2569 arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0);
2570 if (PyErr_Occurred()) SWIG_fail;
2571 {
2572 PyThreadState* __tstate = wxPyBeginAllowThreads();
2573 wxMicroSleep(arg1);
2574
2575 wxPyEndAllowThreads(__tstate);
2576 if (PyErr_Occurred()) SWIG_fail;
2577 }
2578 Py_INCREF(Py_None); resultobj = Py_None;
2579 return resultobj;
2580 fail:
2581 return NULL;
2582 }
2583
2584
2585 static PyObject *_wrap_EnableTopLevelWindows(PyObject *self, PyObject *args, PyObject *kwargs) {
2586 PyObject *resultobj;
2587 bool arg1 ;
2588 PyObject * obj0 = 0 ;
2589 char *kwnames[] = {
2590 (char *) "enable", NULL
2591 };
2592
2593 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EnableTopLevelWindows",kwnames,&obj0)) goto fail;
2594 arg1 = (bool) SWIG_AsBool(obj0);
2595 if (PyErr_Occurred()) SWIG_fail;
2596 {
2597 PyThreadState* __tstate = wxPyBeginAllowThreads();
2598 wxEnableTopLevelWindows(arg1);
2599
2600 wxPyEndAllowThreads(__tstate);
2601 if (PyErr_Occurred()) SWIG_fail;
2602 }
2603 Py_INCREF(Py_None); resultobj = Py_None;
2604 return resultobj;
2605 fail:
2606 return NULL;
2607 }
2608
2609
2610 static PyObject *_wrap_StripMenuCodes(PyObject *self, PyObject *args, PyObject *kwargs) {
2611 PyObject *resultobj;
2612 wxString *arg1 = 0 ;
2613 wxString result;
2614 bool temp1 = False ;
2615 PyObject * obj0 = 0 ;
2616 char *kwnames[] = {
2617 (char *) "in", NULL
2618 };
2619
2620 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StripMenuCodes",kwnames,&obj0)) goto fail;
2621 {
2622 arg1 = wxString_in_helper(obj0);
2623 if (arg1 == NULL) SWIG_fail;
2624 temp1 = True;
2625 }
2626 {
2627 PyThreadState* __tstate = wxPyBeginAllowThreads();
2628 result = wxStripMenuCodes((wxString const &)*arg1);
2629
2630 wxPyEndAllowThreads(__tstate);
2631 if (PyErr_Occurred()) SWIG_fail;
2632 }
2633 {
2634 #if wxUSE_UNICODE
2635 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2636 #else
2637 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2638 #endif
2639 }
2640 {
2641 if (temp1)
2642 delete arg1;
2643 }
2644 return resultobj;
2645 fail:
2646 {
2647 if (temp1)
2648 delete arg1;
2649 }
2650 return NULL;
2651 }
2652
2653
2654 static PyObject *_wrap_GetEmailAddress(PyObject *self, PyObject *args, PyObject *kwargs) {
2655 PyObject *resultobj;
2656 wxString result;
2657 char *kwnames[] = {
2658 NULL
2659 };
2660
2661 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetEmailAddress",kwnames)) goto fail;
2662 {
2663 PyThreadState* __tstate = wxPyBeginAllowThreads();
2664 result = wxGetEmailAddress();
2665
2666 wxPyEndAllowThreads(__tstate);
2667 if (PyErr_Occurred()) SWIG_fail;
2668 }
2669 {
2670 #if wxUSE_UNICODE
2671 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2672 #else
2673 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2674 #endif
2675 }
2676 return resultobj;
2677 fail:
2678 return NULL;
2679 }
2680
2681
2682 static PyObject *_wrap_GetHostName(PyObject *self, PyObject *args, PyObject *kwargs) {
2683 PyObject *resultobj;
2684 wxString result;
2685 char *kwnames[] = {
2686 NULL
2687 };
2688
2689 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetHostName",kwnames)) goto fail;
2690 {
2691 PyThreadState* __tstate = wxPyBeginAllowThreads();
2692 result = wxGetHostName();
2693
2694 wxPyEndAllowThreads(__tstate);
2695 if (PyErr_Occurred()) SWIG_fail;
2696 }
2697 {
2698 #if wxUSE_UNICODE
2699 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2700 #else
2701 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2702 #endif
2703 }
2704 return resultobj;
2705 fail:
2706 return NULL;
2707 }
2708
2709
2710 static PyObject *_wrap_GetFullHostName(PyObject *self, PyObject *args, PyObject *kwargs) {
2711 PyObject *resultobj;
2712 wxString result;
2713 char *kwnames[] = {
2714 NULL
2715 };
2716
2717 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetFullHostName",kwnames)) goto fail;
2718 {
2719 PyThreadState* __tstate = wxPyBeginAllowThreads();
2720 result = wxGetFullHostName();
2721
2722 wxPyEndAllowThreads(__tstate);
2723 if (PyErr_Occurred()) SWIG_fail;
2724 }
2725 {
2726 #if wxUSE_UNICODE
2727 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2728 #else
2729 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2730 #endif
2731 }
2732 return resultobj;
2733 fail:
2734 return NULL;
2735 }
2736
2737
2738 static PyObject *_wrap_GetUserId(PyObject *self, PyObject *args, PyObject *kwargs) {
2739 PyObject *resultobj;
2740 wxString result;
2741 char *kwnames[] = {
2742 NULL
2743 };
2744
2745 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUserId",kwnames)) goto fail;
2746 {
2747 PyThreadState* __tstate = wxPyBeginAllowThreads();
2748 result = wxGetUserId();
2749
2750 wxPyEndAllowThreads(__tstate);
2751 if (PyErr_Occurred()) SWIG_fail;
2752 }
2753 {
2754 #if wxUSE_UNICODE
2755 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2756 #else
2757 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2758 #endif
2759 }
2760 return resultobj;
2761 fail:
2762 return NULL;
2763 }
2764
2765
2766 static PyObject *_wrap_GetUserName(PyObject *self, PyObject *args, PyObject *kwargs) {
2767 PyObject *resultobj;
2768 wxString result;
2769 char *kwnames[] = {
2770 NULL
2771 };
2772
2773 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUserName",kwnames)) goto fail;
2774 {
2775 PyThreadState* __tstate = wxPyBeginAllowThreads();
2776 result = wxGetUserName();
2777
2778 wxPyEndAllowThreads(__tstate);
2779 if (PyErr_Occurred()) SWIG_fail;
2780 }
2781 {
2782 #if wxUSE_UNICODE
2783 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2784 #else
2785 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2786 #endif
2787 }
2788 return resultobj;
2789 fail:
2790 return NULL;
2791 }
2792
2793
2794 static PyObject *_wrap_GetHomeDir(PyObject *self, PyObject *args, PyObject *kwargs) {
2795 PyObject *resultobj;
2796 wxString result;
2797 char *kwnames[] = {
2798 NULL
2799 };
2800
2801 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetHomeDir",kwnames)) goto fail;
2802 {
2803 PyThreadState* __tstate = wxPyBeginAllowThreads();
2804 result = wxGetHomeDir();
2805
2806 wxPyEndAllowThreads(__tstate);
2807 if (PyErr_Occurred()) SWIG_fail;
2808 }
2809 {
2810 #if wxUSE_UNICODE
2811 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2812 #else
2813 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2814 #endif
2815 }
2816 return resultobj;
2817 fail:
2818 return NULL;
2819 }
2820
2821
2822 static PyObject *_wrap_GetUserHome(PyObject *self, PyObject *args, PyObject *kwargs) {
2823 PyObject *resultobj;
2824 wxString const &arg1_defvalue = wxPyEmptyString ;
2825 wxString *arg1 = (wxString *) &arg1_defvalue ;
2826 wxString result;
2827 bool temp1 = False ;
2828 PyObject * obj0 = 0 ;
2829 char *kwnames[] = {
2830 (char *) "user", NULL
2831 };
2832
2833 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:GetUserHome",kwnames,&obj0)) goto fail;
2834 if (obj0) {
2835 {
2836 arg1 = wxString_in_helper(obj0);
2837 if (arg1 == NULL) SWIG_fail;
2838 temp1 = True;
2839 }
2840 }
2841 {
2842 PyThreadState* __tstate = wxPyBeginAllowThreads();
2843 result = wxGetUserHome((wxString const &)*arg1);
2844
2845 wxPyEndAllowThreads(__tstate);
2846 if (PyErr_Occurred()) SWIG_fail;
2847 }
2848 {
2849 #if wxUSE_UNICODE
2850 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2851 #else
2852 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2853 #endif
2854 }
2855 {
2856 if (temp1)
2857 delete arg1;
2858 }
2859 return resultobj;
2860 fail:
2861 {
2862 if (temp1)
2863 delete arg1;
2864 }
2865 return NULL;
2866 }
2867
2868
2869 static PyObject *_wrap_GetProcessId(PyObject *self, PyObject *args, PyObject *kwargs) {
2870 PyObject *resultobj;
2871 unsigned long result;
2872 char *kwnames[] = {
2873 NULL
2874 };
2875
2876 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetProcessId",kwnames)) goto fail;
2877 {
2878 PyThreadState* __tstate = wxPyBeginAllowThreads();
2879 result = (unsigned long)wxGetProcessId();
2880
2881 wxPyEndAllowThreads(__tstate);
2882 if (PyErr_Occurred()) SWIG_fail;
2883 }
2884 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
2885 return resultobj;
2886 fail:
2887 return NULL;
2888 }
2889
2890
2891 static PyObject *_wrap_Trap(PyObject *self, PyObject *args, PyObject *kwargs) {
2892 PyObject *resultobj;
2893 char *kwnames[] = {
2894 NULL
2895 };
2896
2897 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Trap",kwnames)) goto fail;
2898 {
2899 PyThreadState* __tstate = wxPyBeginAllowThreads();
2900 wxTrap();
2901
2902 wxPyEndAllowThreads(__tstate);
2903 if (PyErr_Occurred()) SWIG_fail;
2904 }
2905 Py_INCREF(Py_None); resultobj = Py_None;
2906 return resultobj;
2907 fail:
2908 return NULL;
2909 }
2910
2911
2912 static PyObject *_wrap_FileSelector(PyObject *self, PyObject *args, PyObject *kwargs) {
2913 PyObject *resultobj;
2914 wxString const &arg1_defvalue = wxPyFileSelectorPromptStr ;
2915 wxString *arg1 = (wxString *) &arg1_defvalue ;
2916 wxString const &arg2_defvalue = wxPyEmptyString ;
2917 wxString *arg2 = (wxString *) &arg2_defvalue ;
2918 wxString const &arg3_defvalue = wxPyEmptyString ;
2919 wxString *arg3 = (wxString *) &arg3_defvalue ;
2920 wxString const &arg4_defvalue = wxPyEmptyString ;
2921 wxString *arg4 = (wxString *) &arg4_defvalue ;
2922 wxString const &arg5_defvalue = wxPyFileSelectorDefaultWildcardStr ;
2923 wxString *arg5 = (wxString *) &arg5_defvalue ;
2924 int arg6 = (int) 0 ;
2925 wxWindow *arg7 = (wxWindow *) NULL ;
2926 int arg8 = (int) -1 ;
2927 int arg9 = (int) -1 ;
2928 wxString result;
2929 bool temp1 = False ;
2930 bool temp2 = False ;
2931 bool temp3 = False ;
2932 bool temp4 = False ;
2933 bool temp5 = False ;
2934 PyObject * obj0 = 0 ;
2935 PyObject * obj1 = 0 ;
2936 PyObject * obj2 = 0 ;
2937 PyObject * obj3 = 0 ;
2938 PyObject * obj4 = 0 ;
2939 PyObject * obj5 = 0 ;
2940 PyObject * obj6 = 0 ;
2941 PyObject * obj7 = 0 ;
2942 PyObject * obj8 = 0 ;
2943 char *kwnames[] = {
2944 (char *) "message",(char *) "default_path",(char *) "default_filename",(char *) "default_extension",(char *) "wildcard",(char *) "flags",(char *) "parent",(char *) "x",(char *) "y", NULL
2945 };
2946
2947 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOOOOOO:FileSelector",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
2948 if (obj0) {
2949 {
2950 arg1 = wxString_in_helper(obj0);
2951 if (arg1 == NULL) SWIG_fail;
2952 temp1 = True;
2953 }
2954 }
2955 if (obj1) {
2956 {
2957 arg2 = wxString_in_helper(obj1);
2958 if (arg2 == NULL) SWIG_fail;
2959 temp2 = True;
2960 }
2961 }
2962 if (obj2) {
2963 {
2964 arg3 = wxString_in_helper(obj2);
2965 if (arg3 == NULL) SWIG_fail;
2966 temp3 = True;
2967 }
2968 }
2969 if (obj3) {
2970 {
2971 arg4 = wxString_in_helper(obj3);
2972 if (arg4 == NULL) SWIG_fail;
2973 temp4 = True;
2974 }
2975 }
2976 if (obj4) {
2977 {
2978 arg5 = wxString_in_helper(obj4);
2979 if (arg5 == NULL) SWIG_fail;
2980 temp5 = True;
2981 }
2982 }
2983 if (obj5) {
2984 arg6 = (int) SWIG_AsInt(obj5);
2985 if (PyErr_Occurred()) SWIG_fail;
2986 }
2987 if (obj6) {
2988 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxWindow,
2989 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2990 }
2991 if (obj7) {
2992 arg8 = (int) SWIG_AsInt(obj7);
2993 if (PyErr_Occurred()) SWIG_fail;
2994 }
2995 if (obj8) {
2996 arg9 = (int) SWIG_AsInt(obj8);
2997 if (PyErr_Occurred()) SWIG_fail;
2998 }
2999 {
3000 if (!wxPyCheckForApp()) SWIG_fail;
3001 PyThreadState* __tstate = wxPyBeginAllowThreads();
3002 result = wxFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxString const &)*arg5,arg6,arg7,arg8,arg9);
3003
3004 wxPyEndAllowThreads(__tstate);
3005 if (PyErr_Occurred()) SWIG_fail;
3006 }
3007 {
3008 #if wxUSE_UNICODE
3009 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3010 #else
3011 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3012 #endif
3013 }
3014 {
3015 if (temp1)
3016 delete arg1;
3017 }
3018 {
3019 if (temp2)
3020 delete arg2;
3021 }
3022 {
3023 if (temp3)
3024 delete arg3;
3025 }
3026 {
3027 if (temp4)
3028 delete arg4;
3029 }
3030 {
3031 if (temp5)
3032 delete arg5;
3033 }
3034 return resultobj;
3035 fail:
3036 {
3037 if (temp1)
3038 delete arg1;
3039 }
3040 {
3041 if (temp2)
3042 delete arg2;
3043 }
3044 {
3045 if (temp3)
3046 delete arg3;
3047 }
3048 {
3049 if (temp4)
3050 delete arg4;
3051 }
3052 {
3053 if (temp5)
3054 delete arg5;
3055 }
3056 return NULL;
3057 }
3058
3059
3060 static PyObject *_wrap_LoadFileSelector(PyObject *self, PyObject *args, PyObject *kwargs) {
3061 PyObject *resultobj;
3062 wxString *arg1 = 0 ;
3063 wxString *arg2 = 0 ;
3064 wxString const &arg3_defvalue = wxPyEmptyString ;
3065 wxString *arg3 = (wxString *) &arg3_defvalue ;
3066 wxWindow *arg4 = (wxWindow *) NULL ;
3067 wxString result;
3068 bool temp1 = False ;
3069 bool temp2 = False ;
3070 bool temp3 = False ;
3071 PyObject * obj0 = 0 ;
3072 PyObject * obj1 = 0 ;
3073 PyObject * obj2 = 0 ;
3074 PyObject * obj3 = 0 ;
3075 char *kwnames[] = {
3076 (char *) "what",(char *) "extension",(char *) "default_name",(char *) "parent", NULL
3077 };
3078
3079 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:LoadFileSelector",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3080 {
3081 arg1 = wxString_in_helper(obj0);
3082 if (arg1 == NULL) SWIG_fail;
3083 temp1 = True;
3084 }
3085 {
3086 arg2 = wxString_in_helper(obj1);
3087 if (arg2 == NULL) SWIG_fail;
3088 temp2 = True;
3089 }
3090 if (obj2) {
3091 {
3092 arg3 = wxString_in_helper(obj2);
3093 if (arg3 == NULL) SWIG_fail;
3094 temp3 = True;
3095 }
3096 }
3097 if (obj3) {
3098 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow,
3099 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3100 }
3101 {
3102 if (!wxPyCheckForApp()) SWIG_fail;
3103 PyThreadState* __tstate = wxPyBeginAllowThreads();
3104 result = wxLoadFileSelector((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_SaveFileSelector(PyObject *self, PyObject *args, PyObject *kwargs) {
3147 PyObject *resultobj;
3148 wxString *arg1 = 0 ;
3149 wxString *arg2 = 0 ;
3150 wxString const &arg3_defvalue = wxPyEmptyString ;
3151 wxString *arg3 = (wxString *) &arg3_defvalue ;
3152 wxWindow *arg4 = (wxWindow *) NULL ;
3153 wxString result;
3154 bool temp1 = False ;
3155 bool temp2 = False ;
3156 bool temp3 = False ;
3157 PyObject * obj0 = 0 ;
3158 PyObject * obj1 = 0 ;
3159 PyObject * obj2 = 0 ;
3160 PyObject * obj3 = 0 ;
3161 char *kwnames[] = {
3162 (char *) "what",(char *) "extension",(char *) "default_name",(char *) "parent", NULL
3163 };
3164
3165 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:SaveFileSelector",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3166 {
3167 arg1 = wxString_in_helper(obj0);
3168 if (arg1 == NULL) SWIG_fail;
3169 temp1 = True;
3170 }
3171 {
3172 arg2 = wxString_in_helper(obj1);
3173 if (arg2 == NULL) SWIG_fail;
3174 temp2 = True;
3175 }
3176 if (obj2) {
3177 {
3178 arg3 = wxString_in_helper(obj2);
3179 if (arg3 == NULL) SWIG_fail;
3180 temp3 = True;
3181 }
3182 }
3183 if (obj3) {
3184 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow,
3185 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3186 }
3187 {
3188 if (!wxPyCheckForApp()) SWIG_fail;
3189 PyThreadState* __tstate = wxPyBeginAllowThreads();
3190 result = wxSaveFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4);
3191
3192 wxPyEndAllowThreads(__tstate);
3193 if (PyErr_Occurred()) SWIG_fail;
3194 }
3195 {
3196 #if wxUSE_UNICODE
3197 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3198 #else
3199 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3200 #endif
3201 }
3202 {
3203 if (temp1)
3204 delete arg1;
3205 }
3206 {
3207 if (temp2)
3208 delete arg2;
3209 }
3210 {
3211 if (temp3)
3212 delete arg3;
3213 }
3214 return resultobj;
3215 fail:
3216 {
3217 if (temp1)
3218 delete arg1;
3219 }
3220 {
3221 if (temp2)
3222 delete arg2;
3223 }
3224 {
3225 if (temp3)
3226 delete arg3;
3227 }
3228 return NULL;
3229 }
3230
3231
3232 static PyObject *_wrap_DirSelector(PyObject *self, PyObject *args, PyObject *kwargs) {
3233 PyObject *resultobj;
3234 wxString const &arg1_defvalue = wxPyDirSelectorPromptStr ;
3235 wxString *arg1 = (wxString *) &arg1_defvalue ;
3236 wxString const &arg2_defvalue = wxPyEmptyString ;
3237 wxString *arg2 = (wxString *) &arg2_defvalue ;
3238 long arg3 = (long) wxDD_DEFAULT_STYLE ;
3239 wxPoint const &arg4_defvalue = wxDefaultPosition ;
3240 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
3241 wxWindow *arg5 = (wxWindow *) NULL ;
3242 wxString result;
3243 bool temp1 = False ;
3244 bool temp2 = False ;
3245 wxPoint temp4 ;
3246 PyObject * obj0 = 0 ;
3247 PyObject * obj1 = 0 ;
3248 PyObject * obj2 = 0 ;
3249 PyObject * obj3 = 0 ;
3250 PyObject * obj4 = 0 ;
3251 char *kwnames[] = {
3252 (char *) "message",(char *) "defaultPath",(char *) "style",(char *) "pos",(char *) "parent", NULL
3253 };
3254
3255 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:DirSelector",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
3256 if (obj0) {
3257 {
3258 arg1 = wxString_in_helper(obj0);
3259 if (arg1 == NULL) SWIG_fail;
3260 temp1 = True;
3261 }
3262 }
3263 if (obj1) {
3264 {
3265 arg2 = wxString_in_helper(obj1);
3266 if (arg2 == NULL) SWIG_fail;
3267 temp2 = True;
3268 }
3269 }
3270 if (obj2) {
3271 arg3 = (long) SWIG_AsLong(obj2);
3272 if (PyErr_Occurred()) SWIG_fail;
3273 }
3274 if (obj3) {
3275 {
3276 arg4 = &temp4;
3277 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
3278 }
3279 }
3280 if (obj4) {
3281 if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxWindow,
3282 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3283 }
3284 {
3285 if (!wxPyCheckForApp()) SWIG_fail;
3286 PyThreadState* __tstate = wxPyBeginAllowThreads();
3287 result = wxDirSelector((wxString const &)*arg1,(wxString const &)*arg2,arg3,(wxPoint const &)*arg4,arg5);
3288
3289 wxPyEndAllowThreads(__tstate);
3290 if (PyErr_Occurred()) SWIG_fail;
3291 }
3292 {
3293 #if wxUSE_UNICODE
3294 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3295 #else
3296 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3297 #endif
3298 }
3299 {
3300 if (temp1)
3301 delete arg1;
3302 }
3303 {
3304 if (temp2)
3305 delete arg2;
3306 }
3307 return resultobj;
3308 fail:
3309 {
3310 if (temp1)
3311 delete arg1;
3312 }
3313 {
3314 if (temp2)
3315 delete arg2;
3316 }
3317 return NULL;
3318 }
3319
3320
3321 static PyObject *_wrap_GetTextFromUser(PyObject *self, PyObject *args, PyObject *kwargs) {
3322 PyObject *resultobj;
3323 wxString *arg1 = 0 ;
3324 wxString const &arg2_defvalue = wxPyEmptyString ;
3325 wxString *arg2 = (wxString *) &arg2_defvalue ;
3326 wxString const &arg3_defvalue = wxPyEmptyString ;
3327 wxString *arg3 = (wxString *) &arg3_defvalue ;
3328 wxWindow *arg4 = (wxWindow *) NULL ;
3329 int arg5 = (int) -1 ;
3330 int arg6 = (int) -1 ;
3331 bool arg7 = (bool) True ;
3332 wxString result;
3333 bool temp1 = False ;
3334 bool temp2 = False ;
3335 bool temp3 = False ;
3336 PyObject * obj0 = 0 ;
3337 PyObject * obj1 = 0 ;
3338 PyObject * obj2 = 0 ;
3339 PyObject * obj3 = 0 ;
3340 PyObject * obj4 = 0 ;
3341 PyObject * obj5 = 0 ;
3342 PyObject * obj6 = 0 ;
3343 char *kwnames[] = {
3344 (char *) "message",(char *) "caption",(char *) "default_value",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre", NULL
3345 };
3346
3347 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GetTextFromUser",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
3348 {
3349 arg1 = wxString_in_helper(obj0);
3350 if (arg1 == NULL) SWIG_fail;
3351 temp1 = True;
3352 }
3353 if (obj1) {
3354 {
3355 arg2 = wxString_in_helper(obj1);
3356 if (arg2 == NULL) SWIG_fail;
3357 temp2 = True;
3358 }
3359 }
3360 if (obj2) {
3361 {
3362 arg3 = wxString_in_helper(obj2);
3363 if (arg3 == NULL) SWIG_fail;
3364 temp3 = True;
3365 }
3366 }
3367 if (obj3) {
3368 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow,
3369 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3370 }
3371 if (obj4) {
3372 arg5 = (int) SWIG_AsInt(obj4);
3373 if (PyErr_Occurred()) SWIG_fail;
3374 }
3375 if (obj5) {
3376 arg6 = (int) SWIG_AsInt(obj5);
3377 if (PyErr_Occurred()) SWIG_fail;
3378 }
3379 if (obj6) {
3380 arg7 = (bool) SWIG_AsBool(obj6);
3381 if (PyErr_Occurred()) SWIG_fail;
3382 }
3383 {
3384 if (!wxPyCheckForApp()) SWIG_fail;
3385 PyThreadState* __tstate = wxPyBeginAllowThreads();
3386 result = wxGetTextFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6,arg7);
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_GetPasswordFromUser(PyObject *self, PyObject *args, PyObject *kwargs) {
3429 PyObject *resultobj;
3430 wxString *arg1 = 0 ;
3431 wxString const &arg2_defvalue = wxPyEmptyString ;
3432 wxString *arg2 = (wxString *) &arg2_defvalue ;
3433 wxString const &arg3_defvalue = wxPyEmptyString ;
3434 wxString *arg3 = (wxString *) &arg3_defvalue ;
3435 wxWindow *arg4 = (wxWindow *) NULL ;
3436 wxString result;
3437 bool temp1 = False ;
3438 bool temp2 = False ;
3439 bool temp3 = False ;
3440 PyObject * obj0 = 0 ;
3441 PyObject * obj1 = 0 ;
3442 PyObject * obj2 = 0 ;
3443 PyObject * obj3 = 0 ;
3444 char *kwnames[] = {
3445 (char *) "message",(char *) "caption",(char *) "default_value",(char *) "parent", NULL
3446 };
3447
3448 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:GetPasswordFromUser",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3449 {
3450 arg1 = wxString_in_helper(obj0);
3451 if (arg1 == NULL) SWIG_fail;
3452 temp1 = True;
3453 }
3454 if (obj1) {
3455 {
3456 arg2 = wxString_in_helper(obj1);
3457 if (arg2 == NULL) SWIG_fail;
3458 temp2 = True;
3459 }
3460 }
3461 if (obj2) {
3462 {
3463 arg3 = wxString_in_helper(obj2);
3464 if (arg3 == NULL) SWIG_fail;
3465 temp3 = True;
3466 }
3467 }
3468 if (obj3) {
3469 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow,
3470 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3471 }
3472 {
3473 if (!wxPyCheckForApp()) SWIG_fail;
3474 PyThreadState* __tstate = wxPyBeginAllowThreads();
3475 result = wxGetPasswordFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4);
3476
3477 wxPyEndAllowThreads(__tstate);
3478 if (PyErr_Occurred()) SWIG_fail;
3479 }
3480 {
3481 #if wxUSE_UNICODE
3482 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3483 #else
3484 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3485 #endif
3486 }
3487 {
3488 if (temp1)
3489 delete arg1;
3490 }
3491 {
3492 if (temp2)
3493 delete arg2;
3494 }
3495 {
3496 if (temp3)
3497 delete arg3;
3498 }
3499 return resultobj;
3500 fail:
3501 {
3502 if (temp1)
3503 delete arg1;
3504 }
3505 {
3506 if (temp2)
3507 delete arg2;
3508 }
3509 {
3510 if (temp3)
3511 delete arg3;
3512 }
3513 return NULL;
3514 }
3515
3516
3517 static PyObject *_wrap_GetSingleChoice(PyObject *self, PyObject *args, PyObject *kwargs) {
3518 PyObject *resultobj;
3519 wxString *arg1 = 0 ;
3520 wxString *arg2 = 0 ;
3521 int arg3 ;
3522 wxString *arg4 = (wxString *) 0 ;
3523 wxWindow *arg5 = (wxWindow *) NULL ;
3524 int arg6 = (int) -1 ;
3525 int arg7 = (int) -1 ;
3526 bool arg8 = (bool) True ;
3527 int arg9 = (int) 150 ;
3528 int arg10 = (int) 200 ;
3529 wxString result;
3530 bool temp1 = False ;
3531 bool temp2 = False ;
3532 PyObject * obj0 = 0 ;
3533 PyObject * obj1 = 0 ;
3534 PyObject * obj2 = 0 ;
3535 PyObject * obj3 = 0 ;
3536 PyObject * obj4 = 0 ;
3537 PyObject * obj5 = 0 ;
3538 PyObject * obj6 = 0 ;
3539 PyObject * obj7 = 0 ;
3540 PyObject * obj8 = 0 ;
3541 char *kwnames[] = {
3542 (char *) "message",(char *) "caption",(char *) "choices",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre",(char *) "width",(char *) "height", NULL
3543 };
3544
3545 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:GetSingleChoice",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
3546 {
3547 arg1 = wxString_in_helper(obj0);
3548 if (arg1 == NULL) SWIG_fail;
3549 temp1 = True;
3550 }
3551 {
3552 arg2 = wxString_in_helper(obj1);
3553 if (arg2 == NULL) SWIG_fail;
3554 temp2 = True;
3555 }
3556 {
3557 arg3 = PyList_Size(obj2);
3558 arg4 = wxString_LIST_helper(obj2);
3559 if (arg4 == NULL) SWIG_fail;
3560 }
3561 if (obj3) {
3562 if ((SWIG_ConvertPtr(obj3,(void **)(&arg5),SWIGTYPE_p_wxWindow,
3563 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3564 }
3565 if (obj4) {
3566 arg6 = (int) SWIG_AsInt(obj4);
3567 if (PyErr_Occurred()) SWIG_fail;
3568 }
3569 if (obj5) {
3570 arg7 = (int) SWIG_AsInt(obj5);
3571 if (PyErr_Occurred()) SWIG_fail;
3572 }
3573 if (obj6) {
3574 arg8 = (bool) SWIG_AsBool(obj6);
3575 if (PyErr_Occurred()) SWIG_fail;
3576 }
3577 if (obj7) {
3578 arg9 = (int) SWIG_AsInt(obj7);
3579 if (PyErr_Occurred()) SWIG_fail;
3580 }
3581 if (obj8) {
3582 arg10 = (int) SWIG_AsInt(obj8);
3583 if (PyErr_Occurred()) SWIG_fail;
3584 }
3585 {
3586 if (!wxPyCheckForApp()) SWIG_fail;
3587 PyThreadState* __tstate = wxPyBeginAllowThreads();
3588 result = wxGetSingleChoice((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10);
3589
3590 wxPyEndAllowThreads(__tstate);
3591 if (PyErr_Occurred()) SWIG_fail;
3592 }
3593 {
3594 #if wxUSE_UNICODE
3595 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3596 #else
3597 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3598 #endif
3599 }
3600 {
3601 if (temp1)
3602 delete arg1;
3603 }
3604 {
3605 if (temp2)
3606 delete arg2;
3607 }
3608 {
3609 if (arg4) delete [] arg4;
3610 }
3611 return resultobj;
3612 fail:
3613 {
3614 if (temp1)
3615 delete arg1;
3616 }
3617 {
3618 if (temp2)
3619 delete arg2;
3620 }
3621 {
3622 if (arg4) delete [] arg4;
3623 }
3624 return NULL;
3625 }
3626
3627
3628 static PyObject *_wrap_GetSingleChoiceIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
3629 PyObject *resultobj;
3630 wxString *arg1 = 0 ;
3631 wxString *arg2 = 0 ;
3632 int arg3 ;
3633 wxString *arg4 = (wxString *) 0 ;
3634 wxWindow *arg5 = (wxWindow *) NULL ;
3635 int arg6 = (int) -1 ;
3636 int arg7 = (int) -1 ;
3637 bool arg8 = (bool) True ;
3638 int arg9 = (int) 150 ;
3639 int arg10 = (int) 200 ;
3640 int result;
3641 bool temp1 = False ;
3642 bool temp2 = False ;
3643 PyObject * obj0 = 0 ;
3644 PyObject * obj1 = 0 ;
3645 PyObject * obj2 = 0 ;
3646 PyObject * obj3 = 0 ;
3647 PyObject * obj4 = 0 ;
3648 PyObject * obj5 = 0 ;
3649 PyObject * obj6 = 0 ;
3650 PyObject * obj7 = 0 ;
3651 PyObject * obj8 = 0 ;
3652 char *kwnames[] = {
3653 (char *) "message",(char *) "caption",(char *) "choices",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre",(char *) "width",(char *) "height", NULL
3654 };
3655
3656 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:GetSingleChoiceIndex",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
3657 {
3658 arg1 = wxString_in_helper(obj0);
3659 if (arg1 == NULL) SWIG_fail;
3660 temp1 = True;
3661 }
3662 {
3663 arg2 = wxString_in_helper(obj1);
3664 if (arg2 == NULL) SWIG_fail;
3665 temp2 = True;
3666 }
3667 {
3668 arg3 = PyList_Size(obj2);
3669 arg4 = wxString_LIST_helper(obj2);
3670 if (arg4 == NULL) SWIG_fail;
3671 }
3672 if (obj3) {
3673 if ((SWIG_ConvertPtr(obj3,(void **)(&arg5),SWIGTYPE_p_wxWindow,
3674 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3675 }
3676 if (obj4) {
3677 arg6 = (int) SWIG_AsInt(obj4);
3678 if (PyErr_Occurred()) SWIG_fail;
3679 }
3680 if (obj5) {
3681 arg7 = (int) SWIG_AsInt(obj5);
3682 if (PyErr_Occurred()) SWIG_fail;
3683 }
3684 if (obj6) {
3685 arg8 = (bool) SWIG_AsBool(obj6);
3686 if (PyErr_Occurred()) SWIG_fail;
3687 }
3688 if (obj7) {
3689 arg9 = (int) SWIG_AsInt(obj7);
3690 if (PyErr_Occurred()) SWIG_fail;
3691 }
3692 if (obj8) {
3693 arg10 = (int) SWIG_AsInt(obj8);
3694 if (PyErr_Occurred()) SWIG_fail;
3695 }
3696 {
3697 if (!wxPyCheckForApp()) SWIG_fail;
3698 PyThreadState* __tstate = wxPyBeginAllowThreads();
3699 result = (int)wxGetSingleChoiceIndex((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10);
3700
3701 wxPyEndAllowThreads(__tstate);
3702 if (PyErr_Occurred()) SWIG_fail;
3703 }
3704 resultobj = SWIG_FromInt((int)result);
3705 {
3706 if (temp1)
3707 delete arg1;
3708 }
3709 {
3710 if (temp2)
3711 delete arg2;
3712 }
3713 {
3714 if (arg4) delete [] arg4;
3715 }
3716 return resultobj;
3717 fail:
3718 {
3719 if (temp1)
3720 delete arg1;
3721 }
3722 {
3723 if (temp2)
3724 delete arg2;
3725 }
3726 {
3727 if (arg4) delete [] arg4;
3728 }
3729 return NULL;
3730 }
3731
3732
3733 static PyObject *_wrap_MessageBox(PyObject *self, PyObject *args, PyObject *kwargs) {
3734 PyObject *resultobj;
3735 wxString *arg1 = 0 ;
3736 wxString const &arg2_defvalue = wxPyEmptyString ;
3737 wxString *arg2 = (wxString *) &arg2_defvalue ;
3738 int arg3 = (int) wxOK|wxCENTRE ;
3739 wxWindow *arg4 = (wxWindow *) NULL ;
3740 int arg5 = (int) -1 ;
3741 int arg6 = (int) -1 ;
3742 int result;
3743 bool temp1 = False ;
3744 bool temp2 = False ;
3745 PyObject * obj0 = 0 ;
3746 PyObject * obj1 = 0 ;
3747 PyObject * obj2 = 0 ;
3748 PyObject * obj3 = 0 ;
3749 PyObject * obj4 = 0 ;
3750 PyObject * obj5 = 0 ;
3751 char *kwnames[] = {
3752 (char *) "message",(char *) "caption",(char *) "style",(char *) "parent",(char *) "x",(char *) "y", NULL
3753 };
3754
3755 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:MessageBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
3756 {
3757 arg1 = wxString_in_helper(obj0);
3758 if (arg1 == NULL) SWIG_fail;
3759 temp1 = True;
3760 }
3761 if (obj1) {
3762 {
3763 arg2 = wxString_in_helper(obj1);
3764 if (arg2 == NULL) SWIG_fail;
3765 temp2 = True;
3766 }
3767 }
3768 if (obj2) {
3769 arg3 = (int) SWIG_AsInt(obj2);
3770 if (PyErr_Occurred()) SWIG_fail;
3771 }
3772 if (obj3) {
3773 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow,
3774 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3775 }
3776 if (obj4) {
3777 arg5 = (int) SWIG_AsInt(obj4);
3778 if (PyErr_Occurred()) SWIG_fail;
3779 }
3780 if (obj5) {
3781 arg6 = (int) SWIG_AsInt(obj5);
3782 if (PyErr_Occurred()) SWIG_fail;
3783 }
3784 {
3785 if (!wxPyCheckForApp()) SWIG_fail;
3786 PyThreadState* __tstate = wxPyBeginAllowThreads();
3787 result = (int)wxMessageBox((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6);
3788
3789 wxPyEndAllowThreads(__tstate);
3790 if (PyErr_Occurred()) SWIG_fail;
3791 }
3792 resultobj = SWIG_FromInt((int)result);
3793 {
3794 if (temp1)
3795 delete arg1;
3796 }
3797 {
3798 if (temp2)
3799 delete arg2;
3800 }
3801 return resultobj;
3802 fail:
3803 {
3804 if (temp1)
3805 delete arg1;
3806 }
3807 {
3808 if (temp2)
3809 delete arg2;
3810 }
3811 return NULL;
3812 }
3813
3814
3815 static PyObject *_wrap_GetNumberFromUser(PyObject *self, PyObject *args, PyObject *kwargs) {
3816 PyObject *resultobj;
3817 wxString *arg1 = 0 ;
3818 wxString *arg2 = 0 ;
3819 wxString *arg3 = 0 ;
3820 long arg4 ;
3821 long arg5 = (long) 0 ;
3822 long arg6 = (long) 100 ;
3823 wxWindow *arg7 = (wxWindow *) NULL ;
3824 wxPoint const &arg8_defvalue = wxDefaultPosition ;
3825 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
3826 long result;
3827 bool temp1 = False ;
3828 bool temp2 = False ;
3829 bool temp3 = False ;
3830 wxPoint temp8 ;
3831 PyObject * obj0 = 0 ;
3832 PyObject * obj1 = 0 ;
3833 PyObject * obj2 = 0 ;
3834 PyObject * obj3 = 0 ;
3835 PyObject * obj4 = 0 ;
3836 PyObject * obj5 = 0 ;
3837 PyObject * obj6 = 0 ;
3838 PyObject * obj7 = 0 ;
3839 char *kwnames[] = {
3840 (char *) "message",(char *) "prompt",(char *) "caption",(char *) "value",(char *) "min",(char *) "max",(char *) "parent",(char *) "pos", NULL
3841 };
3842
3843 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:GetNumberFromUser",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
3844 {
3845 arg1 = wxString_in_helper(obj0);
3846 if (arg1 == NULL) SWIG_fail;
3847 temp1 = True;
3848 }
3849 {
3850 arg2 = wxString_in_helper(obj1);
3851 if (arg2 == NULL) SWIG_fail;
3852 temp2 = True;
3853 }
3854 {
3855 arg3 = wxString_in_helper(obj2);
3856 if (arg3 == NULL) SWIG_fail;
3857 temp3 = True;
3858 }
3859 arg4 = (long) SWIG_AsLong(obj3);
3860 if (PyErr_Occurred()) SWIG_fail;
3861 if (obj4) {
3862 arg5 = (long) SWIG_AsLong(obj4);
3863 if (PyErr_Occurred()) SWIG_fail;
3864 }
3865 if (obj5) {
3866 arg6 = (long) SWIG_AsLong(obj5);
3867 if (PyErr_Occurred()) SWIG_fail;
3868 }
3869 if (obj6) {
3870 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxWindow,
3871 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3872 }
3873 if (obj7) {
3874 {
3875 arg8 = &temp8;
3876 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
3877 }
3878 }
3879 {
3880 if (!wxPyCheckForApp()) SWIG_fail;
3881 PyThreadState* __tstate = wxPyBeginAllowThreads();
3882 result = (long)wxGetNumberFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6,arg7,(wxPoint const &)*arg8);
3883
3884 wxPyEndAllowThreads(__tstate);
3885 if (PyErr_Occurred()) SWIG_fail;
3886 }
3887 resultobj = SWIG_FromLong((long)result);
3888 {
3889 if (temp1)
3890 delete arg1;
3891 }
3892 {
3893 if (temp2)
3894 delete arg2;
3895 }
3896 {
3897 if (temp3)
3898 delete arg3;
3899 }
3900 return resultobj;
3901 fail:
3902 {
3903 if (temp1)
3904 delete arg1;
3905 }
3906 {
3907 if (temp2)
3908 delete arg2;
3909 }
3910 {
3911 if (temp3)
3912 delete arg3;
3913 }
3914 return NULL;
3915 }
3916
3917
3918 static PyObject *_wrap_ColourDisplay(PyObject *self, PyObject *args, PyObject *kwargs) {
3919 PyObject *resultobj;
3920 bool result;
3921 char *kwnames[] = {
3922 NULL
3923 };
3924
3925 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ColourDisplay",kwnames)) goto fail;
3926 {
3927 if (!wxPyCheckForApp()) SWIG_fail;
3928 PyThreadState* __tstate = wxPyBeginAllowThreads();
3929 result = (bool)wxColourDisplay();
3930
3931 wxPyEndAllowThreads(__tstate);
3932 if (PyErr_Occurred()) SWIG_fail;
3933 }
3934 {
3935 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3936 }
3937 return resultobj;
3938 fail:
3939 return NULL;
3940 }
3941
3942
3943 static PyObject *_wrap_DisplayDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3944 PyObject *resultobj;
3945 int result;
3946 char *kwnames[] = {
3947 NULL
3948 };
3949
3950 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplayDepth",kwnames)) goto fail;
3951 {
3952 if (!wxPyCheckForApp()) SWIG_fail;
3953 PyThreadState* __tstate = wxPyBeginAllowThreads();
3954 result = (int)wxDisplayDepth();
3955
3956 wxPyEndAllowThreads(__tstate);
3957 if (PyErr_Occurred()) SWIG_fail;
3958 }
3959 resultobj = SWIG_FromInt((int)result);
3960 return resultobj;
3961 fail:
3962 return NULL;
3963 }
3964
3965
3966 static PyObject *_wrap_GetDisplayDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3967 PyObject *resultobj;
3968 int result;
3969 char *kwnames[] = {
3970 NULL
3971 };
3972
3973 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplayDepth",kwnames)) goto fail;
3974 {
3975 if (!wxPyCheckForApp()) SWIG_fail;
3976 PyThreadState* __tstate = wxPyBeginAllowThreads();
3977 result = (int)wxGetDisplayDepth();
3978
3979 wxPyEndAllowThreads(__tstate);
3980 if (PyErr_Occurred()) SWIG_fail;
3981 }
3982 resultobj = SWIG_FromInt((int)result);
3983 return resultobj;
3984 fail:
3985 return NULL;
3986 }
3987
3988
3989 static PyObject *_wrap_DisplaySize(PyObject *self, PyObject *args, PyObject *kwargs) {
3990 PyObject *resultobj;
3991 int *arg1 = (int *) 0 ;
3992 int *arg2 = (int *) 0 ;
3993 int temp1 ;
3994 int temp2 ;
3995 char *kwnames[] = {
3996 NULL
3997 };
3998
3999 arg1 = &temp1;
4000 arg2 = &temp2;
4001 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplaySize",kwnames)) goto fail;
4002 {
4003 if (!wxPyCheckForApp()) SWIG_fail;
4004 PyThreadState* __tstate = wxPyBeginAllowThreads();
4005 wxDisplaySize(arg1,arg2);
4006
4007 wxPyEndAllowThreads(__tstate);
4008 if (PyErr_Occurred()) SWIG_fail;
4009 }
4010 Py_INCREF(Py_None); resultobj = Py_None;
4011 {
4012 PyObject *o = PyInt_FromLong((long) (*arg1));
4013 resultobj = t_output_helper(resultobj,o);
4014 }
4015 {
4016 PyObject *o = PyInt_FromLong((long) (*arg2));
4017 resultobj = t_output_helper(resultobj,o);
4018 }
4019 return resultobj;
4020 fail:
4021 return NULL;
4022 }
4023
4024
4025 static PyObject *_wrap_GetDisplaySize(PyObject *self, PyObject *args, PyObject *kwargs) {
4026 PyObject *resultobj;
4027 wxSize result;
4028 char *kwnames[] = {
4029 NULL
4030 };
4031
4032 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplaySize",kwnames)) goto fail;
4033 {
4034 if (!wxPyCheckForApp()) SWIG_fail;
4035 PyThreadState* __tstate = wxPyBeginAllowThreads();
4036 result = wxGetDisplaySize();
4037
4038 wxPyEndAllowThreads(__tstate);
4039 if (PyErr_Occurred()) SWIG_fail;
4040 }
4041 {
4042 wxSize * resultptr;
4043 resultptr = new wxSize((wxSize &) result);
4044 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
4045 }
4046 return resultobj;
4047 fail:
4048 return NULL;
4049 }
4050
4051
4052 static PyObject *_wrap_DisplaySizeMM(PyObject *self, PyObject *args, PyObject *kwargs) {
4053 PyObject *resultobj;
4054 int *arg1 = (int *) 0 ;
4055 int *arg2 = (int *) 0 ;
4056 int temp1 ;
4057 int temp2 ;
4058 char *kwnames[] = {
4059 NULL
4060 };
4061
4062 arg1 = &temp1;
4063 arg2 = &temp2;
4064 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplaySizeMM",kwnames)) goto fail;
4065 {
4066 if (!wxPyCheckForApp()) SWIG_fail;
4067 PyThreadState* __tstate = wxPyBeginAllowThreads();
4068 wxDisplaySizeMM(arg1,arg2);
4069
4070 wxPyEndAllowThreads(__tstate);
4071 if (PyErr_Occurred()) SWIG_fail;
4072 }
4073 Py_INCREF(Py_None); resultobj = Py_None;
4074 {
4075 PyObject *o = PyInt_FromLong((long) (*arg1));
4076 resultobj = t_output_helper(resultobj,o);
4077 }
4078 {
4079 PyObject *o = PyInt_FromLong((long) (*arg2));
4080 resultobj = t_output_helper(resultobj,o);
4081 }
4082 return resultobj;
4083 fail:
4084 return NULL;
4085 }
4086
4087
4088 static PyObject *_wrap_GetDisplaySizeMM(PyObject *self, PyObject *args, PyObject *kwargs) {
4089 PyObject *resultobj;
4090 wxSize result;
4091 char *kwnames[] = {
4092 NULL
4093 };
4094
4095 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplaySizeMM",kwnames)) goto fail;
4096 {
4097 if (!wxPyCheckForApp()) SWIG_fail;
4098 PyThreadState* __tstate = wxPyBeginAllowThreads();
4099 result = wxGetDisplaySizeMM();
4100
4101 wxPyEndAllowThreads(__tstate);
4102 if (PyErr_Occurred()) SWIG_fail;
4103 }
4104 {
4105 wxSize * resultptr;
4106 resultptr = new wxSize((wxSize &) result);
4107 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
4108 }
4109 return resultobj;
4110 fail:
4111 return NULL;
4112 }
4113
4114
4115 static PyObject *_wrap_ClientDisplayRect(PyObject *self, PyObject *args, PyObject *kwargs) {
4116 PyObject *resultobj;
4117 int *arg1 = (int *) 0 ;
4118 int *arg2 = (int *) 0 ;
4119 int *arg3 = (int *) 0 ;
4120 int *arg4 = (int *) 0 ;
4121 int temp1 ;
4122 int temp2 ;
4123 int temp3 ;
4124 int temp4 ;
4125 char *kwnames[] = {
4126 NULL
4127 };
4128
4129 arg1 = &temp1;
4130 arg2 = &temp2;
4131 arg3 = &temp3;
4132 arg4 = &temp4;
4133 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ClientDisplayRect",kwnames)) goto fail;
4134 {
4135 if (!wxPyCheckForApp()) SWIG_fail;
4136 PyThreadState* __tstate = wxPyBeginAllowThreads();
4137 wxClientDisplayRect(arg1,arg2,arg3,arg4);
4138
4139 wxPyEndAllowThreads(__tstate);
4140 if (PyErr_Occurred()) SWIG_fail;
4141 }
4142 Py_INCREF(Py_None); resultobj = Py_None;
4143 {
4144 PyObject *o = PyInt_FromLong((long) (*arg1));
4145 resultobj = t_output_helper(resultobj,o);
4146 }
4147 {
4148 PyObject *o = PyInt_FromLong((long) (*arg2));
4149 resultobj = t_output_helper(resultobj,o);
4150 }
4151 {
4152 PyObject *o = PyInt_FromLong((long) (*arg3));
4153 resultobj = t_output_helper(resultobj,o);
4154 }
4155 {
4156 PyObject *o = PyInt_FromLong((long) (*arg4));
4157 resultobj = t_output_helper(resultobj,o);
4158 }
4159 return resultobj;
4160 fail:
4161 return NULL;
4162 }
4163
4164
4165 static PyObject *_wrap_GetClientDisplayRect(PyObject *self, PyObject *args, PyObject *kwargs) {
4166 PyObject *resultobj;
4167 wxRect result;
4168 char *kwnames[] = {
4169 NULL
4170 };
4171
4172 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetClientDisplayRect",kwnames)) goto fail;
4173 {
4174 if (!wxPyCheckForApp()) SWIG_fail;
4175 PyThreadState* __tstate = wxPyBeginAllowThreads();
4176 result = wxGetClientDisplayRect();
4177
4178 wxPyEndAllowThreads(__tstate);
4179 if (PyErr_Occurred()) SWIG_fail;
4180 }
4181 {
4182 wxRect * resultptr;
4183 resultptr = new wxRect((wxRect &) result);
4184 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
4185 }
4186 return resultobj;
4187 fail:
4188 return NULL;
4189 }
4190
4191
4192 static PyObject *_wrap_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
4193 PyObject *resultobj;
4194 wxCursor *arg1 = 0 ;
4195 PyObject * obj0 = 0 ;
4196 char *kwnames[] = {
4197 (char *) "cursor", NULL
4198 };
4199
4200 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursor",kwnames,&obj0)) goto fail;
4201 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
4202 SWIG_POINTER_EXCEPTION | 0)) == -1)
4203 SWIG_fail;
4204 if (arg1 == NULL) {
4205 PyErr_SetString(PyExc_TypeError,"null reference");
4206 SWIG_fail;
4207 }
4208 {
4209 if (!wxPyCheckForApp()) SWIG_fail;
4210 PyThreadState* __tstate = wxPyBeginAllowThreads();
4211 wxSetCursor(*arg1);
4212
4213 wxPyEndAllowThreads(__tstate);
4214 if (PyErr_Occurred()) SWIG_fail;
4215 }
4216 Py_INCREF(Py_None); resultobj = Py_None;
4217 return resultobj;
4218 fail:
4219 return NULL;
4220 }
4221
4222
4223 static PyObject *_wrap_BeginBusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
4224 PyObject *resultobj;
4225 wxCursor *arg1 = (wxCursor *) wxHOURGLASS_CURSOR ;
4226 PyObject * obj0 = 0 ;
4227 char *kwnames[] = {
4228 (char *) "cursor", NULL
4229 };
4230
4231 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:BeginBusyCursor",kwnames,&obj0)) goto fail;
4232 if (obj0) {
4233 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
4234 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4235 }
4236 {
4237 if (!wxPyCheckForApp()) SWIG_fail;
4238 PyThreadState* __tstate = wxPyBeginAllowThreads();
4239 wxBeginBusyCursor(arg1);
4240
4241 wxPyEndAllowThreads(__tstate);
4242 if (PyErr_Occurred()) SWIG_fail;
4243 }
4244 Py_INCREF(Py_None); resultobj = Py_None;
4245 return resultobj;
4246 fail:
4247 return NULL;
4248 }
4249
4250
4251 static PyObject *_wrap_GetActiveWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
4252 PyObject *resultobj;
4253 wxWindow *result;
4254 char *kwnames[] = {
4255 NULL
4256 };
4257
4258 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetActiveWindow",kwnames)) goto fail;
4259 {
4260 if (!wxPyCheckForApp()) SWIG_fail;
4261 PyThreadState* __tstate = wxPyBeginAllowThreads();
4262 result = (wxWindow *)wxGetActiveWindow();
4263
4264 wxPyEndAllowThreads(__tstate);
4265 if (PyErr_Occurred()) SWIG_fail;
4266 }
4267 {
4268 resultobj = wxPyMake_wxObject(result, 0);
4269 }
4270 return resultobj;
4271 fail:
4272 return NULL;
4273 }
4274
4275
4276 static PyObject *_wrap_GenericFindWindowAtPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
4277 PyObject *resultobj;
4278 wxPoint *arg1 = 0 ;
4279 wxWindow *result;
4280 wxPoint temp1 ;
4281 PyObject * obj0 = 0 ;
4282 char *kwnames[] = {
4283 (char *) "pt", NULL
4284 };
4285
4286 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericFindWindowAtPoint",kwnames,&obj0)) goto fail;
4287 {
4288 arg1 = &temp1;
4289 if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail;
4290 }
4291 {
4292 if (!wxPyCheckForApp()) SWIG_fail;
4293 PyThreadState* __tstate = wxPyBeginAllowThreads();
4294 result = (wxWindow *)wxGenericFindWindowAtPoint((wxPoint const &)*arg1);
4295
4296 wxPyEndAllowThreads(__tstate);
4297 if (PyErr_Occurred()) SWIG_fail;
4298 }
4299 {
4300 resultobj = wxPyMake_wxObject(result, 0);
4301 }
4302 return resultobj;
4303 fail:
4304 return NULL;
4305 }
4306
4307
4308 static PyObject *_wrap_FindWindowAtPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
4309 PyObject *resultobj;
4310 wxPoint *arg1 = 0 ;
4311 wxWindow *result;
4312 wxPoint temp1 ;
4313 PyObject * obj0 = 0 ;
4314 char *kwnames[] = {
4315 (char *) "pt", NULL
4316 };
4317
4318 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FindWindowAtPoint",kwnames,&obj0)) goto fail;
4319 {
4320 arg1 = &temp1;
4321 if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail;
4322 }
4323 {
4324 if (!wxPyCheckForApp()) SWIG_fail;
4325 PyThreadState* __tstate = wxPyBeginAllowThreads();
4326 result = (wxWindow *)wxFindWindowAtPoint((wxPoint const &)*arg1);
4327
4328 wxPyEndAllowThreads(__tstate);
4329 if (PyErr_Occurred()) SWIG_fail;
4330 }
4331 {
4332 resultobj = wxPyMake_wxObject(result, 0);
4333 }
4334 return resultobj;
4335 fail:
4336 return NULL;
4337 }
4338
4339
4340 static PyObject *_wrap_GetTopLevelParent(PyObject *self, PyObject *args, PyObject *kwargs) {
4341 PyObject *resultobj;
4342 wxWindow *arg1 = (wxWindow *) 0 ;
4343 wxWindow *result;
4344 PyObject * obj0 = 0 ;
4345 char *kwnames[] = {
4346 (char *) "win", NULL
4347 };
4348
4349 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetTopLevelParent",kwnames,&obj0)) goto fail;
4350 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
4351 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4352 {
4353 if (!wxPyCheckForApp()) SWIG_fail;
4354 PyThreadState* __tstate = wxPyBeginAllowThreads();
4355 result = (wxWindow *)wxGetTopLevelParent(arg1);
4356
4357 wxPyEndAllowThreads(__tstate);
4358 if (PyErr_Occurred()) SWIG_fail;
4359 }
4360 {
4361 resultobj = wxPyMake_wxObject(result, 0);
4362 }
4363 return resultobj;
4364 fail:
4365 return NULL;
4366 }
4367
4368
4369 static PyObject *_wrap_GetKeyState(PyObject *self, PyObject *args, PyObject *kwargs) {
4370 PyObject *resultobj;
4371 int arg1 ;
4372 bool result;
4373 PyObject * obj0 = 0 ;
4374 char *kwnames[] = {
4375 (char *) "key", NULL
4376 };
4377
4378 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetKeyState",kwnames,&obj0)) goto fail;
4379 arg1 = (wxKeyCode) SWIG_AsInt(obj0);
4380 if (PyErr_Occurred()) SWIG_fail;
4381 {
4382 if (!wxPyCheckForApp()) SWIG_fail;
4383 PyThreadState* __tstate = wxPyBeginAllowThreads();
4384 result = (bool)wxGetKeyState((wxKeyCode )arg1);
4385
4386 wxPyEndAllowThreads(__tstate);
4387 if (PyErr_Occurred()) SWIG_fail;
4388 }
4389 {
4390 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4391 }
4392 return resultobj;
4393 fail:
4394 return NULL;
4395 }
4396
4397
4398 static PyObject *_wrap_WakeUpMainThread(PyObject *self, PyObject *args, PyObject *kwargs) {
4399 PyObject *resultobj;
4400 char *kwnames[] = {
4401 NULL
4402 };
4403
4404 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":WakeUpMainThread",kwnames)) goto fail;
4405 {
4406 if (!wxPyCheckForApp()) SWIG_fail;
4407 PyThreadState* __tstate = wxPyBeginAllowThreads();
4408 wxWakeUpMainThread();
4409
4410 wxPyEndAllowThreads(__tstate);
4411 if (PyErr_Occurred()) SWIG_fail;
4412 }
4413 Py_INCREF(Py_None); resultobj = Py_None;
4414 return resultobj;
4415 fail:
4416 return NULL;
4417 }
4418
4419
4420 static PyObject *_wrap_MutexGuiEnter(PyObject *self, PyObject *args, PyObject *kwargs) {
4421 PyObject *resultobj;
4422 char *kwnames[] = {
4423 NULL
4424 };
4425
4426 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MutexGuiEnter",kwnames)) goto fail;
4427 {
4428 if (!wxPyCheckForApp()) SWIG_fail;
4429 PyThreadState* __tstate = wxPyBeginAllowThreads();
4430 wxMutexGuiEnter();
4431
4432 wxPyEndAllowThreads(__tstate);
4433 if (PyErr_Occurred()) SWIG_fail;
4434 }
4435 Py_INCREF(Py_None); resultobj = Py_None;
4436 return resultobj;
4437 fail:
4438 return NULL;
4439 }
4440
4441
4442 static PyObject *_wrap_MutexGuiLeave(PyObject *self, PyObject *args, PyObject *kwargs) {
4443 PyObject *resultobj;
4444 char *kwnames[] = {
4445 NULL
4446 };
4447
4448 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MutexGuiLeave",kwnames)) goto fail;
4449 {
4450 if (!wxPyCheckForApp()) SWIG_fail;
4451 PyThreadState* __tstate = wxPyBeginAllowThreads();
4452 wxMutexGuiLeave();
4453
4454 wxPyEndAllowThreads(__tstate);
4455 if (PyErr_Occurred()) SWIG_fail;
4456 }
4457 Py_INCREF(Py_None); resultobj = Py_None;
4458 return resultobj;
4459 fail:
4460 return NULL;
4461 }
4462
4463
4464 static PyObject *_wrap_new_MutexGuiLocker(PyObject *self, PyObject *args, PyObject *kwargs) {
4465 PyObject *resultobj;
4466 wxMutexGuiLocker *result;
4467 char *kwnames[] = {
4468 NULL
4469 };
4470
4471 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MutexGuiLocker",kwnames)) goto fail;
4472 {
4473 if (!wxPyCheckForApp()) SWIG_fail;
4474 PyThreadState* __tstate = wxPyBeginAllowThreads();
4475 result = (wxMutexGuiLocker *)new wxMutexGuiLocker();
4476
4477 wxPyEndAllowThreads(__tstate);
4478 if (PyErr_Occurred()) SWIG_fail;
4479 }
4480 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMutexGuiLocker, 1);
4481 return resultobj;
4482 fail:
4483 return NULL;
4484 }
4485
4486
4487 static PyObject *_wrap_delete_MutexGuiLocker(PyObject *self, PyObject *args, PyObject *kwargs) {
4488 PyObject *resultobj;
4489 wxMutexGuiLocker *arg1 = (wxMutexGuiLocker *) 0 ;
4490 PyObject * obj0 = 0 ;
4491 char *kwnames[] = {
4492 (char *) "self", NULL
4493 };
4494
4495 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MutexGuiLocker",kwnames,&obj0)) goto fail;
4496 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMutexGuiLocker,
4497 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4498 {
4499 PyThreadState* __tstate = wxPyBeginAllowThreads();
4500 delete arg1;
4501
4502 wxPyEndAllowThreads(__tstate);
4503 if (PyErr_Occurred()) SWIG_fail;
4504 }
4505 Py_INCREF(Py_None); resultobj = Py_None;
4506 return resultobj;
4507 fail:
4508 return NULL;
4509 }
4510
4511
4512 static PyObject * MutexGuiLocker_swigregister(PyObject *self, PyObject *args) {
4513 PyObject *obj;
4514 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4515 SWIG_TypeClientData(SWIGTYPE_p_wxMutexGuiLocker, obj);
4516 Py_INCREF(obj);
4517 return Py_BuildValue((char *)"");
4518 }
4519 static PyObject *_wrap_Thread_IsMain(PyObject *self, PyObject *args, PyObject *kwargs) {
4520 PyObject *resultobj;
4521 bool result;
4522 char *kwnames[] = {
4523 NULL
4524 };
4525
4526 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Thread_IsMain",kwnames)) goto fail;
4527 {
4528 PyThreadState* __tstate = wxPyBeginAllowThreads();
4529 result = (bool)wxThread_IsMain();
4530
4531 wxPyEndAllowThreads(__tstate);
4532 if (PyErr_Occurred()) SWIG_fail;
4533 }
4534 {
4535 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4536 }
4537 return resultobj;
4538 fail:
4539 return NULL;
4540 }
4541
4542
4543 static PyObject *_wrap_new_ToolTip(PyObject *self, PyObject *args, PyObject *kwargs) {
4544 PyObject *resultobj;
4545 wxString *arg1 = 0 ;
4546 wxToolTip *result;
4547 bool temp1 = False ;
4548 PyObject * obj0 = 0 ;
4549 char *kwnames[] = {
4550 (char *) "tip", NULL
4551 };
4552
4553 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ToolTip",kwnames,&obj0)) goto fail;
4554 {
4555 arg1 = wxString_in_helper(obj0);
4556 if (arg1 == NULL) SWIG_fail;
4557 temp1 = True;
4558 }
4559 {
4560 if (!wxPyCheckForApp()) SWIG_fail;
4561 PyThreadState* __tstate = wxPyBeginAllowThreads();
4562 result = (wxToolTip *)new wxToolTip((wxString const &)*arg1);
4563
4564 wxPyEndAllowThreads(__tstate);
4565 if (PyErr_Occurred()) SWIG_fail;
4566 }
4567 {
4568 resultobj = wxPyMake_wxObject(result, 1);
4569 }
4570 {
4571 if (temp1)
4572 delete arg1;
4573 }
4574 return resultobj;
4575 fail:
4576 {
4577 if (temp1)
4578 delete arg1;
4579 }
4580 return NULL;
4581 }
4582
4583
4584 static PyObject *_wrap_ToolTip_SetTip(PyObject *self, PyObject *args, PyObject *kwargs) {
4585 PyObject *resultobj;
4586 wxToolTip *arg1 = (wxToolTip *) 0 ;
4587 wxString *arg2 = 0 ;
4588 bool temp2 = False ;
4589 PyObject * obj0 = 0 ;
4590 PyObject * obj1 = 0 ;
4591 char *kwnames[] = {
4592 (char *) "self",(char *) "tip", NULL
4593 };
4594
4595 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolTip_SetTip",kwnames,&obj0,&obj1)) goto fail;
4596 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolTip,
4597 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4598 {
4599 arg2 = wxString_in_helper(obj1);
4600 if (arg2 == NULL) SWIG_fail;
4601 temp2 = True;
4602 }
4603 {
4604 PyThreadState* __tstate = wxPyBeginAllowThreads();
4605 (arg1)->SetTip((wxString const &)*arg2);
4606
4607 wxPyEndAllowThreads(__tstate);
4608 if (PyErr_Occurred()) SWIG_fail;
4609 }
4610 Py_INCREF(Py_None); resultobj = Py_None;
4611 {
4612 if (temp2)
4613 delete arg2;
4614 }
4615 return resultobj;
4616 fail:
4617 {
4618 if (temp2)
4619 delete arg2;
4620 }
4621 return NULL;
4622 }
4623
4624
4625 static PyObject *_wrap_ToolTip_GetTip(PyObject *self, PyObject *args, PyObject *kwargs) {
4626 PyObject *resultobj;
4627 wxToolTip *arg1 = (wxToolTip *) 0 ;
4628 wxString result;
4629 PyObject * obj0 = 0 ;
4630 char *kwnames[] = {
4631 (char *) "self", NULL
4632 };
4633
4634 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_GetTip",kwnames,&obj0)) goto fail;
4635 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolTip,
4636 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4637 {
4638 PyThreadState* __tstate = wxPyBeginAllowThreads();
4639 result = (arg1)->GetTip();
4640
4641 wxPyEndAllowThreads(__tstate);
4642 if (PyErr_Occurred()) SWIG_fail;
4643 }
4644 {
4645 #if wxUSE_UNICODE
4646 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
4647 #else
4648 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
4649 #endif
4650 }
4651 return resultobj;
4652 fail:
4653 return NULL;
4654 }
4655
4656
4657 static PyObject *_wrap_ToolTip_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
4658 PyObject *resultobj;
4659 wxToolTip *arg1 = (wxToolTip *) 0 ;
4660 wxWindow *result;
4661 PyObject * obj0 = 0 ;
4662 char *kwnames[] = {
4663 (char *) "self", NULL
4664 };
4665
4666 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_GetWindow",kwnames,&obj0)) goto fail;
4667 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolTip,
4668 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4669 {
4670 PyThreadState* __tstate = wxPyBeginAllowThreads();
4671 result = (wxWindow *)(arg1)->GetWindow();
4672
4673 wxPyEndAllowThreads(__tstate);
4674 if (PyErr_Occurred()) SWIG_fail;
4675 }
4676 {
4677 resultobj = wxPyMake_wxObject(result, 0);
4678 }
4679 return resultobj;
4680 fail:
4681 return NULL;
4682 }
4683
4684
4685 static PyObject *_wrap_ToolTip_Enable(PyObject *self, PyObject *args, PyObject *kwargs) {
4686 PyObject *resultobj;
4687 bool arg1 ;
4688 PyObject * obj0 = 0 ;
4689 char *kwnames[] = {
4690 (char *) "flag", NULL
4691 };
4692
4693 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_Enable",kwnames,&obj0)) goto fail;
4694 arg1 = (bool) SWIG_AsBool(obj0);
4695 if (PyErr_Occurred()) SWIG_fail;
4696 {
4697 PyThreadState* __tstate = wxPyBeginAllowThreads();
4698 wxToolTip::Enable(arg1);
4699
4700 wxPyEndAllowThreads(__tstate);
4701 if (PyErr_Occurred()) SWIG_fail;
4702 }
4703 Py_INCREF(Py_None); resultobj = Py_None;
4704 return resultobj;
4705 fail:
4706 return NULL;
4707 }
4708
4709
4710 static PyObject *_wrap_ToolTip_SetDelay(PyObject *self, PyObject *args, PyObject *kwargs) {
4711 PyObject *resultobj;
4712 long arg1 ;
4713 PyObject * obj0 = 0 ;
4714 char *kwnames[] = {
4715 (char *) "milliseconds", NULL
4716 };
4717
4718 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_SetDelay",kwnames,&obj0)) goto fail;
4719 arg1 = (long) SWIG_AsLong(obj0);
4720 if (PyErr_Occurred()) SWIG_fail;
4721 {
4722 PyThreadState* __tstate = wxPyBeginAllowThreads();
4723 wxToolTip::SetDelay(arg1);
4724
4725 wxPyEndAllowThreads(__tstate);
4726 if (PyErr_Occurred()) SWIG_fail;
4727 }
4728 Py_INCREF(Py_None); resultobj = Py_None;
4729 return resultobj;
4730 fail:
4731 return NULL;
4732 }
4733
4734
4735 static PyObject * ToolTip_swigregister(PyObject *self, PyObject *args) {
4736 PyObject *obj;
4737 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4738 SWIG_TypeClientData(SWIGTYPE_p_wxToolTip, obj);
4739 Py_INCREF(obj);
4740 return Py_BuildValue((char *)"");
4741 }
4742 static PyObject *_wrap_new_Caret(PyObject *self, PyObject *args, PyObject *kwargs) {
4743 PyObject *resultobj;
4744 wxWindow *arg1 = (wxWindow *) 0 ;
4745 wxSize *arg2 = 0 ;
4746 wxCaret *result;
4747 wxSize temp2 ;
4748 PyObject * obj0 = 0 ;
4749 PyObject * obj1 = 0 ;
4750 char *kwnames[] = {
4751 (char *) "window",(char *) "size", NULL
4752 };
4753
4754 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_Caret",kwnames,&obj0,&obj1)) goto fail;
4755 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
4756 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4757 {
4758 arg2 = &temp2;
4759 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
4760 }
4761 {
4762 if (!wxPyCheckForApp()) SWIG_fail;
4763 PyThreadState* __tstate = wxPyBeginAllowThreads();
4764 result = (wxCaret *)new wxCaret(arg1,(wxSize const &)*arg2);
4765
4766 wxPyEndAllowThreads(__tstate);
4767 if (PyErr_Occurred()) SWIG_fail;
4768 }
4769 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCaret, 1);
4770 return resultobj;
4771 fail:
4772 return NULL;
4773 }
4774
4775
4776 static PyObject *_wrap_delete_Caret(PyObject *self, PyObject *args, PyObject *kwargs) {
4777 PyObject *resultobj;
4778 wxCaret *arg1 = (wxCaret *) 0 ;
4779 PyObject * obj0 = 0 ;
4780 char *kwnames[] = {
4781 (char *) "self", NULL
4782 };
4783
4784 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Caret",kwnames,&obj0)) goto fail;
4785 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4786 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4787 {
4788 PyThreadState* __tstate = wxPyBeginAllowThreads();
4789 delete arg1;
4790
4791 wxPyEndAllowThreads(__tstate);
4792 if (PyErr_Occurred()) SWIG_fail;
4793 }
4794 Py_INCREF(Py_None); resultobj = Py_None;
4795 return resultobj;
4796 fail:
4797 return NULL;
4798 }
4799
4800
4801 static PyObject *_wrap_Caret_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
4802 PyObject *resultobj;
4803 wxCaret *arg1 = (wxCaret *) 0 ;
4804 bool result;
4805 PyObject * obj0 = 0 ;
4806 char *kwnames[] = {
4807 (char *) "self", NULL
4808 };
4809
4810 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_IsOk",kwnames,&obj0)) goto fail;
4811 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4812 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4813 {
4814 PyThreadState* __tstate = wxPyBeginAllowThreads();
4815 result = (bool)(arg1)->IsOk();
4816
4817 wxPyEndAllowThreads(__tstate);
4818 if (PyErr_Occurred()) SWIG_fail;
4819 }
4820 {
4821 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4822 }
4823 return resultobj;
4824 fail:
4825 return NULL;
4826 }
4827
4828
4829 static PyObject *_wrap_Caret_IsVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
4830 PyObject *resultobj;
4831 wxCaret *arg1 = (wxCaret *) 0 ;
4832 bool result;
4833 PyObject * obj0 = 0 ;
4834 char *kwnames[] = {
4835 (char *) "self", NULL
4836 };
4837
4838 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_IsVisible",kwnames,&obj0)) goto fail;
4839 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4840 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4841 {
4842 PyThreadState* __tstate = wxPyBeginAllowThreads();
4843 result = (bool)(arg1)->IsVisible();
4844
4845 wxPyEndAllowThreads(__tstate);
4846 if (PyErr_Occurred()) SWIG_fail;
4847 }
4848 {
4849 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4850 }
4851 return resultobj;
4852 fail:
4853 return NULL;
4854 }
4855
4856
4857 static PyObject *_wrap_Caret_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
4858 PyObject *resultobj;
4859 wxCaret *arg1 = (wxCaret *) 0 ;
4860 wxPoint result;
4861 PyObject * obj0 = 0 ;
4862 char *kwnames[] = {
4863 (char *) "self", NULL
4864 };
4865
4866 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetPosition",kwnames,&obj0)) goto fail;
4867 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4868 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4869 {
4870 PyThreadState* __tstate = wxPyBeginAllowThreads();
4871 result = (arg1)->GetPosition();
4872
4873 wxPyEndAllowThreads(__tstate);
4874 if (PyErr_Occurred()) SWIG_fail;
4875 }
4876 {
4877 wxPoint * resultptr;
4878 resultptr = new wxPoint((wxPoint &) result);
4879 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
4880 }
4881 return resultobj;
4882 fail:
4883 return NULL;
4884 }
4885
4886
4887 static PyObject *_wrap_Caret_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
4888 PyObject *resultobj;
4889 wxCaret *arg1 = (wxCaret *) 0 ;
4890 int *arg2 = (int *) 0 ;
4891 int *arg3 = (int *) 0 ;
4892 int temp2 ;
4893 int temp3 ;
4894 PyObject * obj0 = 0 ;
4895 char *kwnames[] = {
4896 (char *) "self", NULL
4897 };
4898
4899 arg2 = &temp2;
4900 arg3 = &temp3;
4901 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetPositionTuple",kwnames,&obj0)) goto fail;
4902 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4903 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4904 {
4905 PyThreadState* __tstate = wxPyBeginAllowThreads();
4906 (arg1)->GetPosition(arg2,arg3);
4907
4908 wxPyEndAllowThreads(__tstate);
4909 if (PyErr_Occurred()) SWIG_fail;
4910 }
4911 Py_INCREF(Py_None); resultobj = Py_None;
4912 {
4913 PyObject *o = PyInt_FromLong((long) (*arg2));
4914 resultobj = t_output_helper(resultobj,o);
4915 }
4916 {
4917 PyObject *o = PyInt_FromLong((long) (*arg3));
4918 resultobj = t_output_helper(resultobj,o);
4919 }
4920 return resultobj;
4921 fail:
4922 return NULL;
4923 }
4924
4925
4926 static PyObject *_wrap_Caret_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
4927 PyObject *resultobj;
4928 wxCaret *arg1 = (wxCaret *) 0 ;
4929 wxSize result;
4930 PyObject * obj0 = 0 ;
4931 char *kwnames[] = {
4932 (char *) "self", NULL
4933 };
4934
4935 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetSize",kwnames,&obj0)) goto fail;
4936 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4937 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4938 {
4939 PyThreadState* __tstate = wxPyBeginAllowThreads();
4940 result = (arg1)->GetSize();
4941
4942 wxPyEndAllowThreads(__tstate);
4943 if (PyErr_Occurred()) SWIG_fail;
4944 }
4945 {
4946 wxSize * resultptr;
4947 resultptr = new wxSize((wxSize &) result);
4948 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
4949 }
4950 return resultobj;
4951 fail:
4952 return NULL;
4953 }
4954
4955
4956 static PyObject *_wrap_Caret_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
4957 PyObject *resultobj;
4958 wxCaret *arg1 = (wxCaret *) 0 ;
4959 int *arg2 = (int *) 0 ;
4960 int *arg3 = (int *) 0 ;
4961 int temp2 ;
4962 int temp3 ;
4963 PyObject * obj0 = 0 ;
4964 char *kwnames[] = {
4965 (char *) "self", NULL
4966 };
4967
4968 arg2 = &temp2;
4969 arg3 = &temp3;
4970 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetSizeTuple",kwnames,&obj0)) goto fail;
4971 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4972 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4973 {
4974 PyThreadState* __tstate = wxPyBeginAllowThreads();
4975 (arg1)->GetSize(arg2,arg3);
4976
4977 wxPyEndAllowThreads(__tstate);
4978 if (PyErr_Occurred()) SWIG_fail;
4979 }
4980 Py_INCREF(Py_None); resultobj = Py_None;
4981 {
4982 PyObject *o = PyInt_FromLong((long) (*arg2));
4983 resultobj = t_output_helper(resultobj,o);
4984 }
4985 {
4986 PyObject *o = PyInt_FromLong((long) (*arg3));
4987 resultobj = t_output_helper(resultobj,o);
4988 }
4989 return resultobj;
4990 fail:
4991 return NULL;
4992 }
4993
4994
4995 static PyObject *_wrap_Caret_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
4996 PyObject *resultobj;
4997 wxCaret *arg1 = (wxCaret *) 0 ;
4998 wxWindow *result;
4999 PyObject * obj0 = 0 ;
5000 char *kwnames[] = {
5001 (char *) "self", NULL
5002 };
5003
5004 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetWindow",kwnames,&obj0)) goto fail;
5005 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
5006 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5007 {
5008 PyThreadState* __tstate = wxPyBeginAllowThreads();
5009 result = (wxWindow *)(arg1)->GetWindow();
5010
5011 wxPyEndAllowThreads(__tstate);
5012 if (PyErr_Occurred()) SWIG_fail;
5013 }
5014 {
5015 resultobj = wxPyMake_wxObject(result, 0);
5016 }
5017 return resultobj;
5018 fail:
5019 return NULL;
5020 }
5021
5022
5023 static PyObject *_wrap_Caret_MoveXY(PyObject *self, PyObject *args, PyObject *kwargs) {
5024 PyObject *resultobj;
5025 wxCaret *arg1 = (wxCaret *) 0 ;
5026 int arg2 ;
5027 int arg3 ;
5028 PyObject * obj0 = 0 ;
5029 PyObject * obj1 = 0 ;
5030 PyObject * obj2 = 0 ;
5031 char *kwnames[] = {
5032 (char *) "self",(char *) "x",(char *) "y", NULL
5033 };
5034
5035 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Caret_MoveXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
5036 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
5037 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5038 arg2 = (int) SWIG_AsInt(obj1);
5039 if (PyErr_Occurred()) SWIG_fail;
5040 arg3 = (int) SWIG_AsInt(obj2);
5041 if (PyErr_Occurred()) SWIG_fail;
5042 {
5043 PyThreadState* __tstate = wxPyBeginAllowThreads();
5044 (arg1)->Move(arg2,arg3);
5045
5046 wxPyEndAllowThreads(__tstate);
5047 if (PyErr_Occurred()) SWIG_fail;
5048 }
5049 Py_INCREF(Py_None); resultobj = Py_None;
5050 return resultobj;
5051 fail:
5052 return NULL;
5053 }
5054
5055
5056 static PyObject *_wrap_Caret_Move(PyObject *self, PyObject *args, PyObject *kwargs) {
5057 PyObject *resultobj;
5058 wxCaret *arg1 = (wxCaret *) 0 ;
5059 wxPoint *arg2 = 0 ;
5060 wxPoint temp2 ;
5061 PyObject * obj0 = 0 ;
5062 PyObject * obj1 = 0 ;
5063 char *kwnames[] = {
5064 (char *) "self",(char *) "pt", NULL
5065 };
5066
5067 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Caret_Move",kwnames,&obj0,&obj1)) goto fail;
5068 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
5069 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5070 {
5071 arg2 = &temp2;
5072 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
5073 }
5074 {
5075 PyThreadState* __tstate = wxPyBeginAllowThreads();
5076 (arg1)->Move((wxPoint const &)*arg2);
5077
5078 wxPyEndAllowThreads(__tstate);
5079 if (PyErr_Occurred()) SWIG_fail;
5080 }
5081 Py_INCREF(Py_None); resultobj = Py_None;
5082 return resultobj;
5083 fail:
5084 return NULL;
5085 }
5086
5087
5088 static PyObject *_wrap_Caret_SetSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) {
5089 PyObject *resultobj;
5090 wxCaret *arg1 = (wxCaret *) 0 ;
5091 int arg2 ;
5092 int arg3 ;
5093 PyObject * obj0 = 0 ;
5094 PyObject * obj1 = 0 ;
5095 PyObject * obj2 = 0 ;
5096 char *kwnames[] = {
5097 (char *) "self",(char *) "width",(char *) "height", NULL
5098 };
5099
5100 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Caret_SetSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail;
5101 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
5102 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5103 arg2 = (int) SWIG_AsInt(obj1);
5104 if (PyErr_Occurred()) SWIG_fail;
5105 arg3 = (int) SWIG_AsInt(obj2);
5106 if (PyErr_Occurred()) SWIG_fail;
5107 {
5108 PyThreadState* __tstate = wxPyBeginAllowThreads();
5109 (arg1)->SetSize(arg2,arg3);
5110
5111 wxPyEndAllowThreads(__tstate);
5112 if (PyErr_Occurred()) SWIG_fail;
5113 }
5114 Py_INCREF(Py_None); resultobj = Py_None;
5115 return resultobj;
5116 fail:
5117 return NULL;
5118 }
5119
5120
5121 static PyObject *_wrap_Caret_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
5122 PyObject *resultobj;
5123 wxCaret *arg1 = (wxCaret *) 0 ;
5124 wxSize *arg2 = 0 ;
5125 wxSize temp2 ;
5126 PyObject * obj0 = 0 ;
5127 PyObject * obj1 = 0 ;
5128 char *kwnames[] = {
5129 (char *) "self",(char *) "size", NULL
5130 };
5131
5132 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Caret_SetSize",kwnames,&obj0,&obj1)) goto fail;
5133 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
5134 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5135 {
5136 arg2 = &temp2;
5137 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
5138 }
5139 {
5140 PyThreadState* __tstate = wxPyBeginAllowThreads();
5141 (arg1)->SetSize((wxSize const &)*arg2);
5142
5143 wxPyEndAllowThreads(__tstate);
5144 if (PyErr_Occurred()) SWIG_fail;
5145 }
5146 Py_INCREF(Py_None); resultobj = Py_None;
5147 return resultobj;
5148 fail:
5149 return NULL;
5150 }
5151
5152
5153 static PyObject *_wrap_Caret_Show(PyObject *self, PyObject *args, PyObject *kwargs) {
5154 PyObject *resultobj;
5155 wxCaret *arg1 = (wxCaret *) 0 ;
5156 int arg2 = (int) True ;
5157 PyObject * obj0 = 0 ;
5158 PyObject * obj1 = 0 ;
5159 char *kwnames[] = {
5160 (char *) "self",(char *) "show", NULL
5161 };
5162
5163 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Caret_Show",kwnames,&obj0,&obj1)) goto fail;
5164 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
5165 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5166 if (obj1) {
5167 arg2 = (int) SWIG_AsInt(obj1);
5168 if (PyErr_Occurred()) SWIG_fail;
5169 }
5170 {
5171 PyThreadState* __tstate = wxPyBeginAllowThreads();
5172 (arg1)->Show(arg2);
5173
5174 wxPyEndAllowThreads(__tstate);
5175 if (PyErr_Occurred()) SWIG_fail;
5176 }
5177 Py_INCREF(Py_None); resultobj = Py_None;
5178 return resultobj;
5179 fail:
5180 return NULL;
5181 }
5182
5183
5184 static PyObject *_wrap_Caret_Hide(PyObject *self, PyObject *args, PyObject *kwargs) {
5185 PyObject *resultobj;
5186 wxCaret *arg1 = (wxCaret *) 0 ;
5187 PyObject * obj0 = 0 ;
5188 char *kwnames[] = {
5189 (char *) "self", NULL
5190 };
5191
5192 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_Hide",kwnames,&obj0)) goto fail;
5193 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
5194 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5195 {
5196 PyThreadState* __tstate = wxPyBeginAllowThreads();
5197 (arg1)->Hide();
5198
5199 wxPyEndAllowThreads(__tstate);
5200 if (PyErr_Occurred()) SWIG_fail;
5201 }
5202 Py_INCREF(Py_None); resultobj = Py_None;
5203 return resultobj;
5204 fail:
5205 return NULL;
5206 }
5207
5208
5209 static PyObject * Caret_swigregister(PyObject *self, PyObject *args) {
5210 PyObject *obj;
5211 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5212 SWIG_TypeClientData(SWIGTYPE_p_wxCaret, obj);
5213 Py_INCREF(obj);
5214 return Py_BuildValue((char *)"");
5215 }
5216 static PyObject *_wrap_Caret_GetBlinkTime(PyObject *self, PyObject *args, PyObject *kwargs) {
5217 PyObject *resultobj;
5218 int result;
5219 char *kwnames[] = {
5220 NULL
5221 };
5222
5223 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Caret_GetBlinkTime",kwnames)) goto fail;
5224 {
5225 PyThreadState* __tstate = wxPyBeginAllowThreads();
5226 result = (int)wxCaret_GetBlinkTime();
5227
5228 wxPyEndAllowThreads(__tstate);
5229 if (PyErr_Occurred()) SWIG_fail;
5230 }
5231 resultobj = SWIG_FromInt((int)result);
5232 return resultobj;
5233 fail:
5234 return NULL;
5235 }
5236
5237
5238 static PyObject *_wrap_Caret_SetBlinkTime(PyObject *self, PyObject *args, PyObject *kwargs) {
5239 PyObject *resultobj;
5240 int arg1 ;
5241 PyObject * obj0 = 0 ;
5242 char *kwnames[] = {
5243 (char *) "milliseconds", NULL
5244 };
5245
5246 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_SetBlinkTime",kwnames,&obj0)) goto fail;
5247 arg1 = (int) SWIG_AsInt(obj0);
5248 if (PyErr_Occurred()) SWIG_fail;
5249 {
5250 PyThreadState* __tstate = wxPyBeginAllowThreads();
5251 wxCaret_SetBlinkTime(arg1);
5252
5253 wxPyEndAllowThreads(__tstate);
5254 if (PyErr_Occurred()) SWIG_fail;
5255 }
5256 Py_INCREF(Py_None); resultobj = Py_None;
5257 return resultobj;
5258 fail:
5259 return NULL;
5260 }
5261
5262
5263 static PyObject *_wrap_new_BusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
5264 PyObject *resultobj;
5265 wxCursor *arg1 = (wxCursor *) wxHOURGLASS_CURSOR ;
5266 wxBusyCursor *result;
5267 PyObject * obj0 = 0 ;
5268 char *kwnames[] = {
5269 (char *) "cursor", NULL
5270 };
5271
5272 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BusyCursor",kwnames,&obj0)) goto fail;
5273 if (obj0) {
5274 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
5275 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5276 }
5277 {
5278 if (!wxPyCheckForApp()) SWIG_fail;
5279 PyThreadState* __tstate = wxPyBeginAllowThreads();
5280 result = (wxBusyCursor *)new wxBusyCursor(arg1);
5281
5282 wxPyEndAllowThreads(__tstate);
5283 if (PyErr_Occurred()) SWIG_fail;
5284 }
5285 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBusyCursor, 1);
5286 return resultobj;
5287 fail:
5288 return NULL;
5289 }
5290
5291
5292 static PyObject *_wrap_delete_BusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
5293 PyObject *resultobj;
5294 wxBusyCursor *arg1 = (wxBusyCursor *) 0 ;
5295 PyObject * obj0 = 0 ;
5296 char *kwnames[] = {
5297 (char *) "self", NULL
5298 };
5299
5300 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BusyCursor",kwnames,&obj0)) goto fail;
5301 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBusyCursor,
5302 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5303 {
5304 PyThreadState* __tstate = wxPyBeginAllowThreads();
5305 delete arg1;
5306
5307 wxPyEndAllowThreads(__tstate);
5308 if (PyErr_Occurred()) SWIG_fail;
5309 }
5310 Py_INCREF(Py_None); resultobj = Py_None;
5311 return resultobj;
5312 fail:
5313 return NULL;
5314 }
5315
5316
5317 static PyObject * BusyCursor_swigregister(PyObject *self, PyObject *args) {
5318 PyObject *obj;
5319 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5320 SWIG_TypeClientData(SWIGTYPE_p_wxBusyCursor, obj);
5321 Py_INCREF(obj);
5322 return Py_BuildValue((char *)"");
5323 }
5324 static PyObject *_wrap_new_WindowDisabler(PyObject *self, PyObject *args, PyObject *kwargs) {
5325 PyObject *resultobj;
5326 wxWindow *arg1 = (wxWindow *) NULL ;
5327 wxWindowDisabler *result;
5328 PyObject * obj0 = 0 ;
5329 char *kwnames[] = {
5330 (char *) "winToSkip", NULL
5331 };
5332
5333 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_WindowDisabler",kwnames,&obj0)) goto fail;
5334 if (obj0) {
5335 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
5336 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5337 }
5338 {
5339 if (!wxPyCheckForApp()) SWIG_fail;
5340 PyThreadState* __tstate = wxPyBeginAllowThreads();
5341 result = (wxWindowDisabler *)new wxWindowDisabler(arg1);
5342
5343 wxPyEndAllowThreads(__tstate);
5344 if (PyErr_Occurred()) SWIG_fail;
5345 }
5346 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowDisabler, 1);
5347 return resultobj;
5348 fail:
5349 return NULL;
5350 }
5351
5352
5353 static PyObject *_wrap_delete_WindowDisabler(PyObject *self, PyObject *args, PyObject *kwargs) {
5354 PyObject *resultobj;
5355 wxWindowDisabler *arg1 = (wxWindowDisabler *) 0 ;
5356 PyObject * obj0 = 0 ;
5357 char *kwnames[] = {
5358 (char *) "self", NULL
5359 };
5360
5361 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_WindowDisabler",kwnames,&obj0)) goto fail;
5362 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindowDisabler,
5363 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5364 {
5365 PyThreadState* __tstate = wxPyBeginAllowThreads();
5366 delete arg1;
5367
5368 wxPyEndAllowThreads(__tstate);
5369 if (PyErr_Occurred()) SWIG_fail;
5370 }
5371 Py_INCREF(Py_None); resultobj = Py_None;
5372 return resultobj;
5373 fail:
5374 return NULL;
5375 }
5376
5377
5378 static PyObject * WindowDisabler_swigregister(PyObject *self, PyObject *args) {
5379 PyObject *obj;
5380 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5381 SWIG_TypeClientData(SWIGTYPE_p_wxWindowDisabler, obj);
5382 Py_INCREF(obj);
5383 return Py_BuildValue((char *)"");
5384 }
5385 static PyObject *_wrap_new_BusyInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
5386 PyObject *resultobj;
5387 wxString *arg1 = 0 ;
5388 wxBusyInfo *result;
5389 bool temp1 = False ;
5390 PyObject * obj0 = 0 ;
5391 char *kwnames[] = {
5392 (char *) "message", NULL
5393 };
5394
5395 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BusyInfo",kwnames,&obj0)) goto fail;
5396 {
5397 arg1 = wxString_in_helper(obj0);
5398 if (arg1 == NULL) SWIG_fail;
5399 temp1 = True;
5400 }
5401 {
5402 if (!wxPyCheckForApp()) SWIG_fail;
5403 PyThreadState* __tstate = wxPyBeginAllowThreads();
5404 result = (wxBusyInfo *)new wxBusyInfo((wxString const &)*arg1);
5405
5406 wxPyEndAllowThreads(__tstate);
5407 if (PyErr_Occurred()) SWIG_fail;
5408 }
5409 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBusyInfo, 1);
5410 {
5411 if (temp1)
5412 delete arg1;
5413 }
5414 return resultobj;
5415 fail:
5416 {
5417 if (temp1)
5418 delete arg1;
5419 }
5420 return NULL;
5421 }
5422
5423
5424 static PyObject *_wrap_delete_BusyInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
5425 PyObject *resultobj;
5426 wxBusyInfo *arg1 = (wxBusyInfo *) 0 ;
5427 PyObject * obj0 = 0 ;
5428 char *kwnames[] = {
5429 (char *) "self", NULL
5430 };
5431
5432 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BusyInfo",kwnames,&obj0)) goto fail;
5433 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBusyInfo,
5434 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5435 {
5436 PyThreadState* __tstate = wxPyBeginAllowThreads();
5437 delete arg1;
5438
5439 wxPyEndAllowThreads(__tstate);
5440 if (PyErr_Occurred()) SWIG_fail;
5441 }
5442 Py_INCREF(Py_None); resultobj = Py_None;
5443 return resultobj;
5444 fail:
5445 return NULL;
5446 }
5447
5448
5449 static PyObject * BusyInfo_swigregister(PyObject *self, PyObject *args) {
5450 PyObject *obj;
5451 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5452 SWIG_TypeClientData(SWIGTYPE_p_wxBusyInfo, obj);
5453 Py_INCREF(obj);
5454 return Py_BuildValue((char *)"");
5455 }
5456 static PyObject *_wrap_new_StopWatch(PyObject *self, PyObject *args, PyObject *kwargs) {
5457 PyObject *resultobj;
5458 wxStopWatch *result;
5459 char *kwnames[] = {
5460 NULL
5461 };
5462
5463 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_StopWatch",kwnames)) goto fail;
5464 {
5465 PyThreadState* __tstate = wxPyBeginAllowThreads();
5466 result = (wxStopWatch *)new wxStopWatch();
5467
5468 wxPyEndAllowThreads(__tstate);
5469 if (PyErr_Occurred()) SWIG_fail;
5470 }
5471 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStopWatch, 1);
5472 return resultobj;
5473 fail:
5474 return NULL;
5475 }
5476
5477
5478 static PyObject *_wrap_StopWatch_Start(PyObject *self, PyObject *args, PyObject *kwargs) {
5479 PyObject *resultobj;
5480 wxStopWatch *arg1 = (wxStopWatch *) 0 ;
5481 long arg2 = (long) 0 ;
5482 PyObject * obj0 = 0 ;
5483 PyObject * obj1 = 0 ;
5484 char *kwnames[] = {
5485 (char *) "self",(char *) "t0", NULL
5486 };
5487
5488 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:StopWatch_Start",kwnames,&obj0,&obj1)) goto fail;
5489 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch,
5490 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5491 if (obj1) {
5492 arg2 = (long) SWIG_AsLong(obj1);
5493 if (PyErr_Occurred()) SWIG_fail;
5494 }
5495 {
5496 PyThreadState* __tstate = wxPyBeginAllowThreads();
5497 (arg1)->Start(arg2);
5498
5499 wxPyEndAllowThreads(__tstate);
5500 if (PyErr_Occurred()) SWIG_fail;
5501 }
5502 Py_INCREF(Py_None); resultobj = Py_None;
5503 return resultobj;
5504 fail:
5505 return NULL;
5506 }
5507
5508
5509 static PyObject *_wrap_StopWatch_Pause(PyObject *self, PyObject *args, PyObject *kwargs) {
5510 PyObject *resultobj;
5511 wxStopWatch *arg1 = (wxStopWatch *) 0 ;
5512 PyObject * obj0 = 0 ;
5513 char *kwnames[] = {
5514 (char *) "self", NULL
5515 };
5516
5517 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Pause",kwnames,&obj0)) goto fail;
5518 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch,
5519 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5520 {
5521 PyThreadState* __tstate = wxPyBeginAllowThreads();
5522 (arg1)->Pause();
5523
5524 wxPyEndAllowThreads(__tstate);
5525 if (PyErr_Occurred()) SWIG_fail;
5526 }
5527 Py_INCREF(Py_None); resultobj = Py_None;
5528 return resultobj;
5529 fail:
5530 return NULL;
5531 }
5532
5533
5534 static PyObject *_wrap_StopWatch_Resume(PyObject *self, PyObject *args, PyObject *kwargs) {
5535 PyObject *resultobj;
5536 wxStopWatch *arg1 = (wxStopWatch *) 0 ;
5537 PyObject * obj0 = 0 ;
5538 char *kwnames[] = {
5539 (char *) "self", NULL
5540 };
5541
5542 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Resume",kwnames,&obj0)) goto fail;
5543 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch,
5544 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5545 {
5546 PyThreadState* __tstate = wxPyBeginAllowThreads();
5547 (arg1)->Resume();
5548
5549 wxPyEndAllowThreads(__tstate);
5550 if (PyErr_Occurred()) SWIG_fail;
5551 }
5552 Py_INCREF(Py_None); resultobj = Py_None;
5553 return resultobj;
5554 fail:
5555 return NULL;
5556 }
5557
5558
5559 static PyObject *_wrap_StopWatch_Time(PyObject *self, PyObject *args, PyObject *kwargs) {
5560 PyObject *resultobj;
5561 wxStopWatch *arg1 = (wxStopWatch *) 0 ;
5562 long result;
5563 PyObject * obj0 = 0 ;
5564 char *kwnames[] = {
5565 (char *) "self", NULL
5566 };
5567
5568 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Time",kwnames,&obj0)) goto fail;
5569 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch,
5570 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5571 {
5572 PyThreadState* __tstate = wxPyBeginAllowThreads();
5573 result = (long)((wxStopWatch const *)arg1)->Time();
5574
5575 wxPyEndAllowThreads(__tstate);
5576 if (PyErr_Occurred()) SWIG_fail;
5577 }
5578 resultobj = SWIG_FromLong((long)result);
5579 return resultobj;
5580 fail:
5581 return NULL;
5582 }
5583
5584
5585 static PyObject * StopWatch_swigregister(PyObject *self, PyObject *args) {
5586 PyObject *obj;
5587 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5588 SWIG_TypeClientData(SWIGTYPE_p_wxStopWatch, obj);
5589 Py_INCREF(obj);
5590 return Py_BuildValue((char *)"");
5591 }
5592 static PyObject *_wrap_new_FileHistory(PyObject *self, PyObject *args, PyObject *kwargs) {
5593 PyObject *resultobj;
5594 int arg1 = (int) 9 ;
5595 int arg2 = (int) wxID_FILE1 ;
5596 wxFileHistory *result;
5597 PyObject * obj0 = 0 ;
5598 PyObject * obj1 = 0 ;
5599 char *kwnames[] = {
5600 (char *) "maxFiles",(char *) "idBase", NULL
5601 };
5602
5603 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_FileHistory",kwnames,&obj0,&obj1)) goto fail;
5604 if (obj0) {
5605 arg1 = (int) SWIG_AsInt(obj0);
5606 if (PyErr_Occurred()) SWIG_fail;
5607 }
5608 if (obj1) {
5609 arg2 = (int) SWIG_AsInt(obj1);
5610 if (PyErr_Occurred()) SWIG_fail;
5611 }
5612 {
5613 PyThreadState* __tstate = wxPyBeginAllowThreads();
5614 result = (wxFileHistory *)new wxFileHistory(arg1,arg2);
5615
5616 wxPyEndAllowThreads(__tstate);
5617 if (PyErr_Occurred()) SWIG_fail;
5618 }
5619 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileHistory, 1);
5620 return resultobj;
5621 fail:
5622 return NULL;
5623 }
5624
5625
5626 static PyObject *_wrap_delete_FileHistory(PyObject *self, PyObject *args, PyObject *kwargs) {
5627 PyObject *resultobj;
5628 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5629 PyObject * obj0 = 0 ;
5630 char *kwnames[] = {
5631 (char *) "self", NULL
5632 };
5633
5634 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileHistory",kwnames,&obj0)) goto fail;
5635 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5636 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5637 {
5638 PyThreadState* __tstate = wxPyBeginAllowThreads();
5639 delete arg1;
5640
5641 wxPyEndAllowThreads(__tstate);
5642 if (PyErr_Occurred()) SWIG_fail;
5643 }
5644 Py_INCREF(Py_None); resultobj = Py_None;
5645 return resultobj;
5646 fail:
5647 return NULL;
5648 }
5649
5650
5651 static PyObject *_wrap_FileHistory_AddFileToHistory(PyObject *self, PyObject *args, PyObject *kwargs) {
5652 PyObject *resultobj;
5653 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5654 wxString *arg2 = 0 ;
5655 bool temp2 = False ;
5656 PyObject * obj0 = 0 ;
5657 PyObject * obj1 = 0 ;
5658 char *kwnames[] = {
5659 (char *) "self",(char *) "file", NULL
5660 };
5661
5662 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_AddFileToHistory",kwnames,&obj0,&obj1)) goto fail;
5663 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5664 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5665 {
5666 arg2 = wxString_in_helper(obj1);
5667 if (arg2 == NULL) SWIG_fail;
5668 temp2 = True;
5669 }
5670 {
5671 PyThreadState* __tstate = wxPyBeginAllowThreads();
5672 (arg1)->AddFileToHistory((wxString const &)*arg2);
5673
5674 wxPyEndAllowThreads(__tstate);
5675 if (PyErr_Occurred()) SWIG_fail;
5676 }
5677 Py_INCREF(Py_None); resultobj = Py_None;
5678 {
5679 if (temp2)
5680 delete arg2;
5681 }
5682 return resultobj;
5683 fail:
5684 {
5685 if (temp2)
5686 delete arg2;
5687 }
5688 return NULL;
5689 }
5690
5691
5692 static PyObject *_wrap_FileHistory_RemoveFileFromHistory(PyObject *self, PyObject *args, PyObject *kwargs) {
5693 PyObject *resultobj;
5694 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5695 int arg2 ;
5696 PyObject * obj0 = 0 ;
5697 PyObject * obj1 = 0 ;
5698 char *kwnames[] = {
5699 (char *) "self",(char *) "i", NULL
5700 };
5701
5702 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_RemoveFileFromHistory",kwnames,&obj0,&obj1)) goto fail;
5703 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5704 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5705 arg2 = (int) SWIG_AsInt(obj1);
5706 if (PyErr_Occurred()) SWIG_fail;
5707 {
5708 PyThreadState* __tstate = wxPyBeginAllowThreads();
5709 (arg1)->RemoveFileFromHistory(arg2);
5710
5711 wxPyEndAllowThreads(__tstate);
5712 if (PyErr_Occurred()) SWIG_fail;
5713 }
5714 Py_INCREF(Py_None); resultobj = Py_None;
5715 return resultobj;
5716 fail:
5717 return NULL;
5718 }
5719
5720
5721 static PyObject *_wrap_FileHistory_GetMaxFiles(PyObject *self, PyObject *args, PyObject *kwargs) {
5722 PyObject *resultobj;
5723 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5724 int result;
5725 PyObject * obj0 = 0 ;
5726 char *kwnames[] = {
5727 (char *) "self", NULL
5728 };
5729
5730 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_GetMaxFiles",kwnames,&obj0)) goto fail;
5731 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5732 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5733 {
5734 PyThreadState* __tstate = wxPyBeginAllowThreads();
5735 result = (int)((wxFileHistory const *)arg1)->GetMaxFiles();
5736
5737 wxPyEndAllowThreads(__tstate);
5738 if (PyErr_Occurred()) SWIG_fail;
5739 }
5740 resultobj = SWIG_FromInt((int)result);
5741 return resultobj;
5742 fail:
5743 return NULL;
5744 }
5745
5746
5747 static PyObject *_wrap_FileHistory_UseMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
5748 PyObject *resultobj;
5749 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5750 wxMenu *arg2 = (wxMenu *) 0 ;
5751 PyObject * obj0 = 0 ;
5752 PyObject * obj1 = 0 ;
5753 char *kwnames[] = {
5754 (char *) "self",(char *) "menu", NULL
5755 };
5756
5757 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_UseMenu",kwnames,&obj0,&obj1)) goto fail;
5758 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5759 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5760 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu,
5761 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5762 {
5763 PyThreadState* __tstate = wxPyBeginAllowThreads();
5764 (arg1)->UseMenu(arg2);
5765
5766 wxPyEndAllowThreads(__tstate);
5767 if (PyErr_Occurred()) SWIG_fail;
5768 }
5769 Py_INCREF(Py_None); resultobj = Py_None;
5770 return resultobj;
5771 fail:
5772 return NULL;
5773 }
5774
5775
5776 static PyObject *_wrap_FileHistory_RemoveMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
5777 PyObject *resultobj;
5778 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5779 wxMenu *arg2 = (wxMenu *) 0 ;
5780 PyObject * obj0 = 0 ;
5781 PyObject * obj1 = 0 ;
5782 char *kwnames[] = {
5783 (char *) "self",(char *) "menu", NULL
5784 };
5785
5786 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_RemoveMenu",kwnames,&obj0,&obj1)) goto fail;
5787 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5788 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5789 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu,
5790 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5791 {
5792 PyThreadState* __tstate = wxPyBeginAllowThreads();
5793 (arg1)->RemoveMenu(arg2);
5794
5795 wxPyEndAllowThreads(__tstate);
5796 if (PyErr_Occurred()) SWIG_fail;
5797 }
5798 Py_INCREF(Py_None); resultobj = Py_None;
5799 return resultobj;
5800 fail:
5801 return NULL;
5802 }
5803
5804
5805 static PyObject *_wrap_FileHistory_Load(PyObject *self, PyObject *args, PyObject *kwargs) {
5806 PyObject *resultobj;
5807 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5808 wxConfigBase *arg2 = 0 ;
5809 PyObject * obj0 = 0 ;
5810 PyObject * obj1 = 0 ;
5811 char *kwnames[] = {
5812 (char *) "self",(char *) "config", NULL
5813 };
5814
5815 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_Load",kwnames,&obj0,&obj1)) goto fail;
5816 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5817 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5818 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxConfigBase,
5819 SWIG_POINTER_EXCEPTION | 0)) == -1)
5820 SWIG_fail;
5821 if (arg2 == NULL) {
5822 PyErr_SetString(PyExc_TypeError,"null reference");
5823 SWIG_fail;
5824 }
5825 {
5826 PyThreadState* __tstate = wxPyBeginAllowThreads();
5827 (arg1)->Load(*arg2);
5828
5829 wxPyEndAllowThreads(__tstate);
5830 if (PyErr_Occurred()) SWIG_fail;
5831 }
5832 Py_INCREF(Py_None); resultobj = Py_None;
5833 return resultobj;
5834 fail:
5835 return NULL;
5836 }
5837
5838
5839 static PyObject *_wrap_FileHistory_Save(PyObject *self, PyObject *args, PyObject *kwargs) {
5840 PyObject *resultobj;
5841 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5842 wxConfigBase *arg2 = 0 ;
5843 PyObject * obj0 = 0 ;
5844 PyObject * obj1 = 0 ;
5845 char *kwnames[] = {
5846 (char *) "self",(char *) "config", NULL
5847 };
5848
5849 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_Save",kwnames,&obj0,&obj1)) goto fail;
5850 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5851 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5852 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxConfigBase,
5853 SWIG_POINTER_EXCEPTION | 0)) == -1)
5854 SWIG_fail;
5855 if (arg2 == NULL) {
5856 PyErr_SetString(PyExc_TypeError,"null reference");
5857 SWIG_fail;
5858 }
5859 {
5860 PyThreadState* __tstate = wxPyBeginAllowThreads();
5861 (arg1)->Save(*arg2);
5862
5863 wxPyEndAllowThreads(__tstate);
5864 if (PyErr_Occurred()) SWIG_fail;
5865 }
5866 Py_INCREF(Py_None); resultobj = Py_None;
5867 return resultobj;
5868 fail:
5869 return NULL;
5870 }
5871
5872
5873 static PyObject *_wrap_FileHistory_AddFilesToMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
5874 PyObject *resultobj;
5875 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5876 PyObject * obj0 = 0 ;
5877 char *kwnames[] = {
5878 (char *) "self", NULL
5879 };
5880
5881 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_AddFilesToMenu",kwnames,&obj0)) goto fail;
5882 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5883 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5884 {
5885 PyThreadState* __tstate = wxPyBeginAllowThreads();
5886 (arg1)->AddFilesToMenu();
5887
5888 wxPyEndAllowThreads(__tstate);
5889 if (PyErr_Occurred()) SWIG_fail;
5890 }
5891 Py_INCREF(Py_None); resultobj = Py_None;
5892 return resultobj;
5893 fail:
5894 return NULL;
5895 }
5896
5897
5898 static PyObject *_wrap_FileHistory_AddFilesToThisMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
5899 PyObject *resultobj;
5900 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5901 wxMenu *arg2 = (wxMenu *) 0 ;
5902 PyObject * obj0 = 0 ;
5903 PyObject * obj1 = 0 ;
5904 char *kwnames[] = {
5905 (char *) "self",(char *) "menu", NULL
5906 };
5907
5908 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_AddFilesToThisMenu",kwnames,&obj0,&obj1)) goto fail;
5909 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5910 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5911 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu,
5912 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5913 {
5914 PyThreadState* __tstate = wxPyBeginAllowThreads();
5915 (arg1)->AddFilesToMenu(arg2);
5916
5917 wxPyEndAllowThreads(__tstate);
5918 if (PyErr_Occurred()) SWIG_fail;
5919 }
5920 Py_INCREF(Py_None); resultobj = Py_None;
5921 return resultobj;
5922 fail:
5923 return NULL;
5924 }
5925
5926
5927 static PyObject *_wrap_FileHistory_GetHistoryFile(PyObject *self, PyObject *args, PyObject *kwargs) {
5928 PyObject *resultobj;
5929 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5930 int arg2 ;
5931 wxString result;
5932 PyObject * obj0 = 0 ;
5933 PyObject * obj1 = 0 ;
5934 char *kwnames[] = {
5935 (char *) "self",(char *) "i", NULL
5936 };
5937
5938 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_GetHistoryFile",kwnames,&obj0,&obj1)) goto fail;
5939 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5940 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5941 arg2 = (int) SWIG_AsInt(obj1);
5942 if (PyErr_Occurred()) SWIG_fail;
5943 {
5944 PyThreadState* __tstate = wxPyBeginAllowThreads();
5945 result = ((wxFileHistory const *)arg1)->GetHistoryFile(arg2);
5946
5947 wxPyEndAllowThreads(__tstate);
5948 if (PyErr_Occurred()) SWIG_fail;
5949 }
5950 {
5951 #if wxUSE_UNICODE
5952 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5953 #else
5954 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5955 #endif
5956 }
5957 return resultobj;
5958 fail:
5959 return NULL;
5960 }
5961
5962
5963 static PyObject *_wrap_FileHistory_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
5964 PyObject *resultobj;
5965 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5966 int result;
5967 PyObject * obj0 = 0 ;
5968 char *kwnames[] = {
5969 (char *) "self", NULL
5970 };
5971
5972 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_GetCount",kwnames,&obj0)) goto fail;
5973 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5974 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5975 {
5976 PyThreadState* __tstate = wxPyBeginAllowThreads();
5977 result = (int)((wxFileHistory const *)arg1)->GetCount();
5978
5979 wxPyEndAllowThreads(__tstate);
5980 if (PyErr_Occurred()) SWIG_fail;
5981 }
5982 resultobj = SWIG_FromInt((int)result);
5983 return resultobj;
5984 fail:
5985 return NULL;
5986 }
5987
5988
5989 static PyObject * FileHistory_swigregister(PyObject *self, PyObject *args) {
5990 PyObject *obj;
5991 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5992 SWIG_TypeClientData(SWIGTYPE_p_wxFileHistory, obj);
5993 Py_INCREF(obj);
5994 return Py_BuildValue((char *)"");
5995 }
5996 static PyObject *_wrap_new_SingleInstanceChecker(PyObject *self, PyObject *args, PyObject *kwargs) {
5997 PyObject *resultobj;
5998 wxString *arg1 = 0 ;
5999 wxString const &arg2_defvalue = wxPyEmptyString ;
6000 wxString *arg2 = (wxString *) &arg2_defvalue ;
6001 wxSingleInstanceChecker *result;
6002 bool temp1 = False ;
6003 bool temp2 = False ;
6004 PyObject * obj0 = 0 ;
6005 PyObject * obj1 = 0 ;
6006 char *kwnames[] = {
6007 (char *) "name",(char *) "path", NULL
6008 };
6009
6010 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_SingleInstanceChecker",kwnames,&obj0,&obj1)) goto fail;
6011 {
6012 arg1 = wxString_in_helper(obj0);
6013 if (arg1 == NULL) SWIG_fail;
6014 temp1 = True;
6015 }
6016 if (obj1) {
6017 {
6018 arg2 = wxString_in_helper(obj1);
6019 if (arg2 == NULL) SWIG_fail;
6020 temp2 = True;
6021 }
6022 }
6023 {
6024 PyThreadState* __tstate = wxPyBeginAllowThreads();
6025 result = (wxSingleInstanceChecker *)new wxSingleInstanceChecker((wxString const &)*arg1,(wxString const &)*arg2);
6026
6027 wxPyEndAllowThreads(__tstate);
6028 if (PyErr_Occurred()) SWIG_fail;
6029 }
6030 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSingleInstanceChecker, 1);
6031 {
6032 if (temp1)
6033 delete arg1;
6034 }
6035 {
6036 if (temp2)
6037 delete arg2;
6038 }
6039 return resultobj;
6040 fail:
6041 {
6042 if (temp1)
6043 delete arg1;
6044 }
6045 {
6046 if (temp2)
6047 delete arg2;
6048 }
6049 return NULL;
6050 }
6051
6052
6053 static PyObject *_wrap_new_PreSingleInstanceChecker(PyObject *self, PyObject *args, PyObject *kwargs) {
6054 PyObject *resultobj;
6055 wxSingleInstanceChecker *result;
6056 char *kwnames[] = {
6057 NULL
6058 };
6059
6060 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSingleInstanceChecker",kwnames)) goto fail;
6061 {
6062 PyThreadState* __tstate = wxPyBeginAllowThreads();
6063 result = (wxSingleInstanceChecker *)new wxSingleInstanceChecker();
6064
6065 wxPyEndAllowThreads(__tstate);
6066 if (PyErr_Occurred()) SWIG_fail;
6067 }
6068 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSingleInstanceChecker, 1);
6069 return resultobj;
6070 fail:
6071 return NULL;
6072 }
6073
6074
6075 static PyObject *_wrap_delete_SingleInstanceChecker(PyObject *self, PyObject *args, PyObject *kwargs) {
6076 PyObject *resultobj;
6077 wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ;
6078 PyObject * obj0 = 0 ;
6079 char *kwnames[] = {
6080 (char *) "self", NULL
6081 };
6082
6083 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_SingleInstanceChecker",kwnames,&obj0)) goto fail;
6084 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSingleInstanceChecker,
6085 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6086 {
6087 PyThreadState* __tstate = wxPyBeginAllowThreads();
6088 delete arg1;
6089
6090 wxPyEndAllowThreads(__tstate);
6091 if (PyErr_Occurred()) SWIG_fail;
6092 }
6093 Py_INCREF(Py_None); resultobj = Py_None;
6094 return resultobj;
6095 fail:
6096 return NULL;
6097 }
6098
6099
6100 static PyObject *_wrap_SingleInstanceChecker_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
6101 PyObject *resultobj;
6102 wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ;
6103 wxString *arg2 = 0 ;
6104 wxString const &arg3_defvalue = wxPyEmptyString ;
6105 wxString *arg3 = (wxString *) &arg3_defvalue ;
6106 bool result;
6107 bool temp2 = False ;
6108 bool temp3 = False ;
6109 PyObject * obj0 = 0 ;
6110 PyObject * obj1 = 0 ;
6111 PyObject * obj2 = 0 ;
6112 char *kwnames[] = {
6113 (char *) "self",(char *) "name",(char *) "path", NULL
6114 };
6115
6116 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:SingleInstanceChecker_Create",kwnames,&obj0,&obj1,&obj2)) goto fail;
6117 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSingleInstanceChecker,
6118 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6119 {
6120 arg2 = wxString_in_helper(obj1);
6121 if (arg2 == NULL) SWIG_fail;
6122 temp2 = True;
6123 }
6124 if (obj2) {
6125 {
6126 arg3 = wxString_in_helper(obj2);
6127 if (arg3 == NULL) SWIG_fail;
6128 temp3 = True;
6129 }
6130 }
6131 {
6132 PyThreadState* __tstate = wxPyBeginAllowThreads();
6133 result = (bool)(arg1)->Create((wxString const &)*arg2,(wxString const &)*arg3);
6134
6135 wxPyEndAllowThreads(__tstate);
6136 if (PyErr_Occurred()) SWIG_fail;
6137 }
6138 {
6139 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6140 }
6141 {
6142 if (temp2)
6143 delete arg2;
6144 }
6145 {
6146 if (temp3)
6147 delete arg3;
6148 }
6149 return resultobj;
6150 fail:
6151 {
6152 if (temp2)
6153 delete arg2;
6154 }
6155 {
6156 if (temp3)
6157 delete arg3;
6158 }
6159 return NULL;
6160 }
6161
6162
6163 static PyObject *_wrap_SingleInstanceChecker_IsAnotherRunning(PyObject *self, PyObject *args, PyObject *kwargs) {
6164 PyObject *resultobj;
6165 wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ;
6166 bool result;
6167 PyObject * obj0 = 0 ;
6168 char *kwnames[] = {
6169 (char *) "self", NULL
6170 };
6171
6172 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SingleInstanceChecker_IsAnotherRunning",kwnames,&obj0)) goto fail;
6173 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSingleInstanceChecker,
6174 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6175 {
6176 PyThreadState* __tstate = wxPyBeginAllowThreads();
6177 result = (bool)((wxSingleInstanceChecker const *)arg1)->IsAnotherRunning();
6178
6179 wxPyEndAllowThreads(__tstate);
6180 if (PyErr_Occurred()) SWIG_fail;
6181 }
6182 {
6183 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6184 }
6185 return resultobj;
6186 fail:
6187 return NULL;
6188 }
6189
6190
6191 static PyObject * SingleInstanceChecker_swigregister(PyObject *self, PyObject *args) {
6192 PyObject *obj;
6193 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6194 SWIG_TypeClientData(SWIGTYPE_p_wxSingleInstanceChecker, obj);
6195 Py_INCREF(obj);
6196 return Py_BuildValue((char *)"");
6197 }
6198 static PyObject *_wrap_DrawWindowOnDC(PyObject *self, PyObject *args, PyObject *kwargs) {
6199 PyObject *resultobj;
6200 wxWindow *arg1 = (wxWindow *) 0 ;
6201 wxDC *arg2 = 0 ;
6202 int arg3 ;
6203 PyObject * obj0 = 0 ;
6204 PyObject * obj1 = 0 ;
6205 PyObject * obj2 = 0 ;
6206 char *kwnames[] = {
6207 (char *) "window",(char *) "dc",(char *) "method", NULL
6208 };
6209
6210 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DrawWindowOnDC",kwnames,&obj0,&obj1,&obj2)) goto fail;
6211 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
6212 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6213 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC,
6214 SWIG_POINTER_EXCEPTION | 0)) == -1)
6215 SWIG_fail;
6216 if (arg2 == NULL) {
6217 PyErr_SetString(PyExc_TypeError,"null reference");
6218 SWIG_fail;
6219 }
6220 arg3 = (int) SWIG_AsInt(obj2);
6221 if (PyErr_Occurred()) SWIG_fail;
6222 {
6223 PyThreadState* __tstate = wxPyBeginAllowThreads();
6224 wxDrawWindowOnDC(arg1,(wxDC const &)*arg2,arg3);
6225
6226 wxPyEndAllowThreads(__tstate);
6227 if (PyErr_Occurred()) SWIG_fail;
6228 }
6229 Py_INCREF(Py_None); resultobj = Py_None;
6230 return resultobj;
6231 fail:
6232 return NULL;
6233 }
6234
6235
6236 static PyObject *_wrap_delete_TipProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
6237 PyObject *resultobj;
6238 wxTipProvider *arg1 = (wxTipProvider *) 0 ;
6239 PyObject * obj0 = 0 ;
6240 char *kwnames[] = {
6241 (char *) "self", NULL
6242 };
6243
6244 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TipProvider",kwnames,&obj0)) goto fail;
6245 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider,
6246 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6247 {
6248 PyThreadState* __tstate = wxPyBeginAllowThreads();
6249 delete arg1;
6250
6251 wxPyEndAllowThreads(__tstate);
6252 if (PyErr_Occurred()) SWIG_fail;
6253 }
6254 Py_INCREF(Py_None); resultobj = Py_None;
6255 return resultobj;
6256 fail:
6257 return NULL;
6258 }
6259
6260
6261 static PyObject *_wrap_TipProvider_GetTip(PyObject *self, PyObject *args, PyObject *kwargs) {
6262 PyObject *resultobj;
6263 wxTipProvider *arg1 = (wxTipProvider *) 0 ;
6264 wxString result;
6265 PyObject * obj0 = 0 ;
6266 char *kwnames[] = {
6267 (char *) "self", NULL
6268 };
6269
6270 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TipProvider_GetTip",kwnames,&obj0)) goto fail;
6271 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider,
6272 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6273 {
6274 PyThreadState* __tstate = wxPyBeginAllowThreads();
6275 result = (arg1)->GetTip();
6276
6277 wxPyEndAllowThreads(__tstate);
6278 if (PyErr_Occurred()) SWIG_fail;
6279 }
6280 {
6281 #if wxUSE_UNICODE
6282 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6283 #else
6284 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6285 #endif
6286 }
6287 return resultobj;
6288 fail:
6289 return NULL;
6290 }
6291
6292
6293 static PyObject *_wrap_TipProvider_GetCurrentTip(PyObject *self, PyObject *args, PyObject *kwargs) {
6294 PyObject *resultobj;
6295 wxTipProvider *arg1 = (wxTipProvider *) 0 ;
6296 size_t result;
6297 PyObject * obj0 = 0 ;
6298 char *kwnames[] = {
6299 (char *) "self", NULL
6300 };
6301
6302 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TipProvider_GetCurrentTip",kwnames,&obj0)) goto fail;
6303 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider,
6304 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6305 {
6306 PyThreadState* __tstate = wxPyBeginAllowThreads();
6307 result = (size_t)(arg1)->GetCurrentTip();
6308
6309 wxPyEndAllowThreads(__tstate);
6310 if (PyErr_Occurred()) SWIG_fail;
6311 }
6312 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
6313 return resultobj;
6314 fail:
6315 return NULL;
6316 }
6317
6318
6319 static PyObject *_wrap_TipProvider_PreprocessTip(PyObject *self, PyObject *args, PyObject *kwargs) {
6320 PyObject *resultobj;
6321 wxTipProvider *arg1 = (wxTipProvider *) 0 ;
6322 wxString *arg2 = 0 ;
6323 wxString result;
6324 bool temp2 = False ;
6325 PyObject * obj0 = 0 ;
6326 PyObject * obj1 = 0 ;
6327 char *kwnames[] = {
6328 (char *) "self",(char *) "tip", NULL
6329 };
6330
6331 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TipProvider_PreprocessTip",kwnames,&obj0,&obj1)) goto fail;
6332 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider,
6333 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6334 {
6335 arg2 = wxString_in_helper(obj1);
6336 if (arg2 == NULL) SWIG_fail;
6337 temp2 = True;
6338 }
6339 {
6340 PyThreadState* __tstate = wxPyBeginAllowThreads();
6341 result = (arg1)->PreprocessTip((wxString const &)*arg2);
6342
6343 wxPyEndAllowThreads(__tstate);
6344 if (PyErr_Occurred()) SWIG_fail;
6345 }
6346 {
6347 #if wxUSE_UNICODE
6348 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6349 #else
6350 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6351 #endif
6352 }
6353 {
6354 if (temp2)
6355 delete arg2;
6356 }
6357 return resultobj;
6358 fail:
6359 {
6360 if (temp2)
6361 delete arg2;
6362 }
6363 return NULL;
6364 }
6365
6366
6367 static PyObject * TipProvider_swigregister(PyObject *self, PyObject *args) {
6368 PyObject *obj;
6369 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6370 SWIG_TypeClientData(SWIGTYPE_p_wxTipProvider, obj);
6371 Py_INCREF(obj);
6372 return Py_BuildValue((char *)"");
6373 }
6374 static PyObject *_wrap_new_PyTipProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
6375 PyObject *resultobj;
6376 size_t arg1 ;
6377 wxPyTipProvider *result;
6378 PyObject * obj0 = 0 ;
6379 char *kwnames[] = {
6380 (char *) "currentTip", NULL
6381 };
6382
6383 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PyTipProvider",kwnames,&obj0)) goto fail;
6384 arg1 = (size_t) SWIG_AsUnsignedLong(obj0);
6385 if (PyErr_Occurred()) SWIG_fail;
6386 {
6387 PyThreadState* __tstate = wxPyBeginAllowThreads();
6388 result = (wxPyTipProvider *)new wxPyTipProvider(arg1);
6389
6390 wxPyEndAllowThreads(__tstate);
6391 if (PyErr_Occurred()) SWIG_fail;
6392 }
6393 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTipProvider, 1);
6394 return resultobj;
6395 fail:
6396 return NULL;
6397 }
6398
6399
6400 static PyObject *_wrap_PyTipProvider__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6401 PyObject *resultobj;
6402 wxPyTipProvider *arg1 = (wxPyTipProvider *) 0 ;
6403 PyObject *arg2 = (PyObject *) 0 ;
6404 PyObject *arg3 = (PyObject *) 0 ;
6405 PyObject * obj0 = 0 ;
6406 PyObject * obj1 = 0 ;
6407 PyObject * obj2 = 0 ;
6408 char *kwnames[] = {
6409 (char *) "self",(char *) "self",(char *) "_class", NULL
6410 };
6411
6412 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyTipProvider__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
6413 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTipProvider,
6414 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6415 arg2 = obj1;
6416 arg3 = obj2;
6417 {
6418 PyThreadState* __tstate = wxPyBeginAllowThreads();
6419 (arg1)->_setCallbackInfo(arg2,arg3);
6420
6421 wxPyEndAllowThreads(__tstate);
6422 if (PyErr_Occurred()) SWIG_fail;
6423 }
6424 Py_INCREF(Py_None); resultobj = Py_None;
6425 return resultobj;
6426 fail:
6427 return NULL;
6428 }
6429
6430
6431 static PyObject * PyTipProvider_swigregister(PyObject *self, PyObject *args) {
6432 PyObject *obj;
6433 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6434 SWIG_TypeClientData(SWIGTYPE_p_wxPyTipProvider, obj);
6435 Py_INCREF(obj);
6436 return Py_BuildValue((char *)"");
6437 }
6438 static PyObject *_wrap_ShowTip(PyObject *self, PyObject *args, PyObject *kwargs) {
6439 PyObject *resultobj;
6440 wxWindow *arg1 = (wxWindow *) 0 ;
6441 wxTipProvider *arg2 = (wxTipProvider *) 0 ;
6442 bool arg3 = (bool) True ;
6443 bool result;
6444 PyObject * obj0 = 0 ;
6445 PyObject * obj1 = 0 ;
6446 PyObject * obj2 = 0 ;
6447 char *kwnames[] = {
6448 (char *) "parent",(char *) "tipProvider",(char *) "showAtStartup", NULL
6449 };
6450
6451 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ShowTip",kwnames,&obj0,&obj1,&obj2)) goto fail;
6452 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
6453 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6454 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTipProvider,
6455 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6456 if (obj2) {
6457 arg3 = (bool) SWIG_AsBool(obj2);
6458 if (PyErr_Occurred()) SWIG_fail;
6459 }
6460 {
6461 if (!wxPyCheckForApp()) SWIG_fail;
6462 PyThreadState* __tstate = wxPyBeginAllowThreads();
6463 result = (bool)wxShowTip(arg1,arg2,arg3);
6464
6465 wxPyEndAllowThreads(__tstate);
6466 if (PyErr_Occurred()) SWIG_fail;
6467 }
6468 {
6469 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6470 }
6471 return resultobj;
6472 fail:
6473 return NULL;
6474 }
6475
6476
6477 static PyObject *_wrap_CreateFileTipProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
6478 PyObject *resultobj;
6479 wxString *arg1 = 0 ;
6480 size_t arg2 ;
6481 wxTipProvider *result;
6482 bool temp1 = False ;
6483 PyObject * obj0 = 0 ;
6484 PyObject * obj1 = 0 ;
6485 char *kwnames[] = {
6486 (char *) "filename",(char *) "currentTip", NULL
6487 };
6488
6489 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CreateFileTipProvider",kwnames,&obj0,&obj1)) goto fail;
6490 {
6491 arg1 = wxString_in_helper(obj0);
6492 if (arg1 == NULL) SWIG_fail;
6493 temp1 = True;
6494 }
6495 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
6496 if (PyErr_Occurred()) SWIG_fail;
6497 {
6498 if (!wxPyCheckForApp()) SWIG_fail;
6499 PyThreadState* __tstate = wxPyBeginAllowThreads();
6500 result = (wxTipProvider *)wxCreateFileTipProvider((wxString const &)*arg1,arg2);
6501
6502 wxPyEndAllowThreads(__tstate);
6503 if (PyErr_Occurred()) SWIG_fail;
6504 }
6505 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTipProvider, 1);
6506 {
6507 if (temp1)
6508 delete arg1;
6509 }
6510 return resultobj;
6511 fail:
6512 {
6513 if (temp1)
6514 delete arg1;
6515 }
6516 return NULL;
6517 }
6518
6519
6520 static PyObject *_wrap_new_Timer(PyObject *self, PyObject *args, PyObject *kwargs) {
6521 PyObject *resultobj;
6522 wxEvtHandler *arg1 = (wxEvtHandler *) NULL ;
6523 int arg2 = (int) -1 ;
6524 wxPyTimer *result;
6525 PyObject * obj0 = 0 ;
6526 PyObject * obj1 = 0 ;
6527 char *kwnames[] = {
6528 (char *) "owner",(char *) "id", NULL
6529 };
6530
6531 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Timer",kwnames,&obj0,&obj1)) goto fail;
6532 if (obj0) {
6533 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler,
6534 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6535 }
6536 if (obj1) {
6537 arg2 = (int) SWIG_AsInt(obj1);
6538 if (PyErr_Occurred()) SWIG_fail;
6539 }
6540 {
6541 if (!wxPyCheckForApp()) SWIG_fail;
6542 PyThreadState* __tstate = wxPyBeginAllowThreads();
6543 result = (wxPyTimer *)new wxPyTimer(arg1,arg2);
6544
6545 wxPyEndAllowThreads(__tstate);
6546 if (PyErr_Occurred()) SWIG_fail;
6547 }
6548 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTimer, 1);
6549 return resultobj;
6550 fail:
6551 return NULL;
6552 }
6553
6554
6555 static PyObject *_wrap_delete_Timer(PyObject *self, PyObject *args, PyObject *kwargs) {
6556 PyObject *resultobj;
6557 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6558 PyObject * obj0 = 0 ;
6559 char *kwnames[] = {
6560 (char *) "self", NULL
6561 };
6562
6563 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Timer",kwnames,&obj0)) goto fail;
6564 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6565 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6566 {
6567 PyThreadState* __tstate = wxPyBeginAllowThreads();
6568 delete arg1;
6569
6570 wxPyEndAllowThreads(__tstate);
6571 if (PyErr_Occurred()) SWIG_fail;
6572 }
6573 Py_INCREF(Py_None); resultobj = Py_None;
6574 return resultobj;
6575 fail:
6576 return NULL;
6577 }
6578
6579
6580 static PyObject *_wrap_Timer__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6581 PyObject *resultobj;
6582 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6583 PyObject *arg2 = (PyObject *) 0 ;
6584 PyObject *arg3 = (PyObject *) 0 ;
6585 int arg4 = (int) 1 ;
6586 PyObject * obj0 = 0 ;
6587 PyObject * obj1 = 0 ;
6588 PyObject * obj2 = 0 ;
6589 PyObject * obj3 = 0 ;
6590 char *kwnames[] = {
6591 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
6592 };
6593
6594 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Timer__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
6595 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6596 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6597 arg2 = obj1;
6598 arg3 = obj2;
6599 if (obj3) {
6600 arg4 = (int) SWIG_AsInt(obj3);
6601 if (PyErr_Occurred()) SWIG_fail;
6602 }
6603 {
6604 PyThreadState* __tstate = wxPyBeginAllowThreads();
6605 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
6606
6607 wxPyEndAllowThreads(__tstate);
6608 if (PyErr_Occurred()) SWIG_fail;
6609 }
6610 Py_INCREF(Py_None); resultobj = Py_None;
6611 return resultobj;
6612 fail:
6613 return NULL;
6614 }
6615
6616
6617 static PyObject *_wrap_Timer_SetOwner(PyObject *self, PyObject *args, PyObject *kwargs) {
6618 PyObject *resultobj;
6619 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6620 wxEvtHandler *arg2 = (wxEvtHandler *) 0 ;
6621 int arg3 = (int) -1 ;
6622 PyObject * obj0 = 0 ;
6623 PyObject * obj1 = 0 ;
6624 PyObject * obj2 = 0 ;
6625 char *kwnames[] = {
6626 (char *) "self",(char *) "owner",(char *) "id", NULL
6627 };
6628
6629 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Timer_SetOwner",kwnames,&obj0,&obj1,&obj2)) goto fail;
6630 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6631 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6632 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler,
6633 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6634 if (obj2) {
6635 arg3 = (int) SWIG_AsInt(obj2);
6636 if (PyErr_Occurred()) SWIG_fail;
6637 }
6638 {
6639 PyThreadState* __tstate = wxPyBeginAllowThreads();
6640 (arg1)->SetOwner(arg2,arg3);
6641
6642 wxPyEndAllowThreads(__tstate);
6643 if (PyErr_Occurred()) SWIG_fail;
6644 }
6645 Py_INCREF(Py_None); resultobj = Py_None;
6646 return resultobj;
6647 fail:
6648 return NULL;
6649 }
6650
6651
6652 static PyObject *_wrap_Timer_GetOwner(PyObject *self, PyObject *args, PyObject *kwargs) {
6653 PyObject *resultobj;
6654 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6655 wxEvtHandler *result;
6656 PyObject * obj0 = 0 ;
6657 char *kwnames[] = {
6658 (char *) "self", NULL
6659 };
6660
6661 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_GetOwner",kwnames,&obj0)) goto fail;
6662 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6663 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6664 {
6665 PyThreadState* __tstate = wxPyBeginAllowThreads();
6666 result = (wxEvtHandler *)(arg1)->GetOwner();
6667
6668 wxPyEndAllowThreads(__tstate);
6669 if (PyErr_Occurred()) SWIG_fail;
6670 }
6671 {
6672 resultobj = wxPyMake_wxObject(result, 0);
6673 }
6674 return resultobj;
6675 fail:
6676 return NULL;
6677 }
6678
6679
6680 static PyObject *_wrap_Timer_Start(PyObject *self, PyObject *args, PyObject *kwargs) {
6681 PyObject *resultobj;
6682 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6683 int arg2 = (int) -1 ;
6684 bool arg3 = (bool) False ;
6685 bool result;
6686 PyObject * obj0 = 0 ;
6687 PyObject * obj1 = 0 ;
6688 PyObject * obj2 = 0 ;
6689 char *kwnames[] = {
6690 (char *) "self",(char *) "milliseconds",(char *) "oneShot", NULL
6691 };
6692
6693 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Timer_Start",kwnames,&obj0,&obj1,&obj2)) goto fail;
6694 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6695 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6696 if (obj1) {
6697 arg2 = (int) SWIG_AsInt(obj1);
6698 if (PyErr_Occurred()) SWIG_fail;
6699 }
6700 if (obj2) {
6701 arg3 = (bool) SWIG_AsBool(obj2);
6702 if (PyErr_Occurred()) SWIG_fail;
6703 }
6704 {
6705 PyThreadState* __tstate = wxPyBeginAllowThreads();
6706 result = (bool)(arg1)->Start(arg2,arg3);
6707
6708 wxPyEndAllowThreads(__tstate);
6709 if (PyErr_Occurred()) SWIG_fail;
6710 }
6711 {
6712 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6713 }
6714 return resultobj;
6715 fail:
6716 return NULL;
6717 }
6718
6719
6720 static PyObject *_wrap_Timer_Stop(PyObject *self, PyObject *args, PyObject *kwargs) {
6721 PyObject *resultobj;
6722 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6723 PyObject * obj0 = 0 ;
6724 char *kwnames[] = {
6725 (char *) "self", NULL
6726 };
6727
6728 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_Stop",kwnames,&obj0)) goto fail;
6729 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6730 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6731 {
6732 PyThreadState* __tstate = wxPyBeginAllowThreads();
6733 (arg1)->Stop();
6734
6735 wxPyEndAllowThreads(__tstate);
6736 if (PyErr_Occurred()) SWIG_fail;
6737 }
6738 Py_INCREF(Py_None); resultobj = Py_None;
6739 return resultobj;
6740 fail:
6741 return NULL;
6742 }
6743
6744
6745 static PyObject *_wrap_Timer_IsRunning(PyObject *self, PyObject *args, PyObject *kwargs) {
6746 PyObject *resultobj;
6747 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6748 bool result;
6749 PyObject * obj0 = 0 ;
6750 char *kwnames[] = {
6751 (char *) "self", NULL
6752 };
6753
6754 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_IsRunning",kwnames,&obj0)) goto fail;
6755 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6756 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6757 {
6758 PyThreadState* __tstate = wxPyBeginAllowThreads();
6759 result = (bool)((wxPyTimer const *)arg1)->IsRunning();
6760
6761 wxPyEndAllowThreads(__tstate);
6762 if (PyErr_Occurred()) SWIG_fail;
6763 }
6764 {
6765 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6766 }
6767 return resultobj;
6768 fail:
6769 return NULL;
6770 }
6771
6772
6773 static PyObject *_wrap_Timer_GetInterval(PyObject *self, PyObject *args, PyObject *kwargs) {
6774 PyObject *resultobj;
6775 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6776 int result;
6777 PyObject * obj0 = 0 ;
6778 char *kwnames[] = {
6779 (char *) "self", NULL
6780 };
6781
6782 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_GetInterval",kwnames,&obj0)) goto fail;
6783 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6784 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6785 {
6786 PyThreadState* __tstate = wxPyBeginAllowThreads();
6787 result = (int)((wxPyTimer const *)arg1)->GetInterval();
6788
6789 wxPyEndAllowThreads(__tstate);
6790 if (PyErr_Occurred()) SWIG_fail;
6791 }
6792 resultobj = SWIG_FromInt((int)result);
6793 return resultobj;
6794 fail:
6795 return NULL;
6796 }
6797
6798
6799 static PyObject *_wrap_Timer_IsOneShot(PyObject *self, PyObject *args, PyObject *kwargs) {
6800 PyObject *resultobj;
6801 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6802 bool result;
6803 PyObject * obj0 = 0 ;
6804 char *kwnames[] = {
6805 (char *) "self", NULL
6806 };
6807
6808 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_IsOneShot",kwnames,&obj0)) goto fail;
6809 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6810 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6811 {
6812 PyThreadState* __tstate = wxPyBeginAllowThreads();
6813 result = (bool)((wxPyTimer const *)arg1)->IsOneShot();
6814
6815 wxPyEndAllowThreads(__tstate);
6816 if (PyErr_Occurred()) SWIG_fail;
6817 }
6818 {
6819 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6820 }
6821 return resultobj;
6822 fail:
6823 return NULL;
6824 }
6825
6826
6827 static PyObject *_wrap_Timer_GetId(PyObject *self, PyObject *args, PyObject *kwargs) {
6828 PyObject *resultobj;
6829 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6830 int result;
6831 PyObject * obj0 = 0 ;
6832 char *kwnames[] = {
6833 (char *) "self", NULL
6834 };
6835
6836 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_GetId",kwnames,&obj0)) goto fail;
6837 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6838 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6839 {
6840 PyThreadState* __tstate = wxPyBeginAllowThreads();
6841 result = (int)((wxPyTimer const *)arg1)->GetId();
6842
6843 wxPyEndAllowThreads(__tstate);
6844 if (PyErr_Occurred()) SWIG_fail;
6845 }
6846 resultobj = SWIG_FromInt((int)result);
6847 return resultobj;
6848 fail:
6849 return NULL;
6850 }
6851
6852
6853 static PyObject * Timer_swigregister(PyObject *self, PyObject *args) {
6854 PyObject *obj;
6855 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6856 SWIG_TypeClientData(SWIGTYPE_p_wxPyTimer, obj);
6857 Py_INCREF(obj);
6858 return Py_BuildValue((char *)"");
6859 }
6860 static PyObject *_wrap_new_TimerEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
6861 PyObject *resultobj;
6862 int arg1 = (int) 0 ;
6863 int arg2 = (int) 0 ;
6864 wxTimerEvent *result;
6865 PyObject * obj0 = 0 ;
6866 PyObject * obj1 = 0 ;
6867 char *kwnames[] = {
6868 (char *) "timerid",(char *) "interval", NULL
6869 };
6870
6871 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_TimerEvent",kwnames,&obj0,&obj1)) goto fail;
6872 if (obj0) {
6873 arg1 = (int) SWIG_AsInt(obj0);
6874 if (PyErr_Occurred()) SWIG_fail;
6875 }
6876 if (obj1) {
6877 arg2 = (int) SWIG_AsInt(obj1);
6878 if (PyErr_Occurred()) SWIG_fail;
6879 }
6880 {
6881 PyThreadState* __tstate = wxPyBeginAllowThreads();
6882 result = (wxTimerEvent *)new wxTimerEvent(arg1,arg2);
6883
6884 wxPyEndAllowThreads(__tstate);
6885 if (PyErr_Occurred()) SWIG_fail;
6886 }
6887 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimerEvent, 1);
6888 return resultobj;
6889 fail:
6890 return NULL;
6891 }
6892
6893
6894 static PyObject *_wrap_TimerEvent_GetInterval(PyObject *self, PyObject *args, PyObject *kwargs) {
6895 PyObject *resultobj;
6896 wxTimerEvent *arg1 = (wxTimerEvent *) 0 ;
6897 int result;
6898 PyObject * obj0 = 0 ;
6899 char *kwnames[] = {
6900 (char *) "self", NULL
6901 };
6902
6903 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimerEvent_GetInterval",kwnames,&obj0)) goto fail;
6904 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimerEvent,
6905 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6906 {
6907 PyThreadState* __tstate = wxPyBeginAllowThreads();
6908 result = (int)((wxTimerEvent const *)arg1)->GetInterval();
6909
6910 wxPyEndAllowThreads(__tstate);
6911 if (PyErr_Occurred()) SWIG_fail;
6912 }
6913 resultobj = SWIG_FromInt((int)result);
6914 return resultobj;
6915 fail:
6916 return NULL;
6917 }
6918
6919
6920 static PyObject * TimerEvent_swigregister(PyObject *self, PyObject *args) {
6921 PyObject *obj;
6922 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6923 SWIG_TypeClientData(SWIGTYPE_p_wxTimerEvent, obj);
6924 Py_INCREF(obj);
6925 return Py_BuildValue((char *)"");
6926 }
6927 static PyObject *_wrap_new_TimerRunner__SWIG_0(PyObject *self, PyObject *args) {
6928 PyObject *resultobj;
6929 wxTimer *arg1 = 0 ;
6930 wxTimerRunner *result;
6931 PyObject * obj0 = 0 ;
6932
6933 if(!PyArg_ParseTuple(args,(char *)"O:new_TimerRunner",&obj0)) goto fail;
6934 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimer,
6935 SWIG_POINTER_EXCEPTION | 0)) == -1)
6936 SWIG_fail;
6937 if (arg1 == NULL) {
6938 PyErr_SetString(PyExc_TypeError,"null reference");
6939 SWIG_fail;
6940 }
6941 {
6942 if (!wxPyCheckForApp()) SWIG_fail;
6943 PyThreadState* __tstate = wxPyBeginAllowThreads();
6944 result = (wxTimerRunner *)new wxTimerRunner(*arg1);
6945
6946 wxPyEndAllowThreads(__tstate);
6947 if (PyErr_Occurred()) SWIG_fail;
6948 }
6949 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimerRunner, 1);
6950 return resultobj;
6951 fail:
6952 return NULL;
6953 }
6954
6955
6956 static PyObject *_wrap_new_TimerRunner__SWIG_1(PyObject *self, PyObject *args) {
6957 PyObject *resultobj;
6958 wxTimer *arg1 = 0 ;
6959 int arg2 ;
6960 bool arg3 = (bool) False ;
6961 wxTimerRunner *result;
6962 PyObject * obj0 = 0 ;
6963 PyObject * obj1 = 0 ;
6964 PyObject * obj2 = 0 ;
6965
6966 if(!PyArg_ParseTuple(args,(char *)"OO|O:new_TimerRunner",&obj0,&obj1,&obj2)) goto fail;
6967 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimer,
6968 SWIG_POINTER_EXCEPTION | 0)) == -1)
6969 SWIG_fail;
6970 if (arg1 == NULL) {
6971 PyErr_SetString(PyExc_TypeError,"null reference");
6972 SWIG_fail;
6973 }
6974 arg2 = (int) SWIG_AsInt(obj1);
6975 if (PyErr_Occurred()) SWIG_fail;
6976 if (obj2) {
6977 arg3 = (bool) SWIG_AsBool(obj2);
6978 if (PyErr_Occurred()) SWIG_fail;
6979 }
6980 {
6981 if (!wxPyCheckForApp()) SWIG_fail;
6982 PyThreadState* __tstate = wxPyBeginAllowThreads();
6983 result = (wxTimerRunner *)new wxTimerRunner(*arg1,arg2,arg3);
6984
6985 wxPyEndAllowThreads(__tstate);
6986 if (PyErr_Occurred()) SWIG_fail;
6987 }
6988 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimerRunner, 1);
6989 return resultobj;
6990 fail:
6991 return NULL;
6992 }
6993
6994
6995 static PyObject *_wrap_new_TimerRunner(PyObject *self, PyObject *args) {
6996 int argc;
6997 PyObject *argv[4];
6998 int ii;
6999
7000 argc = PyObject_Length(args);
7001 for (ii = 0; (ii < argc) && (ii < 3); ii++) {
7002 argv[ii] = PyTuple_GetItem(args,ii);
7003 }
7004 if (argc == 1) {
7005 int _v;
7006 {
7007 void *ptr;
7008 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxTimer, 0) == -1) {
7009 _v = 0;
7010 PyErr_Clear();
7011 } else {
7012 _v = 1;
7013 }
7014 }
7015 if (_v) {
7016 return _wrap_new_TimerRunner__SWIG_0(self,args);
7017 }
7018 }
7019 if ((argc >= 2) && (argc <= 3)) {
7020 int _v;
7021 {
7022 void *ptr;
7023 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxTimer, 0) == -1) {
7024 _v = 0;
7025 PyErr_Clear();
7026 } else {
7027 _v = 1;
7028 }
7029 }
7030 if (_v) {
7031 _v = SWIG_CheckInt(argv[1]);
7032 if (_v) {
7033 if (argc <= 2) {
7034 return _wrap_new_TimerRunner__SWIG_1(self,args);
7035 }
7036 _v = SWIG_CheckBool(argv[2]);
7037 if (_v) {
7038 return _wrap_new_TimerRunner__SWIG_1(self,args);
7039 }
7040 }
7041 }
7042 }
7043
7044 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_TimerRunner'");
7045 return NULL;
7046 }
7047
7048
7049 static PyObject *_wrap_delete_TimerRunner(PyObject *self, PyObject *args, PyObject *kwargs) {
7050 PyObject *resultobj;
7051 wxTimerRunner *arg1 = (wxTimerRunner *) 0 ;
7052 PyObject * obj0 = 0 ;
7053 char *kwnames[] = {
7054 (char *) "self", NULL
7055 };
7056
7057 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TimerRunner",kwnames,&obj0)) goto fail;
7058 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimerRunner,
7059 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7060 {
7061 PyThreadState* __tstate = wxPyBeginAllowThreads();
7062 delete arg1;
7063
7064 wxPyEndAllowThreads(__tstate);
7065 if (PyErr_Occurred()) SWIG_fail;
7066 }
7067 Py_INCREF(Py_None); resultobj = Py_None;
7068 return resultobj;
7069 fail:
7070 return NULL;
7071 }
7072
7073
7074 static PyObject *_wrap_TimerRunner_Start(PyObject *self, PyObject *args, PyObject *kwargs) {
7075 PyObject *resultobj;
7076 wxTimerRunner *arg1 = (wxTimerRunner *) 0 ;
7077 int arg2 ;
7078 bool arg3 = (bool) False ;
7079 PyObject * obj0 = 0 ;
7080 PyObject * obj1 = 0 ;
7081 PyObject * obj2 = 0 ;
7082 char *kwnames[] = {
7083 (char *) "self",(char *) "milli",(char *) "oneShot", NULL
7084 };
7085
7086 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TimerRunner_Start",kwnames,&obj0,&obj1,&obj2)) goto fail;
7087 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimerRunner,
7088 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7089 arg2 = (int) SWIG_AsInt(obj1);
7090 if (PyErr_Occurred()) SWIG_fail;
7091 if (obj2) {
7092 arg3 = (bool) SWIG_AsBool(obj2);
7093 if (PyErr_Occurred()) SWIG_fail;
7094 }
7095 {
7096 PyThreadState* __tstate = wxPyBeginAllowThreads();
7097 (arg1)->Start(arg2,arg3);
7098
7099 wxPyEndAllowThreads(__tstate);
7100 if (PyErr_Occurred()) SWIG_fail;
7101 }
7102 Py_INCREF(Py_None); resultobj = Py_None;
7103 return resultobj;
7104 fail:
7105 return NULL;
7106 }
7107
7108
7109 static PyObject * TimerRunner_swigregister(PyObject *self, PyObject *args) {
7110 PyObject *obj;
7111 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7112 SWIG_TypeClientData(SWIGTYPE_p_wxTimerRunner, obj);
7113 Py_INCREF(obj);
7114 return Py_BuildValue((char *)"");
7115 }
7116 static PyObject *_wrap_new_Log(PyObject *self, PyObject *args, PyObject *kwargs) {
7117 PyObject *resultobj;
7118 wxLog *result;
7119 char *kwnames[] = {
7120 NULL
7121 };
7122
7123 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Log",kwnames)) goto fail;
7124 {
7125 PyThreadState* __tstate = wxPyBeginAllowThreads();
7126 result = (wxLog *)new wxLog();
7127
7128 wxPyEndAllowThreads(__tstate);
7129 if (PyErr_Occurred()) SWIG_fail;
7130 }
7131 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 1);
7132 return resultobj;
7133 fail:
7134 return NULL;
7135 }
7136
7137
7138 static PyObject *_wrap_Log_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
7139 PyObject *resultobj;
7140 bool result;
7141 char *kwnames[] = {
7142 NULL
7143 };
7144
7145 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_IsEnabled",kwnames)) goto fail;
7146 {
7147 PyThreadState* __tstate = wxPyBeginAllowThreads();
7148 result = (bool)wxLog::IsEnabled();
7149
7150 wxPyEndAllowThreads(__tstate);
7151 if (PyErr_Occurred()) SWIG_fail;
7152 }
7153 {
7154 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7155 }
7156 return resultobj;
7157 fail:
7158 return NULL;
7159 }
7160
7161
7162 static PyObject *_wrap_Log_EnableLogging(PyObject *self, PyObject *args, PyObject *kwargs) {
7163 PyObject *resultobj;
7164 bool arg1 = (bool) True ;
7165 bool result;
7166 PyObject * obj0 = 0 ;
7167 char *kwnames[] = {
7168 (char *) "doIt", NULL
7169 };
7170
7171 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Log_EnableLogging",kwnames,&obj0)) goto fail;
7172 if (obj0) {
7173 arg1 = (bool) SWIG_AsBool(obj0);
7174 if (PyErr_Occurred()) SWIG_fail;
7175 }
7176 {
7177 PyThreadState* __tstate = wxPyBeginAllowThreads();
7178 result = (bool)wxLog::EnableLogging(arg1);
7179
7180 wxPyEndAllowThreads(__tstate);
7181 if (PyErr_Occurred()) SWIG_fail;
7182 }
7183 {
7184 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7185 }
7186 return resultobj;
7187 fail:
7188 return NULL;
7189 }
7190
7191
7192 static PyObject *_wrap_Log_OnLog(PyObject *self, PyObject *args, PyObject *kwargs) {
7193 PyObject *resultobj;
7194 wxLogLevel arg1 ;
7195 wxChar *arg2 = (wxChar *) 0 ;
7196 time_t arg3 ;
7197 PyObject * obj0 = 0 ;
7198 PyObject * obj1 = 0 ;
7199 PyObject * obj2 = 0 ;
7200 char *kwnames[] = {
7201 (char *) "level",(char *) "szString",(char *) "t", NULL
7202 };
7203
7204 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Log_OnLog",kwnames,&obj0,&obj1,&obj2)) goto fail;
7205 arg1 = (wxLogLevel) SWIG_AsUnsignedLong(obj0);
7206 if (PyErr_Occurred()) SWIG_fail;
7207 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxChar,
7208 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7209 arg3 = (time_t) SWIG_AsUnsignedInt(obj2);
7210 if (PyErr_Occurred()) SWIG_fail;
7211 {
7212 PyThreadState* __tstate = wxPyBeginAllowThreads();
7213 wxLog::OnLog(arg1,(wxChar const *)arg2,arg3);
7214
7215 wxPyEndAllowThreads(__tstate);
7216 if (PyErr_Occurred()) SWIG_fail;
7217 }
7218 Py_INCREF(Py_None); resultobj = Py_None;
7219 return resultobj;
7220 fail:
7221 return NULL;
7222 }
7223
7224
7225 static PyObject *_wrap_Log_Flush(PyObject *self, PyObject *args, PyObject *kwargs) {
7226 PyObject *resultobj;
7227 wxLog *arg1 = (wxLog *) 0 ;
7228 PyObject * obj0 = 0 ;
7229 char *kwnames[] = {
7230 (char *) "self", NULL
7231 };
7232
7233 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_Flush",kwnames,&obj0)) goto fail;
7234 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog,
7235 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7236 {
7237 PyThreadState* __tstate = wxPyBeginAllowThreads();
7238 (arg1)->Flush();
7239
7240 wxPyEndAllowThreads(__tstate);
7241 if (PyErr_Occurred()) SWIG_fail;
7242 }
7243 Py_INCREF(Py_None); resultobj = Py_None;
7244 return resultobj;
7245 fail:
7246 return NULL;
7247 }
7248
7249
7250 static PyObject *_wrap_Log_FlushActive(PyObject *self, PyObject *args, PyObject *kwargs) {
7251 PyObject *resultobj;
7252 char *kwnames[] = {
7253 NULL
7254 };
7255
7256 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_FlushActive",kwnames)) goto fail;
7257 {
7258 PyThreadState* __tstate = wxPyBeginAllowThreads();
7259 wxLog::FlushActive();
7260
7261 wxPyEndAllowThreads(__tstate);
7262 if (PyErr_Occurred()) SWIG_fail;
7263 }
7264 Py_INCREF(Py_None); resultobj = Py_None;
7265 return resultobj;
7266 fail:
7267 return NULL;
7268 }
7269
7270
7271 static PyObject *_wrap_Log_GetActiveTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
7272 PyObject *resultobj;
7273 wxLog *result;
7274 char *kwnames[] = {
7275 NULL
7276 };
7277
7278 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetActiveTarget",kwnames)) goto fail;
7279 {
7280 PyThreadState* __tstate = wxPyBeginAllowThreads();
7281 result = (wxLog *)wxLog::GetActiveTarget();
7282
7283 wxPyEndAllowThreads(__tstate);
7284 if (PyErr_Occurred()) SWIG_fail;
7285 }
7286 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0);
7287 return resultobj;
7288 fail:
7289 return NULL;
7290 }
7291
7292
7293 static PyObject *_wrap_Log_SetActiveTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
7294 PyObject *resultobj;
7295 wxLog *arg1 = (wxLog *) 0 ;
7296 wxLog *result;
7297 PyObject * obj0 = 0 ;
7298 char *kwnames[] = {
7299 (char *) "pLogger", NULL
7300 };
7301
7302 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetActiveTarget",kwnames,&obj0)) goto fail;
7303 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog,
7304 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7305 {
7306 PyThreadState* __tstate = wxPyBeginAllowThreads();
7307 result = (wxLog *)wxLog::SetActiveTarget(arg1);
7308
7309 wxPyEndAllowThreads(__tstate);
7310 if (PyErr_Occurred()) SWIG_fail;
7311 }
7312 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0);
7313 return resultobj;
7314 fail:
7315 return NULL;
7316 }
7317
7318
7319 static PyObject *_wrap_Log_Suspend(PyObject *self, PyObject *args, PyObject *kwargs) {
7320 PyObject *resultobj;
7321 char *kwnames[] = {
7322 NULL
7323 };
7324
7325 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_Suspend",kwnames)) goto fail;
7326 {
7327 PyThreadState* __tstate = wxPyBeginAllowThreads();
7328 wxLog::Suspend();
7329
7330 wxPyEndAllowThreads(__tstate);
7331 if (PyErr_Occurred()) SWIG_fail;
7332 }
7333 Py_INCREF(Py_None); resultobj = Py_None;
7334 return resultobj;
7335 fail:
7336 return NULL;
7337 }
7338
7339
7340 static PyObject *_wrap_Log_Resume(PyObject *self, PyObject *args, PyObject *kwargs) {
7341 PyObject *resultobj;
7342 char *kwnames[] = {
7343 NULL
7344 };
7345
7346 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_Resume",kwnames)) goto fail;
7347 {
7348 PyThreadState* __tstate = wxPyBeginAllowThreads();
7349 wxLog::Resume();
7350
7351 wxPyEndAllowThreads(__tstate);
7352 if (PyErr_Occurred()) SWIG_fail;
7353 }
7354 Py_INCREF(Py_None); resultobj = Py_None;
7355 return resultobj;
7356 fail:
7357 return NULL;
7358 }
7359
7360
7361 static PyObject *_wrap_Log_SetVerbose(PyObject *self, PyObject *args, PyObject *kwargs) {
7362 PyObject *resultobj;
7363 bool arg1 = (bool) True ;
7364 PyObject * obj0 = 0 ;
7365 char *kwnames[] = {
7366 (char *) "bVerbose", NULL
7367 };
7368
7369 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Log_SetVerbose",kwnames,&obj0)) goto fail;
7370 if (obj0) {
7371 arg1 = (bool) SWIG_AsBool(obj0);
7372 if (PyErr_Occurred()) SWIG_fail;
7373 }
7374 {
7375 PyThreadState* __tstate = wxPyBeginAllowThreads();
7376 wxLog::SetVerbose(arg1);
7377
7378 wxPyEndAllowThreads(__tstate);
7379 if (PyErr_Occurred()) SWIG_fail;
7380 }
7381 Py_INCREF(Py_None); resultobj = Py_None;
7382 return resultobj;
7383 fail:
7384 return NULL;
7385 }
7386
7387
7388 static PyObject *_wrap_Log_SetLogLevel(PyObject *self, PyObject *args, PyObject *kwargs) {
7389 PyObject *resultobj;
7390 wxLogLevel arg1 ;
7391 PyObject * obj0 = 0 ;
7392 char *kwnames[] = {
7393 (char *) "logLevel", NULL
7394 };
7395
7396 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetLogLevel",kwnames,&obj0)) goto fail;
7397 arg1 = (wxLogLevel) SWIG_AsUnsignedLong(obj0);
7398 if (PyErr_Occurred()) SWIG_fail;
7399 {
7400 PyThreadState* __tstate = wxPyBeginAllowThreads();
7401 wxLog::SetLogLevel(arg1);
7402
7403 wxPyEndAllowThreads(__tstate);
7404 if (PyErr_Occurred()) SWIG_fail;
7405 }
7406 Py_INCREF(Py_None); resultobj = Py_None;
7407 return resultobj;
7408 fail:
7409 return NULL;
7410 }
7411
7412
7413 static PyObject *_wrap_Log_DontCreateOnDemand(PyObject *self, PyObject *args, PyObject *kwargs) {
7414 PyObject *resultobj;
7415 char *kwnames[] = {
7416 NULL
7417 };
7418
7419 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_DontCreateOnDemand",kwnames)) goto fail;
7420 {
7421 PyThreadState* __tstate = wxPyBeginAllowThreads();
7422 wxLog::DontCreateOnDemand();
7423
7424 wxPyEndAllowThreads(__tstate);
7425 if (PyErr_Occurred()) SWIG_fail;
7426 }
7427 Py_INCREF(Py_None); resultobj = Py_None;
7428 return resultobj;
7429 fail:
7430 return NULL;
7431 }
7432
7433
7434 static PyObject *_wrap_Log_SetTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) {
7435 PyObject *resultobj;
7436 wxTraceMask arg1 ;
7437 PyObject * obj0 = 0 ;
7438 char *kwnames[] = {
7439 (char *) "ulMask", NULL
7440 };
7441
7442 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetTraceMask",kwnames,&obj0)) goto fail;
7443 arg1 = (wxTraceMask) SWIG_AsUnsignedLong(obj0);
7444 if (PyErr_Occurred()) SWIG_fail;
7445 {
7446 PyThreadState* __tstate = wxPyBeginAllowThreads();
7447 wxLog::SetTraceMask(arg1);
7448
7449 wxPyEndAllowThreads(__tstate);
7450 if (PyErr_Occurred()) SWIG_fail;
7451 }
7452 Py_INCREF(Py_None); resultobj = Py_None;
7453 return resultobj;
7454 fail:
7455 return NULL;
7456 }
7457
7458
7459 static PyObject *_wrap_Log_AddTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) {
7460 PyObject *resultobj;
7461 wxString *arg1 = 0 ;
7462 bool temp1 = False ;
7463 PyObject * obj0 = 0 ;
7464 char *kwnames[] = {
7465 (char *) "str", NULL
7466 };
7467
7468 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_AddTraceMask",kwnames,&obj0)) goto fail;
7469 {
7470 arg1 = wxString_in_helper(obj0);
7471 if (arg1 == NULL) SWIG_fail;
7472 temp1 = True;
7473 }
7474 {
7475 PyThreadState* __tstate = wxPyBeginAllowThreads();
7476 wxLog::AddTraceMask((wxString const &)*arg1);
7477
7478 wxPyEndAllowThreads(__tstate);
7479 if (PyErr_Occurred()) SWIG_fail;
7480 }
7481 Py_INCREF(Py_None); resultobj = Py_None;
7482 {
7483 if (temp1)
7484 delete arg1;
7485 }
7486 return resultobj;
7487 fail:
7488 {
7489 if (temp1)
7490 delete arg1;
7491 }
7492 return NULL;
7493 }
7494
7495
7496 static PyObject *_wrap_Log_RemoveTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) {
7497 PyObject *resultobj;
7498 wxString *arg1 = 0 ;
7499 bool temp1 = False ;
7500 PyObject * obj0 = 0 ;
7501 char *kwnames[] = {
7502 (char *) "str", NULL
7503 };
7504
7505 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_RemoveTraceMask",kwnames,&obj0)) goto fail;
7506 {
7507 arg1 = wxString_in_helper(obj0);
7508 if (arg1 == NULL) SWIG_fail;
7509 temp1 = True;
7510 }
7511 {
7512 PyThreadState* __tstate = wxPyBeginAllowThreads();
7513 wxLog::RemoveTraceMask((wxString const &)*arg1);
7514
7515 wxPyEndAllowThreads(__tstate);
7516 if (PyErr_Occurred()) SWIG_fail;
7517 }
7518 Py_INCREF(Py_None); resultobj = Py_None;
7519 {
7520 if (temp1)
7521 delete arg1;
7522 }
7523 return resultobj;
7524 fail:
7525 {
7526 if (temp1)
7527 delete arg1;
7528 }
7529 return NULL;
7530 }
7531
7532
7533 static PyObject *_wrap_Log_ClearTraceMasks(PyObject *self, PyObject *args, PyObject *kwargs) {
7534 PyObject *resultobj;
7535 char *kwnames[] = {
7536 NULL
7537 };
7538
7539 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_ClearTraceMasks",kwnames)) goto fail;
7540 {
7541 PyThreadState* __tstate = wxPyBeginAllowThreads();
7542 wxLog::ClearTraceMasks();
7543
7544 wxPyEndAllowThreads(__tstate);
7545 if (PyErr_Occurred()) SWIG_fail;
7546 }
7547 Py_INCREF(Py_None); resultobj = Py_None;
7548 return resultobj;
7549 fail:
7550 return NULL;
7551 }
7552
7553
7554 static PyObject *_wrap_Log_GetTraceMasks(PyObject *self, PyObject *args, PyObject *kwargs) {
7555 PyObject *resultobj;
7556 wxArrayString *result;
7557 char *kwnames[] = {
7558 NULL
7559 };
7560
7561 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTraceMasks",kwnames)) goto fail;
7562 {
7563 PyThreadState* __tstate = wxPyBeginAllowThreads();
7564 {
7565 wxArrayString const &_result_ref = wxLog::GetTraceMasks();
7566 result = (wxArrayString *) &_result_ref;
7567 }
7568
7569 wxPyEndAllowThreads(__tstate);
7570 if (PyErr_Occurred()) SWIG_fail;
7571 }
7572 {
7573 resultobj = wxArrayString2PyList_helper(*result);
7574 }
7575 return resultobj;
7576 fail:
7577 return NULL;
7578 }
7579
7580
7581 static PyObject *_wrap_Log_SetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) {
7582 PyObject *resultobj;
7583 wxChar *arg1 = (wxChar *) 0 ;
7584 PyObject * obj0 = 0 ;
7585 char *kwnames[] = {
7586 (char *) "ts", NULL
7587 };
7588
7589 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetTimestamp",kwnames,&obj0)) goto fail;
7590 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChar,
7591 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7592 {
7593 PyThreadState* __tstate = wxPyBeginAllowThreads();
7594 wxLog::SetTimestamp((wxChar const *)arg1);
7595
7596 wxPyEndAllowThreads(__tstate);
7597 if (PyErr_Occurred()) SWIG_fail;
7598 }
7599 Py_INCREF(Py_None); resultobj = Py_None;
7600 return resultobj;
7601 fail:
7602 return NULL;
7603 }
7604
7605
7606 static PyObject *_wrap_Log_GetVerbose(PyObject *self, PyObject *args, PyObject *kwargs) {
7607 PyObject *resultobj;
7608 bool result;
7609 char *kwnames[] = {
7610 NULL
7611 };
7612
7613 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetVerbose",kwnames)) goto fail;
7614 {
7615 PyThreadState* __tstate = wxPyBeginAllowThreads();
7616 result = (bool)wxLog::GetVerbose();
7617
7618 wxPyEndAllowThreads(__tstate);
7619 if (PyErr_Occurred()) SWIG_fail;
7620 }
7621 {
7622 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7623 }
7624 return resultobj;
7625 fail:
7626 return NULL;
7627 }
7628
7629
7630 static PyObject *_wrap_Log_GetTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) {
7631 PyObject *resultobj;
7632 wxTraceMask result;
7633 char *kwnames[] = {
7634 NULL
7635 };
7636
7637 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTraceMask",kwnames)) goto fail;
7638 {
7639 PyThreadState* __tstate = wxPyBeginAllowThreads();
7640 result = (wxTraceMask)wxLog::GetTraceMask();
7641
7642 wxPyEndAllowThreads(__tstate);
7643 if (PyErr_Occurred()) SWIG_fail;
7644 }
7645 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
7646 return resultobj;
7647 fail:
7648 return NULL;
7649 }
7650
7651
7652 static PyObject *_wrap_Log_IsAllowedTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) {
7653 PyObject *resultobj;
7654 wxChar *arg1 = (wxChar *) 0 ;
7655 bool result;
7656 PyObject * obj0 = 0 ;
7657 char *kwnames[] = {
7658 (char *) "mask", NULL
7659 };
7660
7661 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_IsAllowedTraceMask",kwnames,&obj0)) goto fail;
7662 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChar,
7663 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7664 {
7665 PyThreadState* __tstate = wxPyBeginAllowThreads();
7666 result = (bool)wxLog::IsAllowedTraceMask((wxChar const *)arg1);
7667
7668 wxPyEndAllowThreads(__tstate);
7669 if (PyErr_Occurred()) SWIG_fail;
7670 }
7671 {
7672 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7673 }
7674 return resultobj;
7675 fail:
7676 return NULL;
7677 }
7678
7679
7680 static PyObject *_wrap_Log_GetLogLevel(PyObject *self, PyObject *args, PyObject *kwargs) {
7681 PyObject *resultobj;
7682 wxLogLevel result;
7683 char *kwnames[] = {
7684 NULL
7685 };
7686
7687 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetLogLevel",kwnames)) goto fail;
7688 {
7689 PyThreadState* __tstate = wxPyBeginAllowThreads();
7690 result = (wxLogLevel)wxLog::GetLogLevel();
7691
7692 wxPyEndAllowThreads(__tstate);
7693 if (PyErr_Occurred()) SWIG_fail;
7694 }
7695 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
7696 return resultobj;
7697 fail:
7698 return NULL;
7699 }
7700
7701
7702 static PyObject *_wrap_Log_GetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) {
7703 PyObject *resultobj;
7704 wxChar *result;
7705 char *kwnames[] = {
7706 NULL
7707 };
7708
7709 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTimestamp",kwnames)) goto fail;
7710 {
7711 PyThreadState* __tstate = wxPyBeginAllowThreads();
7712 result = (wxChar *)wxLog::GetTimestamp();
7713
7714 wxPyEndAllowThreads(__tstate);
7715 if (PyErr_Occurred()) SWIG_fail;
7716 }
7717 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChar, 0);
7718 return resultobj;
7719 fail:
7720 return NULL;
7721 }
7722
7723
7724 static PyObject *_wrap_Log_TimeStamp(PyObject *self, PyObject *args, PyObject *kwargs) {
7725 PyObject *resultobj;
7726 wxString result;
7727 char *kwnames[] = {
7728 NULL
7729 };
7730
7731 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_TimeStamp",kwnames)) goto fail;
7732 {
7733 PyThreadState* __tstate = wxPyBeginAllowThreads();
7734 result = Log_TimeStamp();
7735
7736 wxPyEndAllowThreads(__tstate);
7737 if (PyErr_Occurred()) SWIG_fail;
7738 }
7739 {
7740 #if wxUSE_UNICODE
7741 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7742 #else
7743 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7744 #endif
7745 }
7746 return resultobj;
7747 fail:
7748 return NULL;
7749 }
7750
7751
7752 static PyObject *_wrap_Log_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
7753 PyObject *resultobj;
7754 wxLog *arg1 = (wxLog *) 0 ;
7755 PyObject * obj0 = 0 ;
7756 char *kwnames[] = {
7757 (char *) "self", NULL
7758 };
7759
7760 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_Destroy",kwnames,&obj0)) goto fail;
7761 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog,
7762 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7763 {
7764 PyThreadState* __tstate = wxPyBeginAllowThreads();
7765 wxLog_Destroy(arg1);
7766
7767 wxPyEndAllowThreads(__tstate);
7768 if (PyErr_Occurred()) SWIG_fail;
7769 }
7770 Py_INCREF(Py_None); resultobj = Py_None;
7771 return resultobj;
7772 fail:
7773 return NULL;
7774 }
7775
7776
7777 static PyObject * Log_swigregister(PyObject *self, PyObject *args) {
7778 PyObject *obj;
7779 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7780 SWIG_TypeClientData(SWIGTYPE_p_wxLog, obj);
7781 Py_INCREF(obj);
7782 return Py_BuildValue((char *)"");
7783 }
7784 static PyObject *_wrap_new_LogStderr(PyObject *self, PyObject *args, PyObject *kwargs) {
7785 PyObject *resultobj;
7786 wxLogStderr *result;
7787 char *kwnames[] = {
7788 NULL
7789 };
7790
7791 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogStderr",kwnames)) goto fail;
7792 {
7793 PyThreadState* __tstate = wxPyBeginAllowThreads();
7794 result = (wxLogStderr *)new wxLogStderr();
7795
7796 wxPyEndAllowThreads(__tstate);
7797 if (PyErr_Occurred()) SWIG_fail;
7798 }
7799 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogStderr, 1);
7800 return resultobj;
7801 fail:
7802 return NULL;
7803 }
7804
7805
7806 static PyObject * LogStderr_swigregister(PyObject *self, PyObject *args) {
7807 PyObject *obj;
7808 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7809 SWIG_TypeClientData(SWIGTYPE_p_wxLogStderr, obj);
7810 Py_INCREF(obj);
7811 return Py_BuildValue((char *)"");
7812 }
7813 static PyObject *_wrap_new_LogTextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
7814 PyObject *resultobj;
7815 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
7816 wxLogTextCtrl *result;
7817 PyObject * obj0 = 0 ;
7818 char *kwnames[] = {
7819 (char *) "pTextCtrl", NULL
7820 };
7821
7822 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_LogTextCtrl",kwnames,&obj0)) goto fail;
7823 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
7824 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7825 {
7826 PyThreadState* __tstate = wxPyBeginAllowThreads();
7827 result = (wxLogTextCtrl *)new wxLogTextCtrl(arg1);
7828
7829 wxPyEndAllowThreads(__tstate);
7830 if (PyErr_Occurred()) SWIG_fail;
7831 }
7832 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogTextCtrl, 1);
7833 return resultobj;
7834 fail:
7835 return NULL;
7836 }
7837
7838
7839 static PyObject * LogTextCtrl_swigregister(PyObject *self, PyObject *args) {
7840 PyObject *obj;
7841 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7842 SWIG_TypeClientData(SWIGTYPE_p_wxLogTextCtrl, obj);
7843 Py_INCREF(obj);
7844 return Py_BuildValue((char *)"");
7845 }
7846 static PyObject *_wrap_new_LogGui(PyObject *self, PyObject *args, PyObject *kwargs) {
7847 PyObject *resultobj;
7848 wxLogGui *result;
7849 char *kwnames[] = {
7850 NULL
7851 };
7852
7853 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogGui",kwnames)) goto fail;
7854 {
7855 PyThreadState* __tstate = wxPyBeginAllowThreads();
7856 result = (wxLogGui *)new wxLogGui();
7857
7858 wxPyEndAllowThreads(__tstate);
7859 if (PyErr_Occurred()) SWIG_fail;
7860 }
7861 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogGui, 1);
7862 return resultobj;
7863 fail:
7864 return NULL;
7865 }
7866
7867
7868 static PyObject * LogGui_swigregister(PyObject *self, PyObject *args) {
7869 PyObject *obj;
7870 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7871 SWIG_TypeClientData(SWIGTYPE_p_wxLogGui, obj);
7872 Py_INCREF(obj);
7873 return Py_BuildValue((char *)"");
7874 }
7875 static PyObject *_wrap_new_LogWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
7876 PyObject *resultobj;
7877 wxFrame *arg1 = (wxFrame *) 0 ;
7878 wxString *arg2 = 0 ;
7879 bool arg3 = (bool) True ;
7880 bool arg4 = (bool) True ;
7881 wxLogWindow *result;
7882 bool temp2 = False ;
7883 PyObject * obj0 = 0 ;
7884 PyObject * obj1 = 0 ;
7885 PyObject * obj2 = 0 ;
7886 PyObject * obj3 = 0 ;
7887 char *kwnames[] = {
7888 (char *) "pParent",(char *) "szTitle",(char *) "bShow",(char *) "bPassToOld", NULL
7889 };
7890
7891 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_LogWindow",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
7892 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame,
7893 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7894 {
7895 arg2 = wxString_in_helper(obj1);
7896 if (arg2 == NULL) SWIG_fail;
7897 temp2 = True;
7898 }
7899 if (obj2) {
7900 arg3 = (bool) SWIG_AsBool(obj2);
7901 if (PyErr_Occurred()) SWIG_fail;
7902 }
7903 if (obj3) {
7904 arg4 = (bool) SWIG_AsBool(obj3);
7905 if (PyErr_Occurred()) SWIG_fail;
7906 }
7907 {
7908 PyThreadState* __tstate = wxPyBeginAllowThreads();
7909 result = (wxLogWindow *)new wxLogWindow(arg1,(wxString const &)*arg2,arg3,arg4);
7910
7911 wxPyEndAllowThreads(__tstate);
7912 if (PyErr_Occurred()) SWIG_fail;
7913 }
7914 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogWindow, 1);
7915 {
7916 if (temp2)
7917 delete arg2;
7918 }
7919 return resultobj;
7920 fail:
7921 {
7922 if (temp2)
7923 delete arg2;
7924 }
7925 return NULL;
7926 }
7927
7928
7929 static PyObject *_wrap_LogWindow_Show(PyObject *self, PyObject *args, PyObject *kwargs) {
7930 PyObject *resultobj;
7931 wxLogWindow *arg1 = (wxLogWindow *) 0 ;
7932 bool arg2 = (bool) True ;
7933 PyObject * obj0 = 0 ;
7934 PyObject * obj1 = 0 ;
7935 char *kwnames[] = {
7936 (char *) "self",(char *) "bShow", NULL
7937 };
7938
7939 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:LogWindow_Show",kwnames,&obj0,&obj1)) goto fail;
7940 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow,
7941 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7942 if (obj1) {
7943 arg2 = (bool) SWIG_AsBool(obj1);
7944 if (PyErr_Occurred()) SWIG_fail;
7945 }
7946 {
7947 PyThreadState* __tstate = wxPyBeginAllowThreads();
7948 (arg1)->Show(arg2);
7949
7950 wxPyEndAllowThreads(__tstate);
7951 if (PyErr_Occurred()) SWIG_fail;
7952 }
7953 Py_INCREF(Py_None); resultobj = Py_None;
7954 return resultobj;
7955 fail:
7956 return NULL;
7957 }
7958
7959
7960 static PyObject *_wrap_LogWindow_GetFrame(PyObject *self, PyObject *args, PyObject *kwargs) {
7961 PyObject *resultobj;
7962 wxLogWindow *arg1 = (wxLogWindow *) 0 ;
7963 wxFrame *result;
7964 PyObject * obj0 = 0 ;
7965 char *kwnames[] = {
7966 (char *) "self", NULL
7967 };
7968
7969 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_GetFrame",kwnames,&obj0)) goto fail;
7970 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow,
7971 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7972 {
7973 PyThreadState* __tstate = wxPyBeginAllowThreads();
7974 result = (wxFrame *)((wxLogWindow const *)arg1)->GetFrame();
7975
7976 wxPyEndAllowThreads(__tstate);
7977 if (PyErr_Occurred()) SWIG_fail;
7978 }
7979 {
7980 resultobj = wxPyMake_wxObject(result, 0);
7981 }
7982 return resultobj;
7983 fail:
7984 return NULL;
7985 }
7986
7987
7988 static PyObject *_wrap_LogWindow_GetOldLog(PyObject *self, PyObject *args, PyObject *kwargs) {
7989 PyObject *resultobj;
7990 wxLogWindow *arg1 = (wxLogWindow *) 0 ;
7991 wxLog *result;
7992 PyObject * obj0 = 0 ;
7993 char *kwnames[] = {
7994 (char *) "self", NULL
7995 };
7996
7997 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_GetOldLog",kwnames,&obj0)) goto fail;
7998 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow,
7999 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8000 {
8001 PyThreadState* __tstate = wxPyBeginAllowThreads();
8002 result = (wxLog *)((wxLogWindow const *)arg1)->GetOldLog();
8003
8004 wxPyEndAllowThreads(__tstate);
8005 if (PyErr_Occurred()) SWIG_fail;
8006 }
8007 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0);
8008 return resultobj;
8009 fail:
8010 return NULL;
8011 }
8012
8013
8014 static PyObject *_wrap_LogWindow_IsPassingMessages(PyObject *self, PyObject *args, PyObject *kwargs) {
8015 PyObject *resultobj;
8016 wxLogWindow *arg1 = (wxLogWindow *) 0 ;
8017 bool result;
8018 PyObject * obj0 = 0 ;
8019 char *kwnames[] = {
8020 (char *) "self", NULL
8021 };
8022
8023 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_IsPassingMessages",kwnames,&obj0)) goto fail;
8024 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow,
8025 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8026 {
8027 PyThreadState* __tstate = wxPyBeginAllowThreads();
8028 result = (bool)((wxLogWindow const *)arg1)->IsPassingMessages();
8029
8030 wxPyEndAllowThreads(__tstate);
8031 if (PyErr_Occurred()) SWIG_fail;
8032 }
8033 {
8034 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8035 }
8036 return resultobj;
8037 fail:
8038 return NULL;
8039 }
8040
8041
8042 static PyObject *_wrap_LogWindow_PassMessages(PyObject *self, PyObject *args, PyObject *kwargs) {
8043 PyObject *resultobj;
8044 wxLogWindow *arg1 = (wxLogWindow *) 0 ;
8045 bool arg2 ;
8046 PyObject * obj0 = 0 ;
8047 PyObject * obj1 = 0 ;
8048 char *kwnames[] = {
8049 (char *) "self",(char *) "bDoPass", NULL
8050 };
8051
8052 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogWindow_PassMessages",kwnames,&obj0,&obj1)) goto fail;
8053 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow,
8054 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8055 arg2 = (bool) SWIG_AsBool(obj1);
8056 if (PyErr_Occurred()) SWIG_fail;
8057 {
8058 PyThreadState* __tstate = wxPyBeginAllowThreads();
8059 (arg1)->PassMessages(arg2);
8060
8061 wxPyEndAllowThreads(__tstate);
8062 if (PyErr_Occurred()) SWIG_fail;
8063 }
8064 Py_INCREF(Py_None); resultobj = Py_None;
8065 return resultobj;
8066 fail:
8067 return NULL;
8068 }
8069
8070
8071 static PyObject * LogWindow_swigregister(PyObject *self, PyObject *args) {
8072 PyObject *obj;
8073 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8074 SWIG_TypeClientData(SWIGTYPE_p_wxLogWindow, obj);
8075 Py_INCREF(obj);
8076 return Py_BuildValue((char *)"");
8077 }
8078 static PyObject *_wrap_new_LogChain(PyObject *self, PyObject *args, PyObject *kwargs) {
8079 PyObject *resultobj;
8080 wxLog *arg1 = (wxLog *) 0 ;
8081 wxLogChain *result;
8082 PyObject * obj0 = 0 ;
8083 char *kwnames[] = {
8084 (char *) "logger", NULL
8085 };
8086
8087 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_LogChain",kwnames,&obj0)) goto fail;
8088 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog,
8089 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8090 {
8091 PyThreadState* __tstate = wxPyBeginAllowThreads();
8092 result = (wxLogChain *)new wxLogChain(arg1);
8093
8094 wxPyEndAllowThreads(__tstate);
8095 if (PyErr_Occurred()) SWIG_fail;
8096 }
8097 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogChain, 1);
8098 return resultobj;
8099 fail:
8100 return NULL;
8101 }
8102
8103
8104 static PyObject *_wrap_LogChain_SetLog(PyObject *self, PyObject *args, PyObject *kwargs) {
8105 PyObject *resultobj;
8106 wxLogChain *arg1 = (wxLogChain *) 0 ;
8107 wxLog *arg2 = (wxLog *) 0 ;
8108 PyObject * obj0 = 0 ;
8109 PyObject * obj1 = 0 ;
8110 char *kwnames[] = {
8111 (char *) "self",(char *) "logger", NULL
8112 };
8113
8114 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogChain_SetLog",kwnames,&obj0,&obj1)) goto fail;
8115 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain,
8116 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8117 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxLog,
8118 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8119 {
8120 PyThreadState* __tstate = wxPyBeginAllowThreads();
8121 (arg1)->SetLog(arg2);
8122
8123 wxPyEndAllowThreads(__tstate);
8124 if (PyErr_Occurred()) SWIG_fail;
8125 }
8126 Py_INCREF(Py_None); resultobj = Py_None;
8127 return resultobj;
8128 fail:
8129 return NULL;
8130 }
8131
8132
8133 static PyObject *_wrap_LogChain_PassMessages(PyObject *self, PyObject *args, PyObject *kwargs) {
8134 PyObject *resultobj;
8135 wxLogChain *arg1 = (wxLogChain *) 0 ;
8136 bool arg2 ;
8137 PyObject * obj0 = 0 ;
8138 PyObject * obj1 = 0 ;
8139 char *kwnames[] = {
8140 (char *) "self",(char *) "bDoPass", NULL
8141 };
8142
8143 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogChain_PassMessages",kwnames,&obj0,&obj1)) goto fail;
8144 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain,
8145 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8146 arg2 = (bool) SWIG_AsBool(obj1);
8147 if (PyErr_Occurred()) SWIG_fail;
8148 {
8149 PyThreadState* __tstate = wxPyBeginAllowThreads();
8150 (arg1)->PassMessages(arg2);
8151
8152 wxPyEndAllowThreads(__tstate);
8153 if (PyErr_Occurred()) SWIG_fail;
8154 }
8155 Py_INCREF(Py_None); resultobj = Py_None;
8156 return resultobj;
8157 fail:
8158 return NULL;
8159 }
8160
8161
8162 static PyObject *_wrap_LogChain_IsPassingMessages(PyObject *self, PyObject *args, PyObject *kwargs) {
8163 PyObject *resultobj;
8164 wxLogChain *arg1 = (wxLogChain *) 0 ;
8165 bool result;
8166 PyObject * obj0 = 0 ;
8167 char *kwnames[] = {
8168 (char *) "self", NULL
8169 };
8170
8171 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogChain_IsPassingMessages",kwnames,&obj0)) goto fail;
8172 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain,
8173 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8174 {
8175 PyThreadState* __tstate = wxPyBeginAllowThreads();
8176 result = (bool)(arg1)->IsPassingMessages();
8177
8178 wxPyEndAllowThreads(__tstate);
8179 if (PyErr_Occurred()) SWIG_fail;
8180 }
8181 {
8182 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8183 }
8184 return resultobj;
8185 fail:
8186 return NULL;
8187 }
8188
8189
8190 static PyObject *_wrap_LogChain_GetOldLog(PyObject *self, PyObject *args, PyObject *kwargs) {
8191 PyObject *resultobj;
8192 wxLogChain *arg1 = (wxLogChain *) 0 ;
8193 wxLog *result;
8194 PyObject * obj0 = 0 ;
8195 char *kwnames[] = {
8196 (char *) "self", NULL
8197 };
8198
8199 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogChain_GetOldLog",kwnames,&obj0)) goto fail;
8200 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain,
8201 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8202 {
8203 PyThreadState* __tstate = wxPyBeginAllowThreads();
8204 result = (wxLog *)(arg1)->GetOldLog();
8205
8206 wxPyEndAllowThreads(__tstate);
8207 if (PyErr_Occurred()) SWIG_fail;
8208 }
8209 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0);
8210 return resultobj;
8211 fail:
8212 return NULL;
8213 }
8214
8215
8216 static PyObject * LogChain_swigregister(PyObject *self, PyObject *args) {
8217 PyObject *obj;
8218 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8219 SWIG_TypeClientData(SWIGTYPE_p_wxLogChain, obj);
8220 Py_INCREF(obj);
8221 return Py_BuildValue((char *)"");
8222 }
8223 static PyObject *_wrap_SysErrorCode(PyObject *self, PyObject *args, PyObject *kwargs) {
8224 PyObject *resultobj;
8225 unsigned long result;
8226 char *kwnames[] = {
8227 NULL
8228 };
8229
8230 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":SysErrorCode",kwnames)) goto fail;
8231 {
8232 PyThreadState* __tstate = wxPyBeginAllowThreads();
8233 result = (unsigned long)wxSysErrorCode();
8234
8235 wxPyEndAllowThreads(__tstate);
8236 if (PyErr_Occurred()) SWIG_fail;
8237 }
8238 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
8239 return resultobj;
8240 fail:
8241 return NULL;
8242 }
8243
8244
8245 static PyObject *_wrap_SysErrorMsg(PyObject *self, PyObject *args, PyObject *kwargs) {
8246 PyObject *resultobj;
8247 unsigned long arg1 = (unsigned long) 0 ;
8248 wxString result;
8249 PyObject * obj0 = 0 ;
8250 char *kwnames[] = {
8251 (char *) "nErrCode", NULL
8252 };
8253
8254 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SysErrorMsg",kwnames,&obj0)) goto fail;
8255 if (obj0) {
8256 arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0);
8257 if (PyErr_Occurred()) SWIG_fail;
8258 }
8259 {
8260 PyThreadState* __tstate = wxPyBeginAllowThreads();
8261 result = wxSysErrorMsg(arg1);
8262
8263 wxPyEndAllowThreads(__tstate);
8264 if (PyErr_Occurred()) SWIG_fail;
8265 }
8266 {
8267 #if wxUSE_UNICODE
8268 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8269 #else
8270 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8271 #endif
8272 }
8273 return resultobj;
8274 fail:
8275 return NULL;
8276 }
8277
8278
8279 static PyObject *_wrap_LogFatalError(PyObject *self, PyObject *args, PyObject *kwargs) {
8280 PyObject *resultobj;
8281 wxString *arg1 = 0 ;
8282 bool temp1 = False ;
8283 PyObject * obj0 = 0 ;
8284 char *kwnames[] = {
8285 (char *) "msg", NULL
8286 };
8287
8288 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogFatalError",kwnames,&obj0)) goto fail;
8289 {
8290 arg1 = wxString_in_helper(obj0);
8291 if (arg1 == NULL) SWIG_fail;
8292 temp1 = True;
8293 }
8294 {
8295 PyThreadState* __tstate = wxPyBeginAllowThreads();
8296 wxLogFatalError((wxString const &)*arg1);
8297
8298 wxPyEndAllowThreads(__tstate);
8299 if (PyErr_Occurred()) SWIG_fail;
8300 }
8301 Py_INCREF(Py_None); resultobj = Py_None;
8302 {
8303 if (temp1)
8304 delete arg1;
8305 }
8306 return resultobj;
8307 fail:
8308 {
8309 if (temp1)
8310 delete arg1;
8311 }
8312 return NULL;
8313 }
8314
8315
8316 static PyObject *_wrap_LogError(PyObject *self, PyObject *args, PyObject *kwargs) {
8317 PyObject *resultobj;
8318 wxString *arg1 = 0 ;
8319 bool temp1 = False ;
8320 PyObject * obj0 = 0 ;
8321 char *kwnames[] = {
8322 (char *) "msg", NULL
8323 };
8324
8325 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogError",kwnames,&obj0)) goto fail;
8326 {
8327 arg1 = wxString_in_helper(obj0);
8328 if (arg1 == NULL) SWIG_fail;
8329 temp1 = True;
8330 }
8331 {
8332 PyThreadState* __tstate = wxPyBeginAllowThreads();
8333 wxLogError((wxString const &)*arg1);
8334
8335 wxPyEndAllowThreads(__tstate);
8336 if (PyErr_Occurred()) SWIG_fail;
8337 }
8338 Py_INCREF(Py_None); resultobj = Py_None;
8339 {
8340 if (temp1)
8341 delete arg1;
8342 }
8343 return resultobj;
8344 fail:
8345 {
8346 if (temp1)
8347 delete arg1;
8348 }
8349 return NULL;
8350 }
8351
8352
8353 static PyObject *_wrap_LogWarning(PyObject *self, PyObject *args, PyObject *kwargs) {
8354 PyObject *resultobj;
8355 wxString *arg1 = 0 ;
8356 bool temp1 = False ;
8357 PyObject * obj0 = 0 ;
8358 char *kwnames[] = {
8359 (char *) "msg", NULL
8360 };
8361
8362 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWarning",kwnames,&obj0)) goto fail;
8363 {
8364 arg1 = wxString_in_helper(obj0);
8365 if (arg1 == NULL) SWIG_fail;
8366 temp1 = True;
8367 }
8368 {
8369 PyThreadState* __tstate = wxPyBeginAllowThreads();
8370 wxLogWarning((wxString const &)*arg1);
8371
8372 wxPyEndAllowThreads(__tstate);
8373 if (PyErr_Occurred()) SWIG_fail;
8374 }
8375 Py_INCREF(Py_None); resultobj = Py_None;
8376 {
8377 if (temp1)
8378 delete arg1;
8379 }
8380 return resultobj;
8381 fail:
8382 {
8383 if (temp1)
8384 delete arg1;
8385 }
8386 return NULL;
8387 }
8388
8389
8390 static PyObject *_wrap_LogMessage(PyObject *self, PyObject *args, PyObject *kwargs) {
8391 PyObject *resultobj;
8392 wxString *arg1 = 0 ;
8393 bool temp1 = False ;
8394 PyObject * obj0 = 0 ;
8395 char *kwnames[] = {
8396 (char *) "msg", NULL
8397 };
8398
8399 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogMessage",kwnames,&obj0)) goto fail;
8400 {
8401 arg1 = wxString_in_helper(obj0);
8402 if (arg1 == NULL) SWIG_fail;
8403 temp1 = True;
8404 }
8405 {
8406 PyThreadState* __tstate = wxPyBeginAllowThreads();
8407 wxLogMessage((wxString const &)*arg1);
8408
8409 wxPyEndAllowThreads(__tstate);
8410 if (PyErr_Occurred()) SWIG_fail;
8411 }
8412 Py_INCREF(Py_None); resultobj = Py_None;
8413 {
8414 if (temp1)
8415 delete arg1;
8416 }
8417 return resultobj;
8418 fail:
8419 {
8420 if (temp1)
8421 delete arg1;
8422 }
8423 return NULL;
8424 }
8425
8426
8427 static PyObject *_wrap_LogInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8428 PyObject *resultobj;
8429 wxString *arg1 = 0 ;
8430 bool temp1 = False ;
8431 PyObject * obj0 = 0 ;
8432 char *kwnames[] = {
8433 (char *) "msg", NULL
8434 };
8435
8436 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogInfo",kwnames,&obj0)) goto fail;
8437 {
8438 arg1 = wxString_in_helper(obj0);
8439 if (arg1 == NULL) SWIG_fail;
8440 temp1 = True;
8441 }
8442 {
8443 PyThreadState* __tstate = wxPyBeginAllowThreads();
8444 wxLogInfo((wxString const &)*arg1);
8445
8446 wxPyEndAllowThreads(__tstate);
8447 if (PyErr_Occurred()) SWIG_fail;
8448 }
8449 Py_INCREF(Py_None); resultobj = Py_None;
8450 {
8451 if (temp1)
8452 delete arg1;
8453 }
8454 return resultobj;
8455 fail:
8456 {
8457 if (temp1)
8458 delete arg1;
8459 }
8460 return NULL;
8461 }
8462
8463
8464 static PyObject *_wrap_LogDebug(PyObject *self, PyObject *args, PyObject *kwargs) {
8465 PyObject *resultobj;
8466 wxString *arg1 = 0 ;
8467 bool temp1 = False ;
8468 PyObject * obj0 = 0 ;
8469 char *kwnames[] = {
8470 (char *) "msg", NULL
8471 };
8472
8473 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogDebug",kwnames,&obj0)) goto fail;
8474 {
8475 arg1 = wxString_in_helper(obj0);
8476 if (arg1 == NULL) SWIG_fail;
8477 temp1 = True;
8478 }
8479 {
8480 PyThreadState* __tstate = wxPyBeginAllowThreads();
8481 wxLogDebug((wxString const &)*arg1);
8482
8483 wxPyEndAllowThreads(__tstate);
8484 if (PyErr_Occurred()) SWIG_fail;
8485 }
8486 Py_INCREF(Py_None); resultobj = Py_None;
8487 {
8488 if (temp1)
8489 delete arg1;
8490 }
8491 return resultobj;
8492 fail:
8493 {
8494 if (temp1)
8495 delete arg1;
8496 }
8497 return NULL;
8498 }
8499
8500
8501 static PyObject *_wrap_LogVerbose(PyObject *self, PyObject *args, PyObject *kwargs) {
8502 PyObject *resultobj;
8503 wxString *arg1 = 0 ;
8504 bool temp1 = False ;
8505 PyObject * obj0 = 0 ;
8506 char *kwnames[] = {
8507 (char *) "msg", NULL
8508 };
8509
8510 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogVerbose",kwnames,&obj0)) goto fail;
8511 {
8512 arg1 = wxString_in_helper(obj0);
8513 if (arg1 == NULL) SWIG_fail;
8514 temp1 = True;
8515 }
8516 {
8517 PyThreadState* __tstate = wxPyBeginAllowThreads();
8518 wxLogVerbose((wxString const &)*arg1);
8519
8520 wxPyEndAllowThreads(__tstate);
8521 if (PyErr_Occurred()) SWIG_fail;
8522 }
8523 Py_INCREF(Py_None); resultobj = Py_None;
8524 {
8525 if (temp1)
8526 delete arg1;
8527 }
8528 return resultobj;
8529 fail:
8530 {
8531 if (temp1)
8532 delete arg1;
8533 }
8534 return NULL;
8535 }
8536
8537
8538 static PyObject *_wrap_LogStatus(PyObject *self, PyObject *args, PyObject *kwargs) {
8539 PyObject *resultobj;
8540 wxString *arg1 = 0 ;
8541 bool temp1 = False ;
8542 PyObject * obj0 = 0 ;
8543 char *kwnames[] = {
8544 (char *) "msg", NULL
8545 };
8546
8547 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogStatus",kwnames,&obj0)) goto fail;
8548 {
8549 arg1 = wxString_in_helper(obj0);
8550 if (arg1 == NULL) SWIG_fail;
8551 temp1 = True;
8552 }
8553 {
8554 PyThreadState* __tstate = wxPyBeginAllowThreads();
8555 wxLogStatus((wxString const &)*arg1);
8556
8557 wxPyEndAllowThreads(__tstate);
8558 if (PyErr_Occurred()) SWIG_fail;
8559 }
8560 Py_INCREF(Py_None); resultobj = Py_None;
8561 {
8562 if (temp1)
8563 delete arg1;
8564 }
8565 return resultobj;
8566 fail:
8567 {
8568 if (temp1)
8569 delete arg1;
8570 }
8571 return NULL;
8572 }
8573
8574
8575 static PyObject *_wrap_LogStatusFrame(PyObject *self, PyObject *args, PyObject *kwargs) {
8576 PyObject *resultobj;
8577 wxFrame *arg1 = (wxFrame *) 0 ;
8578 wxString *arg2 = 0 ;
8579 bool temp2 = False ;
8580 PyObject * obj0 = 0 ;
8581 PyObject * obj1 = 0 ;
8582 char *kwnames[] = {
8583 (char *) "pFrame",(char *) "msg", NULL
8584 };
8585
8586 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogStatusFrame",kwnames,&obj0,&obj1)) goto fail;
8587 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame,
8588 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8589 {
8590 arg2 = wxString_in_helper(obj1);
8591 if (arg2 == NULL) SWIG_fail;
8592 temp2 = True;
8593 }
8594 {
8595 PyThreadState* __tstate = wxPyBeginAllowThreads();
8596 wxLogStatus(arg1,(wxString const &)*arg2);
8597
8598 wxPyEndAllowThreads(__tstate);
8599 if (PyErr_Occurred()) SWIG_fail;
8600 }
8601 Py_INCREF(Py_None); resultobj = Py_None;
8602 {
8603 if (temp2)
8604 delete arg2;
8605 }
8606 return resultobj;
8607 fail:
8608 {
8609 if (temp2)
8610 delete arg2;
8611 }
8612 return NULL;
8613 }
8614
8615
8616 static PyObject *_wrap_LogSysError(PyObject *self, PyObject *args, PyObject *kwargs) {
8617 PyObject *resultobj;
8618 wxString *arg1 = 0 ;
8619 bool temp1 = False ;
8620 PyObject * obj0 = 0 ;
8621 char *kwnames[] = {
8622 (char *) "msg", NULL
8623 };
8624
8625 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogSysError",kwnames,&obj0)) goto fail;
8626 {
8627 arg1 = wxString_in_helper(obj0);
8628 if (arg1 == NULL) SWIG_fail;
8629 temp1 = True;
8630 }
8631 {
8632 PyThreadState* __tstate = wxPyBeginAllowThreads();
8633 wxLogSysError((wxString const &)*arg1);
8634
8635 wxPyEndAllowThreads(__tstate);
8636 if (PyErr_Occurred()) SWIG_fail;
8637 }
8638 Py_INCREF(Py_None); resultobj = Py_None;
8639 {
8640 if (temp1)
8641 delete arg1;
8642 }
8643 return resultobj;
8644 fail:
8645 {
8646 if (temp1)
8647 delete arg1;
8648 }
8649 return NULL;
8650 }
8651
8652
8653 static PyObject *_wrap_LogTrace__SWIG_0(PyObject *self, PyObject *args) {
8654 PyObject *resultobj;
8655 unsigned long arg1 ;
8656 wxString *arg2 = 0 ;
8657 bool temp2 = False ;
8658 PyObject * obj0 = 0 ;
8659 PyObject * obj1 = 0 ;
8660
8661 if(!PyArg_ParseTuple(args,(char *)"OO:LogTrace",&obj0,&obj1)) goto fail;
8662 arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0);
8663 if (PyErr_Occurred()) SWIG_fail;
8664 {
8665 arg2 = wxString_in_helper(obj1);
8666 if (arg2 == NULL) SWIG_fail;
8667 temp2 = True;
8668 }
8669 {
8670 PyThreadState* __tstate = wxPyBeginAllowThreads();
8671 wxLogTrace(arg1,(wxString const &)*arg2);
8672
8673 wxPyEndAllowThreads(__tstate);
8674 if (PyErr_Occurred()) SWIG_fail;
8675 }
8676 Py_INCREF(Py_None); resultobj = Py_None;
8677 {
8678 if (temp2)
8679 delete arg2;
8680 }
8681 return resultobj;
8682 fail:
8683 {
8684 if (temp2)
8685 delete arg2;
8686 }
8687 return NULL;
8688 }
8689
8690
8691 static PyObject *_wrap_LogTrace__SWIG_1(PyObject *self, PyObject *args) {
8692 PyObject *resultobj;
8693 wxString *arg1 = 0 ;
8694 wxString *arg2 = 0 ;
8695 bool temp1 = False ;
8696 bool temp2 = False ;
8697 PyObject * obj0 = 0 ;
8698 PyObject * obj1 = 0 ;
8699
8700 if(!PyArg_ParseTuple(args,(char *)"OO:LogTrace",&obj0,&obj1)) goto fail;
8701 {
8702 arg1 = wxString_in_helper(obj0);
8703 if (arg1 == NULL) SWIG_fail;
8704 temp1 = True;
8705 }
8706 {
8707 arg2 = wxString_in_helper(obj1);
8708 if (arg2 == NULL) SWIG_fail;
8709 temp2 = True;
8710 }
8711 {
8712 PyThreadState* __tstate = wxPyBeginAllowThreads();
8713 wxLogTrace((wxString const &)*arg1,(wxString const &)*arg2);
8714
8715 wxPyEndAllowThreads(__tstate);
8716 if (PyErr_Occurred()) SWIG_fail;
8717 }
8718 Py_INCREF(Py_None); resultobj = Py_None;
8719 {
8720 if (temp1)
8721 delete arg1;
8722 }
8723 {
8724 if (temp2)
8725 delete arg2;
8726 }
8727 return resultobj;
8728 fail:
8729 {
8730 if (temp1)
8731 delete arg1;
8732 }
8733 {
8734 if (temp2)
8735 delete arg2;
8736 }
8737 return NULL;
8738 }
8739
8740
8741 static PyObject *_wrap_LogTrace(PyObject *self, PyObject *args) {
8742 int argc;
8743 PyObject *argv[3];
8744 int ii;
8745
8746 argc = PyObject_Length(args);
8747 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
8748 argv[ii] = PyTuple_GetItem(args,ii);
8749 }
8750 if (argc == 2) {
8751 int _v;
8752 {
8753 _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]);
8754 }
8755 if (_v) {
8756 {
8757 _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]);
8758 }
8759 if (_v) {
8760 return _wrap_LogTrace__SWIG_1(self,args);
8761 }
8762 }
8763 }
8764 if (argc == 2) {
8765 int _v;
8766 _v = SWIG_CheckUnsignedLong(argv[0]);
8767 if (_v) {
8768 {
8769 _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]);
8770 }
8771 if (_v) {
8772 return _wrap_LogTrace__SWIG_0(self,args);
8773 }
8774 }
8775 }
8776
8777 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'LogTrace'");
8778 return NULL;
8779 }
8780
8781
8782 static PyObject *_wrap_LogGeneric(PyObject *self, PyObject *args, PyObject *kwargs) {
8783 PyObject *resultobj;
8784 unsigned long arg1 ;
8785 wxString *arg2 = 0 ;
8786 bool temp2 = False ;
8787 PyObject * obj0 = 0 ;
8788 PyObject * obj1 = 0 ;
8789 char *kwnames[] = {
8790 (char *) "level",(char *) "msg", NULL
8791 };
8792
8793 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogGeneric",kwnames,&obj0,&obj1)) goto fail;
8794 arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0);
8795 if (PyErr_Occurred()) SWIG_fail;
8796 {
8797 arg2 = wxString_in_helper(obj1);
8798 if (arg2 == NULL) SWIG_fail;
8799 temp2 = True;
8800 }
8801 {
8802 PyThreadState* __tstate = wxPyBeginAllowThreads();
8803 wxLogGeneric(arg1,(wxString const &)*arg2);
8804
8805 wxPyEndAllowThreads(__tstate);
8806 if (PyErr_Occurred()) SWIG_fail;
8807 }
8808 Py_INCREF(Py_None); resultobj = Py_None;
8809 {
8810 if (temp2)
8811 delete arg2;
8812 }
8813 return resultobj;
8814 fail:
8815 {
8816 if (temp2)
8817 delete arg2;
8818 }
8819 return NULL;
8820 }
8821
8822
8823 static PyObject *_wrap_SafeShowMessage(PyObject *self, PyObject *args, PyObject *kwargs) {
8824 PyObject *resultobj;
8825 wxString *arg1 = 0 ;
8826 wxString *arg2 = 0 ;
8827 bool temp1 = False ;
8828 bool temp2 = False ;
8829 PyObject * obj0 = 0 ;
8830 PyObject * obj1 = 0 ;
8831 char *kwnames[] = {
8832 (char *) "title",(char *) "text", NULL
8833 };
8834
8835 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SafeShowMessage",kwnames,&obj0,&obj1)) goto fail;
8836 {
8837 arg1 = wxString_in_helper(obj0);
8838 if (arg1 == NULL) SWIG_fail;
8839 temp1 = True;
8840 }
8841 {
8842 arg2 = wxString_in_helper(obj1);
8843 if (arg2 == NULL) SWIG_fail;
8844 temp2 = True;
8845 }
8846 {
8847 PyThreadState* __tstate = wxPyBeginAllowThreads();
8848 wxSafeShowMessage((wxString const &)*arg1,(wxString const &)*arg2);
8849
8850 wxPyEndAllowThreads(__tstate);
8851 if (PyErr_Occurred()) SWIG_fail;
8852 }
8853 Py_INCREF(Py_None); resultobj = Py_None;
8854 {
8855 if (temp1)
8856 delete arg1;
8857 }
8858 {
8859 if (temp2)
8860 delete arg2;
8861 }
8862 return resultobj;
8863 fail:
8864 {
8865 if (temp1)
8866 delete arg1;
8867 }
8868 {
8869 if (temp2)
8870 delete arg2;
8871 }
8872 return NULL;
8873 }
8874
8875
8876 static PyObject *_wrap_new_LogNull(PyObject *self, PyObject *args, PyObject *kwargs) {
8877 PyObject *resultobj;
8878 wxLogNull *result;
8879 char *kwnames[] = {
8880 NULL
8881 };
8882
8883 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogNull",kwnames)) goto fail;
8884 {
8885 PyThreadState* __tstate = wxPyBeginAllowThreads();
8886 result = (wxLogNull *)new wxLogNull();
8887
8888 wxPyEndAllowThreads(__tstate);
8889 if (PyErr_Occurred()) SWIG_fail;
8890 }
8891 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogNull, 1);
8892 return resultobj;
8893 fail:
8894 return NULL;
8895 }
8896
8897
8898 static PyObject *_wrap_delete_LogNull(PyObject *self, PyObject *args, PyObject *kwargs) {
8899 PyObject *resultobj;
8900 wxLogNull *arg1 = (wxLogNull *) 0 ;
8901 PyObject * obj0 = 0 ;
8902 char *kwnames[] = {
8903 (char *) "self", NULL
8904 };
8905
8906 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_LogNull",kwnames,&obj0)) goto fail;
8907 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogNull,
8908 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8909 {
8910 PyThreadState* __tstate = wxPyBeginAllowThreads();
8911 delete arg1;
8912
8913 wxPyEndAllowThreads(__tstate);
8914 if (PyErr_Occurred()) SWIG_fail;
8915 }
8916 Py_INCREF(Py_None); resultobj = Py_None;
8917 return resultobj;
8918 fail:
8919 return NULL;
8920 }
8921
8922
8923 static PyObject * LogNull_swigregister(PyObject *self, PyObject *args) {
8924 PyObject *obj;
8925 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8926 SWIG_TypeClientData(SWIGTYPE_p_wxLogNull, obj);
8927 Py_INCREF(obj);
8928 return Py_BuildValue((char *)"");
8929 }
8930 static PyObject *_wrap_new_PyLog(PyObject *self, PyObject *args, PyObject *kwargs) {
8931 PyObject *resultobj;
8932 wxPyLog *result;
8933 char *kwnames[] = {
8934 NULL
8935 };
8936
8937 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyLog",kwnames)) goto fail;
8938 {
8939 PyThreadState* __tstate = wxPyBeginAllowThreads();
8940 result = (wxPyLog *)new wxPyLog();
8941
8942 wxPyEndAllowThreads(__tstate);
8943 if (PyErr_Occurred()) SWIG_fail;
8944 }
8945 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyLog, 1);
8946 return resultobj;
8947 fail:
8948 return NULL;
8949 }
8950
8951
8952 static PyObject *_wrap_PyLog__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8953 PyObject *resultobj;
8954 wxPyLog *arg1 = (wxPyLog *) 0 ;
8955 PyObject *arg2 = (PyObject *) 0 ;
8956 PyObject *arg3 = (PyObject *) 0 ;
8957 PyObject * obj0 = 0 ;
8958 PyObject * obj1 = 0 ;
8959 PyObject * obj2 = 0 ;
8960 char *kwnames[] = {
8961 (char *) "self",(char *) "self",(char *) "_class", NULL
8962 };
8963
8964 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLog__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
8965 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLog,
8966 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8967 arg2 = obj1;
8968 arg3 = obj2;
8969 {
8970 PyThreadState* __tstate = wxPyBeginAllowThreads();
8971 (arg1)->_setCallbackInfo(arg2,arg3);
8972
8973 wxPyEndAllowThreads(__tstate);
8974 if (PyErr_Occurred()) SWIG_fail;
8975 }
8976 Py_INCREF(Py_None); resultobj = Py_None;
8977 return resultobj;
8978 fail:
8979 return NULL;
8980 }
8981
8982
8983 static PyObject * PyLog_swigregister(PyObject *self, PyObject *args) {
8984 PyObject *obj;
8985 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8986 SWIG_TypeClientData(SWIGTYPE_p_wxPyLog, obj);
8987 Py_INCREF(obj);
8988 return Py_BuildValue((char *)"");
8989 }
8990 static PyObject *_wrap_Process_Kill(PyObject *self, PyObject *args, PyObject *kwargs) {
8991 PyObject *resultobj;
8992 int arg1 ;
8993 int arg2 = (int) wxSIGTERM ;
8994 int result;
8995 PyObject * obj0 = 0 ;
8996 PyObject * obj1 = 0 ;
8997 char *kwnames[] = {
8998 (char *) "pid",(char *) "sig", NULL
8999 };
9000
9001 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Process_Kill",kwnames,&obj0,&obj1)) goto fail;
9002 arg1 = (int) SWIG_AsInt(obj0);
9003 if (PyErr_Occurred()) SWIG_fail;
9004 if (obj1) {
9005 arg2 = (wxSignal) SWIG_AsInt(obj1);
9006 if (PyErr_Occurred()) SWIG_fail;
9007 }
9008 {
9009 PyThreadState* __tstate = wxPyBeginAllowThreads();
9010 result = (int)wxPyProcess::Kill(arg1,(wxSignal )arg2);
9011
9012 wxPyEndAllowThreads(__tstate);
9013 if (PyErr_Occurred()) SWIG_fail;
9014 }
9015 resultobj = SWIG_FromInt((int)result);
9016 return resultobj;
9017 fail:
9018 return NULL;
9019 }
9020
9021
9022 static PyObject *_wrap_Process_Exists(PyObject *self, PyObject *args, PyObject *kwargs) {
9023 PyObject *resultobj;
9024 int arg1 ;
9025 bool result;
9026 PyObject * obj0 = 0 ;
9027 char *kwnames[] = {
9028 (char *) "pid", NULL
9029 };
9030
9031 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Exists",kwnames,&obj0)) goto fail;
9032 arg1 = (int) SWIG_AsInt(obj0);
9033 if (PyErr_Occurred()) SWIG_fail;
9034 {
9035 PyThreadState* __tstate = wxPyBeginAllowThreads();
9036 result = (bool)wxPyProcess::Exists(arg1);
9037
9038 wxPyEndAllowThreads(__tstate);
9039 if (PyErr_Occurred()) SWIG_fail;
9040 }
9041 {
9042 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9043 }
9044 return resultobj;
9045 fail:
9046 return NULL;
9047 }
9048
9049
9050 static PyObject *_wrap_Process_Open(PyObject *self, PyObject *args, PyObject *kwargs) {
9051 PyObject *resultobj;
9052 wxString *arg1 = 0 ;
9053 int arg2 = (int) wxEXEC_ASYNC ;
9054 wxPyProcess *result;
9055 bool temp1 = False ;
9056 PyObject * obj0 = 0 ;
9057 PyObject * obj1 = 0 ;
9058 char *kwnames[] = {
9059 (char *) "cmd",(char *) "flags", NULL
9060 };
9061
9062 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Process_Open",kwnames,&obj0,&obj1)) goto fail;
9063 {
9064 arg1 = wxString_in_helper(obj0);
9065 if (arg1 == NULL) SWIG_fail;
9066 temp1 = True;
9067 }
9068 if (obj1) {
9069 arg2 = (int) SWIG_AsInt(obj1);
9070 if (PyErr_Occurred()) SWIG_fail;
9071 }
9072 {
9073 PyThreadState* __tstate = wxPyBeginAllowThreads();
9074 result = (wxPyProcess *)wxPyProcess::Open((wxString const &)*arg1,arg2);
9075
9076 wxPyEndAllowThreads(__tstate);
9077 if (PyErr_Occurred()) SWIG_fail;
9078 }
9079 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyProcess, 0);
9080 {
9081 if (temp1)
9082 delete arg1;
9083 }
9084 return resultobj;
9085 fail:
9086 {
9087 if (temp1)
9088 delete arg1;
9089 }
9090 return NULL;
9091 }
9092
9093
9094 static PyObject *_wrap_new_Process(PyObject *self, PyObject *args, PyObject *kwargs) {
9095 PyObject *resultobj;
9096 wxEvtHandler *arg1 = (wxEvtHandler *) NULL ;
9097 int arg2 = (int) -1 ;
9098 wxPyProcess *result;
9099 PyObject * obj0 = 0 ;
9100 PyObject * obj1 = 0 ;
9101 char *kwnames[] = {
9102 (char *) "parent",(char *) "id", NULL
9103 };
9104
9105 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Process",kwnames,&obj0,&obj1)) goto fail;
9106 if (obj0) {
9107 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler,
9108 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9109 }
9110 if (obj1) {
9111 arg2 = (int) SWIG_AsInt(obj1);
9112 if (PyErr_Occurred()) SWIG_fail;
9113 }
9114 {
9115 PyThreadState* __tstate = wxPyBeginAllowThreads();
9116 result = (wxPyProcess *)new wxPyProcess(arg1,arg2);
9117
9118 wxPyEndAllowThreads(__tstate);
9119 if (PyErr_Occurred()) SWIG_fail;
9120 }
9121 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyProcess, 1);
9122 return resultobj;
9123 fail:
9124 return NULL;
9125 }
9126
9127
9128 static PyObject *_wrap_Process__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
9129 PyObject *resultobj;
9130 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9131 PyObject *arg2 = (PyObject *) 0 ;
9132 PyObject *arg3 = (PyObject *) 0 ;
9133 PyObject * obj0 = 0 ;
9134 PyObject * obj1 = 0 ;
9135 PyObject * obj2 = 0 ;
9136 char *kwnames[] = {
9137 (char *) "self",(char *) "self",(char *) "_class", NULL
9138 };
9139
9140 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Process__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
9141 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9142 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9143 arg2 = obj1;
9144 arg3 = obj2;
9145 {
9146 PyThreadState* __tstate = wxPyBeginAllowThreads();
9147 (arg1)->_setCallbackInfo(arg2,arg3);
9148
9149 wxPyEndAllowThreads(__tstate);
9150 if (PyErr_Occurred()) SWIG_fail;
9151 }
9152 Py_INCREF(Py_None); resultobj = Py_None;
9153 return resultobj;
9154 fail:
9155 return NULL;
9156 }
9157
9158
9159 static PyObject *_wrap_Process_base_OnTerminate(PyObject *self, PyObject *args, PyObject *kwargs) {
9160 PyObject *resultobj;
9161 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9162 int arg2 ;
9163 int arg3 ;
9164 PyObject * obj0 = 0 ;
9165 PyObject * obj1 = 0 ;
9166 PyObject * obj2 = 0 ;
9167 char *kwnames[] = {
9168 (char *) "self",(char *) "pid",(char *) "status", NULL
9169 };
9170
9171 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Process_base_OnTerminate",kwnames,&obj0,&obj1,&obj2)) goto fail;
9172 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9173 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9174 arg2 = (int) SWIG_AsInt(obj1);
9175 if (PyErr_Occurred()) SWIG_fail;
9176 arg3 = (int) SWIG_AsInt(obj2);
9177 if (PyErr_Occurred()) SWIG_fail;
9178 {
9179 PyThreadState* __tstate = wxPyBeginAllowThreads();
9180 (arg1)->base_OnTerminate(arg2,arg3);
9181
9182 wxPyEndAllowThreads(__tstate);
9183 if (PyErr_Occurred()) SWIG_fail;
9184 }
9185 Py_INCREF(Py_None); resultobj = Py_None;
9186 return resultobj;
9187 fail:
9188 return NULL;
9189 }
9190
9191
9192 static PyObject *_wrap_Process_Redirect(PyObject *self, PyObject *args, PyObject *kwargs) {
9193 PyObject *resultobj;
9194 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9195 PyObject * obj0 = 0 ;
9196 char *kwnames[] = {
9197 (char *) "self", NULL
9198 };
9199
9200 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Redirect",kwnames,&obj0)) goto fail;
9201 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9202 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9203 {
9204 PyThreadState* __tstate = wxPyBeginAllowThreads();
9205 (arg1)->Redirect();
9206
9207 wxPyEndAllowThreads(__tstate);
9208 if (PyErr_Occurred()) SWIG_fail;
9209 }
9210 Py_INCREF(Py_None); resultobj = Py_None;
9211 return resultobj;
9212 fail:
9213 return NULL;
9214 }
9215
9216
9217 static PyObject *_wrap_Process_IsRedirected(PyObject *self, PyObject *args, PyObject *kwargs) {
9218 PyObject *resultobj;
9219 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9220 bool result;
9221 PyObject * obj0 = 0 ;
9222 char *kwnames[] = {
9223 (char *) "self", NULL
9224 };
9225
9226 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsRedirected",kwnames,&obj0)) goto fail;
9227 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9228 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9229 {
9230 PyThreadState* __tstate = wxPyBeginAllowThreads();
9231 result = (bool)(arg1)->IsRedirected();
9232
9233 wxPyEndAllowThreads(__tstate);
9234 if (PyErr_Occurred()) SWIG_fail;
9235 }
9236 {
9237 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9238 }
9239 return resultobj;
9240 fail:
9241 return NULL;
9242 }
9243
9244
9245 static PyObject *_wrap_Process_Detach(PyObject *self, PyObject *args, PyObject *kwargs) {
9246 PyObject *resultobj;
9247 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9248 PyObject * obj0 = 0 ;
9249 char *kwnames[] = {
9250 (char *) "self", NULL
9251 };
9252
9253 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Detach",kwnames,&obj0)) goto fail;
9254 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9255 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9256 {
9257 PyThreadState* __tstate = wxPyBeginAllowThreads();
9258 (arg1)->Detach();
9259
9260 wxPyEndAllowThreads(__tstate);
9261 if (PyErr_Occurred()) SWIG_fail;
9262 }
9263 Py_INCREF(Py_None); resultobj = Py_None;
9264 return resultobj;
9265 fail:
9266 return NULL;
9267 }
9268
9269
9270 static PyObject *_wrap_Process_GetInputStream(PyObject *self, PyObject *args, PyObject *kwargs) {
9271 PyObject *resultobj;
9272 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9273 wxInputStream *result;
9274 PyObject * obj0 = 0 ;
9275 char *kwnames[] = {
9276 (char *) "self", NULL
9277 };
9278
9279 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetInputStream",kwnames,&obj0)) goto fail;
9280 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9281 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9282 {
9283 PyThreadState* __tstate = wxPyBeginAllowThreads();
9284 result = (wxInputStream *)(arg1)->GetInputStream();
9285
9286 wxPyEndAllowThreads(__tstate);
9287 if (PyErr_Occurred()) SWIG_fail;
9288 }
9289 {
9290 wxPyInputStream * _ptr = NULL;
9291
9292 if (result) {
9293 _ptr = new wxPyInputStream(result);
9294 }
9295 resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), True);
9296 }
9297 return resultobj;
9298 fail:
9299 return NULL;
9300 }
9301
9302
9303 static PyObject *_wrap_Process_GetErrorStream(PyObject *self, PyObject *args, PyObject *kwargs) {
9304 PyObject *resultobj;
9305 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9306 wxInputStream *result;
9307 PyObject * obj0 = 0 ;
9308 char *kwnames[] = {
9309 (char *) "self", NULL
9310 };
9311
9312 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetErrorStream",kwnames,&obj0)) goto fail;
9313 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9314 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9315 {
9316 PyThreadState* __tstate = wxPyBeginAllowThreads();
9317 result = (wxInputStream *)(arg1)->GetErrorStream();
9318
9319 wxPyEndAllowThreads(__tstate);
9320 if (PyErr_Occurred()) SWIG_fail;
9321 }
9322 {
9323 wxPyInputStream * _ptr = NULL;
9324
9325 if (result) {
9326 _ptr = new wxPyInputStream(result);
9327 }
9328 resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), True);
9329 }
9330 return resultobj;
9331 fail:
9332 return NULL;
9333 }
9334
9335
9336 static PyObject *_wrap_Process_GetOutputStream(PyObject *self, PyObject *args, PyObject *kwargs) {
9337 PyObject *resultobj;
9338 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9339 wxOutputStream *result;
9340 PyObject * obj0 = 0 ;
9341 char *kwnames[] = {
9342 (char *) "self", NULL
9343 };
9344
9345 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetOutputStream",kwnames,&obj0)) goto fail;
9346 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9347 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9348 {
9349 PyThreadState* __tstate = wxPyBeginAllowThreads();
9350 result = (wxOutputStream *)(arg1)->GetOutputStream();
9351
9352 wxPyEndAllowThreads(__tstate);
9353 if (PyErr_Occurred()) SWIG_fail;
9354 }
9355 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxOutputStream, 0);
9356 return resultobj;
9357 fail:
9358 return NULL;
9359 }
9360
9361
9362 static PyObject *_wrap_Process_CloseOutput(PyObject *self, PyObject *args, PyObject *kwargs) {
9363 PyObject *resultobj;
9364 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9365 PyObject * obj0 = 0 ;
9366 char *kwnames[] = {
9367 (char *) "self", NULL
9368 };
9369
9370 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_CloseOutput",kwnames,&obj0)) goto fail;
9371 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9372 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9373 {
9374 PyThreadState* __tstate = wxPyBeginAllowThreads();
9375 (arg1)->CloseOutput();
9376
9377 wxPyEndAllowThreads(__tstate);
9378 if (PyErr_Occurred()) SWIG_fail;
9379 }
9380 Py_INCREF(Py_None); resultobj = Py_None;
9381 return resultobj;
9382 fail:
9383 return NULL;
9384 }
9385
9386
9387 static PyObject *_wrap_Process_IsInputOpened(PyObject *self, PyObject *args, PyObject *kwargs) {
9388 PyObject *resultobj;
9389 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9390 bool result;
9391 PyObject * obj0 = 0 ;
9392 char *kwnames[] = {
9393 (char *) "self", NULL
9394 };
9395
9396 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsInputOpened",kwnames,&obj0)) goto fail;
9397 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9398 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9399 {
9400 PyThreadState* __tstate = wxPyBeginAllowThreads();
9401 result = (bool)((wxPyProcess const *)arg1)->IsInputOpened();
9402
9403 wxPyEndAllowThreads(__tstate);
9404 if (PyErr_Occurred()) SWIG_fail;
9405 }
9406 {
9407 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9408 }
9409 return resultobj;
9410 fail:
9411 return NULL;
9412 }
9413
9414
9415 static PyObject *_wrap_Process_IsInputAvailable(PyObject *self, PyObject *args, PyObject *kwargs) {
9416 PyObject *resultobj;
9417 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9418 bool result;
9419 PyObject * obj0 = 0 ;
9420 char *kwnames[] = {
9421 (char *) "self", NULL
9422 };
9423
9424 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsInputAvailable",kwnames,&obj0)) goto fail;
9425 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9426 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9427 {
9428 PyThreadState* __tstate = wxPyBeginAllowThreads();
9429 result = (bool)((wxPyProcess const *)arg1)->IsInputAvailable();
9430
9431 wxPyEndAllowThreads(__tstate);
9432 if (PyErr_Occurred()) SWIG_fail;
9433 }
9434 {
9435 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9436 }
9437 return resultobj;
9438 fail:
9439 return NULL;
9440 }
9441
9442
9443 static PyObject *_wrap_Process_IsErrorAvailable(PyObject *self, PyObject *args, PyObject *kwargs) {
9444 PyObject *resultobj;
9445 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9446 bool result;
9447 PyObject * obj0 = 0 ;
9448 char *kwnames[] = {
9449 (char *) "self", NULL
9450 };
9451
9452 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsErrorAvailable",kwnames,&obj0)) goto fail;
9453 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9454 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9455 {
9456 PyThreadState* __tstate = wxPyBeginAllowThreads();
9457 result = (bool)((wxPyProcess const *)arg1)->IsErrorAvailable();
9458
9459 wxPyEndAllowThreads(__tstate);
9460 if (PyErr_Occurred()) SWIG_fail;
9461 }
9462 {
9463 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9464 }
9465 return resultobj;
9466 fail:
9467 return NULL;
9468 }
9469
9470
9471 static PyObject * Process_swigregister(PyObject *self, PyObject *args) {
9472 PyObject *obj;
9473 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9474 SWIG_TypeClientData(SWIGTYPE_p_wxPyProcess, obj);
9475 Py_INCREF(obj);
9476 return Py_BuildValue((char *)"");
9477 }
9478 static PyObject *_wrap_new_ProcessEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
9479 PyObject *resultobj;
9480 int arg1 = (int) 0 ;
9481 int arg2 = (int) 0 ;
9482 int arg3 = (int) 0 ;
9483 wxProcessEvent *result;
9484 PyObject * obj0 = 0 ;
9485 PyObject * obj1 = 0 ;
9486 PyObject * obj2 = 0 ;
9487 char *kwnames[] = {
9488 (char *) "id",(char *) "pid",(char *) "exitcode", NULL
9489 };
9490
9491 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ProcessEvent",kwnames,&obj0,&obj1,&obj2)) goto fail;
9492 if (obj0) {
9493 arg1 = (int) SWIG_AsInt(obj0);
9494 if (PyErr_Occurred()) SWIG_fail;
9495 }
9496 if (obj1) {
9497 arg2 = (int) SWIG_AsInt(obj1);
9498 if (PyErr_Occurred()) SWIG_fail;
9499 }
9500 if (obj2) {
9501 arg3 = (int) SWIG_AsInt(obj2);
9502 if (PyErr_Occurred()) SWIG_fail;
9503 }
9504 {
9505 PyThreadState* __tstate = wxPyBeginAllowThreads();
9506 result = (wxProcessEvent *)new wxProcessEvent(arg1,arg2,arg3);
9507
9508 wxPyEndAllowThreads(__tstate);
9509 if (PyErr_Occurred()) SWIG_fail;
9510 }
9511 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxProcessEvent, 1);
9512 return resultobj;
9513 fail:
9514 return NULL;
9515 }
9516
9517
9518 static PyObject *_wrap_ProcessEvent_GetPid(PyObject *self, PyObject *args, PyObject *kwargs) {
9519 PyObject *resultobj;
9520 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
9521 int result;
9522 PyObject * obj0 = 0 ;
9523 char *kwnames[] = {
9524 (char *) "self", NULL
9525 };
9526
9527 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_GetPid",kwnames,&obj0)) goto fail;
9528 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent,
9529 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9530 {
9531 PyThreadState* __tstate = wxPyBeginAllowThreads();
9532 result = (int)(arg1)->GetPid();
9533
9534 wxPyEndAllowThreads(__tstate);
9535 if (PyErr_Occurred()) SWIG_fail;
9536 }
9537 resultobj = SWIG_FromInt((int)result);
9538 return resultobj;
9539 fail:
9540 return NULL;
9541 }
9542
9543
9544 static PyObject *_wrap_ProcessEvent_GetExitCode(PyObject *self, PyObject *args, PyObject *kwargs) {
9545 PyObject *resultobj;
9546 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
9547 int result;
9548 PyObject * obj0 = 0 ;
9549 char *kwnames[] = {
9550 (char *) "self", NULL
9551 };
9552
9553 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_GetExitCode",kwnames,&obj0)) goto fail;
9554 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent,
9555 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9556 {
9557 PyThreadState* __tstate = wxPyBeginAllowThreads();
9558 result = (int)(arg1)->GetExitCode();
9559
9560 wxPyEndAllowThreads(__tstate);
9561 if (PyErr_Occurred()) SWIG_fail;
9562 }
9563 resultobj = SWIG_FromInt((int)result);
9564 return resultobj;
9565 fail:
9566 return NULL;
9567 }
9568
9569
9570 static PyObject *_wrap_ProcessEvent_m_pid_set(PyObject *self, PyObject *args, PyObject *kwargs) {
9571 PyObject *resultobj;
9572 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
9573 int arg2 ;
9574 PyObject * obj0 = 0 ;
9575 PyObject * obj1 = 0 ;
9576 char *kwnames[] = {
9577 (char *) "self",(char *) "m_pid", NULL
9578 };
9579
9580 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ProcessEvent_m_pid_set",kwnames,&obj0,&obj1)) goto fail;
9581 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent,
9582 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9583 arg2 = (int) SWIG_AsInt(obj1);
9584 if (PyErr_Occurred()) SWIG_fail;
9585 if (arg1) (arg1)->m_pid = arg2;
9586
9587 Py_INCREF(Py_None); resultobj = Py_None;
9588 return resultobj;
9589 fail:
9590 return NULL;
9591 }
9592
9593
9594 static PyObject *_wrap_ProcessEvent_m_pid_get(PyObject *self, PyObject *args, PyObject *kwargs) {
9595 PyObject *resultobj;
9596 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
9597 int result;
9598 PyObject * obj0 = 0 ;
9599 char *kwnames[] = {
9600 (char *) "self", NULL
9601 };
9602
9603 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_m_pid_get",kwnames,&obj0)) goto fail;
9604 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent,
9605 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9606 result = (int) ((arg1)->m_pid);
9607
9608 resultobj = SWIG_FromInt((int)result);
9609 return resultobj;
9610 fail:
9611 return NULL;
9612 }
9613
9614
9615 static PyObject *_wrap_ProcessEvent_m_exitcode_set(PyObject *self, PyObject *args, PyObject *kwargs) {
9616 PyObject *resultobj;
9617 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
9618 int arg2 ;
9619 PyObject * obj0 = 0 ;
9620 PyObject * obj1 = 0 ;
9621 char *kwnames[] = {
9622 (char *) "self",(char *) "m_exitcode", NULL
9623 };
9624
9625 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ProcessEvent_m_exitcode_set",kwnames,&obj0,&obj1)) goto fail;
9626 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent,
9627 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9628 arg2 = (int) SWIG_AsInt(obj1);
9629 if (PyErr_Occurred()) SWIG_fail;
9630 if (arg1) (arg1)->m_exitcode = arg2;
9631
9632 Py_INCREF(Py_None); resultobj = Py_None;
9633 return resultobj;
9634 fail:
9635 return NULL;
9636 }
9637
9638
9639 static PyObject *_wrap_ProcessEvent_m_exitcode_get(PyObject *self, PyObject *args, PyObject *kwargs) {
9640 PyObject *resultobj;
9641 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
9642 int result;
9643 PyObject * obj0 = 0 ;
9644 char *kwnames[] = {
9645 (char *) "self", NULL
9646 };
9647
9648 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_m_exitcode_get",kwnames,&obj0)) goto fail;
9649 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent,
9650 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9651 result = (int) ((arg1)->m_exitcode);
9652
9653 resultobj = SWIG_FromInt((int)result);
9654 return resultobj;
9655 fail:
9656 return NULL;
9657 }
9658
9659
9660 static PyObject * ProcessEvent_swigregister(PyObject *self, PyObject *args) {
9661 PyObject *obj;
9662 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9663 SWIG_TypeClientData(SWIGTYPE_p_wxProcessEvent, obj);
9664 Py_INCREF(obj);
9665 return Py_BuildValue((char *)"");
9666 }
9667 static PyObject *_wrap_Execute(PyObject *self, PyObject *args, PyObject *kwargs) {
9668 PyObject *resultobj;
9669 wxString *arg1 = 0 ;
9670 int arg2 = (int) wxEXEC_ASYNC ;
9671 wxPyProcess *arg3 = (wxPyProcess *) NULL ;
9672 long result;
9673 bool temp1 = False ;
9674 PyObject * obj0 = 0 ;
9675 PyObject * obj1 = 0 ;
9676 PyObject * obj2 = 0 ;
9677 char *kwnames[] = {
9678 (char *) "command",(char *) "flags",(char *) "process", NULL
9679 };
9680
9681 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Execute",kwnames,&obj0,&obj1,&obj2)) goto fail;
9682 {
9683 arg1 = wxString_in_helper(obj0);
9684 if (arg1 == NULL) SWIG_fail;
9685 temp1 = True;
9686 }
9687 if (obj1) {
9688 arg2 = (int) SWIG_AsInt(obj1);
9689 if (PyErr_Occurred()) SWIG_fail;
9690 }
9691 if (obj2) {
9692 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPyProcess,
9693 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9694 }
9695 {
9696 if (!wxPyCheckForApp()) SWIG_fail;
9697 PyThreadState* __tstate = wxPyBeginAllowThreads();
9698 result = (long)wxExecute((wxString const &)*arg1,arg2,arg3);
9699
9700 wxPyEndAllowThreads(__tstate);
9701 if (PyErr_Occurred()) SWIG_fail;
9702 }
9703 resultobj = SWIG_FromLong((long)result);
9704 {
9705 if (temp1)
9706 delete arg1;
9707 }
9708 return resultobj;
9709 fail:
9710 {
9711 if (temp1)
9712 delete arg1;
9713 }
9714 return NULL;
9715 }
9716
9717
9718 static PyObject *_wrap_new_Joystick(PyObject *self, PyObject *args, PyObject *kwargs) {
9719 PyObject *resultobj;
9720 int arg1 = (int) wxJOYSTICK1 ;
9721 wxJoystick *result;
9722 PyObject * obj0 = 0 ;
9723 char *kwnames[] = {
9724 (char *) "joystick", NULL
9725 };
9726
9727 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Joystick",kwnames,&obj0)) goto fail;
9728 if (obj0) {
9729 arg1 = (int) SWIG_AsInt(obj0);
9730 if (PyErr_Occurred()) SWIG_fail;
9731 }
9732 {
9733 if (!wxPyCheckForApp()) SWIG_fail;
9734 PyThreadState* __tstate = wxPyBeginAllowThreads();
9735 result = (wxJoystick *)new wxJoystick(arg1);
9736
9737 wxPyEndAllowThreads(__tstate);
9738 if (PyErr_Occurred()) SWIG_fail;
9739 }
9740 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxJoystick, 1);
9741 return resultobj;
9742 fail:
9743 return NULL;
9744 }
9745
9746
9747 static PyObject *_wrap_delete_Joystick(PyObject *self, PyObject *args, PyObject *kwargs) {
9748 PyObject *resultobj;
9749 wxJoystick *arg1 = (wxJoystick *) 0 ;
9750 PyObject * obj0 = 0 ;
9751 char *kwnames[] = {
9752 (char *) "self", NULL
9753 };
9754
9755 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Joystick",kwnames,&obj0)) goto fail;
9756 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9757 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9758 {
9759 PyThreadState* __tstate = wxPyBeginAllowThreads();
9760 delete arg1;
9761
9762 wxPyEndAllowThreads(__tstate);
9763 if (PyErr_Occurred()) SWIG_fail;
9764 }
9765 Py_INCREF(Py_None); resultobj = Py_None;
9766 return resultobj;
9767 fail:
9768 return NULL;
9769 }
9770
9771
9772 static PyObject *_wrap_Joystick_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
9773 PyObject *resultobj;
9774 wxJoystick *arg1 = (wxJoystick *) 0 ;
9775 wxPoint result;
9776 PyObject * obj0 = 0 ;
9777 char *kwnames[] = {
9778 (char *) "self", NULL
9779 };
9780
9781 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPosition",kwnames,&obj0)) goto fail;
9782 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9783 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9784 {
9785 PyThreadState* __tstate = wxPyBeginAllowThreads();
9786 result = (arg1)->GetPosition();
9787
9788 wxPyEndAllowThreads(__tstate);
9789 if (PyErr_Occurred()) SWIG_fail;
9790 }
9791 {
9792 wxPoint * resultptr;
9793 resultptr = new wxPoint((wxPoint &) result);
9794 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
9795 }
9796 return resultobj;
9797 fail:
9798 return NULL;
9799 }
9800
9801
9802 static PyObject *_wrap_Joystick_GetZPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
9803 PyObject *resultobj;
9804 wxJoystick *arg1 = (wxJoystick *) 0 ;
9805 int result;
9806 PyObject * obj0 = 0 ;
9807 char *kwnames[] = {
9808 (char *) "self", NULL
9809 };
9810
9811 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZPosition",kwnames,&obj0)) goto fail;
9812 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9813 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9814 {
9815 PyThreadState* __tstate = wxPyBeginAllowThreads();
9816 result = (int)(arg1)->GetZPosition();
9817
9818 wxPyEndAllowThreads(__tstate);
9819 if (PyErr_Occurred()) SWIG_fail;
9820 }
9821 resultobj = SWIG_FromInt((int)result);
9822 return resultobj;
9823 fail:
9824 return NULL;
9825 }
9826
9827
9828 static PyObject *_wrap_Joystick_GetButtonState(PyObject *self, PyObject *args, PyObject *kwargs) {
9829 PyObject *resultobj;
9830 wxJoystick *arg1 = (wxJoystick *) 0 ;
9831 int result;
9832 PyObject * obj0 = 0 ;
9833 char *kwnames[] = {
9834 (char *) "self", NULL
9835 };
9836
9837 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetButtonState",kwnames,&obj0)) goto fail;
9838 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9839 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9840 {
9841 PyThreadState* __tstate = wxPyBeginAllowThreads();
9842 result = (int)(arg1)->GetButtonState();
9843
9844 wxPyEndAllowThreads(__tstate);
9845 if (PyErr_Occurred()) SWIG_fail;
9846 }
9847 resultobj = SWIG_FromInt((int)result);
9848 return resultobj;
9849 fail:
9850 return NULL;
9851 }
9852
9853
9854 static PyObject *_wrap_Joystick_GetPOVPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
9855 PyObject *resultobj;
9856 wxJoystick *arg1 = (wxJoystick *) 0 ;
9857 int result;
9858 PyObject * obj0 = 0 ;
9859 char *kwnames[] = {
9860 (char *) "self", NULL
9861 };
9862
9863 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPOVPosition",kwnames,&obj0)) goto fail;
9864 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9865 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9866 {
9867 PyThreadState* __tstate = wxPyBeginAllowThreads();
9868 result = (int)(arg1)->GetPOVPosition();
9869
9870 wxPyEndAllowThreads(__tstate);
9871 if (PyErr_Occurred()) SWIG_fail;
9872 }
9873 resultobj = SWIG_FromInt((int)result);
9874 return resultobj;
9875 fail:
9876 return NULL;
9877 }
9878
9879
9880 static PyObject *_wrap_Joystick_GetPOVCTSPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
9881 PyObject *resultobj;
9882 wxJoystick *arg1 = (wxJoystick *) 0 ;
9883 int result;
9884 PyObject * obj0 = 0 ;
9885 char *kwnames[] = {
9886 (char *) "self", NULL
9887 };
9888
9889 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPOVCTSPosition",kwnames,&obj0)) goto fail;
9890 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9891 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9892 {
9893 PyThreadState* __tstate = wxPyBeginAllowThreads();
9894 result = (int)(arg1)->GetPOVCTSPosition();
9895
9896 wxPyEndAllowThreads(__tstate);
9897 if (PyErr_Occurred()) SWIG_fail;
9898 }
9899 resultobj = SWIG_FromInt((int)result);
9900 return resultobj;
9901 fail:
9902 return NULL;
9903 }
9904
9905
9906 static PyObject *_wrap_Joystick_GetRudderPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
9907 PyObject *resultobj;
9908 wxJoystick *arg1 = (wxJoystick *) 0 ;
9909 int result;
9910 PyObject * obj0 = 0 ;
9911 char *kwnames[] = {
9912 (char *) "self", NULL
9913 };
9914
9915 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderPosition",kwnames,&obj0)) goto fail;
9916 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9917 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9918 {
9919 PyThreadState* __tstate = wxPyBeginAllowThreads();
9920 result = (int)(arg1)->GetRudderPosition();
9921
9922 wxPyEndAllowThreads(__tstate);
9923 if (PyErr_Occurred()) SWIG_fail;
9924 }
9925 resultobj = SWIG_FromInt((int)result);
9926 return resultobj;
9927 fail:
9928 return NULL;
9929 }
9930
9931
9932 static PyObject *_wrap_Joystick_GetUPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
9933 PyObject *resultobj;
9934 wxJoystick *arg1 = (wxJoystick *) 0 ;
9935 int result;
9936 PyObject * obj0 = 0 ;
9937 char *kwnames[] = {
9938 (char *) "self", NULL
9939 };
9940
9941 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUPosition",kwnames,&obj0)) goto fail;
9942 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9943 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9944 {
9945 PyThreadState* __tstate = wxPyBeginAllowThreads();
9946 result = (int)(arg1)->GetUPosition();
9947
9948 wxPyEndAllowThreads(__tstate);
9949 if (PyErr_Occurred()) SWIG_fail;
9950 }
9951 resultobj = SWIG_FromInt((int)result);
9952 return resultobj;
9953 fail:
9954 return NULL;
9955 }
9956
9957
9958 static PyObject *_wrap_Joystick_GetVPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
9959 PyObject *resultobj;
9960 wxJoystick *arg1 = (wxJoystick *) 0 ;
9961 int result;
9962 PyObject * obj0 = 0 ;
9963 char *kwnames[] = {
9964 (char *) "self", NULL
9965 };
9966
9967 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVPosition",kwnames,&obj0)) goto fail;
9968 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9969 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9970 {
9971 PyThreadState* __tstate = wxPyBeginAllowThreads();
9972 result = (int)(arg1)->GetVPosition();
9973
9974 wxPyEndAllowThreads(__tstate);
9975 if (PyErr_Occurred()) SWIG_fail;
9976 }
9977 resultobj = SWIG_FromInt((int)result);
9978 return resultobj;
9979 fail:
9980 return NULL;
9981 }
9982
9983
9984 static PyObject *_wrap_Joystick_GetMovementThreshold(PyObject *self, PyObject *args, PyObject *kwargs) {
9985 PyObject *resultobj;
9986 wxJoystick *arg1 = (wxJoystick *) 0 ;
9987 int result;
9988 PyObject * obj0 = 0 ;
9989 char *kwnames[] = {
9990 (char *) "self", NULL
9991 };
9992
9993 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMovementThreshold",kwnames,&obj0)) goto fail;
9994 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9995 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9996 {
9997 PyThreadState* __tstate = wxPyBeginAllowThreads();
9998 result = (int)(arg1)->GetMovementThreshold();
9999
10000 wxPyEndAllowThreads(__tstate);
10001 if (PyErr_Occurred()) SWIG_fail;
10002 }
10003 resultobj = SWIG_FromInt((int)result);
10004 return resultobj;
10005 fail:
10006 return NULL;
10007 }
10008
10009
10010 static PyObject *_wrap_Joystick_SetMovementThreshold(PyObject *self, PyObject *args, PyObject *kwargs) {
10011 PyObject *resultobj;
10012 wxJoystick *arg1 = (wxJoystick *) 0 ;
10013 int arg2 ;
10014 PyObject * obj0 = 0 ;
10015 PyObject * obj1 = 0 ;
10016 char *kwnames[] = {
10017 (char *) "self",(char *) "threshold", NULL
10018 };
10019
10020 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Joystick_SetMovementThreshold",kwnames,&obj0,&obj1)) goto fail;
10021 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10022 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10023 arg2 = (int) SWIG_AsInt(obj1);
10024 if (PyErr_Occurred()) SWIG_fail;
10025 {
10026 PyThreadState* __tstate = wxPyBeginAllowThreads();
10027 (arg1)->SetMovementThreshold(arg2);
10028
10029 wxPyEndAllowThreads(__tstate);
10030 if (PyErr_Occurred()) SWIG_fail;
10031 }
10032 Py_INCREF(Py_None); resultobj = Py_None;
10033 return resultobj;
10034 fail:
10035 return NULL;
10036 }
10037
10038
10039 static PyObject *_wrap_Joystick_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
10040 PyObject *resultobj;
10041 wxJoystick *arg1 = (wxJoystick *) 0 ;
10042 bool result;
10043 PyObject * obj0 = 0 ;
10044 char *kwnames[] = {
10045 (char *) "self", NULL
10046 };
10047
10048 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_IsOk",kwnames,&obj0)) goto fail;
10049 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10050 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10051 {
10052 PyThreadState* __tstate = wxPyBeginAllowThreads();
10053 result = (bool)(arg1)->IsOk();
10054
10055 wxPyEndAllowThreads(__tstate);
10056 if (PyErr_Occurred()) SWIG_fail;
10057 }
10058 {
10059 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10060 }
10061 return resultobj;
10062 fail:
10063 return NULL;
10064 }
10065
10066
10067 static PyObject *_wrap_Joystick_GetNumberJoysticks(PyObject *self, PyObject *args, PyObject *kwargs) {
10068 PyObject *resultobj;
10069 wxJoystick *arg1 = (wxJoystick *) 0 ;
10070 int result;
10071 PyObject * obj0 = 0 ;
10072 char *kwnames[] = {
10073 (char *) "self", NULL
10074 };
10075
10076 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberJoysticks",kwnames,&obj0)) goto fail;
10077 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10078 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10079 {
10080 PyThreadState* __tstate = wxPyBeginAllowThreads();
10081 result = (int)(arg1)->GetNumberJoysticks();
10082
10083 wxPyEndAllowThreads(__tstate);
10084 if (PyErr_Occurred()) SWIG_fail;
10085 }
10086 resultobj = SWIG_FromInt((int)result);
10087 return resultobj;
10088 fail:
10089 return NULL;
10090 }
10091
10092
10093 static PyObject *_wrap_Joystick_GetManufacturerId(PyObject *self, PyObject *args, PyObject *kwargs) {
10094 PyObject *resultobj;
10095 wxJoystick *arg1 = (wxJoystick *) 0 ;
10096 int result;
10097 PyObject * obj0 = 0 ;
10098 char *kwnames[] = {
10099 (char *) "self", NULL
10100 };
10101
10102 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetManufacturerId",kwnames,&obj0)) goto fail;
10103 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10104 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10105 {
10106 PyThreadState* __tstate = wxPyBeginAllowThreads();
10107 result = (int)(arg1)->GetManufacturerId();
10108
10109 wxPyEndAllowThreads(__tstate);
10110 if (PyErr_Occurred()) SWIG_fail;
10111 }
10112 resultobj = SWIG_FromInt((int)result);
10113 return resultobj;
10114 fail:
10115 return NULL;
10116 }
10117
10118
10119 static PyObject *_wrap_Joystick_GetProductId(PyObject *self, PyObject *args, PyObject *kwargs) {
10120 PyObject *resultobj;
10121 wxJoystick *arg1 = (wxJoystick *) 0 ;
10122 int result;
10123 PyObject * obj0 = 0 ;
10124 char *kwnames[] = {
10125 (char *) "self", NULL
10126 };
10127
10128 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetProductId",kwnames,&obj0)) goto fail;
10129 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10130 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10131 {
10132 PyThreadState* __tstate = wxPyBeginAllowThreads();
10133 result = (int)(arg1)->GetProductId();
10134
10135 wxPyEndAllowThreads(__tstate);
10136 if (PyErr_Occurred()) SWIG_fail;
10137 }
10138 resultobj = SWIG_FromInt((int)result);
10139 return resultobj;
10140 fail:
10141 return NULL;
10142 }
10143
10144
10145 static PyObject *_wrap_Joystick_GetProductName(PyObject *self, PyObject *args, PyObject *kwargs) {
10146 PyObject *resultobj;
10147 wxJoystick *arg1 = (wxJoystick *) 0 ;
10148 wxString result;
10149 PyObject * obj0 = 0 ;
10150 char *kwnames[] = {
10151 (char *) "self", NULL
10152 };
10153
10154 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetProductName",kwnames,&obj0)) goto fail;
10155 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10156 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10157 {
10158 PyThreadState* __tstate = wxPyBeginAllowThreads();
10159 result = (arg1)->GetProductName();
10160
10161 wxPyEndAllowThreads(__tstate);
10162 if (PyErr_Occurred()) SWIG_fail;
10163 }
10164 {
10165 #if wxUSE_UNICODE
10166 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10167 #else
10168 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10169 #endif
10170 }
10171 return resultobj;
10172 fail:
10173 return NULL;
10174 }
10175
10176
10177 static PyObject *_wrap_Joystick_GetXMin(PyObject *self, PyObject *args, PyObject *kwargs) {
10178 PyObject *resultobj;
10179 wxJoystick *arg1 = (wxJoystick *) 0 ;
10180 int result;
10181 PyObject * obj0 = 0 ;
10182 char *kwnames[] = {
10183 (char *) "self", NULL
10184 };
10185
10186 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetXMin",kwnames,&obj0)) goto fail;
10187 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10188 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10189 {
10190 PyThreadState* __tstate = wxPyBeginAllowThreads();
10191 result = (int)(arg1)->GetXMin();
10192
10193 wxPyEndAllowThreads(__tstate);
10194 if (PyErr_Occurred()) SWIG_fail;
10195 }
10196 resultobj = SWIG_FromInt((int)result);
10197 return resultobj;
10198 fail:
10199 return NULL;
10200 }
10201
10202
10203 static PyObject *_wrap_Joystick_GetYMin(PyObject *self, PyObject *args, PyObject *kwargs) {
10204 PyObject *resultobj;
10205 wxJoystick *arg1 = (wxJoystick *) 0 ;
10206 int result;
10207 PyObject * obj0 = 0 ;
10208 char *kwnames[] = {
10209 (char *) "self", NULL
10210 };
10211
10212 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetYMin",kwnames,&obj0)) goto fail;
10213 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10214 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10215 {
10216 PyThreadState* __tstate = wxPyBeginAllowThreads();
10217 result = (int)(arg1)->GetYMin();
10218
10219 wxPyEndAllowThreads(__tstate);
10220 if (PyErr_Occurred()) SWIG_fail;
10221 }
10222 resultobj = SWIG_FromInt((int)result);
10223 return resultobj;
10224 fail:
10225 return NULL;
10226 }
10227
10228
10229 static PyObject *_wrap_Joystick_GetZMin(PyObject *self, PyObject *args, PyObject *kwargs) {
10230 PyObject *resultobj;
10231 wxJoystick *arg1 = (wxJoystick *) 0 ;
10232 int result;
10233 PyObject * obj0 = 0 ;
10234 char *kwnames[] = {
10235 (char *) "self", NULL
10236 };
10237
10238 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZMin",kwnames,&obj0)) goto fail;
10239 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10240 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10241 {
10242 PyThreadState* __tstate = wxPyBeginAllowThreads();
10243 result = (int)(arg1)->GetZMin();
10244
10245 wxPyEndAllowThreads(__tstate);
10246 if (PyErr_Occurred()) SWIG_fail;
10247 }
10248 resultobj = SWIG_FromInt((int)result);
10249 return resultobj;
10250 fail:
10251 return NULL;
10252 }
10253
10254
10255 static PyObject *_wrap_Joystick_GetXMax(PyObject *self, PyObject *args, PyObject *kwargs) {
10256 PyObject *resultobj;
10257 wxJoystick *arg1 = (wxJoystick *) 0 ;
10258 int result;
10259 PyObject * obj0 = 0 ;
10260 char *kwnames[] = {
10261 (char *) "self", NULL
10262 };
10263
10264 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetXMax",kwnames,&obj0)) goto fail;
10265 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10266 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10267 {
10268 PyThreadState* __tstate = wxPyBeginAllowThreads();
10269 result = (int)(arg1)->GetXMax();
10270
10271 wxPyEndAllowThreads(__tstate);
10272 if (PyErr_Occurred()) SWIG_fail;
10273 }
10274 resultobj = SWIG_FromInt((int)result);
10275 return resultobj;
10276 fail:
10277 return NULL;
10278 }
10279
10280
10281 static PyObject *_wrap_Joystick_GetYMax(PyObject *self, PyObject *args, PyObject *kwargs) {
10282 PyObject *resultobj;
10283 wxJoystick *arg1 = (wxJoystick *) 0 ;
10284 int result;
10285 PyObject * obj0 = 0 ;
10286 char *kwnames[] = {
10287 (char *) "self", NULL
10288 };
10289
10290 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetYMax",kwnames,&obj0)) goto fail;
10291 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10292 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10293 {
10294 PyThreadState* __tstate = wxPyBeginAllowThreads();
10295 result = (int)(arg1)->GetYMax();
10296
10297 wxPyEndAllowThreads(__tstate);
10298 if (PyErr_Occurred()) SWIG_fail;
10299 }
10300 resultobj = SWIG_FromInt((int)result);
10301 return resultobj;
10302 fail:
10303 return NULL;
10304 }
10305
10306
10307 static PyObject *_wrap_Joystick_GetZMax(PyObject *self, PyObject *args, PyObject *kwargs) {
10308 PyObject *resultobj;
10309 wxJoystick *arg1 = (wxJoystick *) 0 ;
10310 int result;
10311 PyObject * obj0 = 0 ;
10312 char *kwnames[] = {
10313 (char *) "self", NULL
10314 };
10315
10316 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZMax",kwnames,&obj0)) goto fail;
10317 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10318 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10319 {
10320 PyThreadState* __tstate = wxPyBeginAllowThreads();
10321 result = (int)(arg1)->GetZMax();
10322
10323 wxPyEndAllowThreads(__tstate);
10324 if (PyErr_Occurred()) SWIG_fail;
10325 }
10326 resultobj = SWIG_FromInt((int)result);
10327 return resultobj;
10328 fail:
10329 return NULL;
10330 }
10331
10332
10333 static PyObject *_wrap_Joystick_GetNumberButtons(PyObject *self, PyObject *args, PyObject *kwargs) {
10334 PyObject *resultobj;
10335 wxJoystick *arg1 = (wxJoystick *) 0 ;
10336 int result;
10337 PyObject * obj0 = 0 ;
10338 char *kwnames[] = {
10339 (char *) "self", NULL
10340 };
10341
10342 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberButtons",kwnames,&obj0)) goto fail;
10343 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10344 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10345 {
10346 PyThreadState* __tstate = wxPyBeginAllowThreads();
10347 result = (int)(arg1)->GetNumberButtons();
10348
10349 wxPyEndAllowThreads(__tstate);
10350 if (PyErr_Occurred()) SWIG_fail;
10351 }
10352 resultobj = SWIG_FromInt((int)result);
10353 return resultobj;
10354 fail:
10355 return NULL;
10356 }
10357
10358
10359 static PyObject *_wrap_Joystick_GetNumberAxes(PyObject *self, PyObject *args, PyObject *kwargs) {
10360 PyObject *resultobj;
10361 wxJoystick *arg1 = (wxJoystick *) 0 ;
10362 int result;
10363 PyObject * obj0 = 0 ;
10364 char *kwnames[] = {
10365 (char *) "self", NULL
10366 };
10367
10368 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberAxes",kwnames,&obj0)) goto fail;
10369 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10370 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10371 {
10372 PyThreadState* __tstate = wxPyBeginAllowThreads();
10373 result = (int)(arg1)->GetNumberAxes();
10374
10375 wxPyEndAllowThreads(__tstate);
10376 if (PyErr_Occurred()) SWIG_fail;
10377 }
10378 resultobj = SWIG_FromInt((int)result);
10379 return resultobj;
10380 fail:
10381 return NULL;
10382 }
10383
10384
10385 static PyObject *_wrap_Joystick_GetMaxButtons(PyObject *self, PyObject *args, PyObject *kwargs) {
10386 PyObject *resultobj;
10387 wxJoystick *arg1 = (wxJoystick *) 0 ;
10388 int result;
10389 PyObject * obj0 = 0 ;
10390 char *kwnames[] = {
10391 (char *) "self", NULL
10392 };
10393
10394 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMaxButtons",kwnames,&obj0)) goto fail;
10395 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10396 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10397 {
10398 PyThreadState* __tstate = wxPyBeginAllowThreads();
10399 result = (int)(arg1)->GetMaxButtons();
10400
10401 wxPyEndAllowThreads(__tstate);
10402 if (PyErr_Occurred()) SWIG_fail;
10403 }
10404 resultobj = SWIG_FromInt((int)result);
10405 return resultobj;
10406 fail:
10407 return NULL;
10408 }
10409
10410
10411 static PyObject *_wrap_Joystick_GetMaxAxes(PyObject *self, PyObject *args, PyObject *kwargs) {
10412 PyObject *resultobj;
10413 wxJoystick *arg1 = (wxJoystick *) 0 ;
10414 int result;
10415 PyObject * obj0 = 0 ;
10416 char *kwnames[] = {
10417 (char *) "self", NULL
10418 };
10419
10420 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMaxAxes",kwnames,&obj0)) goto fail;
10421 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10422 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10423 {
10424 PyThreadState* __tstate = wxPyBeginAllowThreads();
10425 result = (int)(arg1)->GetMaxAxes();
10426
10427 wxPyEndAllowThreads(__tstate);
10428 if (PyErr_Occurred()) SWIG_fail;
10429 }
10430 resultobj = SWIG_FromInt((int)result);
10431 return resultobj;
10432 fail:
10433 return NULL;
10434 }
10435
10436
10437 static PyObject *_wrap_Joystick_GetPollingMin(PyObject *self, PyObject *args, PyObject *kwargs) {
10438 PyObject *resultobj;
10439 wxJoystick *arg1 = (wxJoystick *) 0 ;
10440 int result;
10441 PyObject * obj0 = 0 ;
10442 char *kwnames[] = {
10443 (char *) "self", NULL
10444 };
10445
10446 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPollingMin",kwnames,&obj0)) goto fail;
10447 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10448 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10449 {
10450 PyThreadState* __tstate = wxPyBeginAllowThreads();
10451 result = (int)(arg1)->GetPollingMin();
10452
10453 wxPyEndAllowThreads(__tstate);
10454 if (PyErr_Occurred()) SWIG_fail;
10455 }
10456 resultobj = SWIG_FromInt((int)result);
10457 return resultobj;
10458 fail:
10459 return NULL;
10460 }
10461
10462
10463 static PyObject *_wrap_Joystick_GetPollingMax(PyObject *self, PyObject *args, PyObject *kwargs) {
10464 PyObject *resultobj;
10465 wxJoystick *arg1 = (wxJoystick *) 0 ;
10466 int result;
10467 PyObject * obj0 = 0 ;
10468 char *kwnames[] = {
10469 (char *) "self", NULL
10470 };
10471
10472 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPollingMax",kwnames,&obj0)) goto fail;
10473 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10474 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10475 {
10476 PyThreadState* __tstate = wxPyBeginAllowThreads();
10477 result = (int)(arg1)->GetPollingMax();
10478
10479 wxPyEndAllowThreads(__tstate);
10480 if (PyErr_Occurred()) SWIG_fail;
10481 }
10482 resultobj = SWIG_FromInt((int)result);
10483 return resultobj;
10484 fail:
10485 return NULL;
10486 }
10487
10488
10489 static PyObject *_wrap_Joystick_GetRudderMin(PyObject *self, PyObject *args, PyObject *kwargs) {
10490 PyObject *resultobj;
10491 wxJoystick *arg1 = (wxJoystick *) 0 ;
10492 int result;
10493 PyObject * obj0 = 0 ;
10494 char *kwnames[] = {
10495 (char *) "self", NULL
10496 };
10497
10498 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderMin",kwnames,&obj0)) goto fail;
10499 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10500 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10501 {
10502 PyThreadState* __tstate = wxPyBeginAllowThreads();
10503 result = (int)(arg1)->GetRudderMin();
10504
10505 wxPyEndAllowThreads(__tstate);
10506 if (PyErr_Occurred()) SWIG_fail;
10507 }
10508 resultobj = SWIG_FromInt((int)result);
10509 return resultobj;
10510 fail:
10511 return NULL;
10512 }
10513
10514
10515 static PyObject *_wrap_Joystick_GetRudderMax(PyObject *self, PyObject *args, PyObject *kwargs) {
10516 PyObject *resultobj;
10517 wxJoystick *arg1 = (wxJoystick *) 0 ;
10518 int result;
10519 PyObject * obj0 = 0 ;
10520 char *kwnames[] = {
10521 (char *) "self", NULL
10522 };
10523
10524 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderMax",kwnames,&obj0)) goto fail;
10525 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10526 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10527 {
10528 PyThreadState* __tstate = wxPyBeginAllowThreads();
10529 result = (int)(arg1)->GetRudderMax();
10530
10531 wxPyEndAllowThreads(__tstate);
10532 if (PyErr_Occurred()) SWIG_fail;
10533 }
10534 resultobj = SWIG_FromInt((int)result);
10535 return resultobj;
10536 fail:
10537 return NULL;
10538 }
10539
10540
10541 static PyObject *_wrap_Joystick_GetUMin(PyObject *self, PyObject *args, PyObject *kwargs) {
10542 PyObject *resultobj;
10543 wxJoystick *arg1 = (wxJoystick *) 0 ;
10544 int result;
10545 PyObject * obj0 = 0 ;
10546 char *kwnames[] = {
10547 (char *) "self", NULL
10548 };
10549
10550 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUMin",kwnames,&obj0)) goto fail;
10551 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10552 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10553 {
10554 PyThreadState* __tstate = wxPyBeginAllowThreads();
10555 result = (int)(arg1)->GetUMin();
10556
10557 wxPyEndAllowThreads(__tstate);
10558 if (PyErr_Occurred()) SWIG_fail;
10559 }
10560 resultobj = SWIG_FromInt((int)result);
10561 return resultobj;
10562 fail:
10563 return NULL;
10564 }
10565
10566
10567 static PyObject *_wrap_Joystick_GetUMax(PyObject *self, PyObject *args, PyObject *kwargs) {
10568 PyObject *resultobj;
10569 wxJoystick *arg1 = (wxJoystick *) 0 ;
10570 int result;
10571 PyObject * obj0 = 0 ;
10572 char *kwnames[] = {
10573 (char *) "self", NULL
10574 };
10575
10576 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUMax",kwnames,&obj0)) goto fail;
10577 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10578 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10579 {
10580 PyThreadState* __tstate = wxPyBeginAllowThreads();
10581 result = (int)(arg1)->GetUMax();
10582
10583 wxPyEndAllowThreads(__tstate);
10584 if (PyErr_Occurred()) SWIG_fail;
10585 }
10586 resultobj = SWIG_FromInt((int)result);
10587 return resultobj;
10588 fail:
10589 return NULL;
10590 }
10591
10592
10593 static PyObject *_wrap_Joystick_GetVMin(PyObject *self, PyObject *args, PyObject *kwargs) {
10594 PyObject *resultobj;
10595 wxJoystick *arg1 = (wxJoystick *) 0 ;
10596 int result;
10597 PyObject * obj0 = 0 ;
10598 char *kwnames[] = {
10599 (char *) "self", NULL
10600 };
10601
10602 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVMin",kwnames,&obj0)) goto fail;
10603 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10604 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10605 {
10606 PyThreadState* __tstate = wxPyBeginAllowThreads();
10607 result = (int)(arg1)->GetVMin();
10608
10609 wxPyEndAllowThreads(__tstate);
10610 if (PyErr_Occurred()) SWIG_fail;
10611 }
10612 resultobj = SWIG_FromInt((int)result);
10613 return resultobj;
10614 fail:
10615 return NULL;
10616 }
10617
10618
10619 static PyObject *_wrap_Joystick_GetVMax(PyObject *self, PyObject *args, PyObject *kwargs) {
10620 PyObject *resultobj;
10621 wxJoystick *arg1 = (wxJoystick *) 0 ;
10622 int result;
10623 PyObject * obj0 = 0 ;
10624 char *kwnames[] = {
10625 (char *) "self", NULL
10626 };
10627
10628 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVMax",kwnames,&obj0)) goto fail;
10629 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10630 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10631 {
10632 PyThreadState* __tstate = wxPyBeginAllowThreads();
10633 result = (int)(arg1)->GetVMax();
10634
10635 wxPyEndAllowThreads(__tstate);
10636 if (PyErr_Occurred()) SWIG_fail;
10637 }
10638 resultobj = SWIG_FromInt((int)result);
10639 return resultobj;
10640 fail:
10641 return NULL;
10642 }
10643
10644
10645 static PyObject *_wrap_Joystick_HasRudder(PyObject *self, PyObject *args, PyObject *kwargs) {
10646 PyObject *resultobj;
10647 wxJoystick *arg1 = (wxJoystick *) 0 ;
10648 bool result;
10649 PyObject * obj0 = 0 ;
10650 char *kwnames[] = {
10651 (char *) "self", NULL
10652 };
10653
10654 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasRudder",kwnames,&obj0)) goto fail;
10655 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10656 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10657 {
10658 PyThreadState* __tstate = wxPyBeginAllowThreads();
10659 result = (bool)(arg1)->HasRudder();
10660
10661 wxPyEndAllowThreads(__tstate);
10662 if (PyErr_Occurred()) SWIG_fail;
10663 }
10664 {
10665 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10666 }
10667 return resultobj;
10668 fail:
10669 return NULL;
10670 }
10671
10672
10673 static PyObject *_wrap_Joystick_HasZ(PyObject *self, PyObject *args, PyObject *kwargs) {
10674 PyObject *resultobj;
10675 wxJoystick *arg1 = (wxJoystick *) 0 ;
10676 bool result;
10677 PyObject * obj0 = 0 ;
10678 char *kwnames[] = {
10679 (char *) "self", NULL
10680 };
10681
10682 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasZ",kwnames,&obj0)) goto fail;
10683 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10684 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10685 {
10686 PyThreadState* __tstate = wxPyBeginAllowThreads();
10687 result = (bool)(arg1)->HasZ();
10688
10689 wxPyEndAllowThreads(__tstate);
10690 if (PyErr_Occurred()) SWIG_fail;
10691 }
10692 {
10693 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10694 }
10695 return resultobj;
10696 fail:
10697 return NULL;
10698 }
10699
10700
10701 static PyObject *_wrap_Joystick_HasU(PyObject *self, PyObject *args, PyObject *kwargs) {
10702 PyObject *resultobj;
10703 wxJoystick *arg1 = (wxJoystick *) 0 ;
10704 bool result;
10705 PyObject * obj0 = 0 ;
10706 char *kwnames[] = {
10707 (char *) "self", NULL
10708 };
10709
10710 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasU",kwnames,&obj0)) goto fail;
10711 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10712 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10713 {
10714 PyThreadState* __tstate = wxPyBeginAllowThreads();
10715 result = (bool)(arg1)->HasU();
10716
10717 wxPyEndAllowThreads(__tstate);
10718 if (PyErr_Occurred()) SWIG_fail;
10719 }
10720 {
10721 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10722 }
10723 return resultobj;
10724 fail:
10725 return NULL;
10726 }
10727
10728
10729 static PyObject *_wrap_Joystick_HasV(PyObject *self, PyObject *args, PyObject *kwargs) {
10730 PyObject *resultobj;
10731 wxJoystick *arg1 = (wxJoystick *) 0 ;
10732 bool result;
10733 PyObject * obj0 = 0 ;
10734 char *kwnames[] = {
10735 (char *) "self", NULL
10736 };
10737
10738 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasV",kwnames,&obj0)) goto fail;
10739 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10740 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10741 {
10742 PyThreadState* __tstate = wxPyBeginAllowThreads();
10743 result = (bool)(arg1)->HasV();
10744
10745 wxPyEndAllowThreads(__tstate);
10746 if (PyErr_Occurred()) SWIG_fail;
10747 }
10748 {
10749 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10750 }
10751 return resultobj;
10752 fail:
10753 return NULL;
10754 }
10755
10756
10757 static PyObject *_wrap_Joystick_HasPOV(PyObject *self, PyObject *args, PyObject *kwargs) {
10758 PyObject *resultobj;
10759 wxJoystick *arg1 = (wxJoystick *) 0 ;
10760 bool result;
10761 PyObject * obj0 = 0 ;
10762 char *kwnames[] = {
10763 (char *) "self", NULL
10764 };
10765
10766 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOV",kwnames,&obj0)) goto fail;
10767 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10768 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10769 {
10770 PyThreadState* __tstate = wxPyBeginAllowThreads();
10771 result = (bool)(arg1)->HasPOV();
10772
10773 wxPyEndAllowThreads(__tstate);
10774 if (PyErr_Occurred()) SWIG_fail;
10775 }
10776 {
10777 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10778 }
10779 return resultobj;
10780 fail:
10781 return NULL;
10782 }
10783
10784
10785 static PyObject *_wrap_Joystick_HasPOV4Dir(PyObject *self, PyObject *args, PyObject *kwargs) {
10786 PyObject *resultobj;
10787 wxJoystick *arg1 = (wxJoystick *) 0 ;
10788 bool result;
10789 PyObject * obj0 = 0 ;
10790 char *kwnames[] = {
10791 (char *) "self", NULL
10792 };
10793
10794 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOV4Dir",kwnames,&obj0)) goto fail;
10795 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10796 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10797 {
10798 PyThreadState* __tstate = wxPyBeginAllowThreads();
10799 result = (bool)(arg1)->HasPOV4Dir();
10800
10801 wxPyEndAllowThreads(__tstate);
10802 if (PyErr_Occurred()) SWIG_fail;
10803 }
10804 {
10805 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10806 }
10807 return resultobj;
10808 fail:
10809 return NULL;
10810 }
10811
10812
10813 static PyObject *_wrap_Joystick_HasPOVCTS(PyObject *self, PyObject *args, PyObject *kwargs) {
10814 PyObject *resultobj;
10815 wxJoystick *arg1 = (wxJoystick *) 0 ;
10816 bool result;
10817 PyObject * obj0 = 0 ;
10818 char *kwnames[] = {
10819 (char *) "self", NULL
10820 };
10821
10822 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOVCTS",kwnames,&obj0)) goto fail;
10823 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10824 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10825 {
10826 PyThreadState* __tstate = wxPyBeginAllowThreads();
10827 result = (bool)(arg1)->HasPOVCTS();
10828
10829 wxPyEndAllowThreads(__tstate);
10830 if (PyErr_Occurred()) SWIG_fail;
10831 }
10832 {
10833 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10834 }
10835 return resultobj;
10836 fail:
10837 return NULL;
10838 }
10839
10840
10841 static PyObject *_wrap_Joystick_SetCapture(PyObject *self, PyObject *args, PyObject *kwargs) {
10842 PyObject *resultobj;
10843 wxJoystick *arg1 = (wxJoystick *) 0 ;
10844 wxWindow *arg2 = (wxWindow *) 0 ;
10845 int arg3 = (int) 0 ;
10846 bool result;
10847 PyObject * obj0 = 0 ;
10848 PyObject * obj1 = 0 ;
10849 PyObject * obj2 = 0 ;
10850 char *kwnames[] = {
10851 (char *) "self",(char *) "win",(char *) "pollingFreq", NULL
10852 };
10853
10854 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Joystick_SetCapture",kwnames,&obj0,&obj1,&obj2)) goto fail;
10855 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10856 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10857 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
10858 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10859 if (obj2) {
10860 arg3 = (int) SWIG_AsInt(obj2);
10861 if (PyErr_Occurred()) SWIG_fail;
10862 }
10863 {
10864 PyThreadState* __tstate = wxPyBeginAllowThreads();
10865 result = (bool)(arg1)->SetCapture(arg2,arg3);
10866
10867 wxPyEndAllowThreads(__tstate);
10868 if (PyErr_Occurred()) SWIG_fail;
10869 }
10870 {
10871 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10872 }
10873 return resultobj;
10874 fail:
10875 return NULL;
10876 }
10877
10878
10879 static PyObject *_wrap_Joystick_ReleaseCapture(PyObject *self, PyObject *args, PyObject *kwargs) {
10880 PyObject *resultobj;
10881 wxJoystick *arg1 = (wxJoystick *) 0 ;
10882 bool result;
10883 PyObject * obj0 = 0 ;
10884 char *kwnames[] = {
10885 (char *) "self", NULL
10886 };
10887
10888 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_ReleaseCapture",kwnames,&obj0)) goto fail;
10889 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10890 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10891 {
10892 PyThreadState* __tstate = wxPyBeginAllowThreads();
10893 result = (bool)(arg1)->ReleaseCapture();
10894
10895 wxPyEndAllowThreads(__tstate);
10896 if (PyErr_Occurred()) SWIG_fail;
10897 }
10898 {
10899 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10900 }
10901 return resultobj;
10902 fail:
10903 return NULL;
10904 }
10905
10906
10907 static PyObject * Joystick_swigregister(PyObject *self, PyObject *args) {
10908 PyObject *obj;
10909 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10910 SWIG_TypeClientData(SWIGTYPE_p_wxJoystick, obj);
10911 Py_INCREF(obj);
10912 return Py_BuildValue((char *)"");
10913 }
10914 static PyObject *_wrap_JoystickEvent_m_pos_set(PyObject *self, PyObject *args, PyObject *kwargs) {
10915 PyObject *resultobj;
10916 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10917 wxPoint *arg2 = (wxPoint *) 0 ;
10918 PyObject * obj0 = 0 ;
10919 PyObject * obj1 = 0 ;
10920 char *kwnames[] = {
10921 (char *) "self",(char *) "m_pos", NULL
10922 };
10923
10924 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_pos_set",kwnames,&obj0,&obj1)) goto fail;
10925 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10926 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10927 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPoint,
10928 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10929 if (arg1) (arg1)->m_pos = *arg2;
10930
10931 Py_INCREF(Py_None); resultobj = Py_None;
10932 return resultobj;
10933 fail:
10934 return NULL;
10935 }
10936
10937
10938 static PyObject *_wrap_JoystickEvent_m_pos_get(PyObject *self, PyObject *args, PyObject *kwargs) {
10939 PyObject *resultobj;
10940 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10941 wxPoint *result;
10942 PyObject * obj0 = 0 ;
10943 char *kwnames[] = {
10944 (char *) "self", NULL
10945 };
10946
10947 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_pos_get",kwnames,&obj0)) goto fail;
10948 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10949 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10950 result = (wxPoint *)& ((arg1)->m_pos);
10951
10952 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0);
10953 return resultobj;
10954 fail:
10955 return NULL;
10956 }
10957
10958
10959 static PyObject *_wrap_JoystickEvent_m_zPosition_set(PyObject *self, PyObject *args, PyObject *kwargs) {
10960 PyObject *resultobj;
10961 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10962 int arg2 ;
10963 PyObject * obj0 = 0 ;
10964 PyObject * obj1 = 0 ;
10965 char *kwnames[] = {
10966 (char *) "self",(char *) "m_zPosition", NULL
10967 };
10968
10969 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_zPosition_set",kwnames,&obj0,&obj1)) goto fail;
10970 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10971 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10972 arg2 = (int) SWIG_AsInt(obj1);
10973 if (PyErr_Occurred()) SWIG_fail;
10974 if (arg1) (arg1)->m_zPosition = arg2;
10975
10976 Py_INCREF(Py_None); resultobj = Py_None;
10977 return resultobj;
10978 fail:
10979 return NULL;
10980 }
10981
10982
10983 static PyObject *_wrap_JoystickEvent_m_zPosition_get(PyObject *self, PyObject *args, PyObject *kwargs) {
10984 PyObject *resultobj;
10985 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10986 int result;
10987 PyObject * obj0 = 0 ;
10988 char *kwnames[] = {
10989 (char *) "self", NULL
10990 };
10991
10992 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_zPosition_get",kwnames,&obj0)) goto fail;
10993 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10994 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10995 result = (int) ((arg1)->m_zPosition);
10996
10997 resultobj = SWIG_FromInt((int)result);
10998 return resultobj;
10999 fail:
11000 return NULL;
11001 }
11002
11003
11004 static PyObject *_wrap_JoystickEvent_m_buttonChange_set(PyObject *self, PyObject *args, PyObject *kwargs) {
11005 PyObject *resultobj;
11006 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11007 int arg2 ;
11008 PyObject * obj0 = 0 ;
11009 PyObject * obj1 = 0 ;
11010 char *kwnames[] = {
11011 (char *) "self",(char *) "m_buttonChange", NULL
11012 };
11013
11014 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_buttonChange_set",kwnames,&obj0,&obj1)) goto fail;
11015 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11016 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11017 arg2 = (int) SWIG_AsInt(obj1);
11018 if (PyErr_Occurred()) SWIG_fail;
11019 if (arg1) (arg1)->m_buttonChange = arg2;
11020
11021 Py_INCREF(Py_None); resultobj = Py_None;
11022 return resultobj;
11023 fail:
11024 return NULL;
11025 }
11026
11027
11028 static PyObject *_wrap_JoystickEvent_m_buttonChange_get(PyObject *self, PyObject *args, PyObject *kwargs) {
11029 PyObject *resultobj;
11030 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11031 int result;
11032 PyObject * obj0 = 0 ;
11033 char *kwnames[] = {
11034 (char *) "self", NULL
11035 };
11036
11037 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_buttonChange_get",kwnames,&obj0)) goto fail;
11038 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11039 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11040 result = (int) ((arg1)->m_buttonChange);
11041
11042 resultobj = SWIG_FromInt((int)result);
11043 return resultobj;
11044 fail:
11045 return NULL;
11046 }
11047
11048
11049 static PyObject *_wrap_JoystickEvent_m_buttonState_set(PyObject *self, PyObject *args, PyObject *kwargs) {
11050 PyObject *resultobj;
11051 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11052 int arg2 ;
11053 PyObject * obj0 = 0 ;
11054 PyObject * obj1 = 0 ;
11055 char *kwnames[] = {
11056 (char *) "self",(char *) "m_buttonState", NULL
11057 };
11058
11059 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_buttonState_set",kwnames,&obj0,&obj1)) goto fail;
11060 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11061 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11062 arg2 = (int) SWIG_AsInt(obj1);
11063 if (PyErr_Occurred()) SWIG_fail;
11064 if (arg1) (arg1)->m_buttonState = arg2;
11065
11066 Py_INCREF(Py_None); resultobj = Py_None;
11067 return resultobj;
11068 fail:
11069 return NULL;
11070 }
11071
11072
11073 static PyObject *_wrap_JoystickEvent_m_buttonState_get(PyObject *self, PyObject *args, PyObject *kwargs) {
11074 PyObject *resultobj;
11075 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11076 int result;
11077 PyObject * obj0 = 0 ;
11078 char *kwnames[] = {
11079 (char *) "self", NULL
11080 };
11081
11082 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_buttonState_get",kwnames,&obj0)) goto fail;
11083 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11084 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11085 result = (int) ((arg1)->m_buttonState);
11086
11087 resultobj = SWIG_FromInt((int)result);
11088 return resultobj;
11089 fail:
11090 return NULL;
11091 }
11092
11093
11094 static PyObject *_wrap_JoystickEvent_m_joyStick_set(PyObject *self, PyObject *args, PyObject *kwargs) {
11095 PyObject *resultobj;
11096 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11097 int arg2 ;
11098 PyObject * obj0 = 0 ;
11099 PyObject * obj1 = 0 ;
11100 char *kwnames[] = {
11101 (char *) "self",(char *) "m_joyStick", NULL
11102 };
11103
11104 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_joyStick_set",kwnames,&obj0,&obj1)) goto fail;
11105 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11106 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11107 arg2 = (int) SWIG_AsInt(obj1);
11108 if (PyErr_Occurred()) SWIG_fail;
11109 if (arg1) (arg1)->m_joyStick = arg2;
11110
11111 Py_INCREF(Py_None); resultobj = Py_None;
11112 return resultobj;
11113 fail:
11114 return NULL;
11115 }
11116
11117
11118 static PyObject *_wrap_JoystickEvent_m_joyStick_get(PyObject *self, PyObject *args, PyObject *kwargs) {
11119 PyObject *resultobj;
11120 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11121 int result;
11122 PyObject * obj0 = 0 ;
11123 char *kwnames[] = {
11124 (char *) "self", NULL
11125 };
11126
11127 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_joyStick_get",kwnames,&obj0)) goto fail;
11128 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11129 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11130 result = (int) ((arg1)->m_joyStick);
11131
11132 resultobj = SWIG_FromInt((int)result);
11133 return resultobj;
11134 fail:
11135 return NULL;
11136 }
11137
11138
11139 static PyObject *_wrap_new_JoystickEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
11140 PyObject *resultobj;
11141 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
11142 int arg2 = (int) 0 ;
11143 int arg3 = (int) wxJOYSTICK1 ;
11144 int arg4 = (int) 0 ;
11145 wxJoystickEvent *result;
11146 PyObject * obj0 = 0 ;
11147 PyObject * obj1 = 0 ;
11148 PyObject * obj2 = 0 ;
11149 PyObject * obj3 = 0 ;
11150 char *kwnames[] = {
11151 (char *) "type",(char *) "state",(char *) "joystick",(char *) "change", NULL
11152 };
11153
11154 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_JoystickEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11155 if (obj0) {
11156 arg1 = (wxEventType) SWIG_AsInt(obj0);
11157 if (PyErr_Occurred()) SWIG_fail;
11158 }
11159 if (obj1) {
11160 arg2 = (int) SWIG_AsInt(obj1);
11161 if (PyErr_Occurred()) SWIG_fail;
11162 }
11163 if (obj2) {
11164 arg3 = (int) SWIG_AsInt(obj2);
11165 if (PyErr_Occurred()) SWIG_fail;
11166 }
11167 if (obj3) {
11168 arg4 = (int) SWIG_AsInt(obj3);
11169 if (PyErr_Occurred()) SWIG_fail;
11170 }
11171 {
11172 PyThreadState* __tstate = wxPyBeginAllowThreads();
11173 result = (wxJoystickEvent *)new wxJoystickEvent(arg1,arg2,arg3,arg4);
11174
11175 wxPyEndAllowThreads(__tstate);
11176 if (PyErr_Occurred()) SWIG_fail;
11177 }
11178 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxJoystickEvent, 1);
11179 return resultobj;
11180 fail:
11181 return NULL;
11182 }
11183
11184
11185 static PyObject *_wrap_JoystickEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
11186 PyObject *resultobj;
11187 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11188 wxPoint result;
11189 PyObject * obj0 = 0 ;
11190 char *kwnames[] = {
11191 (char *) "self", NULL
11192 };
11193
11194 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetPosition",kwnames,&obj0)) goto fail;
11195 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11196 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11197 {
11198 PyThreadState* __tstate = wxPyBeginAllowThreads();
11199 result = ((wxJoystickEvent const *)arg1)->GetPosition();
11200
11201 wxPyEndAllowThreads(__tstate);
11202 if (PyErr_Occurred()) SWIG_fail;
11203 }
11204 {
11205 wxPoint * resultptr;
11206 resultptr = new wxPoint((wxPoint &) result);
11207 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
11208 }
11209 return resultobj;
11210 fail:
11211 return NULL;
11212 }
11213
11214
11215 static PyObject *_wrap_JoystickEvent_GetZPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
11216 PyObject *resultobj;
11217 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11218 int result;
11219 PyObject * obj0 = 0 ;
11220 char *kwnames[] = {
11221 (char *) "self", NULL
11222 };
11223
11224 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetZPosition",kwnames,&obj0)) goto fail;
11225 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11226 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11227 {
11228 PyThreadState* __tstate = wxPyBeginAllowThreads();
11229 result = (int)((wxJoystickEvent const *)arg1)->GetZPosition();
11230
11231 wxPyEndAllowThreads(__tstate);
11232 if (PyErr_Occurred()) SWIG_fail;
11233 }
11234 resultobj = SWIG_FromInt((int)result);
11235 return resultobj;
11236 fail:
11237 return NULL;
11238 }
11239
11240
11241 static PyObject *_wrap_JoystickEvent_GetButtonState(PyObject *self, PyObject *args, PyObject *kwargs) {
11242 PyObject *resultobj;
11243 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11244 int result;
11245 PyObject * obj0 = 0 ;
11246 char *kwnames[] = {
11247 (char *) "self", NULL
11248 };
11249
11250 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetButtonState",kwnames,&obj0)) goto fail;
11251 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11252 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11253 {
11254 PyThreadState* __tstate = wxPyBeginAllowThreads();
11255 result = (int)((wxJoystickEvent const *)arg1)->GetButtonState();
11256
11257 wxPyEndAllowThreads(__tstate);
11258 if (PyErr_Occurred()) SWIG_fail;
11259 }
11260 resultobj = SWIG_FromInt((int)result);
11261 return resultobj;
11262 fail:
11263 return NULL;
11264 }
11265
11266
11267 static PyObject *_wrap_JoystickEvent_GetButtonChange(PyObject *self, PyObject *args, PyObject *kwargs) {
11268 PyObject *resultobj;
11269 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11270 int result;
11271 PyObject * obj0 = 0 ;
11272 char *kwnames[] = {
11273 (char *) "self", NULL
11274 };
11275
11276 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetButtonChange",kwnames,&obj0)) goto fail;
11277 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11278 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11279 {
11280 PyThreadState* __tstate = wxPyBeginAllowThreads();
11281 result = (int)((wxJoystickEvent const *)arg1)->GetButtonChange();
11282
11283 wxPyEndAllowThreads(__tstate);
11284 if (PyErr_Occurred()) SWIG_fail;
11285 }
11286 resultobj = SWIG_FromInt((int)result);
11287 return resultobj;
11288 fail:
11289 return NULL;
11290 }
11291
11292
11293 static PyObject *_wrap_JoystickEvent_GetJoystick(PyObject *self, PyObject *args, PyObject *kwargs) {
11294 PyObject *resultobj;
11295 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11296 int result;
11297 PyObject * obj0 = 0 ;
11298 char *kwnames[] = {
11299 (char *) "self", NULL
11300 };
11301
11302 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetJoystick",kwnames,&obj0)) goto fail;
11303 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11304 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11305 {
11306 PyThreadState* __tstate = wxPyBeginAllowThreads();
11307 result = (int)((wxJoystickEvent const *)arg1)->GetJoystick();
11308
11309 wxPyEndAllowThreads(__tstate);
11310 if (PyErr_Occurred()) SWIG_fail;
11311 }
11312 resultobj = SWIG_FromInt((int)result);
11313 return resultobj;
11314 fail:
11315 return NULL;
11316 }
11317
11318
11319 static PyObject *_wrap_JoystickEvent_SetJoystick(PyObject *self, PyObject *args, PyObject *kwargs) {
11320 PyObject *resultobj;
11321 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11322 int arg2 ;
11323 PyObject * obj0 = 0 ;
11324 PyObject * obj1 = 0 ;
11325 char *kwnames[] = {
11326 (char *) "self",(char *) "stick", NULL
11327 };
11328
11329 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetJoystick",kwnames,&obj0,&obj1)) goto fail;
11330 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11331 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11332 arg2 = (int) SWIG_AsInt(obj1);
11333 if (PyErr_Occurred()) SWIG_fail;
11334 {
11335 PyThreadState* __tstate = wxPyBeginAllowThreads();
11336 (arg1)->SetJoystick(arg2);
11337
11338 wxPyEndAllowThreads(__tstate);
11339 if (PyErr_Occurred()) SWIG_fail;
11340 }
11341 Py_INCREF(Py_None); resultobj = Py_None;
11342 return resultobj;
11343 fail:
11344 return NULL;
11345 }
11346
11347
11348 static PyObject *_wrap_JoystickEvent_SetButtonState(PyObject *self, PyObject *args, PyObject *kwargs) {
11349 PyObject *resultobj;
11350 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11351 int arg2 ;
11352 PyObject * obj0 = 0 ;
11353 PyObject * obj1 = 0 ;
11354 char *kwnames[] = {
11355 (char *) "self",(char *) "state", NULL
11356 };
11357
11358 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetButtonState",kwnames,&obj0,&obj1)) goto fail;
11359 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11360 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11361 arg2 = (int) SWIG_AsInt(obj1);
11362 if (PyErr_Occurred()) SWIG_fail;
11363 {
11364 PyThreadState* __tstate = wxPyBeginAllowThreads();
11365 (arg1)->SetButtonState(arg2);
11366
11367 wxPyEndAllowThreads(__tstate);
11368 if (PyErr_Occurred()) SWIG_fail;
11369 }
11370 Py_INCREF(Py_None); resultobj = Py_None;
11371 return resultobj;
11372 fail:
11373 return NULL;
11374 }
11375
11376
11377 static PyObject *_wrap_JoystickEvent_SetButtonChange(PyObject *self, PyObject *args, PyObject *kwargs) {
11378 PyObject *resultobj;
11379 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11380 int arg2 ;
11381 PyObject * obj0 = 0 ;
11382 PyObject * obj1 = 0 ;
11383 char *kwnames[] = {
11384 (char *) "self",(char *) "change", NULL
11385 };
11386
11387 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetButtonChange",kwnames,&obj0,&obj1)) goto fail;
11388 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11389 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11390 arg2 = (int) SWIG_AsInt(obj1);
11391 if (PyErr_Occurred()) SWIG_fail;
11392 {
11393 PyThreadState* __tstate = wxPyBeginAllowThreads();
11394 (arg1)->SetButtonChange(arg2);
11395
11396 wxPyEndAllowThreads(__tstate);
11397 if (PyErr_Occurred()) SWIG_fail;
11398 }
11399 Py_INCREF(Py_None); resultobj = Py_None;
11400 return resultobj;
11401 fail:
11402 return NULL;
11403 }
11404
11405
11406 static PyObject *_wrap_JoystickEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
11407 PyObject *resultobj;
11408 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11409 wxPoint *arg2 = 0 ;
11410 wxPoint temp2 ;
11411 PyObject * obj0 = 0 ;
11412 PyObject * obj1 = 0 ;
11413 char *kwnames[] = {
11414 (char *) "self",(char *) "pos", NULL
11415 };
11416
11417 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail;
11418 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11419 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11420 {
11421 arg2 = &temp2;
11422 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11423 }
11424 {
11425 PyThreadState* __tstate = wxPyBeginAllowThreads();
11426 (arg1)->SetPosition((wxPoint const &)*arg2);
11427
11428 wxPyEndAllowThreads(__tstate);
11429 if (PyErr_Occurred()) SWIG_fail;
11430 }
11431 Py_INCREF(Py_None); resultobj = Py_None;
11432 return resultobj;
11433 fail:
11434 return NULL;
11435 }
11436
11437
11438 static PyObject *_wrap_JoystickEvent_SetZPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
11439 PyObject *resultobj;
11440 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11441 int arg2 ;
11442 PyObject * obj0 = 0 ;
11443 PyObject * obj1 = 0 ;
11444 char *kwnames[] = {
11445 (char *) "self",(char *) "zPos", NULL
11446 };
11447
11448 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetZPosition",kwnames,&obj0,&obj1)) goto fail;
11449 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11450 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11451 arg2 = (int) SWIG_AsInt(obj1);
11452 if (PyErr_Occurred()) SWIG_fail;
11453 {
11454 PyThreadState* __tstate = wxPyBeginAllowThreads();
11455 (arg1)->SetZPosition(arg2);
11456
11457 wxPyEndAllowThreads(__tstate);
11458 if (PyErr_Occurred()) SWIG_fail;
11459 }
11460 Py_INCREF(Py_None); resultobj = Py_None;
11461 return resultobj;
11462 fail:
11463 return NULL;
11464 }
11465
11466
11467 static PyObject *_wrap_JoystickEvent_IsButton(PyObject *self, PyObject *args, PyObject *kwargs) {
11468 PyObject *resultobj;
11469 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11470 bool result;
11471 PyObject * obj0 = 0 ;
11472 char *kwnames[] = {
11473 (char *) "self", NULL
11474 };
11475
11476 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsButton",kwnames,&obj0)) goto fail;
11477 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11478 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11479 {
11480 PyThreadState* __tstate = wxPyBeginAllowThreads();
11481 result = (bool)((wxJoystickEvent const *)arg1)->IsButton();
11482
11483 wxPyEndAllowThreads(__tstate);
11484 if (PyErr_Occurred()) SWIG_fail;
11485 }
11486 {
11487 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11488 }
11489 return resultobj;
11490 fail:
11491 return NULL;
11492 }
11493
11494
11495 static PyObject *_wrap_JoystickEvent_IsMove(PyObject *self, PyObject *args, PyObject *kwargs) {
11496 PyObject *resultobj;
11497 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11498 bool result;
11499 PyObject * obj0 = 0 ;
11500 char *kwnames[] = {
11501 (char *) "self", NULL
11502 };
11503
11504 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsMove",kwnames,&obj0)) goto fail;
11505 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11506 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11507 {
11508 PyThreadState* __tstate = wxPyBeginAllowThreads();
11509 result = (bool)((wxJoystickEvent const *)arg1)->IsMove();
11510
11511 wxPyEndAllowThreads(__tstate);
11512 if (PyErr_Occurred()) SWIG_fail;
11513 }
11514 {
11515 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11516 }
11517 return resultobj;
11518 fail:
11519 return NULL;
11520 }
11521
11522
11523 static PyObject *_wrap_JoystickEvent_IsZMove(PyObject *self, PyObject *args, PyObject *kwargs) {
11524 PyObject *resultobj;
11525 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11526 bool result;
11527 PyObject * obj0 = 0 ;
11528 char *kwnames[] = {
11529 (char *) "self", NULL
11530 };
11531
11532 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsZMove",kwnames,&obj0)) goto fail;
11533 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11534 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11535 {
11536 PyThreadState* __tstate = wxPyBeginAllowThreads();
11537 result = (bool)((wxJoystickEvent const *)arg1)->IsZMove();
11538
11539 wxPyEndAllowThreads(__tstate);
11540 if (PyErr_Occurred()) SWIG_fail;
11541 }
11542 {
11543 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11544 }
11545 return resultobj;
11546 fail:
11547 return NULL;
11548 }
11549
11550
11551 static PyObject *_wrap_JoystickEvent_ButtonDown(PyObject *self, PyObject *args, PyObject *kwargs) {
11552 PyObject *resultobj;
11553 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11554 int arg2 = (int) wxJOY_BUTTON_ANY ;
11555 bool result;
11556 PyObject * obj0 = 0 ;
11557 PyObject * obj1 = 0 ;
11558 char *kwnames[] = {
11559 (char *) "self",(char *) "but", NULL
11560 };
11561
11562 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonDown",kwnames,&obj0,&obj1)) goto fail;
11563 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11564 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11565 if (obj1) {
11566 arg2 = (int) SWIG_AsInt(obj1);
11567 if (PyErr_Occurred()) SWIG_fail;
11568 }
11569 {
11570 PyThreadState* __tstate = wxPyBeginAllowThreads();
11571 result = (bool)((wxJoystickEvent const *)arg1)->ButtonDown(arg2);
11572
11573 wxPyEndAllowThreads(__tstate);
11574 if (PyErr_Occurred()) SWIG_fail;
11575 }
11576 {
11577 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11578 }
11579 return resultobj;
11580 fail:
11581 return NULL;
11582 }
11583
11584
11585 static PyObject *_wrap_JoystickEvent_ButtonUp(PyObject *self, PyObject *args, PyObject *kwargs) {
11586 PyObject *resultobj;
11587 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11588 int arg2 = (int) wxJOY_BUTTON_ANY ;
11589 bool result;
11590 PyObject * obj0 = 0 ;
11591 PyObject * obj1 = 0 ;
11592 char *kwnames[] = {
11593 (char *) "self",(char *) "but", NULL
11594 };
11595
11596 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonUp",kwnames,&obj0,&obj1)) goto fail;
11597 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11598 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11599 if (obj1) {
11600 arg2 = (int) SWIG_AsInt(obj1);
11601 if (PyErr_Occurred()) SWIG_fail;
11602 }
11603 {
11604 PyThreadState* __tstate = wxPyBeginAllowThreads();
11605 result = (bool)((wxJoystickEvent const *)arg1)->ButtonUp(arg2);
11606
11607 wxPyEndAllowThreads(__tstate);
11608 if (PyErr_Occurred()) SWIG_fail;
11609 }
11610 {
11611 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11612 }
11613 return resultobj;
11614 fail:
11615 return NULL;
11616 }
11617
11618
11619 static PyObject *_wrap_JoystickEvent_ButtonIsDown(PyObject *self, PyObject *args, PyObject *kwargs) {
11620 PyObject *resultobj;
11621 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11622 int arg2 = (int) wxJOY_BUTTON_ANY ;
11623 bool result;
11624 PyObject * obj0 = 0 ;
11625 PyObject * obj1 = 0 ;
11626 char *kwnames[] = {
11627 (char *) "self",(char *) "but", NULL
11628 };
11629
11630 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonIsDown",kwnames,&obj0,&obj1)) goto fail;
11631 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11632 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11633 if (obj1) {
11634 arg2 = (int) SWIG_AsInt(obj1);
11635 if (PyErr_Occurred()) SWIG_fail;
11636 }
11637 {
11638 PyThreadState* __tstate = wxPyBeginAllowThreads();
11639 result = (bool)((wxJoystickEvent const *)arg1)->ButtonIsDown(arg2);
11640
11641 wxPyEndAllowThreads(__tstate);
11642 if (PyErr_Occurred()) SWIG_fail;
11643 }
11644 {
11645 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11646 }
11647 return resultobj;
11648 fail:
11649 return NULL;
11650 }
11651
11652
11653 static PyObject * JoystickEvent_swigregister(PyObject *self, PyObject *args) {
11654 PyObject *obj;
11655 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11656 SWIG_TypeClientData(SWIGTYPE_p_wxJoystickEvent, obj);
11657 Py_INCREF(obj);
11658 return Py_BuildValue((char *)"");
11659 }
11660 static PyObject *_wrap_new_Sound(PyObject *self, PyObject *args, PyObject *kwargs) {
11661 PyObject *resultobj;
11662 wxString const &arg1_defvalue = wxPyEmptyString ;
11663 wxString *arg1 = (wxString *) &arg1_defvalue ;
11664 wxSound *result;
11665 bool temp1 = False ;
11666 PyObject * obj0 = 0 ;
11667 char *kwnames[] = {
11668 (char *) "fileName", NULL
11669 };
11670
11671 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Sound",kwnames,&obj0)) goto fail;
11672 if (obj0) {
11673 {
11674 arg1 = wxString_in_helper(obj0);
11675 if (arg1 == NULL) SWIG_fail;
11676 temp1 = True;
11677 }
11678 }
11679 {
11680 if (!wxPyCheckForApp()) SWIG_fail;
11681 PyThreadState* __tstate = wxPyBeginAllowThreads();
11682 result = (wxSound *)new_wxSound((wxString const &)*arg1);
11683
11684 wxPyEndAllowThreads(__tstate);
11685 if (PyErr_Occurred()) SWIG_fail;
11686 }
11687 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSound, 1);
11688 {
11689 if (temp1)
11690 delete arg1;
11691 }
11692 return resultobj;
11693 fail:
11694 {
11695 if (temp1)
11696 delete arg1;
11697 }
11698 return NULL;
11699 }
11700
11701
11702 static PyObject *_wrap_new_SoundFromData(PyObject *self, PyObject *args, PyObject *kwargs) {
11703 PyObject *resultobj;
11704 PyObject *arg1 = (PyObject *) 0 ;
11705 wxSound *result;
11706 PyObject * obj0 = 0 ;
11707 char *kwnames[] = {
11708 (char *) "data", NULL
11709 };
11710
11711 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_SoundFromData",kwnames,&obj0)) goto fail;
11712 arg1 = obj0;
11713 {
11714 if (!wxPyCheckForApp()) SWIG_fail;
11715 PyThreadState* __tstate = wxPyBeginAllowThreads();
11716 result = (wxSound *)new_wxSound(arg1);
11717
11718 wxPyEndAllowThreads(__tstate);
11719 if (PyErr_Occurred()) SWIG_fail;
11720 }
11721 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSound, 1);
11722 return resultobj;
11723 fail:
11724 return NULL;
11725 }
11726
11727
11728 static PyObject *_wrap_delete_Sound(PyObject *self, PyObject *args, PyObject *kwargs) {
11729 PyObject *resultobj;
11730 wxSound *arg1 = (wxSound *) 0 ;
11731 PyObject * obj0 = 0 ;
11732 char *kwnames[] = {
11733 (char *) "self", NULL
11734 };
11735
11736 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Sound",kwnames,&obj0)) goto fail;
11737 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound,
11738 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11739 {
11740 PyThreadState* __tstate = wxPyBeginAllowThreads();
11741 delete arg1;
11742
11743 wxPyEndAllowThreads(__tstate);
11744 if (PyErr_Occurred()) SWIG_fail;
11745 }
11746 Py_INCREF(Py_None); resultobj = Py_None;
11747 return resultobj;
11748 fail:
11749 return NULL;
11750 }
11751
11752
11753 static PyObject *_wrap_Sound_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
11754 PyObject *resultobj;
11755 wxSound *arg1 = (wxSound *) 0 ;
11756 wxString *arg2 = 0 ;
11757 bool result;
11758 bool temp2 = False ;
11759 PyObject * obj0 = 0 ;
11760 PyObject * obj1 = 0 ;
11761 char *kwnames[] = {
11762 (char *) "self",(char *) "fileName", NULL
11763 };
11764
11765 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sound_Create",kwnames,&obj0,&obj1)) goto fail;
11766 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound,
11767 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11768 {
11769 arg2 = wxString_in_helper(obj1);
11770 if (arg2 == NULL) SWIG_fail;
11771 temp2 = True;
11772 }
11773 {
11774 PyThreadState* __tstate = wxPyBeginAllowThreads();
11775 result = (bool)(arg1)->Create((wxString const &)*arg2);
11776
11777 wxPyEndAllowThreads(__tstate);
11778 if (PyErr_Occurred()) SWIG_fail;
11779 }
11780 {
11781 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11782 }
11783 {
11784 if (temp2)
11785 delete arg2;
11786 }
11787 return resultobj;
11788 fail:
11789 {
11790 if (temp2)
11791 delete arg2;
11792 }
11793 return NULL;
11794 }
11795
11796
11797 static PyObject *_wrap_Sound_CreateFromData(PyObject *self, PyObject *args, PyObject *kwargs) {
11798 PyObject *resultobj;
11799 wxSound *arg1 = (wxSound *) 0 ;
11800 PyObject *arg2 = (PyObject *) 0 ;
11801 bool result;
11802 PyObject * obj0 = 0 ;
11803 PyObject * obj1 = 0 ;
11804 char *kwnames[] = {
11805 (char *) "self",(char *) "data", NULL
11806 };
11807
11808 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sound_CreateFromData",kwnames,&obj0,&obj1)) goto fail;
11809 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound,
11810 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11811 arg2 = obj1;
11812 {
11813 PyThreadState* __tstate = wxPyBeginAllowThreads();
11814 result = (bool)wxSound_CreateFromData(arg1,arg2);
11815
11816 wxPyEndAllowThreads(__tstate);
11817 if (PyErr_Occurred()) SWIG_fail;
11818 }
11819 {
11820 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11821 }
11822 return resultobj;
11823 fail:
11824 return NULL;
11825 }
11826
11827
11828 static PyObject *_wrap_Sound_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
11829 PyObject *resultobj;
11830 wxSound *arg1 = (wxSound *) 0 ;
11831 bool result;
11832 PyObject * obj0 = 0 ;
11833 char *kwnames[] = {
11834 (char *) "self", NULL
11835 };
11836
11837 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sound_IsOk",kwnames,&obj0)) goto fail;
11838 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound,
11839 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11840 {
11841 PyThreadState* __tstate = wxPyBeginAllowThreads();
11842 result = (bool)(arg1)->IsOk();
11843
11844 wxPyEndAllowThreads(__tstate);
11845 if (PyErr_Occurred()) SWIG_fail;
11846 }
11847 {
11848 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11849 }
11850 return resultobj;
11851 fail:
11852 return NULL;
11853 }
11854
11855
11856 static PyObject *_wrap_Sound_Play(PyObject *self, PyObject *args, PyObject *kwargs) {
11857 PyObject *resultobj;
11858 wxSound *arg1 = (wxSound *) 0 ;
11859 unsigned int arg2 = (unsigned int) wxSOUND_ASYNC ;
11860 bool result;
11861 PyObject * obj0 = 0 ;
11862 PyObject * obj1 = 0 ;
11863 char *kwnames[] = {
11864 (char *) "self",(char *) "flags", NULL
11865 };
11866
11867 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Sound_Play",kwnames,&obj0,&obj1)) goto fail;
11868 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound,
11869 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11870 if (obj1) {
11871 arg2 = (unsigned int) SWIG_AsUnsignedInt(obj1);
11872 if (PyErr_Occurred()) SWIG_fail;
11873 }
11874 {
11875 if (!wxPyCheckForApp()) SWIG_fail;
11876 PyThreadState* __tstate = wxPyBeginAllowThreads();
11877 result = (bool)((wxSound const *)arg1)->Play(arg2);
11878
11879 wxPyEndAllowThreads(__tstate);
11880 if (PyErr_Occurred()) SWIG_fail;
11881 }
11882 {
11883 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11884 }
11885 return resultobj;
11886 fail:
11887 return NULL;
11888 }
11889
11890
11891 static PyObject *_wrap_Sound_PlaySound(PyObject *self, PyObject *args, PyObject *kwargs) {
11892 PyObject *resultobj;
11893 wxString *arg1 = 0 ;
11894 unsigned int arg2 = (unsigned int) wxSOUND_ASYNC ;
11895 bool result;
11896 bool temp1 = False ;
11897 PyObject * obj0 = 0 ;
11898 PyObject * obj1 = 0 ;
11899 char *kwnames[] = {
11900 (char *) "filename",(char *) "flags", NULL
11901 };
11902
11903 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Sound_PlaySound",kwnames,&obj0,&obj1)) goto fail;
11904 {
11905 arg1 = wxString_in_helper(obj0);
11906 if (arg1 == NULL) SWIG_fail;
11907 temp1 = True;
11908 }
11909 if (obj1) {
11910 arg2 = (unsigned int) SWIG_AsUnsignedInt(obj1);
11911 if (PyErr_Occurred()) SWIG_fail;
11912 }
11913 {
11914 if (!wxPyCheckForApp()) SWIG_fail;
11915 PyThreadState* __tstate = wxPyBeginAllowThreads();
11916 result = (bool)wxSound::Play((wxString const &)*arg1,arg2);
11917
11918 wxPyEndAllowThreads(__tstate);
11919 if (PyErr_Occurred()) SWIG_fail;
11920 }
11921 {
11922 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11923 }
11924 {
11925 if (temp1)
11926 delete arg1;
11927 }
11928 return resultobj;
11929 fail:
11930 {
11931 if (temp1)
11932 delete arg1;
11933 }
11934 return NULL;
11935 }
11936
11937
11938 static PyObject *_wrap_Sound_Stop(PyObject *self, PyObject *args, PyObject *kwargs) {
11939 PyObject *resultobj;
11940 char *kwnames[] = {
11941 NULL
11942 };
11943
11944 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Sound_Stop",kwnames)) goto fail;
11945 {
11946 if (!wxPyCheckForApp()) SWIG_fail;
11947 PyThreadState* __tstate = wxPyBeginAllowThreads();
11948 Sound_Stop();
11949
11950 wxPyEndAllowThreads(__tstate);
11951 if (PyErr_Occurred()) SWIG_fail;
11952 }
11953 Py_INCREF(Py_None); resultobj = Py_None;
11954 return resultobj;
11955 fail:
11956 return NULL;
11957 }
11958
11959
11960 static PyObject * Sound_swigregister(PyObject *self, PyObject *args) {
11961 PyObject *obj;
11962 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11963 SWIG_TypeClientData(SWIGTYPE_p_wxSound, obj);
11964 Py_INCREF(obj);
11965 return Py_BuildValue((char *)"");
11966 }
11967 static PyObject *_wrap_new_FileTypeInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
11968 PyObject *resultobj;
11969 wxString *arg1 = 0 ;
11970 wxString *arg2 = 0 ;
11971 wxString *arg3 = 0 ;
11972 wxString *arg4 = 0 ;
11973 wxFileTypeInfo *result;
11974 bool temp1 = False ;
11975 bool temp2 = False ;
11976 bool temp3 = False ;
11977 bool temp4 = False ;
11978 PyObject * obj0 = 0 ;
11979 PyObject * obj1 = 0 ;
11980 PyObject * obj2 = 0 ;
11981 PyObject * obj3 = 0 ;
11982 char *kwnames[] = {
11983 (char *) "mimeType",(char *) "openCmd",(char *) "printCmd",(char *) "desc", NULL
11984 };
11985
11986 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_FileTypeInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11987 {
11988 arg1 = wxString_in_helper(obj0);
11989 if (arg1 == NULL) SWIG_fail;
11990 temp1 = True;
11991 }
11992 {
11993 arg2 = wxString_in_helper(obj1);
11994 if (arg2 == NULL) SWIG_fail;
11995 temp2 = True;
11996 }
11997 {
11998 arg3 = wxString_in_helper(obj2);
11999 if (arg3 == NULL) SWIG_fail;
12000 temp3 = True;
12001 }
12002 {
12003 arg4 = wxString_in_helper(obj3);
12004 if (arg4 == NULL) SWIG_fail;
12005 temp4 = True;
12006 }
12007 {
12008 PyThreadState* __tstate = wxPyBeginAllowThreads();
12009 result = (wxFileTypeInfo *)new wxFileTypeInfo((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4);
12010
12011 wxPyEndAllowThreads(__tstate);
12012 if (PyErr_Occurred()) SWIG_fail;
12013 }
12014 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileTypeInfo, 1);
12015 {
12016 if (temp1)
12017 delete arg1;
12018 }
12019 {
12020 if (temp2)
12021 delete arg2;
12022 }
12023 {
12024 if (temp3)
12025 delete arg3;
12026 }
12027 {
12028 if (temp4)
12029 delete arg4;
12030 }
12031 return resultobj;
12032 fail:
12033 {
12034 if (temp1)
12035 delete arg1;
12036 }
12037 {
12038 if (temp2)
12039 delete arg2;
12040 }
12041 {
12042 if (temp3)
12043 delete arg3;
12044 }
12045 {
12046 if (temp4)
12047 delete arg4;
12048 }
12049 return NULL;
12050 }
12051
12052
12053 static PyObject *_wrap_new_FileTypeInfoSequence(PyObject *self, PyObject *args, PyObject *kwargs) {
12054 PyObject *resultobj;
12055 wxArrayString *arg1 = 0 ;
12056 wxFileTypeInfo *result;
12057 bool temp1 = False ;
12058 PyObject * obj0 = 0 ;
12059 char *kwnames[] = {
12060 (char *) "sArray", NULL
12061 };
12062
12063 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FileTypeInfoSequence",kwnames,&obj0)) goto fail;
12064 {
12065 if (! PySequence_Check(obj0)) {
12066 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
12067 SWIG_fail;
12068 }
12069 arg1 = new wxArrayString;
12070 temp1 = True;
12071 int i, len=PySequence_Length(obj0);
12072 for (i=0; i<len; i++) {
12073 PyObject* item = PySequence_GetItem(obj0, i);
12074 #if wxUSE_UNICODE
12075 PyObject* str = PyObject_Unicode(item);
12076 #else
12077 PyObject* str = PyObject_Str(item);
12078 #endif
12079 if (PyErr_Occurred()) SWIG_fail;
12080 arg1->Add(Py2wxString(str));
12081 Py_DECREF(item);
12082 Py_DECREF(str);
12083 }
12084 }
12085 {
12086 PyThreadState* __tstate = wxPyBeginAllowThreads();
12087 result = (wxFileTypeInfo *)new wxFileTypeInfo((wxArrayString const &)*arg1);
12088
12089 wxPyEndAllowThreads(__tstate);
12090 if (PyErr_Occurred()) SWIG_fail;
12091 }
12092 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileTypeInfo, 1);
12093 {
12094 if (temp1) delete arg1;
12095 }
12096 return resultobj;
12097 fail:
12098 {
12099 if (temp1) delete arg1;
12100 }
12101 return NULL;
12102 }
12103
12104
12105 static PyObject *_wrap_new_NullFileTypeInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
12106 PyObject *resultobj;
12107 wxFileTypeInfo *result;
12108 char *kwnames[] = {
12109 NULL
12110 };
12111
12112 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NullFileTypeInfo",kwnames)) goto fail;
12113 {
12114 PyThreadState* __tstate = wxPyBeginAllowThreads();
12115 result = (wxFileTypeInfo *)new wxFileTypeInfo();
12116
12117 wxPyEndAllowThreads(__tstate);
12118 if (PyErr_Occurred()) SWIG_fail;
12119 }
12120 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileTypeInfo, 1);
12121 return resultobj;
12122 fail:
12123 return NULL;
12124 }
12125
12126
12127 static PyObject *_wrap_FileTypeInfo_IsValid(PyObject *self, PyObject *args, PyObject *kwargs) {
12128 PyObject *resultobj;
12129 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12130 bool result;
12131 PyObject * obj0 = 0 ;
12132 char *kwnames[] = {
12133 (char *) "self", NULL
12134 };
12135
12136 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_IsValid",kwnames,&obj0)) goto fail;
12137 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12138 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12139 {
12140 PyThreadState* __tstate = wxPyBeginAllowThreads();
12141 result = (bool)((wxFileTypeInfo const *)arg1)->IsValid();
12142
12143 wxPyEndAllowThreads(__tstate);
12144 if (PyErr_Occurred()) SWIG_fail;
12145 }
12146 {
12147 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12148 }
12149 return resultobj;
12150 fail:
12151 return NULL;
12152 }
12153
12154
12155 static PyObject *_wrap_FileTypeInfo_SetIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
12156 PyObject *resultobj;
12157 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12158 wxString *arg2 = 0 ;
12159 int arg3 = (int) 0 ;
12160 bool temp2 = False ;
12161 PyObject * obj0 = 0 ;
12162 PyObject * obj1 = 0 ;
12163 PyObject * obj2 = 0 ;
12164 char *kwnames[] = {
12165 (char *) "self",(char *) "iconFile",(char *) "iconIndex", NULL
12166 };
12167
12168 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileTypeInfo_SetIcon",kwnames,&obj0,&obj1,&obj2)) goto fail;
12169 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12170 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12171 {
12172 arg2 = wxString_in_helper(obj1);
12173 if (arg2 == NULL) SWIG_fail;
12174 temp2 = True;
12175 }
12176 if (obj2) {
12177 arg3 = (int) SWIG_AsInt(obj2);
12178 if (PyErr_Occurred()) SWIG_fail;
12179 }
12180 {
12181 PyThreadState* __tstate = wxPyBeginAllowThreads();
12182 (arg1)->SetIcon((wxString const &)*arg2,arg3);
12183
12184 wxPyEndAllowThreads(__tstate);
12185 if (PyErr_Occurred()) SWIG_fail;
12186 }
12187 Py_INCREF(Py_None); resultobj = Py_None;
12188 {
12189 if (temp2)
12190 delete arg2;
12191 }
12192 return resultobj;
12193 fail:
12194 {
12195 if (temp2)
12196 delete arg2;
12197 }
12198 return NULL;
12199 }
12200
12201
12202 static PyObject *_wrap_FileTypeInfo_SetShortDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
12203 PyObject *resultobj;
12204 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12205 wxString *arg2 = 0 ;
12206 bool temp2 = False ;
12207 PyObject * obj0 = 0 ;
12208 PyObject * obj1 = 0 ;
12209 char *kwnames[] = {
12210 (char *) "self",(char *) "shortDesc", NULL
12211 };
12212
12213 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileTypeInfo_SetShortDesc",kwnames,&obj0,&obj1)) goto fail;
12214 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12215 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12216 {
12217 arg2 = wxString_in_helper(obj1);
12218 if (arg2 == NULL) SWIG_fail;
12219 temp2 = True;
12220 }
12221 {
12222 PyThreadState* __tstate = wxPyBeginAllowThreads();
12223 (arg1)->SetShortDesc((wxString const &)*arg2);
12224
12225 wxPyEndAllowThreads(__tstate);
12226 if (PyErr_Occurred()) SWIG_fail;
12227 }
12228 Py_INCREF(Py_None); resultobj = Py_None;
12229 {
12230 if (temp2)
12231 delete arg2;
12232 }
12233 return resultobj;
12234 fail:
12235 {
12236 if (temp2)
12237 delete arg2;
12238 }
12239 return NULL;
12240 }
12241
12242
12243 static PyObject *_wrap_FileTypeInfo_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) {
12244 PyObject *resultobj;
12245 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12246 wxString *result;
12247 PyObject * obj0 = 0 ;
12248 char *kwnames[] = {
12249 (char *) "self", NULL
12250 };
12251
12252 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetMimeType",kwnames,&obj0)) goto fail;
12253 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12254 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12255 {
12256 PyThreadState* __tstate = wxPyBeginAllowThreads();
12257 {
12258 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetMimeType();
12259 result = (wxString *) &_result_ref;
12260 }
12261
12262 wxPyEndAllowThreads(__tstate);
12263 if (PyErr_Occurred()) SWIG_fail;
12264 }
12265 {
12266 #if wxUSE_UNICODE
12267 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12268 #else
12269 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12270 #endif
12271 }
12272 return resultobj;
12273 fail:
12274 return NULL;
12275 }
12276
12277
12278 static PyObject *_wrap_FileTypeInfo_GetOpenCommand(PyObject *self, PyObject *args, PyObject *kwargs) {
12279 PyObject *resultobj;
12280 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12281 wxString *result;
12282 PyObject * obj0 = 0 ;
12283 char *kwnames[] = {
12284 (char *) "self", NULL
12285 };
12286
12287 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetOpenCommand",kwnames,&obj0)) goto fail;
12288 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12289 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12290 {
12291 PyThreadState* __tstate = wxPyBeginAllowThreads();
12292 {
12293 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetOpenCommand();
12294 result = (wxString *) &_result_ref;
12295 }
12296
12297 wxPyEndAllowThreads(__tstate);
12298 if (PyErr_Occurred()) SWIG_fail;
12299 }
12300 {
12301 #if wxUSE_UNICODE
12302 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12303 #else
12304 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12305 #endif
12306 }
12307 return resultobj;
12308 fail:
12309 return NULL;
12310 }
12311
12312
12313 static PyObject *_wrap_FileTypeInfo_GetPrintCommand(PyObject *self, PyObject *args, PyObject *kwargs) {
12314 PyObject *resultobj;
12315 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12316 wxString *result;
12317 PyObject * obj0 = 0 ;
12318 char *kwnames[] = {
12319 (char *) "self", NULL
12320 };
12321
12322 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetPrintCommand",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 {
12328 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetPrintCommand();
12329 result = (wxString *) &_result_ref;
12330 }
12331
12332 wxPyEndAllowThreads(__tstate);
12333 if (PyErr_Occurred()) SWIG_fail;
12334 }
12335 {
12336 #if wxUSE_UNICODE
12337 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12338 #else
12339 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12340 #endif
12341 }
12342 return resultobj;
12343 fail:
12344 return NULL;
12345 }
12346
12347
12348 static PyObject *_wrap_FileTypeInfo_GetShortDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
12349 PyObject *resultobj;
12350 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12351 wxString *result;
12352 PyObject * obj0 = 0 ;
12353 char *kwnames[] = {
12354 (char *) "self", NULL
12355 };
12356
12357 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetShortDesc",kwnames,&obj0)) goto fail;
12358 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12359 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12360 {
12361 PyThreadState* __tstate = wxPyBeginAllowThreads();
12362 {
12363 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetShortDesc();
12364 result = (wxString *) &_result_ref;
12365 }
12366
12367 wxPyEndAllowThreads(__tstate);
12368 if (PyErr_Occurred()) SWIG_fail;
12369 }
12370 {
12371 #if wxUSE_UNICODE
12372 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12373 #else
12374 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12375 #endif
12376 }
12377 return resultobj;
12378 fail:
12379 return NULL;
12380 }
12381
12382
12383 static PyObject *_wrap_FileTypeInfo_GetDescription(PyObject *self, PyObject *args, PyObject *kwargs) {
12384 PyObject *resultobj;
12385 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12386 wxString *result;
12387 PyObject * obj0 = 0 ;
12388 char *kwnames[] = {
12389 (char *) "self", NULL
12390 };
12391
12392 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetDescription",kwnames,&obj0)) goto fail;
12393 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12394 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12395 {
12396 PyThreadState* __tstate = wxPyBeginAllowThreads();
12397 {
12398 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetDescription();
12399 result = (wxString *) &_result_ref;
12400 }
12401
12402 wxPyEndAllowThreads(__tstate);
12403 if (PyErr_Occurred()) SWIG_fail;
12404 }
12405 {
12406 #if wxUSE_UNICODE
12407 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12408 #else
12409 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12410 #endif
12411 }
12412 return resultobj;
12413 fail:
12414 return NULL;
12415 }
12416
12417
12418 static PyObject *_wrap_FileTypeInfo_GetExtensions(PyObject *self, PyObject *args, PyObject *kwargs) {
12419 PyObject *resultobj;
12420 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12421 wxArrayString *result;
12422 PyObject * obj0 = 0 ;
12423 char *kwnames[] = {
12424 (char *) "self", NULL
12425 };
12426
12427 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetExtensions",kwnames,&obj0)) goto fail;
12428 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12429 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12430 {
12431 PyThreadState* __tstate = wxPyBeginAllowThreads();
12432 {
12433 wxArrayString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetExtensions();
12434 result = (wxArrayString *) &_result_ref;
12435 }
12436
12437 wxPyEndAllowThreads(__tstate);
12438 if (PyErr_Occurred()) SWIG_fail;
12439 }
12440 {
12441 resultobj = wxArrayString2PyList_helper(*result);
12442 }
12443 return resultobj;
12444 fail:
12445 return NULL;
12446 }
12447
12448
12449 static PyObject *_wrap_FileTypeInfo_GetExtensionsCount(PyObject *self, PyObject *args, PyObject *kwargs) {
12450 PyObject *resultobj;
12451 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12452 int result;
12453 PyObject * obj0 = 0 ;
12454 char *kwnames[] = {
12455 (char *) "self", NULL
12456 };
12457
12458 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetExtensionsCount",kwnames,&obj0)) goto fail;
12459 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12460 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12461 {
12462 PyThreadState* __tstate = wxPyBeginAllowThreads();
12463 result = (int)((wxFileTypeInfo const *)arg1)->GetExtensionsCount();
12464
12465 wxPyEndAllowThreads(__tstate);
12466 if (PyErr_Occurred()) SWIG_fail;
12467 }
12468 resultobj = SWIG_FromInt((int)result);
12469 return resultobj;
12470 fail:
12471 return NULL;
12472 }
12473
12474
12475 static PyObject *_wrap_FileTypeInfo_GetIconFile(PyObject *self, PyObject *args, PyObject *kwargs) {
12476 PyObject *resultobj;
12477 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12478 wxString *result;
12479 PyObject * obj0 = 0 ;
12480 char *kwnames[] = {
12481 (char *) "self", NULL
12482 };
12483
12484 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetIconFile",kwnames,&obj0)) goto fail;
12485 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12486 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12487 {
12488 PyThreadState* __tstate = wxPyBeginAllowThreads();
12489 {
12490 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetIconFile();
12491 result = (wxString *) &_result_ref;
12492 }
12493
12494 wxPyEndAllowThreads(__tstate);
12495 if (PyErr_Occurred()) SWIG_fail;
12496 }
12497 {
12498 #if wxUSE_UNICODE
12499 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12500 #else
12501 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12502 #endif
12503 }
12504 return resultobj;
12505 fail:
12506 return NULL;
12507 }
12508
12509
12510 static PyObject *_wrap_FileTypeInfo_GetIconIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
12511 PyObject *resultobj;
12512 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12513 int result;
12514 PyObject * obj0 = 0 ;
12515 char *kwnames[] = {
12516 (char *) "self", NULL
12517 };
12518
12519 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetIconIndex",kwnames,&obj0)) goto fail;
12520 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12521 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12522 {
12523 PyThreadState* __tstate = wxPyBeginAllowThreads();
12524 result = (int)((wxFileTypeInfo const *)arg1)->GetIconIndex();
12525
12526 wxPyEndAllowThreads(__tstate);
12527 if (PyErr_Occurred()) SWIG_fail;
12528 }
12529 resultobj = SWIG_FromInt((int)result);
12530 return resultobj;
12531 fail:
12532 return NULL;
12533 }
12534
12535
12536 static PyObject * FileTypeInfo_swigregister(PyObject *self, PyObject *args) {
12537 PyObject *obj;
12538 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
12539 SWIG_TypeClientData(SWIGTYPE_p_wxFileTypeInfo, obj);
12540 Py_INCREF(obj);
12541 return Py_BuildValue((char *)"");
12542 }
12543 static PyObject *_wrap_new_FileType(PyObject *self, PyObject *args, PyObject *kwargs) {
12544 PyObject *resultobj;
12545 wxFileTypeInfo *arg1 = 0 ;
12546 wxFileType *result;
12547 PyObject * obj0 = 0 ;
12548 char *kwnames[] = {
12549 (char *) "ftInfo", NULL
12550 };
12551
12552 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FileType",kwnames,&obj0)) goto fail;
12553 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12554 SWIG_POINTER_EXCEPTION | 0)) == -1)
12555 SWIG_fail;
12556 if (arg1 == NULL) {
12557 PyErr_SetString(PyExc_TypeError,"null reference");
12558 SWIG_fail;
12559 }
12560 {
12561 PyThreadState* __tstate = wxPyBeginAllowThreads();
12562 result = (wxFileType *)new wxFileType((wxFileTypeInfo const &)*arg1);
12563
12564 wxPyEndAllowThreads(__tstate);
12565 if (PyErr_Occurred()) SWIG_fail;
12566 }
12567 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1);
12568 return resultobj;
12569 fail:
12570 return NULL;
12571 }
12572
12573
12574 static PyObject *_wrap_delete_FileType(PyObject *self, PyObject *args, PyObject *kwargs) {
12575 PyObject *resultobj;
12576 wxFileType *arg1 = (wxFileType *) 0 ;
12577 PyObject * obj0 = 0 ;
12578 char *kwnames[] = {
12579 (char *) "self", NULL
12580 };
12581
12582 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileType",kwnames,&obj0)) goto fail;
12583 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12584 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12585 {
12586 PyThreadState* __tstate = wxPyBeginAllowThreads();
12587 delete arg1;
12588
12589 wxPyEndAllowThreads(__tstate);
12590 if (PyErr_Occurred()) SWIG_fail;
12591 }
12592 Py_INCREF(Py_None); resultobj = Py_None;
12593 return resultobj;
12594 fail:
12595 return NULL;
12596 }
12597
12598
12599 static PyObject *_wrap_FileType_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) {
12600 PyObject *resultobj;
12601 wxFileType *arg1 = (wxFileType *) 0 ;
12602 PyObject *result;
12603 PyObject * obj0 = 0 ;
12604 char *kwnames[] = {
12605 (char *) "self", NULL
12606 };
12607
12608 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetMimeType",kwnames,&obj0)) goto fail;
12609 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12610 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12611 {
12612 PyThreadState* __tstate = wxPyBeginAllowThreads();
12613 result = (PyObject *)wxFileType_GetMimeType(arg1);
12614
12615 wxPyEndAllowThreads(__tstate);
12616 if (PyErr_Occurred()) SWIG_fail;
12617 }
12618 resultobj = result;
12619 return resultobj;
12620 fail:
12621 return NULL;
12622 }
12623
12624
12625 static PyObject *_wrap_FileType_GetMimeTypes(PyObject *self, PyObject *args, PyObject *kwargs) {
12626 PyObject *resultobj;
12627 wxFileType *arg1 = (wxFileType *) 0 ;
12628 PyObject *result;
12629 PyObject * obj0 = 0 ;
12630 char *kwnames[] = {
12631 (char *) "self", NULL
12632 };
12633
12634 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetMimeTypes",kwnames,&obj0)) goto fail;
12635 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12636 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12637 {
12638 PyThreadState* __tstate = wxPyBeginAllowThreads();
12639 result = (PyObject *)wxFileType_GetMimeTypes(arg1);
12640
12641 wxPyEndAllowThreads(__tstate);
12642 if (PyErr_Occurred()) SWIG_fail;
12643 }
12644 resultobj = result;
12645 return resultobj;
12646 fail:
12647 return NULL;
12648 }
12649
12650
12651 static PyObject *_wrap_FileType_GetExtensions(PyObject *self, PyObject *args, PyObject *kwargs) {
12652 PyObject *resultobj;
12653 wxFileType *arg1 = (wxFileType *) 0 ;
12654 PyObject *result;
12655 PyObject * obj0 = 0 ;
12656 char *kwnames[] = {
12657 (char *) "self", NULL
12658 };
12659
12660 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetExtensions",kwnames,&obj0)) goto fail;
12661 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12662 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12663 {
12664 PyThreadState* __tstate = wxPyBeginAllowThreads();
12665 result = (PyObject *)wxFileType_GetExtensions(arg1);
12666
12667 wxPyEndAllowThreads(__tstate);
12668 if (PyErr_Occurred()) SWIG_fail;
12669 }
12670 resultobj = result;
12671 return resultobj;
12672 fail:
12673 return NULL;
12674 }
12675
12676
12677 static PyObject *_wrap_FileType_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
12678 PyObject *resultobj;
12679 wxFileType *arg1 = (wxFileType *) 0 ;
12680 wxIcon *result;
12681 PyObject * obj0 = 0 ;
12682 char *kwnames[] = {
12683 (char *) "self", NULL
12684 };
12685
12686 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetIcon",kwnames,&obj0)) goto fail;
12687 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12688 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12689 {
12690 PyThreadState* __tstate = wxPyBeginAllowThreads();
12691 result = (wxIcon *)wxFileType_GetIcon(arg1);
12692
12693 wxPyEndAllowThreads(__tstate);
12694 if (PyErr_Occurred()) SWIG_fail;
12695 }
12696 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
12697 return resultobj;
12698 fail:
12699 return NULL;
12700 }
12701
12702
12703 static PyObject *_wrap_FileType_GetIconInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
12704 PyObject *resultobj;
12705 wxFileType *arg1 = (wxFileType *) 0 ;
12706 PyObject *result;
12707 PyObject * obj0 = 0 ;
12708 char *kwnames[] = {
12709 (char *) "self", NULL
12710 };
12711
12712 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetIconInfo",kwnames,&obj0)) goto fail;
12713 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12714 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12715 {
12716 PyThreadState* __tstate = wxPyBeginAllowThreads();
12717 result = (PyObject *)wxFileType_GetIconInfo(arg1);
12718
12719 wxPyEndAllowThreads(__tstate);
12720 if (PyErr_Occurred()) SWIG_fail;
12721 }
12722 resultobj = result;
12723 return resultobj;
12724 fail:
12725 return NULL;
12726 }
12727
12728
12729 static PyObject *_wrap_FileType_GetDescription(PyObject *self, PyObject *args, PyObject *kwargs) {
12730 PyObject *resultobj;
12731 wxFileType *arg1 = (wxFileType *) 0 ;
12732 PyObject *result;
12733 PyObject * obj0 = 0 ;
12734 char *kwnames[] = {
12735 (char *) "self", NULL
12736 };
12737
12738 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetDescription",kwnames,&obj0)) goto fail;
12739 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12740 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12741 {
12742 PyThreadState* __tstate = wxPyBeginAllowThreads();
12743 result = (PyObject *)wxFileType_GetDescription(arg1);
12744
12745 wxPyEndAllowThreads(__tstate);
12746 if (PyErr_Occurred()) SWIG_fail;
12747 }
12748 resultobj = result;
12749 return resultobj;
12750 fail:
12751 return NULL;
12752 }
12753
12754
12755 static PyObject *_wrap_FileType_GetOpenCommand(PyObject *self, PyObject *args, PyObject *kwargs) {
12756 PyObject *resultobj;
12757 wxFileType *arg1 = (wxFileType *) 0 ;
12758 wxString *arg2 = 0 ;
12759 wxString const &arg3_defvalue = wxPyEmptyString ;
12760 wxString *arg3 = (wxString *) &arg3_defvalue ;
12761 PyObject *result;
12762 bool temp2 = False ;
12763 bool temp3 = False ;
12764 PyObject * obj0 = 0 ;
12765 PyObject * obj1 = 0 ;
12766 PyObject * obj2 = 0 ;
12767 char *kwnames[] = {
12768 (char *) "self",(char *) "filename",(char *) "mimetype", NULL
12769 };
12770
12771 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetOpenCommand",kwnames,&obj0,&obj1,&obj2)) goto fail;
12772 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12773 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12774 {
12775 arg2 = wxString_in_helper(obj1);
12776 if (arg2 == NULL) SWIG_fail;
12777 temp2 = True;
12778 }
12779 if (obj2) {
12780 {
12781 arg3 = wxString_in_helper(obj2);
12782 if (arg3 == NULL) SWIG_fail;
12783 temp3 = True;
12784 }
12785 }
12786 {
12787 PyThreadState* __tstate = wxPyBeginAllowThreads();
12788 result = (PyObject *)wxFileType_GetOpenCommand(arg1,(wxString const &)*arg2,(wxString const &)*arg3);
12789
12790 wxPyEndAllowThreads(__tstate);
12791 if (PyErr_Occurred()) SWIG_fail;
12792 }
12793 resultobj = result;
12794 {
12795 if (temp2)
12796 delete arg2;
12797 }
12798 {
12799 if (temp3)
12800 delete arg3;
12801 }
12802 return resultobj;
12803 fail:
12804 {
12805 if (temp2)
12806 delete arg2;
12807 }
12808 {
12809 if (temp3)
12810 delete arg3;
12811 }
12812 return NULL;
12813 }
12814
12815
12816 static PyObject *_wrap_FileType_GetPrintCommand(PyObject *self, PyObject *args, PyObject *kwargs) {
12817 PyObject *resultobj;
12818 wxFileType *arg1 = (wxFileType *) 0 ;
12819 wxString *arg2 = 0 ;
12820 wxString const &arg3_defvalue = wxPyEmptyString ;
12821 wxString *arg3 = (wxString *) &arg3_defvalue ;
12822 PyObject *result;
12823 bool temp2 = False ;
12824 bool temp3 = False ;
12825 PyObject * obj0 = 0 ;
12826 PyObject * obj1 = 0 ;
12827 PyObject * obj2 = 0 ;
12828 char *kwnames[] = {
12829 (char *) "self",(char *) "filename",(char *) "mimetype", NULL
12830 };
12831
12832 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetPrintCommand",kwnames,&obj0,&obj1,&obj2)) goto fail;
12833 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12834 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12835 {
12836 arg2 = wxString_in_helper(obj1);
12837 if (arg2 == NULL) SWIG_fail;
12838 temp2 = True;
12839 }
12840 if (obj2) {
12841 {
12842 arg3 = wxString_in_helper(obj2);
12843 if (arg3 == NULL) SWIG_fail;
12844 temp3 = True;
12845 }
12846 }
12847 {
12848 PyThreadState* __tstate = wxPyBeginAllowThreads();
12849 result = (PyObject *)wxFileType_GetPrintCommand(arg1,(wxString const &)*arg2,(wxString const &)*arg3);
12850
12851 wxPyEndAllowThreads(__tstate);
12852 if (PyErr_Occurred()) SWIG_fail;
12853 }
12854 resultobj = result;
12855 {
12856 if (temp2)
12857 delete arg2;
12858 }
12859 {
12860 if (temp3)
12861 delete arg3;
12862 }
12863 return resultobj;
12864 fail:
12865 {
12866 if (temp2)
12867 delete arg2;
12868 }
12869 {
12870 if (temp3)
12871 delete arg3;
12872 }
12873 return NULL;
12874 }
12875
12876
12877 static PyObject *_wrap_FileType_GetAllCommands(PyObject *self, PyObject *args, PyObject *kwargs) {
12878 PyObject *resultobj;
12879 wxFileType *arg1 = (wxFileType *) 0 ;
12880 wxString *arg2 = 0 ;
12881 wxString const &arg3_defvalue = wxPyEmptyString ;
12882 wxString *arg3 = (wxString *) &arg3_defvalue ;
12883 PyObject *result;
12884 bool temp2 = False ;
12885 bool temp3 = False ;
12886 PyObject * obj0 = 0 ;
12887 PyObject * obj1 = 0 ;
12888 PyObject * obj2 = 0 ;
12889 char *kwnames[] = {
12890 (char *) "self",(char *) "filename",(char *) "mimetype", NULL
12891 };
12892
12893 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetAllCommands",kwnames,&obj0,&obj1,&obj2)) goto fail;
12894 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12895 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12896 {
12897 arg2 = wxString_in_helper(obj1);
12898 if (arg2 == NULL) SWIG_fail;
12899 temp2 = True;
12900 }
12901 if (obj2) {
12902 {
12903 arg3 = wxString_in_helper(obj2);
12904 if (arg3 == NULL) SWIG_fail;
12905 temp3 = True;
12906 }
12907 }
12908 {
12909 PyThreadState* __tstate = wxPyBeginAllowThreads();
12910 result = (PyObject *)wxFileType_GetAllCommands(arg1,(wxString const &)*arg2,(wxString const &)*arg3);
12911
12912 wxPyEndAllowThreads(__tstate);
12913 if (PyErr_Occurred()) SWIG_fail;
12914 }
12915 resultobj = result;
12916 {
12917 if (temp2)
12918 delete arg2;
12919 }
12920 {
12921 if (temp3)
12922 delete arg3;
12923 }
12924 return resultobj;
12925 fail:
12926 {
12927 if (temp2)
12928 delete arg2;
12929 }
12930 {
12931 if (temp3)
12932 delete arg3;
12933 }
12934 return NULL;
12935 }
12936
12937
12938 static PyObject *_wrap_FileType_SetCommand(PyObject *self, PyObject *args, PyObject *kwargs) {
12939 PyObject *resultobj;
12940 wxFileType *arg1 = (wxFileType *) 0 ;
12941 wxString *arg2 = 0 ;
12942 wxString *arg3 = 0 ;
12943 bool arg4 = (bool) True ;
12944 bool result;
12945 bool temp2 = False ;
12946 bool temp3 = False ;
12947 PyObject * obj0 = 0 ;
12948 PyObject * obj1 = 0 ;
12949 PyObject * obj2 = 0 ;
12950 PyObject * obj3 = 0 ;
12951 char *kwnames[] = {
12952 (char *) "self",(char *) "cmd",(char *) "verb",(char *) "overwriteprompt", NULL
12953 };
12954
12955 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:FileType_SetCommand",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12956 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12957 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12958 {
12959 arg2 = wxString_in_helper(obj1);
12960 if (arg2 == NULL) SWIG_fail;
12961 temp2 = True;
12962 }
12963 {
12964 arg3 = wxString_in_helper(obj2);
12965 if (arg3 == NULL) SWIG_fail;
12966 temp3 = True;
12967 }
12968 if (obj3) {
12969 arg4 = (bool) SWIG_AsBool(obj3);
12970 if (PyErr_Occurred()) SWIG_fail;
12971 }
12972 {
12973 PyThreadState* __tstate = wxPyBeginAllowThreads();
12974 result = (bool)(arg1)->SetCommand((wxString const &)*arg2,(wxString const &)*arg3,arg4);
12975
12976 wxPyEndAllowThreads(__tstate);
12977 if (PyErr_Occurred()) SWIG_fail;
12978 }
12979 {
12980 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12981 }
12982 {
12983 if (temp2)
12984 delete arg2;
12985 }
12986 {
12987 if (temp3)
12988 delete arg3;
12989 }
12990 return resultobj;
12991 fail:
12992 {
12993 if (temp2)
12994 delete arg2;
12995 }
12996 {
12997 if (temp3)
12998 delete arg3;
12999 }
13000 return NULL;
13001 }
13002
13003
13004 static PyObject *_wrap_FileType_SetDefaultIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
13005 PyObject *resultobj;
13006 wxFileType *arg1 = (wxFileType *) 0 ;
13007 wxString const &arg2_defvalue = wxPyEmptyString ;
13008 wxString *arg2 = (wxString *) &arg2_defvalue ;
13009 int arg3 = (int) 0 ;
13010 bool result;
13011 bool temp2 = False ;
13012 PyObject * obj0 = 0 ;
13013 PyObject * obj1 = 0 ;
13014 PyObject * obj2 = 0 ;
13015 char *kwnames[] = {
13016 (char *) "self",(char *) "cmd",(char *) "index", NULL
13017 };
13018
13019 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FileType_SetDefaultIcon",kwnames,&obj0,&obj1,&obj2)) goto fail;
13020 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
13021 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13022 if (obj1) {
13023 {
13024 arg2 = wxString_in_helper(obj1);
13025 if (arg2 == NULL) SWIG_fail;
13026 temp2 = True;
13027 }
13028 }
13029 if (obj2) {
13030 arg3 = (int) SWIG_AsInt(obj2);
13031 if (PyErr_Occurred()) SWIG_fail;
13032 }
13033 {
13034 PyThreadState* __tstate = wxPyBeginAllowThreads();
13035 result = (bool)(arg1)->SetDefaultIcon((wxString const &)*arg2,arg3);
13036
13037 wxPyEndAllowThreads(__tstate);
13038 if (PyErr_Occurred()) SWIG_fail;
13039 }
13040 {
13041 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13042 }
13043 {
13044 if (temp2)
13045 delete arg2;
13046 }
13047 return resultobj;
13048 fail:
13049 {
13050 if (temp2)
13051 delete arg2;
13052 }
13053 return NULL;
13054 }
13055
13056
13057 static PyObject *_wrap_FileType_Unassociate(PyObject *self, PyObject *args, PyObject *kwargs) {
13058 PyObject *resultobj;
13059 wxFileType *arg1 = (wxFileType *) 0 ;
13060 bool result;
13061 PyObject * obj0 = 0 ;
13062 char *kwnames[] = {
13063 (char *) "self", NULL
13064 };
13065
13066 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_Unassociate",kwnames,&obj0)) goto fail;
13067 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
13068 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13069 {
13070 PyThreadState* __tstate = wxPyBeginAllowThreads();
13071 result = (bool)(arg1)->Unassociate();
13072
13073 wxPyEndAllowThreads(__tstate);
13074 if (PyErr_Occurred()) SWIG_fail;
13075 }
13076 {
13077 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13078 }
13079 return resultobj;
13080 fail:
13081 return NULL;
13082 }
13083
13084
13085 static PyObject *_wrap_FileType_ExpandCommand(PyObject *self, PyObject *args, PyObject *kwargs) {
13086 PyObject *resultobj;
13087 wxString *arg1 = 0 ;
13088 wxString *arg2 = 0 ;
13089 wxString const &arg3_defvalue = wxPyEmptyString ;
13090 wxString *arg3 = (wxString *) &arg3_defvalue ;
13091 wxString result;
13092 bool temp1 = False ;
13093 bool temp2 = False ;
13094 bool temp3 = False ;
13095 PyObject * obj0 = 0 ;
13096 PyObject * obj1 = 0 ;
13097 PyObject * obj2 = 0 ;
13098 char *kwnames[] = {
13099 (char *) "command",(char *) "filename",(char *) "mimetype", NULL
13100 };
13101
13102 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_ExpandCommand",kwnames,&obj0,&obj1,&obj2)) goto fail;
13103 {
13104 arg1 = wxString_in_helper(obj0);
13105 if (arg1 == NULL) SWIG_fail;
13106 temp1 = True;
13107 }
13108 {
13109 arg2 = wxString_in_helper(obj1);
13110 if (arg2 == NULL) SWIG_fail;
13111 temp2 = True;
13112 }
13113 if (obj2) {
13114 {
13115 arg3 = wxString_in_helper(obj2);
13116 if (arg3 == NULL) SWIG_fail;
13117 temp3 = True;
13118 }
13119 }
13120 {
13121 PyThreadState* __tstate = wxPyBeginAllowThreads();
13122 result = FileType_ExpandCommand((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3);
13123
13124 wxPyEndAllowThreads(__tstate);
13125 if (PyErr_Occurred()) SWIG_fail;
13126 }
13127 {
13128 #if wxUSE_UNICODE
13129 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13130 #else
13131 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13132 #endif
13133 }
13134 {
13135 if (temp1)
13136 delete arg1;
13137 }
13138 {
13139 if (temp2)
13140 delete arg2;
13141 }
13142 {
13143 if (temp3)
13144 delete arg3;
13145 }
13146 return resultobj;
13147 fail:
13148 {
13149 if (temp1)
13150 delete arg1;
13151 }
13152 {
13153 if (temp2)
13154 delete arg2;
13155 }
13156 {
13157 if (temp3)
13158 delete arg3;
13159 }
13160 return NULL;
13161 }
13162
13163
13164 static PyObject * FileType_swigregister(PyObject *self, PyObject *args) {
13165 PyObject *obj;
13166 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13167 SWIG_TypeClientData(SWIGTYPE_p_wxFileType, obj);
13168 Py_INCREF(obj);
13169 return Py_BuildValue((char *)"");
13170 }
13171 static int _wrap_TheMimeTypesManager_set(PyObject *_val) {
13172 PyErr_SetString(PyExc_TypeError,"Variable TheMimeTypesManager is read-only.");
13173 return 1;
13174 }
13175
13176
13177 static PyObject *_wrap_TheMimeTypesManager_get() {
13178 PyObject *pyobj;
13179
13180 pyobj = SWIG_NewPointerObj((void *)(wxTheMimeTypesManager), SWIGTYPE_p_wxMimeTypesManager, 0);
13181 return pyobj;
13182 }
13183
13184
13185 static PyObject *_wrap_MimeTypesManager_IsOfType(PyObject *self, PyObject *args, PyObject *kwargs) {
13186 PyObject *resultobj;
13187 wxString *arg1 = 0 ;
13188 wxString *arg2 = 0 ;
13189 bool result;
13190 bool temp1 = False ;
13191 bool temp2 = False ;
13192 PyObject * obj0 = 0 ;
13193 PyObject * obj1 = 0 ;
13194 char *kwnames[] = {
13195 (char *) "mimeType",(char *) "wildcard", NULL
13196 };
13197
13198 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_IsOfType",kwnames,&obj0,&obj1)) goto fail;
13199 {
13200 arg1 = wxString_in_helper(obj0);
13201 if (arg1 == NULL) SWIG_fail;
13202 temp1 = True;
13203 }
13204 {
13205 arg2 = wxString_in_helper(obj1);
13206 if (arg2 == NULL) SWIG_fail;
13207 temp2 = True;
13208 }
13209 {
13210 PyThreadState* __tstate = wxPyBeginAllowThreads();
13211 result = (bool)wxMimeTypesManager::IsOfType((wxString const &)*arg1,(wxString const &)*arg2);
13212
13213 wxPyEndAllowThreads(__tstate);
13214 if (PyErr_Occurred()) SWIG_fail;
13215 }
13216 {
13217 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13218 }
13219 {
13220 if (temp1)
13221 delete arg1;
13222 }
13223 {
13224 if (temp2)
13225 delete arg2;
13226 }
13227 return resultobj;
13228 fail:
13229 {
13230 if (temp1)
13231 delete arg1;
13232 }
13233 {
13234 if (temp2)
13235 delete arg2;
13236 }
13237 return NULL;
13238 }
13239
13240
13241 static PyObject *_wrap_new_MimeTypesManager(PyObject *self, PyObject *args, PyObject *kwargs) {
13242 PyObject *resultobj;
13243 wxMimeTypesManager *result;
13244 char *kwnames[] = {
13245 NULL
13246 };
13247
13248 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MimeTypesManager",kwnames)) goto fail;
13249 {
13250 PyThreadState* __tstate = wxPyBeginAllowThreads();
13251 result = (wxMimeTypesManager *)new wxMimeTypesManager();
13252
13253 wxPyEndAllowThreads(__tstate);
13254 if (PyErr_Occurred()) SWIG_fail;
13255 }
13256 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMimeTypesManager, 1);
13257 return resultobj;
13258 fail:
13259 return NULL;
13260 }
13261
13262
13263 static PyObject *_wrap_MimeTypesManager_Initialize(PyObject *self, PyObject *args, PyObject *kwargs) {
13264 PyObject *resultobj;
13265 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13266 int arg2 = (int) wxMAILCAP_ALL ;
13267 wxString const &arg3_defvalue = wxPyEmptyString ;
13268 wxString *arg3 = (wxString *) &arg3_defvalue ;
13269 bool temp3 = False ;
13270 PyObject * obj0 = 0 ;
13271 PyObject * obj1 = 0 ;
13272 PyObject * obj2 = 0 ;
13273 char *kwnames[] = {
13274 (char *) "self",(char *) "mailcapStyle",(char *) "extraDir", NULL
13275 };
13276
13277 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MimeTypesManager_Initialize",kwnames,&obj0,&obj1,&obj2)) goto fail;
13278 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13279 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13280 if (obj1) {
13281 arg2 = (int) SWIG_AsInt(obj1);
13282 if (PyErr_Occurred()) SWIG_fail;
13283 }
13284 if (obj2) {
13285 {
13286 arg3 = wxString_in_helper(obj2);
13287 if (arg3 == NULL) SWIG_fail;
13288 temp3 = True;
13289 }
13290 }
13291 {
13292 PyThreadState* __tstate = wxPyBeginAllowThreads();
13293 (arg1)->Initialize(arg2,(wxString const &)*arg3);
13294
13295 wxPyEndAllowThreads(__tstate);
13296 if (PyErr_Occurred()) SWIG_fail;
13297 }
13298 Py_INCREF(Py_None); resultobj = Py_None;
13299 {
13300 if (temp3)
13301 delete arg3;
13302 }
13303 return resultobj;
13304 fail:
13305 {
13306 if (temp3)
13307 delete arg3;
13308 }
13309 return NULL;
13310 }
13311
13312
13313 static PyObject *_wrap_MimeTypesManager_ClearData(PyObject *self, PyObject *args, PyObject *kwargs) {
13314 PyObject *resultobj;
13315 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13316 PyObject * obj0 = 0 ;
13317 char *kwnames[] = {
13318 (char *) "self", NULL
13319 };
13320
13321 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MimeTypesManager_ClearData",kwnames,&obj0)) goto fail;
13322 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13323 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13324 {
13325 PyThreadState* __tstate = wxPyBeginAllowThreads();
13326 (arg1)->ClearData();
13327
13328 wxPyEndAllowThreads(__tstate);
13329 if (PyErr_Occurred()) SWIG_fail;
13330 }
13331 Py_INCREF(Py_None); resultobj = Py_None;
13332 return resultobj;
13333 fail:
13334 return NULL;
13335 }
13336
13337
13338 static PyObject *_wrap_MimeTypesManager_GetFileTypeFromExtension(PyObject *self, PyObject *args, PyObject *kwargs) {
13339 PyObject *resultobj;
13340 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13341 wxString *arg2 = 0 ;
13342 wxFileType *result;
13343 bool temp2 = False ;
13344 PyObject * obj0 = 0 ;
13345 PyObject * obj1 = 0 ;
13346 char *kwnames[] = {
13347 (char *) "self",(char *) "ext", NULL
13348 };
13349
13350 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_GetFileTypeFromExtension",kwnames,&obj0,&obj1)) goto fail;
13351 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13352 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13353 {
13354 arg2 = wxString_in_helper(obj1);
13355 if (arg2 == NULL) SWIG_fail;
13356 temp2 = True;
13357 }
13358 {
13359 PyThreadState* __tstate = wxPyBeginAllowThreads();
13360 result = (wxFileType *)(arg1)->GetFileTypeFromExtension((wxString const &)*arg2);
13361
13362 wxPyEndAllowThreads(__tstate);
13363 if (PyErr_Occurred()) SWIG_fail;
13364 }
13365 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1);
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_GetFileTypeFromMimeType(PyObject *self, PyObject *args, PyObject *kwargs) {
13381 PyObject *resultobj;
13382 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13383 wxString *arg2 = 0 ;
13384 wxFileType *result;
13385 bool temp2 = False ;
13386 PyObject * obj0 = 0 ;
13387 PyObject * obj1 = 0 ;
13388 char *kwnames[] = {
13389 (char *) "self",(char *) "mimeType", NULL
13390 };
13391
13392 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_GetFileTypeFromMimeType",kwnames,&obj0,&obj1)) goto fail;
13393 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13394 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13395 {
13396 arg2 = wxString_in_helper(obj1);
13397 if (arg2 == NULL) SWIG_fail;
13398 temp2 = True;
13399 }
13400 {
13401 PyThreadState* __tstate = wxPyBeginAllowThreads();
13402 result = (wxFileType *)(arg1)->GetFileTypeFromMimeType((wxString const &)*arg2);
13403
13404 wxPyEndAllowThreads(__tstate);
13405 if (PyErr_Occurred()) SWIG_fail;
13406 }
13407 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1);
13408 {
13409 if (temp2)
13410 delete arg2;
13411 }
13412 return resultobj;
13413 fail:
13414 {
13415 if (temp2)
13416 delete arg2;
13417 }
13418 return NULL;
13419 }
13420
13421
13422 static PyObject *_wrap_MimeTypesManager_ReadMailcap(PyObject *self, PyObject *args, PyObject *kwargs) {
13423 PyObject *resultobj;
13424 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13425 wxString *arg2 = 0 ;
13426 bool arg3 = (bool) False ;
13427 bool result;
13428 bool temp2 = False ;
13429 PyObject * obj0 = 0 ;
13430 PyObject * obj1 = 0 ;
13431 PyObject * obj2 = 0 ;
13432 char *kwnames[] = {
13433 (char *) "self",(char *) "filename",(char *) "fallback", NULL
13434 };
13435
13436 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:MimeTypesManager_ReadMailcap",kwnames,&obj0,&obj1,&obj2)) goto fail;
13437 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13438 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13439 {
13440 arg2 = wxString_in_helper(obj1);
13441 if (arg2 == NULL) SWIG_fail;
13442 temp2 = True;
13443 }
13444 if (obj2) {
13445 arg3 = (bool) SWIG_AsBool(obj2);
13446 if (PyErr_Occurred()) SWIG_fail;
13447 }
13448 {
13449 PyThreadState* __tstate = wxPyBeginAllowThreads();
13450 result = (bool)(arg1)->ReadMailcap((wxString const &)*arg2,arg3);
13451
13452 wxPyEndAllowThreads(__tstate);
13453 if (PyErr_Occurred()) SWIG_fail;
13454 }
13455 {
13456 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13457 }
13458 {
13459 if (temp2)
13460 delete arg2;
13461 }
13462 return resultobj;
13463 fail:
13464 {
13465 if (temp2)
13466 delete arg2;
13467 }
13468 return NULL;
13469 }
13470
13471
13472 static PyObject *_wrap_MimeTypesManager_ReadMimeTypes(PyObject *self, PyObject *args, PyObject *kwargs) {
13473 PyObject *resultobj;
13474 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13475 wxString *arg2 = 0 ;
13476 bool result;
13477 bool temp2 = False ;
13478 PyObject * obj0 = 0 ;
13479 PyObject * obj1 = 0 ;
13480 char *kwnames[] = {
13481 (char *) "self",(char *) "filename", NULL
13482 };
13483
13484 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_ReadMimeTypes",kwnames,&obj0,&obj1)) goto fail;
13485 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13486 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13487 {
13488 arg2 = wxString_in_helper(obj1);
13489 if (arg2 == NULL) SWIG_fail;
13490 temp2 = True;
13491 }
13492 {
13493 PyThreadState* __tstate = wxPyBeginAllowThreads();
13494 result = (bool)(arg1)->ReadMimeTypes((wxString const &)*arg2);
13495
13496 wxPyEndAllowThreads(__tstate);
13497 if (PyErr_Occurred()) SWIG_fail;
13498 }
13499 {
13500 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13501 }
13502 {
13503 if (temp2)
13504 delete arg2;
13505 }
13506 return resultobj;
13507 fail:
13508 {
13509 if (temp2)
13510 delete arg2;
13511 }
13512 return NULL;
13513 }
13514
13515
13516 static PyObject *_wrap_MimeTypesManager_EnumAllFileTypes(PyObject *self, PyObject *args, PyObject *kwargs) {
13517 PyObject *resultobj;
13518 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13519 PyObject *result;
13520 PyObject * obj0 = 0 ;
13521 char *kwnames[] = {
13522 (char *) "self", NULL
13523 };
13524
13525 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MimeTypesManager_EnumAllFileTypes",kwnames,&obj0)) goto fail;
13526 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13527 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13528 {
13529 PyThreadState* __tstate = wxPyBeginAllowThreads();
13530 result = (PyObject *)wxMimeTypesManager_EnumAllFileTypes(arg1);
13531
13532 wxPyEndAllowThreads(__tstate);
13533 if (PyErr_Occurred()) SWIG_fail;
13534 }
13535 resultobj = result;
13536 return resultobj;
13537 fail:
13538 return NULL;
13539 }
13540
13541
13542 static PyObject *_wrap_MimeTypesManager_AddFallback(PyObject *self, PyObject *args, PyObject *kwargs) {
13543 PyObject *resultobj;
13544 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13545 wxFileTypeInfo *arg2 = 0 ;
13546 PyObject * obj0 = 0 ;
13547 PyObject * obj1 = 0 ;
13548 char *kwnames[] = {
13549 (char *) "self",(char *) "ft", NULL
13550 };
13551
13552 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_AddFallback",kwnames,&obj0,&obj1)) goto fail;
13553 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13554 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13555 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileTypeInfo,
13556 SWIG_POINTER_EXCEPTION | 0)) == -1)
13557 SWIG_fail;
13558 if (arg2 == NULL) {
13559 PyErr_SetString(PyExc_TypeError,"null reference");
13560 SWIG_fail;
13561 }
13562 {
13563 PyThreadState* __tstate = wxPyBeginAllowThreads();
13564 (arg1)->AddFallback((wxFileTypeInfo const &)*arg2);
13565
13566 wxPyEndAllowThreads(__tstate);
13567 if (PyErr_Occurred()) SWIG_fail;
13568 }
13569 Py_INCREF(Py_None); resultobj = Py_None;
13570 return resultobj;
13571 fail:
13572 return NULL;
13573 }
13574
13575
13576 static PyObject *_wrap_MimeTypesManager_Associate(PyObject *self, PyObject *args, PyObject *kwargs) {
13577 PyObject *resultobj;
13578 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13579 wxFileTypeInfo *arg2 = 0 ;
13580 wxFileType *result;
13581 PyObject * obj0 = 0 ;
13582 PyObject * obj1 = 0 ;
13583 char *kwnames[] = {
13584 (char *) "self",(char *) "ftInfo", NULL
13585 };
13586
13587 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_Associate",kwnames,&obj0,&obj1)) goto fail;
13588 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13589 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13590 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileTypeInfo,
13591 SWIG_POINTER_EXCEPTION | 0)) == -1)
13592 SWIG_fail;
13593 if (arg2 == NULL) {
13594 PyErr_SetString(PyExc_TypeError,"null reference");
13595 SWIG_fail;
13596 }
13597 {
13598 PyThreadState* __tstate = wxPyBeginAllowThreads();
13599 result = (wxFileType *)(arg1)->Associate((wxFileTypeInfo const &)*arg2);
13600
13601 wxPyEndAllowThreads(__tstate);
13602 if (PyErr_Occurred()) SWIG_fail;
13603 }
13604 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1);
13605 return resultobj;
13606 fail:
13607 return NULL;
13608 }
13609
13610
13611 static PyObject *_wrap_MimeTypesManager_Unassociate(PyObject *self, PyObject *args, PyObject *kwargs) {
13612 PyObject *resultobj;
13613 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13614 wxFileType *arg2 = (wxFileType *) 0 ;
13615 bool result;
13616 PyObject * obj0 = 0 ;
13617 PyObject * obj1 = 0 ;
13618 char *kwnames[] = {
13619 (char *) "self",(char *) "ft", NULL
13620 };
13621
13622 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_Unassociate",kwnames,&obj0,&obj1)) goto fail;
13623 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13624 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13625 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileType,
13626 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13627 {
13628 PyThreadState* __tstate = wxPyBeginAllowThreads();
13629 result = (bool)(arg1)->Unassociate(arg2);
13630
13631 wxPyEndAllowThreads(__tstate);
13632 if (PyErr_Occurred()) SWIG_fail;
13633 }
13634 {
13635 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13636 }
13637 return resultobj;
13638 fail:
13639 return NULL;
13640 }
13641
13642
13643 static PyObject *_wrap_delete_MimeTypesManager(PyObject *self, PyObject *args, PyObject *kwargs) {
13644 PyObject *resultobj;
13645 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13646 PyObject * obj0 = 0 ;
13647 char *kwnames[] = {
13648 (char *) "self", NULL
13649 };
13650
13651 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MimeTypesManager",kwnames,&obj0)) goto fail;
13652 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13653 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13654 {
13655 PyThreadState* __tstate = wxPyBeginAllowThreads();
13656 delete arg1;
13657
13658 wxPyEndAllowThreads(__tstate);
13659 if (PyErr_Occurred()) SWIG_fail;
13660 }
13661 Py_INCREF(Py_None); resultobj = Py_None;
13662 return resultobj;
13663 fail:
13664 return NULL;
13665 }
13666
13667
13668 static PyObject * MimeTypesManager_swigregister(PyObject *self, PyObject *args) {
13669 PyObject *obj;
13670 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13671 SWIG_TypeClientData(SWIGTYPE_p_wxMimeTypesManager, obj);
13672 Py_INCREF(obj);
13673 return Py_BuildValue((char *)"");
13674 }
13675 static int _wrap_ART_TOOLBAR_set(PyObject *_val) {
13676 PyErr_SetString(PyExc_TypeError,"Variable ART_TOOLBAR is read-only.");
13677 return 1;
13678 }
13679
13680
13681 static PyObject *_wrap_ART_TOOLBAR_get() {
13682 PyObject *pyobj;
13683
13684 {
13685 #if wxUSE_UNICODE
13686 pyobj = PyUnicode_FromWideChar((&wxPyART_TOOLBAR)->c_str(), (&wxPyART_TOOLBAR)->Len());
13687 #else
13688 pyobj = PyString_FromStringAndSize((&wxPyART_TOOLBAR)->c_str(), (&wxPyART_TOOLBAR)->Len());
13689 #endif
13690 }
13691 return pyobj;
13692 }
13693
13694
13695 static int _wrap_ART_MENU_set(PyObject *_val) {
13696 PyErr_SetString(PyExc_TypeError,"Variable ART_MENU is read-only.");
13697 return 1;
13698 }
13699
13700
13701 static PyObject *_wrap_ART_MENU_get() {
13702 PyObject *pyobj;
13703
13704 {
13705 #if wxUSE_UNICODE
13706 pyobj = PyUnicode_FromWideChar((&wxPyART_MENU)->c_str(), (&wxPyART_MENU)->Len());
13707 #else
13708 pyobj = PyString_FromStringAndSize((&wxPyART_MENU)->c_str(), (&wxPyART_MENU)->Len());
13709 #endif
13710 }
13711 return pyobj;
13712 }
13713
13714
13715 static int _wrap_ART_FRAME_ICON_set(PyObject *_val) {
13716 PyErr_SetString(PyExc_TypeError,"Variable ART_FRAME_ICON is read-only.");
13717 return 1;
13718 }
13719
13720
13721 static PyObject *_wrap_ART_FRAME_ICON_get() {
13722 PyObject *pyobj;
13723
13724 {
13725 #if wxUSE_UNICODE
13726 pyobj = PyUnicode_FromWideChar((&wxPyART_FRAME_ICON)->c_str(), (&wxPyART_FRAME_ICON)->Len());
13727 #else
13728 pyobj = PyString_FromStringAndSize((&wxPyART_FRAME_ICON)->c_str(), (&wxPyART_FRAME_ICON)->Len());
13729 #endif
13730 }
13731 return pyobj;
13732 }
13733
13734
13735 static int _wrap_ART_CMN_DIALOG_set(PyObject *_val) {
13736 PyErr_SetString(PyExc_TypeError,"Variable ART_CMN_DIALOG is read-only.");
13737 return 1;
13738 }
13739
13740
13741 static PyObject *_wrap_ART_CMN_DIALOG_get() {
13742 PyObject *pyobj;
13743
13744 {
13745 #if wxUSE_UNICODE
13746 pyobj = PyUnicode_FromWideChar((&wxPyART_CMN_DIALOG)->c_str(), (&wxPyART_CMN_DIALOG)->Len());
13747 #else
13748 pyobj = PyString_FromStringAndSize((&wxPyART_CMN_DIALOG)->c_str(), (&wxPyART_CMN_DIALOG)->Len());
13749 #endif
13750 }
13751 return pyobj;
13752 }
13753
13754
13755 static int _wrap_ART_HELP_BROWSER_set(PyObject *_val) {
13756 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_BROWSER is read-only.");
13757 return 1;
13758 }
13759
13760
13761 static PyObject *_wrap_ART_HELP_BROWSER_get() {
13762 PyObject *pyobj;
13763
13764 {
13765 #if wxUSE_UNICODE
13766 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_BROWSER)->c_str(), (&wxPyART_HELP_BROWSER)->Len());
13767 #else
13768 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_BROWSER)->c_str(), (&wxPyART_HELP_BROWSER)->Len());
13769 #endif
13770 }
13771 return pyobj;
13772 }
13773
13774
13775 static int _wrap_ART_MESSAGE_BOX_set(PyObject *_val) {
13776 PyErr_SetString(PyExc_TypeError,"Variable ART_MESSAGE_BOX is read-only.");
13777 return 1;
13778 }
13779
13780
13781 static PyObject *_wrap_ART_MESSAGE_BOX_get() {
13782 PyObject *pyobj;
13783
13784 {
13785 #if wxUSE_UNICODE
13786 pyobj = PyUnicode_FromWideChar((&wxPyART_MESSAGE_BOX)->c_str(), (&wxPyART_MESSAGE_BOX)->Len());
13787 #else
13788 pyobj = PyString_FromStringAndSize((&wxPyART_MESSAGE_BOX)->c_str(), (&wxPyART_MESSAGE_BOX)->Len());
13789 #endif
13790 }
13791 return pyobj;
13792 }
13793
13794
13795 static int _wrap_ART_BUTTON_set(PyObject *_val) {
13796 PyErr_SetString(PyExc_TypeError,"Variable ART_BUTTON is read-only.");
13797 return 1;
13798 }
13799
13800
13801 static PyObject *_wrap_ART_BUTTON_get() {
13802 PyObject *pyobj;
13803
13804 {
13805 #if wxUSE_UNICODE
13806 pyobj = PyUnicode_FromWideChar((&wxPyART_BUTTON)->c_str(), (&wxPyART_BUTTON)->Len());
13807 #else
13808 pyobj = PyString_FromStringAndSize((&wxPyART_BUTTON)->c_str(), (&wxPyART_BUTTON)->Len());
13809 #endif
13810 }
13811 return pyobj;
13812 }
13813
13814
13815 static int _wrap_ART_OTHER_set(PyObject *_val) {
13816 PyErr_SetString(PyExc_TypeError,"Variable ART_OTHER is read-only.");
13817 return 1;
13818 }
13819
13820
13821 static PyObject *_wrap_ART_OTHER_get() {
13822 PyObject *pyobj;
13823
13824 {
13825 #if wxUSE_UNICODE
13826 pyobj = PyUnicode_FromWideChar((&wxPyART_OTHER)->c_str(), (&wxPyART_OTHER)->Len());
13827 #else
13828 pyobj = PyString_FromStringAndSize((&wxPyART_OTHER)->c_str(), (&wxPyART_OTHER)->Len());
13829 #endif
13830 }
13831 return pyobj;
13832 }
13833
13834
13835 static int _wrap_ART_ADD_BOOKMARK_set(PyObject *_val) {
13836 PyErr_SetString(PyExc_TypeError,"Variable ART_ADD_BOOKMARK is read-only.");
13837 return 1;
13838 }
13839
13840
13841 static PyObject *_wrap_ART_ADD_BOOKMARK_get() {
13842 PyObject *pyobj;
13843
13844 {
13845 #if wxUSE_UNICODE
13846 pyobj = PyUnicode_FromWideChar((&wxPyART_ADD_BOOKMARK)->c_str(), (&wxPyART_ADD_BOOKMARK)->Len());
13847 #else
13848 pyobj = PyString_FromStringAndSize((&wxPyART_ADD_BOOKMARK)->c_str(), (&wxPyART_ADD_BOOKMARK)->Len());
13849 #endif
13850 }
13851 return pyobj;
13852 }
13853
13854
13855 static int _wrap_ART_DEL_BOOKMARK_set(PyObject *_val) {
13856 PyErr_SetString(PyExc_TypeError,"Variable ART_DEL_BOOKMARK is read-only.");
13857 return 1;
13858 }
13859
13860
13861 static PyObject *_wrap_ART_DEL_BOOKMARK_get() {
13862 PyObject *pyobj;
13863
13864 {
13865 #if wxUSE_UNICODE
13866 pyobj = PyUnicode_FromWideChar((&wxPyART_DEL_BOOKMARK)->c_str(), (&wxPyART_DEL_BOOKMARK)->Len());
13867 #else
13868 pyobj = PyString_FromStringAndSize((&wxPyART_DEL_BOOKMARK)->c_str(), (&wxPyART_DEL_BOOKMARK)->Len());
13869 #endif
13870 }
13871 return pyobj;
13872 }
13873
13874
13875 static int _wrap_ART_HELP_SIDE_PANEL_set(PyObject *_val) {
13876 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_SIDE_PANEL is read-only.");
13877 return 1;
13878 }
13879
13880
13881 static PyObject *_wrap_ART_HELP_SIDE_PANEL_get() {
13882 PyObject *pyobj;
13883
13884 {
13885 #if wxUSE_UNICODE
13886 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_SIDE_PANEL)->c_str(), (&wxPyART_HELP_SIDE_PANEL)->Len());
13887 #else
13888 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_SIDE_PANEL)->c_str(), (&wxPyART_HELP_SIDE_PANEL)->Len());
13889 #endif
13890 }
13891 return pyobj;
13892 }
13893
13894
13895 static int _wrap_ART_HELP_SETTINGS_set(PyObject *_val) {
13896 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_SETTINGS is read-only.");
13897 return 1;
13898 }
13899
13900
13901 static PyObject *_wrap_ART_HELP_SETTINGS_get() {
13902 PyObject *pyobj;
13903
13904 {
13905 #if wxUSE_UNICODE
13906 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_SETTINGS)->c_str(), (&wxPyART_HELP_SETTINGS)->Len());
13907 #else
13908 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_SETTINGS)->c_str(), (&wxPyART_HELP_SETTINGS)->Len());
13909 #endif
13910 }
13911 return pyobj;
13912 }
13913
13914
13915 static int _wrap_ART_HELP_BOOK_set(PyObject *_val) {
13916 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_BOOK is read-only.");
13917 return 1;
13918 }
13919
13920
13921 static PyObject *_wrap_ART_HELP_BOOK_get() {
13922 PyObject *pyobj;
13923
13924 {
13925 #if wxUSE_UNICODE
13926 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_BOOK)->c_str(), (&wxPyART_HELP_BOOK)->Len());
13927 #else
13928 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_BOOK)->c_str(), (&wxPyART_HELP_BOOK)->Len());
13929 #endif
13930 }
13931 return pyobj;
13932 }
13933
13934
13935 static int _wrap_ART_HELP_FOLDER_set(PyObject *_val) {
13936 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_FOLDER is read-only.");
13937 return 1;
13938 }
13939
13940
13941 static PyObject *_wrap_ART_HELP_FOLDER_get() {
13942 PyObject *pyobj;
13943
13944 {
13945 #if wxUSE_UNICODE
13946 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_FOLDER)->c_str(), (&wxPyART_HELP_FOLDER)->Len());
13947 #else
13948 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_FOLDER)->c_str(), (&wxPyART_HELP_FOLDER)->Len());
13949 #endif
13950 }
13951 return pyobj;
13952 }
13953
13954
13955 static int _wrap_ART_HELP_PAGE_set(PyObject *_val) {
13956 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_PAGE is read-only.");
13957 return 1;
13958 }
13959
13960
13961 static PyObject *_wrap_ART_HELP_PAGE_get() {
13962 PyObject *pyobj;
13963
13964 {
13965 #if wxUSE_UNICODE
13966 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_PAGE)->c_str(), (&wxPyART_HELP_PAGE)->Len());
13967 #else
13968 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_PAGE)->c_str(), (&wxPyART_HELP_PAGE)->Len());
13969 #endif
13970 }
13971 return pyobj;
13972 }
13973
13974
13975 static int _wrap_ART_GO_BACK_set(PyObject *_val) {
13976 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_BACK is read-only.");
13977 return 1;
13978 }
13979
13980
13981 static PyObject *_wrap_ART_GO_BACK_get() {
13982 PyObject *pyobj;
13983
13984 {
13985 #if wxUSE_UNICODE
13986 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_BACK)->c_str(), (&wxPyART_GO_BACK)->Len());
13987 #else
13988 pyobj = PyString_FromStringAndSize((&wxPyART_GO_BACK)->c_str(), (&wxPyART_GO_BACK)->Len());
13989 #endif
13990 }
13991 return pyobj;
13992 }
13993
13994
13995 static int _wrap_ART_GO_FORWARD_set(PyObject *_val) {
13996 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_FORWARD is read-only.");
13997 return 1;
13998 }
13999
14000
14001 static PyObject *_wrap_ART_GO_FORWARD_get() {
14002 PyObject *pyobj;
14003
14004 {
14005 #if wxUSE_UNICODE
14006 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_FORWARD)->c_str(), (&wxPyART_GO_FORWARD)->Len());
14007 #else
14008 pyobj = PyString_FromStringAndSize((&wxPyART_GO_FORWARD)->c_str(), (&wxPyART_GO_FORWARD)->Len());
14009 #endif
14010 }
14011 return pyobj;
14012 }
14013
14014
14015 static int _wrap_ART_GO_UP_set(PyObject *_val) {
14016 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_UP is read-only.");
14017 return 1;
14018 }
14019
14020
14021 static PyObject *_wrap_ART_GO_UP_get() {
14022 PyObject *pyobj;
14023
14024 {
14025 #if wxUSE_UNICODE
14026 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_UP)->c_str(), (&wxPyART_GO_UP)->Len());
14027 #else
14028 pyobj = PyString_FromStringAndSize((&wxPyART_GO_UP)->c_str(), (&wxPyART_GO_UP)->Len());
14029 #endif
14030 }
14031 return pyobj;
14032 }
14033
14034
14035 static int _wrap_ART_GO_DOWN_set(PyObject *_val) {
14036 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_DOWN is read-only.");
14037 return 1;
14038 }
14039
14040
14041 static PyObject *_wrap_ART_GO_DOWN_get() {
14042 PyObject *pyobj;
14043
14044 {
14045 #if wxUSE_UNICODE
14046 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_DOWN)->c_str(), (&wxPyART_GO_DOWN)->Len());
14047 #else
14048 pyobj = PyString_FromStringAndSize((&wxPyART_GO_DOWN)->c_str(), (&wxPyART_GO_DOWN)->Len());
14049 #endif
14050 }
14051 return pyobj;
14052 }
14053
14054
14055 static int _wrap_ART_GO_TO_PARENT_set(PyObject *_val) {
14056 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_TO_PARENT is read-only.");
14057 return 1;
14058 }
14059
14060
14061 static PyObject *_wrap_ART_GO_TO_PARENT_get() {
14062 PyObject *pyobj;
14063
14064 {
14065 #if wxUSE_UNICODE
14066 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_TO_PARENT)->c_str(), (&wxPyART_GO_TO_PARENT)->Len());
14067 #else
14068 pyobj = PyString_FromStringAndSize((&wxPyART_GO_TO_PARENT)->c_str(), (&wxPyART_GO_TO_PARENT)->Len());
14069 #endif
14070 }
14071 return pyobj;
14072 }
14073
14074
14075 static int _wrap_ART_GO_HOME_set(PyObject *_val) {
14076 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_HOME is read-only.");
14077 return 1;
14078 }
14079
14080
14081 static PyObject *_wrap_ART_GO_HOME_get() {
14082 PyObject *pyobj;
14083
14084 {
14085 #if wxUSE_UNICODE
14086 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_HOME)->c_str(), (&wxPyART_GO_HOME)->Len());
14087 #else
14088 pyobj = PyString_FromStringAndSize((&wxPyART_GO_HOME)->c_str(), (&wxPyART_GO_HOME)->Len());
14089 #endif
14090 }
14091 return pyobj;
14092 }
14093
14094
14095 static int _wrap_ART_FILE_OPEN_set(PyObject *_val) {
14096 PyErr_SetString(PyExc_TypeError,"Variable ART_FILE_OPEN is read-only.");
14097 return 1;
14098 }
14099
14100
14101 static PyObject *_wrap_ART_FILE_OPEN_get() {
14102 PyObject *pyobj;
14103
14104 {
14105 #if wxUSE_UNICODE
14106 pyobj = PyUnicode_FromWideChar((&wxPyART_FILE_OPEN)->c_str(), (&wxPyART_FILE_OPEN)->Len());
14107 #else
14108 pyobj = PyString_FromStringAndSize((&wxPyART_FILE_OPEN)->c_str(), (&wxPyART_FILE_OPEN)->Len());
14109 #endif
14110 }
14111 return pyobj;
14112 }
14113
14114
14115 static int _wrap_ART_PRINT_set(PyObject *_val) {
14116 PyErr_SetString(PyExc_TypeError,"Variable ART_PRINT is read-only.");
14117 return 1;
14118 }
14119
14120
14121 static PyObject *_wrap_ART_PRINT_get() {
14122 PyObject *pyobj;
14123
14124 {
14125 #if wxUSE_UNICODE
14126 pyobj = PyUnicode_FromWideChar((&wxPyART_PRINT)->c_str(), (&wxPyART_PRINT)->Len());
14127 #else
14128 pyobj = PyString_FromStringAndSize((&wxPyART_PRINT)->c_str(), (&wxPyART_PRINT)->Len());
14129 #endif
14130 }
14131 return pyobj;
14132 }
14133
14134
14135 static int _wrap_ART_HELP_set(PyObject *_val) {
14136 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP is read-only.");
14137 return 1;
14138 }
14139
14140
14141 static PyObject *_wrap_ART_HELP_get() {
14142 PyObject *pyobj;
14143
14144 {
14145 #if wxUSE_UNICODE
14146 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP)->c_str(), (&wxPyART_HELP)->Len());
14147 #else
14148 pyobj = PyString_FromStringAndSize((&wxPyART_HELP)->c_str(), (&wxPyART_HELP)->Len());
14149 #endif
14150 }
14151 return pyobj;
14152 }
14153
14154
14155 static int _wrap_ART_TIP_set(PyObject *_val) {
14156 PyErr_SetString(PyExc_TypeError,"Variable ART_TIP is read-only.");
14157 return 1;
14158 }
14159
14160
14161 static PyObject *_wrap_ART_TIP_get() {
14162 PyObject *pyobj;
14163
14164 {
14165 #if wxUSE_UNICODE
14166 pyobj = PyUnicode_FromWideChar((&wxPyART_TIP)->c_str(), (&wxPyART_TIP)->Len());
14167 #else
14168 pyobj = PyString_FromStringAndSize((&wxPyART_TIP)->c_str(), (&wxPyART_TIP)->Len());
14169 #endif
14170 }
14171 return pyobj;
14172 }
14173
14174
14175 static int _wrap_ART_REPORT_VIEW_set(PyObject *_val) {
14176 PyErr_SetString(PyExc_TypeError,"Variable ART_REPORT_VIEW is read-only.");
14177 return 1;
14178 }
14179
14180
14181 static PyObject *_wrap_ART_REPORT_VIEW_get() {
14182 PyObject *pyobj;
14183
14184 {
14185 #if wxUSE_UNICODE
14186 pyobj = PyUnicode_FromWideChar((&wxPyART_REPORT_VIEW)->c_str(), (&wxPyART_REPORT_VIEW)->Len());
14187 #else
14188 pyobj = PyString_FromStringAndSize((&wxPyART_REPORT_VIEW)->c_str(), (&wxPyART_REPORT_VIEW)->Len());
14189 #endif
14190 }
14191 return pyobj;
14192 }
14193
14194
14195 static int _wrap_ART_LIST_VIEW_set(PyObject *_val) {
14196 PyErr_SetString(PyExc_TypeError,"Variable ART_LIST_VIEW is read-only.");
14197 return 1;
14198 }
14199
14200
14201 static PyObject *_wrap_ART_LIST_VIEW_get() {
14202 PyObject *pyobj;
14203
14204 {
14205 #if wxUSE_UNICODE
14206 pyobj = PyUnicode_FromWideChar((&wxPyART_LIST_VIEW)->c_str(), (&wxPyART_LIST_VIEW)->Len());
14207 #else
14208 pyobj = PyString_FromStringAndSize((&wxPyART_LIST_VIEW)->c_str(), (&wxPyART_LIST_VIEW)->Len());
14209 #endif
14210 }
14211 return pyobj;
14212 }
14213
14214
14215 static int _wrap_ART_NEW_DIR_set(PyObject *_val) {
14216 PyErr_SetString(PyExc_TypeError,"Variable ART_NEW_DIR is read-only.");
14217 return 1;
14218 }
14219
14220
14221 static PyObject *_wrap_ART_NEW_DIR_get() {
14222 PyObject *pyobj;
14223
14224 {
14225 #if wxUSE_UNICODE
14226 pyobj = PyUnicode_FromWideChar((&wxPyART_NEW_DIR)->c_str(), (&wxPyART_NEW_DIR)->Len());
14227 #else
14228 pyobj = PyString_FromStringAndSize((&wxPyART_NEW_DIR)->c_str(), (&wxPyART_NEW_DIR)->Len());
14229 #endif
14230 }
14231 return pyobj;
14232 }
14233
14234
14235 static int _wrap_ART_FOLDER_set(PyObject *_val) {
14236 PyErr_SetString(PyExc_TypeError,"Variable ART_FOLDER is read-only.");
14237 return 1;
14238 }
14239
14240
14241 static PyObject *_wrap_ART_FOLDER_get() {
14242 PyObject *pyobj;
14243
14244 {
14245 #if wxUSE_UNICODE
14246 pyobj = PyUnicode_FromWideChar((&wxPyART_FOLDER)->c_str(), (&wxPyART_FOLDER)->Len());
14247 #else
14248 pyobj = PyString_FromStringAndSize((&wxPyART_FOLDER)->c_str(), (&wxPyART_FOLDER)->Len());
14249 #endif
14250 }
14251 return pyobj;
14252 }
14253
14254
14255 static int _wrap_ART_GO_DIR_UP_set(PyObject *_val) {
14256 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_DIR_UP is read-only.");
14257 return 1;
14258 }
14259
14260
14261 static PyObject *_wrap_ART_GO_DIR_UP_get() {
14262 PyObject *pyobj;
14263
14264 {
14265 #if wxUSE_UNICODE
14266 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_DIR_UP)->c_str(), (&wxPyART_GO_DIR_UP)->Len());
14267 #else
14268 pyobj = PyString_FromStringAndSize((&wxPyART_GO_DIR_UP)->c_str(), (&wxPyART_GO_DIR_UP)->Len());
14269 #endif
14270 }
14271 return pyobj;
14272 }
14273
14274
14275 static int _wrap_ART_EXECUTABLE_FILE_set(PyObject *_val) {
14276 PyErr_SetString(PyExc_TypeError,"Variable ART_EXECUTABLE_FILE is read-only.");
14277 return 1;
14278 }
14279
14280
14281 static PyObject *_wrap_ART_EXECUTABLE_FILE_get() {
14282 PyObject *pyobj;
14283
14284 {
14285 #if wxUSE_UNICODE
14286 pyobj = PyUnicode_FromWideChar((&wxPyART_EXECUTABLE_FILE)->c_str(), (&wxPyART_EXECUTABLE_FILE)->Len());
14287 #else
14288 pyobj = PyString_FromStringAndSize((&wxPyART_EXECUTABLE_FILE)->c_str(), (&wxPyART_EXECUTABLE_FILE)->Len());
14289 #endif
14290 }
14291 return pyobj;
14292 }
14293
14294
14295 static int _wrap_ART_NORMAL_FILE_set(PyObject *_val) {
14296 PyErr_SetString(PyExc_TypeError,"Variable ART_NORMAL_FILE is read-only.");
14297 return 1;
14298 }
14299
14300
14301 static PyObject *_wrap_ART_NORMAL_FILE_get() {
14302 PyObject *pyobj;
14303
14304 {
14305 #if wxUSE_UNICODE
14306 pyobj = PyUnicode_FromWideChar((&wxPyART_NORMAL_FILE)->c_str(), (&wxPyART_NORMAL_FILE)->Len());
14307 #else
14308 pyobj = PyString_FromStringAndSize((&wxPyART_NORMAL_FILE)->c_str(), (&wxPyART_NORMAL_FILE)->Len());
14309 #endif
14310 }
14311 return pyobj;
14312 }
14313
14314
14315 static int _wrap_ART_TICK_MARK_set(PyObject *_val) {
14316 PyErr_SetString(PyExc_TypeError,"Variable ART_TICK_MARK is read-only.");
14317 return 1;
14318 }
14319
14320
14321 static PyObject *_wrap_ART_TICK_MARK_get() {
14322 PyObject *pyobj;
14323
14324 {
14325 #if wxUSE_UNICODE
14326 pyobj = PyUnicode_FromWideChar((&wxPyART_TICK_MARK)->c_str(), (&wxPyART_TICK_MARK)->Len());
14327 #else
14328 pyobj = PyString_FromStringAndSize((&wxPyART_TICK_MARK)->c_str(), (&wxPyART_TICK_MARK)->Len());
14329 #endif
14330 }
14331 return pyobj;
14332 }
14333
14334
14335 static int _wrap_ART_CROSS_MARK_set(PyObject *_val) {
14336 PyErr_SetString(PyExc_TypeError,"Variable ART_CROSS_MARK is read-only.");
14337 return 1;
14338 }
14339
14340
14341 static PyObject *_wrap_ART_CROSS_MARK_get() {
14342 PyObject *pyobj;
14343
14344 {
14345 #if wxUSE_UNICODE
14346 pyobj = PyUnicode_FromWideChar((&wxPyART_CROSS_MARK)->c_str(), (&wxPyART_CROSS_MARK)->Len());
14347 #else
14348 pyobj = PyString_FromStringAndSize((&wxPyART_CROSS_MARK)->c_str(), (&wxPyART_CROSS_MARK)->Len());
14349 #endif
14350 }
14351 return pyobj;
14352 }
14353
14354
14355 static int _wrap_ART_ERROR_set(PyObject *_val) {
14356 PyErr_SetString(PyExc_TypeError,"Variable ART_ERROR is read-only.");
14357 return 1;
14358 }
14359
14360
14361 static PyObject *_wrap_ART_ERROR_get() {
14362 PyObject *pyobj;
14363
14364 {
14365 #if wxUSE_UNICODE
14366 pyobj = PyUnicode_FromWideChar((&wxPyART_ERROR)->c_str(), (&wxPyART_ERROR)->Len());
14367 #else
14368 pyobj = PyString_FromStringAndSize((&wxPyART_ERROR)->c_str(), (&wxPyART_ERROR)->Len());
14369 #endif
14370 }
14371 return pyobj;
14372 }
14373
14374
14375 static int _wrap_ART_QUESTION_set(PyObject *_val) {
14376 PyErr_SetString(PyExc_TypeError,"Variable ART_QUESTION is read-only.");
14377 return 1;
14378 }
14379
14380
14381 static PyObject *_wrap_ART_QUESTION_get() {
14382 PyObject *pyobj;
14383
14384 {
14385 #if wxUSE_UNICODE
14386 pyobj = PyUnicode_FromWideChar((&wxPyART_QUESTION)->c_str(), (&wxPyART_QUESTION)->Len());
14387 #else
14388 pyobj = PyString_FromStringAndSize((&wxPyART_QUESTION)->c_str(), (&wxPyART_QUESTION)->Len());
14389 #endif
14390 }
14391 return pyobj;
14392 }
14393
14394
14395 static int _wrap_ART_WARNING_set(PyObject *_val) {
14396 PyErr_SetString(PyExc_TypeError,"Variable ART_WARNING is read-only.");
14397 return 1;
14398 }
14399
14400
14401 static PyObject *_wrap_ART_WARNING_get() {
14402 PyObject *pyobj;
14403
14404 {
14405 #if wxUSE_UNICODE
14406 pyobj = PyUnicode_FromWideChar((&wxPyART_WARNING)->c_str(), (&wxPyART_WARNING)->Len());
14407 #else
14408 pyobj = PyString_FromStringAndSize((&wxPyART_WARNING)->c_str(), (&wxPyART_WARNING)->Len());
14409 #endif
14410 }
14411 return pyobj;
14412 }
14413
14414
14415 static int _wrap_ART_INFORMATION_set(PyObject *_val) {
14416 PyErr_SetString(PyExc_TypeError,"Variable ART_INFORMATION is read-only.");
14417 return 1;
14418 }
14419
14420
14421 static PyObject *_wrap_ART_INFORMATION_get() {
14422 PyObject *pyobj;
14423
14424 {
14425 #if wxUSE_UNICODE
14426 pyobj = PyUnicode_FromWideChar((&wxPyART_INFORMATION)->c_str(), (&wxPyART_INFORMATION)->Len());
14427 #else
14428 pyobj = PyString_FromStringAndSize((&wxPyART_INFORMATION)->c_str(), (&wxPyART_INFORMATION)->Len());
14429 #endif
14430 }
14431 return pyobj;
14432 }
14433
14434
14435 static int _wrap_ART_MISSING_IMAGE_set(PyObject *_val) {
14436 PyErr_SetString(PyExc_TypeError,"Variable ART_MISSING_IMAGE is read-only.");
14437 return 1;
14438 }
14439
14440
14441 static PyObject *_wrap_ART_MISSING_IMAGE_get() {
14442 PyObject *pyobj;
14443
14444 {
14445 #if wxUSE_UNICODE
14446 pyobj = PyUnicode_FromWideChar((&wxPyART_MISSING_IMAGE)->c_str(), (&wxPyART_MISSING_IMAGE)->Len());
14447 #else
14448 pyobj = PyString_FromStringAndSize((&wxPyART_MISSING_IMAGE)->c_str(), (&wxPyART_MISSING_IMAGE)->Len());
14449 #endif
14450 }
14451 return pyobj;
14452 }
14453
14454
14455 static PyObject *_wrap_new_ArtProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
14456 PyObject *resultobj;
14457 wxPyArtProvider *result;
14458 char *kwnames[] = {
14459 NULL
14460 };
14461
14462 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ArtProvider",kwnames)) goto fail;
14463 {
14464 if (!wxPyCheckForApp()) SWIG_fail;
14465 PyThreadState* __tstate = wxPyBeginAllowThreads();
14466 result = (wxPyArtProvider *)new wxPyArtProvider();
14467
14468 wxPyEndAllowThreads(__tstate);
14469 if (PyErr_Occurred()) SWIG_fail;
14470 }
14471 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyArtProvider, 1);
14472 return resultobj;
14473 fail:
14474 return NULL;
14475 }
14476
14477
14478 static PyObject *_wrap_ArtProvider__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
14479 PyObject *resultobj;
14480 wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ;
14481 PyObject *arg2 = (PyObject *) 0 ;
14482 PyObject *arg3 = (PyObject *) 0 ;
14483 PyObject * obj0 = 0 ;
14484 PyObject * obj1 = 0 ;
14485 PyObject * obj2 = 0 ;
14486 char *kwnames[] = {
14487 (char *) "self",(char *) "self",(char *) "_class", NULL
14488 };
14489
14490 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ArtProvider__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
14491 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider,
14492 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14493 arg2 = obj1;
14494 arg3 = obj2;
14495 {
14496 PyThreadState* __tstate = wxPyBeginAllowThreads();
14497 (arg1)->_setCallbackInfo(arg2,arg3);
14498
14499 wxPyEndAllowThreads(__tstate);
14500 if (PyErr_Occurred()) SWIG_fail;
14501 }
14502 Py_INCREF(Py_None); resultobj = Py_None;
14503 return resultobj;
14504 fail:
14505 return NULL;
14506 }
14507
14508
14509 static PyObject *_wrap_ArtProvider_PushProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
14510 PyObject *resultobj;
14511 wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ;
14512 PyObject * obj0 = 0 ;
14513 char *kwnames[] = {
14514 (char *) "provider", NULL
14515 };
14516
14517 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_PushProvider",kwnames,&obj0)) goto fail;
14518 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider,
14519 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14520 {
14521 PyThreadState* __tstate = wxPyBeginAllowThreads();
14522 wxPyArtProvider::PushProvider(arg1);
14523
14524 wxPyEndAllowThreads(__tstate);
14525 if (PyErr_Occurred()) SWIG_fail;
14526 }
14527 Py_INCREF(Py_None); resultobj = Py_None;
14528 return resultobj;
14529 fail:
14530 return NULL;
14531 }
14532
14533
14534 static PyObject *_wrap_ArtProvider_PopProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
14535 PyObject *resultobj;
14536 bool result;
14537 char *kwnames[] = {
14538 NULL
14539 };
14540
14541 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ArtProvider_PopProvider",kwnames)) goto fail;
14542 {
14543 PyThreadState* __tstate = wxPyBeginAllowThreads();
14544 result = (bool)wxPyArtProvider::PopProvider();
14545
14546 wxPyEndAllowThreads(__tstate);
14547 if (PyErr_Occurred()) SWIG_fail;
14548 }
14549 {
14550 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14551 }
14552 return resultobj;
14553 fail:
14554 return NULL;
14555 }
14556
14557
14558 static PyObject *_wrap_ArtProvider_RemoveProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
14559 PyObject *resultobj;
14560 wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ;
14561 bool result;
14562 PyObject * obj0 = 0 ;
14563 char *kwnames[] = {
14564 (char *) "provider", NULL
14565 };
14566
14567 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_RemoveProvider",kwnames,&obj0)) goto fail;
14568 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider,
14569 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14570 {
14571 PyThreadState* __tstate = wxPyBeginAllowThreads();
14572 result = (bool)wxPyArtProvider::RemoveProvider(arg1);
14573
14574 wxPyEndAllowThreads(__tstate);
14575 if (PyErr_Occurred()) SWIG_fail;
14576 }
14577 {
14578 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14579 }
14580 return resultobj;
14581 fail:
14582 return NULL;
14583 }
14584
14585
14586 static PyObject *_wrap_ArtProvider_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
14587 PyObject *resultobj;
14588 wxString *arg1 = 0 ;
14589 wxString const &arg2_defvalue = wxPyART_OTHER ;
14590 wxString *arg2 = (wxString *) &arg2_defvalue ;
14591 wxSize const &arg3_defvalue = wxDefaultSize ;
14592 wxSize *arg3 = (wxSize *) &arg3_defvalue ;
14593 wxBitmap result;
14594 bool temp1 = False ;
14595 bool temp2 = False ;
14596 wxSize temp3 ;
14597 PyObject * obj0 = 0 ;
14598 PyObject * obj1 = 0 ;
14599 PyObject * obj2 = 0 ;
14600 char *kwnames[] = {
14601 (char *) "id",(char *) "client",(char *) "size", NULL
14602 };
14603
14604 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:ArtProvider_GetBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail;
14605 {
14606 arg1 = wxString_in_helper(obj0);
14607 if (arg1 == NULL) SWIG_fail;
14608 temp1 = True;
14609 }
14610 if (obj1) {
14611 {
14612 arg2 = wxString_in_helper(obj1);
14613 if (arg2 == NULL) SWIG_fail;
14614 temp2 = True;
14615 }
14616 }
14617 if (obj2) {
14618 {
14619 arg3 = &temp3;
14620 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
14621 }
14622 }
14623 {
14624 if (!wxPyCheckForApp()) SWIG_fail;
14625 PyThreadState* __tstate = wxPyBeginAllowThreads();
14626 result = wxPyArtProvider::GetBitmap((wxString const &)*arg1,(wxString const &)*arg2,(wxSize const &)*arg3);
14627
14628 wxPyEndAllowThreads(__tstate);
14629 if (PyErr_Occurred()) SWIG_fail;
14630 }
14631 {
14632 wxBitmap * resultptr;
14633 resultptr = new wxBitmap((wxBitmap &) result);
14634 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
14635 }
14636 {
14637 if (temp1)
14638 delete arg1;
14639 }
14640 {
14641 if (temp2)
14642 delete arg2;
14643 }
14644 return resultobj;
14645 fail:
14646 {
14647 if (temp1)
14648 delete arg1;
14649 }
14650 {
14651 if (temp2)
14652 delete arg2;
14653 }
14654 return NULL;
14655 }
14656
14657
14658 static PyObject *_wrap_ArtProvider_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
14659 PyObject *resultobj;
14660 wxString *arg1 = 0 ;
14661 wxString const &arg2_defvalue = wxPyART_OTHER ;
14662 wxString *arg2 = (wxString *) &arg2_defvalue ;
14663 wxSize const &arg3_defvalue = wxDefaultSize ;
14664 wxSize *arg3 = (wxSize *) &arg3_defvalue ;
14665 wxIcon result;
14666 bool temp1 = False ;
14667 bool temp2 = False ;
14668 wxSize temp3 ;
14669 PyObject * obj0 = 0 ;
14670 PyObject * obj1 = 0 ;
14671 PyObject * obj2 = 0 ;
14672 char *kwnames[] = {
14673 (char *) "id",(char *) "client",(char *) "size", NULL
14674 };
14675
14676 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:ArtProvider_GetIcon",kwnames,&obj0,&obj1,&obj2)) goto fail;
14677 {
14678 arg1 = wxString_in_helper(obj0);
14679 if (arg1 == NULL) SWIG_fail;
14680 temp1 = True;
14681 }
14682 if (obj1) {
14683 {
14684 arg2 = wxString_in_helper(obj1);
14685 if (arg2 == NULL) SWIG_fail;
14686 temp2 = True;
14687 }
14688 }
14689 if (obj2) {
14690 {
14691 arg3 = &temp3;
14692 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
14693 }
14694 }
14695 {
14696 if (!wxPyCheckForApp()) SWIG_fail;
14697 PyThreadState* __tstate = wxPyBeginAllowThreads();
14698 result = wxPyArtProvider::GetIcon((wxString const &)*arg1,(wxString const &)*arg2,(wxSize const &)*arg3);
14699
14700 wxPyEndAllowThreads(__tstate);
14701 if (PyErr_Occurred()) SWIG_fail;
14702 }
14703 {
14704 wxIcon * resultptr;
14705 resultptr = new wxIcon((wxIcon &) result);
14706 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxIcon, 1);
14707 }
14708 {
14709 if (temp1)
14710 delete arg1;
14711 }
14712 {
14713 if (temp2)
14714 delete arg2;
14715 }
14716 return resultobj;
14717 fail:
14718 {
14719 if (temp1)
14720 delete arg1;
14721 }
14722 {
14723 if (temp2)
14724 delete arg2;
14725 }
14726 return NULL;
14727 }
14728
14729
14730 static PyObject *_wrap_ArtProvider_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
14731 PyObject *resultobj;
14732 wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ;
14733 PyObject * obj0 = 0 ;
14734 char *kwnames[] = {
14735 (char *) "self", NULL
14736 };
14737
14738 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_Destroy",kwnames,&obj0)) goto fail;
14739 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider,
14740 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14741 {
14742 PyThreadState* __tstate = wxPyBeginAllowThreads();
14743 wxPyArtProvider_Destroy(arg1);
14744
14745 wxPyEndAllowThreads(__tstate);
14746 if (PyErr_Occurred()) SWIG_fail;
14747 }
14748 Py_INCREF(Py_None); resultobj = Py_None;
14749 return resultobj;
14750 fail:
14751 return NULL;
14752 }
14753
14754
14755 static PyObject * ArtProvider_swigregister(PyObject *self, PyObject *args) {
14756 PyObject *obj;
14757 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14758 SWIG_TypeClientData(SWIGTYPE_p_wxPyArtProvider, obj);
14759 Py_INCREF(obj);
14760 return Py_BuildValue((char *)"");
14761 }
14762 static PyObject *_wrap_delete_ConfigBase(PyObject *self, PyObject *args, PyObject *kwargs) {
14763 PyObject *resultobj;
14764 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14765 PyObject * obj0 = 0 ;
14766 char *kwnames[] = {
14767 (char *) "self", NULL
14768 };
14769
14770 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ConfigBase",kwnames,&obj0)) goto fail;
14771 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14772 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14773 {
14774 PyThreadState* __tstate = wxPyBeginAllowThreads();
14775 delete arg1;
14776
14777 wxPyEndAllowThreads(__tstate);
14778 if (PyErr_Occurred()) SWIG_fail;
14779 }
14780 Py_INCREF(Py_None); resultobj = Py_None;
14781 return resultobj;
14782 fail:
14783 return NULL;
14784 }
14785
14786
14787 static PyObject *_wrap_ConfigBase_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
14788 PyObject *resultobj;
14789 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14790 wxConfigBase *result;
14791 PyObject * obj0 = 0 ;
14792 char *kwnames[] = {
14793 (char *) "config", NULL
14794 };
14795
14796 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_Set",kwnames,&obj0)) goto fail;
14797 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14798 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14799 {
14800 PyThreadState* __tstate = wxPyBeginAllowThreads();
14801 result = (wxConfigBase *)wxConfigBase::Set(arg1);
14802
14803 wxPyEndAllowThreads(__tstate);
14804 if (PyErr_Occurred()) SWIG_fail;
14805 }
14806 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigBase, 0);
14807 return resultobj;
14808 fail:
14809 return NULL;
14810 }
14811
14812
14813 static PyObject *_wrap_ConfigBase_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
14814 PyObject *resultobj;
14815 bool arg1 = (bool) True ;
14816 wxConfigBase *result;
14817 PyObject * obj0 = 0 ;
14818 char *kwnames[] = {
14819 (char *) "createOnDemand", NULL
14820 };
14821
14822 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ConfigBase_Get",kwnames,&obj0)) goto fail;
14823 if (obj0) {
14824 arg1 = (bool) SWIG_AsBool(obj0);
14825 if (PyErr_Occurred()) SWIG_fail;
14826 }
14827 {
14828 PyThreadState* __tstate = wxPyBeginAllowThreads();
14829 result = (wxConfigBase *)wxConfigBase::Get(arg1);
14830
14831 wxPyEndAllowThreads(__tstate);
14832 if (PyErr_Occurred()) SWIG_fail;
14833 }
14834 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigBase, 0);
14835 return resultobj;
14836 fail:
14837 return NULL;
14838 }
14839
14840
14841 static PyObject *_wrap_ConfigBase_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
14842 PyObject *resultobj;
14843 wxConfigBase *result;
14844 char *kwnames[] = {
14845 NULL
14846 };
14847
14848 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ConfigBase_Create",kwnames)) goto fail;
14849 {
14850 PyThreadState* __tstate = wxPyBeginAllowThreads();
14851 result = (wxConfigBase *)wxConfigBase::Create();
14852
14853 wxPyEndAllowThreads(__tstate);
14854 if (PyErr_Occurred()) SWIG_fail;
14855 }
14856 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigBase, 0);
14857 return resultobj;
14858 fail:
14859 return NULL;
14860 }
14861
14862
14863 static PyObject *_wrap_ConfigBase_DontCreateOnDemand(PyObject *self, PyObject *args, PyObject *kwargs) {
14864 PyObject *resultobj;
14865 char *kwnames[] = {
14866 NULL
14867 };
14868
14869 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ConfigBase_DontCreateOnDemand",kwnames)) goto fail;
14870 {
14871 PyThreadState* __tstate = wxPyBeginAllowThreads();
14872 wxConfigBase::DontCreateOnDemand();
14873
14874 wxPyEndAllowThreads(__tstate);
14875 if (PyErr_Occurred()) SWIG_fail;
14876 }
14877 Py_INCREF(Py_None); resultobj = Py_None;
14878 return resultobj;
14879 fail:
14880 return NULL;
14881 }
14882
14883
14884 static PyObject *_wrap_ConfigBase_SetPath(PyObject *self, PyObject *args, PyObject *kwargs) {
14885 PyObject *resultobj;
14886 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14887 wxString *arg2 = 0 ;
14888 bool temp2 = False ;
14889 PyObject * obj0 = 0 ;
14890 PyObject * obj1 = 0 ;
14891 char *kwnames[] = {
14892 (char *) "self",(char *) "path", NULL
14893 };
14894
14895 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetPath",kwnames,&obj0,&obj1)) goto fail;
14896 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14897 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14898 {
14899 arg2 = wxString_in_helper(obj1);
14900 if (arg2 == NULL) SWIG_fail;
14901 temp2 = True;
14902 }
14903 {
14904 PyThreadState* __tstate = wxPyBeginAllowThreads();
14905 (arg1)->SetPath((wxString const &)*arg2);
14906
14907 wxPyEndAllowThreads(__tstate);
14908 if (PyErr_Occurred()) SWIG_fail;
14909 }
14910 Py_INCREF(Py_None); resultobj = Py_None;
14911 {
14912 if (temp2)
14913 delete arg2;
14914 }
14915 return resultobj;
14916 fail:
14917 {
14918 if (temp2)
14919 delete arg2;
14920 }
14921 return NULL;
14922 }
14923
14924
14925 static PyObject *_wrap_ConfigBase_GetPath(PyObject *self, PyObject *args, PyObject *kwargs) {
14926 PyObject *resultobj;
14927 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14928 wxString *result;
14929 PyObject * obj0 = 0 ;
14930 char *kwnames[] = {
14931 (char *) "self", NULL
14932 };
14933
14934 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetPath",kwnames,&obj0)) goto fail;
14935 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14936 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14937 {
14938 PyThreadState* __tstate = wxPyBeginAllowThreads();
14939 {
14940 wxString const &_result_ref = ((wxConfigBase const *)arg1)->GetPath();
14941 result = (wxString *) &_result_ref;
14942 }
14943
14944 wxPyEndAllowThreads(__tstate);
14945 if (PyErr_Occurred()) SWIG_fail;
14946 }
14947 {
14948 #if wxUSE_UNICODE
14949 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
14950 #else
14951 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
14952 #endif
14953 }
14954 return resultobj;
14955 fail:
14956 return NULL;
14957 }
14958
14959
14960 static PyObject *_wrap_ConfigBase_GetFirstGroup(PyObject *self, PyObject *args, PyObject *kwargs) {
14961 PyObject *resultobj;
14962 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14963 PyObject *result;
14964 PyObject * obj0 = 0 ;
14965 char *kwnames[] = {
14966 (char *) "self", NULL
14967 };
14968
14969 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetFirstGroup",kwnames,&obj0)) goto fail;
14970 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14971 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14972 {
14973 PyThreadState* __tstate = wxPyBeginAllowThreads();
14974 result = (PyObject *)wxConfigBase_GetFirstGroup(arg1);
14975
14976 wxPyEndAllowThreads(__tstate);
14977 if (PyErr_Occurred()) SWIG_fail;
14978 }
14979 resultobj = result;
14980 return resultobj;
14981 fail:
14982 return NULL;
14983 }
14984
14985
14986 static PyObject *_wrap_ConfigBase_GetNextGroup(PyObject *self, PyObject *args, PyObject *kwargs) {
14987 PyObject *resultobj;
14988 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14989 long arg2 ;
14990 PyObject *result;
14991 PyObject * obj0 = 0 ;
14992 PyObject * obj1 = 0 ;
14993 char *kwnames[] = {
14994 (char *) "self",(char *) "index", NULL
14995 };
14996
14997 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetNextGroup",kwnames,&obj0,&obj1)) goto fail;
14998 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14999 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15000 arg2 = (long) SWIG_AsLong(obj1);
15001 if (PyErr_Occurred()) SWIG_fail;
15002 {
15003 PyThreadState* __tstate = wxPyBeginAllowThreads();
15004 result = (PyObject *)wxConfigBase_GetNextGroup(arg1,arg2);
15005
15006 wxPyEndAllowThreads(__tstate);
15007 if (PyErr_Occurred()) SWIG_fail;
15008 }
15009 resultobj = result;
15010 return resultobj;
15011 fail:
15012 return NULL;
15013 }
15014
15015
15016 static PyObject *_wrap_ConfigBase_GetFirstEntry(PyObject *self, PyObject *args, PyObject *kwargs) {
15017 PyObject *resultobj;
15018 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15019 PyObject *result;
15020 PyObject * obj0 = 0 ;
15021 char *kwnames[] = {
15022 (char *) "self", NULL
15023 };
15024
15025 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetFirstEntry",kwnames,&obj0)) goto fail;
15026 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15027 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15028 {
15029 PyThreadState* __tstate = wxPyBeginAllowThreads();
15030 result = (PyObject *)wxConfigBase_GetFirstEntry(arg1);
15031
15032 wxPyEndAllowThreads(__tstate);
15033 if (PyErr_Occurred()) SWIG_fail;
15034 }
15035 resultobj = result;
15036 return resultobj;
15037 fail:
15038 return NULL;
15039 }
15040
15041
15042 static PyObject *_wrap_ConfigBase_GetNextEntry(PyObject *self, PyObject *args, PyObject *kwargs) {
15043 PyObject *resultobj;
15044 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15045 long arg2 ;
15046 PyObject *result;
15047 PyObject * obj0 = 0 ;
15048 PyObject * obj1 = 0 ;
15049 char *kwnames[] = {
15050 (char *) "self",(char *) "index", NULL
15051 };
15052
15053 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetNextEntry",kwnames,&obj0,&obj1)) goto fail;
15054 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15055 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15056 arg2 = (long) SWIG_AsLong(obj1);
15057 if (PyErr_Occurred()) SWIG_fail;
15058 {
15059 PyThreadState* __tstate = wxPyBeginAllowThreads();
15060 result = (PyObject *)wxConfigBase_GetNextEntry(arg1,arg2);
15061
15062 wxPyEndAllowThreads(__tstate);
15063 if (PyErr_Occurred()) SWIG_fail;
15064 }
15065 resultobj = result;
15066 return resultobj;
15067 fail:
15068 return NULL;
15069 }
15070
15071
15072 static PyObject *_wrap_ConfigBase_GetNumberOfEntries(PyObject *self, PyObject *args, PyObject *kwargs) {
15073 PyObject *resultobj;
15074 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15075 bool arg2 = (bool) False ;
15076 size_t result;
15077 PyObject * obj0 = 0 ;
15078 PyObject * obj1 = 0 ;
15079 char *kwnames[] = {
15080 (char *) "self",(char *) "recursive", NULL
15081 };
15082
15083 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_GetNumberOfEntries",kwnames,&obj0,&obj1)) goto fail;
15084 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15085 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15086 if (obj1) {
15087 arg2 = (bool) SWIG_AsBool(obj1);
15088 if (PyErr_Occurred()) SWIG_fail;
15089 }
15090 {
15091 PyThreadState* __tstate = wxPyBeginAllowThreads();
15092 result = (size_t)((wxConfigBase const *)arg1)->GetNumberOfEntries(arg2);
15093
15094 wxPyEndAllowThreads(__tstate);
15095 if (PyErr_Occurred()) SWIG_fail;
15096 }
15097 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
15098 return resultobj;
15099 fail:
15100 return NULL;
15101 }
15102
15103
15104 static PyObject *_wrap_ConfigBase_GetNumberOfGroups(PyObject *self, PyObject *args, PyObject *kwargs) {
15105 PyObject *resultobj;
15106 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15107 bool arg2 = (bool) False ;
15108 size_t result;
15109 PyObject * obj0 = 0 ;
15110 PyObject * obj1 = 0 ;
15111 char *kwnames[] = {
15112 (char *) "self",(char *) "recursive", NULL
15113 };
15114
15115 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_GetNumberOfGroups",kwnames,&obj0,&obj1)) goto fail;
15116 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15117 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15118 if (obj1) {
15119 arg2 = (bool) SWIG_AsBool(obj1);
15120 if (PyErr_Occurred()) SWIG_fail;
15121 }
15122 {
15123 PyThreadState* __tstate = wxPyBeginAllowThreads();
15124 result = (size_t)((wxConfigBase const *)arg1)->GetNumberOfGroups(arg2);
15125
15126 wxPyEndAllowThreads(__tstate);
15127 if (PyErr_Occurred()) SWIG_fail;
15128 }
15129 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
15130 return resultobj;
15131 fail:
15132 return NULL;
15133 }
15134
15135
15136 static PyObject *_wrap_ConfigBase_HasGroup(PyObject *self, PyObject *args, PyObject *kwargs) {
15137 PyObject *resultobj;
15138 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15139 wxString *arg2 = 0 ;
15140 bool result;
15141 bool temp2 = False ;
15142 PyObject * obj0 = 0 ;
15143 PyObject * obj1 = 0 ;
15144 char *kwnames[] = {
15145 (char *) "self",(char *) "name", NULL
15146 };
15147
15148 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_HasGroup",kwnames,&obj0,&obj1)) goto fail;
15149 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15150 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15151 {
15152 arg2 = wxString_in_helper(obj1);
15153 if (arg2 == NULL) SWIG_fail;
15154 temp2 = True;
15155 }
15156 {
15157 PyThreadState* __tstate = wxPyBeginAllowThreads();
15158 result = (bool)((wxConfigBase const *)arg1)->HasGroup((wxString const &)*arg2);
15159
15160 wxPyEndAllowThreads(__tstate);
15161 if (PyErr_Occurred()) SWIG_fail;
15162 }
15163 {
15164 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15165 }
15166 {
15167 if (temp2)
15168 delete arg2;
15169 }
15170 return resultobj;
15171 fail:
15172 {
15173 if (temp2)
15174 delete arg2;
15175 }
15176 return NULL;
15177 }
15178
15179
15180 static PyObject *_wrap_ConfigBase_HasEntry(PyObject *self, PyObject *args, PyObject *kwargs) {
15181 PyObject *resultobj;
15182 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15183 wxString *arg2 = 0 ;
15184 bool result;
15185 bool temp2 = False ;
15186 PyObject * obj0 = 0 ;
15187 PyObject * obj1 = 0 ;
15188 char *kwnames[] = {
15189 (char *) "self",(char *) "name", NULL
15190 };
15191
15192 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_HasEntry",kwnames,&obj0,&obj1)) goto fail;
15193 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15194 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15195 {
15196 arg2 = wxString_in_helper(obj1);
15197 if (arg2 == NULL) SWIG_fail;
15198 temp2 = True;
15199 }
15200 {
15201 PyThreadState* __tstate = wxPyBeginAllowThreads();
15202 result = (bool)((wxConfigBase const *)arg1)->HasEntry((wxString const &)*arg2);
15203
15204 wxPyEndAllowThreads(__tstate);
15205 if (PyErr_Occurred()) SWIG_fail;
15206 }
15207 {
15208 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15209 }
15210 {
15211 if (temp2)
15212 delete arg2;
15213 }
15214 return resultobj;
15215 fail:
15216 {
15217 if (temp2)
15218 delete arg2;
15219 }
15220 return NULL;
15221 }
15222
15223
15224 static PyObject *_wrap_ConfigBase_Exists(PyObject *self, PyObject *args, PyObject *kwargs) {
15225 PyObject *resultobj;
15226 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15227 wxString *arg2 = 0 ;
15228 bool result;
15229 bool temp2 = False ;
15230 PyObject * obj0 = 0 ;
15231 PyObject * obj1 = 0 ;
15232 char *kwnames[] = {
15233 (char *) "self",(char *) "name", NULL
15234 };
15235
15236 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_Exists",kwnames,&obj0,&obj1)) goto fail;
15237 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15238 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15239 {
15240 arg2 = wxString_in_helper(obj1);
15241 if (arg2 == NULL) SWIG_fail;
15242 temp2 = True;
15243 }
15244 {
15245 PyThreadState* __tstate = wxPyBeginAllowThreads();
15246 result = (bool)((wxConfigBase const *)arg1)->Exists((wxString const &)*arg2);
15247
15248 wxPyEndAllowThreads(__tstate);
15249 if (PyErr_Occurred()) SWIG_fail;
15250 }
15251 {
15252 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15253 }
15254 {
15255 if (temp2)
15256 delete arg2;
15257 }
15258 return resultobj;
15259 fail:
15260 {
15261 if (temp2)
15262 delete arg2;
15263 }
15264 return NULL;
15265 }
15266
15267
15268 static PyObject *_wrap_ConfigBase_GetEntryType(PyObject *self, PyObject *args, PyObject *kwargs) {
15269 PyObject *resultobj;
15270 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15271 wxString *arg2 = 0 ;
15272 int result;
15273 bool temp2 = False ;
15274 PyObject * obj0 = 0 ;
15275 PyObject * obj1 = 0 ;
15276 char *kwnames[] = {
15277 (char *) "self",(char *) "name", NULL
15278 };
15279
15280 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetEntryType",kwnames,&obj0,&obj1)) 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 {
15289 PyThreadState* __tstate = wxPyBeginAllowThreads();
15290 result = (int)((wxConfigBase const *)arg1)->GetEntryType((wxString const &)*arg2);
15291
15292 wxPyEndAllowThreads(__tstate);
15293 if (PyErr_Occurred()) SWIG_fail;
15294 }
15295 resultobj = SWIG_FromInt((int)result);
15296 {
15297 if (temp2)
15298 delete arg2;
15299 }
15300 return resultobj;
15301 fail:
15302 {
15303 if (temp2)
15304 delete arg2;
15305 }
15306 return NULL;
15307 }
15308
15309
15310 static PyObject *_wrap_ConfigBase_Read(PyObject *self, PyObject *args, PyObject *kwargs) {
15311 PyObject *resultobj;
15312 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15313 wxString *arg2 = 0 ;
15314 wxString const &arg3_defvalue = wxPyEmptyString ;
15315 wxString *arg3 = (wxString *) &arg3_defvalue ;
15316 wxString result;
15317 bool temp2 = False ;
15318 bool temp3 = False ;
15319 PyObject * obj0 = 0 ;
15320 PyObject * obj1 = 0 ;
15321 PyObject * obj2 = 0 ;
15322 char *kwnames[] = {
15323 (char *) "self",(char *) "key",(char *) "defaultVal", NULL
15324 };
15325
15326 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_Read",kwnames,&obj0,&obj1,&obj2)) goto fail;
15327 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15328 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15329 {
15330 arg2 = wxString_in_helper(obj1);
15331 if (arg2 == NULL) SWIG_fail;
15332 temp2 = True;
15333 }
15334 if (obj2) {
15335 {
15336 arg3 = wxString_in_helper(obj2);
15337 if (arg3 == NULL) SWIG_fail;
15338 temp3 = True;
15339 }
15340 }
15341 {
15342 PyThreadState* __tstate = wxPyBeginAllowThreads();
15343 result = (arg1)->Read((wxString const &)*arg2,(wxString const &)*arg3);
15344
15345 wxPyEndAllowThreads(__tstate);
15346 if (PyErr_Occurred()) SWIG_fail;
15347 }
15348 {
15349 #if wxUSE_UNICODE
15350 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15351 #else
15352 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15353 #endif
15354 }
15355 {
15356 if (temp2)
15357 delete arg2;
15358 }
15359 {
15360 if (temp3)
15361 delete arg3;
15362 }
15363 return resultobj;
15364 fail:
15365 {
15366 if (temp2)
15367 delete arg2;
15368 }
15369 {
15370 if (temp3)
15371 delete arg3;
15372 }
15373 return NULL;
15374 }
15375
15376
15377 static PyObject *_wrap_ConfigBase_ReadInt(PyObject *self, PyObject *args, PyObject *kwargs) {
15378 PyObject *resultobj;
15379 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15380 wxString *arg2 = 0 ;
15381 long arg3 = (long) 0 ;
15382 long result;
15383 bool temp2 = False ;
15384 PyObject * obj0 = 0 ;
15385 PyObject * obj1 = 0 ;
15386 PyObject * obj2 = 0 ;
15387 char *kwnames[] = {
15388 (char *) "self",(char *) "key",(char *) "defaultVal", NULL
15389 };
15390
15391 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadInt",kwnames,&obj0,&obj1,&obj2)) goto fail;
15392 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15393 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15394 {
15395 arg2 = wxString_in_helper(obj1);
15396 if (arg2 == NULL) SWIG_fail;
15397 temp2 = True;
15398 }
15399 if (obj2) {
15400 arg3 = (long) SWIG_AsLong(obj2);
15401 if (PyErr_Occurred()) SWIG_fail;
15402 }
15403 {
15404 PyThreadState* __tstate = wxPyBeginAllowThreads();
15405 result = (long)wxConfigBase_ReadInt(arg1,(wxString const &)*arg2,arg3);
15406
15407 wxPyEndAllowThreads(__tstate);
15408 if (PyErr_Occurred()) SWIG_fail;
15409 }
15410 resultobj = SWIG_FromLong((long)result);
15411 {
15412 if (temp2)
15413 delete arg2;
15414 }
15415 return resultobj;
15416 fail:
15417 {
15418 if (temp2)
15419 delete arg2;
15420 }
15421 return NULL;
15422 }
15423
15424
15425 static PyObject *_wrap_ConfigBase_ReadFloat(PyObject *self, PyObject *args, PyObject *kwargs) {
15426 PyObject *resultobj;
15427 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15428 wxString *arg2 = 0 ;
15429 double arg3 = (double) 0.0 ;
15430 double result;
15431 bool temp2 = False ;
15432 PyObject * obj0 = 0 ;
15433 PyObject * obj1 = 0 ;
15434 PyObject * obj2 = 0 ;
15435 char *kwnames[] = {
15436 (char *) "self",(char *) "key",(char *) "defaultVal", NULL
15437 };
15438
15439 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadFloat",kwnames,&obj0,&obj1,&obj2)) goto fail;
15440 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15441 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15442 {
15443 arg2 = wxString_in_helper(obj1);
15444 if (arg2 == NULL) SWIG_fail;
15445 temp2 = True;
15446 }
15447 if (obj2) {
15448 arg3 = (double) SWIG_AsDouble(obj2);
15449 if (PyErr_Occurred()) SWIG_fail;
15450 }
15451 {
15452 PyThreadState* __tstate = wxPyBeginAllowThreads();
15453 result = (double)wxConfigBase_ReadFloat(arg1,(wxString const &)*arg2,arg3);
15454
15455 wxPyEndAllowThreads(__tstate);
15456 if (PyErr_Occurred()) SWIG_fail;
15457 }
15458 resultobj = SWIG_FromDouble((double)result);
15459 {
15460 if (temp2)
15461 delete arg2;
15462 }
15463 return resultobj;
15464 fail:
15465 {
15466 if (temp2)
15467 delete arg2;
15468 }
15469 return NULL;
15470 }
15471
15472
15473 static PyObject *_wrap_ConfigBase_ReadBool(PyObject *self, PyObject *args, PyObject *kwargs) {
15474 PyObject *resultobj;
15475 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15476 wxString *arg2 = 0 ;
15477 bool arg3 = (bool) False ;
15478 bool result;
15479 bool temp2 = False ;
15480 PyObject * obj0 = 0 ;
15481 PyObject * obj1 = 0 ;
15482 PyObject * obj2 = 0 ;
15483 char *kwnames[] = {
15484 (char *) "self",(char *) "key",(char *) "defaultVal", NULL
15485 };
15486
15487 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadBool",kwnames,&obj0,&obj1,&obj2)) goto fail;
15488 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15489 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15490 {
15491 arg2 = wxString_in_helper(obj1);
15492 if (arg2 == NULL) SWIG_fail;
15493 temp2 = True;
15494 }
15495 if (obj2) {
15496 arg3 = (bool) SWIG_AsBool(obj2);
15497 if (PyErr_Occurred()) SWIG_fail;
15498 }
15499 {
15500 PyThreadState* __tstate = wxPyBeginAllowThreads();
15501 result = (bool)wxConfigBase_ReadBool(arg1,(wxString const &)*arg2,arg3);
15502
15503 wxPyEndAllowThreads(__tstate);
15504 if (PyErr_Occurred()) SWIG_fail;
15505 }
15506 {
15507 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15508 }
15509 {
15510 if (temp2)
15511 delete arg2;
15512 }
15513 return resultobj;
15514 fail:
15515 {
15516 if (temp2)
15517 delete arg2;
15518 }
15519 return NULL;
15520 }
15521
15522
15523 static PyObject *_wrap_ConfigBase_Write(PyObject *self, PyObject *args, PyObject *kwargs) {
15524 PyObject *resultobj;
15525 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15526 wxString *arg2 = 0 ;
15527 wxString *arg3 = 0 ;
15528 bool result;
15529 bool temp2 = False ;
15530 bool temp3 = False ;
15531 PyObject * obj0 = 0 ;
15532 PyObject * obj1 = 0 ;
15533 PyObject * obj2 = 0 ;
15534 char *kwnames[] = {
15535 (char *) "self",(char *) "key",(char *) "value", NULL
15536 };
15537
15538 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_Write",kwnames,&obj0,&obj1,&obj2)) goto fail;
15539 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15540 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15541 {
15542 arg2 = wxString_in_helper(obj1);
15543 if (arg2 == NULL) SWIG_fail;
15544 temp2 = True;
15545 }
15546 {
15547 arg3 = wxString_in_helper(obj2);
15548 if (arg3 == NULL) SWIG_fail;
15549 temp3 = True;
15550 }
15551 {
15552 PyThreadState* __tstate = wxPyBeginAllowThreads();
15553 result = (bool)(arg1)->Write((wxString const &)*arg2,(wxString const &)*arg3);
15554
15555 wxPyEndAllowThreads(__tstate);
15556 if (PyErr_Occurred()) SWIG_fail;
15557 }
15558 {
15559 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15560 }
15561 {
15562 if (temp2)
15563 delete arg2;
15564 }
15565 {
15566 if (temp3)
15567 delete arg3;
15568 }
15569 return resultobj;
15570 fail:
15571 {
15572 if (temp2)
15573 delete arg2;
15574 }
15575 {
15576 if (temp3)
15577 delete arg3;
15578 }
15579 return NULL;
15580 }
15581
15582
15583 static PyObject *_wrap_ConfigBase_WriteInt(PyObject *self, PyObject *args, PyObject *kwargs) {
15584 PyObject *resultobj;
15585 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15586 wxString *arg2 = 0 ;
15587 long arg3 ;
15588 bool result;
15589 bool temp2 = False ;
15590 PyObject * obj0 = 0 ;
15591 PyObject * obj1 = 0 ;
15592 PyObject * obj2 = 0 ;
15593 char *kwnames[] = {
15594 (char *) "self",(char *) "key",(char *) "value", NULL
15595 };
15596
15597 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteInt",kwnames,&obj0,&obj1,&obj2)) goto fail;
15598 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15599 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15600 {
15601 arg2 = wxString_in_helper(obj1);
15602 if (arg2 == NULL) SWIG_fail;
15603 temp2 = True;
15604 }
15605 arg3 = (long) SWIG_AsLong(obj2);
15606 if (PyErr_Occurred()) SWIG_fail;
15607 {
15608 PyThreadState* __tstate = wxPyBeginAllowThreads();
15609 result = (bool)(arg1)->Write((wxString const &)*arg2,arg3);
15610
15611 wxPyEndAllowThreads(__tstate);
15612 if (PyErr_Occurred()) SWIG_fail;
15613 }
15614 {
15615 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15616 }
15617 {
15618 if (temp2)
15619 delete arg2;
15620 }
15621 return resultobj;
15622 fail:
15623 {
15624 if (temp2)
15625 delete arg2;
15626 }
15627 return NULL;
15628 }
15629
15630
15631 static PyObject *_wrap_ConfigBase_WriteFloat(PyObject *self, PyObject *args, PyObject *kwargs) {
15632 PyObject *resultobj;
15633 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15634 wxString *arg2 = 0 ;
15635 double arg3 ;
15636 bool result;
15637 bool temp2 = False ;
15638 PyObject * obj0 = 0 ;
15639 PyObject * obj1 = 0 ;
15640 PyObject * obj2 = 0 ;
15641 char *kwnames[] = {
15642 (char *) "self",(char *) "key",(char *) "value", NULL
15643 };
15644
15645 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteFloat",kwnames,&obj0,&obj1,&obj2)) goto fail;
15646 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15647 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15648 {
15649 arg2 = wxString_in_helper(obj1);
15650 if (arg2 == NULL) SWIG_fail;
15651 temp2 = True;
15652 }
15653 arg3 = (double) SWIG_AsDouble(obj2);
15654 if (PyErr_Occurred()) SWIG_fail;
15655 {
15656 PyThreadState* __tstate = wxPyBeginAllowThreads();
15657 result = (bool)(arg1)->Write((wxString const &)*arg2,arg3);
15658
15659 wxPyEndAllowThreads(__tstate);
15660 if (PyErr_Occurred()) SWIG_fail;
15661 }
15662 {
15663 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15664 }
15665 {
15666 if (temp2)
15667 delete arg2;
15668 }
15669 return resultobj;
15670 fail:
15671 {
15672 if (temp2)
15673 delete arg2;
15674 }
15675 return NULL;
15676 }
15677
15678
15679 static PyObject *_wrap_ConfigBase_WriteBool(PyObject *self, PyObject *args, PyObject *kwargs) {
15680 PyObject *resultobj;
15681 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15682 wxString *arg2 = 0 ;
15683 bool arg3 ;
15684 bool result;
15685 bool temp2 = False ;
15686 PyObject * obj0 = 0 ;
15687 PyObject * obj1 = 0 ;
15688 PyObject * obj2 = 0 ;
15689 char *kwnames[] = {
15690 (char *) "self",(char *) "key",(char *) "value", NULL
15691 };
15692
15693 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteBool",kwnames,&obj0,&obj1,&obj2)) goto fail;
15694 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15695 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15696 {
15697 arg2 = wxString_in_helper(obj1);
15698 if (arg2 == NULL) SWIG_fail;
15699 temp2 = True;
15700 }
15701 arg3 = (bool) SWIG_AsBool(obj2);
15702 if (PyErr_Occurred()) SWIG_fail;
15703 {
15704 PyThreadState* __tstate = wxPyBeginAllowThreads();
15705 result = (bool)(arg1)->Write((wxString const &)*arg2,arg3);
15706
15707 wxPyEndAllowThreads(__tstate);
15708 if (PyErr_Occurred()) SWIG_fail;
15709 }
15710 {
15711 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15712 }
15713 {
15714 if (temp2)
15715 delete arg2;
15716 }
15717 return resultobj;
15718 fail:
15719 {
15720 if (temp2)
15721 delete arg2;
15722 }
15723 return NULL;
15724 }
15725
15726
15727 static PyObject *_wrap_ConfigBase_Flush(PyObject *self, PyObject *args, PyObject *kwargs) {
15728 PyObject *resultobj;
15729 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15730 bool arg2 = (bool) False ;
15731 bool result;
15732 PyObject * obj0 = 0 ;
15733 PyObject * obj1 = 0 ;
15734 char *kwnames[] = {
15735 (char *) "self",(char *) "currentOnly", NULL
15736 };
15737
15738 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_Flush",kwnames,&obj0,&obj1)) goto fail;
15739 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15740 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15741 if (obj1) {
15742 arg2 = (bool) SWIG_AsBool(obj1);
15743 if (PyErr_Occurred()) SWIG_fail;
15744 }
15745 {
15746 PyThreadState* __tstate = wxPyBeginAllowThreads();
15747 result = (bool)(arg1)->Flush(arg2);
15748
15749 wxPyEndAllowThreads(__tstate);
15750 if (PyErr_Occurred()) SWIG_fail;
15751 }
15752 {
15753 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15754 }
15755 return resultobj;
15756 fail:
15757 return NULL;
15758 }
15759
15760
15761 static PyObject *_wrap_ConfigBase_RenameEntry(PyObject *self, PyObject *args, PyObject *kwargs) {
15762 PyObject *resultobj;
15763 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15764 wxString *arg2 = 0 ;
15765 wxString *arg3 = 0 ;
15766 bool result;
15767 bool temp2 = False ;
15768 bool temp3 = False ;
15769 PyObject * obj0 = 0 ;
15770 PyObject * obj1 = 0 ;
15771 PyObject * obj2 = 0 ;
15772 char *kwnames[] = {
15773 (char *) "self",(char *) "oldName",(char *) "newName", NULL
15774 };
15775
15776 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_RenameEntry",kwnames,&obj0,&obj1,&obj2)) goto fail;
15777 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15778 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15779 {
15780 arg2 = wxString_in_helper(obj1);
15781 if (arg2 == NULL) SWIG_fail;
15782 temp2 = True;
15783 }
15784 {
15785 arg3 = wxString_in_helper(obj2);
15786 if (arg3 == NULL) SWIG_fail;
15787 temp3 = True;
15788 }
15789 {
15790 PyThreadState* __tstate = wxPyBeginAllowThreads();
15791 result = (bool)(arg1)->RenameEntry((wxString const &)*arg2,(wxString const &)*arg3);
15792
15793 wxPyEndAllowThreads(__tstate);
15794 if (PyErr_Occurred()) SWIG_fail;
15795 }
15796 {
15797 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15798 }
15799 {
15800 if (temp2)
15801 delete arg2;
15802 }
15803 {
15804 if (temp3)
15805 delete arg3;
15806 }
15807 return resultobj;
15808 fail:
15809 {
15810 if (temp2)
15811 delete arg2;
15812 }
15813 {
15814 if (temp3)
15815 delete arg3;
15816 }
15817 return NULL;
15818 }
15819
15820
15821 static PyObject *_wrap_ConfigBase_RenameGroup(PyObject *self, PyObject *args, PyObject *kwargs) {
15822 PyObject *resultobj;
15823 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15824 wxString *arg2 = 0 ;
15825 wxString *arg3 = 0 ;
15826 bool result;
15827 bool temp2 = False ;
15828 bool temp3 = False ;
15829 PyObject * obj0 = 0 ;
15830 PyObject * obj1 = 0 ;
15831 PyObject * obj2 = 0 ;
15832 char *kwnames[] = {
15833 (char *) "self",(char *) "oldName",(char *) "newName", NULL
15834 };
15835
15836 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_RenameGroup",kwnames,&obj0,&obj1,&obj2)) goto fail;
15837 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15838 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15839 {
15840 arg2 = wxString_in_helper(obj1);
15841 if (arg2 == NULL) SWIG_fail;
15842 temp2 = True;
15843 }
15844 {
15845 arg3 = wxString_in_helper(obj2);
15846 if (arg3 == NULL) SWIG_fail;
15847 temp3 = True;
15848 }
15849 {
15850 PyThreadState* __tstate = wxPyBeginAllowThreads();
15851 result = (bool)(arg1)->RenameGroup((wxString const &)*arg2,(wxString const &)*arg3);
15852
15853 wxPyEndAllowThreads(__tstate);
15854 if (PyErr_Occurred()) SWIG_fail;
15855 }
15856 {
15857 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15858 }
15859 {
15860 if (temp2)
15861 delete arg2;
15862 }
15863 {
15864 if (temp3)
15865 delete arg3;
15866 }
15867 return resultobj;
15868 fail:
15869 {
15870 if (temp2)
15871 delete arg2;
15872 }
15873 {
15874 if (temp3)
15875 delete arg3;
15876 }
15877 return NULL;
15878 }
15879
15880
15881 static PyObject *_wrap_ConfigBase_DeleteEntry(PyObject *self, PyObject *args, PyObject *kwargs) {
15882 PyObject *resultobj;
15883 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15884 wxString *arg2 = 0 ;
15885 bool arg3 = (bool) True ;
15886 bool result;
15887 bool temp2 = False ;
15888 PyObject * obj0 = 0 ;
15889 PyObject * obj1 = 0 ;
15890 PyObject * obj2 = 0 ;
15891 char *kwnames[] = {
15892 (char *) "self",(char *) "key",(char *) "deleteGroupIfEmpty", NULL
15893 };
15894
15895 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_DeleteEntry",kwnames,&obj0,&obj1,&obj2)) goto fail;
15896 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15897 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15898 {
15899 arg2 = wxString_in_helper(obj1);
15900 if (arg2 == NULL) SWIG_fail;
15901 temp2 = True;
15902 }
15903 if (obj2) {
15904 arg3 = (bool) SWIG_AsBool(obj2);
15905 if (PyErr_Occurred()) SWIG_fail;
15906 }
15907 {
15908 PyThreadState* __tstate = wxPyBeginAllowThreads();
15909 result = (bool)(arg1)->DeleteEntry((wxString const &)*arg2,arg3);
15910
15911 wxPyEndAllowThreads(__tstate);
15912 if (PyErr_Occurred()) SWIG_fail;
15913 }
15914 {
15915 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15916 }
15917 {
15918 if (temp2)
15919 delete arg2;
15920 }
15921 return resultobj;
15922 fail:
15923 {
15924 if (temp2)
15925 delete arg2;
15926 }
15927 return NULL;
15928 }
15929
15930
15931 static PyObject *_wrap_ConfigBase_DeleteGroup(PyObject *self, PyObject *args, PyObject *kwargs) {
15932 PyObject *resultobj;
15933 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15934 wxString *arg2 = 0 ;
15935 bool result;
15936 bool temp2 = False ;
15937 PyObject * obj0 = 0 ;
15938 PyObject * obj1 = 0 ;
15939 char *kwnames[] = {
15940 (char *) "self",(char *) "key", NULL
15941 };
15942
15943 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_DeleteGroup",kwnames,&obj0,&obj1)) goto fail;
15944 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15945 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15946 {
15947 arg2 = wxString_in_helper(obj1);
15948 if (arg2 == NULL) SWIG_fail;
15949 temp2 = True;
15950 }
15951 {
15952 PyThreadState* __tstate = wxPyBeginAllowThreads();
15953 result = (bool)(arg1)->DeleteGroup((wxString const &)*arg2);
15954
15955 wxPyEndAllowThreads(__tstate);
15956 if (PyErr_Occurred()) SWIG_fail;
15957 }
15958 {
15959 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15960 }
15961 {
15962 if (temp2)
15963 delete arg2;
15964 }
15965 return resultobj;
15966 fail:
15967 {
15968 if (temp2)
15969 delete arg2;
15970 }
15971 return NULL;
15972 }
15973
15974
15975 static PyObject *_wrap_ConfigBase_DeleteAll(PyObject *self, PyObject *args, PyObject *kwargs) {
15976 PyObject *resultobj;
15977 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15978 bool result;
15979 PyObject * obj0 = 0 ;
15980 char *kwnames[] = {
15981 (char *) "self", NULL
15982 };
15983
15984 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_DeleteAll",kwnames,&obj0)) goto fail;
15985 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15986 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15987 {
15988 PyThreadState* __tstate = wxPyBeginAllowThreads();
15989 result = (bool)(arg1)->DeleteAll();
15990
15991 wxPyEndAllowThreads(__tstate);
15992 if (PyErr_Occurred()) SWIG_fail;
15993 }
15994 {
15995 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15996 }
15997 return resultobj;
15998 fail:
15999 return NULL;
16000 }
16001
16002
16003 static PyObject *_wrap_ConfigBase_SetExpandEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) {
16004 PyObject *resultobj;
16005 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16006 bool arg2 = (bool) True ;
16007 PyObject * obj0 = 0 ;
16008 PyObject * obj1 = 0 ;
16009 char *kwnames[] = {
16010 (char *) "self",(char *) "doIt", NULL
16011 };
16012
16013 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_SetExpandEnvVars",kwnames,&obj0,&obj1)) goto fail;
16014 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16015 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16016 if (obj1) {
16017 arg2 = (bool) SWIG_AsBool(obj1);
16018 if (PyErr_Occurred()) SWIG_fail;
16019 }
16020 {
16021 PyThreadState* __tstate = wxPyBeginAllowThreads();
16022 (arg1)->SetExpandEnvVars(arg2);
16023
16024 wxPyEndAllowThreads(__tstate);
16025 if (PyErr_Occurred()) SWIG_fail;
16026 }
16027 Py_INCREF(Py_None); resultobj = Py_None;
16028 return resultobj;
16029 fail:
16030 return NULL;
16031 }
16032
16033
16034 static PyObject *_wrap_ConfigBase_IsExpandingEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) {
16035 PyObject *resultobj;
16036 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16037 bool result;
16038 PyObject * obj0 = 0 ;
16039 char *kwnames[] = {
16040 (char *) "self", NULL
16041 };
16042
16043 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_IsExpandingEnvVars",kwnames,&obj0)) goto fail;
16044 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16045 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16046 {
16047 PyThreadState* __tstate = wxPyBeginAllowThreads();
16048 result = (bool)((wxConfigBase const *)arg1)->IsExpandingEnvVars();
16049
16050 wxPyEndAllowThreads(__tstate);
16051 if (PyErr_Occurred()) SWIG_fail;
16052 }
16053 {
16054 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16055 }
16056 return resultobj;
16057 fail:
16058 return NULL;
16059 }
16060
16061
16062 static PyObject *_wrap_ConfigBase_SetRecordDefaults(PyObject *self, PyObject *args, PyObject *kwargs) {
16063 PyObject *resultobj;
16064 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16065 bool arg2 = (bool) True ;
16066 PyObject * obj0 = 0 ;
16067 PyObject * obj1 = 0 ;
16068 char *kwnames[] = {
16069 (char *) "self",(char *) "doIt", NULL
16070 };
16071
16072 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_SetRecordDefaults",kwnames,&obj0,&obj1)) goto fail;
16073 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16074 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16075 if (obj1) {
16076 arg2 = (bool) SWIG_AsBool(obj1);
16077 if (PyErr_Occurred()) SWIG_fail;
16078 }
16079 {
16080 PyThreadState* __tstate = wxPyBeginAllowThreads();
16081 (arg1)->SetRecordDefaults(arg2);
16082
16083 wxPyEndAllowThreads(__tstate);
16084 if (PyErr_Occurred()) SWIG_fail;
16085 }
16086 Py_INCREF(Py_None); resultobj = Py_None;
16087 return resultobj;
16088 fail:
16089 return NULL;
16090 }
16091
16092
16093 static PyObject *_wrap_ConfigBase_IsRecordingDefaults(PyObject *self, PyObject *args, PyObject *kwargs) {
16094 PyObject *resultobj;
16095 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16096 bool result;
16097 PyObject * obj0 = 0 ;
16098 char *kwnames[] = {
16099 (char *) "self", NULL
16100 };
16101
16102 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_IsRecordingDefaults",kwnames,&obj0)) goto fail;
16103 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16104 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16105 {
16106 PyThreadState* __tstate = wxPyBeginAllowThreads();
16107 result = (bool)((wxConfigBase const *)arg1)->IsRecordingDefaults();
16108
16109 wxPyEndAllowThreads(__tstate);
16110 if (PyErr_Occurred()) SWIG_fail;
16111 }
16112 {
16113 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16114 }
16115 return resultobj;
16116 fail:
16117 return NULL;
16118 }
16119
16120
16121 static PyObject *_wrap_ConfigBase_ExpandEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) {
16122 PyObject *resultobj;
16123 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16124 wxString *arg2 = 0 ;
16125 wxString result;
16126 bool temp2 = False ;
16127 PyObject * obj0 = 0 ;
16128 PyObject * obj1 = 0 ;
16129 char *kwnames[] = {
16130 (char *) "self",(char *) "str", NULL
16131 };
16132
16133 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_ExpandEnvVars",kwnames,&obj0,&obj1)) goto fail;
16134 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16135 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16136 {
16137 arg2 = wxString_in_helper(obj1);
16138 if (arg2 == NULL) SWIG_fail;
16139 temp2 = True;
16140 }
16141 {
16142 PyThreadState* __tstate = wxPyBeginAllowThreads();
16143 result = ((wxConfigBase const *)arg1)->ExpandEnvVars((wxString const &)*arg2);
16144
16145 wxPyEndAllowThreads(__tstate);
16146 if (PyErr_Occurred()) SWIG_fail;
16147 }
16148 {
16149 #if wxUSE_UNICODE
16150 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16151 #else
16152 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16153 #endif
16154 }
16155 {
16156 if (temp2)
16157 delete arg2;
16158 }
16159 return resultobj;
16160 fail:
16161 {
16162 if (temp2)
16163 delete arg2;
16164 }
16165 return NULL;
16166 }
16167
16168
16169 static PyObject *_wrap_ConfigBase_GetAppName(PyObject *self, PyObject *args, PyObject *kwargs) {
16170 PyObject *resultobj;
16171 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16172 wxString result;
16173 PyObject * obj0 = 0 ;
16174 char *kwnames[] = {
16175 (char *) "self", NULL
16176 };
16177
16178 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetAppName",kwnames,&obj0)) goto fail;
16179 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16180 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16181 {
16182 PyThreadState* __tstate = wxPyBeginAllowThreads();
16183 result = ((wxConfigBase const *)arg1)->GetAppName();
16184
16185 wxPyEndAllowThreads(__tstate);
16186 if (PyErr_Occurred()) SWIG_fail;
16187 }
16188 {
16189 #if wxUSE_UNICODE
16190 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16191 #else
16192 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16193 #endif
16194 }
16195 return resultobj;
16196 fail:
16197 return NULL;
16198 }
16199
16200
16201 static PyObject *_wrap_ConfigBase_GetVendorName(PyObject *self, PyObject *args, PyObject *kwargs) {
16202 PyObject *resultobj;
16203 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16204 wxString result;
16205 PyObject * obj0 = 0 ;
16206 char *kwnames[] = {
16207 (char *) "self", NULL
16208 };
16209
16210 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetVendorName",kwnames,&obj0)) goto fail;
16211 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16212 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16213 {
16214 PyThreadState* __tstate = wxPyBeginAllowThreads();
16215 result = ((wxConfigBase const *)arg1)->GetVendorName();
16216
16217 wxPyEndAllowThreads(__tstate);
16218 if (PyErr_Occurred()) SWIG_fail;
16219 }
16220 {
16221 #if wxUSE_UNICODE
16222 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16223 #else
16224 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16225 #endif
16226 }
16227 return resultobj;
16228 fail:
16229 return NULL;
16230 }
16231
16232
16233 static PyObject *_wrap_ConfigBase_SetAppName(PyObject *self, PyObject *args, PyObject *kwargs) {
16234 PyObject *resultobj;
16235 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16236 wxString *arg2 = 0 ;
16237 bool temp2 = False ;
16238 PyObject * obj0 = 0 ;
16239 PyObject * obj1 = 0 ;
16240 char *kwnames[] = {
16241 (char *) "self",(char *) "appName", NULL
16242 };
16243
16244 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetAppName",kwnames,&obj0,&obj1)) goto fail;
16245 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16246 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16247 {
16248 arg2 = wxString_in_helper(obj1);
16249 if (arg2 == NULL) SWIG_fail;
16250 temp2 = True;
16251 }
16252 {
16253 PyThreadState* __tstate = wxPyBeginAllowThreads();
16254 (arg1)->SetAppName((wxString const &)*arg2);
16255
16256 wxPyEndAllowThreads(__tstate);
16257 if (PyErr_Occurred()) SWIG_fail;
16258 }
16259 Py_INCREF(Py_None); resultobj = Py_None;
16260 {
16261 if (temp2)
16262 delete arg2;
16263 }
16264 return resultobj;
16265 fail:
16266 {
16267 if (temp2)
16268 delete arg2;
16269 }
16270 return NULL;
16271 }
16272
16273
16274 static PyObject *_wrap_ConfigBase_SetVendorName(PyObject *self, PyObject *args, PyObject *kwargs) {
16275 PyObject *resultobj;
16276 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16277 wxString *arg2 = 0 ;
16278 bool temp2 = False ;
16279 PyObject * obj0 = 0 ;
16280 PyObject * obj1 = 0 ;
16281 char *kwnames[] = {
16282 (char *) "self",(char *) "vendorName", NULL
16283 };
16284
16285 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetVendorName",kwnames,&obj0,&obj1)) goto fail;
16286 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16287 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16288 {
16289 arg2 = wxString_in_helper(obj1);
16290 if (arg2 == NULL) SWIG_fail;
16291 temp2 = True;
16292 }
16293 {
16294 PyThreadState* __tstate = wxPyBeginAllowThreads();
16295 (arg1)->SetVendorName((wxString const &)*arg2);
16296
16297 wxPyEndAllowThreads(__tstate);
16298 if (PyErr_Occurred()) SWIG_fail;
16299 }
16300 Py_INCREF(Py_None); resultobj = Py_None;
16301 {
16302 if (temp2)
16303 delete arg2;
16304 }
16305 return resultobj;
16306 fail:
16307 {
16308 if (temp2)
16309 delete arg2;
16310 }
16311 return NULL;
16312 }
16313
16314
16315 static PyObject *_wrap_ConfigBase_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
16316 PyObject *resultobj;
16317 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16318 long arg2 ;
16319 PyObject * obj0 = 0 ;
16320 PyObject * obj1 = 0 ;
16321 char *kwnames[] = {
16322 (char *) "self",(char *) "style", NULL
16323 };
16324
16325 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetStyle",kwnames,&obj0,&obj1)) goto fail;
16326 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16327 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16328 arg2 = (long) SWIG_AsLong(obj1);
16329 if (PyErr_Occurred()) SWIG_fail;
16330 {
16331 PyThreadState* __tstate = wxPyBeginAllowThreads();
16332 (arg1)->SetStyle(arg2);
16333
16334 wxPyEndAllowThreads(__tstate);
16335 if (PyErr_Occurred()) SWIG_fail;
16336 }
16337 Py_INCREF(Py_None); resultobj = Py_None;
16338 return resultobj;
16339 fail:
16340 return NULL;
16341 }
16342
16343
16344 static PyObject *_wrap_ConfigBase_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
16345 PyObject *resultobj;
16346 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16347 long result;
16348 PyObject * obj0 = 0 ;
16349 char *kwnames[] = {
16350 (char *) "self", NULL
16351 };
16352
16353 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetStyle",kwnames,&obj0)) goto fail;
16354 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16355 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16356 {
16357 PyThreadState* __tstate = wxPyBeginAllowThreads();
16358 result = (long)((wxConfigBase const *)arg1)->GetStyle();
16359
16360 wxPyEndAllowThreads(__tstate);
16361 if (PyErr_Occurred()) SWIG_fail;
16362 }
16363 resultobj = SWIG_FromLong((long)result);
16364 return resultobj;
16365 fail:
16366 return NULL;
16367 }
16368
16369
16370 static PyObject * ConfigBase_swigregister(PyObject *self, PyObject *args) {
16371 PyObject *obj;
16372 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16373 SWIG_TypeClientData(SWIGTYPE_p_wxConfigBase, obj);
16374 Py_INCREF(obj);
16375 return Py_BuildValue((char *)"");
16376 }
16377 static PyObject *_wrap_new_Config(PyObject *self, PyObject *args, PyObject *kwargs) {
16378 PyObject *resultobj;
16379 wxString const &arg1_defvalue = wxPyEmptyString ;
16380 wxString *arg1 = (wxString *) &arg1_defvalue ;
16381 wxString const &arg2_defvalue = wxPyEmptyString ;
16382 wxString *arg2 = (wxString *) &arg2_defvalue ;
16383 wxString const &arg3_defvalue = wxPyEmptyString ;
16384 wxString *arg3 = (wxString *) &arg3_defvalue ;
16385 wxString const &arg4_defvalue = wxPyEmptyString ;
16386 wxString *arg4 = (wxString *) &arg4_defvalue ;
16387 long arg5 = (long) wxCONFIG_USE_LOCAL_FILE|wxCONFIG_USE_GLOBAL_FILE ;
16388 wxConfig *result;
16389 bool temp1 = False ;
16390 bool temp2 = False ;
16391 bool temp3 = False ;
16392 bool temp4 = False ;
16393 PyObject * obj0 = 0 ;
16394 PyObject * obj1 = 0 ;
16395 PyObject * obj2 = 0 ;
16396 PyObject * obj3 = 0 ;
16397 PyObject * obj4 = 0 ;
16398 char *kwnames[] = {
16399 (char *) "appName",(char *) "vendorName",(char *) "localFilename",(char *) "globalFilename",(char *) "style", NULL
16400 };
16401
16402 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:new_Config",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
16403 if (obj0) {
16404 {
16405 arg1 = wxString_in_helper(obj0);
16406 if (arg1 == NULL) SWIG_fail;
16407 temp1 = True;
16408 }
16409 }
16410 if (obj1) {
16411 {
16412 arg2 = wxString_in_helper(obj1);
16413 if (arg2 == NULL) SWIG_fail;
16414 temp2 = True;
16415 }
16416 }
16417 if (obj2) {
16418 {
16419 arg3 = wxString_in_helper(obj2);
16420 if (arg3 == NULL) SWIG_fail;
16421 temp3 = True;
16422 }
16423 }
16424 if (obj3) {
16425 {
16426 arg4 = wxString_in_helper(obj3);
16427 if (arg4 == NULL) SWIG_fail;
16428 temp4 = True;
16429 }
16430 }
16431 if (obj4) {
16432 arg5 = (long) SWIG_AsLong(obj4);
16433 if (PyErr_Occurred()) SWIG_fail;
16434 }
16435 {
16436 PyThreadState* __tstate = wxPyBeginAllowThreads();
16437 result = (wxConfig *)new wxConfig((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5);
16438
16439 wxPyEndAllowThreads(__tstate);
16440 if (PyErr_Occurred()) SWIG_fail;
16441 }
16442 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfig, 1);
16443 {
16444 if (temp1)
16445 delete arg1;
16446 }
16447 {
16448 if (temp2)
16449 delete arg2;
16450 }
16451 {
16452 if (temp3)
16453 delete arg3;
16454 }
16455 {
16456 if (temp4)
16457 delete arg4;
16458 }
16459 return resultobj;
16460 fail:
16461 {
16462 if (temp1)
16463 delete arg1;
16464 }
16465 {
16466 if (temp2)
16467 delete arg2;
16468 }
16469 {
16470 if (temp3)
16471 delete arg3;
16472 }
16473 {
16474 if (temp4)
16475 delete arg4;
16476 }
16477 return NULL;
16478 }
16479
16480
16481 static PyObject *_wrap_delete_Config(PyObject *self, PyObject *args, PyObject *kwargs) {
16482 PyObject *resultobj;
16483 wxConfig *arg1 = (wxConfig *) 0 ;
16484 PyObject * obj0 = 0 ;
16485 char *kwnames[] = {
16486 (char *) "self", NULL
16487 };
16488
16489 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Config",kwnames,&obj0)) goto fail;
16490 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfig,
16491 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16492 {
16493 PyThreadState* __tstate = wxPyBeginAllowThreads();
16494 delete arg1;
16495
16496 wxPyEndAllowThreads(__tstate);
16497 if (PyErr_Occurred()) SWIG_fail;
16498 }
16499 Py_INCREF(Py_None); resultobj = Py_None;
16500 return resultobj;
16501 fail:
16502 return NULL;
16503 }
16504
16505
16506 static PyObject * Config_swigregister(PyObject *self, PyObject *args) {
16507 PyObject *obj;
16508 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16509 SWIG_TypeClientData(SWIGTYPE_p_wxConfig, obj);
16510 Py_INCREF(obj);
16511 return Py_BuildValue((char *)"");
16512 }
16513 static PyObject *_wrap_new_FileConfig(PyObject *self, PyObject *args, PyObject *kwargs) {
16514 PyObject *resultobj;
16515 wxString const &arg1_defvalue = wxPyEmptyString ;
16516 wxString *arg1 = (wxString *) &arg1_defvalue ;
16517 wxString const &arg2_defvalue = wxPyEmptyString ;
16518 wxString *arg2 = (wxString *) &arg2_defvalue ;
16519 wxString const &arg3_defvalue = wxPyEmptyString ;
16520 wxString *arg3 = (wxString *) &arg3_defvalue ;
16521 wxString const &arg4_defvalue = wxPyEmptyString ;
16522 wxString *arg4 = (wxString *) &arg4_defvalue ;
16523 long arg5 = (long) wxCONFIG_USE_LOCAL_FILE|wxCONFIG_USE_GLOBAL_FILE ;
16524 wxFileConfig *result;
16525 bool temp1 = False ;
16526 bool temp2 = False ;
16527 bool temp3 = False ;
16528 bool temp4 = False ;
16529 PyObject * obj0 = 0 ;
16530 PyObject * obj1 = 0 ;
16531 PyObject * obj2 = 0 ;
16532 PyObject * obj3 = 0 ;
16533 PyObject * obj4 = 0 ;
16534 char *kwnames[] = {
16535 (char *) "appName",(char *) "vendorName",(char *) "localFilename",(char *) "globalFilename",(char *) "style", NULL
16536 };
16537
16538 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:new_FileConfig",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
16539 if (obj0) {
16540 {
16541 arg1 = wxString_in_helper(obj0);
16542 if (arg1 == NULL) SWIG_fail;
16543 temp1 = True;
16544 }
16545 }
16546 if (obj1) {
16547 {
16548 arg2 = wxString_in_helper(obj1);
16549 if (arg2 == NULL) SWIG_fail;
16550 temp2 = True;
16551 }
16552 }
16553 if (obj2) {
16554 {
16555 arg3 = wxString_in_helper(obj2);
16556 if (arg3 == NULL) SWIG_fail;
16557 temp3 = True;
16558 }
16559 }
16560 if (obj3) {
16561 {
16562 arg4 = wxString_in_helper(obj3);
16563 if (arg4 == NULL) SWIG_fail;
16564 temp4 = True;
16565 }
16566 }
16567 if (obj4) {
16568 arg5 = (long) SWIG_AsLong(obj4);
16569 if (PyErr_Occurred()) SWIG_fail;
16570 }
16571 {
16572 PyThreadState* __tstate = wxPyBeginAllowThreads();
16573 result = (wxFileConfig *)new wxFileConfig((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5);
16574
16575 wxPyEndAllowThreads(__tstate);
16576 if (PyErr_Occurred()) SWIG_fail;
16577 }
16578 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileConfig, 1);
16579 {
16580 if (temp1)
16581 delete arg1;
16582 }
16583 {
16584 if (temp2)
16585 delete arg2;
16586 }
16587 {
16588 if (temp3)
16589 delete arg3;
16590 }
16591 {
16592 if (temp4)
16593 delete arg4;
16594 }
16595 return resultobj;
16596 fail:
16597 {
16598 if (temp1)
16599 delete arg1;
16600 }
16601 {
16602 if (temp2)
16603 delete arg2;
16604 }
16605 {
16606 if (temp3)
16607 delete arg3;
16608 }
16609 {
16610 if (temp4)
16611 delete arg4;
16612 }
16613 return NULL;
16614 }
16615
16616
16617 static PyObject *_wrap_delete_FileConfig(PyObject *self, PyObject *args, PyObject *kwargs) {
16618 PyObject *resultobj;
16619 wxFileConfig *arg1 = (wxFileConfig *) 0 ;
16620 PyObject * obj0 = 0 ;
16621 char *kwnames[] = {
16622 (char *) "self", NULL
16623 };
16624
16625 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileConfig",kwnames,&obj0)) goto fail;
16626 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileConfig,
16627 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16628 {
16629 PyThreadState* __tstate = wxPyBeginAllowThreads();
16630 delete arg1;
16631
16632 wxPyEndAllowThreads(__tstate);
16633 if (PyErr_Occurred()) SWIG_fail;
16634 }
16635 Py_INCREF(Py_None); resultobj = Py_None;
16636 return resultobj;
16637 fail:
16638 return NULL;
16639 }
16640
16641
16642 static PyObject * FileConfig_swigregister(PyObject *self, PyObject *args) {
16643 PyObject *obj;
16644 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16645 SWIG_TypeClientData(SWIGTYPE_p_wxFileConfig, obj);
16646 Py_INCREF(obj);
16647 return Py_BuildValue((char *)"");
16648 }
16649 static PyObject *_wrap_new_ConfigPathChanger(PyObject *self, PyObject *args, PyObject *kwargs) {
16650 PyObject *resultobj;
16651 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16652 wxString *arg2 = 0 ;
16653 wxConfigPathChanger *result;
16654 bool temp2 = False ;
16655 PyObject * obj0 = 0 ;
16656 PyObject * obj1 = 0 ;
16657 char *kwnames[] = {
16658 (char *) "config",(char *) "entry", NULL
16659 };
16660
16661 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_ConfigPathChanger",kwnames,&obj0,&obj1)) goto fail;
16662 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16663 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16664 {
16665 arg2 = wxString_in_helper(obj1);
16666 if (arg2 == NULL) SWIG_fail;
16667 temp2 = True;
16668 }
16669 {
16670 PyThreadState* __tstate = wxPyBeginAllowThreads();
16671 result = (wxConfigPathChanger *)new wxConfigPathChanger((wxConfigBase const *)arg1,(wxString const &)*arg2);
16672
16673 wxPyEndAllowThreads(__tstate);
16674 if (PyErr_Occurred()) SWIG_fail;
16675 }
16676 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigPathChanger, 1);
16677 {
16678 if (temp2)
16679 delete arg2;
16680 }
16681 return resultobj;
16682 fail:
16683 {
16684 if (temp2)
16685 delete arg2;
16686 }
16687 return NULL;
16688 }
16689
16690
16691 static PyObject *_wrap_delete_ConfigPathChanger(PyObject *self, PyObject *args, PyObject *kwargs) {
16692 PyObject *resultobj;
16693 wxConfigPathChanger *arg1 = (wxConfigPathChanger *) 0 ;
16694 PyObject * obj0 = 0 ;
16695 char *kwnames[] = {
16696 (char *) "self", NULL
16697 };
16698
16699 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ConfigPathChanger",kwnames,&obj0)) goto fail;
16700 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigPathChanger,
16701 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16702 {
16703 PyThreadState* __tstate = wxPyBeginAllowThreads();
16704 delete arg1;
16705
16706 wxPyEndAllowThreads(__tstate);
16707 if (PyErr_Occurred()) SWIG_fail;
16708 }
16709 Py_INCREF(Py_None); resultobj = Py_None;
16710 return resultobj;
16711 fail:
16712 return NULL;
16713 }
16714
16715
16716 static PyObject *_wrap_ConfigPathChanger_Name(PyObject *self, PyObject *args, PyObject *kwargs) {
16717 PyObject *resultobj;
16718 wxConfigPathChanger *arg1 = (wxConfigPathChanger *) 0 ;
16719 wxString *result;
16720 PyObject * obj0 = 0 ;
16721 char *kwnames[] = {
16722 (char *) "self", NULL
16723 };
16724
16725 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigPathChanger_Name",kwnames,&obj0)) goto fail;
16726 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigPathChanger,
16727 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16728 {
16729 PyThreadState* __tstate = wxPyBeginAllowThreads();
16730 {
16731 wxString const &_result_ref = ((wxConfigPathChanger const *)arg1)->Name();
16732 result = (wxString *) &_result_ref;
16733 }
16734
16735 wxPyEndAllowThreads(__tstate);
16736 if (PyErr_Occurred()) SWIG_fail;
16737 }
16738 {
16739 #if wxUSE_UNICODE
16740 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
16741 #else
16742 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
16743 #endif
16744 }
16745 return resultobj;
16746 fail:
16747 return NULL;
16748 }
16749
16750
16751 static PyObject * ConfigPathChanger_swigregister(PyObject *self, PyObject *args) {
16752 PyObject *obj;
16753 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16754 SWIG_TypeClientData(SWIGTYPE_p_wxConfigPathChanger, obj);
16755 Py_INCREF(obj);
16756 return Py_BuildValue((char *)"");
16757 }
16758 static PyObject *_wrap_ExpandEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) {
16759 PyObject *resultobj;
16760 wxString *arg1 = 0 ;
16761 wxString result;
16762 bool temp1 = False ;
16763 PyObject * obj0 = 0 ;
16764 char *kwnames[] = {
16765 (char *) "sz", NULL
16766 };
16767
16768 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ExpandEnvVars",kwnames,&obj0)) goto fail;
16769 {
16770 arg1 = wxString_in_helper(obj0);
16771 if (arg1 == NULL) SWIG_fail;
16772 temp1 = True;
16773 }
16774 {
16775 PyThreadState* __tstate = wxPyBeginAllowThreads();
16776 result = wxExpandEnvVars((wxString const &)*arg1);
16777
16778 wxPyEndAllowThreads(__tstate);
16779 if (PyErr_Occurred()) SWIG_fail;
16780 }
16781 {
16782 #if wxUSE_UNICODE
16783 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16784 #else
16785 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16786 #endif
16787 }
16788 {
16789 if (temp1)
16790 delete arg1;
16791 }
16792 return resultobj;
16793 fail:
16794 {
16795 if (temp1)
16796 delete arg1;
16797 }
16798 return NULL;
16799 }
16800
16801
16802 static int _wrap_DateFormatStr_set(PyObject *_val) {
16803 PyErr_SetString(PyExc_TypeError,"Variable DateFormatStr is read-only.");
16804 return 1;
16805 }
16806
16807
16808 static PyObject *_wrap_DateFormatStr_get() {
16809 PyObject *pyobj;
16810
16811 {
16812 #if wxUSE_UNICODE
16813 pyobj = PyUnicode_FromWideChar((&wxPyDateFormatStr)->c_str(), (&wxPyDateFormatStr)->Len());
16814 #else
16815 pyobj = PyString_FromStringAndSize((&wxPyDateFormatStr)->c_str(), (&wxPyDateFormatStr)->Len());
16816 #endif
16817 }
16818 return pyobj;
16819 }
16820
16821
16822 static int _wrap_TimeSpanFormatStr_set(PyObject *_val) {
16823 PyErr_SetString(PyExc_TypeError,"Variable TimeSpanFormatStr is read-only.");
16824 return 1;
16825 }
16826
16827
16828 static PyObject *_wrap_TimeSpanFormatStr_get() {
16829 PyObject *pyobj;
16830
16831 {
16832 #if wxUSE_UNICODE
16833 pyobj = PyUnicode_FromWideChar((&wxPyTimeSpanFormatStr)->c_str(), (&wxPyTimeSpanFormatStr)->Len());
16834 #else
16835 pyobj = PyString_FromStringAndSize((&wxPyTimeSpanFormatStr)->c_str(), (&wxPyTimeSpanFormatStr)->Len());
16836 #endif
16837 }
16838 return pyobj;
16839 }
16840
16841
16842 static PyObject *_wrap_DateTime_SetCountry(PyObject *self, PyObject *args, PyObject *kwargs) {
16843 PyObject *resultobj;
16844 int arg1 ;
16845 PyObject * obj0 = 0 ;
16846 char *kwnames[] = {
16847 (char *) "country", NULL
16848 };
16849
16850 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_SetCountry",kwnames,&obj0)) goto fail;
16851 arg1 = (wxDateTime::Country) SWIG_AsInt(obj0);
16852 if (PyErr_Occurred()) SWIG_fail;
16853 {
16854 PyThreadState* __tstate = wxPyBeginAllowThreads();
16855 wxDateTime::SetCountry((wxDateTime::Country )arg1);
16856
16857 wxPyEndAllowThreads(__tstate);
16858 if (PyErr_Occurred()) SWIG_fail;
16859 }
16860 Py_INCREF(Py_None); resultobj = Py_None;
16861 return resultobj;
16862 fail:
16863 return NULL;
16864 }
16865
16866
16867 static PyObject *_wrap_DateTime_GetCountry(PyObject *self, PyObject *args, PyObject *kwargs) {
16868 PyObject *resultobj;
16869 int result;
16870 char *kwnames[] = {
16871 NULL
16872 };
16873
16874 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_GetCountry",kwnames)) goto fail;
16875 {
16876 PyThreadState* __tstate = wxPyBeginAllowThreads();
16877 result = (int)wxDateTime::GetCountry();
16878
16879 wxPyEndAllowThreads(__tstate);
16880 if (PyErr_Occurred()) SWIG_fail;
16881 }
16882 resultobj = SWIG_FromInt((int)result);
16883 return resultobj;
16884 fail:
16885 return NULL;
16886 }
16887
16888
16889 static PyObject *_wrap_DateTime_IsWestEuropeanCountry(PyObject *self, PyObject *args, PyObject *kwargs) {
16890 PyObject *resultobj;
16891 int arg1 = (int) wxDateTime::Country_Default ;
16892 bool result;
16893 PyObject * obj0 = 0 ;
16894 char *kwnames[] = {
16895 (char *) "country", NULL
16896 };
16897
16898 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_IsWestEuropeanCountry",kwnames,&obj0)) goto fail;
16899 if (obj0) {
16900 arg1 = (wxDateTime::Country) SWIG_AsInt(obj0);
16901 if (PyErr_Occurred()) SWIG_fail;
16902 }
16903 {
16904 PyThreadState* __tstate = wxPyBeginAllowThreads();
16905 result = (bool)wxDateTime::IsWestEuropeanCountry((wxDateTime::Country )arg1);
16906
16907 wxPyEndAllowThreads(__tstate);
16908 if (PyErr_Occurred()) SWIG_fail;
16909 }
16910 {
16911 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16912 }
16913 return resultobj;
16914 fail:
16915 return NULL;
16916 }
16917
16918
16919 static PyObject *_wrap_DateTime_GetCurrentYear(PyObject *self, PyObject *args, PyObject *kwargs) {
16920 PyObject *resultobj;
16921 int arg1 = (int) wxDateTime::Gregorian ;
16922 int result;
16923 PyObject * obj0 = 0 ;
16924 char *kwnames[] = {
16925 (char *) "cal", NULL
16926 };
16927
16928 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCurrentYear",kwnames,&obj0)) goto fail;
16929 if (obj0) {
16930 arg1 = (wxDateTime::Calendar) SWIG_AsInt(obj0);
16931 if (PyErr_Occurred()) SWIG_fail;
16932 }
16933 {
16934 PyThreadState* __tstate = wxPyBeginAllowThreads();
16935 result = (int)wxDateTime::GetCurrentYear((wxDateTime::Calendar )arg1);
16936
16937 wxPyEndAllowThreads(__tstate);
16938 if (PyErr_Occurred()) SWIG_fail;
16939 }
16940 resultobj = SWIG_FromInt((int)result);
16941 return resultobj;
16942 fail:
16943 return NULL;
16944 }
16945
16946
16947 static PyObject *_wrap_DateTime_ConvertYearToBC(PyObject *self, PyObject *args, PyObject *kwargs) {
16948 PyObject *resultobj;
16949 int arg1 ;
16950 int result;
16951 PyObject * obj0 = 0 ;
16952 char *kwnames[] = {
16953 (char *) "year", NULL
16954 };
16955
16956 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_ConvertYearToBC",kwnames,&obj0)) goto fail;
16957 arg1 = (int) SWIG_AsInt(obj0);
16958 if (PyErr_Occurred()) SWIG_fail;
16959 {
16960 PyThreadState* __tstate = wxPyBeginAllowThreads();
16961 result = (int)wxDateTime::ConvertYearToBC(arg1);
16962
16963 wxPyEndAllowThreads(__tstate);
16964 if (PyErr_Occurred()) SWIG_fail;
16965 }
16966 resultobj = SWIG_FromInt((int)result);
16967 return resultobj;
16968 fail:
16969 return NULL;
16970 }
16971
16972
16973 static PyObject *_wrap_DateTime_GetCurrentMonth(PyObject *self, PyObject *args, PyObject *kwargs) {
16974 PyObject *resultobj;
16975 int arg1 = (int) wxDateTime::Gregorian ;
16976 int result;
16977 PyObject * obj0 = 0 ;
16978 char *kwnames[] = {
16979 (char *) "cal", NULL
16980 };
16981
16982 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCurrentMonth",kwnames,&obj0)) goto fail;
16983 if (obj0) {
16984 arg1 = (wxDateTime::Calendar) SWIG_AsInt(obj0);
16985 if (PyErr_Occurred()) SWIG_fail;
16986 }
16987 {
16988 PyThreadState* __tstate = wxPyBeginAllowThreads();
16989 result = (int)wxDateTime::GetCurrentMonth((wxDateTime::Calendar )arg1);
16990
16991 wxPyEndAllowThreads(__tstate);
16992 if (PyErr_Occurred()) SWIG_fail;
16993 }
16994 resultobj = SWIG_FromInt((int)result);
16995 return resultobj;
16996 fail:
16997 return NULL;
16998 }
16999
17000
17001 static PyObject *_wrap_DateTime_IsLeapYear(PyObject *self, PyObject *args, PyObject *kwargs) {
17002 PyObject *resultobj;
17003 int arg1 = (int) wxDateTime::Inv_Year ;
17004 int arg2 = (int) wxDateTime::Gregorian ;
17005 bool result;
17006 PyObject * obj0 = 0 ;
17007 PyObject * obj1 = 0 ;
17008 char *kwnames[] = {
17009 (char *) "year",(char *) "cal", NULL
17010 };
17011
17012 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_IsLeapYear",kwnames,&obj0,&obj1)) goto fail;
17013 if (obj0) {
17014 arg1 = (int) SWIG_AsInt(obj0);
17015 if (PyErr_Occurred()) SWIG_fail;
17016 }
17017 if (obj1) {
17018 arg2 = (wxDateTime::Calendar) SWIG_AsInt(obj1);
17019 if (PyErr_Occurred()) SWIG_fail;
17020 }
17021 {
17022 PyThreadState* __tstate = wxPyBeginAllowThreads();
17023 result = (bool)wxDateTime::IsLeapYear(arg1,(wxDateTime::Calendar )arg2);
17024
17025 wxPyEndAllowThreads(__tstate);
17026 if (PyErr_Occurred()) SWIG_fail;
17027 }
17028 {
17029 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17030 }
17031 return resultobj;
17032 fail:
17033 return NULL;
17034 }
17035
17036
17037 static PyObject *_wrap_DateTime_GetCentury(PyObject *self, PyObject *args, PyObject *kwargs) {
17038 PyObject *resultobj;
17039 int arg1 = (int) wxDateTime::Inv_Year ;
17040 int result;
17041 PyObject * obj0 = 0 ;
17042 char *kwnames[] = {
17043 (char *) "year", NULL
17044 };
17045
17046 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCentury",kwnames,&obj0)) goto fail;
17047 if (obj0) {
17048 arg1 = (int) SWIG_AsInt(obj0);
17049 if (PyErr_Occurred()) SWIG_fail;
17050 }
17051 {
17052 PyThreadState* __tstate = wxPyBeginAllowThreads();
17053 result = (int)wxDateTime::GetCentury(arg1);
17054
17055 wxPyEndAllowThreads(__tstate);
17056 if (PyErr_Occurred()) SWIG_fail;
17057 }
17058 resultobj = SWIG_FromInt((int)result);
17059 return resultobj;
17060 fail:
17061 return NULL;
17062 }
17063
17064
17065 static PyObject *_wrap_DateTime_GetNumberOfDaysinYear(PyObject *self, PyObject *args, PyObject *kwargs) {
17066 PyObject *resultobj;
17067 int arg1 ;
17068 int arg2 = (int) wxDateTime::Gregorian ;
17069 int result;
17070 PyObject * obj0 = 0 ;
17071 PyObject * obj1 = 0 ;
17072 char *kwnames[] = {
17073 (char *) "year",(char *) "cal", NULL
17074 };
17075
17076 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetNumberOfDaysinYear",kwnames,&obj0,&obj1)) goto fail;
17077 arg1 = (int) SWIG_AsInt(obj0);
17078 if (PyErr_Occurred()) SWIG_fail;
17079 if (obj1) {
17080 arg2 = (wxDateTime::Calendar) SWIG_AsInt(obj1);
17081 if (PyErr_Occurred()) SWIG_fail;
17082 }
17083 {
17084 PyThreadState* __tstate = wxPyBeginAllowThreads();
17085 result = (int)wxDateTime::GetNumberOfDays(arg1,(wxDateTime::Calendar )arg2);
17086
17087 wxPyEndAllowThreads(__tstate);
17088 if (PyErr_Occurred()) SWIG_fail;
17089 }
17090 resultobj = SWIG_FromInt((int)result);
17091 return resultobj;
17092 fail:
17093 return NULL;
17094 }
17095
17096
17097 static PyObject *_wrap_DateTime_GetNumberOfDaysInMonth(PyObject *self, PyObject *args, PyObject *kwargs) {
17098 PyObject *resultobj;
17099 int arg1 ;
17100 int arg2 = (int) wxDateTime::Inv_Year ;
17101 int arg3 = (int) wxDateTime::Gregorian ;
17102 int result;
17103 PyObject * obj0 = 0 ;
17104 PyObject * obj1 = 0 ;
17105 PyObject * obj2 = 0 ;
17106 char *kwnames[] = {
17107 (char *) "month",(char *) "year",(char *) "cal", NULL
17108 };
17109
17110 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetNumberOfDaysInMonth",kwnames,&obj0,&obj1,&obj2)) goto fail;
17111 arg1 = (wxDateTime::Month) SWIG_AsInt(obj0);
17112 if (PyErr_Occurred()) SWIG_fail;
17113 if (obj1) {
17114 arg2 = (int) SWIG_AsInt(obj1);
17115 if (PyErr_Occurred()) SWIG_fail;
17116 }
17117 if (obj2) {
17118 arg3 = (wxDateTime::Calendar) SWIG_AsInt(obj2);
17119 if (PyErr_Occurred()) SWIG_fail;
17120 }
17121 {
17122 PyThreadState* __tstate = wxPyBeginAllowThreads();
17123 result = (int)wxDateTime::GetNumberOfDays((wxDateTime::Month )arg1,arg2,(wxDateTime::Calendar )arg3);
17124
17125 wxPyEndAllowThreads(__tstate);
17126 if (PyErr_Occurred()) SWIG_fail;
17127 }
17128 resultobj = SWIG_FromInt((int)result);
17129 return resultobj;
17130 fail:
17131 return NULL;
17132 }
17133
17134
17135 static PyObject *_wrap_DateTime_GetMonthName(PyObject *self, PyObject *args, PyObject *kwargs) {
17136 PyObject *resultobj;
17137 int arg1 ;
17138 int arg2 = (int) wxDateTime::Name_Full ;
17139 wxString result;
17140 PyObject * obj0 = 0 ;
17141 PyObject * obj1 = 0 ;
17142 char *kwnames[] = {
17143 (char *) "month",(char *) "flags", NULL
17144 };
17145
17146 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMonthName",kwnames,&obj0,&obj1)) goto fail;
17147 arg1 = (wxDateTime::Month) SWIG_AsInt(obj0);
17148 if (PyErr_Occurred()) SWIG_fail;
17149 if (obj1) {
17150 arg2 = (wxDateTime::NameFlags) SWIG_AsInt(obj1);
17151 if (PyErr_Occurred()) SWIG_fail;
17152 }
17153 {
17154 PyThreadState* __tstate = wxPyBeginAllowThreads();
17155 result = wxDateTime::GetMonthName((wxDateTime::Month )arg1,(wxDateTime::NameFlags )arg2);
17156
17157 wxPyEndAllowThreads(__tstate);
17158 if (PyErr_Occurred()) SWIG_fail;
17159 }
17160 {
17161 #if wxUSE_UNICODE
17162 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17163 #else
17164 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17165 #endif
17166 }
17167 return resultobj;
17168 fail:
17169 return NULL;
17170 }
17171
17172
17173 static PyObject *_wrap_DateTime_GetWeekDayName(PyObject *self, PyObject *args, PyObject *kwargs) {
17174 PyObject *resultobj;
17175 int arg1 ;
17176 int arg2 = (int) wxDateTime::Name_Full ;
17177 wxString result;
17178 PyObject * obj0 = 0 ;
17179 PyObject * obj1 = 0 ;
17180 char *kwnames[] = {
17181 (char *) "weekday",(char *) "flags", NULL
17182 };
17183
17184 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetWeekDayName",kwnames,&obj0,&obj1)) goto fail;
17185 arg1 = (wxDateTime::WeekDay) SWIG_AsInt(obj0);
17186 if (PyErr_Occurred()) SWIG_fail;
17187 if (obj1) {
17188 arg2 = (wxDateTime::NameFlags) SWIG_AsInt(obj1);
17189 if (PyErr_Occurred()) SWIG_fail;
17190 }
17191 {
17192 PyThreadState* __tstate = wxPyBeginAllowThreads();
17193 result = wxDateTime::GetWeekDayName((wxDateTime::WeekDay )arg1,(wxDateTime::NameFlags )arg2);
17194
17195 wxPyEndAllowThreads(__tstate);
17196 if (PyErr_Occurred()) SWIG_fail;
17197 }
17198 {
17199 #if wxUSE_UNICODE
17200 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17201 #else
17202 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17203 #endif
17204 }
17205 return resultobj;
17206 fail:
17207 return NULL;
17208 }
17209
17210
17211 static PyObject *_wrap_DateTime_GetAmPmStrings(PyObject *self, PyObject *args, PyObject *kwargs) {
17212 PyObject *resultobj;
17213 wxString *arg1 = (wxString *) 0 ;
17214 wxString *arg2 = (wxString *) 0 ;
17215 bool temp1 = False ;
17216 bool temp2 = False ;
17217 PyObject * obj0 = 0 ;
17218 PyObject * obj1 = 0 ;
17219 char *kwnames[] = {
17220 (char *) "OUTPUT",(char *) "OUTPUT", NULL
17221 };
17222
17223 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetAmPmStrings",kwnames,&obj0,&obj1)) goto fail;
17224 {
17225 arg1 = wxString_in_helper(obj0);
17226 if (arg1 == NULL) SWIG_fail;
17227 temp1 = True;
17228 }
17229 {
17230 arg2 = wxString_in_helper(obj1);
17231 if (arg2 == NULL) SWIG_fail;
17232 temp2 = True;
17233 }
17234 {
17235 PyThreadState* __tstate = wxPyBeginAllowThreads();
17236 wxDateTime::GetAmPmStrings(arg1,arg2);
17237
17238 wxPyEndAllowThreads(__tstate);
17239 if (PyErr_Occurred()) SWIG_fail;
17240 }
17241 Py_INCREF(Py_None); resultobj = Py_None;
17242 {
17243 if (temp1)
17244 delete arg1;
17245 }
17246 {
17247 if (temp2)
17248 delete arg2;
17249 }
17250 return resultobj;
17251 fail:
17252 {
17253 if (temp1)
17254 delete arg1;
17255 }
17256 {
17257 if (temp2)
17258 delete arg2;
17259 }
17260 return NULL;
17261 }
17262
17263
17264 static PyObject *_wrap_DateTime_IsDSTApplicable(PyObject *self, PyObject *args, PyObject *kwargs) {
17265 PyObject *resultobj;
17266 int arg1 = (int) wxDateTime::Inv_Year ;
17267 int arg2 = (int) wxDateTime::Country_Default ;
17268 bool result;
17269 PyObject * obj0 = 0 ;
17270 PyObject * obj1 = 0 ;
17271 char *kwnames[] = {
17272 (char *) "year",(char *) "country", NULL
17273 };
17274
17275 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_IsDSTApplicable",kwnames,&obj0,&obj1)) goto fail;
17276 if (obj0) {
17277 arg1 = (int) SWIG_AsInt(obj0);
17278 if (PyErr_Occurred()) SWIG_fail;
17279 }
17280 if (obj1) {
17281 arg2 = (wxDateTime::Country) SWIG_AsInt(obj1);
17282 if (PyErr_Occurred()) SWIG_fail;
17283 }
17284 {
17285 PyThreadState* __tstate = wxPyBeginAllowThreads();
17286 result = (bool)wxDateTime::IsDSTApplicable(arg1,(wxDateTime::Country )arg2);
17287
17288 wxPyEndAllowThreads(__tstate);
17289 if (PyErr_Occurred()) SWIG_fail;
17290 }
17291 {
17292 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17293 }
17294 return resultobj;
17295 fail:
17296 return NULL;
17297 }
17298
17299
17300 static PyObject *_wrap_DateTime_GetBeginDST(PyObject *self, PyObject *args, PyObject *kwargs) {
17301 PyObject *resultobj;
17302 int arg1 = (int) wxDateTime::Inv_Year ;
17303 int arg2 = (int) wxDateTime::Country_Default ;
17304 wxDateTime result;
17305 PyObject * obj0 = 0 ;
17306 PyObject * obj1 = 0 ;
17307 char *kwnames[] = {
17308 (char *) "year",(char *) "country", NULL
17309 };
17310
17311 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_GetBeginDST",kwnames,&obj0,&obj1)) goto fail;
17312 if (obj0) {
17313 arg1 = (int) SWIG_AsInt(obj0);
17314 if (PyErr_Occurred()) SWIG_fail;
17315 }
17316 if (obj1) {
17317 arg2 = (wxDateTime::Country) SWIG_AsInt(obj1);
17318 if (PyErr_Occurred()) SWIG_fail;
17319 }
17320 {
17321 PyThreadState* __tstate = wxPyBeginAllowThreads();
17322 result = wxDateTime::GetBeginDST(arg1,(wxDateTime::Country )arg2);
17323
17324 wxPyEndAllowThreads(__tstate);
17325 if (PyErr_Occurred()) SWIG_fail;
17326 }
17327 {
17328 wxDateTime * resultptr;
17329 resultptr = new wxDateTime((wxDateTime &) result);
17330 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
17331 }
17332 return resultobj;
17333 fail:
17334 return NULL;
17335 }
17336
17337
17338 static PyObject *_wrap_DateTime_GetEndDST(PyObject *self, PyObject *args, PyObject *kwargs) {
17339 PyObject *resultobj;
17340 int arg1 = (int) wxDateTime::Inv_Year ;
17341 int arg2 = (int) wxDateTime::Country_Default ;
17342 wxDateTime result;
17343 PyObject * obj0 = 0 ;
17344 PyObject * obj1 = 0 ;
17345 char *kwnames[] = {
17346 (char *) "year",(char *) "country", NULL
17347 };
17348
17349 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_GetEndDST",kwnames,&obj0,&obj1)) goto fail;
17350 if (obj0) {
17351 arg1 = (int) SWIG_AsInt(obj0);
17352 if (PyErr_Occurred()) SWIG_fail;
17353 }
17354 if (obj1) {
17355 arg2 = (wxDateTime::Country) SWIG_AsInt(obj1);
17356 if (PyErr_Occurred()) SWIG_fail;
17357 }
17358 {
17359 PyThreadState* __tstate = wxPyBeginAllowThreads();
17360 result = wxDateTime::GetEndDST(arg1,(wxDateTime::Country )arg2);
17361
17362 wxPyEndAllowThreads(__tstate);
17363 if (PyErr_Occurred()) SWIG_fail;
17364 }
17365 {
17366 wxDateTime * resultptr;
17367 resultptr = new wxDateTime((wxDateTime &) result);
17368 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
17369 }
17370 return resultobj;
17371 fail:
17372 return NULL;
17373 }
17374
17375
17376 static PyObject *_wrap_DateTime_Now(PyObject *self, PyObject *args, PyObject *kwargs) {
17377 PyObject *resultobj;
17378 wxDateTime result;
17379 char *kwnames[] = {
17380 NULL
17381 };
17382
17383 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_Now",kwnames)) goto fail;
17384 {
17385 PyThreadState* __tstate = wxPyBeginAllowThreads();
17386 result = wxDateTime::Now();
17387
17388 wxPyEndAllowThreads(__tstate);
17389 if (PyErr_Occurred()) SWIG_fail;
17390 }
17391 {
17392 wxDateTime * resultptr;
17393 resultptr = new wxDateTime((wxDateTime &) result);
17394 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
17395 }
17396 return resultobj;
17397 fail:
17398 return NULL;
17399 }
17400
17401
17402 static PyObject *_wrap_DateTime_UNow(PyObject *self, PyObject *args, PyObject *kwargs) {
17403 PyObject *resultobj;
17404 wxDateTime result;
17405 char *kwnames[] = {
17406 NULL
17407 };
17408
17409 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_UNow",kwnames)) goto fail;
17410 {
17411 PyThreadState* __tstate = wxPyBeginAllowThreads();
17412 result = wxDateTime::UNow();
17413
17414 wxPyEndAllowThreads(__tstate);
17415 if (PyErr_Occurred()) SWIG_fail;
17416 }
17417 {
17418 wxDateTime * resultptr;
17419 resultptr = new wxDateTime((wxDateTime &) result);
17420 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
17421 }
17422 return resultobj;
17423 fail:
17424 return NULL;
17425 }
17426
17427
17428 static PyObject *_wrap_DateTime_Today(PyObject *self, PyObject *args, PyObject *kwargs) {
17429 PyObject *resultobj;
17430 wxDateTime result;
17431 char *kwnames[] = {
17432 NULL
17433 };
17434
17435 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_Today",kwnames)) goto fail;
17436 {
17437 PyThreadState* __tstate = wxPyBeginAllowThreads();
17438 result = wxDateTime::Today();
17439
17440 wxPyEndAllowThreads(__tstate);
17441 if (PyErr_Occurred()) SWIG_fail;
17442 }
17443 {
17444 wxDateTime * resultptr;
17445 resultptr = new wxDateTime((wxDateTime &) result);
17446 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
17447 }
17448 return resultobj;
17449 fail:
17450 return NULL;
17451 }
17452
17453
17454 static PyObject *_wrap_new_DateTime(PyObject *self, PyObject *args, PyObject *kwargs) {
17455 PyObject *resultobj;
17456 wxDateTime *result;
17457 char *kwnames[] = {
17458 NULL
17459 };
17460
17461 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DateTime",kwnames)) goto fail;
17462 {
17463 PyThreadState* __tstate = wxPyBeginAllowThreads();
17464 result = (wxDateTime *)new wxDateTime();
17465
17466 wxPyEndAllowThreads(__tstate);
17467 if (PyErr_Occurred()) SWIG_fail;
17468 }
17469 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
17470 return resultobj;
17471 fail:
17472 return NULL;
17473 }
17474
17475
17476 static PyObject *_wrap_new_DateTimeFromTimeT(PyObject *self, PyObject *args, PyObject *kwargs) {
17477 PyObject *resultobj;
17478 time_t arg1 ;
17479 wxDateTime *result;
17480 PyObject * obj0 = 0 ;
17481 char *kwnames[] = {
17482 (char *) "timet", NULL
17483 };
17484
17485 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DateTimeFromTimeT",kwnames,&obj0)) goto fail;
17486 arg1 = (time_t) SWIG_AsUnsignedInt(obj0);
17487 if (PyErr_Occurred()) SWIG_fail;
17488 {
17489 PyThreadState* __tstate = wxPyBeginAllowThreads();
17490 result = (wxDateTime *)new wxDateTime(arg1);
17491
17492 wxPyEndAllowThreads(__tstate);
17493 if (PyErr_Occurred()) SWIG_fail;
17494 }
17495 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
17496 return resultobj;
17497 fail:
17498 return NULL;
17499 }
17500
17501
17502 static PyObject *_wrap_new_DateTimeFromJDN(PyObject *self, PyObject *args, PyObject *kwargs) {
17503 PyObject *resultobj;
17504 double arg1 ;
17505 wxDateTime *result;
17506 PyObject * obj0 = 0 ;
17507 char *kwnames[] = {
17508 (char *) "jdn", NULL
17509 };
17510
17511 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DateTimeFromJDN",kwnames,&obj0)) goto fail;
17512 arg1 = (double) SWIG_AsDouble(obj0);
17513 if (PyErr_Occurred()) SWIG_fail;
17514 {
17515 PyThreadState* __tstate = wxPyBeginAllowThreads();
17516 result = (wxDateTime *)new wxDateTime(arg1);
17517
17518 wxPyEndAllowThreads(__tstate);
17519 if (PyErr_Occurred()) SWIG_fail;
17520 }
17521 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
17522 return resultobj;
17523 fail:
17524 return NULL;
17525 }
17526
17527
17528 static PyObject *_wrap_new_DateTimeFromHMS(PyObject *self, PyObject *args, PyObject *kwargs) {
17529 PyObject *resultobj;
17530 int arg1 ;
17531 int arg2 = (int) 0 ;
17532 int arg3 = (int) 0 ;
17533 int arg4 = (int) 0 ;
17534 wxDateTime *result;
17535 PyObject * obj0 = 0 ;
17536 PyObject * obj1 = 0 ;
17537 PyObject * obj2 = 0 ;
17538 PyObject * obj3 = 0 ;
17539 char *kwnames[] = {
17540 (char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL
17541 };
17542
17543 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:new_DateTimeFromHMS",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
17544 arg1 = (int) SWIG_AsInt(obj0);
17545 if (PyErr_Occurred()) SWIG_fail;
17546 if (obj1) {
17547 arg2 = (int) SWIG_AsInt(obj1);
17548 if (PyErr_Occurred()) SWIG_fail;
17549 }
17550 if (obj2) {
17551 arg3 = (int) SWIG_AsInt(obj2);
17552 if (PyErr_Occurred()) SWIG_fail;
17553 }
17554 if (obj3) {
17555 arg4 = (int) SWIG_AsInt(obj3);
17556 if (PyErr_Occurred()) SWIG_fail;
17557 }
17558 {
17559 PyThreadState* __tstate = wxPyBeginAllowThreads();
17560 result = (wxDateTime *)new wxDateTime(arg1,arg2,arg3,arg4);
17561
17562 wxPyEndAllowThreads(__tstate);
17563 if (PyErr_Occurred()) SWIG_fail;
17564 }
17565 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
17566 return resultobj;
17567 fail:
17568 return NULL;
17569 }
17570
17571
17572 static PyObject *_wrap_new_DateTimeFromDMY(PyObject *self, PyObject *args, PyObject *kwargs) {
17573 PyObject *resultobj;
17574 int arg1 ;
17575 int arg2 = (int) wxDateTime::Inv_Month ;
17576 int arg3 = (int) wxDateTime::Inv_Year ;
17577 int arg4 = (int) 0 ;
17578 int arg5 = (int) 0 ;
17579 int arg6 = (int) 0 ;
17580 int arg7 = (int) 0 ;
17581 wxDateTime *result;
17582 PyObject * obj0 = 0 ;
17583 PyObject * obj1 = 0 ;
17584 PyObject * obj2 = 0 ;
17585 PyObject * obj3 = 0 ;
17586 PyObject * obj4 = 0 ;
17587 PyObject * obj5 = 0 ;
17588 PyObject * obj6 = 0 ;
17589 char *kwnames[] = {
17590 (char *) "day",(char *) "month",(char *) "year",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL
17591 };
17592
17593 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_DateTimeFromDMY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
17594 arg1 = (int) SWIG_AsInt(obj0);
17595 if (PyErr_Occurred()) SWIG_fail;
17596 if (obj1) {
17597 arg2 = (wxDateTime::Month) SWIG_AsInt(obj1);
17598 if (PyErr_Occurred()) SWIG_fail;
17599 }
17600 if (obj2) {
17601 arg3 = (int) SWIG_AsInt(obj2);
17602 if (PyErr_Occurred()) SWIG_fail;
17603 }
17604 if (obj3) {
17605 arg4 = (int) SWIG_AsInt(obj3);
17606 if (PyErr_Occurred()) SWIG_fail;
17607 }
17608 if (obj4) {
17609 arg5 = (int) SWIG_AsInt(obj4);
17610 if (PyErr_Occurred()) SWIG_fail;
17611 }
17612 if (obj5) {
17613 arg6 = (int) SWIG_AsInt(obj5);
17614 if (PyErr_Occurred()) SWIG_fail;
17615 }
17616 if (obj6) {
17617 arg7 = (int) SWIG_AsInt(obj6);
17618 if (PyErr_Occurred()) SWIG_fail;
17619 }
17620 {
17621 PyThreadState* __tstate = wxPyBeginAllowThreads();
17622 result = (wxDateTime *)new wxDateTime(arg1,(wxDateTime::Month )arg2,arg3,arg4,arg5,arg6,arg7);
17623
17624 wxPyEndAllowThreads(__tstate);
17625 if (PyErr_Occurred()) SWIG_fail;
17626 }
17627 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
17628 return resultobj;
17629 fail:
17630 return NULL;
17631 }
17632
17633
17634 static PyObject *_wrap_delete_DateTime(PyObject *self, PyObject *args, PyObject *kwargs) {
17635 PyObject *resultobj;
17636 wxDateTime *arg1 = (wxDateTime *) 0 ;
17637 PyObject * obj0 = 0 ;
17638 char *kwnames[] = {
17639 (char *) "self", NULL
17640 };
17641
17642 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DateTime",kwnames,&obj0)) goto fail;
17643 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17644 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17645 {
17646 PyThreadState* __tstate = wxPyBeginAllowThreads();
17647 delete arg1;
17648
17649 wxPyEndAllowThreads(__tstate);
17650 if (PyErr_Occurred()) SWIG_fail;
17651 }
17652 Py_INCREF(Py_None); resultobj = Py_None;
17653 return resultobj;
17654 fail:
17655 return NULL;
17656 }
17657
17658
17659 static PyObject *_wrap_DateTime_SetToCurrent(PyObject *self, PyObject *args, PyObject *kwargs) {
17660 PyObject *resultobj;
17661 wxDateTime *arg1 = (wxDateTime *) 0 ;
17662 wxDateTime *result;
17663 PyObject * obj0 = 0 ;
17664 char *kwnames[] = {
17665 (char *) "self", NULL
17666 };
17667
17668 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_SetToCurrent",kwnames,&obj0)) goto fail;
17669 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17670 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17671 {
17672 PyThreadState* __tstate = wxPyBeginAllowThreads();
17673 {
17674 wxDateTime &_result_ref = (arg1)->SetToCurrent();
17675 result = (wxDateTime *) &_result_ref;
17676 }
17677
17678 wxPyEndAllowThreads(__tstate);
17679 if (PyErr_Occurred()) SWIG_fail;
17680 }
17681 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17682 return resultobj;
17683 fail:
17684 return NULL;
17685 }
17686
17687
17688 static PyObject *_wrap_DateTime_SetTimeT(PyObject *self, PyObject *args, PyObject *kwargs) {
17689 PyObject *resultobj;
17690 wxDateTime *arg1 = (wxDateTime *) 0 ;
17691 time_t arg2 ;
17692 wxDateTime *result;
17693 PyObject * obj0 = 0 ;
17694 PyObject * obj1 = 0 ;
17695 char *kwnames[] = {
17696 (char *) "self",(char *) "timet", NULL
17697 };
17698
17699 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetTimeT",kwnames,&obj0,&obj1)) goto fail;
17700 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17701 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17702 arg2 = (time_t) SWIG_AsUnsignedInt(obj1);
17703 if (PyErr_Occurred()) SWIG_fail;
17704 {
17705 PyThreadState* __tstate = wxPyBeginAllowThreads();
17706 {
17707 wxDateTime &_result_ref = (arg1)->Set(arg2);
17708 result = (wxDateTime *) &_result_ref;
17709 }
17710
17711 wxPyEndAllowThreads(__tstate);
17712 if (PyErr_Occurred()) SWIG_fail;
17713 }
17714 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17715 return resultobj;
17716 fail:
17717 return NULL;
17718 }
17719
17720
17721 static PyObject *_wrap_DateTime_SetJDN(PyObject *self, PyObject *args, PyObject *kwargs) {
17722 PyObject *resultobj;
17723 wxDateTime *arg1 = (wxDateTime *) 0 ;
17724 double arg2 ;
17725 wxDateTime *result;
17726 PyObject * obj0 = 0 ;
17727 PyObject * obj1 = 0 ;
17728 char *kwnames[] = {
17729 (char *) "self",(char *) "jdn", NULL
17730 };
17731
17732 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetJDN",kwnames,&obj0,&obj1)) goto fail;
17733 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17734 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17735 arg2 = (double) SWIG_AsDouble(obj1);
17736 if (PyErr_Occurred()) SWIG_fail;
17737 {
17738 PyThreadState* __tstate = wxPyBeginAllowThreads();
17739 {
17740 wxDateTime &_result_ref = (arg1)->Set(arg2);
17741 result = (wxDateTime *) &_result_ref;
17742 }
17743
17744 wxPyEndAllowThreads(__tstate);
17745 if (PyErr_Occurred()) SWIG_fail;
17746 }
17747 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17748 return resultobj;
17749 fail:
17750 return NULL;
17751 }
17752
17753
17754 static PyObject *_wrap_DateTime_SetHMS(PyObject *self, PyObject *args, PyObject *kwargs) {
17755 PyObject *resultobj;
17756 wxDateTime *arg1 = (wxDateTime *) 0 ;
17757 int arg2 ;
17758 int arg3 = (int) 0 ;
17759 int arg4 = (int) 0 ;
17760 int arg5 = (int) 0 ;
17761 wxDateTime *result;
17762 PyObject * obj0 = 0 ;
17763 PyObject * obj1 = 0 ;
17764 PyObject * obj2 = 0 ;
17765 PyObject * obj3 = 0 ;
17766 PyObject * obj4 = 0 ;
17767 char *kwnames[] = {
17768 (char *) "self",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL
17769 };
17770
17771 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DateTime_SetHMS",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
17772 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17773 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17774 arg2 = (int) SWIG_AsInt(obj1);
17775 if (PyErr_Occurred()) SWIG_fail;
17776 if (obj2) {
17777 arg3 = (int) SWIG_AsInt(obj2);
17778 if (PyErr_Occurred()) SWIG_fail;
17779 }
17780 if (obj3) {
17781 arg4 = (int) SWIG_AsInt(obj3);
17782 if (PyErr_Occurred()) SWIG_fail;
17783 }
17784 if (obj4) {
17785 arg5 = (int) SWIG_AsInt(obj4);
17786 if (PyErr_Occurred()) SWIG_fail;
17787 }
17788 {
17789 PyThreadState* __tstate = wxPyBeginAllowThreads();
17790 {
17791 wxDateTime &_result_ref = (arg1)->Set(arg2,arg3,arg4,arg5);
17792 result = (wxDateTime *) &_result_ref;
17793 }
17794
17795 wxPyEndAllowThreads(__tstate);
17796 if (PyErr_Occurred()) SWIG_fail;
17797 }
17798 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17799 return resultobj;
17800 fail:
17801 return NULL;
17802 }
17803
17804
17805 static PyObject *_wrap_DateTime_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
17806 PyObject *resultobj;
17807 wxDateTime *arg1 = (wxDateTime *) 0 ;
17808 int arg2 ;
17809 int arg3 = (int) wxDateTime::Inv_Month ;
17810 int arg4 = (int) wxDateTime::Inv_Year ;
17811 int arg5 = (int) 0 ;
17812 int arg6 = (int) 0 ;
17813 int arg7 = (int) 0 ;
17814 int arg8 = (int) 0 ;
17815 wxDateTime *result;
17816 PyObject * obj0 = 0 ;
17817 PyObject * obj1 = 0 ;
17818 PyObject * obj2 = 0 ;
17819 PyObject * obj3 = 0 ;
17820 PyObject * obj4 = 0 ;
17821 PyObject * obj5 = 0 ;
17822 PyObject * obj6 = 0 ;
17823 PyObject * obj7 = 0 ;
17824 char *kwnames[] = {
17825 (char *) "self",(char *) "day",(char *) "month",(char *) "year",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL
17826 };
17827
17828 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:DateTime_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
17829 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17830 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17831 arg2 = (int) SWIG_AsInt(obj1);
17832 if (PyErr_Occurred()) SWIG_fail;
17833 if (obj2) {
17834 arg3 = (wxDateTime::Month) SWIG_AsInt(obj2);
17835 if (PyErr_Occurred()) SWIG_fail;
17836 }
17837 if (obj3) {
17838 arg4 = (int) SWIG_AsInt(obj3);
17839 if (PyErr_Occurred()) SWIG_fail;
17840 }
17841 if (obj4) {
17842 arg5 = (int) SWIG_AsInt(obj4);
17843 if (PyErr_Occurred()) SWIG_fail;
17844 }
17845 if (obj5) {
17846 arg6 = (int) SWIG_AsInt(obj5);
17847 if (PyErr_Occurred()) SWIG_fail;
17848 }
17849 if (obj6) {
17850 arg7 = (int) SWIG_AsInt(obj6);
17851 if (PyErr_Occurred()) SWIG_fail;
17852 }
17853 if (obj7) {
17854 arg8 = (int) SWIG_AsInt(obj7);
17855 if (PyErr_Occurred()) SWIG_fail;
17856 }
17857 {
17858 PyThreadState* __tstate = wxPyBeginAllowThreads();
17859 {
17860 wxDateTime &_result_ref = (arg1)->Set(arg2,(wxDateTime::Month )arg3,arg4,arg5,arg6,arg7,arg8);
17861 result = (wxDateTime *) &_result_ref;
17862 }
17863
17864 wxPyEndAllowThreads(__tstate);
17865 if (PyErr_Occurred()) SWIG_fail;
17866 }
17867 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17868 return resultobj;
17869 fail:
17870 return NULL;
17871 }
17872
17873
17874 static PyObject *_wrap_DateTime_ResetTime(PyObject *self, PyObject *args, PyObject *kwargs) {
17875 PyObject *resultobj;
17876 wxDateTime *arg1 = (wxDateTime *) 0 ;
17877 wxDateTime *result;
17878 PyObject * obj0 = 0 ;
17879 char *kwnames[] = {
17880 (char *) "self", NULL
17881 };
17882
17883 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_ResetTime",kwnames,&obj0)) goto fail;
17884 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17885 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17886 {
17887 PyThreadState* __tstate = wxPyBeginAllowThreads();
17888 {
17889 wxDateTime &_result_ref = (arg1)->ResetTime();
17890 result = (wxDateTime *) &_result_ref;
17891 }
17892
17893 wxPyEndAllowThreads(__tstate);
17894 if (PyErr_Occurred()) SWIG_fail;
17895 }
17896 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17897 return resultobj;
17898 fail:
17899 return NULL;
17900 }
17901
17902
17903 static PyObject *_wrap_DateTime_SetYear(PyObject *self, PyObject *args, PyObject *kwargs) {
17904 PyObject *resultobj;
17905 wxDateTime *arg1 = (wxDateTime *) 0 ;
17906 int arg2 ;
17907 wxDateTime *result;
17908 PyObject * obj0 = 0 ;
17909 PyObject * obj1 = 0 ;
17910 char *kwnames[] = {
17911 (char *) "self",(char *) "year", NULL
17912 };
17913
17914 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetYear",kwnames,&obj0,&obj1)) goto fail;
17915 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17916 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17917 arg2 = (int) SWIG_AsInt(obj1);
17918 if (PyErr_Occurred()) SWIG_fail;
17919 {
17920 PyThreadState* __tstate = wxPyBeginAllowThreads();
17921 {
17922 wxDateTime &_result_ref = (arg1)->SetYear(arg2);
17923 result = (wxDateTime *) &_result_ref;
17924 }
17925
17926 wxPyEndAllowThreads(__tstate);
17927 if (PyErr_Occurred()) SWIG_fail;
17928 }
17929 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17930 return resultobj;
17931 fail:
17932 return NULL;
17933 }
17934
17935
17936 static PyObject *_wrap_DateTime_SetMonth(PyObject *self, PyObject *args, PyObject *kwargs) {
17937 PyObject *resultobj;
17938 wxDateTime *arg1 = (wxDateTime *) 0 ;
17939 int arg2 ;
17940 wxDateTime *result;
17941 PyObject * obj0 = 0 ;
17942 PyObject * obj1 = 0 ;
17943 char *kwnames[] = {
17944 (char *) "self",(char *) "month", NULL
17945 };
17946
17947 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMonth",kwnames,&obj0,&obj1)) goto fail;
17948 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17949 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17950 arg2 = (wxDateTime::Month) SWIG_AsInt(obj1);
17951 if (PyErr_Occurred()) SWIG_fail;
17952 {
17953 PyThreadState* __tstate = wxPyBeginAllowThreads();
17954 {
17955 wxDateTime &_result_ref = (arg1)->SetMonth((wxDateTime::Month )arg2);
17956 result = (wxDateTime *) &_result_ref;
17957 }
17958
17959 wxPyEndAllowThreads(__tstate);
17960 if (PyErr_Occurred()) SWIG_fail;
17961 }
17962 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17963 return resultobj;
17964 fail:
17965 return NULL;
17966 }
17967
17968
17969 static PyObject *_wrap_DateTime_SetDay(PyObject *self, PyObject *args, PyObject *kwargs) {
17970 PyObject *resultobj;
17971 wxDateTime *arg1 = (wxDateTime *) 0 ;
17972 int arg2 ;
17973 wxDateTime *result;
17974 PyObject * obj0 = 0 ;
17975 PyObject * obj1 = 0 ;
17976 char *kwnames[] = {
17977 (char *) "self",(char *) "day", NULL
17978 };
17979
17980 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetDay",kwnames,&obj0,&obj1)) goto fail;
17981 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17982 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17983 arg2 = (int) SWIG_AsInt(obj1);
17984 if (PyErr_Occurred()) SWIG_fail;
17985 {
17986 PyThreadState* __tstate = wxPyBeginAllowThreads();
17987 {
17988 wxDateTime &_result_ref = (arg1)->SetDay(arg2);
17989 result = (wxDateTime *) &_result_ref;
17990 }
17991
17992 wxPyEndAllowThreads(__tstate);
17993 if (PyErr_Occurred()) SWIG_fail;
17994 }
17995 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17996 return resultobj;
17997 fail:
17998 return NULL;
17999 }
18000
18001
18002 static PyObject *_wrap_DateTime_SetHour(PyObject *self, PyObject *args, PyObject *kwargs) {
18003 PyObject *resultobj;
18004 wxDateTime *arg1 = (wxDateTime *) 0 ;
18005 int arg2 ;
18006 wxDateTime *result;
18007 PyObject * obj0 = 0 ;
18008 PyObject * obj1 = 0 ;
18009 char *kwnames[] = {
18010 (char *) "self",(char *) "hour", NULL
18011 };
18012
18013 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetHour",kwnames,&obj0,&obj1)) goto fail;
18014 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18015 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18016 arg2 = (int) SWIG_AsInt(obj1);
18017 if (PyErr_Occurred()) SWIG_fail;
18018 {
18019 PyThreadState* __tstate = wxPyBeginAllowThreads();
18020 {
18021 wxDateTime &_result_ref = (arg1)->SetHour(arg2);
18022 result = (wxDateTime *) &_result_ref;
18023 }
18024
18025 wxPyEndAllowThreads(__tstate);
18026 if (PyErr_Occurred()) SWIG_fail;
18027 }
18028 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18029 return resultobj;
18030 fail:
18031 return NULL;
18032 }
18033
18034
18035 static PyObject *_wrap_DateTime_SetMinute(PyObject *self, PyObject *args, PyObject *kwargs) {
18036 PyObject *resultobj;
18037 wxDateTime *arg1 = (wxDateTime *) 0 ;
18038 int arg2 ;
18039 wxDateTime *result;
18040 PyObject * obj0 = 0 ;
18041 PyObject * obj1 = 0 ;
18042 char *kwnames[] = {
18043 (char *) "self",(char *) "minute", NULL
18044 };
18045
18046 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMinute",kwnames,&obj0,&obj1)) goto fail;
18047 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18048 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18049 arg2 = (int) SWIG_AsInt(obj1);
18050 if (PyErr_Occurred()) SWIG_fail;
18051 {
18052 PyThreadState* __tstate = wxPyBeginAllowThreads();
18053 {
18054 wxDateTime &_result_ref = (arg1)->SetMinute(arg2);
18055 result = (wxDateTime *) &_result_ref;
18056 }
18057
18058 wxPyEndAllowThreads(__tstate);
18059 if (PyErr_Occurred()) SWIG_fail;
18060 }
18061 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18062 return resultobj;
18063 fail:
18064 return NULL;
18065 }
18066
18067
18068 static PyObject *_wrap_DateTime_SetSecond(PyObject *self, PyObject *args, PyObject *kwargs) {
18069 PyObject *resultobj;
18070 wxDateTime *arg1 = (wxDateTime *) 0 ;
18071 int arg2 ;
18072 wxDateTime *result;
18073 PyObject * obj0 = 0 ;
18074 PyObject * obj1 = 0 ;
18075 char *kwnames[] = {
18076 (char *) "self",(char *) "second", NULL
18077 };
18078
18079 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetSecond",kwnames,&obj0,&obj1)) goto fail;
18080 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18081 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18082 arg2 = (int) SWIG_AsInt(obj1);
18083 if (PyErr_Occurred()) SWIG_fail;
18084 {
18085 PyThreadState* __tstate = wxPyBeginAllowThreads();
18086 {
18087 wxDateTime &_result_ref = (arg1)->SetSecond(arg2);
18088 result = (wxDateTime *) &_result_ref;
18089 }
18090
18091 wxPyEndAllowThreads(__tstate);
18092 if (PyErr_Occurred()) SWIG_fail;
18093 }
18094 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18095 return resultobj;
18096 fail:
18097 return NULL;
18098 }
18099
18100
18101 static PyObject *_wrap_DateTime_SetMillisecond(PyObject *self, PyObject *args, PyObject *kwargs) {
18102 PyObject *resultobj;
18103 wxDateTime *arg1 = (wxDateTime *) 0 ;
18104 int arg2 ;
18105 wxDateTime *result;
18106 PyObject * obj0 = 0 ;
18107 PyObject * obj1 = 0 ;
18108 char *kwnames[] = {
18109 (char *) "self",(char *) "millisecond", NULL
18110 };
18111
18112 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMillisecond",kwnames,&obj0,&obj1)) goto fail;
18113 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18114 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18115 arg2 = (int) SWIG_AsInt(obj1);
18116 if (PyErr_Occurred()) SWIG_fail;
18117 {
18118 PyThreadState* __tstate = wxPyBeginAllowThreads();
18119 {
18120 wxDateTime &_result_ref = (arg1)->SetMillisecond(arg2);
18121 result = (wxDateTime *) &_result_ref;
18122 }
18123
18124 wxPyEndAllowThreads(__tstate);
18125 if (PyErr_Occurred()) SWIG_fail;
18126 }
18127 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18128 return resultobj;
18129 fail:
18130 return NULL;
18131 }
18132
18133
18134 static PyObject *_wrap_DateTime_SetToWeekDayInSameWeek(PyObject *self, PyObject *args, PyObject *kwargs) {
18135 PyObject *resultobj;
18136 wxDateTime *arg1 = (wxDateTime *) 0 ;
18137 int arg2 ;
18138 int arg3 = (int) wxDateTime::Monday_First ;
18139 wxDateTime *result;
18140 PyObject * obj0 = 0 ;
18141 PyObject * obj1 = 0 ;
18142 PyObject * obj2 = 0 ;
18143 char *kwnames[] = {
18144 (char *) "self",(char *) "weekday",(char *) "flags", NULL
18145 };
18146
18147 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_SetToWeekDayInSameWeek",kwnames,&obj0,&obj1,&obj2)) goto fail;
18148 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18149 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18150 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
18151 if (PyErr_Occurred()) SWIG_fail;
18152 if (obj2) {
18153 arg3 = (wxDateTime::WeekFlags) SWIG_AsInt(obj2);
18154 if (PyErr_Occurred()) SWIG_fail;
18155 }
18156 {
18157 PyThreadState* __tstate = wxPyBeginAllowThreads();
18158 {
18159 wxDateTime &_result_ref = (arg1)->SetToWeekDayInSameWeek((wxDateTime::WeekDay )arg2,(wxDateTime::WeekFlags )arg3);
18160 result = (wxDateTime *) &_result_ref;
18161 }
18162
18163 wxPyEndAllowThreads(__tstate);
18164 if (PyErr_Occurred()) SWIG_fail;
18165 }
18166 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18167 return resultobj;
18168 fail:
18169 return NULL;
18170 }
18171
18172
18173 static PyObject *_wrap_DateTime_GetWeekDayInSameWeek(PyObject *self, PyObject *args, PyObject *kwargs) {
18174 PyObject *resultobj;
18175 wxDateTime *arg1 = (wxDateTime *) 0 ;
18176 int arg2 ;
18177 int arg3 = (int) wxDateTime::Monday_First ;
18178 wxDateTime result;
18179 PyObject * obj0 = 0 ;
18180 PyObject * obj1 = 0 ;
18181 PyObject * obj2 = 0 ;
18182 char *kwnames[] = {
18183 (char *) "self",(char *) "weekday",(char *) "flags", NULL
18184 };
18185
18186 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_GetWeekDayInSameWeek",kwnames,&obj0,&obj1,&obj2)) goto fail;
18187 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18188 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18189 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
18190 if (PyErr_Occurred()) SWIG_fail;
18191 if (obj2) {
18192 arg3 = (wxDateTime::WeekFlags) SWIG_AsInt(obj2);
18193 if (PyErr_Occurred()) SWIG_fail;
18194 }
18195 {
18196 PyThreadState* __tstate = wxPyBeginAllowThreads();
18197 result = (arg1)->GetWeekDayInSameWeek((wxDateTime::WeekDay )arg2,(wxDateTime::WeekFlags )arg3);
18198
18199 wxPyEndAllowThreads(__tstate);
18200 if (PyErr_Occurred()) SWIG_fail;
18201 }
18202 {
18203 wxDateTime * resultptr;
18204 resultptr = new wxDateTime((wxDateTime &) result);
18205 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18206 }
18207 return resultobj;
18208 fail:
18209 return NULL;
18210 }
18211
18212
18213 static PyObject *_wrap_DateTime_SetToNextWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18214 PyObject *resultobj;
18215 wxDateTime *arg1 = (wxDateTime *) 0 ;
18216 int arg2 ;
18217 wxDateTime *result;
18218 PyObject * obj0 = 0 ;
18219 PyObject * obj1 = 0 ;
18220 char *kwnames[] = {
18221 (char *) "self",(char *) "weekday", NULL
18222 };
18223
18224 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToNextWeekDay",kwnames,&obj0,&obj1)) goto fail;
18225 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18226 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18227 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
18228 if (PyErr_Occurred()) SWIG_fail;
18229 {
18230 PyThreadState* __tstate = wxPyBeginAllowThreads();
18231 {
18232 wxDateTime &_result_ref = (arg1)->SetToNextWeekDay((wxDateTime::WeekDay )arg2);
18233 result = (wxDateTime *) &_result_ref;
18234 }
18235
18236 wxPyEndAllowThreads(__tstate);
18237 if (PyErr_Occurred()) SWIG_fail;
18238 }
18239 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18240 return resultobj;
18241 fail:
18242 return NULL;
18243 }
18244
18245
18246 static PyObject *_wrap_DateTime_GetNextWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18247 PyObject *resultobj;
18248 wxDateTime *arg1 = (wxDateTime *) 0 ;
18249 int arg2 ;
18250 wxDateTime result;
18251 PyObject * obj0 = 0 ;
18252 PyObject * obj1 = 0 ;
18253 char *kwnames[] = {
18254 (char *) "self",(char *) "weekday", NULL
18255 };
18256
18257 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetNextWeekDay",kwnames,&obj0,&obj1)) goto fail;
18258 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18259 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18260 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
18261 if (PyErr_Occurred()) SWIG_fail;
18262 {
18263 PyThreadState* __tstate = wxPyBeginAllowThreads();
18264 result = (arg1)->GetNextWeekDay((wxDateTime::WeekDay )arg2);
18265
18266 wxPyEndAllowThreads(__tstate);
18267 if (PyErr_Occurred()) SWIG_fail;
18268 }
18269 {
18270 wxDateTime * resultptr;
18271 resultptr = new wxDateTime((wxDateTime &) result);
18272 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18273 }
18274 return resultobj;
18275 fail:
18276 return NULL;
18277 }
18278
18279
18280 static PyObject *_wrap_DateTime_SetToPrevWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18281 PyObject *resultobj;
18282 wxDateTime *arg1 = (wxDateTime *) 0 ;
18283 int arg2 ;
18284 wxDateTime *result;
18285 PyObject * obj0 = 0 ;
18286 PyObject * obj1 = 0 ;
18287 char *kwnames[] = {
18288 (char *) "self",(char *) "weekday", NULL
18289 };
18290
18291 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToPrevWeekDay",kwnames,&obj0,&obj1)) goto fail;
18292 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18293 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18294 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
18295 if (PyErr_Occurred()) SWIG_fail;
18296 {
18297 PyThreadState* __tstate = wxPyBeginAllowThreads();
18298 {
18299 wxDateTime &_result_ref = (arg1)->SetToPrevWeekDay((wxDateTime::WeekDay )arg2);
18300 result = (wxDateTime *) &_result_ref;
18301 }
18302
18303 wxPyEndAllowThreads(__tstate);
18304 if (PyErr_Occurred()) SWIG_fail;
18305 }
18306 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18307 return resultobj;
18308 fail:
18309 return NULL;
18310 }
18311
18312
18313 static PyObject *_wrap_DateTime_GetPrevWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18314 PyObject *resultobj;
18315 wxDateTime *arg1 = (wxDateTime *) 0 ;
18316 int arg2 ;
18317 wxDateTime result;
18318 PyObject * obj0 = 0 ;
18319 PyObject * obj1 = 0 ;
18320 char *kwnames[] = {
18321 (char *) "self",(char *) "weekday", NULL
18322 };
18323
18324 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetPrevWeekDay",kwnames,&obj0,&obj1)) goto fail;
18325 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18326 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18327 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
18328 if (PyErr_Occurred()) SWIG_fail;
18329 {
18330 PyThreadState* __tstate = wxPyBeginAllowThreads();
18331 result = (arg1)->GetPrevWeekDay((wxDateTime::WeekDay )arg2);
18332
18333 wxPyEndAllowThreads(__tstate);
18334 if (PyErr_Occurred()) SWIG_fail;
18335 }
18336 {
18337 wxDateTime * resultptr;
18338 resultptr = new wxDateTime((wxDateTime &) result);
18339 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18340 }
18341 return resultobj;
18342 fail:
18343 return NULL;
18344 }
18345
18346
18347 static PyObject *_wrap_DateTime_SetToWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18348 PyObject *resultobj;
18349 wxDateTime *arg1 = (wxDateTime *) 0 ;
18350 int arg2 ;
18351 int arg3 = (int) 1 ;
18352 int arg4 = (int) wxDateTime::Inv_Month ;
18353 int arg5 = (int) wxDateTime::Inv_Year ;
18354 bool result;
18355 PyObject * obj0 = 0 ;
18356 PyObject * obj1 = 0 ;
18357 PyObject * obj2 = 0 ;
18358 PyObject * obj3 = 0 ;
18359 PyObject * obj4 = 0 ;
18360 char *kwnames[] = {
18361 (char *) "self",(char *) "weekday",(char *) "n",(char *) "month",(char *) "year", NULL
18362 };
18363
18364 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DateTime_SetToWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
18365 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18366 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18367 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
18368 if (PyErr_Occurred()) SWIG_fail;
18369 if (obj2) {
18370 arg3 = (int) SWIG_AsInt(obj2);
18371 if (PyErr_Occurred()) SWIG_fail;
18372 }
18373 if (obj3) {
18374 arg4 = (wxDateTime::Month) SWIG_AsInt(obj3);
18375 if (PyErr_Occurred()) SWIG_fail;
18376 }
18377 if (obj4) {
18378 arg5 = (int) SWIG_AsInt(obj4);
18379 if (PyErr_Occurred()) SWIG_fail;
18380 }
18381 {
18382 PyThreadState* __tstate = wxPyBeginAllowThreads();
18383 result = (bool)(arg1)->SetToWeekDay((wxDateTime::WeekDay )arg2,arg3,(wxDateTime::Month )arg4,arg5);
18384
18385 wxPyEndAllowThreads(__tstate);
18386 if (PyErr_Occurred()) SWIG_fail;
18387 }
18388 {
18389 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18390 }
18391 return resultobj;
18392 fail:
18393 return NULL;
18394 }
18395
18396
18397 static PyObject *_wrap_DateTime_SetToLastWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18398 PyObject *resultobj;
18399 wxDateTime *arg1 = (wxDateTime *) 0 ;
18400 int arg2 ;
18401 int arg3 = (int) wxDateTime::Inv_Month ;
18402 int arg4 = (int) wxDateTime::Inv_Year ;
18403 bool result;
18404 PyObject * obj0 = 0 ;
18405 PyObject * obj1 = 0 ;
18406 PyObject * obj2 = 0 ;
18407 PyObject * obj3 = 0 ;
18408 char *kwnames[] = {
18409 (char *) "self",(char *) "weekday",(char *) "month",(char *) "year", NULL
18410 };
18411
18412 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_SetToLastWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18413 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18414 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18415 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
18416 if (PyErr_Occurred()) SWIG_fail;
18417 if (obj2) {
18418 arg3 = (wxDateTime::Month) SWIG_AsInt(obj2);
18419 if (PyErr_Occurred()) SWIG_fail;
18420 }
18421 if (obj3) {
18422 arg4 = (int) SWIG_AsInt(obj3);
18423 if (PyErr_Occurred()) SWIG_fail;
18424 }
18425 {
18426 PyThreadState* __tstate = wxPyBeginAllowThreads();
18427 result = (bool)(arg1)->SetToLastWeekDay((wxDateTime::WeekDay )arg2,(wxDateTime::Month )arg3,arg4);
18428
18429 wxPyEndAllowThreads(__tstate);
18430 if (PyErr_Occurred()) SWIG_fail;
18431 }
18432 {
18433 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18434 }
18435 return resultobj;
18436 fail:
18437 return NULL;
18438 }
18439
18440
18441 static PyObject *_wrap_DateTime_GetLastWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18442 PyObject *resultobj;
18443 wxDateTime *arg1 = (wxDateTime *) 0 ;
18444 int arg2 ;
18445 int arg3 = (int) wxDateTime::Inv_Month ;
18446 int arg4 = (int) wxDateTime::Inv_Year ;
18447 wxDateTime result;
18448 PyObject * obj0 = 0 ;
18449 PyObject * obj1 = 0 ;
18450 PyObject * obj2 = 0 ;
18451 PyObject * obj3 = 0 ;
18452 char *kwnames[] = {
18453 (char *) "self",(char *) "weekday",(char *) "month",(char *) "year", NULL
18454 };
18455
18456 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_GetLastWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18457 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18458 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18459 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
18460 if (PyErr_Occurred()) SWIG_fail;
18461 if (obj2) {
18462 arg3 = (wxDateTime::Month) SWIG_AsInt(obj2);
18463 if (PyErr_Occurred()) SWIG_fail;
18464 }
18465 if (obj3) {
18466 arg4 = (int) SWIG_AsInt(obj3);
18467 if (PyErr_Occurred()) SWIG_fail;
18468 }
18469 {
18470 PyThreadState* __tstate = wxPyBeginAllowThreads();
18471 result = (arg1)->GetLastWeekDay((wxDateTime::WeekDay )arg2,(wxDateTime::Month )arg3,arg4);
18472
18473 wxPyEndAllowThreads(__tstate);
18474 if (PyErr_Occurred()) SWIG_fail;
18475 }
18476 {
18477 wxDateTime * resultptr;
18478 resultptr = new wxDateTime((wxDateTime &) result);
18479 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18480 }
18481 return resultobj;
18482 fail:
18483 return NULL;
18484 }
18485
18486
18487 static PyObject *_wrap_DateTime_SetToTheWeek(PyObject *self, PyObject *args, PyObject *kwargs) {
18488 PyObject *resultobj;
18489 wxDateTime *arg1 = (wxDateTime *) 0 ;
18490 int arg2 ;
18491 int arg3 = (int) wxDateTime::Mon ;
18492 int arg4 = (int) wxDateTime::Monday_First ;
18493 bool result;
18494 PyObject * obj0 = 0 ;
18495 PyObject * obj1 = 0 ;
18496 PyObject * obj2 = 0 ;
18497 PyObject * obj3 = 0 ;
18498 char *kwnames[] = {
18499 (char *) "self",(char *) "numWeek",(char *) "weekday",(char *) "flags", NULL
18500 };
18501
18502 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_SetToTheWeek",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18503 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18504 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18505 arg2 = (int) SWIG_AsInt(obj1);
18506 if (PyErr_Occurred()) SWIG_fail;
18507 if (obj2) {
18508 arg3 = (wxDateTime::WeekDay) SWIG_AsInt(obj2);
18509 if (PyErr_Occurred()) SWIG_fail;
18510 }
18511 if (obj3) {
18512 arg4 = (wxDateTime::WeekFlags) SWIG_AsInt(obj3);
18513 if (PyErr_Occurred()) SWIG_fail;
18514 }
18515 {
18516 PyThreadState* __tstate = wxPyBeginAllowThreads();
18517 result = (bool)(arg1)->SetToTheWeek(arg2,(wxDateTime::WeekDay )arg3,(wxDateTime::WeekFlags )arg4);
18518
18519 wxPyEndAllowThreads(__tstate);
18520 if (PyErr_Occurred()) SWIG_fail;
18521 }
18522 {
18523 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18524 }
18525 return resultobj;
18526 fail:
18527 return NULL;
18528 }
18529
18530
18531 static PyObject *_wrap_DateTime_GetWeek(PyObject *self, PyObject *args, PyObject *kwargs) {
18532 PyObject *resultobj;
18533 wxDateTime *arg1 = (wxDateTime *) 0 ;
18534 int arg2 ;
18535 int arg3 = (int) wxDateTime::Mon ;
18536 int arg4 = (int) wxDateTime::Monday_First ;
18537 wxDateTime result;
18538 PyObject * obj0 = 0 ;
18539 PyObject * obj1 = 0 ;
18540 PyObject * obj2 = 0 ;
18541 PyObject * obj3 = 0 ;
18542 char *kwnames[] = {
18543 (char *) "self",(char *) "numWeek",(char *) "weekday",(char *) "flags", NULL
18544 };
18545
18546 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_GetWeek",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18547 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18548 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18549 arg2 = (int) SWIG_AsInt(obj1);
18550 if (PyErr_Occurred()) SWIG_fail;
18551 if (obj2) {
18552 arg3 = (wxDateTime::WeekDay) SWIG_AsInt(obj2);
18553 if (PyErr_Occurred()) SWIG_fail;
18554 }
18555 if (obj3) {
18556 arg4 = (wxDateTime::WeekFlags) SWIG_AsInt(obj3);
18557 if (PyErr_Occurred()) SWIG_fail;
18558 }
18559 {
18560 PyThreadState* __tstate = wxPyBeginAllowThreads();
18561 result = (arg1)->GetWeek(arg2,(wxDateTime::WeekDay )arg3,(wxDateTime::WeekFlags )arg4);
18562
18563 wxPyEndAllowThreads(__tstate);
18564 if (PyErr_Occurred()) SWIG_fail;
18565 }
18566 {
18567 wxDateTime * resultptr;
18568 resultptr = new wxDateTime((wxDateTime &) result);
18569 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18570 }
18571 return resultobj;
18572 fail:
18573 return NULL;
18574 }
18575
18576
18577 static PyObject *_wrap_DateTime_SetToLastMonthDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18578 PyObject *resultobj;
18579 wxDateTime *arg1 = (wxDateTime *) 0 ;
18580 int arg2 = (int) wxDateTime::Inv_Month ;
18581 int arg3 = (int) wxDateTime::Inv_Year ;
18582 wxDateTime *result;
18583 PyObject * obj0 = 0 ;
18584 PyObject * obj1 = 0 ;
18585 PyObject * obj2 = 0 ;
18586 char *kwnames[] = {
18587 (char *) "self",(char *) "month",(char *) "year", NULL
18588 };
18589
18590 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_SetToLastMonthDay",kwnames,&obj0,&obj1,&obj2)) goto fail;
18591 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18592 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18593 if (obj1) {
18594 arg2 = (wxDateTime::Month) SWIG_AsInt(obj1);
18595 if (PyErr_Occurred()) SWIG_fail;
18596 }
18597 if (obj2) {
18598 arg3 = (int) SWIG_AsInt(obj2);
18599 if (PyErr_Occurred()) SWIG_fail;
18600 }
18601 {
18602 PyThreadState* __tstate = wxPyBeginAllowThreads();
18603 {
18604 wxDateTime &_result_ref = (arg1)->SetToLastMonthDay((wxDateTime::Month )arg2,arg3);
18605 result = (wxDateTime *) &_result_ref;
18606 }
18607
18608 wxPyEndAllowThreads(__tstate);
18609 if (PyErr_Occurred()) SWIG_fail;
18610 }
18611 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18612 return resultobj;
18613 fail:
18614 return NULL;
18615 }
18616
18617
18618 static PyObject *_wrap_DateTime_GetLastMonthDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18619 PyObject *resultobj;
18620 wxDateTime *arg1 = (wxDateTime *) 0 ;
18621 int arg2 = (int) wxDateTime::Inv_Month ;
18622 int arg3 = (int) wxDateTime::Inv_Year ;
18623 wxDateTime result;
18624 PyObject * obj0 = 0 ;
18625 PyObject * obj1 = 0 ;
18626 PyObject * obj2 = 0 ;
18627 char *kwnames[] = {
18628 (char *) "self",(char *) "month",(char *) "year", NULL
18629 };
18630
18631 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetLastMonthDay",kwnames,&obj0,&obj1,&obj2)) goto fail;
18632 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18633 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18634 if (obj1) {
18635 arg2 = (wxDateTime::Month) SWIG_AsInt(obj1);
18636 if (PyErr_Occurred()) SWIG_fail;
18637 }
18638 if (obj2) {
18639 arg3 = (int) SWIG_AsInt(obj2);
18640 if (PyErr_Occurred()) SWIG_fail;
18641 }
18642 {
18643 PyThreadState* __tstate = wxPyBeginAllowThreads();
18644 result = (arg1)->GetLastMonthDay((wxDateTime::Month )arg2,arg3);
18645
18646 wxPyEndAllowThreads(__tstate);
18647 if (PyErr_Occurred()) SWIG_fail;
18648 }
18649 {
18650 wxDateTime * resultptr;
18651 resultptr = new wxDateTime((wxDateTime &) result);
18652 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18653 }
18654 return resultobj;
18655 fail:
18656 return NULL;
18657 }
18658
18659
18660 static PyObject *_wrap_DateTime_SetToYearDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18661 PyObject *resultobj;
18662 wxDateTime *arg1 = (wxDateTime *) 0 ;
18663 int arg2 ;
18664 wxDateTime *result;
18665 PyObject * obj0 = 0 ;
18666 PyObject * obj1 = 0 ;
18667 char *kwnames[] = {
18668 (char *) "self",(char *) "yday", NULL
18669 };
18670
18671 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToYearDay",kwnames,&obj0,&obj1)) goto fail;
18672 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18673 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18674 arg2 = (int) SWIG_AsInt(obj1);
18675 if (PyErr_Occurred()) SWIG_fail;
18676 {
18677 PyThreadState* __tstate = wxPyBeginAllowThreads();
18678 {
18679 wxDateTime &_result_ref = (arg1)->SetToYearDay(arg2);
18680 result = (wxDateTime *) &_result_ref;
18681 }
18682
18683 wxPyEndAllowThreads(__tstate);
18684 if (PyErr_Occurred()) SWIG_fail;
18685 }
18686 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18687 return resultobj;
18688 fail:
18689 return NULL;
18690 }
18691
18692
18693 static PyObject *_wrap_DateTime_GetYearDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18694 PyObject *resultobj;
18695 wxDateTime *arg1 = (wxDateTime *) 0 ;
18696 int arg2 ;
18697 wxDateTime result;
18698 PyObject * obj0 = 0 ;
18699 PyObject * obj1 = 0 ;
18700 char *kwnames[] = {
18701 (char *) "self",(char *) "yday", NULL
18702 };
18703
18704 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetYearDay",kwnames,&obj0,&obj1)) goto fail;
18705 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18706 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18707 arg2 = (int) SWIG_AsInt(obj1);
18708 if (PyErr_Occurred()) SWIG_fail;
18709 {
18710 PyThreadState* __tstate = wxPyBeginAllowThreads();
18711 result = (arg1)->GetYearDay(arg2);
18712
18713 wxPyEndAllowThreads(__tstate);
18714 if (PyErr_Occurred()) SWIG_fail;
18715 }
18716 {
18717 wxDateTime * resultptr;
18718 resultptr = new wxDateTime((wxDateTime &) result);
18719 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18720 }
18721 return resultobj;
18722 fail:
18723 return NULL;
18724 }
18725
18726
18727 static PyObject *_wrap_DateTime_GetJulianDayNumber(PyObject *self, PyObject *args, PyObject *kwargs) {
18728 PyObject *resultobj;
18729 wxDateTime *arg1 = (wxDateTime *) 0 ;
18730 double result;
18731 PyObject * obj0 = 0 ;
18732 char *kwnames[] = {
18733 (char *) "self", NULL
18734 };
18735
18736 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetJulianDayNumber",kwnames,&obj0)) goto fail;
18737 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18738 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18739 {
18740 PyThreadState* __tstate = wxPyBeginAllowThreads();
18741 result = (double)(arg1)->GetJulianDayNumber();
18742
18743 wxPyEndAllowThreads(__tstate);
18744 if (PyErr_Occurred()) SWIG_fail;
18745 }
18746 resultobj = SWIG_FromDouble((double)result);
18747 return resultobj;
18748 fail:
18749 return NULL;
18750 }
18751
18752
18753 static PyObject *_wrap_DateTime_GetJDN(PyObject *self, PyObject *args, PyObject *kwargs) {
18754 PyObject *resultobj;
18755 wxDateTime *arg1 = (wxDateTime *) 0 ;
18756 double result;
18757 PyObject * obj0 = 0 ;
18758 char *kwnames[] = {
18759 (char *) "self", NULL
18760 };
18761
18762 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetJDN",kwnames,&obj0)) goto fail;
18763 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18764 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18765 {
18766 PyThreadState* __tstate = wxPyBeginAllowThreads();
18767 result = (double)(arg1)->GetJDN();
18768
18769 wxPyEndAllowThreads(__tstate);
18770 if (PyErr_Occurred()) SWIG_fail;
18771 }
18772 resultobj = SWIG_FromDouble((double)result);
18773 return resultobj;
18774 fail:
18775 return NULL;
18776 }
18777
18778
18779 static PyObject *_wrap_DateTime_GetModifiedJulianDayNumber(PyObject *self, PyObject *args, PyObject *kwargs) {
18780 PyObject *resultobj;
18781 wxDateTime *arg1 = (wxDateTime *) 0 ;
18782 double result;
18783 PyObject * obj0 = 0 ;
18784 char *kwnames[] = {
18785 (char *) "self", NULL
18786 };
18787
18788 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetModifiedJulianDayNumber",kwnames,&obj0)) goto fail;
18789 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18790 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18791 {
18792 PyThreadState* __tstate = wxPyBeginAllowThreads();
18793 result = (double)((wxDateTime const *)arg1)->GetModifiedJulianDayNumber();
18794
18795 wxPyEndAllowThreads(__tstate);
18796 if (PyErr_Occurred()) SWIG_fail;
18797 }
18798 resultobj = SWIG_FromDouble((double)result);
18799 return resultobj;
18800 fail:
18801 return NULL;
18802 }
18803
18804
18805 static PyObject *_wrap_DateTime_GetMJD(PyObject *self, PyObject *args, PyObject *kwargs) {
18806 PyObject *resultobj;
18807 wxDateTime *arg1 = (wxDateTime *) 0 ;
18808 double result;
18809 PyObject * obj0 = 0 ;
18810 char *kwnames[] = {
18811 (char *) "self", NULL
18812 };
18813
18814 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetMJD",kwnames,&obj0)) goto fail;
18815 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18816 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18817 {
18818 PyThreadState* __tstate = wxPyBeginAllowThreads();
18819 result = (double)(arg1)->GetMJD();
18820
18821 wxPyEndAllowThreads(__tstate);
18822 if (PyErr_Occurred()) SWIG_fail;
18823 }
18824 resultobj = SWIG_FromDouble((double)result);
18825 return resultobj;
18826 fail:
18827 return NULL;
18828 }
18829
18830
18831 static PyObject *_wrap_DateTime_GetRataDie(PyObject *self, PyObject *args, PyObject *kwargs) {
18832 PyObject *resultobj;
18833 wxDateTime *arg1 = (wxDateTime *) 0 ;
18834 double result;
18835 PyObject * obj0 = 0 ;
18836 char *kwnames[] = {
18837 (char *) "self", NULL
18838 };
18839
18840 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetRataDie",kwnames,&obj0)) goto fail;
18841 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18842 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18843 {
18844 PyThreadState* __tstate = wxPyBeginAllowThreads();
18845 result = (double)(arg1)->GetRataDie();
18846
18847 wxPyEndAllowThreads(__tstate);
18848 if (PyErr_Occurred()) SWIG_fail;
18849 }
18850 resultobj = SWIG_FromDouble((double)result);
18851 return resultobj;
18852 fail:
18853 return NULL;
18854 }
18855
18856
18857 static PyObject *_wrap_DateTime_ToTimezone(PyObject *self, PyObject *args, PyObject *kwargs) {
18858 PyObject *resultobj;
18859 wxDateTime *arg1 = (wxDateTime *) 0 ;
18860 wxDateTime::TimeZone *arg2 = 0 ;
18861 bool arg3 = (bool) False ;
18862 wxDateTime result;
18863 bool temp2 = False ;
18864 PyObject * obj0 = 0 ;
18865 PyObject * obj1 = 0 ;
18866 PyObject * obj2 = 0 ;
18867 char *kwnames[] = {
18868 (char *) "self",(char *) "tz",(char *) "noDST", NULL
18869 };
18870
18871 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_ToTimezone",kwnames,&obj0,&obj1,&obj2)) goto fail;
18872 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18873 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18874 {
18875 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
18876 temp2 = True;
18877 }
18878 if (obj2) {
18879 arg3 = (bool) SWIG_AsBool(obj2);
18880 if (PyErr_Occurred()) SWIG_fail;
18881 }
18882 {
18883 PyThreadState* __tstate = wxPyBeginAllowThreads();
18884 result = (arg1)->ToTimezone((wxDateTime::TimeZone const &)*arg2,arg3);
18885
18886 wxPyEndAllowThreads(__tstate);
18887 if (PyErr_Occurred()) SWIG_fail;
18888 }
18889 {
18890 wxDateTime * resultptr;
18891 resultptr = new wxDateTime((wxDateTime &) result);
18892 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18893 }
18894 {
18895 if (temp2) delete arg2;
18896 }
18897 return resultobj;
18898 fail:
18899 {
18900 if (temp2) delete arg2;
18901 }
18902 return NULL;
18903 }
18904
18905
18906 static PyObject *_wrap_DateTime_MakeTimezone(PyObject *self, PyObject *args, PyObject *kwargs) {
18907 PyObject *resultobj;
18908 wxDateTime *arg1 = (wxDateTime *) 0 ;
18909 wxDateTime::TimeZone *arg2 = 0 ;
18910 bool arg3 = (bool) False ;
18911 wxDateTime *result;
18912 bool temp2 = False ;
18913 PyObject * obj0 = 0 ;
18914 PyObject * obj1 = 0 ;
18915 PyObject * obj2 = 0 ;
18916 char *kwnames[] = {
18917 (char *) "self",(char *) "tz",(char *) "noDST", NULL
18918 };
18919
18920 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_MakeTimezone",kwnames,&obj0,&obj1,&obj2)) goto fail;
18921 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18922 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18923 {
18924 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
18925 temp2 = True;
18926 }
18927 if (obj2) {
18928 arg3 = (bool) SWIG_AsBool(obj2);
18929 if (PyErr_Occurred()) SWIG_fail;
18930 }
18931 {
18932 PyThreadState* __tstate = wxPyBeginAllowThreads();
18933 {
18934 wxDateTime &_result_ref = (arg1)->MakeTimezone((wxDateTime::TimeZone const &)*arg2,arg3);
18935 result = (wxDateTime *) &_result_ref;
18936 }
18937
18938 wxPyEndAllowThreads(__tstate);
18939 if (PyErr_Occurred()) SWIG_fail;
18940 }
18941 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18942 {
18943 if (temp2) delete arg2;
18944 }
18945 return resultobj;
18946 fail:
18947 {
18948 if (temp2) delete arg2;
18949 }
18950 return NULL;
18951 }
18952
18953
18954 static PyObject *_wrap_DateTime_ToGMT(PyObject *self, PyObject *args, PyObject *kwargs) {
18955 PyObject *resultobj;
18956 wxDateTime *arg1 = (wxDateTime *) 0 ;
18957 bool arg2 = (bool) False ;
18958 wxDateTime result;
18959 PyObject * obj0 = 0 ;
18960 PyObject * obj1 = 0 ;
18961 char *kwnames[] = {
18962 (char *) "self",(char *) "noDST", NULL
18963 };
18964
18965 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_ToGMT",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 arg2 = (bool) SWIG_AsBool(obj1);
18970 if (PyErr_Occurred()) SWIG_fail;
18971 }
18972 {
18973 PyThreadState* __tstate = wxPyBeginAllowThreads();
18974 result = (arg1)->ToGMT(arg2);
18975
18976 wxPyEndAllowThreads(__tstate);
18977 if (PyErr_Occurred()) SWIG_fail;
18978 }
18979 {
18980 wxDateTime * resultptr;
18981 resultptr = new wxDateTime((wxDateTime &) result);
18982 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18983 }
18984 return resultobj;
18985 fail:
18986 return NULL;
18987 }
18988
18989
18990 static PyObject *_wrap_DateTime_MakeGMT(PyObject *self, PyObject *args, PyObject *kwargs) {
18991 PyObject *resultobj;
18992 wxDateTime *arg1 = (wxDateTime *) 0 ;
18993 bool arg2 = (bool) False ;
18994 wxDateTime *result;
18995 PyObject * obj0 = 0 ;
18996 PyObject * obj1 = 0 ;
18997 char *kwnames[] = {
18998 (char *) "self",(char *) "noDST", NULL
18999 };
19000
19001 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_MakeGMT",kwnames,&obj0,&obj1)) goto fail;
19002 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19003 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19004 if (obj1) {
19005 arg2 = (bool) SWIG_AsBool(obj1);
19006 if (PyErr_Occurred()) SWIG_fail;
19007 }
19008 {
19009 PyThreadState* __tstate = wxPyBeginAllowThreads();
19010 {
19011 wxDateTime &_result_ref = (arg1)->MakeGMT(arg2);
19012 result = (wxDateTime *) &_result_ref;
19013 }
19014
19015 wxPyEndAllowThreads(__tstate);
19016 if (PyErr_Occurred()) SWIG_fail;
19017 }
19018 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
19019 return resultobj;
19020 fail:
19021 return NULL;
19022 }
19023
19024
19025 static PyObject *_wrap_DateTime_IsDST(PyObject *self, PyObject *args, PyObject *kwargs) {
19026 PyObject *resultobj;
19027 wxDateTime *arg1 = (wxDateTime *) 0 ;
19028 int arg2 = (int) wxDateTime::Country_Default ;
19029 int result;
19030 PyObject * obj0 = 0 ;
19031 PyObject * obj1 = 0 ;
19032 char *kwnames[] = {
19033 (char *) "self",(char *) "country", NULL
19034 };
19035
19036 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_IsDST",kwnames,&obj0,&obj1)) goto fail;
19037 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19038 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19039 if (obj1) {
19040 arg2 = (wxDateTime::Country) SWIG_AsInt(obj1);
19041 if (PyErr_Occurred()) SWIG_fail;
19042 }
19043 {
19044 PyThreadState* __tstate = wxPyBeginAllowThreads();
19045 result = (int)(arg1)->IsDST((wxDateTime::Country )arg2);
19046
19047 wxPyEndAllowThreads(__tstate);
19048 if (PyErr_Occurred()) SWIG_fail;
19049 }
19050 resultobj = SWIG_FromInt((int)result);
19051 return resultobj;
19052 fail:
19053 return NULL;
19054 }
19055
19056
19057 static PyObject *_wrap_DateTime_IsValid(PyObject *self, PyObject *args, PyObject *kwargs) {
19058 PyObject *resultobj;
19059 wxDateTime *arg1 = (wxDateTime *) 0 ;
19060 bool result;
19061 PyObject * obj0 = 0 ;
19062 char *kwnames[] = {
19063 (char *) "self", NULL
19064 };
19065
19066 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_IsValid",kwnames,&obj0)) goto fail;
19067 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19068 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19069 {
19070 PyThreadState* __tstate = wxPyBeginAllowThreads();
19071 result = (bool)((wxDateTime const *)arg1)->IsValid();
19072
19073 wxPyEndAllowThreads(__tstate);
19074 if (PyErr_Occurred()) SWIG_fail;
19075 }
19076 {
19077 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19078 }
19079 return resultobj;
19080 fail:
19081 return NULL;
19082 }
19083
19084
19085 static PyObject *_wrap_DateTime_GetTicks(PyObject *self, PyObject *args, PyObject *kwargs) {
19086 PyObject *resultobj;
19087 wxDateTime *arg1 = (wxDateTime *) 0 ;
19088 time_t result;
19089 PyObject * obj0 = 0 ;
19090 char *kwnames[] = {
19091 (char *) "self", NULL
19092 };
19093
19094 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetTicks",kwnames,&obj0)) goto fail;
19095 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19096 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19097 {
19098 PyThreadState* __tstate = wxPyBeginAllowThreads();
19099 result = (time_t)((wxDateTime const *)arg1)->GetTicks();
19100
19101 wxPyEndAllowThreads(__tstate);
19102 if (PyErr_Occurred()) SWIG_fail;
19103 }
19104 resultobj = SWIG_FromUnsignedInt((unsigned int)result);
19105 return resultobj;
19106 fail:
19107 return NULL;
19108 }
19109
19110
19111 static PyObject *_wrap_DateTime_GetYear(PyObject *self, PyObject *args, PyObject *kwargs) {
19112 PyObject *resultobj;
19113 wxDateTime *arg1 = (wxDateTime *) 0 ;
19114 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19115 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19116 int result;
19117 bool temp2 = False ;
19118 PyObject * obj0 = 0 ;
19119 PyObject * obj1 = 0 ;
19120 char *kwnames[] = {
19121 (char *) "self",(char *) "tz", NULL
19122 };
19123
19124 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetYear",kwnames,&obj0,&obj1)) goto fail;
19125 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19126 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19127 if (obj1) {
19128 {
19129 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19130 temp2 = True;
19131 }
19132 }
19133 {
19134 PyThreadState* __tstate = wxPyBeginAllowThreads();
19135 result = (int)((wxDateTime const *)arg1)->GetYear((wxDateTime::TimeZone const &)*arg2);
19136
19137 wxPyEndAllowThreads(__tstate);
19138 if (PyErr_Occurred()) SWIG_fail;
19139 }
19140 resultobj = SWIG_FromInt((int)result);
19141 {
19142 if (temp2) delete arg2;
19143 }
19144 return resultobj;
19145 fail:
19146 {
19147 if (temp2) delete arg2;
19148 }
19149 return NULL;
19150 }
19151
19152
19153 static PyObject *_wrap_DateTime_GetMonth(PyObject *self, PyObject *args, PyObject *kwargs) {
19154 PyObject *resultobj;
19155 wxDateTime *arg1 = (wxDateTime *) 0 ;
19156 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19157 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19158 int result;
19159 bool temp2 = False ;
19160 PyObject * obj0 = 0 ;
19161 PyObject * obj1 = 0 ;
19162 char *kwnames[] = {
19163 (char *) "self",(char *) "tz", NULL
19164 };
19165
19166 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMonth",kwnames,&obj0,&obj1)) goto fail;
19167 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19168 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19169 if (obj1) {
19170 {
19171 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19172 temp2 = True;
19173 }
19174 }
19175 {
19176 PyThreadState* __tstate = wxPyBeginAllowThreads();
19177 result = (int)((wxDateTime const *)arg1)->GetMonth((wxDateTime::TimeZone const &)*arg2);
19178
19179 wxPyEndAllowThreads(__tstate);
19180 if (PyErr_Occurred()) SWIG_fail;
19181 }
19182 resultobj = SWIG_FromInt((int)result);
19183 {
19184 if (temp2) delete arg2;
19185 }
19186 return resultobj;
19187 fail:
19188 {
19189 if (temp2) delete arg2;
19190 }
19191 return NULL;
19192 }
19193
19194
19195 static PyObject *_wrap_DateTime_GetDay(PyObject *self, PyObject *args, PyObject *kwargs) {
19196 PyObject *resultobj;
19197 wxDateTime *arg1 = (wxDateTime *) 0 ;
19198 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19199 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19200 int result;
19201 bool temp2 = False ;
19202 PyObject * obj0 = 0 ;
19203 PyObject * obj1 = 0 ;
19204 char *kwnames[] = {
19205 (char *) "self",(char *) "tz", NULL
19206 };
19207
19208 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetDay",kwnames,&obj0,&obj1)) goto fail;
19209 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19210 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19211 if (obj1) {
19212 {
19213 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19214 temp2 = True;
19215 }
19216 }
19217 {
19218 PyThreadState* __tstate = wxPyBeginAllowThreads();
19219 result = (int)((wxDateTime const *)arg1)->GetDay((wxDateTime::TimeZone const &)*arg2);
19220
19221 wxPyEndAllowThreads(__tstate);
19222 if (PyErr_Occurred()) SWIG_fail;
19223 }
19224 resultobj = SWIG_FromInt((int)result);
19225 {
19226 if (temp2) delete arg2;
19227 }
19228 return resultobj;
19229 fail:
19230 {
19231 if (temp2) delete arg2;
19232 }
19233 return NULL;
19234 }
19235
19236
19237 static PyObject *_wrap_DateTime_GetWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
19238 PyObject *resultobj;
19239 wxDateTime *arg1 = (wxDateTime *) 0 ;
19240 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19241 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19242 int result;
19243 bool temp2 = False ;
19244 PyObject * obj0 = 0 ;
19245 PyObject * obj1 = 0 ;
19246 char *kwnames[] = {
19247 (char *) "self",(char *) "tz", NULL
19248 };
19249
19250 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetWeekDay",kwnames,&obj0,&obj1)) goto fail;
19251 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19252 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19253 if (obj1) {
19254 {
19255 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19256 temp2 = True;
19257 }
19258 }
19259 {
19260 PyThreadState* __tstate = wxPyBeginAllowThreads();
19261 result = (int)((wxDateTime const *)arg1)->GetWeekDay((wxDateTime::TimeZone const &)*arg2);
19262
19263 wxPyEndAllowThreads(__tstate);
19264 if (PyErr_Occurred()) SWIG_fail;
19265 }
19266 resultobj = SWIG_FromInt((int)result);
19267 {
19268 if (temp2) delete arg2;
19269 }
19270 return resultobj;
19271 fail:
19272 {
19273 if (temp2) delete arg2;
19274 }
19275 return NULL;
19276 }
19277
19278
19279 static PyObject *_wrap_DateTime_GetHour(PyObject *self, PyObject *args, PyObject *kwargs) {
19280 PyObject *resultobj;
19281 wxDateTime *arg1 = (wxDateTime *) 0 ;
19282 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19283 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19284 int result;
19285 bool temp2 = False ;
19286 PyObject * obj0 = 0 ;
19287 PyObject * obj1 = 0 ;
19288 char *kwnames[] = {
19289 (char *) "self",(char *) "tz", NULL
19290 };
19291
19292 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetHour",kwnames,&obj0,&obj1)) goto fail;
19293 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19294 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19295 if (obj1) {
19296 {
19297 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19298 temp2 = True;
19299 }
19300 }
19301 {
19302 PyThreadState* __tstate = wxPyBeginAllowThreads();
19303 result = (int)((wxDateTime const *)arg1)->GetHour((wxDateTime::TimeZone const &)*arg2);
19304
19305 wxPyEndAllowThreads(__tstate);
19306 if (PyErr_Occurred()) SWIG_fail;
19307 }
19308 resultobj = SWIG_FromInt((int)result);
19309 {
19310 if (temp2) delete arg2;
19311 }
19312 return resultobj;
19313 fail:
19314 {
19315 if (temp2) delete arg2;
19316 }
19317 return NULL;
19318 }
19319
19320
19321 static PyObject *_wrap_DateTime_GetMinute(PyObject *self, PyObject *args, PyObject *kwargs) {
19322 PyObject *resultobj;
19323 wxDateTime *arg1 = (wxDateTime *) 0 ;
19324 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19325 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19326 int result;
19327 bool temp2 = False ;
19328 PyObject * obj0 = 0 ;
19329 PyObject * obj1 = 0 ;
19330 char *kwnames[] = {
19331 (char *) "self",(char *) "tz", NULL
19332 };
19333
19334 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMinute",kwnames,&obj0,&obj1)) goto fail;
19335 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19336 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19337 if (obj1) {
19338 {
19339 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19340 temp2 = True;
19341 }
19342 }
19343 {
19344 PyThreadState* __tstate = wxPyBeginAllowThreads();
19345 result = (int)((wxDateTime const *)arg1)->GetMinute((wxDateTime::TimeZone const &)*arg2);
19346
19347 wxPyEndAllowThreads(__tstate);
19348 if (PyErr_Occurred()) SWIG_fail;
19349 }
19350 resultobj = SWIG_FromInt((int)result);
19351 {
19352 if (temp2) delete arg2;
19353 }
19354 return resultobj;
19355 fail:
19356 {
19357 if (temp2) delete arg2;
19358 }
19359 return NULL;
19360 }
19361
19362
19363 static PyObject *_wrap_DateTime_GetSecond(PyObject *self, PyObject *args, PyObject *kwargs) {
19364 PyObject *resultobj;
19365 wxDateTime *arg1 = (wxDateTime *) 0 ;
19366 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19367 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19368 int result;
19369 bool temp2 = False ;
19370 PyObject * obj0 = 0 ;
19371 PyObject * obj1 = 0 ;
19372 char *kwnames[] = {
19373 (char *) "self",(char *) "tz", NULL
19374 };
19375
19376 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetSecond",kwnames,&obj0,&obj1)) goto fail;
19377 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19378 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19379 if (obj1) {
19380 {
19381 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19382 temp2 = True;
19383 }
19384 }
19385 {
19386 PyThreadState* __tstate = wxPyBeginAllowThreads();
19387 result = (int)((wxDateTime const *)arg1)->GetSecond((wxDateTime::TimeZone const &)*arg2);
19388
19389 wxPyEndAllowThreads(__tstate);
19390 if (PyErr_Occurred()) SWIG_fail;
19391 }
19392 resultobj = SWIG_FromInt((int)result);
19393 {
19394 if (temp2) delete arg2;
19395 }
19396 return resultobj;
19397 fail:
19398 {
19399 if (temp2) delete arg2;
19400 }
19401 return NULL;
19402 }
19403
19404
19405 static PyObject *_wrap_DateTime_GetMillisecond(PyObject *self, PyObject *args, PyObject *kwargs) {
19406 PyObject *resultobj;
19407 wxDateTime *arg1 = (wxDateTime *) 0 ;
19408 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19409 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19410 int result;
19411 bool temp2 = False ;
19412 PyObject * obj0 = 0 ;
19413 PyObject * obj1 = 0 ;
19414 char *kwnames[] = {
19415 (char *) "self",(char *) "tz", NULL
19416 };
19417
19418 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMillisecond",kwnames,&obj0,&obj1)) goto fail;
19419 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19420 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19421 if (obj1) {
19422 {
19423 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19424 temp2 = True;
19425 }
19426 }
19427 {
19428 PyThreadState* __tstate = wxPyBeginAllowThreads();
19429 result = (int)((wxDateTime const *)arg1)->GetMillisecond((wxDateTime::TimeZone const &)*arg2);
19430
19431 wxPyEndAllowThreads(__tstate);
19432 if (PyErr_Occurred()) SWIG_fail;
19433 }
19434 resultobj = SWIG_FromInt((int)result);
19435 {
19436 if (temp2) delete arg2;
19437 }
19438 return resultobj;
19439 fail:
19440 {
19441 if (temp2) delete arg2;
19442 }
19443 return NULL;
19444 }
19445
19446
19447 static PyObject *_wrap_DateTime_GetDayOfYear(PyObject *self, PyObject *args, PyObject *kwargs) {
19448 PyObject *resultobj;
19449 wxDateTime *arg1 = (wxDateTime *) 0 ;
19450 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19451 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19452 int result;
19453 bool temp2 = False ;
19454 PyObject * obj0 = 0 ;
19455 PyObject * obj1 = 0 ;
19456 char *kwnames[] = {
19457 (char *) "self",(char *) "tz", NULL
19458 };
19459
19460 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetDayOfYear",kwnames,&obj0,&obj1)) goto fail;
19461 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19462 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19463 if (obj1) {
19464 {
19465 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19466 temp2 = True;
19467 }
19468 }
19469 {
19470 PyThreadState* __tstate = wxPyBeginAllowThreads();
19471 result = (int)((wxDateTime const *)arg1)->GetDayOfYear((wxDateTime::TimeZone const &)*arg2);
19472
19473 wxPyEndAllowThreads(__tstate);
19474 if (PyErr_Occurred()) SWIG_fail;
19475 }
19476 resultobj = SWIG_FromInt((int)result);
19477 {
19478 if (temp2) delete arg2;
19479 }
19480 return resultobj;
19481 fail:
19482 {
19483 if (temp2) delete arg2;
19484 }
19485 return NULL;
19486 }
19487
19488
19489 static PyObject *_wrap_DateTime_GetWeekOfYear(PyObject *self, PyObject *args, PyObject *kwargs) {
19490 PyObject *resultobj;
19491 wxDateTime *arg1 = (wxDateTime *) 0 ;
19492 int arg2 = (int) wxDateTime::Monday_First ;
19493 wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ;
19494 wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ;
19495 int result;
19496 bool temp3 = False ;
19497 PyObject * obj0 = 0 ;
19498 PyObject * obj1 = 0 ;
19499 PyObject * obj2 = 0 ;
19500 char *kwnames[] = {
19501 (char *) "self",(char *) "flags",(char *) "tz", NULL
19502 };
19503
19504 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetWeekOfYear",kwnames,&obj0,&obj1,&obj2)) goto fail;
19505 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19506 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19507 if (obj1) {
19508 arg2 = (wxDateTime::WeekFlags) SWIG_AsInt(obj1);
19509 if (PyErr_Occurred()) SWIG_fail;
19510 }
19511 if (obj2) {
19512 {
19513 arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2));
19514 temp3 = True;
19515 }
19516 }
19517 {
19518 PyThreadState* __tstate = wxPyBeginAllowThreads();
19519 result = (int)((wxDateTime const *)arg1)->GetWeekOfYear((wxDateTime::WeekFlags )arg2,(wxDateTime::TimeZone const &)*arg3);
19520
19521 wxPyEndAllowThreads(__tstate);
19522 if (PyErr_Occurred()) SWIG_fail;
19523 }
19524 resultobj = SWIG_FromInt((int)result);
19525 {
19526 if (temp3) delete arg3;
19527 }
19528 return resultobj;
19529 fail:
19530 {
19531 if (temp3) delete arg3;
19532 }
19533 return NULL;
19534 }
19535
19536
19537 static PyObject *_wrap_DateTime_GetWeekOfMonth(PyObject *self, PyObject *args, PyObject *kwargs) {
19538 PyObject *resultobj;
19539 wxDateTime *arg1 = (wxDateTime *) 0 ;
19540 int arg2 = (int) wxDateTime::Monday_First ;
19541 wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ;
19542 wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ;
19543 int result;
19544 bool temp3 = False ;
19545 PyObject * obj0 = 0 ;
19546 PyObject * obj1 = 0 ;
19547 PyObject * obj2 = 0 ;
19548 char *kwnames[] = {
19549 (char *) "self",(char *) "flags",(char *) "tz", NULL
19550 };
19551
19552 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetWeekOfMonth",kwnames,&obj0,&obj1,&obj2)) goto fail;
19553 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19554 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19555 if (obj1) {
19556 arg2 = (wxDateTime::WeekFlags) SWIG_AsInt(obj1);
19557 if (PyErr_Occurred()) SWIG_fail;
19558 }
19559 if (obj2) {
19560 {
19561 arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2));
19562 temp3 = True;
19563 }
19564 }
19565 {
19566 PyThreadState* __tstate = wxPyBeginAllowThreads();
19567 result = (int)((wxDateTime const *)arg1)->GetWeekOfMonth((wxDateTime::WeekFlags )arg2,(wxDateTime::TimeZone const &)*arg3);
19568
19569 wxPyEndAllowThreads(__tstate);
19570 if (PyErr_Occurred()) SWIG_fail;
19571 }
19572 resultobj = SWIG_FromInt((int)result);
19573 {
19574 if (temp3) delete arg3;
19575 }
19576 return resultobj;
19577 fail:
19578 {
19579 if (temp3) delete arg3;
19580 }
19581 return NULL;
19582 }
19583
19584
19585 static PyObject *_wrap_DateTime_IsWorkDay(PyObject *self, PyObject *args, PyObject *kwargs) {
19586 PyObject *resultobj;
19587 wxDateTime *arg1 = (wxDateTime *) 0 ;
19588 int arg2 = (int) wxDateTime::Country_Default ;
19589 bool result;
19590 PyObject * obj0 = 0 ;
19591 PyObject * obj1 = 0 ;
19592 char *kwnames[] = {
19593 (char *) "self",(char *) "country", NULL
19594 };
19595
19596 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_IsWorkDay",kwnames,&obj0,&obj1)) goto fail;
19597 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19598 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19599 if (obj1) {
19600 arg2 = (wxDateTime::Country) SWIG_AsInt(obj1);
19601 if (PyErr_Occurred()) SWIG_fail;
19602 }
19603 {
19604 PyThreadState* __tstate = wxPyBeginAllowThreads();
19605 result = (bool)((wxDateTime const *)arg1)->IsWorkDay((wxDateTime::Country )arg2);
19606
19607 wxPyEndAllowThreads(__tstate);
19608 if (PyErr_Occurred()) SWIG_fail;
19609 }
19610 {
19611 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19612 }
19613 return resultobj;
19614 fail:
19615 return NULL;
19616 }
19617
19618
19619 static PyObject *_wrap_DateTime_IsEqualTo(PyObject *self, PyObject *args, PyObject *kwargs) {
19620 PyObject *resultobj;
19621 wxDateTime *arg1 = (wxDateTime *) 0 ;
19622 wxDateTime *arg2 = 0 ;
19623 bool result;
19624 PyObject * obj0 = 0 ;
19625 PyObject * obj1 = 0 ;
19626 char *kwnames[] = {
19627 (char *) "self",(char *) "datetime", NULL
19628 };
19629
19630 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsEqualTo",kwnames,&obj0,&obj1)) 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 {
19641 PyThreadState* __tstate = wxPyBeginAllowThreads();
19642 result = (bool)((wxDateTime const *)arg1)->IsEqualTo((wxDateTime const &)*arg2);
19643
19644 wxPyEndAllowThreads(__tstate);
19645 if (PyErr_Occurred()) SWIG_fail;
19646 }
19647 {
19648 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19649 }
19650 return resultobj;
19651 fail:
19652 return NULL;
19653 }
19654
19655
19656 static PyObject *_wrap_DateTime_IsEarlierThan(PyObject *self, PyObject *args, PyObject *kwargs) {
19657 PyObject *resultobj;
19658 wxDateTime *arg1 = (wxDateTime *) 0 ;
19659 wxDateTime *arg2 = 0 ;
19660 bool result;
19661 PyObject * obj0 = 0 ;
19662 PyObject * obj1 = 0 ;
19663 char *kwnames[] = {
19664 (char *) "self",(char *) "datetime", NULL
19665 };
19666
19667 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsEarlierThan",kwnames,&obj0,&obj1)) goto fail;
19668 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19669 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19670 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19671 SWIG_POINTER_EXCEPTION | 0)) == -1)
19672 SWIG_fail;
19673 if (arg2 == NULL) {
19674 PyErr_SetString(PyExc_TypeError,"null reference");
19675 SWIG_fail;
19676 }
19677 {
19678 PyThreadState* __tstate = wxPyBeginAllowThreads();
19679 result = (bool)((wxDateTime const *)arg1)->IsEarlierThan((wxDateTime const &)*arg2);
19680
19681 wxPyEndAllowThreads(__tstate);
19682 if (PyErr_Occurred()) SWIG_fail;
19683 }
19684 {
19685 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19686 }
19687 return resultobj;
19688 fail:
19689 return NULL;
19690 }
19691
19692
19693 static PyObject *_wrap_DateTime_IsLaterThan(PyObject *self, PyObject *args, PyObject *kwargs) {
19694 PyObject *resultobj;
19695 wxDateTime *arg1 = (wxDateTime *) 0 ;
19696 wxDateTime *arg2 = 0 ;
19697 bool result;
19698 PyObject * obj0 = 0 ;
19699 PyObject * obj1 = 0 ;
19700 char *kwnames[] = {
19701 (char *) "self",(char *) "datetime", NULL
19702 };
19703
19704 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsLaterThan",kwnames,&obj0,&obj1)) goto fail;
19705 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19706 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19707 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19708 SWIG_POINTER_EXCEPTION | 0)) == -1)
19709 SWIG_fail;
19710 if (arg2 == NULL) {
19711 PyErr_SetString(PyExc_TypeError,"null reference");
19712 SWIG_fail;
19713 }
19714 {
19715 PyThreadState* __tstate = wxPyBeginAllowThreads();
19716 result = (bool)((wxDateTime const *)arg1)->IsLaterThan((wxDateTime const &)*arg2);
19717
19718 wxPyEndAllowThreads(__tstate);
19719 if (PyErr_Occurred()) SWIG_fail;
19720 }
19721 {
19722 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19723 }
19724 return resultobj;
19725 fail:
19726 return NULL;
19727 }
19728
19729
19730 static PyObject *_wrap_DateTime_IsStrictlyBetween(PyObject *self, PyObject *args, PyObject *kwargs) {
19731 PyObject *resultobj;
19732 wxDateTime *arg1 = (wxDateTime *) 0 ;
19733 wxDateTime *arg2 = 0 ;
19734 wxDateTime *arg3 = 0 ;
19735 bool result;
19736 PyObject * obj0 = 0 ;
19737 PyObject * obj1 = 0 ;
19738 PyObject * obj2 = 0 ;
19739 char *kwnames[] = {
19740 (char *) "self",(char *) "t1",(char *) "t2", NULL
19741 };
19742
19743 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsStrictlyBetween",kwnames,&obj0,&obj1,&obj2)) goto fail;
19744 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19745 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19746 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19747 SWIG_POINTER_EXCEPTION | 0)) == -1)
19748 SWIG_fail;
19749 if (arg2 == NULL) {
19750 PyErr_SetString(PyExc_TypeError,"null reference");
19751 SWIG_fail;
19752 }
19753 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDateTime,
19754 SWIG_POINTER_EXCEPTION | 0)) == -1)
19755 SWIG_fail;
19756 if (arg3 == NULL) {
19757 PyErr_SetString(PyExc_TypeError,"null reference");
19758 SWIG_fail;
19759 }
19760 {
19761 PyThreadState* __tstate = wxPyBeginAllowThreads();
19762 result = (bool)((wxDateTime const *)arg1)->IsStrictlyBetween((wxDateTime const &)*arg2,(wxDateTime const &)*arg3);
19763
19764 wxPyEndAllowThreads(__tstate);
19765 if (PyErr_Occurred()) SWIG_fail;
19766 }
19767 {
19768 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19769 }
19770 return resultobj;
19771 fail:
19772 return NULL;
19773 }
19774
19775
19776 static PyObject *_wrap_DateTime_IsBetween(PyObject *self, PyObject *args, PyObject *kwargs) {
19777 PyObject *resultobj;
19778 wxDateTime *arg1 = (wxDateTime *) 0 ;
19779 wxDateTime *arg2 = 0 ;
19780 wxDateTime *arg3 = 0 ;
19781 bool result;
19782 PyObject * obj0 = 0 ;
19783 PyObject * obj1 = 0 ;
19784 PyObject * obj2 = 0 ;
19785 char *kwnames[] = {
19786 (char *) "self",(char *) "t1",(char *) "t2", NULL
19787 };
19788
19789 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsBetween",kwnames,&obj0,&obj1,&obj2)) goto fail;
19790 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19791 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19792 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19793 SWIG_POINTER_EXCEPTION | 0)) == -1)
19794 SWIG_fail;
19795 if (arg2 == NULL) {
19796 PyErr_SetString(PyExc_TypeError,"null reference");
19797 SWIG_fail;
19798 }
19799 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDateTime,
19800 SWIG_POINTER_EXCEPTION | 0)) == -1)
19801 SWIG_fail;
19802 if (arg3 == NULL) {
19803 PyErr_SetString(PyExc_TypeError,"null reference");
19804 SWIG_fail;
19805 }
19806 {
19807 PyThreadState* __tstate = wxPyBeginAllowThreads();
19808 result = (bool)((wxDateTime const *)arg1)->IsBetween((wxDateTime const &)*arg2,(wxDateTime const &)*arg3);
19809
19810 wxPyEndAllowThreads(__tstate);
19811 if (PyErr_Occurred()) SWIG_fail;
19812 }
19813 {
19814 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19815 }
19816 return resultobj;
19817 fail:
19818 return NULL;
19819 }
19820
19821
19822 static PyObject *_wrap_DateTime_IsSameDate(PyObject *self, PyObject *args, PyObject *kwargs) {
19823 PyObject *resultobj;
19824 wxDateTime *arg1 = (wxDateTime *) 0 ;
19825 wxDateTime *arg2 = 0 ;
19826 bool result;
19827 PyObject * obj0 = 0 ;
19828 PyObject * obj1 = 0 ;
19829 char *kwnames[] = {
19830 (char *) "self",(char *) "dt", NULL
19831 };
19832
19833 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsSameDate",kwnames,&obj0,&obj1)) goto fail;
19834 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19835 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19836 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19837 SWIG_POINTER_EXCEPTION | 0)) == -1)
19838 SWIG_fail;
19839 if (arg2 == NULL) {
19840 PyErr_SetString(PyExc_TypeError,"null reference");
19841 SWIG_fail;
19842 }
19843 {
19844 PyThreadState* __tstate = wxPyBeginAllowThreads();
19845 result = (bool)((wxDateTime const *)arg1)->IsSameDate((wxDateTime const &)*arg2);
19846
19847 wxPyEndAllowThreads(__tstate);
19848 if (PyErr_Occurred()) SWIG_fail;
19849 }
19850 {
19851 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19852 }
19853 return resultobj;
19854 fail:
19855 return NULL;
19856 }
19857
19858
19859 static PyObject *_wrap_DateTime_IsSameTime(PyObject *self, PyObject *args, PyObject *kwargs) {
19860 PyObject *resultobj;
19861 wxDateTime *arg1 = (wxDateTime *) 0 ;
19862 wxDateTime *arg2 = 0 ;
19863 bool result;
19864 PyObject * obj0 = 0 ;
19865 PyObject * obj1 = 0 ;
19866 char *kwnames[] = {
19867 (char *) "self",(char *) "dt", NULL
19868 };
19869
19870 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsSameTime",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_wxDateTime,
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 result = (bool)((wxDateTime const *)arg1)->IsSameTime((wxDateTime const &)*arg2);
19883
19884 wxPyEndAllowThreads(__tstate);
19885 if (PyErr_Occurred()) SWIG_fail;
19886 }
19887 {
19888 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19889 }
19890 return resultobj;
19891 fail:
19892 return NULL;
19893 }
19894
19895
19896 static PyObject *_wrap_DateTime_IsEqualUpTo(PyObject *self, PyObject *args, PyObject *kwargs) {
19897 PyObject *resultobj;
19898 wxDateTime *arg1 = (wxDateTime *) 0 ;
19899 wxDateTime *arg2 = 0 ;
19900 wxTimeSpan *arg3 = 0 ;
19901 bool result;
19902 PyObject * obj0 = 0 ;
19903 PyObject * obj1 = 0 ;
19904 PyObject * obj2 = 0 ;
19905 char *kwnames[] = {
19906 (char *) "self",(char *) "dt",(char *) "ts", NULL
19907 };
19908
19909 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsEqualUpTo",kwnames,&obj0,&obj1,&obj2)) goto fail;
19910 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19911 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19912 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19913 SWIG_POINTER_EXCEPTION | 0)) == -1)
19914 SWIG_fail;
19915 if (arg2 == NULL) {
19916 PyErr_SetString(PyExc_TypeError,"null reference");
19917 SWIG_fail;
19918 }
19919 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxTimeSpan,
19920 SWIG_POINTER_EXCEPTION | 0)) == -1)
19921 SWIG_fail;
19922 if (arg3 == NULL) {
19923 PyErr_SetString(PyExc_TypeError,"null reference");
19924 SWIG_fail;
19925 }
19926 {
19927 PyThreadState* __tstate = wxPyBeginAllowThreads();
19928 result = (bool)((wxDateTime const *)arg1)->IsEqualUpTo((wxDateTime const &)*arg2,(wxTimeSpan const &)*arg3);
19929
19930 wxPyEndAllowThreads(__tstate);
19931 if (PyErr_Occurred()) SWIG_fail;
19932 }
19933 {
19934 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19935 }
19936 return resultobj;
19937 fail:
19938 return NULL;
19939 }
19940
19941
19942 static PyObject *_wrap_DateTime_AddTS(PyObject *self, PyObject *args, PyObject *kwargs) {
19943 PyObject *resultobj;
19944 wxDateTime *arg1 = (wxDateTime *) 0 ;
19945 wxTimeSpan *arg2 = 0 ;
19946 wxDateTime *result;
19947 PyObject * obj0 = 0 ;
19948 PyObject * obj1 = 0 ;
19949 char *kwnames[] = {
19950 (char *) "self",(char *) "diff", NULL
19951 };
19952
19953 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_AddTS",kwnames,&obj0,&obj1)) goto fail;
19954 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19955 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19956 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
19957 SWIG_POINTER_EXCEPTION | 0)) == -1)
19958 SWIG_fail;
19959 if (arg2 == NULL) {
19960 PyErr_SetString(PyExc_TypeError,"null reference");
19961 SWIG_fail;
19962 }
19963 {
19964 PyThreadState* __tstate = wxPyBeginAllowThreads();
19965 {
19966 wxDateTime &_result_ref = (arg1)->Add((wxTimeSpan const &)*arg2);
19967 result = (wxDateTime *) &_result_ref;
19968 }
19969
19970 wxPyEndAllowThreads(__tstate);
19971 if (PyErr_Occurred()) SWIG_fail;
19972 }
19973 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
19974 return resultobj;
19975 fail:
19976 return NULL;
19977 }
19978
19979
19980 static PyObject *_wrap_DateTime_AddDS(PyObject *self, PyObject *args, PyObject *kwargs) {
19981 PyObject *resultobj;
19982 wxDateTime *arg1 = (wxDateTime *) 0 ;
19983 wxDateSpan *arg2 = 0 ;
19984 wxDateTime *result;
19985 PyObject * obj0 = 0 ;
19986 PyObject * obj1 = 0 ;
19987 char *kwnames[] = {
19988 (char *) "self",(char *) "diff", NULL
19989 };
19990
19991 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_AddDS",kwnames,&obj0,&obj1)) goto fail;
19992 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19993 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19994 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
19995 SWIG_POINTER_EXCEPTION | 0)) == -1)
19996 SWIG_fail;
19997 if (arg2 == NULL) {
19998 PyErr_SetString(PyExc_TypeError,"null reference");
19999 SWIG_fail;
20000 }
20001 {
20002 PyThreadState* __tstate = wxPyBeginAllowThreads();
20003 {
20004 wxDateTime &_result_ref = (arg1)->Add((wxDateSpan const &)*arg2);
20005 result = (wxDateTime *) &_result_ref;
20006 }
20007
20008 wxPyEndAllowThreads(__tstate);
20009 if (PyErr_Occurred()) SWIG_fail;
20010 }
20011 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
20012 return resultobj;
20013 fail:
20014 return NULL;
20015 }
20016
20017
20018 static PyObject *_wrap_DateTime_SubtractTS(PyObject *self, PyObject *args, PyObject *kwargs) {
20019 PyObject *resultobj;
20020 wxDateTime *arg1 = (wxDateTime *) 0 ;
20021 wxTimeSpan *arg2 = 0 ;
20022 wxDateTime *result;
20023 PyObject * obj0 = 0 ;
20024 PyObject * obj1 = 0 ;
20025 char *kwnames[] = {
20026 (char *) "self",(char *) "diff", NULL
20027 };
20028
20029 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SubtractTS",kwnames,&obj0,&obj1)) goto fail;
20030 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20031 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20032 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
20033 SWIG_POINTER_EXCEPTION | 0)) == -1)
20034 SWIG_fail;
20035 if (arg2 == NULL) {
20036 PyErr_SetString(PyExc_TypeError,"null reference");
20037 SWIG_fail;
20038 }
20039 {
20040 PyThreadState* __tstate = wxPyBeginAllowThreads();
20041 {
20042 wxDateTime &_result_ref = (arg1)->Subtract((wxTimeSpan const &)*arg2);
20043 result = (wxDateTime *) &_result_ref;
20044 }
20045
20046 wxPyEndAllowThreads(__tstate);
20047 if (PyErr_Occurred()) SWIG_fail;
20048 }
20049 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
20050 return resultobj;
20051 fail:
20052 return NULL;
20053 }
20054
20055
20056 static PyObject *_wrap_DateTime_SubtractDS(PyObject *self, PyObject *args, PyObject *kwargs) {
20057 PyObject *resultobj;
20058 wxDateTime *arg1 = (wxDateTime *) 0 ;
20059 wxDateSpan *arg2 = 0 ;
20060 wxDateTime *result;
20061 PyObject * obj0 = 0 ;
20062 PyObject * obj1 = 0 ;
20063 char *kwnames[] = {
20064 (char *) "self",(char *) "diff", NULL
20065 };
20066
20067 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SubtractDS",kwnames,&obj0,&obj1)) goto fail;
20068 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20069 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20070 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
20071 SWIG_POINTER_EXCEPTION | 0)) == -1)
20072 SWIG_fail;
20073 if (arg2 == NULL) {
20074 PyErr_SetString(PyExc_TypeError,"null reference");
20075 SWIG_fail;
20076 }
20077 {
20078 PyThreadState* __tstate = wxPyBeginAllowThreads();
20079 {
20080 wxDateTime &_result_ref = (arg1)->Subtract((wxDateSpan const &)*arg2);
20081 result = (wxDateTime *) &_result_ref;
20082 }
20083
20084 wxPyEndAllowThreads(__tstate);
20085 if (PyErr_Occurred()) SWIG_fail;
20086 }
20087 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
20088 return resultobj;
20089 fail:
20090 return NULL;
20091 }
20092
20093
20094 static PyObject *_wrap_DateTime_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) {
20095 PyObject *resultobj;
20096 wxDateTime *arg1 = (wxDateTime *) 0 ;
20097 wxDateTime *arg2 = 0 ;
20098 wxTimeSpan result;
20099 PyObject * obj0 = 0 ;
20100 PyObject * obj1 = 0 ;
20101 char *kwnames[] = {
20102 (char *) "self",(char *) "dt", NULL
20103 };
20104
20105 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_Subtract",kwnames,&obj0,&obj1)) goto fail;
20106 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20107 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20108 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20109 SWIG_POINTER_EXCEPTION | 0)) == -1)
20110 SWIG_fail;
20111 if (arg2 == NULL) {
20112 PyErr_SetString(PyExc_TypeError,"null reference");
20113 SWIG_fail;
20114 }
20115 {
20116 PyThreadState* __tstate = wxPyBeginAllowThreads();
20117 result = ((wxDateTime const *)arg1)->Subtract((wxDateTime const &)*arg2);
20118
20119 wxPyEndAllowThreads(__tstate);
20120 if (PyErr_Occurred()) SWIG_fail;
20121 }
20122 {
20123 wxTimeSpan * resultptr;
20124 resultptr = new wxTimeSpan((wxTimeSpan &) result);
20125 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
20126 }
20127 return resultobj;
20128 fail:
20129 return NULL;
20130 }
20131
20132
20133 static PyObject *_wrap_DateTime___iadd____SWIG_0(PyObject *self, PyObject *args) {
20134 PyObject *resultobj;
20135 wxDateTime *arg1 = (wxDateTime *) 0 ;
20136 wxTimeSpan *arg2 = 0 ;
20137 wxDateTime *result;
20138 PyObject * obj0 = 0 ;
20139 PyObject * obj1 = 0 ;
20140
20141 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___iadd__",&obj0,&obj1)) goto fail;
20142 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20143 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20144 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
20145 SWIG_POINTER_EXCEPTION | 0)) == -1)
20146 SWIG_fail;
20147 if (arg2 == NULL) {
20148 PyErr_SetString(PyExc_TypeError,"null reference");
20149 SWIG_fail;
20150 }
20151 {
20152 PyThreadState* __tstate = wxPyBeginAllowThreads();
20153 {
20154 wxDateTime &_result_ref = (arg1)->operator +=((wxTimeSpan const &)*arg2);
20155 result = (wxDateTime *) &_result_ref;
20156 }
20157
20158 wxPyEndAllowThreads(__tstate);
20159 if (PyErr_Occurred()) SWIG_fail;
20160 }
20161 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
20162 return resultobj;
20163 fail:
20164 return NULL;
20165 }
20166
20167
20168 static PyObject *_wrap_DateTime___iadd____SWIG_1(PyObject *self, PyObject *args) {
20169 PyObject *resultobj;
20170 wxDateTime *arg1 = (wxDateTime *) 0 ;
20171 wxDateSpan *arg2 = 0 ;
20172 wxDateTime *result;
20173 PyObject * obj0 = 0 ;
20174 PyObject * obj1 = 0 ;
20175
20176 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___iadd__",&obj0,&obj1)) goto fail;
20177 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20178 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20179 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
20180 SWIG_POINTER_EXCEPTION | 0)) == -1)
20181 SWIG_fail;
20182 if (arg2 == NULL) {
20183 PyErr_SetString(PyExc_TypeError,"null reference");
20184 SWIG_fail;
20185 }
20186 {
20187 PyThreadState* __tstate = wxPyBeginAllowThreads();
20188 {
20189 wxDateTime &_result_ref = (arg1)->operator +=((wxDateSpan const &)*arg2);
20190 result = (wxDateTime *) &_result_ref;
20191 }
20192
20193 wxPyEndAllowThreads(__tstate);
20194 if (PyErr_Occurred()) SWIG_fail;
20195 }
20196 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
20197 return resultobj;
20198 fail:
20199 return NULL;
20200 }
20201
20202
20203 static PyObject *_wrap_DateTime___iadd__(PyObject *self, PyObject *args) {
20204 int argc;
20205 PyObject *argv[3];
20206 int ii;
20207
20208 argc = PyObject_Length(args);
20209 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
20210 argv[ii] = PyTuple_GetItem(args,ii);
20211 }
20212 if (argc == 2) {
20213 int _v;
20214 {
20215 void *ptr;
20216 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20217 _v = 0;
20218 PyErr_Clear();
20219 } else {
20220 _v = 1;
20221 }
20222 }
20223 if (_v) {
20224 {
20225 void *ptr;
20226 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) {
20227 _v = 0;
20228 PyErr_Clear();
20229 } else {
20230 _v = 1;
20231 }
20232 }
20233 if (_v) {
20234 return _wrap_DateTime___iadd____SWIG_0(self,args);
20235 }
20236 }
20237 }
20238 if (argc == 2) {
20239 int _v;
20240 {
20241 void *ptr;
20242 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20243 _v = 0;
20244 PyErr_Clear();
20245 } else {
20246 _v = 1;
20247 }
20248 }
20249 if (_v) {
20250 {
20251 void *ptr;
20252 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) {
20253 _v = 0;
20254 PyErr_Clear();
20255 } else {
20256 _v = 1;
20257 }
20258 }
20259 if (_v) {
20260 return _wrap_DateTime___iadd____SWIG_1(self,args);
20261 }
20262 }
20263 }
20264
20265 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___iadd__'");
20266 return NULL;
20267 }
20268
20269
20270 static PyObject *_wrap_DateTime___isub____SWIG_0(PyObject *self, PyObject *args) {
20271 PyObject *resultobj;
20272 wxDateTime *arg1 = (wxDateTime *) 0 ;
20273 wxTimeSpan *arg2 = 0 ;
20274 wxDateTime *result;
20275 PyObject * obj0 = 0 ;
20276 PyObject * obj1 = 0 ;
20277
20278 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___isub__",&obj0,&obj1)) goto fail;
20279 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20280 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20281 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
20282 SWIG_POINTER_EXCEPTION | 0)) == -1)
20283 SWIG_fail;
20284 if (arg2 == NULL) {
20285 PyErr_SetString(PyExc_TypeError,"null reference");
20286 SWIG_fail;
20287 }
20288 {
20289 PyThreadState* __tstate = wxPyBeginAllowThreads();
20290 {
20291 wxDateTime &_result_ref = (arg1)->operator -=((wxTimeSpan const &)*arg2);
20292 result = (wxDateTime *) &_result_ref;
20293 }
20294
20295 wxPyEndAllowThreads(__tstate);
20296 if (PyErr_Occurred()) SWIG_fail;
20297 }
20298 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
20299 return resultobj;
20300 fail:
20301 return NULL;
20302 }
20303
20304
20305 static PyObject *_wrap_DateTime___isub____SWIG_1(PyObject *self, PyObject *args) {
20306 PyObject *resultobj;
20307 wxDateTime *arg1 = (wxDateTime *) 0 ;
20308 wxDateSpan *arg2 = 0 ;
20309 wxDateTime *result;
20310 PyObject * obj0 = 0 ;
20311 PyObject * obj1 = 0 ;
20312
20313 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___isub__",&obj0,&obj1)) goto fail;
20314 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20315 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20316 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
20317 SWIG_POINTER_EXCEPTION | 0)) == -1)
20318 SWIG_fail;
20319 if (arg2 == NULL) {
20320 PyErr_SetString(PyExc_TypeError,"null reference");
20321 SWIG_fail;
20322 }
20323 {
20324 PyThreadState* __tstate = wxPyBeginAllowThreads();
20325 {
20326 wxDateTime &_result_ref = (arg1)->operator -=((wxDateSpan const &)*arg2);
20327 result = (wxDateTime *) &_result_ref;
20328 }
20329
20330 wxPyEndAllowThreads(__tstate);
20331 if (PyErr_Occurred()) SWIG_fail;
20332 }
20333 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
20334 return resultobj;
20335 fail:
20336 return NULL;
20337 }
20338
20339
20340 static PyObject *_wrap_DateTime___isub__(PyObject *self, PyObject *args) {
20341 int argc;
20342 PyObject *argv[3];
20343 int ii;
20344
20345 argc = PyObject_Length(args);
20346 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
20347 argv[ii] = PyTuple_GetItem(args,ii);
20348 }
20349 if (argc == 2) {
20350 int _v;
20351 {
20352 void *ptr;
20353 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20354 _v = 0;
20355 PyErr_Clear();
20356 } else {
20357 _v = 1;
20358 }
20359 }
20360 if (_v) {
20361 {
20362 void *ptr;
20363 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) {
20364 _v = 0;
20365 PyErr_Clear();
20366 } else {
20367 _v = 1;
20368 }
20369 }
20370 if (_v) {
20371 return _wrap_DateTime___isub____SWIG_0(self,args);
20372 }
20373 }
20374 }
20375 if (argc == 2) {
20376 int _v;
20377 {
20378 void *ptr;
20379 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20380 _v = 0;
20381 PyErr_Clear();
20382 } else {
20383 _v = 1;
20384 }
20385 }
20386 if (_v) {
20387 {
20388 void *ptr;
20389 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) {
20390 _v = 0;
20391 PyErr_Clear();
20392 } else {
20393 _v = 1;
20394 }
20395 }
20396 if (_v) {
20397 return _wrap_DateTime___isub____SWIG_1(self,args);
20398 }
20399 }
20400 }
20401
20402 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___isub__'");
20403 return NULL;
20404 }
20405
20406
20407 static PyObject *_wrap_DateTime___add____SWIG_0(PyObject *self, PyObject *args) {
20408 PyObject *resultobj;
20409 wxDateTime *arg1 = (wxDateTime *) 0 ;
20410 wxTimeSpan *arg2 = 0 ;
20411 wxDateTime result;
20412 PyObject * obj0 = 0 ;
20413 PyObject * obj1 = 0 ;
20414
20415 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___add__",&obj0,&obj1)) goto fail;
20416 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20417 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20418 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
20419 SWIG_POINTER_EXCEPTION | 0)) == -1)
20420 SWIG_fail;
20421 if (arg2 == NULL) {
20422 PyErr_SetString(PyExc_TypeError,"null reference");
20423 SWIG_fail;
20424 }
20425 {
20426 PyThreadState* __tstate = wxPyBeginAllowThreads();
20427 result = wxDateTime___add____SWIG_0(arg1,(wxTimeSpan const &)*arg2);
20428
20429 wxPyEndAllowThreads(__tstate);
20430 if (PyErr_Occurred()) SWIG_fail;
20431 }
20432 {
20433 wxDateTime * resultptr;
20434 resultptr = new wxDateTime((wxDateTime &) result);
20435 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
20436 }
20437 return resultobj;
20438 fail:
20439 return NULL;
20440 }
20441
20442
20443 static PyObject *_wrap_DateTime___add____SWIG_1(PyObject *self, PyObject *args) {
20444 PyObject *resultobj;
20445 wxDateTime *arg1 = (wxDateTime *) 0 ;
20446 wxDateSpan *arg2 = 0 ;
20447 wxDateTime result;
20448 PyObject * obj0 = 0 ;
20449 PyObject * obj1 = 0 ;
20450
20451 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___add__",&obj0,&obj1)) goto fail;
20452 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20453 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20454 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
20455 SWIG_POINTER_EXCEPTION | 0)) == -1)
20456 SWIG_fail;
20457 if (arg2 == NULL) {
20458 PyErr_SetString(PyExc_TypeError,"null reference");
20459 SWIG_fail;
20460 }
20461 {
20462 PyThreadState* __tstate = wxPyBeginAllowThreads();
20463 result = wxDateTime___add____SWIG_1(arg1,(wxDateSpan const &)*arg2);
20464
20465 wxPyEndAllowThreads(__tstate);
20466 if (PyErr_Occurred()) SWIG_fail;
20467 }
20468 {
20469 wxDateTime * resultptr;
20470 resultptr = new wxDateTime((wxDateTime &) result);
20471 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
20472 }
20473 return resultobj;
20474 fail:
20475 return NULL;
20476 }
20477
20478
20479 static PyObject *_wrap_DateTime___add__(PyObject *self, PyObject *args) {
20480 int argc;
20481 PyObject *argv[3];
20482 int ii;
20483
20484 argc = PyObject_Length(args);
20485 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
20486 argv[ii] = PyTuple_GetItem(args,ii);
20487 }
20488 if (argc == 2) {
20489 int _v;
20490 {
20491 void *ptr;
20492 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20493 _v = 0;
20494 PyErr_Clear();
20495 } else {
20496 _v = 1;
20497 }
20498 }
20499 if (_v) {
20500 {
20501 void *ptr;
20502 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) {
20503 _v = 0;
20504 PyErr_Clear();
20505 } else {
20506 _v = 1;
20507 }
20508 }
20509 if (_v) {
20510 return _wrap_DateTime___add____SWIG_0(self,args);
20511 }
20512 }
20513 }
20514 if (argc == 2) {
20515 int _v;
20516 {
20517 void *ptr;
20518 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20519 _v = 0;
20520 PyErr_Clear();
20521 } else {
20522 _v = 1;
20523 }
20524 }
20525 if (_v) {
20526 {
20527 void *ptr;
20528 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) {
20529 _v = 0;
20530 PyErr_Clear();
20531 } else {
20532 _v = 1;
20533 }
20534 }
20535 if (_v) {
20536 return _wrap_DateTime___add____SWIG_1(self,args);
20537 }
20538 }
20539 }
20540
20541 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___add__'");
20542 return NULL;
20543 }
20544
20545
20546 static PyObject *_wrap_DateTime___sub____SWIG_0(PyObject *self, PyObject *args) {
20547 PyObject *resultobj;
20548 wxDateTime *arg1 = (wxDateTime *) 0 ;
20549 wxDateTime *arg2 = 0 ;
20550 wxTimeSpan result;
20551 PyObject * obj0 = 0 ;
20552 PyObject * obj1 = 0 ;
20553
20554 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail;
20555 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20556 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20557 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20558 SWIG_POINTER_EXCEPTION | 0)) == -1)
20559 SWIG_fail;
20560 if (arg2 == NULL) {
20561 PyErr_SetString(PyExc_TypeError,"null reference");
20562 SWIG_fail;
20563 }
20564 {
20565 PyThreadState* __tstate = wxPyBeginAllowThreads();
20566 result = wxDateTime___sub____SWIG_0(arg1,(wxDateTime const &)*arg2);
20567
20568 wxPyEndAllowThreads(__tstate);
20569 if (PyErr_Occurred()) SWIG_fail;
20570 }
20571 {
20572 wxTimeSpan * resultptr;
20573 resultptr = new wxTimeSpan((wxTimeSpan &) result);
20574 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
20575 }
20576 return resultobj;
20577 fail:
20578 return NULL;
20579 }
20580
20581
20582 static PyObject *_wrap_DateTime___sub____SWIG_1(PyObject *self, PyObject *args) {
20583 PyObject *resultobj;
20584 wxDateTime *arg1 = (wxDateTime *) 0 ;
20585 wxTimeSpan *arg2 = 0 ;
20586 wxDateTime result;
20587 PyObject * obj0 = 0 ;
20588 PyObject * obj1 = 0 ;
20589
20590 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail;
20591 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20592 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20593 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
20594 SWIG_POINTER_EXCEPTION | 0)) == -1)
20595 SWIG_fail;
20596 if (arg2 == NULL) {
20597 PyErr_SetString(PyExc_TypeError,"null reference");
20598 SWIG_fail;
20599 }
20600 {
20601 PyThreadState* __tstate = wxPyBeginAllowThreads();
20602 result = wxDateTime___sub____SWIG_1(arg1,(wxTimeSpan const &)*arg2);
20603
20604 wxPyEndAllowThreads(__tstate);
20605 if (PyErr_Occurred()) SWIG_fail;
20606 }
20607 {
20608 wxDateTime * resultptr;
20609 resultptr = new wxDateTime((wxDateTime &) result);
20610 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
20611 }
20612 return resultobj;
20613 fail:
20614 return NULL;
20615 }
20616
20617
20618 static PyObject *_wrap_DateTime___sub____SWIG_2(PyObject *self, PyObject *args) {
20619 PyObject *resultobj;
20620 wxDateTime *arg1 = (wxDateTime *) 0 ;
20621 wxDateSpan *arg2 = 0 ;
20622 wxDateTime result;
20623 PyObject * obj0 = 0 ;
20624 PyObject * obj1 = 0 ;
20625
20626 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail;
20627 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20628 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20629 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
20630 SWIG_POINTER_EXCEPTION | 0)) == -1)
20631 SWIG_fail;
20632 if (arg2 == NULL) {
20633 PyErr_SetString(PyExc_TypeError,"null reference");
20634 SWIG_fail;
20635 }
20636 {
20637 PyThreadState* __tstate = wxPyBeginAllowThreads();
20638 result = wxDateTime___sub____SWIG_2(arg1,(wxDateSpan const &)*arg2);
20639
20640 wxPyEndAllowThreads(__tstate);
20641 if (PyErr_Occurred()) SWIG_fail;
20642 }
20643 {
20644 wxDateTime * resultptr;
20645 resultptr = new wxDateTime((wxDateTime &) result);
20646 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
20647 }
20648 return resultobj;
20649 fail:
20650 return NULL;
20651 }
20652
20653
20654 static PyObject *_wrap_DateTime___sub__(PyObject *self, PyObject *args) {
20655 int argc;
20656 PyObject *argv[3];
20657 int ii;
20658
20659 argc = PyObject_Length(args);
20660 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
20661 argv[ii] = PyTuple_GetItem(args,ii);
20662 }
20663 if (argc == 2) {
20664 int _v;
20665 {
20666 void *ptr;
20667 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20668 _v = 0;
20669 PyErr_Clear();
20670 } else {
20671 _v = 1;
20672 }
20673 }
20674 if (_v) {
20675 {
20676 void *ptr;
20677 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20678 _v = 0;
20679 PyErr_Clear();
20680 } else {
20681 _v = 1;
20682 }
20683 }
20684 if (_v) {
20685 return _wrap_DateTime___sub____SWIG_0(self,args);
20686 }
20687 }
20688 }
20689 if (argc == 2) {
20690 int _v;
20691 {
20692 void *ptr;
20693 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20694 _v = 0;
20695 PyErr_Clear();
20696 } else {
20697 _v = 1;
20698 }
20699 }
20700 if (_v) {
20701 {
20702 void *ptr;
20703 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) {
20704 _v = 0;
20705 PyErr_Clear();
20706 } else {
20707 _v = 1;
20708 }
20709 }
20710 if (_v) {
20711 return _wrap_DateTime___sub____SWIG_1(self,args);
20712 }
20713 }
20714 }
20715 if (argc == 2) {
20716 int _v;
20717 {
20718 void *ptr;
20719 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20720 _v = 0;
20721 PyErr_Clear();
20722 } else {
20723 _v = 1;
20724 }
20725 }
20726 if (_v) {
20727 {
20728 void *ptr;
20729 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) {
20730 _v = 0;
20731 PyErr_Clear();
20732 } else {
20733 _v = 1;
20734 }
20735 }
20736 if (_v) {
20737 return _wrap_DateTime___sub____SWIG_2(self,args);
20738 }
20739 }
20740 }
20741
20742 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___sub__'");
20743 return NULL;
20744 }
20745
20746
20747 static PyObject *_wrap_DateTime___lt__(PyObject *self, PyObject *args) {
20748 PyObject *resultobj;
20749 wxDateTime *arg1 = (wxDateTime *) 0 ;
20750 wxDateTime *arg2 = (wxDateTime *) 0 ;
20751 bool result;
20752 PyObject * obj0 = 0 ;
20753 PyObject * obj1 = 0 ;
20754
20755 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___lt__",&obj0,&obj1)) goto fail;
20756 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20757 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20758 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20759 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20760 {
20761 PyThreadState* __tstate = wxPyBeginAllowThreads();
20762 result = (bool)wxDateTime___lt__(arg1,(wxDateTime const *)arg2);
20763
20764 wxPyEndAllowThreads(__tstate);
20765 if (PyErr_Occurred()) SWIG_fail;
20766 }
20767 {
20768 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20769 }
20770 return resultobj;
20771 fail:
20772 return NULL;
20773 }
20774
20775
20776 static PyObject *_wrap_DateTime___le__(PyObject *self, PyObject *args) {
20777 PyObject *resultobj;
20778 wxDateTime *arg1 = (wxDateTime *) 0 ;
20779 wxDateTime *arg2 = (wxDateTime *) 0 ;
20780 bool result;
20781 PyObject * obj0 = 0 ;
20782 PyObject * obj1 = 0 ;
20783
20784 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___le__",&obj0,&obj1)) goto fail;
20785 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20786 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20787 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20788 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20789 {
20790 PyThreadState* __tstate = wxPyBeginAllowThreads();
20791 result = (bool)wxDateTime___le__(arg1,(wxDateTime const *)arg2);
20792
20793 wxPyEndAllowThreads(__tstate);
20794 if (PyErr_Occurred()) SWIG_fail;
20795 }
20796 {
20797 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20798 }
20799 return resultobj;
20800 fail:
20801 return NULL;
20802 }
20803
20804
20805 static PyObject *_wrap_DateTime___gt__(PyObject *self, PyObject *args) {
20806 PyObject *resultobj;
20807 wxDateTime *arg1 = (wxDateTime *) 0 ;
20808 wxDateTime *arg2 = (wxDateTime *) 0 ;
20809 bool result;
20810 PyObject * obj0 = 0 ;
20811 PyObject * obj1 = 0 ;
20812
20813 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___gt__",&obj0,&obj1)) goto fail;
20814 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20815 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20816 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20817 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20818 {
20819 PyThreadState* __tstate = wxPyBeginAllowThreads();
20820 result = (bool)wxDateTime___gt__(arg1,(wxDateTime const *)arg2);
20821
20822 wxPyEndAllowThreads(__tstate);
20823 if (PyErr_Occurred()) SWIG_fail;
20824 }
20825 {
20826 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20827 }
20828 return resultobj;
20829 fail:
20830 return NULL;
20831 }
20832
20833
20834 static PyObject *_wrap_DateTime___ge__(PyObject *self, PyObject *args) {
20835 PyObject *resultobj;
20836 wxDateTime *arg1 = (wxDateTime *) 0 ;
20837 wxDateTime *arg2 = (wxDateTime *) 0 ;
20838 bool result;
20839 PyObject * obj0 = 0 ;
20840 PyObject * obj1 = 0 ;
20841
20842 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___ge__",&obj0,&obj1)) goto fail;
20843 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20844 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20845 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20846 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20847 {
20848 PyThreadState* __tstate = wxPyBeginAllowThreads();
20849 result = (bool)wxDateTime___ge__(arg1,(wxDateTime const *)arg2);
20850
20851 wxPyEndAllowThreads(__tstate);
20852 if (PyErr_Occurred()) SWIG_fail;
20853 }
20854 {
20855 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20856 }
20857 return resultobj;
20858 fail:
20859 return NULL;
20860 }
20861
20862
20863 static PyObject *_wrap_DateTime___eq__(PyObject *self, PyObject *args) {
20864 PyObject *resultobj;
20865 wxDateTime *arg1 = (wxDateTime *) 0 ;
20866 wxDateTime *arg2 = (wxDateTime *) 0 ;
20867 bool result;
20868 PyObject * obj0 = 0 ;
20869 PyObject * obj1 = 0 ;
20870
20871 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___eq__",&obj0,&obj1)) goto fail;
20872 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20873 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20874 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20875 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20876 {
20877 PyThreadState* __tstate = wxPyBeginAllowThreads();
20878 result = (bool)wxDateTime___eq__(arg1,(wxDateTime const *)arg2);
20879
20880 wxPyEndAllowThreads(__tstate);
20881 if (PyErr_Occurred()) SWIG_fail;
20882 }
20883 {
20884 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20885 }
20886 return resultobj;
20887 fail:
20888 return NULL;
20889 }
20890
20891
20892 static PyObject *_wrap_DateTime___ne__(PyObject *self, PyObject *args) {
20893 PyObject *resultobj;
20894 wxDateTime *arg1 = (wxDateTime *) 0 ;
20895 wxDateTime *arg2 = (wxDateTime *) 0 ;
20896 bool result;
20897 PyObject * obj0 = 0 ;
20898 PyObject * obj1 = 0 ;
20899
20900 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___ne__",&obj0,&obj1)) goto fail;
20901 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20902 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20903 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20904 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20905 {
20906 PyThreadState* __tstate = wxPyBeginAllowThreads();
20907 result = (bool)wxDateTime___ne__(arg1,(wxDateTime const *)arg2);
20908
20909 wxPyEndAllowThreads(__tstate);
20910 if (PyErr_Occurred()) SWIG_fail;
20911 }
20912 {
20913 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20914 }
20915 return resultobj;
20916 fail:
20917 return NULL;
20918 }
20919
20920
20921 static PyObject *_wrap_DateTime_ParseRfc822Date(PyObject *self, PyObject *args, PyObject *kwargs) {
20922 PyObject *resultobj;
20923 wxDateTime *arg1 = (wxDateTime *) 0 ;
20924 wxString *arg2 = 0 ;
20925 int result;
20926 bool temp2 = False ;
20927 PyObject * obj0 = 0 ;
20928 PyObject * obj1 = 0 ;
20929 char *kwnames[] = {
20930 (char *) "self",(char *) "date", NULL
20931 };
20932
20933 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseRfc822Date",kwnames,&obj0,&obj1)) goto fail;
20934 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20935 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20936 {
20937 arg2 = wxString_in_helper(obj1);
20938 if (arg2 == NULL) SWIG_fail;
20939 temp2 = True;
20940 }
20941 {
20942 PyThreadState* __tstate = wxPyBeginAllowThreads();
20943 result = (int)wxDateTime_ParseRfc822Date(arg1,(wxString const &)*arg2);
20944
20945 wxPyEndAllowThreads(__tstate);
20946 if (PyErr_Occurred()) SWIG_fail;
20947 }
20948 resultobj = SWIG_FromInt((int)result);
20949 {
20950 if (temp2)
20951 delete arg2;
20952 }
20953 return resultobj;
20954 fail:
20955 {
20956 if (temp2)
20957 delete arg2;
20958 }
20959 return NULL;
20960 }
20961
20962
20963 static PyObject *_wrap_DateTime_ParseFormat(PyObject *self, PyObject *args, PyObject *kwargs) {
20964 PyObject *resultobj;
20965 wxDateTime *arg1 = (wxDateTime *) 0 ;
20966 wxString *arg2 = 0 ;
20967 wxString const &arg3_defvalue = wxPyDateFormatStr ;
20968 wxString *arg3 = (wxString *) &arg3_defvalue ;
20969 wxDateTime const &arg4_defvalue = wxDefaultDateTime ;
20970 wxDateTime *arg4 = (wxDateTime *) &arg4_defvalue ;
20971 int result;
20972 bool temp2 = False ;
20973 bool temp3 = False ;
20974 PyObject * obj0 = 0 ;
20975 PyObject * obj1 = 0 ;
20976 PyObject * obj2 = 0 ;
20977 PyObject * obj3 = 0 ;
20978 char *kwnames[] = {
20979 (char *) "self",(char *) "date",(char *) "format",(char *) "dateDef", NULL
20980 };
20981
20982 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_ParseFormat",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
20983 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20984 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20985 {
20986 arg2 = wxString_in_helper(obj1);
20987 if (arg2 == NULL) SWIG_fail;
20988 temp2 = True;
20989 }
20990 if (obj2) {
20991 {
20992 arg3 = wxString_in_helper(obj2);
20993 if (arg3 == NULL) SWIG_fail;
20994 temp3 = True;
20995 }
20996 }
20997 if (obj3) {
20998 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxDateTime,
20999 SWIG_POINTER_EXCEPTION | 0)) == -1)
21000 SWIG_fail;
21001 if (arg4 == NULL) {
21002 PyErr_SetString(PyExc_TypeError,"null reference");
21003 SWIG_fail;
21004 }
21005 }
21006 {
21007 PyThreadState* __tstate = wxPyBeginAllowThreads();
21008 result = (int)wxDateTime_ParseFormat(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxDateTime const &)*arg4);
21009
21010 wxPyEndAllowThreads(__tstate);
21011 if (PyErr_Occurred()) SWIG_fail;
21012 }
21013 resultobj = SWIG_FromInt((int)result);
21014 {
21015 if (temp2)
21016 delete arg2;
21017 }
21018 {
21019 if (temp3)
21020 delete arg3;
21021 }
21022 return resultobj;
21023 fail:
21024 {
21025 if (temp2)
21026 delete arg2;
21027 }
21028 {
21029 if (temp3)
21030 delete arg3;
21031 }
21032 return NULL;
21033 }
21034
21035
21036 static PyObject *_wrap_DateTime_ParseDateTime(PyObject *self, PyObject *args, PyObject *kwargs) {
21037 PyObject *resultobj;
21038 wxDateTime *arg1 = (wxDateTime *) 0 ;
21039 wxString *arg2 = 0 ;
21040 int result;
21041 bool temp2 = False ;
21042 PyObject * obj0 = 0 ;
21043 PyObject * obj1 = 0 ;
21044 char *kwnames[] = {
21045 (char *) "self",(char *) "datetime", NULL
21046 };
21047
21048 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseDateTime",kwnames,&obj0,&obj1)) goto fail;
21049 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21050 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21051 {
21052 arg2 = wxString_in_helper(obj1);
21053 if (arg2 == NULL) SWIG_fail;
21054 temp2 = True;
21055 }
21056 {
21057 PyThreadState* __tstate = wxPyBeginAllowThreads();
21058 result = (int)wxDateTime_ParseDateTime(arg1,(wxString const &)*arg2);
21059
21060 wxPyEndAllowThreads(__tstate);
21061 if (PyErr_Occurred()) SWIG_fail;
21062 }
21063 resultobj = SWIG_FromInt((int)result);
21064 {
21065 if (temp2)
21066 delete arg2;
21067 }
21068 return resultobj;
21069 fail:
21070 {
21071 if (temp2)
21072 delete arg2;
21073 }
21074 return NULL;
21075 }
21076
21077
21078 static PyObject *_wrap_DateTime_ParseDate(PyObject *self, PyObject *args, PyObject *kwargs) {
21079 PyObject *resultobj;
21080 wxDateTime *arg1 = (wxDateTime *) 0 ;
21081 wxString *arg2 = 0 ;
21082 int result;
21083 bool temp2 = False ;
21084 PyObject * obj0 = 0 ;
21085 PyObject * obj1 = 0 ;
21086 char *kwnames[] = {
21087 (char *) "self",(char *) "date", NULL
21088 };
21089
21090 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseDate",kwnames,&obj0,&obj1)) goto fail;
21091 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21092 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21093 {
21094 arg2 = wxString_in_helper(obj1);
21095 if (arg2 == NULL) SWIG_fail;
21096 temp2 = True;
21097 }
21098 {
21099 PyThreadState* __tstate = wxPyBeginAllowThreads();
21100 result = (int)wxDateTime_ParseDate(arg1,(wxString const &)*arg2);
21101
21102 wxPyEndAllowThreads(__tstate);
21103 if (PyErr_Occurred()) SWIG_fail;
21104 }
21105 resultobj = SWIG_FromInt((int)result);
21106 {
21107 if (temp2)
21108 delete arg2;
21109 }
21110 return resultobj;
21111 fail:
21112 {
21113 if (temp2)
21114 delete arg2;
21115 }
21116 return NULL;
21117 }
21118
21119
21120 static PyObject *_wrap_DateTime_ParseTime(PyObject *self, PyObject *args, PyObject *kwargs) {
21121 PyObject *resultobj;
21122 wxDateTime *arg1 = (wxDateTime *) 0 ;
21123 wxString *arg2 = 0 ;
21124 int result;
21125 bool temp2 = False ;
21126 PyObject * obj0 = 0 ;
21127 PyObject * obj1 = 0 ;
21128 char *kwnames[] = {
21129 (char *) "self",(char *) "time", NULL
21130 };
21131
21132 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseTime",kwnames,&obj0,&obj1)) goto fail;
21133 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21134 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21135 {
21136 arg2 = wxString_in_helper(obj1);
21137 if (arg2 == NULL) SWIG_fail;
21138 temp2 = True;
21139 }
21140 {
21141 PyThreadState* __tstate = wxPyBeginAllowThreads();
21142 result = (int)wxDateTime_ParseTime(arg1,(wxString const &)*arg2);
21143
21144 wxPyEndAllowThreads(__tstate);
21145 if (PyErr_Occurred()) SWIG_fail;
21146 }
21147 resultobj = SWIG_FromInt((int)result);
21148 {
21149 if (temp2)
21150 delete arg2;
21151 }
21152 return resultobj;
21153 fail:
21154 {
21155 if (temp2)
21156 delete arg2;
21157 }
21158 return NULL;
21159 }
21160
21161
21162 static PyObject *_wrap_DateTime_Format(PyObject *self, PyObject *args, PyObject *kwargs) {
21163 PyObject *resultobj;
21164 wxDateTime *arg1 = (wxDateTime *) 0 ;
21165 wxString const &arg2_defvalue = wxPyDateFormatStr ;
21166 wxString *arg2 = (wxString *) &arg2_defvalue ;
21167 wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ;
21168 wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ;
21169 wxString result;
21170 bool temp2 = False ;
21171 bool temp3 = False ;
21172 PyObject * obj0 = 0 ;
21173 PyObject * obj1 = 0 ;
21174 PyObject * obj2 = 0 ;
21175 char *kwnames[] = {
21176 (char *) "self",(char *) "format",(char *) "tz", NULL
21177 };
21178
21179 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_Format",kwnames,&obj0,&obj1,&obj2)) goto fail;
21180 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21181 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21182 if (obj1) {
21183 {
21184 arg2 = wxString_in_helper(obj1);
21185 if (arg2 == NULL) SWIG_fail;
21186 temp2 = True;
21187 }
21188 }
21189 if (obj2) {
21190 {
21191 arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2));
21192 temp3 = True;
21193 }
21194 }
21195 {
21196 PyThreadState* __tstate = wxPyBeginAllowThreads();
21197 result = ((wxDateTime const *)arg1)->Format((wxString const &)*arg2,(wxDateTime::TimeZone const &)*arg3);
21198
21199 wxPyEndAllowThreads(__tstate);
21200 if (PyErr_Occurred()) SWIG_fail;
21201 }
21202 {
21203 #if wxUSE_UNICODE
21204 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
21205 #else
21206 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
21207 #endif
21208 }
21209 {
21210 if (temp2)
21211 delete arg2;
21212 }
21213 {
21214 if (temp3) delete arg3;
21215 }
21216 return resultobj;
21217 fail:
21218 {
21219 if (temp2)
21220 delete arg2;
21221 }
21222 {
21223 if (temp3) delete arg3;
21224 }
21225 return NULL;
21226 }
21227
21228
21229 static PyObject *_wrap_DateTime_FormatDate(PyObject *self, PyObject *args, PyObject *kwargs) {
21230 PyObject *resultobj;
21231 wxDateTime *arg1 = (wxDateTime *) 0 ;
21232 wxString result;
21233 PyObject * obj0 = 0 ;
21234 char *kwnames[] = {
21235 (char *) "self", NULL
21236 };
21237
21238 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatDate",kwnames,&obj0)) goto fail;
21239 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21240 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21241 {
21242 PyThreadState* __tstate = wxPyBeginAllowThreads();
21243 result = ((wxDateTime const *)arg1)->FormatDate();
21244
21245 wxPyEndAllowThreads(__tstate);
21246 if (PyErr_Occurred()) SWIG_fail;
21247 }
21248 {
21249 #if wxUSE_UNICODE
21250 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
21251 #else
21252 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
21253 #endif
21254 }
21255 return resultobj;
21256 fail:
21257 return NULL;
21258 }
21259
21260
21261 static PyObject *_wrap_DateTime_FormatTime(PyObject *self, PyObject *args, PyObject *kwargs) {
21262 PyObject *resultobj;
21263 wxDateTime *arg1 = (wxDateTime *) 0 ;
21264 wxString result;
21265 PyObject * obj0 = 0 ;
21266 char *kwnames[] = {
21267 (char *) "self", NULL
21268 };
21269
21270 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatTime",kwnames,&obj0)) goto fail;
21271 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21272 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21273 {
21274 PyThreadState* __tstate = wxPyBeginAllowThreads();
21275 result = ((wxDateTime const *)arg1)->FormatTime();
21276
21277 wxPyEndAllowThreads(__tstate);
21278 if (PyErr_Occurred()) SWIG_fail;
21279 }
21280 {
21281 #if wxUSE_UNICODE
21282 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
21283 #else
21284 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
21285 #endif
21286 }
21287 return resultobj;
21288 fail:
21289 return NULL;
21290 }
21291
21292
21293 static PyObject *_wrap_DateTime_FormatISODate(PyObject *self, PyObject *args, PyObject *kwargs) {
21294 PyObject *resultobj;
21295 wxDateTime *arg1 = (wxDateTime *) 0 ;
21296 wxString result;
21297 PyObject * obj0 = 0 ;
21298 char *kwnames[] = {
21299 (char *) "self", NULL
21300 };
21301
21302 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatISODate",kwnames,&obj0)) goto fail;
21303 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21304 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21305 {
21306 PyThreadState* __tstate = wxPyBeginAllowThreads();
21307 result = ((wxDateTime const *)arg1)->FormatISODate();
21308
21309 wxPyEndAllowThreads(__tstate);
21310 if (PyErr_Occurred()) SWIG_fail;
21311 }
21312 {
21313 #if wxUSE_UNICODE
21314 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
21315 #else
21316 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
21317 #endif
21318 }
21319 return resultobj;
21320 fail:
21321 return NULL;
21322 }
21323
21324
21325 static PyObject *_wrap_DateTime_FormatISOTime(PyObject *self, PyObject *args, PyObject *kwargs) {
21326 PyObject *resultobj;
21327 wxDateTime *arg1 = (wxDateTime *) 0 ;
21328 wxString result;
21329 PyObject * obj0 = 0 ;
21330 char *kwnames[] = {
21331 (char *) "self", NULL
21332 };
21333
21334 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatISOTime",kwnames,&obj0)) goto fail;
21335 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21336 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21337 {
21338 PyThreadState* __tstate = wxPyBeginAllowThreads();
21339 result = ((wxDateTime const *)arg1)->FormatISOTime();
21340
21341 wxPyEndAllowThreads(__tstate);
21342 if (PyErr_Occurred()) SWIG_fail;
21343 }
21344 {
21345 #if wxUSE_UNICODE
21346 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
21347 #else
21348 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
21349 #endif
21350 }
21351 return resultobj;
21352 fail:
21353 return NULL;
21354 }
21355
21356
21357 static PyObject * DateTime_swigregister(PyObject *self, PyObject *args) {
21358 PyObject *obj;
21359 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
21360 SWIG_TypeClientData(SWIGTYPE_p_wxDateTime, obj);
21361 Py_INCREF(obj);
21362 return Py_BuildValue((char *)"");
21363 }
21364 static PyObject *_wrap_TimeSpan_Seconds(PyObject *self, PyObject *args, PyObject *kwargs) {
21365 PyObject *resultobj;
21366 long arg1 ;
21367 wxTimeSpan result;
21368 PyObject * obj0 = 0 ;
21369 char *kwnames[] = {
21370 (char *) "sec", NULL
21371 };
21372
21373 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Seconds",kwnames,&obj0)) goto fail;
21374 arg1 = (long) SWIG_AsLong(obj0);
21375 if (PyErr_Occurred()) SWIG_fail;
21376 {
21377 PyThreadState* __tstate = wxPyBeginAllowThreads();
21378 result = wxTimeSpan::Seconds(arg1);
21379
21380 wxPyEndAllowThreads(__tstate);
21381 if (PyErr_Occurred()) SWIG_fail;
21382 }
21383 {
21384 wxTimeSpan * resultptr;
21385 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21386 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21387 }
21388 return resultobj;
21389 fail:
21390 return NULL;
21391 }
21392
21393
21394 static PyObject *_wrap_TimeSpan_Second(PyObject *self, PyObject *args, PyObject *kwargs) {
21395 PyObject *resultobj;
21396 wxTimeSpan result;
21397 char *kwnames[] = {
21398 NULL
21399 };
21400
21401 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Second",kwnames)) goto fail;
21402 {
21403 PyThreadState* __tstate = wxPyBeginAllowThreads();
21404 result = wxTimeSpan::Second();
21405
21406 wxPyEndAllowThreads(__tstate);
21407 if (PyErr_Occurred()) SWIG_fail;
21408 }
21409 {
21410 wxTimeSpan * resultptr;
21411 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21412 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21413 }
21414 return resultobj;
21415 fail:
21416 return NULL;
21417 }
21418
21419
21420 static PyObject *_wrap_TimeSpan_Minutes(PyObject *self, PyObject *args, PyObject *kwargs) {
21421 PyObject *resultobj;
21422 long arg1 ;
21423 wxTimeSpan result;
21424 PyObject * obj0 = 0 ;
21425 char *kwnames[] = {
21426 (char *) "min", NULL
21427 };
21428
21429 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Minutes",kwnames,&obj0)) goto fail;
21430 arg1 = (long) SWIG_AsLong(obj0);
21431 if (PyErr_Occurred()) SWIG_fail;
21432 {
21433 PyThreadState* __tstate = wxPyBeginAllowThreads();
21434 result = wxTimeSpan::Minutes(arg1);
21435
21436 wxPyEndAllowThreads(__tstate);
21437 if (PyErr_Occurred()) SWIG_fail;
21438 }
21439 {
21440 wxTimeSpan * resultptr;
21441 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21442 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21443 }
21444 return resultobj;
21445 fail:
21446 return NULL;
21447 }
21448
21449
21450 static PyObject *_wrap_TimeSpan_Minute(PyObject *self, PyObject *args, PyObject *kwargs) {
21451 PyObject *resultobj;
21452 wxTimeSpan result;
21453 char *kwnames[] = {
21454 NULL
21455 };
21456
21457 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Minute",kwnames)) goto fail;
21458 {
21459 PyThreadState* __tstate = wxPyBeginAllowThreads();
21460 result = wxTimeSpan::Minute();
21461
21462 wxPyEndAllowThreads(__tstate);
21463 if (PyErr_Occurred()) SWIG_fail;
21464 }
21465 {
21466 wxTimeSpan * resultptr;
21467 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21468 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21469 }
21470 return resultobj;
21471 fail:
21472 return NULL;
21473 }
21474
21475
21476 static PyObject *_wrap_TimeSpan_Hours(PyObject *self, PyObject *args, PyObject *kwargs) {
21477 PyObject *resultobj;
21478 long arg1 ;
21479 wxTimeSpan result;
21480 PyObject * obj0 = 0 ;
21481 char *kwnames[] = {
21482 (char *) "hours", NULL
21483 };
21484
21485 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Hours",kwnames,&obj0)) goto fail;
21486 arg1 = (long) SWIG_AsLong(obj0);
21487 if (PyErr_Occurred()) SWIG_fail;
21488 {
21489 PyThreadState* __tstate = wxPyBeginAllowThreads();
21490 result = wxTimeSpan::Hours(arg1);
21491
21492 wxPyEndAllowThreads(__tstate);
21493 if (PyErr_Occurred()) SWIG_fail;
21494 }
21495 {
21496 wxTimeSpan * resultptr;
21497 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21498 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21499 }
21500 return resultobj;
21501 fail:
21502 return NULL;
21503 }
21504
21505
21506 static PyObject *_wrap_TimeSpan_Hour(PyObject *self, PyObject *args, PyObject *kwargs) {
21507 PyObject *resultobj;
21508 wxTimeSpan result;
21509 char *kwnames[] = {
21510 NULL
21511 };
21512
21513 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Hour",kwnames)) goto fail;
21514 {
21515 PyThreadState* __tstate = wxPyBeginAllowThreads();
21516 result = wxTimeSpan::Hour();
21517
21518 wxPyEndAllowThreads(__tstate);
21519 if (PyErr_Occurred()) SWIG_fail;
21520 }
21521 {
21522 wxTimeSpan * resultptr;
21523 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21524 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21525 }
21526 return resultobj;
21527 fail:
21528 return NULL;
21529 }
21530
21531
21532 static PyObject *_wrap_TimeSpan_Days(PyObject *self, PyObject *args, PyObject *kwargs) {
21533 PyObject *resultobj;
21534 long arg1 ;
21535 wxTimeSpan result;
21536 PyObject * obj0 = 0 ;
21537 char *kwnames[] = {
21538 (char *) "days", NULL
21539 };
21540
21541 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Days",kwnames,&obj0)) goto fail;
21542 arg1 = (long) SWIG_AsLong(obj0);
21543 if (PyErr_Occurred()) SWIG_fail;
21544 {
21545 PyThreadState* __tstate = wxPyBeginAllowThreads();
21546 result = wxTimeSpan::Days(arg1);
21547
21548 wxPyEndAllowThreads(__tstate);
21549 if (PyErr_Occurred()) SWIG_fail;
21550 }
21551 {
21552 wxTimeSpan * resultptr;
21553 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21554 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21555 }
21556 return resultobj;
21557 fail:
21558 return NULL;
21559 }
21560
21561
21562 static PyObject *_wrap_TimeSpan_Day(PyObject *self, PyObject *args, PyObject *kwargs) {
21563 PyObject *resultobj;
21564 wxTimeSpan result;
21565 char *kwnames[] = {
21566 NULL
21567 };
21568
21569 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Day",kwnames)) goto fail;
21570 {
21571 PyThreadState* __tstate = wxPyBeginAllowThreads();
21572 result = wxTimeSpan::Day();
21573
21574 wxPyEndAllowThreads(__tstate);
21575 if (PyErr_Occurred()) SWIG_fail;
21576 }
21577 {
21578 wxTimeSpan * resultptr;
21579 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21580 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21581 }
21582 return resultobj;
21583 fail:
21584 return NULL;
21585 }
21586
21587
21588 static PyObject *_wrap_TimeSpan_Weeks(PyObject *self, PyObject *args, PyObject *kwargs) {
21589 PyObject *resultobj;
21590 long arg1 ;
21591 wxTimeSpan result;
21592 PyObject * obj0 = 0 ;
21593 char *kwnames[] = {
21594 (char *) "days", NULL
21595 };
21596
21597 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Weeks",kwnames,&obj0)) goto fail;
21598 arg1 = (long) SWIG_AsLong(obj0);
21599 if (PyErr_Occurred()) SWIG_fail;
21600 {
21601 PyThreadState* __tstate = wxPyBeginAllowThreads();
21602 result = wxTimeSpan::Weeks(arg1);
21603
21604 wxPyEndAllowThreads(__tstate);
21605 if (PyErr_Occurred()) SWIG_fail;
21606 }
21607 {
21608 wxTimeSpan * resultptr;
21609 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21610 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21611 }
21612 return resultobj;
21613 fail:
21614 return NULL;
21615 }
21616
21617
21618 static PyObject *_wrap_TimeSpan_Week(PyObject *self, PyObject *args, PyObject *kwargs) {
21619 PyObject *resultobj;
21620 wxTimeSpan result;
21621 char *kwnames[] = {
21622 NULL
21623 };
21624
21625 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Week",kwnames)) goto fail;
21626 {
21627 PyThreadState* __tstate = wxPyBeginAllowThreads();
21628 result = wxTimeSpan::Week();
21629
21630 wxPyEndAllowThreads(__tstate);
21631 if (PyErr_Occurred()) SWIG_fail;
21632 }
21633 {
21634 wxTimeSpan * resultptr;
21635 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21636 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21637 }
21638 return resultobj;
21639 fail:
21640 return NULL;
21641 }
21642
21643
21644 static PyObject *_wrap_new_TimeSpan(PyObject *self, PyObject *args, PyObject *kwargs) {
21645 PyObject *resultobj;
21646 long arg1 = (long) 0 ;
21647 long arg2 = (long) 0 ;
21648 long arg3 = (long) 0 ;
21649 long arg4 = (long) 0 ;
21650 wxTimeSpan *result;
21651 PyObject * obj0 = 0 ;
21652 PyObject * obj1 = 0 ;
21653 PyObject * obj2 = 0 ;
21654 PyObject * obj3 = 0 ;
21655 char *kwnames[] = {
21656 (char *) "hours",(char *) "minutes",(char *) "seconds",(char *) "milliseconds", NULL
21657 };
21658
21659 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TimeSpan",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
21660 if (obj0) {
21661 arg1 = (long) SWIG_AsLong(obj0);
21662 if (PyErr_Occurred()) SWIG_fail;
21663 }
21664 if (obj1) {
21665 arg2 = (long) SWIG_AsLong(obj1);
21666 if (PyErr_Occurred()) SWIG_fail;
21667 }
21668 if (obj2) {
21669 arg3 = (long) SWIG_AsLong(obj2);
21670 if (PyErr_Occurred()) SWIG_fail;
21671 }
21672 if (obj3) {
21673 arg4 = (long) SWIG_AsLong(obj3);
21674 if (PyErr_Occurred()) SWIG_fail;
21675 }
21676 {
21677 PyThreadState* __tstate = wxPyBeginAllowThreads();
21678 result = (wxTimeSpan *)new wxTimeSpan(arg1,arg2,arg3,arg4);
21679
21680 wxPyEndAllowThreads(__tstate);
21681 if (PyErr_Occurred()) SWIG_fail;
21682 }
21683 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 1);
21684 return resultobj;
21685 fail:
21686 return NULL;
21687 }
21688
21689
21690 static PyObject *_wrap_delete_TimeSpan(PyObject *self, PyObject *args, PyObject *kwargs) {
21691 PyObject *resultobj;
21692 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21693 PyObject * obj0 = 0 ;
21694 char *kwnames[] = {
21695 (char *) "self", NULL
21696 };
21697
21698 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TimeSpan",kwnames,&obj0)) goto fail;
21699 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21700 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21701 {
21702 PyThreadState* __tstate = wxPyBeginAllowThreads();
21703 delete arg1;
21704
21705 wxPyEndAllowThreads(__tstate);
21706 if (PyErr_Occurred()) SWIG_fail;
21707 }
21708 Py_INCREF(Py_None); resultobj = Py_None;
21709 return resultobj;
21710 fail:
21711 return NULL;
21712 }
21713
21714
21715 static PyObject *_wrap_TimeSpan_Add(PyObject *self, PyObject *args, PyObject *kwargs) {
21716 PyObject *resultobj;
21717 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21718 wxTimeSpan *arg2 = 0 ;
21719 wxTimeSpan *result;
21720 PyObject * obj0 = 0 ;
21721 PyObject * obj1 = 0 ;
21722 char *kwnames[] = {
21723 (char *) "self",(char *) "diff", NULL
21724 };
21725
21726 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Add",kwnames,&obj0,&obj1)) goto fail;
21727 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21728 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21729 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
21730 SWIG_POINTER_EXCEPTION | 0)) == -1)
21731 SWIG_fail;
21732 if (arg2 == NULL) {
21733 PyErr_SetString(PyExc_TypeError,"null reference");
21734 SWIG_fail;
21735 }
21736 {
21737 PyThreadState* __tstate = wxPyBeginAllowThreads();
21738 {
21739 wxTimeSpan &_result_ref = (arg1)->Add((wxTimeSpan const &)*arg2);
21740 result = (wxTimeSpan *) &_result_ref;
21741 }
21742
21743 wxPyEndAllowThreads(__tstate);
21744 if (PyErr_Occurred()) SWIG_fail;
21745 }
21746 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
21747 return resultobj;
21748 fail:
21749 return NULL;
21750 }
21751
21752
21753 static PyObject *_wrap_TimeSpan_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) {
21754 PyObject *resultobj;
21755 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21756 wxTimeSpan *arg2 = 0 ;
21757 wxTimeSpan *result;
21758 PyObject * obj0 = 0 ;
21759 PyObject * obj1 = 0 ;
21760 char *kwnames[] = {
21761 (char *) "self",(char *) "diff", NULL
21762 };
21763
21764 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Subtract",kwnames,&obj0,&obj1)) goto fail;
21765 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21766 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21767 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
21768 SWIG_POINTER_EXCEPTION | 0)) == -1)
21769 SWIG_fail;
21770 if (arg2 == NULL) {
21771 PyErr_SetString(PyExc_TypeError,"null reference");
21772 SWIG_fail;
21773 }
21774 {
21775 PyThreadState* __tstate = wxPyBeginAllowThreads();
21776 {
21777 wxTimeSpan &_result_ref = (arg1)->Subtract((wxTimeSpan const &)*arg2);
21778 result = (wxTimeSpan *) &_result_ref;
21779 }
21780
21781 wxPyEndAllowThreads(__tstate);
21782 if (PyErr_Occurred()) SWIG_fail;
21783 }
21784 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
21785 return resultobj;
21786 fail:
21787 return NULL;
21788 }
21789
21790
21791 static PyObject *_wrap_TimeSpan_Multiply(PyObject *self, PyObject *args, PyObject *kwargs) {
21792 PyObject *resultobj;
21793 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21794 int arg2 ;
21795 wxTimeSpan *result;
21796 PyObject * obj0 = 0 ;
21797 PyObject * obj1 = 0 ;
21798 char *kwnames[] = {
21799 (char *) "self",(char *) "n", NULL
21800 };
21801
21802 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Multiply",kwnames,&obj0,&obj1)) goto fail;
21803 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21804 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21805 arg2 = (int) SWIG_AsInt(obj1);
21806 if (PyErr_Occurred()) SWIG_fail;
21807 {
21808 PyThreadState* __tstate = wxPyBeginAllowThreads();
21809 {
21810 wxTimeSpan &_result_ref = (arg1)->Multiply(arg2);
21811 result = (wxTimeSpan *) &_result_ref;
21812 }
21813
21814 wxPyEndAllowThreads(__tstate);
21815 if (PyErr_Occurred()) SWIG_fail;
21816 }
21817 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
21818 return resultobj;
21819 fail:
21820 return NULL;
21821 }
21822
21823
21824 static PyObject *_wrap_TimeSpan_Neg(PyObject *self, PyObject *args, PyObject *kwargs) {
21825 PyObject *resultobj;
21826 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21827 wxTimeSpan *result;
21828 PyObject * obj0 = 0 ;
21829 char *kwnames[] = {
21830 (char *) "self", NULL
21831 };
21832
21833 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Neg",kwnames,&obj0)) goto fail;
21834 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21835 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21836 {
21837 PyThreadState* __tstate = wxPyBeginAllowThreads();
21838 {
21839 wxTimeSpan &_result_ref = (arg1)->Neg();
21840 result = (wxTimeSpan *) &_result_ref;
21841 }
21842
21843 wxPyEndAllowThreads(__tstate);
21844 if (PyErr_Occurred()) SWIG_fail;
21845 }
21846 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
21847 return resultobj;
21848 fail:
21849 return NULL;
21850 }
21851
21852
21853 static PyObject *_wrap_TimeSpan_Abs(PyObject *self, PyObject *args, PyObject *kwargs) {
21854 PyObject *resultobj;
21855 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21856 wxTimeSpan result;
21857 PyObject * obj0 = 0 ;
21858 char *kwnames[] = {
21859 (char *) "self", NULL
21860 };
21861
21862 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Abs",kwnames,&obj0)) goto fail;
21863 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21864 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21865 {
21866 PyThreadState* __tstate = wxPyBeginAllowThreads();
21867 result = ((wxTimeSpan const *)arg1)->Abs();
21868
21869 wxPyEndAllowThreads(__tstate);
21870 if (PyErr_Occurred()) SWIG_fail;
21871 }
21872 {
21873 wxTimeSpan * resultptr;
21874 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21875 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21876 }
21877 return resultobj;
21878 fail:
21879 return NULL;
21880 }
21881
21882
21883 static PyObject *_wrap_TimeSpan___iadd__(PyObject *self, PyObject *args, PyObject *kwargs) {
21884 PyObject *resultobj;
21885 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21886 wxTimeSpan *arg2 = 0 ;
21887 wxTimeSpan *result;
21888 PyObject * obj0 = 0 ;
21889 PyObject * obj1 = 0 ;
21890 char *kwnames[] = {
21891 (char *) "self",(char *) "diff", NULL
21892 };
21893
21894 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___iadd__",kwnames,&obj0,&obj1)) goto fail;
21895 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21896 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21897 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
21898 SWIG_POINTER_EXCEPTION | 0)) == -1)
21899 SWIG_fail;
21900 if (arg2 == NULL) {
21901 PyErr_SetString(PyExc_TypeError,"null reference");
21902 SWIG_fail;
21903 }
21904 {
21905 PyThreadState* __tstate = wxPyBeginAllowThreads();
21906 {
21907 wxTimeSpan &_result_ref = (arg1)->operator +=((wxTimeSpan const &)*arg2);
21908 result = (wxTimeSpan *) &_result_ref;
21909 }
21910
21911 wxPyEndAllowThreads(__tstate);
21912 if (PyErr_Occurred()) SWIG_fail;
21913 }
21914 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
21915 return resultobj;
21916 fail:
21917 return NULL;
21918 }
21919
21920
21921 static PyObject *_wrap_TimeSpan___isub__(PyObject *self, PyObject *args, PyObject *kwargs) {
21922 PyObject *resultobj;
21923 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21924 wxTimeSpan *arg2 = 0 ;
21925 wxTimeSpan *result;
21926 PyObject * obj0 = 0 ;
21927 PyObject * obj1 = 0 ;
21928 char *kwnames[] = {
21929 (char *) "self",(char *) "diff", NULL
21930 };
21931
21932 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___isub__",kwnames,&obj0,&obj1)) goto fail;
21933 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21934 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21935 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
21936 SWIG_POINTER_EXCEPTION | 0)) == -1)
21937 SWIG_fail;
21938 if (arg2 == NULL) {
21939 PyErr_SetString(PyExc_TypeError,"null reference");
21940 SWIG_fail;
21941 }
21942 {
21943 PyThreadState* __tstate = wxPyBeginAllowThreads();
21944 {
21945 wxTimeSpan &_result_ref = (arg1)->operator -=((wxTimeSpan const &)*arg2);
21946 result = (wxTimeSpan *) &_result_ref;
21947 }
21948
21949 wxPyEndAllowThreads(__tstate);
21950 if (PyErr_Occurred()) SWIG_fail;
21951 }
21952 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
21953 return resultobj;
21954 fail:
21955 return NULL;
21956 }
21957
21958
21959 static PyObject *_wrap_TimeSpan___imul__(PyObject *self, PyObject *args, PyObject *kwargs) {
21960 PyObject *resultobj;
21961 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21962 int arg2 ;
21963 wxTimeSpan *result;
21964 PyObject * obj0 = 0 ;
21965 PyObject * obj1 = 0 ;
21966 char *kwnames[] = {
21967 (char *) "self",(char *) "n", NULL
21968 };
21969
21970 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___imul__",kwnames,&obj0,&obj1)) goto fail;
21971 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21972 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21973 arg2 = (int) SWIG_AsInt(obj1);
21974 if (PyErr_Occurred()) SWIG_fail;
21975 {
21976 PyThreadState* __tstate = wxPyBeginAllowThreads();
21977 {
21978 wxTimeSpan &_result_ref = (arg1)->operator *=(arg2);
21979 result = (wxTimeSpan *) &_result_ref;
21980 }
21981
21982 wxPyEndAllowThreads(__tstate);
21983 if (PyErr_Occurred()) SWIG_fail;
21984 }
21985 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
21986 return resultobj;
21987 fail:
21988 return NULL;
21989 }
21990
21991
21992 static PyObject *_wrap_TimeSpan___neg__(PyObject *self, PyObject *args, PyObject *kwargs) {
21993 PyObject *resultobj;
21994 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21995 wxTimeSpan *result;
21996 PyObject * obj0 = 0 ;
21997 char *kwnames[] = {
21998 (char *) "self", NULL
21999 };
22000
22001 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan___neg__",kwnames,&obj0)) goto fail;
22002 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22003 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22004 {
22005 PyThreadState* __tstate = wxPyBeginAllowThreads();
22006 {
22007 wxTimeSpan &_result_ref = (arg1)->operator -();
22008 result = (wxTimeSpan *) &_result_ref;
22009 }
22010
22011 wxPyEndAllowThreads(__tstate);
22012 if (PyErr_Occurred()) SWIG_fail;
22013 }
22014 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
22015 return resultobj;
22016 fail:
22017 return NULL;
22018 }
22019
22020
22021 static PyObject *_wrap_TimeSpan___add__(PyObject *self, PyObject *args, PyObject *kwargs) {
22022 PyObject *resultobj;
22023 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22024 wxTimeSpan *arg2 = 0 ;
22025 wxTimeSpan result;
22026 PyObject * obj0 = 0 ;
22027 PyObject * obj1 = 0 ;
22028 char *kwnames[] = {
22029 (char *) "self",(char *) "other", NULL
22030 };
22031
22032 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___add__",kwnames,&obj0,&obj1)) goto fail;
22033 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22034 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22035 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22036 SWIG_POINTER_EXCEPTION | 0)) == -1)
22037 SWIG_fail;
22038 if (arg2 == NULL) {
22039 PyErr_SetString(PyExc_TypeError,"null reference");
22040 SWIG_fail;
22041 }
22042 {
22043 PyThreadState* __tstate = wxPyBeginAllowThreads();
22044 result = wxTimeSpan___add__(arg1,(wxTimeSpan const &)*arg2);
22045
22046 wxPyEndAllowThreads(__tstate);
22047 if (PyErr_Occurred()) SWIG_fail;
22048 }
22049 {
22050 wxTimeSpan * resultptr;
22051 resultptr = new wxTimeSpan((wxTimeSpan &) result);
22052 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
22053 }
22054 return resultobj;
22055 fail:
22056 return NULL;
22057 }
22058
22059
22060 static PyObject *_wrap_TimeSpan___sub__(PyObject *self, PyObject *args, PyObject *kwargs) {
22061 PyObject *resultobj;
22062 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22063 wxTimeSpan *arg2 = 0 ;
22064 wxTimeSpan result;
22065 PyObject * obj0 = 0 ;
22066 PyObject * obj1 = 0 ;
22067 char *kwnames[] = {
22068 (char *) "self",(char *) "other", NULL
22069 };
22070
22071 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___sub__",kwnames,&obj0,&obj1)) goto fail;
22072 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22073 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22074 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22075 SWIG_POINTER_EXCEPTION | 0)) == -1)
22076 SWIG_fail;
22077 if (arg2 == NULL) {
22078 PyErr_SetString(PyExc_TypeError,"null reference");
22079 SWIG_fail;
22080 }
22081 {
22082 PyThreadState* __tstate = wxPyBeginAllowThreads();
22083 result = wxTimeSpan___sub__(arg1,(wxTimeSpan const &)*arg2);
22084
22085 wxPyEndAllowThreads(__tstate);
22086 if (PyErr_Occurred()) SWIG_fail;
22087 }
22088 {
22089 wxTimeSpan * resultptr;
22090 resultptr = new wxTimeSpan((wxTimeSpan &) result);
22091 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
22092 }
22093 return resultobj;
22094 fail:
22095 return NULL;
22096 }
22097
22098
22099 static PyObject *_wrap_TimeSpan___mul__(PyObject *self, PyObject *args, PyObject *kwargs) {
22100 PyObject *resultobj;
22101 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22102 int arg2 ;
22103 wxTimeSpan result;
22104 PyObject * obj0 = 0 ;
22105 PyObject * obj1 = 0 ;
22106 char *kwnames[] = {
22107 (char *) "self",(char *) "n", NULL
22108 };
22109
22110 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___mul__",kwnames,&obj0,&obj1)) goto fail;
22111 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22112 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22113 arg2 = (int) SWIG_AsInt(obj1);
22114 if (PyErr_Occurred()) SWIG_fail;
22115 {
22116 PyThreadState* __tstate = wxPyBeginAllowThreads();
22117 result = wxTimeSpan___mul__(arg1,arg2);
22118
22119 wxPyEndAllowThreads(__tstate);
22120 if (PyErr_Occurred()) SWIG_fail;
22121 }
22122 {
22123 wxTimeSpan * resultptr;
22124 resultptr = new wxTimeSpan((wxTimeSpan &) result);
22125 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
22126 }
22127 return resultobj;
22128 fail:
22129 return NULL;
22130 }
22131
22132
22133 static PyObject *_wrap_TimeSpan___rmul__(PyObject *self, PyObject *args, PyObject *kwargs) {
22134 PyObject *resultobj;
22135 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22136 int arg2 ;
22137 wxTimeSpan result;
22138 PyObject * obj0 = 0 ;
22139 PyObject * obj1 = 0 ;
22140 char *kwnames[] = {
22141 (char *) "self",(char *) "n", NULL
22142 };
22143
22144 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___rmul__",kwnames,&obj0,&obj1)) goto fail;
22145 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22146 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22147 arg2 = (int) SWIG_AsInt(obj1);
22148 if (PyErr_Occurred()) SWIG_fail;
22149 {
22150 PyThreadState* __tstate = wxPyBeginAllowThreads();
22151 result = wxTimeSpan___rmul__(arg1,arg2);
22152
22153 wxPyEndAllowThreads(__tstate);
22154 if (PyErr_Occurred()) SWIG_fail;
22155 }
22156 {
22157 wxTimeSpan * resultptr;
22158 resultptr = new wxTimeSpan((wxTimeSpan &) result);
22159 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
22160 }
22161 return resultobj;
22162 fail:
22163 return NULL;
22164 }
22165
22166
22167 static PyObject *_wrap_TimeSpan___lt__(PyObject *self, PyObject *args, PyObject *kwargs) {
22168 PyObject *resultobj;
22169 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22170 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
22171 bool result;
22172 PyObject * obj0 = 0 ;
22173 PyObject * obj1 = 0 ;
22174 char *kwnames[] = {
22175 (char *) "self",(char *) "other", NULL
22176 };
22177
22178 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___lt__",kwnames,&obj0,&obj1)) goto fail;
22179 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22180 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22181 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22182 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22183 {
22184 PyThreadState* __tstate = wxPyBeginAllowThreads();
22185 result = (bool)wxTimeSpan___lt__(arg1,(wxTimeSpan const *)arg2);
22186
22187 wxPyEndAllowThreads(__tstate);
22188 if (PyErr_Occurred()) SWIG_fail;
22189 }
22190 {
22191 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22192 }
22193 return resultobj;
22194 fail:
22195 return NULL;
22196 }
22197
22198
22199 static PyObject *_wrap_TimeSpan___le__(PyObject *self, PyObject *args, PyObject *kwargs) {
22200 PyObject *resultobj;
22201 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22202 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
22203 bool result;
22204 PyObject * obj0 = 0 ;
22205 PyObject * obj1 = 0 ;
22206 char *kwnames[] = {
22207 (char *) "self",(char *) "other", NULL
22208 };
22209
22210 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___le__",kwnames,&obj0,&obj1)) goto fail;
22211 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22212 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22213 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22214 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22215 {
22216 PyThreadState* __tstate = wxPyBeginAllowThreads();
22217 result = (bool)wxTimeSpan___le__(arg1,(wxTimeSpan const *)arg2);
22218
22219 wxPyEndAllowThreads(__tstate);
22220 if (PyErr_Occurred()) SWIG_fail;
22221 }
22222 {
22223 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22224 }
22225 return resultobj;
22226 fail:
22227 return NULL;
22228 }
22229
22230
22231 static PyObject *_wrap_TimeSpan___gt__(PyObject *self, PyObject *args, PyObject *kwargs) {
22232 PyObject *resultobj;
22233 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22234 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
22235 bool result;
22236 PyObject * obj0 = 0 ;
22237 PyObject * obj1 = 0 ;
22238 char *kwnames[] = {
22239 (char *) "self",(char *) "other", NULL
22240 };
22241
22242 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___gt__",kwnames,&obj0,&obj1)) goto fail;
22243 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22244 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22245 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22246 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22247 {
22248 PyThreadState* __tstate = wxPyBeginAllowThreads();
22249 result = (bool)wxTimeSpan___gt__(arg1,(wxTimeSpan const *)arg2);
22250
22251 wxPyEndAllowThreads(__tstate);
22252 if (PyErr_Occurred()) SWIG_fail;
22253 }
22254 {
22255 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22256 }
22257 return resultobj;
22258 fail:
22259 return NULL;
22260 }
22261
22262
22263 static PyObject *_wrap_TimeSpan___ge__(PyObject *self, PyObject *args, PyObject *kwargs) {
22264 PyObject *resultobj;
22265 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22266 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
22267 bool result;
22268 PyObject * obj0 = 0 ;
22269 PyObject * obj1 = 0 ;
22270 char *kwnames[] = {
22271 (char *) "self",(char *) "other", NULL
22272 };
22273
22274 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___ge__",kwnames,&obj0,&obj1)) goto fail;
22275 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22276 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22277 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22278 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22279 {
22280 PyThreadState* __tstate = wxPyBeginAllowThreads();
22281 result = (bool)wxTimeSpan___ge__(arg1,(wxTimeSpan const *)arg2);
22282
22283 wxPyEndAllowThreads(__tstate);
22284 if (PyErr_Occurred()) SWIG_fail;
22285 }
22286 {
22287 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22288 }
22289 return resultobj;
22290 fail:
22291 return NULL;
22292 }
22293
22294
22295 static PyObject *_wrap_TimeSpan___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
22296 PyObject *resultobj;
22297 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22298 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
22299 bool result;
22300 PyObject * obj0 = 0 ;
22301 PyObject * obj1 = 0 ;
22302 char *kwnames[] = {
22303 (char *) "self",(char *) "other", NULL
22304 };
22305
22306 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___eq__",kwnames,&obj0,&obj1)) goto fail;
22307 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22308 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22309 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22310 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22311 {
22312 PyThreadState* __tstate = wxPyBeginAllowThreads();
22313 result = (bool)wxTimeSpan___eq__(arg1,(wxTimeSpan const *)arg2);
22314
22315 wxPyEndAllowThreads(__tstate);
22316 if (PyErr_Occurred()) SWIG_fail;
22317 }
22318 {
22319 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22320 }
22321 return resultobj;
22322 fail:
22323 return NULL;
22324 }
22325
22326
22327 static PyObject *_wrap_TimeSpan___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
22328 PyObject *resultobj;
22329 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22330 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
22331 bool result;
22332 PyObject * obj0 = 0 ;
22333 PyObject * obj1 = 0 ;
22334 char *kwnames[] = {
22335 (char *) "self",(char *) "other", NULL
22336 };
22337
22338 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___ne__",kwnames,&obj0,&obj1)) goto fail;
22339 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22340 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22341 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22342 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22343 {
22344 PyThreadState* __tstate = wxPyBeginAllowThreads();
22345 result = (bool)wxTimeSpan___ne__(arg1,(wxTimeSpan const *)arg2);
22346
22347 wxPyEndAllowThreads(__tstate);
22348 if (PyErr_Occurred()) SWIG_fail;
22349 }
22350 {
22351 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22352 }
22353 return resultobj;
22354 fail:
22355 return NULL;
22356 }
22357
22358
22359 static PyObject *_wrap_TimeSpan_IsNull(PyObject *self, PyObject *args, PyObject *kwargs) {
22360 PyObject *resultobj;
22361 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22362 bool result;
22363 PyObject * obj0 = 0 ;
22364 char *kwnames[] = {
22365 (char *) "self", NULL
22366 };
22367
22368 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsNull",kwnames,&obj0)) goto fail;
22369 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22370 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22371 {
22372 PyThreadState* __tstate = wxPyBeginAllowThreads();
22373 result = (bool)((wxTimeSpan const *)arg1)->IsNull();
22374
22375 wxPyEndAllowThreads(__tstate);
22376 if (PyErr_Occurred()) SWIG_fail;
22377 }
22378 {
22379 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22380 }
22381 return resultobj;
22382 fail:
22383 return NULL;
22384 }
22385
22386
22387 static PyObject *_wrap_TimeSpan_IsPositive(PyObject *self, PyObject *args, PyObject *kwargs) {
22388 PyObject *resultobj;
22389 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22390 bool result;
22391 PyObject * obj0 = 0 ;
22392 char *kwnames[] = {
22393 (char *) "self", NULL
22394 };
22395
22396 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsPositive",kwnames,&obj0)) goto fail;
22397 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22398 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22399 {
22400 PyThreadState* __tstate = wxPyBeginAllowThreads();
22401 result = (bool)((wxTimeSpan const *)arg1)->IsPositive();
22402
22403 wxPyEndAllowThreads(__tstate);
22404 if (PyErr_Occurred()) SWIG_fail;
22405 }
22406 {
22407 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22408 }
22409 return resultobj;
22410 fail:
22411 return NULL;
22412 }
22413
22414
22415 static PyObject *_wrap_TimeSpan_IsNegative(PyObject *self, PyObject *args, PyObject *kwargs) {
22416 PyObject *resultobj;
22417 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22418 bool result;
22419 PyObject * obj0 = 0 ;
22420 char *kwnames[] = {
22421 (char *) "self", NULL
22422 };
22423
22424 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsNegative",kwnames,&obj0)) goto fail;
22425 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22426 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22427 {
22428 PyThreadState* __tstate = wxPyBeginAllowThreads();
22429 result = (bool)((wxTimeSpan const *)arg1)->IsNegative();
22430
22431 wxPyEndAllowThreads(__tstate);
22432 if (PyErr_Occurred()) SWIG_fail;
22433 }
22434 {
22435 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22436 }
22437 return resultobj;
22438 fail:
22439 return NULL;
22440 }
22441
22442
22443 static PyObject *_wrap_TimeSpan_IsEqualTo(PyObject *self, PyObject *args, PyObject *kwargs) {
22444 PyObject *resultobj;
22445 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22446 wxTimeSpan *arg2 = 0 ;
22447 bool result;
22448 PyObject * obj0 = 0 ;
22449 PyObject * obj1 = 0 ;
22450 char *kwnames[] = {
22451 (char *) "self",(char *) "ts", NULL
22452 };
22453
22454 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsEqualTo",kwnames,&obj0,&obj1)) goto fail;
22455 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22456 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22457 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22458 SWIG_POINTER_EXCEPTION | 0)) == -1)
22459 SWIG_fail;
22460 if (arg2 == NULL) {
22461 PyErr_SetString(PyExc_TypeError,"null reference");
22462 SWIG_fail;
22463 }
22464 {
22465 PyThreadState* __tstate = wxPyBeginAllowThreads();
22466 result = (bool)((wxTimeSpan const *)arg1)->IsEqualTo((wxTimeSpan const &)*arg2);
22467
22468 wxPyEndAllowThreads(__tstate);
22469 if (PyErr_Occurred()) SWIG_fail;
22470 }
22471 {
22472 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22473 }
22474 return resultobj;
22475 fail:
22476 return NULL;
22477 }
22478
22479
22480 static PyObject *_wrap_TimeSpan_IsLongerThan(PyObject *self, PyObject *args, PyObject *kwargs) {
22481 PyObject *resultobj;
22482 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22483 wxTimeSpan *arg2 = 0 ;
22484 bool result;
22485 PyObject * obj0 = 0 ;
22486 PyObject * obj1 = 0 ;
22487 char *kwnames[] = {
22488 (char *) "self",(char *) "ts", NULL
22489 };
22490
22491 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsLongerThan",kwnames,&obj0,&obj1)) goto fail;
22492 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22493 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22494 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22495 SWIG_POINTER_EXCEPTION | 0)) == -1)
22496 SWIG_fail;
22497 if (arg2 == NULL) {
22498 PyErr_SetString(PyExc_TypeError,"null reference");
22499 SWIG_fail;
22500 }
22501 {
22502 PyThreadState* __tstate = wxPyBeginAllowThreads();
22503 result = (bool)((wxTimeSpan const *)arg1)->IsLongerThan((wxTimeSpan const &)*arg2);
22504
22505 wxPyEndAllowThreads(__tstate);
22506 if (PyErr_Occurred()) SWIG_fail;
22507 }
22508 {
22509 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22510 }
22511 return resultobj;
22512 fail:
22513 return NULL;
22514 }
22515
22516
22517 static PyObject *_wrap_TimeSpan_IsShorterThan(PyObject *self, PyObject *args, PyObject *kwargs) {
22518 PyObject *resultobj;
22519 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22520 wxTimeSpan *arg2 = 0 ;
22521 bool result;
22522 PyObject * obj0 = 0 ;
22523 PyObject * obj1 = 0 ;
22524 char *kwnames[] = {
22525 (char *) "self",(char *) "t", NULL
22526 };
22527
22528 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsShorterThan",kwnames,&obj0,&obj1)) goto fail;
22529 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22530 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22531 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22532 SWIG_POINTER_EXCEPTION | 0)) == -1)
22533 SWIG_fail;
22534 if (arg2 == NULL) {
22535 PyErr_SetString(PyExc_TypeError,"null reference");
22536 SWIG_fail;
22537 }
22538 {
22539 PyThreadState* __tstate = wxPyBeginAllowThreads();
22540 result = (bool)((wxTimeSpan const *)arg1)->IsShorterThan((wxTimeSpan const &)*arg2);
22541
22542 wxPyEndAllowThreads(__tstate);
22543 if (PyErr_Occurred()) SWIG_fail;
22544 }
22545 {
22546 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22547 }
22548 return resultobj;
22549 fail:
22550 return NULL;
22551 }
22552
22553
22554 static PyObject *_wrap_TimeSpan_GetWeeks(PyObject *self, PyObject *args, PyObject *kwargs) {
22555 PyObject *resultobj;
22556 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22557 int result;
22558 PyObject * obj0 = 0 ;
22559 char *kwnames[] = {
22560 (char *) "self", NULL
22561 };
22562
22563 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetWeeks",kwnames,&obj0)) goto fail;
22564 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22565 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22566 {
22567 PyThreadState* __tstate = wxPyBeginAllowThreads();
22568 result = (int)((wxTimeSpan const *)arg1)->GetWeeks();
22569
22570 wxPyEndAllowThreads(__tstate);
22571 if (PyErr_Occurred()) SWIG_fail;
22572 }
22573 resultobj = SWIG_FromInt((int)result);
22574 return resultobj;
22575 fail:
22576 return NULL;
22577 }
22578
22579
22580 static PyObject *_wrap_TimeSpan_GetDays(PyObject *self, PyObject *args, PyObject *kwargs) {
22581 PyObject *resultobj;
22582 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22583 int result;
22584 PyObject * obj0 = 0 ;
22585 char *kwnames[] = {
22586 (char *) "self", NULL
22587 };
22588
22589 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetDays",kwnames,&obj0)) goto fail;
22590 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22591 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22592 {
22593 PyThreadState* __tstate = wxPyBeginAllowThreads();
22594 result = (int)((wxTimeSpan const *)arg1)->GetDays();
22595
22596 wxPyEndAllowThreads(__tstate);
22597 if (PyErr_Occurred()) SWIG_fail;
22598 }
22599 resultobj = SWIG_FromInt((int)result);
22600 return resultobj;
22601 fail:
22602 return NULL;
22603 }
22604
22605
22606 static PyObject *_wrap_TimeSpan_GetHours(PyObject *self, PyObject *args, PyObject *kwargs) {
22607 PyObject *resultobj;
22608 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22609 int result;
22610 PyObject * obj0 = 0 ;
22611 char *kwnames[] = {
22612 (char *) "self", NULL
22613 };
22614
22615 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetHours",kwnames,&obj0)) goto fail;
22616 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22617 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22618 {
22619 PyThreadState* __tstate = wxPyBeginAllowThreads();
22620 result = (int)((wxTimeSpan const *)arg1)->GetHours();
22621
22622 wxPyEndAllowThreads(__tstate);
22623 if (PyErr_Occurred()) SWIG_fail;
22624 }
22625 resultobj = SWIG_FromInt((int)result);
22626 return resultobj;
22627 fail:
22628 return NULL;
22629 }
22630
22631
22632 static PyObject *_wrap_TimeSpan_GetMinutes(PyObject *self, PyObject *args, PyObject *kwargs) {
22633 PyObject *resultobj;
22634 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22635 int result;
22636 PyObject * obj0 = 0 ;
22637 char *kwnames[] = {
22638 (char *) "self", NULL
22639 };
22640
22641 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetMinutes",kwnames,&obj0)) goto fail;
22642 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22643 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22644 {
22645 PyThreadState* __tstate = wxPyBeginAllowThreads();
22646 result = (int)((wxTimeSpan const *)arg1)->GetMinutes();
22647
22648 wxPyEndAllowThreads(__tstate);
22649 if (PyErr_Occurred()) SWIG_fail;
22650 }
22651 resultobj = SWIG_FromInt((int)result);
22652 return resultobj;
22653 fail:
22654 return NULL;
22655 }
22656
22657
22658 static PyObject *_wrap_TimeSpan_GetSeconds(PyObject *self, PyObject *args, PyObject *kwargs) {
22659 PyObject *resultobj;
22660 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22661 wxLongLong result;
22662 PyObject * obj0 = 0 ;
22663 char *kwnames[] = {
22664 (char *) "self", NULL
22665 };
22666
22667 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetSeconds",kwnames,&obj0)) goto fail;
22668 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22669 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22670 {
22671 PyThreadState* __tstate = wxPyBeginAllowThreads();
22672 result = ((wxTimeSpan const *)arg1)->GetSeconds();
22673
22674 wxPyEndAllowThreads(__tstate);
22675 if (PyErr_Occurred()) SWIG_fail;
22676 }
22677 {
22678 PyObject *hi, *lo, *shifter, *shifted;
22679 hi = PyLong_FromLong( (&result)->GetHi() );
22680 lo = PyLong_FromLong( (&result)->GetLo() );
22681 shifter = PyLong_FromLong(32);
22682 shifted = PyNumber_Lshift(hi, shifter);
22683 resultobj = PyNumber_Or(shifted, lo);
22684 Py_DECREF(hi);
22685 Py_DECREF(lo);
22686 Py_DECREF(shifter);
22687 Py_DECREF(shifted);
22688 }
22689 return resultobj;
22690 fail:
22691 return NULL;
22692 }
22693
22694
22695 static PyObject *_wrap_TimeSpan_GetMilliseconds(PyObject *self, PyObject *args, PyObject *kwargs) {
22696 PyObject *resultobj;
22697 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22698 wxLongLong result;
22699 PyObject * obj0 = 0 ;
22700 char *kwnames[] = {
22701 (char *) "self", NULL
22702 };
22703
22704 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetMilliseconds",kwnames,&obj0)) goto fail;
22705 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22706 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22707 {
22708 PyThreadState* __tstate = wxPyBeginAllowThreads();
22709 result = ((wxTimeSpan const *)arg1)->GetMilliseconds();
22710
22711 wxPyEndAllowThreads(__tstate);
22712 if (PyErr_Occurred()) SWIG_fail;
22713 }
22714 {
22715 PyObject *hi, *lo, *shifter, *shifted;
22716 hi = PyLong_FromLong( (&result)->GetHi() );
22717 lo = PyLong_FromLong( (&result)->GetLo() );
22718 shifter = PyLong_FromLong(32);
22719 shifted = PyNumber_Lshift(hi, shifter);
22720 resultobj = PyNumber_Or(shifted, lo);
22721 Py_DECREF(hi);
22722 Py_DECREF(lo);
22723 Py_DECREF(shifter);
22724 Py_DECREF(shifted);
22725 }
22726 return resultobj;
22727 fail:
22728 return NULL;
22729 }
22730
22731
22732 static PyObject *_wrap_TimeSpan_Format(PyObject *self, PyObject *args, PyObject *kwargs) {
22733 PyObject *resultobj;
22734 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22735 wxString const &arg2_defvalue = wxPyTimeSpanFormatStr ;
22736 wxString *arg2 = (wxString *) &arg2_defvalue ;
22737 wxString result;
22738 bool temp2 = False ;
22739 PyObject * obj0 = 0 ;
22740 PyObject * obj1 = 0 ;
22741 char *kwnames[] = {
22742 (char *) "self",(char *) "format", NULL
22743 };
22744
22745 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TimeSpan_Format",kwnames,&obj0,&obj1)) goto fail;
22746 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22747 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22748 if (obj1) {
22749 {
22750 arg2 = wxString_in_helper(obj1);
22751 if (arg2 == NULL) SWIG_fail;
22752 temp2 = True;
22753 }
22754 }
22755 {
22756 PyThreadState* __tstate = wxPyBeginAllowThreads();
22757 result = ((wxTimeSpan const *)arg1)->Format((wxString const &)*arg2);
22758
22759 wxPyEndAllowThreads(__tstate);
22760 if (PyErr_Occurred()) SWIG_fail;
22761 }
22762 {
22763 #if wxUSE_UNICODE
22764 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
22765 #else
22766 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
22767 #endif
22768 }
22769 {
22770 if (temp2)
22771 delete arg2;
22772 }
22773 return resultobj;
22774 fail:
22775 {
22776 if (temp2)
22777 delete arg2;
22778 }
22779 return NULL;
22780 }
22781
22782
22783 static PyObject * TimeSpan_swigregister(PyObject *self, PyObject *args) {
22784 PyObject *obj;
22785 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
22786 SWIG_TypeClientData(SWIGTYPE_p_wxTimeSpan, obj);
22787 Py_INCREF(obj);
22788 return Py_BuildValue((char *)"");
22789 }
22790 static PyObject *_wrap_new_DateSpan(PyObject *self, PyObject *args, PyObject *kwargs) {
22791 PyObject *resultobj;
22792 int arg1 = (int) 0 ;
22793 int arg2 = (int) 0 ;
22794 int arg3 = (int) 0 ;
22795 int arg4 = (int) 0 ;
22796 wxDateSpan *result;
22797 PyObject * obj0 = 0 ;
22798 PyObject * obj1 = 0 ;
22799 PyObject * obj2 = 0 ;
22800 PyObject * obj3 = 0 ;
22801 char *kwnames[] = {
22802 (char *) "years",(char *) "months",(char *) "weeks",(char *) "days", NULL
22803 };
22804
22805 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_DateSpan",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
22806 if (obj0) {
22807 arg1 = (int) SWIG_AsInt(obj0);
22808 if (PyErr_Occurred()) SWIG_fail;
22809 }
22810 if (obj1) {
22811 arg2 = (int) SWIG_AsInt(obj1);
22812 if (PyErr_Occurred()) SWIG_fail;
22813 }
22814 if (obj2) {
22815 arg3 = (int) SWIG_AsInt(obj2);
22816 if (PyErr_Occurred()) SWIG_fail;
22817 }
22818 if (obj3) {
22819 arg4 = (int) SWIG_AsInt(obj3);
22820 if (PyErr_Occurred()) SWIG_fail;
22821 }
22822 {
22823 PyThreadState* __tstate = wxPyBeginAllowThreads();
22824 result = (wxDateSpan *)new wxDateSpan(arg1,arg2,arg3,arg4);
22825
22826 wxPyEndAllowThreads(__tstate);
22827 if (PyErr_Occurred()) SWIG_fail;
22828 }
22829 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 1);
22830 return resultobj;
22831 fail:
22832 return NULL;
22833 }
22834
22835
22836 static PyObject *_wrap_delete_DateSpan(PyObject *self, PyObject *args, PyObject *kwargs) {
22837 PyObject *resultobj;
22838 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
22839 PyObject * obj0 = 0 ;
22840 char *kwnames[] = {
22841 (char *) "self", NULL
22842 };
22843
22844 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DateSpan",kwnames,&obj0)) goto fail;
22845 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
22846 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22847 {
22848 PyThreadState* __tstate = wxPyBeginAllowThreads();
22849 delete arg1;
22850
22851 wxPyEndAllowThreads(__tstate);
22852 if (PyErr_Occurred()) SWIG_fail;
22853 }
22854 Py_INCREF(Py_None); resultobj = Py_None;
22855 return resultobj;
22856 fail:
22857 return NULL;
22858 }
22859
22860
22861 static PyObject *_wrap_DateSpan_Days(PyObject *self, PyObject *args, PyObject *kwargs) {
22862 PyObject *resultobj;
22863 int arg1 ;
22864 wxDateSpan result;
22865 PyObject * obj0 = 0 ;
22866 char *kwnames[] = {
22867 (char *) "days", NULL
22868 };
22869
22870 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Days",kwnames,&obj0)) goto fail;
22871 arg1 = (int) SWIG_AsInt(obj0);
22872 if (PyErr_Occurred()) SWIG_fail;
22873 {
22874 PyThreadState* __tstate = wxPyBeginAllowThreads();
22875 result = wxDateSpan::Days(arg1);
22876
22877 wxPyEndAllowThreads(__tstate);
22878 if (PyErr_Occurred()) SWIG_fail;
22879 }
22880 {
22881 wxDateSpan * resultptr;
22882 resultptr = new wxDateSpan((wxDateSpan &) result);
22883 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
22884 }
22885 return resultobj;
22886 fail:
22887 return NULL;
22888 }
22889
22890
22891 static PyObject *_wrap_DateSpan_Day(PyObject *self, PyObject *args, PyObject *kwargs) {
22892 PyObject *resultobj;
22893 wxDateSpan result;
22894 char *kwnames[] = {
22895 NULL
22896 };
22897
22898 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Day",kwnames)) goto fail;
22899 {
22900 PyThreadState* __tstate = wxPyBeginAllowThreads();
22901 result = wxDateSpan::Day();
22902
22903 wxPyEndAllowThreads(__tstate);
22904 if (PyErr_Occurred()) SWIG_fail;
22905 }
22906 {
22907 wxDateSpan * resultptr;
22908 resultptr = new wxDateSpan((wxDateSpan &) result);
22909 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
22910 }
22911 return resultobj;
22912 fail:
22913 return NULL;
22914 }
22915
22916
22917 static PyObject *_wrap_DateSpan_Weeks(PyObject *self, PyObject *args, PyObject *kwargs) {
22918 PyObject *resultobj;
22919 int arg1 ;
22920 wxDateSpan result;
22921 PyObject * obj0 = 0 ;
22922 char *kwnames[] = {
22923 (char *) "weeks", NULL
22924 };
22925
22926 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Weeks",kwnames,&obj0)) goto fail;
22927 arg1 = (int) SWIG_AsInt(obj0);
22928 if (PyErr_Occurred()) SWIG_fail;
22929 {
22930 PyThreadState* __tstate = wxPyBeginAllowThreads();
22931 result = wxDateSpan::Weeks(arg1);
22932
22933 wxPyEndAllowThreads(__tstate);
22934 if (PyErr_Occurred()) SWIG_fail;
22935 }
22936 {
22937 wxDateSpan * resultptr;
22938 resultptr = new wxDateSpan((wxDateSpan &) result);
22939 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
22940 }
22941 return resultobj;
22942 fail:
22943 return NULL;
22944 }
22945
22946
22947 static PyObject *_wrap_DateSpan_Week(PyObject *self, PyObject *args, PyObject *kwargs) {
22948 PyObject *resultobj;
22949 wxDateSpan result;
22950 char *kwnames[] = {
22951 NULL
22952 };
22953
22954 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Week",kwnames)) goto fail;
22955 {
22956 PyThreadState* __tstate = wxPyBeginAllowThreads();
22957 result = wxDateSpan::Week();
22958
22959 wxPyEndAllowThreads(__tstate);
22960 if (PyErr_Occurred()) SWIG_fail;
22961 }
22962 {
22963 wxDateSpan * resultptr;
22964 resultptr = new wxDateSpan((wxDateSpan &) result);
22965 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
22966 }
22967 return resultobj;
22968 fail:
22969 return NULL;
22970 }
22971
22972
22973 static PyObject *_wrap_DateSpan_Months(PyObject *self, PyObject *args, PyObject *kwargs) {
22974 PyObject *resultobj;
22975 int arg1 ;
22976 wxDateSpan result;
22977 PyObject * obj0 = 0 ;
22978 char *kwnames[] = {
22979 (char *) "mon", NULL
22980 };
22981
22982 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Months",kwnames,&obj0)) goto fail;
22983 arg1 = (int) SWIG_AsInt(obj0);
22984 if (PyErr_Occurred()) SWIG_fail;
22985 {
22986 PyThreadState* __tstate = wxPyBeginAllowThreads();
22987 result = wxDateSpan::Months(arg1);
22988
22989 wxPyEndAllowThreads(__tstate);
22990 if (PyErr_Occurred()) SWIG_fail;
22991 }
22992 {
22993 wxDateSpan * resultptr;
22994 resultptr = new wxDateSpan((wxDateSpan &) result);
22995 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
22996 }
22997 return resultobj;
22998 fail:
22999 return NULL;
23000 }
23001
23002
23003 static PyObject *_wrap_DateSpan_Month(PyObject *self, PyObject *args, PyObject *kwargs) {
23004 PyObject *resultobj;
23005 wxDateSpan result;
23006 char *kwnames[] = {
23007 NULL
23008 };
23009
23010 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Month",kwnames)) goto fail;
23011 {
23012 PyThreadState* __tstate = wxPyBeginAllowThreads();
23013 result = wxDateSpan::Month();
23014
23015 wxPyEndAllowThreads(__tstate);
23016 if (PyErr_Occurred()) SWIG_fail;
23017 }
23018 {
23019 wxDateSpan * resultptr;
23020 resultptr = new wxDateSpan((wxDateSpan &) result);
23021 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
23022 }
23023 return resultobj;
23024 fail:
23025 return NULL;
23026 }
23027
23028
23029 static PyObject *_wrap_DateSpan_Years(PyObject *self, PyObject *args, PyObject *kwargs) {
23030 PyObject *resultobj;
23031 int arg1 ;
23032 wxDateSpan result;
23033 PyObject * obj0 = 0 ;
23034 char *kwnames[] = {
23035 (char *) "years", NULL
23036 };
23037
23038 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Years",kwnames,&obj0)) goto fail;
23039 arg1 = (int) SWIG_AsInt(obj0);
23040 if (PyErr_Occurred()) SWIG_fail;
23041 {
23042 PyThreadState* __tstate = wxPyBeginAllowThreads();
23043 result = wxDateSpan::Years(arg1);
23044
23045 wxPyEndAllowThreads(__tstate);
23046 if (PyErr_Occurred()) SWIG_fail;
23047 }
23048 {
23049 wxDateSpan * resultptr;
23050 resultptr = new wxDateSpan((wxDateSpan &) result);
23051 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
23052 }
23053 return resultobj;
23054 fail:
23055 return NULL;
23056 }
23057
23058
23059 static PyObject *_wrap_DateSpan_Year(PyObject *self, PyObject *args, PyObject *kwargs) {
23060 PyObject *resultobj;
23061 wxDateSpan result;
23062 char *kwnames[] = {
23063 NULL
23064 };
23065
23066 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Year",kwnames)) goto fail;
23067 {
23068 PyThreadState* __tstate = wxPyBeginAllowThreads();
23069 result = wxDateSpan::Year();
23070
23071 wxPyEndAllowThreads(__tstate);
23072 if (PyErr_Occurred()) SWIG_fail;
23073 }
23074 {
23075 wxDateSpan * resultptr;
23076 resultptr = new wxDateSpan((wxDateSpan &) result);
23077 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
23078 }
23079 return resultobj;
23080 fail:
23081 return NULL;
23082 }
23083
23084
23085 static PyObject *_wrap_DateSpan_SetYears(PyObject *self, PyObject *args, PyObject *kwargs) {
23086 PyObject *resultobj;
23087 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23088 int arg2 ;
23089 wxDateSpan *result;
23090 PyObject * obj0 = 0 ;
23091 PyObject * obj1 = 0 ;
23092 char *kwnames[] = {
23093 (char *) "self",(char *) "n", NULL
23094 };
23095
23096 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetYears",kwnames,&obj0,&obj1)) goto fail;
23097 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23098 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23099 arg2 = (int) SWIG_AsInt(obj1);
23100 if (PyErr_Occurred()) SWIG_fail;
23101 {
23102 PyThreadState* __tstate = wxPyBeginAllowThreads();
23103 {
23104 wxDateSpan &_result_ref = (arg1)->SetYears(arg2);
23105 result = (wxDateSpan *) &_result_ref;
23106 }
23107
23108 wxPyEndAllowThreads(__tstate);
23109 if (PyErr_Occurred()) SWIG_fail;
23110 }
23111 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23112 return resultobj;
23113 fail:
23114 return NULL;
23115 }
23116
23117
23118 static PyObject *_wrap_DateSpan_SetMonths(PyObject *self, PyObject *args, PyObject *kwargs) {
23119 PyObject *resultobj;
23120 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23121 int arg2 ;
23122 wxDateSpan *result;
23123 PyObject * obj0 = 0 ;
23124 PyObject * obj1 = 0 ;
23125 char *kwnames[] = {
23126 (char *) "self",(char *) "n", NULL
23127 };
23128
23129 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetMonths",kwnames,&obj0,&obj1)) goto fail;
23130 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23131 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23132 arg2 = (int) SWIG_AsInt(obj1);
23133 if (PyErr_Occurred()) SWIG_fail;
23134 {
23135 PyThreadState* __tstate = wxPyBeginAllowThreads();
23136 {
23137 wxDateSpan &_result_ref = (arg1)->SetMonths(arg2);
23138 result = (wxDateSpan *) &_result_ref;
23139 }
23140
23141 wxPyEndAllowThreads(__tstate);
23142 if (PyErr_Occurred()) SWIG_fail;
23143 }
23144 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23145 return resultobj;
23146 fail:
23147 return NULL;
23148 }
23149
23150
23151 static PyObject *_wrap_DateSpan_SetWeeks(PyObject *self, PyObject *args, PyObject *kwargs) {
23152 PyObject *resultobj;
23153 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23154 int arg2 ;
23155 wxDateSpan *result;
23156 PyObject * obj0 = 0 ;
23157 PyObject * obj1 = 0 ;
23158 char *kwnames[] = {
23159 (char *) "self",(char *) "n", NULL
23160 };
23161
23162 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetWeeks",kwnames,&obj0,&obj1)) goto fail;
23163 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23164 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23165 arg2 = (int) SWIG_AsInt(obj1);
23166 if (PyErr_Occurred()) SWIG_fail;
23167 {
23168 PyThreadState* __tstate = wxPyBeginAllowThreads();
23169 {
23170 wxDateSpan &_result_ref = (arg1)->SetWeeks(arg2);
23171 result = (wxDateSpan *) &_result_ref;
23172 }
23173
23174 wxPyEndAllowThreads(__tstate);
23175 if (PyErr_Occurred()) SWIG_fail;
23176 }
23177 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23178 return resultobj;
23179 fail:
23180 return NULL;
23181 }
23182
23183
23184 static PyObject *_wrap_DateSpan_SetDays(PyObject *self, PyObject *args, PyObject *kwargs) {
23185 PyObject *resultobj;
23186 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23187 int arg2 ;
23188 wxDateSpan *result;
23189 PyObject * obj0 = 0 ;
23190 PyObject * obj1 = 0 ;
23191 char *kwnames[] = {
23192 (char *) "self",(char *) "n", NULL
23193 };
23194
23195 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetDays",kwnames,&obj0,&obj1)) goto fail;
23196 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23197 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23198 arg2 = (int) SWIG_AsInt(obj1);
23199 if (PyErr_Occurred()) SWIG_fail;
23200 {
23201 PyThreadState* __tstate = wxPyBeginAllowThreads();
23202 {
23203 wxDateSpan &_result_ref = (arg1)->SetDays(arg2);
23204 result = (wxDateSpan *) &_result_ref;
23205 }
23206
23207 wxPyEndAllowThreads(__tstate);
23208 if (PyErr_Occurred()) SWIG_fail;
23209 }
23210 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23211 return resultobj;
23212 fail:
23213 return NULL;
23214 }
23215
23216
23217 static PyObject *_wrap_DateSpan_GetYears(PyObject *self, PyObject *args, PyObject *kwargs) {
23218 PyObject *resultobj;
23219 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23220 int result;
23221 PyObject * obj0 = 0 ;
23222 char *kwnames[] = {
23223 (char *) "self", NULL
23224 };
23225
23226 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetYears",kwnames,&obj0)) goto fail;
23227 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23228 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23229 {
23230 PyThreadState* __tstate = wxPyBeginAllowThreads();
23231 result = (int)((wxDateSpan const *)arg1)->GetYears();
23232
23233 wxPyEndAllowThreads(__tstate);
23234 if (PyErr_Occurred()) SWIG_fail;
23235 }
23236 resultobj = SWIG_FromInt((int)result);
23237 return resultobj;
23238 fail:
23239 return NULL;
23240 }
23241
23242
23243 static PyObject *_wrap_DateSpan_GetMonths(PyObject *self, PyObject *args, PyObject *kwargs) {
23244 PyObject *resultobj;
23245 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23246 int result;
23247 PyObject * obj0 = 0 ;
23248 char *kwnames[] = {
23249 (char *) "self", NULL
23250 };
23251
23252 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetMonths",kwnames,&obj0)) goto fail;
23253 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23254 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23255 {
23256 PyThreadState* __tstate = wxPyBeginAllowThreads();
23257 result = (int)((wxDateSpan const *)arg1)->GetMonths();
23258
23259 wxPyEndAllowThreads(__tstate);
23260 if (PyErr_Occurred()) SWIG_fail;
23261 }
23262 resultobj = SWIG_FromInt((int)result);
23263 return resultobj;
23264 fail:
23265 return NULL;
23266 }
23267
23268
23269 static PyObject *_wrap_DateSpan_GetWeeks(PyObject *self, PyObject *args, PyObject *kwargs) {
23270 PyObject *resultobj;
23271 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23272 int result;
23273 PyObject * obj0 = 0 ;
23274 char *kwnames[] = {
23275 (char *) "self", NULL
23276 };
23277
23278 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetWeeks",kwnames,&obj0)) goto fail;
23279 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23280 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23281 {
23282 PyThreadState* __tstate = wxPyBeginAllowThreads();
23283 result = (int)((wxDateSpan const *)arg1)->GetWeeks();
23284
23285 wxPyEndAllowThreads(__tstate);
23286 if (PyErr_Occurred()) SWIG_fail;
23287 }
23288 resultobj = SWIG_FromInt((int)result);
23289 return resultobj;
23290 fail:
23291 return NULL;
23292 }
23293
23294
23295 static PyObject *_wrap_DateSpan_GetDays(PyObject *self, PyObject *args, PyObject *kwargs) {
23296 PyObject *resultobj;
23297 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23298 int result;
23299 PyObject * obj0 = 0 ;
23300 char *kwnames[] = {
23301 (char *) "self", NULL
23302 };
23303
23304 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetDays",kwnames,&obj0)) goto fail;
23305 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23306 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23307 {
23308 PyThreadState* __tstate = wxPyBeginAllowThreads();
23309 result = (int)((wxDateSpan const *)arg1)->GetDays();
23310
23311 wxPyEndAllowThreads(__tstate);
23312 if (PyErr_Occurred()) SWIG_fail;
23313 }
23314 resultobj = SWIG_FromInt((int)result);
23315 return resultobj;
23316 fail:
23317 return NULL;
23318 }
23319
23320
23321 static PyObject *_wrap_DateSpan_GetTotalDays(PyObject *self, PyObject *args, PyObject *kwargs) {
23322 PyObject *resultobj;
23323 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23324 int result;
23325 PyObject * obj0 = 0 ;
23326 char *kwnames[] = {
23327 (char *) "self", NULL
23328 };
23329
23330 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetTotalDays",kwnames,&obj0)) goto fail;
23331 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23332 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23333 {
23334 PyThreadState* __tstate = wxPyBeginAllowThreads();
23335 result = (int)((wxDateSpan const *)arg1)->GetTotalDays();
23336
23337 wxPyEndAllowThreads(__tstate);
23338 if (PyErr_Occurred()) SWIG_fail;
23339 }
23340 resultobj = SWIG_FromInt((int)result);
23341 return resultobj;
23342 fail:
23343 return NULL;
23344 }
23345
23346
23347 static PyObject *_wrap_DateSpan_Add(PyObject *self, PyObject *args, PyObject *kwargs) {
23348 PyObject *resultobj;
23349 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23350 wxDateSpan *arg2 = 0 ;
23351 wxDateSpan *result;
23352 PyObject * obj0 = 0 ;
23353 PyObject * obj1 = 0 ;
23354 char *kwnames[] = {
23355 (char *) "self",(char *) "other", NULL
23356 };
23357
23358 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Add",kwnames,&obj0,&obj1)) goto fail;
23359 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23360 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23361 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23362 SWIG_POINTER_EXCEPTION | 0)) == -1)
23363 SWIG_fail;
23364 if (arg2 == NULL) {
23365 PyErr_SetString(PyExc_TypeError,"null reference");
23366 SWIG_fail;
23367 }
23368 {
23369 PyThreadState* __tstate = wxPyBeginAllowThreads();
23370 {
23371 wxDateSpan &_result_ref = (arg1)->Add((wxDateSpan const &)*arg2);
23372 result = (wxDateSpan *) &_result_ref;
23373 }
23374
23375 wxPyEndAllowThreads(__tstate);
23376 if (PyErr_Occurred()) SWIG_fail;
23377 }
23378 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23379 return resultobj;
23380 fail:
23381 return NULL;
23382 }
23383
23384
23385 static PyObject *_wrap_DateSpan_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) {
23386 PyObject *resultobj;
23387 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23388 wxDateSpan *arg2 = 0 ;
23389 wxDateSpan *result;
23390 PyObject * obj0 = 0 ;
23391 PyObject * obj1 = 0 ;
23392 char *kwnames[] = {
23393 (char *) "self",(char *) "other", NULL
23394 };
23395
23396 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Subtract",kwnames,&obj0,&obj1)) goto fail;
23397 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23398 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23399 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23400 SWIG_POINTER_EXCEPTION | 0)) == -1)
23401 SWIG_fail;
23402 if (arg2 == NULL) {
23403 PyErr_SetString(PyExc_TypeError,"null reference");
23404 SWIG_fail;
23405 }
23406 {
23407 PyThreadState* __tstate = wxPyBeginAllowThreads();
23408 {
23409 wxDateSpan &_result_ref = (arg1)->Subtract((wxDateSpan const &)*arg2);
23410 result = (wxDateSpan *) &_result_ref;
23411 }
23412
23413 wxPyEndAllowThreads(__tstate);
23414 if (PyErr_Occurred()) SWIG_fail;
23415 }
23416 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23417 return resultobj;
23418 fail:
23419 return NULL;
23420 }
23421
23422
23423 static PyObject *_wrap_DateSpan_Neg(PyObject *self, PyObject *args, PyObject *kwargs) {
23424 PyObject *resultobj;
23425 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23426 wxDateSpan *result;
23427 PyObject * obj0 = 0 ;
23428 char *kwnames[] = {
23429 (char *) "self", NULL
23430 };
23431
23432 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Neg",kwnames,&obj0)) goto fail;
23433 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23434 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23435 {
23436 PyThreadState* __tstate = wxPyBeginAllowThreads();
23437 {
23438 wxDateSpan &_result_ref = (arg1)->Neg();
23439 result = (wxDateSpan *) &_result_ref;
23440 }
23441
23442 wxPyEndAllowThreads(__tstate);
23443 if (PyErr_Occurred()) SWIG_fail;
23444 }
23445 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23446 return resultobj;
23447 fail:
23448 return NULL;
23449 }
23450
23451
23452 static PyObject *_wrap_DateSpan_Multiply(PyObject *self, PyObject *args, PyObject *kwargs) {
23453 PyObject *resultobj;
23454 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23455 int arg2 ;
23456 wxDateSpan *result;
23457 PyObject * obj0 = 0 ;
23458 PyObject * obj1 = 0 ;
23459 char *kwnames[] = {
23460 (char *) "self",(char *) "factor", NULL
23461 };
23462
23463 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Multiply",kwnames,&obj0,&obj1)) goto fail;
23464 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23465 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23466 arg2 = (int) SWIG_AsInt(obj1);
23467 if (PyErr_Occurred()) SWIG_fail;
23468 {
23469 PyThreadState* __tstate = wxPyBeginAllowThreads();
23470 {
23471 wxDateSpan &_result_ref = (arg1)->Multiply(arg2);
23472 result = (wxDateSpan *) &_result_ref;
23473 }
23474
23475 wxPyEndAllowThreads(__tstate);
23476 if (PyErr_Occurred()) SWIG_fail;
23477 }
23478 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23479 return resultobj;
23480 fail:
23481 return NULL;
23482 }
23483
23484
23485 static PyObject *_wrap_DateSpan___iadd__(PyObject *self, PyObject *args, PyObject *kwargs) {
23486 PyObject *resultobj;
23487 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23488 wxDateSpan *arg2 = 0 ;
23489 wxDateSpan *result;
23490 PyObject * obj0 = 0 ;
23491 PyObject * obj1 = 0 ;
23492 char *kwnames[] = {
23493 (char *) "self",(char *) "other", NULL
23494 };
23495
23496 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___iadd__",kwnames,&obj0,&obj1)) goto fail;
23497 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23498 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23499 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23500 SWIG_POINTER_EXCEPTION | 0)) == -1)
23501 SWIG_fail;
23502 if (arg2 == NULL) {
23503 PyErr_SetString(PyExc_TypeError,"null reference");
23504 SWIG_fail;
23505 }
23506 {
23507 PyThreadState* __tstate = wxPyBeginAllowThreads();
23508 {
23509 wxDateSpan &_result_ref = (arg1)->operator +=((wxDateSpan const &)*arg2);
23510 result = (wxDateSpan *) &_result_ref;
23511 }
23512
23513 wxPyEndAllowThreads(__tstate);
23514 if (PyErr_Occurred()) SWIG_fail;
23515 }
23516 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23517 return resultobj;
23518 fail:
23519 return NULL;
23520 }
23521
23522
23523 static PyObject *_wrap_DateSpan___isub__(PyObject *self, PyObject *args, PyObject *kwargs) {
23524 PyObject *resultobj;
23525 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23526 wxDateSpan *arg2 = 0 ;
23527 wxDateSpan *result;
23528 PyObject * obj0 = 0 ;
23529 PyObject * obj1 = 0 ;
23530 char *kwnames[] = {
23531 (char *) "self",(char *) "other", NULL
23532 };
23533
23534 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___isub__",kwnames,&obj0,&obj1)) goto fail;
23535 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23536 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23537 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23538 SWIG_POINTER_EXCEPTION | 0)) == -1)
23539 SWIG_fail;
23540 if (arg2 == NULL) {
23541 PyErr_SetString(PyExc_TypeError,"null reference");
23542 SWIG_fail;
23543 }
23544 {
23545 PyThreadState* __tstate = wxPyBeginAllowThreads();
23546 {
23547 wxDateSpan &_result_ref = (arg1)->operator -=((wxDateSpan const &)*arg2);
23548 result = (wxDateSpan *) &_result_ref;
23549 }
23550
23551 wxPyEndAllowThreads(__tstate);
23552 if (PyErr_Occurred()) SWIG_fail;
23553 }
23554 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23555 return resultobj;
23556 fail:
23557 return NULL;
23558 }
23559
23560
23561 static PyObject *_wrap_DateSpan___neg__(PyObject *self, PyObject *args, PyObject *kwargs) {
23562 PyObject *resultobj;
23563 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23564 wxDateSpan *result;
23565 PyObject * obj0 = 0 ;
23566 char *kwnames[] = {
23567 (char *) "self", NULL
23568 };
23569
23570 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan___neg__",kwnames,&obj0)) goto fail;
23571 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23572 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23573 {
23574 PyThreadState* __tstate = wxPyBeginAllowThreads();
23575 {
23576 wxDateSpan &_result_ref = (arg1)->operator -();
23577 result = (wxDateSpan *) &_result_ref;
23578 }
23579
23580 wxPyEndAllowThreads(__tstate);
23581 if (PyErr_Occurred()) SWIG_fail;
23582 }
23583 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23584 return resultobj;
23585 fail:
23586 return NULL;
23587 }
23588
23589
23590 static PyObject *_wrap_DateSpan___imul__(PyObject *self, PyObject *args, PyObject *kwargs) {
23591 PyObject *resultobj;
23592 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23593 int arg2 ;
23594 wxDateSpan *result;
23595 PyObject * obj0 = 0 ;
23596 PyObject * obj1 = 0 ;
23597 char *kwnames[] = {
23598 (char *) "self",(char *) "factor", NULL
23599 };
23600
23601 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___imul__",kwnames,&obj0,&obj1)) goto fail;
23602 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23603 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23604 arg2 = (int) SWIG_AsInt(obj1);
23605 if (PyErr_Occurred()) SWIG_fail;
23606 {
23607 PyThreadState* __tstate = wxPyBeginAllowThreads();
23608 {
23609 wxDateSpan &_result_ref = (arg1)->operator *=(arg2);
23610 result = (wxDateSpan *) &_result_ref;
23611 }
23612
23613 wxPyEndAllowThreads(__tstate);
23614 if (PyErr_Occurred()) SWIG_fail;
23615 }
23616 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23617 return resultobj;
23618 fail:
23619 return NULL;
23620 }
23621
23622
23623 static PyObject *_wrap_DateSpan___add__(PyObject *self, PyObject *args, PyObject *kwargs) {
23624 PyObject *resultobj;
23625 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23626 wxDateSpan *arg2 = 0 ;
23627 wxDateSpan result;
23628 PyObject * obj0 = 0 ;
23629 PyObject * obj1 = 0 ;
23630 char *kwnames[] = {
23631 (char *) "self",(char *) "other", NULL
23632 };
23633
23634 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___add__",kwnames,&obj0,&obj1)) goto fail;
23635 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23636 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23637 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23638 SWIG_POINTER_EXCEPTION | 0)) == -1)
23639 SWIG_fail;
23640 if (arg2 == NULL) {
23641 PyErr_SetString(PyExc_TypeError,"null reference");
23642 SWIG_fail;
23643 }
23644 {
23645 PyThreadState* __tstate = wxPyBeginAllowThreads();
23646 result = wxDateSpan___add__(arg1,(wxDateSpan const &)*arg2);
23647
23648 wxPyEndAllowThreads(__tstate);
23649 if (PyErr_Occurred()) SWIG_fail;
23650 }
23651 {
23652 wxDateSpan * resultptr;
23653 resultptr = new wxDateSpan((wxDateSpan &) result);
23654 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
23655 }
23656 return resultobj;
23657 fail:
23658 return NULL;
23659 }
23660
23661
23662 static PyObject *_wrap_DateSpan___sub__(PyObject *self, PyObject *args, PyObject *kwargs) {
23663 PyObject *resultobj;
23664 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23665 wxDateSpan *arg2 = 0 ;
23666 wxDateSpan result;
23667 PyObject * obj0 = 0 ;
23668 PyObject * obj1 = 0 ;
23669 char *kwnames[] = {
23670 (char *) "self",(char *) "other", NULL
23671 };
23672
23673 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___sub__",kwnames,&obj0,&obj1)) goto fail;
23674 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23675 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23676 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23677 SWIG_POINTER_EXCEPTION | 0)) == -1)
23678 SWIG_fail;
23679 if (arg2 == NULL) {
23680 PyErr_SetString(PyExc_TypeError,"null reference");
23681 SWIG_fail;
23682 }
23683 {
23684 PyThreadState* __tstate = wxPyBeginAllowThreads();
23685 result = wxDateSpan___sub__(arg1,(wxDateSpan const &)*arg2);
23686
23687 wxPyEndAllowThreads(__tstate);
23688 if (PyErr_Occurred()) SWIG_fail;
23689 }
23690 {
23691 wxDateSpan * resultptr;
23692 resultptr = new wxDateSpan((wxDateSpan &) result);
23693 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
23694 }
23695 return resultobj;
23696 fail:
23697 return NULL;
23698 }
23699
23700
23701 static PyObject *_wrap_DateSpan___mul__(PyObject *self, PyObject *args, PyObject *kwargs) {
23702 PyObject *resultobj;
23703 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23704 int arg2 ;
23705 wxDateSpan result;
23706 PyObject * obj0 = 0 ;
23707 PyObject * obj1 = 0 ;
23708 char *kwnames[] = {
23709 (char *) "self",(char *) "n", NULL
23710 };
23711
23712 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___mul__",kwnames,&obj0,&obj1)) goto fail;
23713 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23714 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23715 arg2 = (int) SWIG_AsInt(obj1);
23716 if (PyErr_Occurred()) SWIG_fail;
23717 {
23718 PyThreadState* __tstate = wxPyBeginAllowThreads();
23719 result = wxDateSpan___mul__(arg1,arg2);
23720
23721 wxPyEndAllowThreads(__tstate);
23722 if (PyErr_Occurred()) SWIG_fail;
23723 }
23724 {
23725 wxDateSpan * resultptr;
23726 resultptr = new wxDateSpan((wxDateSpan &) result);
23727 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
23728 }
23729 return resultobj;
23730 fail:
23731 return NULL;
23732 }
23733
23734
23735 static PyObject *_wrap_DateSpan___rmul__(PyObject *self, PyObject *args, PyObject *kwargs) {
23736 PyObject *resultobj;
23737 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23738 int arg2 ;
23739 wxDateSpan result;
23740 PyObject * obj0 = 0 ;
23741 PyObject * obj1 = 0 ;
23742 char *kwnames[] = {
23743 (char *) "self",(char *) "n", NULL
23744 };
23745
23746 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___rmul__",kwnames,&obj0,&obj1)) goto fail;
23747 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23748 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23749 arg2 = (int) SWIG_AsInt(obj1);
23750 if (PyErr_Occurred()) SWIG_fail;
23751 {
23752 PyThreadState* __tstate = wxPyBeginAllowThreads();
23753 result = wxDateSpan___rmul__(arg1,arg2);
23754
23755 wxPyEndAllowThreads(__tstate);
23756 if (PyErr_Occurred()) SWIG_fail;
23757 }
23758 {
23759 wxDateSpan * resultptr;
23760 resultptr = new wxDateSpan((wxDateSpan &) result);
23761 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
23762 }
23763 return resultobj;
23764 fail:
23765 return NULL;
23766 }
23767
23768
23769 static PyObject *_wrap_DateSpan___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
23770 PyObject *resultobj;
23771 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23772 wxDateSpan *arg2 = (wxDateSpan *) 0 ;
23773 bool result;
23774 PyObject * obj0 = 0 ;
23775 PyObject * obj1 = 0 ;
23776 char *kwnames[] = {
23777 (char *) "self",(char *) "other", NULL
23778 };
23779
23780 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___eq__",kwnames,&obj0,&obj1)) goto fail;
23781 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23782 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23783 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23784 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23785 {
23786 PyThreadState* __tstate = wxPyBeginAllowThreads();
23787 result = (bool)wxDateSpan___eq__(arg1,(wxDateSpan const *)arg2);
23788
23789 wxPyEndAllowThreads(__tstate);
23790 if (PyErr_Occurred()) SWIG_fail;
23791 }
23792 {
23793 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23794 }
23795 return resultobj;
23796 fail:
23797 return NULL;
23798 }
23799
23800
23801 static PyObject *_wrap_DateSpan___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
23802 PyObject *resultobj;
23803 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23804 wxDateSpan *arg2 = (wxDateSpan *) 0 ;
23805 bool result;
23806 PyObject * obj0 = 0 ;
23807 PyObject * obj1 = 0 ;
23808 char *kwnames[] = {
23809 (char *) "self",(char *) "other", NULL
23810 };
23811
23812 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___ne__",kwnames,&obj0,&obj1)) goto fail;
23813 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23814 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23815 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23816 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23817 {
23818 PyThreadState* __tstate = wxPyBeginAllowThreads();
23819 result = (bool)wxDateSpan___ne__(arg1,(wxDateSpan const *)arg2);
23820
23821 wxPyEndAllowThreads(__tstate);
23822 if (PyErr_Occurred()) SWIG_fail;
23823 }
23824 {
23825 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23826 }
23827 return resultobj;
23828 fail:
23829 return NULL;
23830 }
23831
23832
23833 static PyObject * DateSpan_swigregister(PyObject *self, PyObject *args) {
23834 PyObject *obj;
23835 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
23836 SWIG_TypeClientData(SWIGTYPE_p_wxDateSpan, obj);
23837 Py_INCREF(obj);
23838 return Py_BuildValue((char *)"");
23839 }
23840 static PyObject *_wrap_GetLocalTime(PyObject *self, PyObject *args, PyObject *kwargs) {
23841 PyObject *resultobj;
23842 long result;
23843 char *kwnames[] = {
23844 NULL
23845 };
23846
23847 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocalTime",kwnames)) goto fail;
23848 {
23849 PyThreadState* __tstate = wxPyBeginAllowThreads();
23850 result = (long)wxGetLocalTime();
23851
23852 wxPyEndAllowThreads(__tstate);
23853 if (PyErr_Occurred()) SWIG_fail;
23854 }
23855 resultobj = SWIG_FromLong((long)result);
23856 return resultobj;
23857 fail:
23858 return NULL;
23859 }
23860
23861
23862 static PyObject *_wrap_GetUTCTime(PyObject *self, PyObject *args, PyObject *kwargs) {
23863 PyObject *resultobj;
23864 long result;
23865 char *kwnames[] = {
23866 NULL
23867 };
23868
23869 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUTCTime",kwnames)) goto fail;
23870 {
23871 PyThreadState* __tstate = wxPyBeginAllowThreads();
23872 result = (long)wxGetUTCTime();
23873
23874 wxPyEndAllowThreads(__tstate);
23875 if (PyErr_Occurred()) SWIG_fail;
23876 }
23877 resultobj = SWIG_FromLong((long)result);
23878 return resultobj;
23879 fail:
23880 return NULL;
23881 }
23882
23883
23884 static PyObject *_wrap_GetCurrentTime(PyObject *self, PyObject *args, PyObject *kwargs) {
23885 PyObject *resultobj;
23886 long result;
23887 char *kwnames[] = {
23888 NULL
23889 };
23890
23891 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetCurrentTime",kwnames)) goto fail;
23892 {
23893 PyThreadState* __tstate = wxPyBeginAllowThreads();
23894 result = (long)wxGetCurrentTime();
23895
23896 wxPyEndAllowThreads(__tstate);
23897 if (PyErr_Occurred()) SWIG_fail;
23898 }
23899 resultobj = SWIG_FromLong((long)result);
23900 return resultobj;
23901 fail:
23902 return NULL;
23903 }
23904
23905
23906 static PyObject *_wrap_GetLocalTimeMillis(PyObject *self, PyObject *args, PyObject *kwargs) {
23907 PyObject *resultobj;
23908 wxLongLong result;
23909 char *kwnames[] = {
23910 NULL
23911 };
23912
23913 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocalTimeMillis",kwnames)) goto fail;
23914 {
23915 PyThreadState* __tstate = wxPyBeginAllowThreads();
23916 result = wxGetLocalTimeMillis();
23917
23918 wxPyEndAllowThreads(__tstate);
23919 if (PyErr_Occurred()) SWIG_fail;
23920 }
23921 {
23922 PyObject *hi, *lo, *shifter, *shifted;
23923 hi = PyLong_FromLong( (&result)->GetHi() );
23924 lo = PyLong_FromLong( (&result)->GetLo() );
23925 shifter = PyLong_FromLong(32);
23926 shifted = PyNumber_Lshift(hi, shifter);
23927 resultobj = PyNumber_Or(shifted, lo);
23928 Py_DECREF(hi);
23929 Py_DECREF(lo);
23930 Py_DECREF(shifter);
23931 Py_DECREF(shifted);
23932 }
23933 return resultobj;
23934 fail:
23935 return NULL;
23936 }
23937
23938
23939 static int _wrap_DefaultDateTime_set(PyObject *_val) {
23940 PyErr_SetString(PyExc_TypeError,"Variable DefaultDateTime is read-only.");
23941 return 1;
23942 }
23943
23944
23945 static PyObject *_wrap_DefaultDateTime_get() {
23946 PyObject *pyobj;
23947
23948 pyobj = SWIG_NewPointerObj((void *)(&wxDefaultDateTime), SWIGTYPE_p_wxDateTime, 0);
23949 return pyobj;
23950 }
23951
23952
23953 static PyObject *_wrap_new_DataFormat(PyObject *self, PyObject *args, PyObject *kwargs) {
23954 PyObject *resultobj;
23955 int arg1 ;
23956 wxDataFormat *result;
23957 PyObject * obj0 = 0 ;
23958 char *kwnames[] = {
23959 (char *) "type", NULL
23960 };
23961
23962 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DataFormat",kwnames,&obj0)) goto fail;
23963 arg1 = (wxDataFormatId) SWIG_AsInt(obj0);
23964 if (PyErr_Occurred()) SWIG_fail;
23965 {
23966 PyThreadState* __tstate = wxPyBeginAllowThreads();
23967 result = (wxDataFormat *)new wxDataFormat((wxDataFormatId )arg1);
23968
23969 wxPyEndAllowThreads(__tstate);
23970 if (PyErr_Occurred()) SWIG_fail;
23971 }
23972 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataFormat, 1);
23973 return resultobj;
23974 fail:
23975 return NULL;
23976 }
23977
23978
23979 static PyObject *_wrap_new_CustomDataFormat(PyObject *self, PyObject *args, PyObject *kwargs) {
23980 PyObject *resultobj;
23981 wxString *arg1 = 0 ;
23982 wxDataFormat *result;
23983 bool temp1 = False ;
23984 PyObject * obj0 = 0 ;
23985 char *kwnames[] = {
23986 (char *) "format", NULL
23987 };
23988
23989 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CustomDataFormat",kwnames,&obj0)) goto fail;
23990 {
23991 arg1 = wxString_in_helper(obj0);
23992 if (arg1 == NULL) SWIG_fail;
23993 temp1 = True;
23994 }
23995 {
23996 PyThreadState* __tstate = wxPyBeginAllowThreads();
23997 result = (wxDataFormat *)new wxDataFormat((wxString const &)*arg1);
23998
23999 wxPyEndAllowThreads(__tstate);
24000 if (PyErr_Occurred()) SWIG_fail;
24001 }
24002 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataFormat, 1);
24003 {
24004 if (temp1)
24005 delete arg1;
24006 }
24007 return resultobj;
24008 fail:
24009 {
24010 if (temp1)
24011 delete arg1;
24012 }
24013 return NULL;
24014 }
24015
24016
24017 static PyObject *_wrap_delete_DataFormat(PyObject *self, PyObject *args, PyObject *kwargs) {
24018 PyObject *resultobj;
24019 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
24020 PyObject * obj0 = 0 ;
24021 char *kwnames[] = {
24022 (char *) "self", NULL
24023 };
24024
24025 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DataFormat",kwnames,&obj0)) goto fail;
24026 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24027 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24028 {
24029 PyThreadState* __tstate = wxPyBeginAllowThreads();
24030 delete arg1;
24031
24032 wxPyEndAllowThreads(__tstate);
24033 if (PyErr_Occurred()) SWIG_fail;
24034 }
24035 Py_INCREF(Py_None); resultobj = Py_None;
24036 return resultobj;
24037 fail:
24038 return NULL;
24039 }
24040
24041
24042 static PyObject *_wrap_DataFormat___eq____SWIG_0(PyObject *self, PyObject *args) {
24043 PyObject *resultobj;
24044 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
24045 int arg2 ;
24046 bool result;
24047 PyObject * obj0 = 0 ;
24048 PyObject * obj1 = 0 ;
24049
24050 if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___eq__",&obj0,&obj1)) goto fail;
24051 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24052 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24053 arg2 = (wxDataFormatId) SWIG_AsInt(obj1);
24054 if (PyErr_Occurred()) SWIG_fail;
24055 {
24056 PyThreadState* __tstate = wxPyBeginAllowThreads();
24057 result = (bool)((wxDataFormat const *)arg1)->operator ==((wxDataFormatId )arg2);
24058
24059 wxPyEndAllowThreads(__tstate);
24060 if (PyErr_Occurred()) SWIG_fail;
24061 }
24062 {
24063 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24064 }
24065 return resultobj;
24066 fail:
24067 return NULL;
24068 }
24069
24070
24071 static PyObject *_wrap_DataFormat___ne____SWIG_0(PyObject *self, PyObject *args) {
24072 PyObject *resultobj;
24073 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
24074 int arg2 ;
24075 bool result;
24076 PyObject * obj0 = 0 ;
24077 PyObject * obj1 = 0 ;
24078
24079 if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___ne__",&obj0,&obj1)) goto fail;
24080 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24081 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24082 arg2 = (wxDataFormatId) SWIG_AsInt(obj1);
24083 if (PyErr_Occurred()) SWIG_fail;
24084 {
24085 PyThreadState* __tstate = wxPyBeginAllowThreads();
24086 result = (bool)((wxDataFormat const *)arg1)->operator !=((wxDataFormatId )arg2);
24087
24088 wxPyEndAllowThreads(__tstate);
24089 if (PyErr_Occurred()) SWIG_fail;
24090 }
24091 {
24092 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24093 }
24094 return resultobj;
24095 fail:
24096 return NULL;
24097 }
24098
24099
24100 static PyObject *_wrap_DataFormat___eq____SWIG_1(PyObject *self, PyObject *args) {
24101 PyObject *resultobj;
24102 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
24103 wxDataFormat *arg2 = 0 ;
24104 bool result;
24105 PyObject * obj0 = 0 ;
24106 PyObject * obj1 = 0 ;
24107
24108 if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___eq__",&obj0,&obj1)) goto fail;
24109 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24110 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24111 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
24112 SWIG_POINTER_EXCEPTION | 0)) == -1)
24113 SWIG_fail;
24114 if (arg2 == NULL) {
24115 PyErr_SetString(PyExc_TypeError,"null reference");
24116 SWIG_fail;
24117 }
24118 {
24119 PyThreadState* __tstate = wxPyBeginAllowThreads();
24120 result = (bool)((wxDataFormat const *)arg1)->operator ==((wxDataFormat const &)*arg2);
24121
24122 wxPyEndAllowThreads(__tstate);
24123 if (PyErr_Occurred()) SWIG_fail;
24124 }
24125 {
24126 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24127 }
24128 return resultobj;
24129 fail:
24130 return NULL;
24131 }
24132
24133
24134 static PyObject *_wrap_DataFormat___eq__(PyObject *self, PyObject *args) {
24135 int argc;
24136 PyObject *argv[3];
24137 int ii;
24138
24139 argc = PyObject_Length(args);
24140 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
24141 argv[ii] = PyTuple_GetItem(args,ii);
24142 }
24143 if (argc == 2) {
24144 int _v;
24145 {
24146 void *ptr;
24147 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
24148 _v = 0;
24149 PyErr_Clear();
24150 } else {
24151 _v = 1;
24152 }
24153 }
24154 if (_v) {
24155 {
24156 void *ptr;
24157 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
24158 _v = 0;
24159 PyErr_Clear();
24160 } else {
24161 _v = 1;
24162 }
24163 }
24164 if (_v) {
24165 return _wrap_DataFormat___eq____SWIG_1(self,args);
24166 }
24167 }
24168 }
24169 if (argc == 2) {
24170 int _v;
24171 {
24172 void *ptr;
24173 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
24174 _v = 0;
24175 PyErr_Clear();
24176 } else {
24177 _v = 1;
24178 }
24179 }
24180 if (_v) {
24181 _v = SWIG_CheckInt(argv[1]);
24182 if (_v) {
24183 return _wrap_DataFormat___eq____SWIG_0(self,args);
24184 }
24185 }
24186 }
24187
24188 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DataFormat___eq__'");
24189 return NULL;
24190 }
24191
24192
24193 static PyObject *_wrap_DataFormat___ne____SWIG_1(PyObject *self, PyObject *args) {
24194 PyObject *resultobj;
24195 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
24196 wxDataFormat *arg2 = 0 ;
24197 bool result;
24198 PyObject * obj0 = 0 ;
24199 PyObject * obj1 = 0 ;
24200
24201 if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___ne__",&obj0,&obj1)) goto fail;
24202 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24203 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24204 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
24205 SWIG_POINTER_EXCEPTION | 0)) == -1)
24206 SWIG_fail;
24207 if (arg2 == NULL) {
24208 PyErr_SetString(PyExc_TypeError,"null reference");
24209 SWIG_fail;
24210 }
24211 {
24212 PyThreadState* __tstate = wxPyBeginAllowThreads();
24213 result = (bool)((wxDataFormat const *)arg1)->operator !=((wxDataFormat const &)*arg2);
24214
24215 wxPyEndAllowThreads(__tstate);
24216 if (PyErr_Occurred()) SWIG_fail;
24217 }
24218 {
24219 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24220 }
24221 return resultobj;
24222 fail:
24223 return NULL;
24224 }
24225
24226
24227 static PyObject *_wrap_DataFormat___ne__(PyObject *self, PyObject *args) {
24228 int argc;
24229 PyObject *argv[3];
24230 int ii;
24231
24232 argc = PyObject_Length(args);
24233 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
24234 argv[ii] = PyTuple_GetItem(args,ii);
24235 }
24236 if (argc == 2) {
24237 int _v;
24238 {
24239 void *ptr;
24240 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
24241 _v = 0;
24242 PyErr_Clear();
24243 } else {
24244 _v = 1;
24245 }
24246 }
24247 if (_v) {
24248 {
24249 void *ptr;
24250 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
24251 _v = 0;
24252 PyErr_Clear();
24253 } else {
24254 _v = 1;
24255 }
24256 }
24257 if (_v) {
24258 return _wrap_DataFormat___ne____SWIG_1(self,args);
24259 }
24260 }
24261 }
24262 if (argc == 2) {
24263 int _v;
24264 {
24265 void *ptr;
24266 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
24267 _v = 0;
24268 PyErr_Clear();
24269 } else {
24270 _v = 1;
24271 }
24272 }
24273 if (_v) {
24274 _v = SWIG_CheckInt(argv[1]);
24275 if (_v) {
24276 return _wrap_DataFormat___ne____SWIG_0(self,args);
24277 }
24278 }
24279 }
24280
24281 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DataFormat___ne__'");
24282 return NULL;
24283 }
24284
24285
24286 static PyObject *_wrap_DataFormat_SetType(PyObject *self, PyObject *args, PyObject *kwargs) {
24287 PyObject *resultobj;
24288 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
24289 int arg2 ;
24290 PyObject * obj0 = 0 ;
24291 PyObject * obj1 = 0 ;
24292 char *kwnames[] = {
24293 (char *) "self",(char *) "format", NULL
24294 };
24295
24296 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataFormat_SetType",kwnames,&obj0,&obj1)) goto fail;
24297 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24298 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24299 arg2 = (wxDataFormatId) SWIG_AsInt(obj1);
24300 if (PyErr_Occurred()) SWIG_fail;
24301 {
24302 PyThreadState* __tstate = wxPyBeginAllowThreads();
24303 (arg1)->SetType((wxDataFormatId )arg2);
24304
24305 wxPyEndAllowThreads(__tstate);
24306 if (PyErr_Occurred()) SWIG_fail;
24307 }
24308 Py_INCREF(Py_None); resultobj = Py_None;
24309 return resultobj;
24310 fail:
24311 return NULL;
24312 }
24313
24314
24315 static PyObject *_wrap_DataFormat_GetType(PyObject *self, PyObject *args, PyObject *kwargs) {
24316 PyObject *resultobj;
24317 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
24318 int result;
24319 PyObject * obj0 = 0 ;
24320 char *kwnames[] = {
24321 (char *) "self", NULL
24322 };
24323
24324 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataFormat_GetType",kwnames,&obj0)) goto fail;
24325 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24326 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24327 {
24328 PyThreadState* __tstate = wxPyBeginAllowThreads();
24329 result = (int)((wxDataFormat const *)arg1)->GetType();
24330
24331 wxPyEndAllowThreads(__tstate);
24332 if (PyErr_Occurred()) SWIG_fail;
24333 }
24334 resultobj = SWIG_FromInt((int)result);
24335 return resultobj;
24336 fail:
24337 return NULL;
24338 }
24339
24340
24341 static PyObject *_wrap_DataFormat_GetId(PyObject *self, PyObject *args, PyObject *kwargs) {
24342 PyObject *resultobj;
24343 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
24344 wxString result;
24345 PyObject * obj0 = 0 ;
24346 char *kwnames[] = {
24347 (char *) "self", NULL
24348 };
24349
24350 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataFormat_GetId",kwnames,&obj0)) goto fail;
24351 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24352 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24353 {
24354 PyThreadState* __tstate = wxPyBeginAllowThreads();
24355 result = ((wxDataFormat const *)arg1)->GetId();
24356
24357 wxPyEndAllowThreads(__tstate);
24358 if (PyErr_Occurred()) SWIG_fail;
24359 }
24360 {
24361 #if wxUSE_UNICODE
24362 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
24363 #else
24364 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
24365 #endif
24366 }
24367 return resultobj;
24368 fail:
24369 return NULL;
24370 }
24371
24372
24373 static PyObject *_wrap_DataFormat_SetId(PyObject *self, PyObject *args, PyObject *kwargs) {
24374 PyObject *resultobj;
24375 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
24376 wxString *arg2 = 0 ;
24377 bool temp2 = False ;
24378 PyObject * obj0 = 0 ;
24379 PyObject * obj1 = 0 ;
24380 char *kwnames[] = {
24381 (char *) "self",(char *) "format", NULL
24382 };
24383
24384 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataFormat_SetId",kwnames,&obj0,&obj1)) goto fail;
24385 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24386 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24387 {
24388 arg2 = wxString_in_helper(obj1);
24389 if (arg2 == NULL) SWIG_fail;
24390 temp2 = True;
24391 }
24392 {
24393 PyThreadState* __tstate = wxPyBeginAllowThreads();
24394 (arg1)->SetId((wxString const &)*arg2);
24395
24396 wxPyEndAllowThreads(__tstate);
24397 if (PyErr_Occurred()) SWIG_fail;
24398 }
24399 Py_INCREF(Py_None); resultobj = Py_None;
24400 {
24401 if (temp2)
24402 delete arg2;
24403 }
24404 return resultobj;
24405 fail:
24406 {
24407 if (temp2)
24408 delete arg2;
24409 }
24410 return NULL;
24411 }
24412
24413
24414 static PyObject * DataFormat_swigregister(PyObject *self, PyObject *args) {
24415 PyObject *obj;
24416 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24417 SWIG_TypeClientData(SWIGTYPE_p_wxDataFormat, obj);
24418 Py_INCREF(obj);
24419 return Py_BuildValue((char *)"");
24420 }
24421 static int _wrap_FormatInvalid_set(PyObject *_val) {
24422 PyErr_SetString(PyExc_TypeError,"Variable FormatInvalid is read-only.");
24423 return 1;
24424 }
24425
24426
24427 static PyObject *_wrap_FormatInvalid_get() {
24428 PyObject *pyobj;
24429
24430 pyobj = SWIG_NewPointerObj((void *)(&wxFormatInvalid), SWIGTYPE_p_wxDataFormat, 0);
24431 return pyobj;
24432 }
24433
24434
24435 static PyObject *_wrap_delete_DataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
24436 PyObject *resultobj;
24437 wxDataObject *arg1 = (wxDataObject *) 0 ;
24438 PyObject * obj0 = 0 ;
24439 char *kwnames[] = {
24440 (char *) "self", NULL
24441 };
24442
24443 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DataObject",kwnames,&obj0)) goto fail;
24444 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24445 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24446 {
24447 PyThreadState* __tstate = wxPyBeginAllowThreads();
24448 delete arg1;
24449
24450 wxPyEndAllowThreads(__tstate);
24451 if (PyErr_Occurred()) SWIG_fail;
24452 }
24453 Py_INCREF(Py_None); resultobj = Py_None;
24454 return resultobj;
24455 fail:
24456 return NULL;
24457 }
24458
24459
24460 static PyObject *_wrap_DataObject_GetPreferredFormat(PyObject *self, PyObject *args, PyObject *kwargs) {
24461 PyObject *resultobj;
24462 wxDataObject *arg1 = (wxDataObject *) 0 ;
24463 int arg2 = (int) wxDataObject::Get ;
24464 SwigValueWrapper< wxDataFormat > result;
24465 PyObject * obj0 = 0 ;
24466 PyObject * obj1 = 0 ;
24467 char *kwnames[] = {
24468 (char *) "self",(char *) "dir", NULL
24469 };
24470
24471 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DataObject_GetPreferredFormat",kwnames,&obj0,&obj1)) goto fail;
24472 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24473 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24474 if (obj1) {
24475 arg2 = (wxDataObject::Direction) SWIG_AsInt(obj1);
24476 if (PyErr_Occurred()) SWIG_fail;
24477 }
24478 {
24479 PyThreadState* __tstate = wxPyBeginAllowThreads();
24480 result = ((wxDataObject const *)arg1)->GetPreferredFormat((wxDataObject::Direction )arg2);
24481
24482 wxPyEndAllowThreads(__tstate);
24483 if (PyErr_Occurred()) SWIG_fail;
24484 }
24485 {
24486 wxDataFormat * resultptr;
24487 resultptr = new wxDataFormat((wxDataFormat &) result);
24488 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDataFormat, 1);
24489 }
24490 return resultobj;
24491 fail:
24492 return NULL;
24493 }
24494
24495
24496 static PyObject *_wrap_DataObject_GetFormatCount(PyObject *self, PyObject *args, PyObject *kwargs) {
24497 PyObject *resultobj;
24498 wxDataObject *arg1 = (wxDataObject *) 0 ;
24499 int arg2 = (int) wxDataObject::Get ;
24500 size_t result;
24501 PyObject * obj0 = 0 ;
24502 PyObject * obj1 = 0 ;
24503 char *kwnames[] = {
24504 (char *) "self",(char *) "dir", NULL
24505 };
24506
24507 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DataObject_GetFormatCount",kwnames,&obj0,&obj1)) goto fail;
24508 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24509 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24510 if (obj1) {
24511 arg2 = (wxDataObject::Direction) SWIG_AsInt(obj1);
24512 if (PyErr_Occurred()) SWIG_fail;
24513 }
24514 {
24515 PyThreadState* __tstate = wxPyBeginAllowThreads();
24516 result = (size_t)((wxDataObject const *)arg1)->GetFormatCount((wxDataObject::Direction )arg2);
24517
24518 wxPyEndAllowThreads(__tstate);
24519 if (PyErr_Occurred()) SWIG_fail;
24520 }
24521 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
24522 return resultobj;
24523 fail:
24524 return NULL;
24525 }
24526
24527
24528 static PyObject *_wrap_DataObject_IsSupported(PyObject *self, PyObject *args, PyObject *kwargs) {
24529 PyObject *resultobj;
24530 wxDataObject *arg1 = (wxDataObject *) 0 ;
24531 wxDataFormat *arg2 = 0 ;
24532 int arg3 = (int) wxDataObject::Get ;
24533 bool result;
24534 PyObject * obj0 = 0 ;
24535 PyObject * obj1 = 0 ;
24536 PyObject * obj2 = 0 ;
24537 char *kwnames[] = {
24538 (char *) "self",(char *) "format",(char *) "dir", NULL
24539 };
24540
24541 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DataObject_IsSupported",kwnames,&obj0,&obj1,&obj2)) goto fail;
24542 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24543 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24544 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
24545 SWIG_POINTER_EXCEPTION | 0)) == -1)
24546 SWIG_fail;
24547 if (arg2 == NULL) {
24548 PyErr_SetString(PyExc_TypeError,"null reference");
24549 SWIG_fail;
24550 }
24551 if (obj2) {
24552 arg3 = (wxDataObject::Direction) SWIG_AsInt(obj2);
24553 if (PyErr_Occurred()) SWIG_fail;
24554 }
24555 {
24556 PyThreadState* __tstate = wxPyBeginAllowThreads();
24557 result = (bool)((wxDataObject const *)arg1)->IsSupported((wxDataFormat const &)*arg2,(wxDataObject::Direction )arg3);
24558
24559 wxPyEndAllowThreads(__tstate);
24560 if (PyErr_Occurred()) SWIG_fail;
24561 }
24562 {
24563 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24564 }
24565 return resultobj;
24566 fail:
24567 return NULL;
24568 }
24569
24570
24571 static PyObject *_wrap_DataObject_GetDataSize(PyObject *self, PyObject *args, PyObject *kwargs) {
24572 PyObject *resultobj;
24573 wxDataObject *arg1 = (wxDataObject *) 0 ;
24574 wxDataFormat *arg2 = 0 ;
24575 size_t result;
24576 PyObject * obj0 = 0 ;
24577 PyObject * obj1 = 0 ;
24578 char *kwnames[] = {
24579 (char *) "self",(char *) "format", NULL
24580 };
24581
24582 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObject_GetDataSize",kwnames,&obj0,&obj1)) goto fail;
24583 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24584 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24585 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
24586 SWIG_POINTER_EXCEPTION | 0)) == -1)
24587 SWIG_fail;
24588 if (arg2 == NULL) {
24589 PyErr_SetString(PyExc_TypeError,"null reference");
24590 SWIG_fail;
24591 }
24592 {
24593 PyThreadState* __tstate = wxPyBeginAllowThreads();
24594 result = (size_t)((wxDataObject const *)arg1)->GetDataSize((wxDataFormat const &)*arg2);
24595
24596 wxPyEndAllowThreads(__tstate);
24597 if (PyErr_Occurred()) SWIG_fail;
24598 }
24599 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
24600 return resultobj;
24601 fail:
24602 return NULL;
24603 }
24604
24605
24606 static PyObject *_wrap_DataObject_GetAllFormats(PyObject *self, PyObject *args, PyObject *kwargs) {
24607 PyObject *resultobj;
24608 wxDataObject *arg1 = (wxDataObject *) 0 ;
24609 int arg2 = (int) wxDataObject::Get ;
24610 PyObject *result;
24611 PyObject * obj0 = 0 ;
24612 PyObject * obj1 = 0 ;
24613 char *kwnames[] = {
24614 (char *) "self",(char *) "dir", NULL
24615 };
24616
24617 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DataObject_GetAllFormats",kwnames,&obj0,&obj1)) goto fail;
24618 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24619 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24620 if (obj1) {
24621 arg2 = (wxDataObject::Direction) SWIG_AsInt(obj1);
24622 if (PyErr_Occurred()) SWIG_fail;
24623 }
24624 {
24625 PyThreadState* __tstate = wxPyBeginAllowThreads();
24626 result = (PyObject *)wxDataObject_GetAllFormats(arg1,(wxDataObject::Direction )arg2);
24627
24628 wxPyEndAllowThreads(__tstate);
24629 if (PyErr_Occurred()) SWIG_fail;
24630 }
24631 resultobj = result;
24632 return resultobj;
24633 fail:
24634 return NULL;
24635 }
24636
24637
24638 static PyObject *_wrap_DataObject_GetDataHere(PyObject *self, PyObject *args, PyObject *kwargs) {
24639 PyObject *resultobj;
24640 wxDataObject *arg1 = (wxDataObject *) 0 ;
24641 wxDataFormat *arg2 = 0 ;
24642 PyObject *result;
24643 PyObject * obj0 = 0 ;
24644 PyObject * obj1 = 0 ;
24645 char *kwnames[] = {
24646 (char *) "self",(char *) "format", NULL
24647 };
24648
24649 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObject_GetDataHere",kwnames,&obj0,&obj1)) goto fail;
24650 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24651 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24652 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
24653 SWIG_POINTER_EXCEPTION | 0)) == -1)
24654 SWIG_fail;
24655 if (arg2 == NULL) {
24656 PyErr_SetString(PyExc_TypeError,"null reference");
24657 SWIG_fail;
24658 }
24659 {
24660 PyThreadState* __tstate = wxPyBeginAllowThreads();
24661 result = (PyObject *)wxDataObject_GetDataHere(arg1,(wxDataFormat const &)*arg2);
24662
24663 wxPyEndAllowThreads(__tstate);
24664 if (PyErr_Occurred()) SWIG_fail;
24665 }
24666 resultobj = result;
24667 return resultobj;
24668 fail:
24669 return NULL;
24670 }
24671
24672
24673 static PyObject *_wrap_DataObject_SetData(PyObject *self, PyObject *args, PyObject *kwargs) {
24674 PyObject *resultobj;
24675 wxDataObject *arg1 = (wxDataObject *) 0 ;
24676 wxDataFormat *arg2 = 0 ;
24677 PyObject *arg3 = (PyObject *) 0 ;
24678 bool result;
24679 PyObject * obj0 = 0 ;
24680 PyObject * obj1 = 0 ;
24681 PyObject * obj2 = 0 ;
24682 char *kwnames[] = {
24683 (char *) "self",(char *) "format",(char *) "data", NULL
24684 };
24685
24686 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DataObject_SetData",kwnames,&obj0,&obj1,&obj2)) goto fail;
24687 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24688 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24689 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
24690 SWIG_POINTER_EXCEPTION | 0)) == -1)
24691 SWIG_fail;
24692 if (arg2 == NULL) {
24693 PyErr_SetString(PyExc_TypeError,"null reference");
24694 SWIG_fail;
24695 }
24696 arg3 = obj2;
24697 {
24698 PyThreadState* __tstate = wxPyBeginAllowThreads();
24699 result = (bool)wxDataObject_SetData(arg1,(wxDataFormat const &)*arg2,arg3);
24700
24701 wxPyEndAllowThreads(__tstate);
24702 if (PyErr_Occurred()) SWIG_fail;
24703 }
24704 {
24705 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24706 }
24707 return resultobj;
24708 fail:
24709 return NULL;
24710 }
24711
24712
24713 static PyObject * DataObject_swigregister(PyObject *self, PyObject *args) {
24714 PyObject *obj;
24715 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24716 SWIG_TypeClientData(SWIGTYPE_p_wxDataObject, obj);
24717 Py_INCREF(obj);
24718 return Py_BuildValue((char *)"");
24719 }
24720 static PyObject *_wrap_new_DataObjectSimple(PyObject *self, PyObject *args, PyObject *kwargs) {
24721 PyObject *resultobj;
24722 wxDataFormat const &arg1_defvalue = wxFormatInvalid ;
24723 wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ;
24724 wxDataObjectSimple *result;
24725 PyObject * obj0 = 0 ;
24726 char *kwnames[] = {
24727 (char *) "format", NULL
24728 };
24729
24730 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_DataObjectSimple",kwnames,&obj0)) goto fail;
24731 if (obj0) {
24732 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24733 SWIG_POINTER_EXCEPTION | 0)) == -1)
24734 SWIG_fail;
24735 if (arg1 == NULL) {
24736 PyErr_SetString(PyExc_TypeError,"null reference");
24737 SWIG_fail;
24738 }
24739 }
24740 {
24741 PyThreadState* __tstate = wxPyBeginAllowThreads();
24742 result = (wxDataObjectSimple *)new wxDataObjectSimple((wxDataFormat const &)*arg1);
24743
24744 wxPyEndAllowThreads(__tstate);
24745 if (PyErr_Occurred()) SWIG_fail;
24746 }
24747 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObjectSimple, 1);
24748 return resultobj;
24749 fail:
24750 return NULL;
24751 }
24752
24753
24754 static PyObject *_wrap_DataObjectSimple_GetFormat(PyObject *self, PyObject *args, PyObject *kwargs) {
24755 PyObject *resultobj;
24756 wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ;
24757 wxDataFormat *result;
24758 PyObject * obj0 = 0 ;
24759 char *kwnames[] = {
24760 (char *) "self", NULL
24761 };
24762
24763 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataObjectSimple_GetFormat",kwnames,&obj0)) goto fail;
24764 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple,
24765 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24766 {
24767 PyThreadState* __tstate = wxPyBeginAllowThreads();
24768 {
24769 wxDataFormat const &_result_ref = (arg1)->GetFormat();
24770 result = (wxDataFormat *) &_result_ref;
24771 }
24772
24773 wxPyEndAllowThreads(__tstate);
24774 if (PyErr_Occurred()) SWIG_fail;
24775 }
24776 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataFormat, 0);
24777 return resultobj;
24778 fail:
24779 return NULL;
24780 }
24781
24782
24783 static PyObject *_wrap_DataObjectSimple_SetFormat(PyObject *self, PyObject *args, PyObject *kwargs) {
24784 PyObject *resultobj;
24785 wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ;
24786 wxDataFormat *arg2 = 0 ;
24787 PyObject * obj0 = 0 ;
24788 PyObject * obj1 = 0 ;
24789 char *kwnames[] = {
24790 (char *) "self",(char *) "format", NULL
24791 };
24792
24793 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObjectSimple_SetFormat",kwnames,&obj0,&obj1)) goto fail;
24794 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple,
24795 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24796 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
24797 SWIG_POINTER_EXCEPTION | 0)) == -1)
24798 SWIG_fail;
24799 if (arg2 == NULL) {
24800 PyErr_SetString(PyExc_TypeError,"null reference");
24801 SWIG_fail;
24802 }
24803 {
24804 PyThreadState* __tstate = wxPyBeginAllowThreads();
24805 (arg1)->SetFormat((wxDataFormat const &)*arg2);
24806
24807 wxPyEndAllowThreads(__tstate);
24808 if (PyErr_Occurred()) SWIG_fail;
24809 }
24810 Py_INCREF(Py_None); resultobj = Py_None;
24811 return resultobj;
24812 fail:
24813 return NULL;
24814 }
24815
24816
24817 static PyObject *_wrap_DataObjectSimple_GetDataSize(PyObject *self, PyObject *args, PyObject *kwargs) {
24818 PyObject *resultobj;
24819 wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ;
24820 size_t result;
24821 PyObject * obj0 = 0 ;
24822 char *kwnames[] = {
24823 (char *) "self", NULL
24824 };
24825
24826 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataObjectSimple_GetDataSize",kwnames,&obj0)) goto fail;
24827 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple,
24828 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24829 {
24830 PyThreadState* __tstate = wxPyBeginAllowThreads();
24831 result = (size_t)((wxDataObjectSimple const *)arg1)->GetDataSize();
24832
24833 wxPyEndAllowThreads(__tstate);
24834 if (PyErr_Occurred()) SWIG_fail;
24835 }
24836 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
24837 return resultobj;
24838 fail:
24839 return NULL;
24840 }
24841
24842
24843 static PyObject *_wrap_DataObjectSimple_GetDataHere(PyObject *self, PyObject *args, PyObject *kwargs) {
24844 PyObject *resultobj;
24845 wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ;
24846 PyObject *result;
24847 PyObject * obj0 = 0 ;
24848 char *kwnames[] = {
24849 (char *) "self", NULL
24850 };
24851
24852 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataObjectSimple_GetDataHere",kwnames,&obj0)) goto fail;
24853 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple,
24854 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24855 {
24856 PyThreadState* __tstate = wxPyBeginAllowThreads();
24857 result = (PyObject *)wxDataObjectSimple_GetDataHere(arg1);
24858
24859 wxPyEndAllowThreads(__tstate);
24860 if (PyErr_Occurred()) SWIG_fail;
24861 }
24862 resultobj = result;
24863 return resultobj;
24864 fail:
24865 return NULL;
24866 }
24867
24868
24869 static PyObject *_wrap_DataObjectSimple_SetData(PyObject *self, PyObject *args, PyObject *kwargs) {
24870 PyObject *resultobj;
24871 wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ;
24872 PyObject *arg2 = (PyObject *) 0 ;
24873 bool result;
24874 PyObject * obj0 = 0 ;
24875 PyObject * obj1 = 0 ;
24876 char *kwnames[] = {
24877 (char *) "self",(char *) "data", NULL
24878 };
24879
24880 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObjectSimple_SetData",kwnames,&obj0,&obj1)) goto fail;
24881 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple,
24882 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24883 arg2 = obj1;
24884 {
24885 PyThreadState* __tstate = wxPyBeginAllowThreads();
24886 result = (bool)wxDataObjectSimple_SetData(arg1,arg2);
24887
24888 wxPyEndAllowThreads(__tstate);
24889 if (PyErr_Occurred()) SWIG_fail;
24890 }
24891 {
24892 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24893 }
24894 return resultobj;
24895 fail:
24896 return NULL;
24897 }
24898
24899
24900 static PyObject * DataObjectSimple_swigregister(PyObject *self, PyObject *args) {
24901 PyObject *obj;
24902 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24903 SWIG_TypeClientData(SWIGTYPE_p_wxDataObjectSimple, obj);
24904 Py_INCREF(obj);
24905 return Py_BuildValue((char *)"");
24906 }
24907 static PyObject *_wrap_new_PyDataObjectSimple(PyObject *self, PyObject *args, PyObject *kwargs) {
24908 PyObject *resultobj;
24909 wxDataFormat const &arg1_defvalue = wxFormatInvalid ;
24910 wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ;
24911 wxPyDataObjectSimple *result;
24912 PyObject * obj0 = 0 ;
24913 char *kwnames[] = {
24914 (char *) "format", NULL
24915 };
24916
24917 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyDataObjectSimple",kwnames,&obj0)) goto fail;
24918 if (obj0) {
24919 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24920 SWIG_POINTER_EXCEPTION | 0)) == -1)
24921 SWIG_fail;
24922 if (arg1 == NULL) {
24923 PyErr_SetString(PyExc_TypeError,"null reference");
24924 SWIG_fail;
24925 }
24926 }
24927 {
24928 PyThreadState* __tstate = wxPyBeginAllowThreads();
24929 result = (wxPyDataObjectSimple *)new wxPyDataObjectSimple((wxDataFormat const &)*arg1);
24930
24931 wxPyEndAllowThreads(__tstate);
24932 if (PyErr_Occurred()) SWIG_fail;
24933 }
24934 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDataObjectSimple, 1);
24935 return resultobj;
24936 fail:
24937 return NULL;
24938 }
24939
24940
24941 static PyObject *_wrap_PyDataObjectSimple__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
24942 PyObject *resultobj;
24943 wxPyDataObjectSimple *arg1 = (wxPyDataObjectSimple *) 0 ;
24944 PyObject *arg2 = (PyObject *) 0 ;
24945 PyObject *arg3 = (PyObject *) 0 ;
24946 PyObject * obj0 = 0 ;
24947 PyObject * obj1 = 0 ;
24948 PyObject * obj2 = 0 ;
24949 char *kwnames[] = {
24950 (char *) "self",(char *) "self",(char *) "_class", NULL
24951 };
24952
24953 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyDataObjectSimple__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
24954 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDataObjectSimple,
24955 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24956 arg2 = obj1;
24957 arg3 = obj2;
24958 {
24959 PyThreadState* __tstate = wxPyBeginAllowThreads();
24960 (arg1)->_setCallbackInfo(arg2,arg3);
24961
24962 wxPyEndAllowThreads(__tstate);
24963 if (PyErr_Occurred()) SWIG_fail;
24964 }
24965 Py_INCREF(Py_None); resultobj = Py_None;
24966 return resultobj;
24967 fail:
24968 return NULL;
24969 }
24970
24971
24972 static PyObject * PyDataObjectSimple_swigregister(PyObject *self, PyObject *args) {
24973 PyObject *obj;
24974 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24975 SWIG_TypeClientData(SWIGTYPE_p_wxPyDataObjectSimple, obj);
24976 Py_INCREF(obj);
24977 return Py_BuildValue((char *)"");
24978 }
24979 static PyObject *_wrap_new_DataObjectComposite(PyObject *self, PyObject *args, PyObject *kwargs) {
24980 PyObject *resultobj;
24981 wxDataObjectComposite *result;
24982 char *kwnames[] = {
24983 NULL
24984 };
24985
24986 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DataObjectComposite",kwnames)) goto fail;
24987 {
24988 PyThreadState* __tstate = wxPyBeginAllowThreads();
24989 result = (wxDataObjectComposite *)new wxDataObjectComposite();
24990
24991 wxPyEndAllowThreads(__tstate);
24992 if (PyErr_Occurred()) SWIG_fail;
24993 }
24994 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObjectComposite, 1);
24995 return resultobj;
24996 fail:
24997 return NULL;
24998 }
24999
25000
25001 static PyObject *_wrap_DataObjectComposite_Add(PyObject *self, PyObject *args, PyObject *kwargs) {
25002 PyObject *resultobj;
25003 wxDataObjectComposite *arg1 = (wxDataObjectComposite *) 0 ;
25004 wxDataObjectSimple *arg2 = (wxDataObjectSimple *) 0 ;
25005 bool arg3 = (bool) False ;
25006 PyObject * obj0 = 0 ;
25007 PyObject * obj1 = 0 ;
25008 PyObject * obj2 = 0 ;
25009 char *kwnames[] = {
25010 (char *) "self",(char *) "dataObject",(char *) "preferred", NULL
25011 };
25012
25013 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DataObjectComposite_Add",kwnames,&obj0,&obj1,&obj2)) goto fail;
25014 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectComposite,
25015 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25016 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObjectSimple,
25017 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
25018 if (obj2) {
25019 arg3 = (bool) SWIG_AsBool(obj2);
25020 if (PyErr_Occurred()) SWIG_fail;
25021 }
25022 {
25023 PyThreadState* __tstate = wxPyBeginAllowThreads();
25024 (arg1)->Add(arg2,arg3);
25025
25026 wxPyEndAllowThreads(__tstate);
25027 if (PyErr_Occurred()) SWIG_fail;
25028 }
25029 Py_INCREF(Py_None); resultobj = Py_None;
25030 return resultobj;
25031 fail:
25032 return NULL;
25033 }
25034
25035
25036 static PyObject * DataObjectComposite_swigregister(PyObject *self, PyObject *args) {
25037 PyObject *obj;
25038 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25039 SWIG_TypeClientData(SWIGTYPE_p_wxDataObjectComposite, obj);
25040 Py_INCREF(obj);
25041 return Py_BuildValue((char *)"");
25042 }
25043 static PyObject *_wrap_new_TextDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
25044 PyObject *resultobj;
25045 wxString const &arg1_defvalue = wxPyEmptyString ;
25046 wxString *arg1 = (wxString *) &arg1_defvalue ;
25047 wxTextDataObject *result;
25048 bool temp1 = False ;
25049 PyObject * obj0 = 0 ;
25050 char *kwnames[] = {
25051 (char *) "text", NULL
25052 };
25053
25054 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TextDataObject",kwnames,&obj0)) goto fail;
25055 if (obj0) {
25056 {
25057 arg1 = wxString_in_helper(obj0);
25058 if (arg1 == NULL) SWIG_fail;
25059 temp1 = True;
25060 }
25061 }
25062 {
25063 PyThreadState* __tstate = wxPyBeginAllowThreads();
25064 result = (wxTextDataObject *)new wxTextDataObject((wxString const &)*arg1);
25065
25066 wxPyEndAllowThreads(__tstate);
25067 if (PyErr_Occurred()) SWIG_fail;
25068 }
25069 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextDataObject, 1);
25070 {
25071 if (temp1)
25072 delete arg1;
25073 }
25074 return resultobj;
25075 fail:
25076 {
25077 if (temp1)
25078 delete arg1;
25079 }
25080 return NULL;
25081 }
25082
25083
25084 static PyObject *_wrap_TextDataObject_GetTextLength(PyObject *self, PyObject *args, PyObject *kwargs) {
25085 PyObject *resultobj;
25086 wxTextDataObject *arg1 = (wxTextDataObject *) 0 ;
25087 size_t result;
25088 PyObject * obj0 = 0 ;
25089 char *kwnames[] = {
25090 (char *) "self", NULL
25091 };
25092
25093 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDataObject_GetTextLength",kwnames,&obj0)) goto fail;
25094 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextDataObject,
25095 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25096 {
25097 PyThreadState* __tstate = wxPyBeginAllowThreads();
25098 result = (size_t)(arg1)->GetTextLength();
25099
25100 wxPyEndAllowThreads(__tstate);
25101 if (PyErr_Occurred()) SWIG_fail;
25102 }
25103 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
25104 return resultobj;
25105 fail:
25106 return NULL;
25107 }
25108
25109
25110 static PyObject *_wrap_TextDataObject_GetText(PyObject *self, PyObject *args, PyObject *kwargs) {
25111 PyObject *resultobj;
25112 wxTextDataObject *arg1 = (wxTextDataObject *) 0 ;
25113 wxString result;
25114 PyObject * obj0 = 0 ;
25115 char *kwnames[] = {
25116 (char *) "self", NULL
25117 };
25118
25119 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDataObject_GetText",kwnames,&obj0)) goto fail;
25120 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextDataObject,
25121 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25122 {
25123 PyThreadState* __tstate = wxPyBeginAllowThreads();
25124 result = (arg1)->GetText();
25125
25126 wxPyEndAllowThreads(__tstate);
25127 if (PyErr_Occurred()) SWIG_fail;
25128 }
25129 {
25130 #if wxUSE_UNICODE
25131 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
25132 #else
25133 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
25134 #endif
25135 }
25136 return resultobj;
25137 fail:
25138 return NULL;
25139 }
25140
25141
25142 static PyObject *_wrap_TextDataObject_SetText(PyObject *self, PyObject *args, PyObject *kwargs) {
25143 PyObject *resultobj;
25144 wxTextDataObject *arg1 = (wxTextDataObject *) 0 ;
25145 wxString *arg2 = 0 ;
25146 bool temp2 = False ;
25147 PyObject * obj0 = 0 ;
25148 PyObject * obj1 = 0 ;
25149 char *kwnames[] = {
25150 (char *) "self",(char *) "text", NULL
25151 };
25152
25153 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextDataObject_SetText",kwnames,&obj0,&obj1)) goto fail;
25154 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextDataObject,
25155 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25156 {
25157 arg2 = wxString_in_helper(obj1);
25158 if (arg2 == NULL) SWIG_fail;
25159 temp2 = True;
25160 }
25161 {
25162 PyThreadState* __tstate = wxPyBeginAllowThreads();
25163 (arg1)->SetText((wxString const &)*arg2);
25164
25165 wxPyEndAllowThreads(__tstate);
25166 if (PyErr_Occurred()) SWIG_fail;
25167 }
25168 Py_INCREF(Py_None); resultobj = Py_None;
25169 {
25170 if (temp2)
25171 delete arg2;
25172 }
25173 return resultobj;
25174 fail:
25175 {
25176 if (temp2)
25177 delete arg2;
25178 }
25179 return NULL;
25180 }
25181
25182
25183 static PyObject * TextDataObject_swigregister(PyObject *self, PyObject *args) {
25184 PyObject *obj;
25185 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25186 SWIG_TypeClientData(SWIGTYPE_p_wxTextDataObject, obj);
25187 Py_INCREF(obj);
25188 return Py_BuildValue((char *)"");
25189 }
25190 static PyObject *_wrap_new_PyTextDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
25191 PyObject *resultobj;
25192 wxString const &arg1_defvalue = wxPyEmptyString ;
25193 wxString *arg1 = (wxString *) &arg1_defvalue ;
25194 wxPyTextDataObject *result;
25195 bool temp1 = False ;
25196 PyObject * obj0 = 0 ;
25197 char *kwnames[] = {
25198 (char *) "text", NULL
25199 };
25200
25201 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyTextDataObject",kwnames,&obj0)) goto fail;
25202 if (obj0) {
25203 {
25204 arg1 = wxString_in_helper(obj0);
25205 if (arg1 == NULL) SWIG_fail;
25206 temp1 = True;
25207 }
25208 }
25209 {
25210 PyThreadState* __tstate = wxPyBeginAllowThreads();
25211 result = (wxPyTextDataObject *)new wxPyTextDataObject((wxString const &)*arg1);
25212
25213 wxPyEndAllowThreads(__tstate);
25214 if (PyErr_Occurred()) SWIG_fail;
25215 }
25216 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTextDataObject, 1);
25217 {
25218 if (temp1)
25219 delete arg1;
25220 }
25221 return resultobj;
25222 fail:
25223 {
25224 if (temp1)
25225 delete arg1;
25226 }
25227 return NULL;
25228 }
25229
25230
25231 static PyObject *_wrap_PyTextDataObject__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
25232 PyObject *resultobj;
25233 wxPyTextDataObject *arg1 = (wxPyTextDataObject *) 0 ;
25234 PyObject *arg2 = (PyObject *) 0 ;
25235 PyObject *arg3 = (PyObject *) 0 ;
25236 PyObject * obj0 = 0 ;
25237 PyObject * obj1 = 0 ;
25238 PyObject * obj2 = 0 ;
25239 char *kwnames[] = {
25240 (char *) "self",(char *) "self",(char *) "_class", NULL
25241 };
25242
25243 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyTextDataObject__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
25244 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDataObject,
25245 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25246 arg2 = obj1;
25247 arg3 = obj2;
25248 {
25249 PyThreadState* __tstate = wxPyBeginAllowThreads();
25250 (arg1)->_setCallbackInfo(arg2,arg3);
25251
25252 wxPyEndAllowThreads(__tstate);
25253 if (PyErr_Occurred()) SWIG_fail;
25254 }
25255 Py_INCREF(Py_None); resultobj = Py_None;
25256 return resultobj;
25257 fail:
25258 return NULL;
25259 }
25260
25261
25262 static PyObject * PyTextDataObject_swigregister(PyObject *self, PyObject *args) {
25263 PyObject *obj;
25264 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25265 SWIG_TypeClientData(SWIGTYPE_p_wxPyTextDataObject, obj);
25266 Py_INCREF(obj);
25267 return Py_BuildValue((char *)"");
25268 }
25269 static PyObject *_wrap_new_BitmapDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
25270 PyObject *resultobj;
25271 wxBitmap const &arg1_defvalue = wxNullBitmap ;
25272 wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ;
25273 wxBitmapDataObject *result;
25274 PyObject * obj0 = 0 ;
25275 char *kwnames[] = {
25276 (char *) "bitmap", NULL
25277 };
25278
25279 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BitmapDataObject",kwnames,&obj0)) goto fail;
25280 if (obj0) {
25281 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
25282 SWIG_POINTER_EXCEPTION | 0)) == -1)
25283 SWIG_fail;
25284 if (arg1 == NULL) {
25285 PyErr_SetString(PyExc_TypeError,"null reference");
25286 SWIG_fail;
25287 }
25288 }
25289 {
25290 PyThreadState* __tstate = wxPyBeginAllowThreads();
25291 result = (wxBitmapDataObject *)new wxBitmapDataObject((wxBitmap const &)*arg1);
25292
25293 wxPyEndAllowThreads(__tstate);
25294 if (PyErr_Occurred()) SWIG_fail;
25295 }
25296 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmapDataObject, 1);
25297 return resultobj;
25298 fail:
25299 return NULL;
25300 }
25301
25302
25303 static PyObject *_wrap_BitmapDataObject_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
25304 PyObject *resultobj;
25305 wxBitmapDataObject *arg1 = (wxBitmapDataObject *) 0 ;
25306 wxBitmap result;
25307 PyObject * obj0 = 0 ;
25308 char *kwnames[] = {
25309 (char *) "self", NULL
25310 };
25311
25312 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapDataObject_GetBitmap",kwnames,&obj0)) goto fail;
25313 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapDataObject,
25314 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25315 {
25316 PyThreadState* __tstate = wxPyBeginAllowThreads();
25317 result = ((wxBitmapDataObject const *)arg1)->GetBitmap();
25318
25319 wxPyEndAllowThreads(__tstate);
25320 if (PyErr_Occurred()) SWIG_fail;
25321 }
25322 {
25323 wxBitmap * resultptr;
25324 resultptr = new wxBitmap((wxBitmap &) result);
25325 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
25326 }
25327 return resultobj;
25328 fail:
25329 return NULL;
25330 }
25331
25332
25333 static PyObject *_wrap_BitmapDataObject_SetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
25334 PyObject *resultobj;
25335 wxBitmapDataObject *arg1 = (wxBitmapDataObject *) 0 ;
25336 wxBitmap *arg2 = 0 ;
25337 PyObject * obj0 = 0 ;
25338 PyObject * obj1 = 0 ;
25339 char *kwnames[] = {
25340 (char *) "self",(char *) "bitmap", NULL
25341 };
25342
25343 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapDataObject_SetBitmap",kwnames,&obj0,&obj1)) goto fail;
25344 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapDataObject,
25345 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25346 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
25347 SWIG_POINTER_EXCEPTION | 0)) == -1)
25348 SWIG_fail;
25349 if (arg2 == NULL) {
25350 PyErr_SetString(PyExc_TypeError,"null reference");
25351 SWIG_fail;
25352 }
25353 {
25354 PyThreadState* __tstate = wxPyBeginAllowThreads();
25355 (arg1)->SetBitmap((wxBitmap const &)*arg2);
25356
25357 wxPyEndAllowThreads(__tstate);
25358 if (PyErr_Occurred()) SWIG_fail;
25359 }
25360 Py_INCREF(Py_None); resultobj = Py_None;
25361 return resultobj;
25362 fail:
25363 return NULL;
25364 }
25365
25366
25367 static PyObject * BitmapDataObject_swigregister(PyObject *self, PyObject *args) {
25368 PyObject *obj;
25369 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25370 SWIG_TypeClientData(SWIGTYPE_p_wxBitmapDataObject, obj);
25371 Py_INCREF(obj);
25372 return Py_BuildValue((char *)"");
25373 }
25374 static PyObject *_wrap_new_PyBitmapDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
25375 PyObject *resultobj;
25376 wxBitmap const &arg1_defvalue = wxNullBitmap ;
25377 wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ;
25378 wxPyBitmapDataObject *result;
25379 PyObject * obj0 = 0 ;
25380 char *kwnames[] = {
25381 (char *) "bitmap", NULL
25382 };
25383
25384 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyBitmapDataObject",kwnames,&obj0)) goto fail;
25385 if (obj0) {
25386 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
25387 SWIG_POINTER_EXCEPTION | 0)) == -1)
25388 SWIG_fail;
25389 if (arg1 == NULL) {
25390 PyErr_SetString(PyExc_TypeError,"null reference");
25391 SWIG_fail;
25392 }
25393 }
25394 {
25395 PyThreadState* __tstate = wxPyBeginAllowThreads();
25396 result = (wxPyBitmapDataObject *)new wxPyBitmapDataObject((wxBitmap const &)*arg1);
25397
25398 wxPyEndAllowThreads(__tstate);
25399 if (PyErr_Occurred()) SWIG_fail;
25400 }
25401 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyBitmapDataObject, 1);
25402 return resultobj;
25403 fail:
25404 return NULL;
25405 }
25406
25407
25408 static PyObject *_wrap_PyBitmapDataObject__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
25409 PyObject *resultobj;
25410 wxPyBitmapDataObject *arg1 = (wxPyBitmapDataObject *) 0 ;
25411 PyObject *arg2 = (PyObject *) 0 ;
25412 PyObject *arg3 = (PyObject *) 0 ;
25413 PyObject * obj0 = 0 ;
25414 PyObject * obj1 = 0 ;
25415 PyObject * obj2 = 0 ;
25416 char *kwnames[] = {
25417 (char *) "self",(char *) "self",(char *) "_class", NULL
25418 };
25419
25420 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyBitmapDataObject__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
25421 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyBitmapDataObject,
25422 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25423 arg2 = obj1;
25424 arg3 = obj2;
25425 {
25426 PyThreadState* __tstate = wxPyBeginAllowThreads();
25427 (arg1)->_setCallbackInfo(arg2,arg3);
25428
25429 wxPyEndAllowThreads(__tstate);
25430 if (PyErr_Occurred()) SWIG_fail;
25431 }
25432 Py_INCREF(Py_None); resultobj = Py_None;
25433 return resultobj;
25434 fail:
25435 return NULL;
25436 }
25437
25438
25439 static PyObject * PyBitmapDataObject_swigregister(PyObject *self, PyObject *args) {
25440 PyObject *obj;
25441 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25442 SWIG_TypeClientData(SWIGTYPE_p_wxPyBitmapDataObject, obj);
25443 Py_INCREF(obj);
25444 return Py_BuildValue((char *)"");
25445 }
25446 static PyObject *_wrap_new_FileDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
25447 PyObject *resultobj;
25448 wxFileDataObject *result;
25449 char *kwnames[] = {
25450 NULL
25451 };
25452
25453 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileDataObject",kwnames)) goto fail;
25454 {
25455 PyThreadState* __tstate = wxPyBeginAllowThreads();
25456 result = (wxFileDataObject *)new wxFileDataObject();
25457
25458 wxPyEndAllowThreads(__tstate);
25459 if (PyErr_Occurred()) SWIG_fail;
25460 }
25461 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileDataObject, 1);
25462 return resultobj;
25463 fail:
25464 return NULL;
25465 }
25466
25467
25468 static PyObject *_wrap_FileDataObject_GetFilenames(PyObject *self, PyObject *args, PyObject *kwargs) {
25469 PyObject *resultobj;
25470 wxFileDataObject *arg1 = (wxFileDataObject *) 0 ;
25471 wxArrayString *result;
25472 PyObject * obj0 = 0 ;
25473 char *kwnames[] = {
25474 (char *) "self", NULL
25475 };
25476
25477 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDataObject_GetFilenames",kwnames,&obj0)) goto fail;
25478 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDataObject,
25479 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25480 {
25481 PyThreadState* __tstate = wxPyBeginAllowThreads();
25482 {
25483 wxArrayString const &_result_ref = (arg1)->GetFilenames();
25484 result = (wxArrayString *) &_result_ref;
25485 }
25486
25487 wxPyEndAllowThreads(__tstate);
25488 if (PyErr_Occurred()) SWIG_fail;
25489 }
25490 {
25491 resultobj = wxArrayString2PyList_helper(*result);
25492 }
25493 return resultobj;
25494 fail:
25495 return NULL;
25496 }
25497
25498
25499 static PyObject *_wrap_FileDataObject_AddFile(PyObject *self, PyObject *args, PyObject *kwargs) {
25500 PyObject *resultobj;
25501 wxFileDataObject *arg1 = (wxFileDataObject *) 0 ;
25502 wxString *arg2 = 0 ;
25503 bool temp2 = False ;
25504 PyObject * obj0 = 0 ;
25505 PyObject * obj1 = 0 ;
25506 char *kwnames[] = {
25507 (char *) "self",(char *) "filename", NULL
25508 };
25509
25510 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDataObject_AddFile",kwnames,&obj0,&obj1)) goto fail;
25511 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDataObject,
25512 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25513 {
25514 arg2 = wxString_in_helper(obj1);
25515 if (arg2 == NULL) SWIG_fail;
25516 temp2 = True;
25517 }
25518 {
25519 PyThreadState* __tstate = wxPyBeginAllowThreads();
25520 (arg1)->AddFile((wxString const &)*arg2);
25521
25522 wxPyEndAllowThreads(__tstate);
25523 if (PyErr_Occurred()) SWIG_fail;
25524 }
25525 Py_INCREF(Py_None); resultobj = Py_None;
25526 {
25527 if (temp2)
25528 delete arg2;
25529 }
25530 return resultobj;
25531 fail:
25532 {
25533 if (temp2)
25534 delete arg2;
25535 }
25536 return NULL;
25537 }
25538
25539
25540 static PyObject * FileDataObject_swigregister(PyObject *self, PyObject *args) {
25541 PyObject *obj;
25542 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25543 SWIG_TypeClientData(SWIGTYPE_p_wxFileDataObject, obj);
25544 Py_INCREF(obj);
25545 return Py_BuildValue((char *)"");
25546 }
25547 static PyObject *_wrap_new_CustomDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
25548 PyObject *resultobj;
25549 wxDataFormat const &arg1_defvalue = wxFormatInvalid ;
25550 wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ;
25551 wxCustomDataObject *result;
25552 PyObject * obj0 = 0 ;
25553 char *kwnames[] = {
25554 (char *) "format", NULL
25555 };
25556
25557 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_CustomDataObject",kwnames,&obj0)) goto fail;
25558 if (obj0) {
25559 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
25560 SWIG_POINTER_EXCEPTION | 0)) == -1)
25561 SWIG_fail;
25562 if (arg1 == NULL) {
25563 PyErr_SetString(PyExc_TypeError,"null reference");
25564 SWIG_fail;
25565 }
25566 }
25567 {
25568 PyThreadState* __tstate = wxPyBeginAllowThreads();
25569 result = (wxCustomDataObject *)new wxCustomDataObject((wxDataFormat const &)*arg1);
25570
25571 wxPyEndAllowThreads(__tstate);
25572 if (PyErr_Occurred()) SWIG_fail;
25573 }
25574 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCustomDataObject, 1);
25575 return resultobj;
25576 fail:
25577 return NULL;
25578 }
25579
25580
25581 static PyObject *_wrap_CustomDataObject_SetData(PyObject *self, PyObject *args, PyObject *kwargs) {
25582 PyObject *resultobj;
25583 wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ;
25584 PyObject *arg2 = (PyObject *) 0 ;
25585 bool result;
25586 PyObject * obj0 = 0 ;
25587 PyObject * obj1 = 0 ;
25588 char *kwnames[] = {
25589 (char *) "self",(char *) "data", NULL
25590 };
25591
25592 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CustomDataObject_SetData",kwnames,&obj0,&obj1)) goto fail;
25593 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCustomDataObject,
25594 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25595 arg2 = obj1;
25596 {
25597 PyThreadState* __tstate = wxPyBeginAllowThreads();
25598 result = (bool)wxCustomDataObject_SetData(arg1,arg2);
25599
25600 wxPyEndAllowThreads(__tstate);
25601 if (PyErr_Occurred()) SWIG_fail;
25602 }
25603 {
25604 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25605 }
25606 return resultobj;
25607 fail:
25608 return NULL;
25609 }
25610
25611
25612 static PyObject *_wrap_CustomDataObject_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
25613 PyObject *resultobj;
25614 wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ;
25615 size_t result;
25616 PyObject * obj0 = 0 ;
25617 char *kwnames[] = {
25618 (char *) "self", NULL
25619 };
25620
25621 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CustomDataObject_GetSize",kwnames,&obj0)) goto fail;
25622 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCustomDataObject,
25623 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25624 {
25625 PyThreadState* __tstate = wxPyBeginAllowThreads();
25626 result = (size_t)(arg1)->GetSize();
25627
25628 wxPyEndAllowThreads(__tstate);
25629 if (PyErr_Occurred()) SWIG_fail;
25630 }
25631 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
25632 return resultobj;
25633 fail:
25634 return NULL;
25635 }
25636
25637
25638 static PyObject *_wrap_CustomDataObject_GetData(PyObject *self, PyObject *args, PyObject *kwargs) {
25639 PyObject *resultobj;
25640 wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ;
25641 PyObject *result;
25642 PyObject * obj0 = 0 ;
25643 char *kwnames[] = {
25644 (char *) "self", NULL
25645 };
25646
25647 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CustomDataObject_GetData",kwnames,&obj0)) goto fail;
25648 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCustomDataObject,
25649 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25650 {
25651 PyThreadState* __tstate = wxPyBeginAllowThreads();
25652 result = (PyObject *)wxCustomDataObject_GetData(arg1);
25653
25654 wxPyEndAllowThreads(__tstate);
25655 if (PyErr_Occurred()) SWIG_fail;
25656 }
25657 resultobj = result;
25658 return resultobj;
25659 fail:
25660 return NULL;
25661 }
25662
25663
25664 static PyObject * CustomDataObject_swigregister(PyObject *self, PyObject *args) {
25665 PyObject *obj;
25666 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25667 SWIG_TypeClientData(SWIGTYPE_p_wxCustomDataObject, obj);
25668 Py_INCREF(obj);
25669 return Py_BuildValue((char *)"");
25670 }
25671 static PyObject *_wrap_new_URLDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
25672 PyObject *resultobj;
25673 wxURLDataObject *result;
25674 char *kwnames[] = {
25675 NULL
25676 };
25677
25678 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_URLDataObject",kwnames)) goto fail;
25679 {
25680 PyThreadState* __tstate = wxPyBeginAllowThreads();
25681 result = (wxURLDataObject *)new wxURLDataObject();
25682
25683 wxPyEndAllowThreads(__tstate);
25684 if (PyErr_Occurred()) SWIG_fail;
25685 }
25686 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxURLDataObject, 1);
25687 return resultobj;
25688 fail:
25689 return NULL;
25690 }
25691
25692
25693 static PyObject *_wrap_URLDataObject_GetURL(PyObject *self, PyObject *args, PyObject *kwargs) {
25694 PyObject *resultobj;
25695 wxURLDataObject *arg1 = (wxURLDataObject *) 0 ;
25696 wxString result;
25697 PyObject * obj0 = 0 ;
25698 char *kwnames[] = {
25699 (char *) "self", NULL
25700 };
25701
25702 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:URLDataObject_GetURL",kwnames,&obj0)) goto fail;
25703 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxURLDataObject,
25704 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25705 {
25706 PyThreadState* __tstate = wxPyBeginAllowThreads();
25707 result = (arg1)->GetURL();
25708
25709 wxPyEndAllowThreads(__tstate);
25710 if (PyErr_Occurred()) SWIG_fail;
25711 }
25712 {
25713 #if wxUSE_UNICODE
25714 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
25715 #else
25716 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
25717 #endif
25718 }
25719 return resultobj;
25720 fail:
25721 return NULL;
25722 }
25723
25724
25725 static PyObject *_wrap_URLDataObject_SetURL(PyObject *self, PyObject *args, PyObject *kwargs) {
25726 PyObject *resultobj;
25727 wxURLDataObject *arg1 = (wxURLDataObject *) 0 ;
25728 wxString *arg2 = 0 ;
25729 bool temp2 = False ;
25730 PyObject * obj0 = 0 ;
25731 PyObject * obj1 = 0 ;
25732 char *kwnames[] = {
25733 (char *) "self",(char *) "url", NULL
25734 };
25735
25736 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:URLDataObject_SetURL",kwnames,&obj0,&obj1)) goto fail;
25737 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxURLDataObject,
25738 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25739 {
25740 arg2 = wxString_in_helper(obj1);
25741 if (arg2 == NULL) SWIG_fail;
25742 temp2 = True;
25743 }
25744 {
25745 PyThreadState* __tstate = wxPyBeginAllowThreads();
25746 (arg1)->SetURL((wxString const &)*arg2);
25747
25748 wxPyEndAllowThreads(__tstate);
25749 if (PyErr_Occurred()) SWIG_fail;
25750 }
25751 Py_INCREF(Py_None); resultobj = Py_None;
25752 {
25753 if (temp2)
25754 delete arg2;
25755 }
25756 return resultobj;
25757 fail:
25758 {
25759 if (temp2)
25760 delete arg2;
25761 }
25762 return NULL;
25763 }
25764
25765
25766 static PyObject * URLDataObject_swigregister(PyObject *self, PyObject *args) {
25767 PyObject *obj;
25768 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25769 SWIG_TypeClientData(SWIGTYPE_p_wxURLDataObject, obj);
25770 Py_INCREF(obj);
25771 return Py_BuildValue((char *)"");
25772 }
25773 static PyObject *_wrap_new_MetafileDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
25774 PyObject *resultobj;
25775 wxMetafileDataObject *result;
25776 char *kwnames[] = {
25777 NULL
25778 };
25779
25780 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MetafileDataObject",kwnames)) goto fail;
25781 {
25782 PyThreadState* __tstate = wxPyBeginAllowThreads();
25783 result = (wxMetafileDataObject *)new wxMetafileDataObject();
25784
25785 wxPyEndAllowThreads(__tstate);
25786 if (PyErr_Occurred()) SWIG_fail;
25787 }
25788 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetafileDataObject, 1);
25789 return resultobj;
25790 fail:
25791 return NULL;
25792 }
25793
25794
25795 static PyObject *_wrap_MetafileDataObject_SetMetafile(PyObject *self, PyObject *args, PyObject *kwargs) {
25796 PyObject *resultobj;
25797 wxMetafileDataObject *arg1 = (wxMetafileDataObject *) 0 ;
25798 wxMetafile *arg2 = 0 ;
25799 PyObject * obj0 = 0 ;
25800 PyObject * obj1 = 0 ;
25801 char *kwnames[] = {
25802 (char *) "self",(char *) "metafile", NULL
25803 };
25804
25805 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MetafileDataObject_SetMetafile",kwnames,&obj0,&obj1)) goto fail;
25806 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetafileDataObject,
25807 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25808 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMetafile,
25809 SWIG_POINTER_EXCEPTION | 0)) == -1)
25810 SWIG_fail;
25811 if (arg2 == NULL) {
25812 PyErr_SetString(PyExc_TypeError,"null reference");
25813 SWIG_fail;
25814 }
25815 {
25816 PyThreadState* __tstate = wxPyBeginAllowThreads();
25817 (arg1)->SetMetafile((wxMetafile const &)*arg2);
25818
25819 wxPyEndAllowThreads(__tstate);
25820 if (PyErr_Occurred()) SWIG_fail;
25821 }
25822 Py_INCREF(Py_None); resultobj = Py_None;
25823 return resultobj;
25824 fail:
25825 return NULL;
25826 }
25827
25828
25829 static PyObject *_wrap_MetafileDataObject_GetMetafile(PyObject *self, PyObject *args, PyObject *kwargs) {
25830 PyObject *resultobj;
25831 wxMetafileDataObject *arg1 = (wxMetafileDataObject *) 0 ;
25832 wxMetafile result;
25833 PyObject * obj0 = 0 ;
25834 char *kwnames[] = {
25835 (char *) "self", NULL
25836 };
25837
25838 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetafileDataObject_GetMetafile",kwnames,&obj0)) goto fail;
25839 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetafileDataObject,
25840 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25841 {
25842 PyThreadState* __tstate = wxPyBeginAllowThreads();
25843 result = ((wxMetafileDataObject const *)arg1)->GetMetafile();
25844
25845 wxPyEndAllowThreads(__tstate);
25846 if (PyErr_Occurred()) SWIG_fail;
25847 }
25848 {
25849 wxMetafile * resultptr;
25850 resultptr = new wxMetafile((wxMetafile &) result);
25851 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxMetafile, 1);
25852 }
25853 return resultobj;
25854 fail:
25855 return NULL;
25856 }
25857
25858
25859 static PyObject * MetafileDataObject_swigregister(PyObject *self, PyObject *args) {
25860 PyObject *obj;
25861 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25862 SWIG_TypeClientData(SWIGTYPE_p_wxMetafileDataObject, obj);
25863 Py_INCREF(obj);
25864 return Py_BuildValue((char *)"");
25865 }
25866 static PyObject *_wrap_IsDragResultOk(PyObject *self, PyObject *args, PyObject *kwargs) {
25867 PyObject *resultobj;
25868 int arg1 ;
25869 bool result;
25870 PyObject * obj0 = 0 ;
25871 char *kwnames[] = {
25872 (char *) "res", NULL
25873 };
25874
25875 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IsDragResultOk",kwnames,&obj0)) goto fail;
25876 arg1 = (wxDragResult) SWIG_AsInt(obj0);
25877 if (PyErr_Occurred()) SWIG_fail;
25878 {
25879 PyThreadState* __tstate = wxPyBeginAllowThreads();
25880 result = (bool)wxIsDragResultOk((wxDragResult )arg1);
25881
25882 wxPyEndAllowThreads(__tstate);
25883 if (PyErr_Occurred()) SWIG_fail;
25884 }
25885 {
25886 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25887 }
25888 return resultobj;
25889 fail:
25890 return NULL;
25891 }
25892
25893
25894 static PyObject *_wrap_new_DropSource(PyObject *self, PyObject *args, PyObject *kwargs) {
25895 PyObject *resultobj;
25896 wxWindow *arg1 = (wxWindow *) 0 ;
25897 wxCursor const &arg2_defvalue = wxNullCursor ;
25898 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
25899 wxCursor const &arg3_defvalue = wxNullCursor ;
25900 wxCursor *arg3 = (wxCursor *) &arg3_defvalue ;
25901 wxCursor const &arg4_defvalue = wxNullCursor ;
25902 wxCursor *arg4 = (wxCursor *) &arg4_defvalue ;
25903 wxPyDropSource *result;
25904 PyObject * obj0 = 0 ;
25905 PyObject * obj1 = 0 ;
25906 PyObject * obj2 = 0 ;
25907 PyObject * obj3 = 0 ;
25908 char *kwnames[] = {
25909 (char *) "win",(char *) "copy",(char *) "move",(char *) "none", NULL
25910 };
25911
25912 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:new_DropSource",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
25913 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25914 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25915 if (obj1) {
25916 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor,
25917 SWIG_POINTER_EXCEPTION | 0)) == -1)
25918 SWIG_fail;
25919 if (arg2 == NULL) {
25920 PyErr_SetString(PyExc_TypeError,"null reference");
25921 SWIG_fail;
25922 }
25923 }
25924 if (obj2) {
25925 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxCursor,
25926 SWIG_POINTER_EXCEPTION | 0)) == -1)
25927 SWIG_fail;
25928 if (arg3 == NULL) {
25929 PyErr_SetString(PyExc_TypeError,"null reference");
25930 SWIG_fail;
25931 }
25932 }
25933 if (obj3) {
25934 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxCursor,
25935 SWIG_POINTER_EXCEPTION | 0)) == -1)
25936 SWIG_fail;
25937 if (arg4 == NULL) {
25938 PyErr_SetString(PyExc_TypeError,"null reference");
25939 SWIG_fail;
25940 }
25941 }
25942 {
25943 PyThreadState* __tstate = wxPyBeginAllowThreads();
25944 result = (wxPyDropSource *)new wxPyDropSource(arg1,(wxCursor const &)*arg2,(wxCursor const &)*arg3,(wxCursor const &)*arg4);
25945
25946 wxPyEndAllowThreads(__tstate);
25947 if (PyErr_Occurred()) SWIG_fail;
25948 }
25949 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDropSource, 1);
25950 return resultobj;
25951 fail:
25952 return NULL;
25953 }
25954
25955
25956 static PyObject *_wrap_DropSource__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
25957 PyObject *resultobj;
25958 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
25959 PyObject *arg2 = (PyObject *) 0 ;
25960 PyObject *arg3 = (PyObject *) 0 ;
25961 int arg4 ;
25962 PyObject * obj0 = 0 ;
25963 PyObject * obj1 = 0 ;
25964 PyObject * obj2 = 0 ;
25965 PyObject * obj3 = 0 ;
25966 char *kwnames[] = {
25967 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
25968 };
25969
25970 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropSource__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
25971 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
25972 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25973 arg2 = obj1;
25974 arg3 = obj2;
25975 arg4 = (int) SWIG_AsInt(obj3);
25976 if (PyErr_Occurred()) SWIG_fail;
25977 {
25978 PyThreadState* __tstate = wxPyBeginAllowThreads();
25979 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
25980
25981 wxPyEndAllowThreads(__tstate);
25982 if (PyErr_Occurred()) SWIG_fail;
25983 }
25984 Py_INCREF(Py_None); resultobj = Py_None;
25985 return resultobj;
25986 fail:
25987 return NULL;
25988 }
25989
25990
25991 static PyObject *_wrap_delete_DropSource(PyObject *self, PyObject *args, PyObject *kwargs) {
25992 PyObject *resultobj;
25993 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
25994 PyObject * obj0 = 0 ;
25995 char *kwnames[] = {
25996 (char *) "self", NULL
25997 };
25998
25999 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DropSource",kwnames,&obj0)) goto fail;
26000 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
26001 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26002 {
26003 PyThreadState* __tstate = wxPyBeginAllowThreads();
26004 delete arg1;
26005
26006 wxPyEndAllowThreads(__tstate);
26007 if (PyErr_Occurred()) SWIG_fail;
26008 }
26009 Py_INCREF(Py_None); resultobj = Py_None;
26010 return resultobj;
26011 fail:
26012 return NULL;
26013 }
26014
26015
26016 static PyObject *_wrap_DropSource_SetData(PyObject *self, PyObject *args, PyObject *kwargs) {
26017 PyObject *resultobj;
26018 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
26019 wxDataObject *arg2 = 0 ;
26020 PyObject * obj0 = 0 ;
26021 PyObject * obj1 = 0 ;
26022 char *kwnames[] = {
26023 (char *) "self",(char *) "data", NULL
26024 };
26025
26026 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropSource_SetData",kwnames,&obj0,&obj1)) goto fail;
26027 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
26028 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26029 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject,
26030 SWIG_POINTER_EXCEPTION | 0)) == -1)
26031 SWIG_fail;
26032 if (arg2 == NULL) {
26033 PyErr_SetString(PyExc_TypeError,"null reference");
26034 SWIG_fail;
26035 }
26036 {
26037 PyThreadState* __tstate = wxPyBeginAllowThreads();
26038 (arg1)->SetData(*arg2);
26039
26040 wxPyEndAllowThreads(__tstate);
26041 if (PyErr_Occurred()) SWIG_fail;
26042 }
26043 Py_INCREF(Py_None); resultobj = Py_None;
26044 return resultobj;
26045 fail:
26046 return NULL;
26047 }
26048
26049
26050 static PyObject *_wrap_DropSource_GetDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
26051 PyObject *resultobj;
26052 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
26053 wxDataObject *result;
26054 PyObject * obj0 = 0 ;
26055 char *kwnames[] = {
26056 (char *) "self", NULL
26057 };
26058
26059 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropSource_GetDataObject",kwnames,&obj0)) goto fail;
26060 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
26061 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26062 {
26063 PyThreadState* __tstate = wxPyBeginAllowThreads();
26064 result = (wxDataObject *)(arg1)->GetDataObject();
26065
26066 wxPyEndAllowThreads(__tstate);
26067 if (PyErr_Occurred()) SWIG_fail;
26068 }
26069 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObject, 0);
26070 return resultobj;
26071 fail:
26072 return NULL;
26073 }
26074
26075
26076 static PyObject *_wrap_DropSource_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
26077 PyObject *resultobj;
26078 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
26079 int arg2 ;
26080 wxCursor *arg3 = 0 ;
26081 PyObject * obj0 = 0 ;
26082 PyObject * obj1 = 0 ;
26083 PyObject * obj2 = 0 ;
26084 char *kwnames[] = {
26085 (char *) "self",(char *) "res",(char *) "cursor", NULL
26086 };
26087
26088 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropSource_SetCursor",kwnames,&obj0,&obj1,&obj2)) goto fail;
26089 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
26090 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26091 arg2 = (wxDragResult) SWIG_AsInt(obj1);
26092 if (PyErr_Occurred()) SWIG_fail;
26093 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxCursor,
26094 SWIG_POINTER_EXCEPTION | 0)) == -1)
26095 SWIG_fail;
26096 if (arg3 == NULL) {
26097 PyErr_SetString(PyExc_TypeError,"null reference");
26098 SWIG_fail;
26099 }
26100 {
26101 PyThreadState* __tstate = wxPyBeginAllowThreads();
26102 (arg1)->SetCursor((wxDragResult )arg2,(wxCursor const &)*arg3);
26103
26104 wxPyEndAllowThreads(__tstate);
26105 if (PyErr_Occurred()) SWIG_fail;
26106 }
26107 Py_INCREF(Py_None); resultobj = Py_None;
26108 return resultobj;
26109 fail:
26110 return NULL;
26111 }
26112
26113
26114 static PyObject *_wrap_DropSource_DoDragDrop(PyObject *self, PyObject *args, PyObject *kwargs) {
26115 PyObject *resultobj;
26116 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
26117 int arg2 = (int) wxDrag_CopyOnly ;
26118 int result;
26119 PyObject * obj0 = 0 ;
26120 PyObject * obj1 = 0 ;
26121 char *kwnames[] = {
26122 (char *) "self",(char *) "flags", NULL
26123 };
26124
26125 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DropSource_DoDragDrop",kwnames,&obj0,&obj1)) goto fail;
26126 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
26127 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26128 if (obj1) {
26129 arg2 = (int) SWIG_AsInt(obj1);
26130 if (PyErr_Occurred()) SWIG_fail;
26131 }
26132 {
26133 PyThreadState* __tstate = wxPyBeginAllowThreads();
26134 result = (int)(arg1)->DoDragDrop(arg2);
26135
26136 wxPyEndAllowThreads(__tstate);
26137 if (PyErr_Occurred()) SWIG_fail;
26138 }
26139 resultobj = SWIG_FromInt((int)result);
26140 return resultobj;
26141 fail:
26142 return NULL;
26143 }
26144
26145
26146 static PyObject *_wrap_DropSource_base_GiveFeedback(PyObject *self, PyObject *args, PyObject *kwargs) {
26147 PyObject *resultobj;
26148 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
26149 int arg2 ;
26150 bool result;
26151 PyObject * obj0 = 0 ;
26152 PyObject * obj1 = 0 ;
26153 char *kwnames[] = {
26154 (char *) "self",(char *) "effect", NULL
26155 };
26156
26157 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropSource_base_GiveFeedback",kwnames,&obj0,&obj1)) goto fail;
26158 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
26159 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26160 arg2 = (wxDragResult) SWIG_AsInt(obj1);
26161 if (PyErr_Occurred()) SWIG_fail;
26162 {
26163 PyThreadState* __tstate = wxPyBeginAllowThreads();
26164 result = (bool)(arg1)->base_GiveFeedback((wxDragResult )arg2);
26165
26166 wxPyEndAllowThreads(__tstate);
26167 if (PyErr_Occurred()) SWIG_fail;
26168 }
26169 {
26170 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26171 }
26172 return resultobj;
26173 fail:
26174 return NULL;
26175 }
26176
26177
26178 static PyObject * DropSource_swigregister(PyObject *self, PyObject *args) {
26179 PyObject *obj;
26180 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
26181 SWIG_TypeClientData(SWIGTYPE_p_wxPyDropSource, obj);
26182 Py_INCREF(obj);
26183 return Py_BuildValue((char *)"");
26184 }
26185 static PyObject *_wrap_new_DropTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
26186 PyObject *resultobj;
26187 wxDataObject *arg1 = (wxDataObject *) NULL ;
26188 wxPyDropTarget *result;
26189 PyObject * obj0 = 0 ;
26190 char *kwnames[] = {
26191 (char *) "dataObject", NULL
26192 };
26193
26194 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_DropTarget",kwnames,&obj0)) goto fail;
26195 if (obj0) {
26196 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
26197 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
26198 }
26199 {
26200 PyThreadState* __tstate = wxPyBeginAllowThreads();
26201 result = (wxPyDropTarget *)new wxPyDropTarget(arg1);
26202
26203 wxPyEndAllowThreads(__tstate);
26204 if (PyErr_Occurred()) SWIG_fail;
26205 }
26206 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDropTarget, 1);
26207 return resultobj;
26208 fail:
26209 return NULL;
26210 }
26211
26212
26213 static PyObject *_wrap_DropTarget__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
26214 PyObject *resultobj;
26215 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26216 PyObject *arg2 = (PyObject *) 0 ;
26217 PyObject *arg3 = (PyObject *) 0 ;
26218 PyObject * obj0 = 0 ;
26219 PyObject * obj1 = 0 ;
26220 PyObject * obj2 = 0 ;
26221 char *kwnames[] = {
26222 (char *) "self",(char *) "self",(char *) "_class", NULL
26223 };
26224
26225 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
26226 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26227 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26228 arg2 = obj1;
26229 arg3 = obj2;
26230 {
26231 PyThreadState* __tstate = wxPyBeginAllowThreads();
26232 (arg1)->_setCallbackInfo(arg2,arg3);
26233
26234 wxPyEndAllowThreads(__tstate);
26235 if (PyErr_Occurred()) SWIG_fail;
26236 }
26237 Py_INCREF(Py_None); resultobj = Py_None;
26238 return resultobj;
26239 fail:
26240 return NULL;
26241 }
26242
26243
26244 static PyObject *_wrap_delete_DropTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
26245 PyObject *resultobj;
26246 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26247 PyObject * obj0 = 0 ;
26248 char *kwnames[] = {
26249 (char *) "self", NULL
26250 };
26251
26252 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DropTarget",kwnames,&obj0)) goto fail;
26253 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26254 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26255 {
26256 PyThreadState* __tstate = wxPyBeginAllowThreads();
26257 delete arg1;
26258
26259 wxPyEndAllowThreads(__tstate);
26260 if (PyErr_Occurred()) SWIG_fail;
26261 }
26262 Py_INCREF(Py_None); resultobj = Py_None;
26263 return resultobj;
26264 fail:
26265 return NULL;
26266 }
26267
26268
26269 static PyObject *_wrap_DropTarget_GetDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
26270 PyObject *resultobj;
26271 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26272 wxDataObject *result;
26273 PyObject * obj0 = 0 ;
26274 char *kwnames[] = {
26275 (char *) "self", NULL
26276 };
26277
26278 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_GetDataObject",kwnames,&obj0)) goto fail;
26279 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26280 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26281 {
26282 PyThreadState* __tstate = wxPyBeginAllowThreads();
26283 result = (wxDataObject *)(arg1)->GetDataObject();
26284
26285 wxPyEndAllowThreads(__tstate);
26286 if (PyErr_Occurred()) SWIG_fail;
26287 }
26288 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObject, 0);
26289 return resultobj;
26290 fail:
26291 return NULL;
26292 }
26293
26294
26295 static PyObject *_wrap_DropTarget_SetDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
26296 PyObject *resultobj;
26297 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26298 wxDataObject *arg2 = (wxDataObject *) 0 ;
26299 PyObject * obj0 = 0 ;
26300 PyObject * obj1 = 0 ;
26301 char *kwnames[] = {
26302 (char *) "self",(char *) "dataObject", NULL
26303 };
26304
26305 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropTarget_SetDataObject",kwnames,&obj0,&obj1)) goto fail;
26306 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26307 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26308 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject,
26309 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
26310 {
26311 PyThreadState* __tstate = wxPyBeginAllowThreads();
26312 (arg1)->SetDataObject(arg2);
26313
26314 wxPyEndAllowThreads(__tstate);
26315 if (PyErr_Occurred()) SWIG_fail;
26316 }
26317 Py_INCREF(Py_None); resultobj = Py_None;
26318 return resultobj;
26319 fail:
26320 return NULL;
26321 }
26322
26323
26324 static PyObject *_wrap_DropTarget_base_OnEnter(PyObject *self, PyObject *args, PyObject *kwargs) {
26325 PyObject *resultobj;
26326 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26327 int arg2 ;
26328 int arg3 ;
26329 int arg4 ;
26330 int result;
26331 PyObject * obj0 = 0 ;
26332 PyObject * obj1 = 0 ;
26333 PyObject * obj2 = 0 ;
26334 PyObject * obj3 = 0 ;
26335 char *kwnames[] = {
26336 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26337 };
26338
26339 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropTarget_base_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26340 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26341 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26342 arg2 = (int) SWIG_AsInt(obj1);
26343 if (PyErr_Occurred()) SWIG_fail;
26344 arg3 = (int) SWIG_AsInt(obj2);
26345 if (PyErr_Occurred()) SWIG_fail;
26346 arg4 = (wxDragResult) SWIG_AsInt(obj3);
26347 if (PyErr_Occurred()) SWIG_fail;
26348 {
26349 PyThreadState* __tstate = wxPyBeginAllowThreads();
26350 result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4);
26351
26352 wxPyEndAllowThreads(__tstate);
26353 if (PyErr_Occurred()) SWIG_fail;
26354 }
26355 resultobj = SWIG_FromInt((int)result);
26356 return resultobj;
26357 fail:
26358 return NULL;
26359 }
26360
26361
26362 static PyObject *_wrap_DropTarget_base_OnDragOver(PyObject *self, PyObject *args, PyObject *kwargs) {
26363 PyObject *resultobj;
26364 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26365 int arg2 ;
26366 int arg3 ;
26367 int arg4 ;
26368 int result;
26369 PyObject * obj0 = 0 ;
26370 PyObject * obj1 = 0 ;
26371 PyObject * obj2 = 0 ;
26372 PyObject * obj3 = 0 ;
26373 char *kwnames[] = {
26374 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26375 };
26376
26377 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropTarget_base_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26378 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26379 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26380 arg2 = (int) SWIG_AsInt(obj1);
26381 if (PyErr_Occurred()) SWIG_fail;
26382 arg3 = (int) SWIG_AsInt(obj2);
26383 if (PyErr_Occurred()) SWIG_fail;
26384 arg4 = (wxDragResult) SWIG_AsInt(obj3);
26385 if (PyErr_Occurred()) SWIG_fail;
26386 {
26387 PyThreadState* __tstate = wxPyBeginAllowThreads();
26388 result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4);
26389
26390 wxPyEndAllowThreads(__tstate);
26391 if (PyErr_Occurred()) SWIG_fail;
26392 }
26393 resultobj = SWIG_FromInt((int)result);
26394 return resultobj;
26395 fail:
26396 return NULL;
26397 }
26398
26399
26400 static PyObject *_wrap_DropTarget_base_OnLeave(PyObject *self, PyObject *args, PyObject *kwargs) {
26401 PyObject *resultobj;
26402 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26403 PyObject * obj0 = 0 ;
26404 char *kwnames[] = {
26405 (char *) "self", NULL
26406 };
26407
26408 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_base_OnLeave",kwnames,&obj0)) goto fail;
26409 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26410 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26411 {
26412 PyThreadState* __tstate = wxPyBeginAllowThreads();
26413 (arg1)->base_OnLeave();
26414
26415 wxPyEndAllowThreads(__tstate);
26416 if (PyErr_Occurred()) SWIG_fail;
26417 }
26418 Py_INCREF(Py_None); resultobj = Py_None;
26419 return resultobj;
26420 fail:
26421 return NULL;
26422 }
26423
26424
26425 static PyObject *_wrap_DropTarget_base_OnDrop(PyObject *self, PyObject *args, PyObject *kwargs) {
26426 PyObject *resultobj;
26427 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26428 int arg2 ;
26429 int arg3 ;
26430 bool result;
26431 PyObject * obj0 = 0 ;
26432 PyObject * obj1 = 0 ;
26433 PyObject * obj2 = 0 ;
26434 char *kwnames[] = {
26435 (char *) "self",(char *) "x",(char *) "y", NULL
26436 };
26437
26438 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropTarget_base_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail;
26439 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26440 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26441 arg2 = (int) SWIG_AsInt(obj1);
26442 if (PyErr_Occurred()) SWIG_fail;
26443 arg3 = (int) SWIG_AsInt(obj2);
26444 if (PyErr_Occurred()) SWIG_fail;
26445 {
26446 PyThreadState* __tstate = wxPyBeginAllowThreads();
26447 result = (bool)(arg1)->base_OnDrop(arg2,arg3);
26448
26449 wxPyEndAllowThreads(__tstate);
26450 if (PyErr_Occurred()) SWIG_fail;
26451 }
26452 {
26453 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26454 }
26455 return resultobj;
26456 fail:
26457 return NULL;
26458 }
26459
26460
26461 static PyObject *_wrap_DropTarget_GetData(PyObject *self, PyObject *args, PyObject *kwargs) {
26462 PyObject *resultobj;
26463 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26464 bool result;
26465 PyObject * obj0 = 0 ;
26466 char *kwnames[] = {
26467 (char *) "self", NULL
26468 };
26469
26470 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_GetData",kwnames,&obj0)) goto fail;
26471 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26472 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26473 {
26474 PyThreadState* __tstate = wxPyBeginAllowThreads();
26475 result = (bool)(arg1)->GetData();
26476
26477 wxPyEndAllowThreads(__tstate);
26478 if (PyErr_Occurred()) SWIG_fail;
26479 }
26480 {
26481 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26482 }
26483 return resultobj;
26484 fail:
26485 return NULL;
26486 }
26487
26488
26489 static PyObject * DropTarget_swigregister(PyObject *self, PyObject *args) {
26490 PyObject *obj;
26491 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
26492 SWIG_TypeClientData(SWIGTYPE_p_wxPyDropTarget, obj);
26493 Py_INCREF(obj);
26494 return Py_BuildValue((char *)"");
26495 }
26496 static PyObject *_wrap_new_TextDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
26497 PyObject *resultobj;
26498 wxPyTextDropTarget *result;
26499 char *kwnames[] = {
26500 NULL
26501 };
26502
26503 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TextDropTarget",kwnames)) goto fail;
26504 {
26505 PyThreadState* __tstate = wxPyBeginAllowThreads();
26506 result = (wxPyTextDropTarget *)new wxPyTextDropTarget();
26507
26508 wxPyEndAllowThreads(__tstate);
26509 if (PyErr_Occurred()) SWIG_fail;
26510 }
26511 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTextDropTarget, 1);
26512 return resultobj;
26513 fail:
26514 return NULL;
26515 }
26516
26517
26518 static PyObject *_wrap_TextDropTarget__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
26519 PyObject *resultobj;
26520 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
26521 PyObject *arg2 = (PyObject *) 0 ;
26522 PyObject *arg3 = (PyObject *) 0 ;
26523 PyObject * obj0 = 0 ;
26524 PyObject * obj1 = 0 ;
26525 PyObject * obj2 = 0 ;
26526 char *kwnames[] = {
26527 (char *) "self",(char *) "self",(char *) "_class", NULL
26528 };
26529
26530 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextDropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
26531 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget,
26532 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26533 arg2 = obj1;
26534 arg3 = obj2;
26535 {
26536 PyThreadState* __tstate = wxPyBeginAllowThreads();
26537 (arg1)->_setCallbackInfo(arg2,arg3);
26538
26539 wxPyEndAllowThreads(__tstate);
26540 if (PyErr_Occurred()) SWIG_fail;
26541 }
26542 Py_INCREF(Py_None); resultobj = Py_None;
26543 return resultobj;
26544 fail:
26545 return NULL;
26546 }
26547
26548
26549 static PyObject *_wrap_TextDropTarget_base_OnEnter(PyObject *self, PyObject *args, PyObject *kwargs) {
26550 PyObject *resultobj;
26551 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
26552 int arg2 ;
26553 int arg3 ;
26554 int arg4 ;
26555 int result;
26556 PyObject * obj0 = 0 ;
26557 PyObject * obj1 = 0 ;
26558 PyObject * obj2 = 0 ;
26559 PyObject * obj3 = 0 ;
26560 char *kwnames[] = {
26561 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26562 };
26563
26564 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_base_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26565 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget,
26566 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26567 arg2 = (int) SWIG_AsInt(obj1);
26568 if (PyErr_Occurred()) SWIG_fail;
26569 arg3 = (int) SWIG_AsInt(obj2);
26570 if (PyErr_Occurred()) SWIG_fail;
26571 arg4 = (wxDragResult) SWIG_AsInt(obj3);
26572 if (PyErr_Occurred()) SWIG_fail;
26573 {
26574 PyThreadState* __tstate = wxPyBeginAllowThreads();
26575 result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4);
26576
26577 wxPyEndAllowThreads(__tstate);
26578 if (PyErr_Occurred()) SWIG_fail;
26579 }
26580 resultobj = SWIG_FromInt((int)result);
26581 return resultobj;
26582 fail:
26583 return NULL;
26584 }
26585
26586
26587 static PyObject *_wrap_TextDropTarget_base_OnDragOver(PyObject *self, PyObject *args, PyObject *kwargs) {
26588 PyObject *resultobj;
26589 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
26590 int arg2 ;
26591 int arg3 ;
26592 int arg4 ;
26593 int result;
26594 PyObject * obj0 = 0 ;
26595 PyObject * obj1 = 0 ;
26596 PyObject * obj2 = 0 ;
26597 PyObject * obj3 = 0 ;
26598 char *kwnames[] = {
26599 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26600 };
26601
26602 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_base_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26603 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget,
26604 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26605 arg2 = (int) SWIG_AsInt(obj1);
26606 if (PyErr_Occurred()) SWIG_fail;
26607 arg3 = (int) SWIG_AsInt(obj2);
26608 if (PyErr_Occurred()) SWIG_fail;
26609 arg4 = (wxDragResult) SWIG_AsInt(obj3);
26610 if (PyErr_Occurred()) SWIG_fail;
26611 {
26612 PyThreadState* __tstate = wxPyBeginAllowThreads();
26613 result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4);
26614
26615 wxPyEndAllowThreads(__tstate);
26616 if (PyErr_Occurred()) SWIG_fail;
26617 }
26618 resultobj = SWIG_FromInt((int)result);
26619 return resultobj;
26620 fail:
26621 return NULL;
26622 }
26623
26624
26625 static PyObject *_wrap_TextDropTarget_base_OnLeave(PyObject *self, PyObject *args, PyObject *kwargs) {
26626 PyObject *resultobj;
26627 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
26628 PyObject * obj0 = 0 ;
26629 char *kwnames[] = {
26630 (char *) "self", NULL
26631 };
26632
26633 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDropTarget_base_OnLeave",kwnames,&obj0)) goto fail;
26634 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget,
26635 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26636 {
26637 PyThreadState* __tstate = wxPyBeginAllowThreads();
26638 (arg1)->base_OnLeave();
26639
26640 wxPyEndAllowThreads(__tstate);
26641 if (PyErr_Occurred()) SWIG_fail;
26642 }
26643 Py_INCREF(Py_None); resultobj = Py_None;
26644 return resultobj;
26645 fail:
26646 return NULL;
26647 }
26648
26649
26650 static PyObject *_wrap_TextDropTarget_base_OnDrop(PyObject *self, PyObject *args, PyObject *kwargs) {
26651 PyObject *resultobj;
26652 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
26653 int arg2 ;
26654 int arg3 ;
26655 bool result;
26656 PyObject * obj0 = 0 ;
26657 PyObject * obj1 = 0 ;
26658 PyObject * obj2 = 0 ;
26659 char *kwnames[] = {
26660 (char *) "self",(char *) "x",(char *) "y", NULL
26661 };
26662
26663 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextDropTarget_base_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail;
26664 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget,
26665 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26666 arg2 = (int) SWIG_AsInt(obj1);
26667 if (PyErr_Occurred()) SWIG_fail;
26668 arg3 = (int) SWIG_AsInt(obj2);
26669 if (PyErr_Occurred()) SWIG_fail;
26670 {
26671 PyThreadState* __tstate = wxPyBeginAllowThreads();
26672 result = (bool)(arg1)->base_OnDrop(arg2,arg3);
26673
26674 wxPyEndAllowThreads(__tstate);
26675 if (PyErr_Occurred()) SWIG_fail;
26676 }
26677 {
26678 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26679 }
26680 return resultobj;
26681 fail:
26682 return NULL;
26683 }
26684
26685
26686 static PyObject *_wrap_TextDropTarget_base_OnData(PyObject *self, PyObject *args, PyObject *kwargs) {
26687 PyObject *resultobj;
26688 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
26689 int arg2 ;
26690 int arg3 ;
26691 int arg4 ;
26692 int result;
26693 PyObject * obj0 = 0 ;
26694 PyObject * obj1 = 0 ;
26695 PyObject * obj2 = 0 ;
26696 PyObject * obj3 = 0 ;
26697 char *kwnames[] = {
26698 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26699 };
26700
26701 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_base_OnData",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26702 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget,
26703 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26704 arg2 = (int) SWIG_AsInt(obj1);
26705 if (PyErr_Occurred()) SWIG_fail;
26706 arg3 = (int) SWIG_AsInt(obj2);
26707 if (PyErr_Occurred()) SWIG_fail;
26708 arg4 = (wxDragResult) SWIG_AsInt(obj3);
26709 if (PyErr_Occurred()) SWIG_fail;
26710 {
26711 PyThreadState* __tstate = wxPyBeginAllowThreads();
26712 result = (int)(arg1)->base_OnData(arg2,arg3,(wxDragResult )arg4);
26713
26714 wxPyEndAllowThreads(__tstate);
26715 if (PyErr_Occurred()) SWIG_fail;
26716 }
26717 resultobj = SWIG_FromInt((int)result);
26718 return resultobj;
26719 fail:
26720 return NULL;
26721 }
26722
26723
26724 static PyObject * TextDropTarget_swigregister(PyObject *self, PyObject *args) {
26725 PyObject *obj;
26726 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
26727 SWIG_TypeClientData(SWIGTYPE_p_wxPyTextDropTarget, obj);
26728 Py_INCREF(obj);
26729 return Py_BuildValue((char *)"");
26730 }
26731 static PyObject *_wrap_new_FileDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
26732 PyObject *resultobj;
26733 wxPyFileDropTarget *result;
26734 char *kwnames[] = {
26735 NULL
26736 };
26737
26738 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileDropTarget",kwnames)) goto fail;
26739 {
26740 PyThreadState* __tstate = wxPyBeginAllowThreads();
26741 result = (wxPyFileDropTarget *)new wxPyFileDropTarget();
26742
26743 wxPyEndAllowThreads(__tstate);
26744 if (PyErr_Occurred()) SWIG_fail;
26745 }
26746 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyFileDropTarget, 1);
26747 return resultobj;
26748 fail:
26749 return NULL;
26750 }
26751
26752
26753 static PyObject *_wrap_FileDropTarget__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
26754 PyObject *resultobj;
26755 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
26756 PyObject *arg2 = (PyObject *) 0 ;
26757 PyObject *arg3 = (PyObject *) 0 ;
26758 PyObject * obj0 = 0 ;
26759 PyObject * obj1 = 0 ;
26760 PyObject * obj2 = 0 ;
26761 char *kwnames[] = {
26762 (char *) "self",(char *) "self",(char *) "_class", NULL
26763 };
26764
26765 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileDropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
26766 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget,
26767 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26768 arg2 = obj1;
26769 arg3 = obj2;
26770 {
26771 PyThreadState* __tstate = wxPyBeginAllowThreads();
26772 (arg1)->_setCallbackInfo(arg2,arg3);
26773
26774 wxPyEndAllowThreads(__tstate);
26775 if (PyErr_Occurred()) SWIG_fail;
26776 }
26777 Py_INCREF(Py_None); resultobj = Py_None;
26778 return resultobj;
26779 fail:
26780 return NULL;
26781 }
26782
26783
26784 static PyObject *_wrap_FileDropTarget_base_OnEnter(PyObject *self, PyObject *args, PyObject *kwargs) {
26785 PyObject *resultobj;
26786 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
26787 int arg2 ;
26788 int arg3 ;
26789 int arg4 ;
26790 int result;
26791 PyObject * obj0 = 0 ;
26792 PyObject * obj1 = 0 ;
26793 PyObject * obj2 = 0 ;
26794 PyObject * obj3 = 0 ;
26795 char *kwnames[] = {
26796 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26797 };
26798
26799 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_base_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26800 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget,
26801 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26802 arg2 = (int) SWIG_AsInt(obj1);
26803 if (PyErr_Occurred()) SWIG_fail;
26804 arg3 = (int) SWIG_AsInt(obj2);
26805 if (PyErr_Occurred()) SWIG_fail;
26806 arg4 = (wxDragResult) SWIG_AsInt(obj3);
26807 if (PyErr_Occurred()) SWIG_fail;
26808 {
26809 PyThreadState* __tstate = wxPyBeginAllowThreads();
26810 result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4);
26811
26812 wxPyEndAllowThreads(__tstate);
26813 if (PyErr_Occurred()) SWIG_fail;
26814 }
26815 resultobj = SWIG_FromInt((int)result);
26816 return resultobj;
26817 fail:
26818 return NULL;
26819 }
26820
26821
26822 static PyObject *_wrap_FileDropTarget_base_OnDragOver(PyObject *self, PyObject *args, PyObject *kwargs) {
26823 PyObject *resultobj;
26824 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
26825 int arg2 ;
26826 int arg3 ;
26827 int arg4 ;
26828 int result;
26829 PyObject * obj0 = 0 ;
26830 PyObject * obj1 = 0 ;
26831 PyObject * obj2 = 0 ;
26832 PyObject * obj3 = 0 ;
26833 char *kwnames[] = {
26834 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26835 };
26836
26837 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_base_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26838 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget,
26839 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26840 arg2 = (int) SWIG_AsInt(obj1);
26841 if (PyErr_Occurred()) SWIG_fail;
26842 arg3 = (int) SWIG_AsInt(obj2);
26843 if (PyErr_Occurred()) SWIG_fail;
26844 arg4 = (wxDragResult) SWIG_AsInt(obj3);
26845 if (PyErr_Occurred()) SWIG_fail;
26846 {
26847 PyThreadState* __tstate = wxPyBeginAllowThreads();
26848 result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4);
26849
26850 wxPyEndAllowThreads(__tstate);
26851 if (PyErr_Occurred()) SWIG_fail;
26852 }
26853 resultobj = SWIG_FromInt((int)result);
26854 return resultobj;
26855 fail:
26856 return NULL;
26857 }
26858
26859
26860 static PyObject *_wrap_FileDropTarget_base_OnLeave(PyObject *self, PyObject *args, PyObject *kwargs) {
26861 PyObject *resultobj;
26862 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
26863 PyObject * obj0 = 0 ;
26864 char *kwnames[] = {
26865 (char *) "self", NULL
26866 };
26867
26868 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDropTarget_base_OnLeave",kwnames,&obj0)) goto fail;
26869 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget,
26870 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26871 {
26872 PyThreadState* __tstate = wxPyBeginAllowThreads();
26873 (arg1)->base_OnLeave();
26874
26875 wxPyEndAllowThreads(__tstate);
26876 if (PyErr_Occurred()) SWIG_fail;
26877 }
26878 Py_INCREF(Py_None); resultobj = Py_None;
26879 return resultobj;
26880 fail:
26881 return NULL;
26882 }
26883
26884
26885 static PyObject *_wrap_FileDropTarget_base_OnDrop(PyObject *self, PyObject *args, PyObject *kwargs) {
26886 PyObject *resultobj;
26887 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
26888 int arg2 ;
26889 int arg3 ;
26890 bool result;
26891 PyObject * obj0 = 0 ;
26892 PyObject * obj1 = 0 ;
26893 PyObject * obj2 = 0 ;
26894 char *kwnames[] = {
26895 (char *) "self",(char *) "x",(char *) "y", NULL
26896 };
26897
26898 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileDropTarget_base_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail;
26899 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget,
26900 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26901 arg2 = (int) SWIG_AsInt(obj1);
26902 if (PyErr_Occurred()) SWIG_fail;
26903 arg3 = (int) SWIG_AsInt(obj2);
26904 if (PyErr_Occurred()) SWIG_fail;
26905 {
26906 PyThreadState* __tstate = wxPyBeginAllowThreads();
26907 result = (bool)(arg1)->base_OnDrop(arg2,arg3);
26908
26909 wxPyEndAllowThreads(__tstate);
26910 if (PyErr_Occurred()) SWIG_fail;
26911 }
26912 {
26913 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26914 }
26915 return resultobj;
26916 fail:
26917 return NULL;
26918 }
26919
26920
26921 static PyObject *_wrap_FileDropTarget_base_OnData(PyObject *self, PyObject *args, PyObject *kwargs) {
26922 PyObject *resultobj;
26923 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
26924 int arg2 ;
26925 int arg3 ;
26926 int arg4 ;
26927 int result;
26928 PyObject * obj0 = 0 ;
26929 PyObject * obj1 = 0 ;
26930 PyObject * obj2 = 0 ;
26931 PyObject * obj3 = 0 ;
26932 char *kwnames[] = {
26933 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26934 };
26935
26936 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_base_OnData",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26937 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget,
26938 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26939 arg2 = (int) SWIG_AsInt(obj1);
26940 if (PyErr_Occurred()) SWIG_fail;
26941 arg3 = (int) SWIG_AsInt(obj2);
26942 if (PyErr_Occurred()) SWIG_fail;
26943 arg4 = (wxDragResult) SWIG_AsInt(obj3);
26944 if (PyErr_Occurred()) SWIG_fail;
26945 {
26946 PyThreadState* __tstate = wxPyBeginAllowThreads();
26947 result = (int)(arg1)->base_OnData(arg2,arg3,(wxDragResult )arg4);
26948
26949 wxPyEndAllowThreads(__tstate);
26950 if (PyErr_Occurred()) SWIG_fail;
26951 }
26952 resultobj = SWIG_FromInt((int)result);
26953 return resultobj;
26954 fail:
26955 return NULL;
26956 }
26957
26958
26959 static PyObject * FileDropTarget_swigregister(PyObject *self, PyObject *args) {
26960 PyObject *obj;
26961 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
26962 SWIG_TypeClientData(SWIGTYPE_p_wxPyFileDropTarget, obj);
26963 Py_INCREF(obj);
26964 return Py_BuildValue((char *)"");
26965 }
26966 static PyObject *_wrap_new_Clipboard(PyObject *self, PyObject *args, PyObject *kwargs) {
26967 PyObject *resultobj;
26968 wxClipboard *result;
26969 char *kwnames[] = {
26970 NULL
26971 };
26972
26973 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Clipboard",kwnames)) goto fail;
26974 {
26975 PyThreadState* __tstate = wxPyBeginAllowThreads();
26976 result = (wxClipboard *)new wxClipboard();
26977
26978 wxPyEndAllowThreads(__tstate);
26979 if (PyErr_Occurred()) SWIG_fail;
26980 }
26981 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClipboard, 1);
26982 return resultobj;
26983 fail:
26984 return NULL;
26985 }
26986
26987
26988 static PyObject *_wrap_delete_Clipboard(PyObject *self, PyObject *args, PyObject *kwargs) {
26989 PyObject *resultobj;
26990 wxClipboard *arg1 = (wxClipboard *) 0 ;
26991 PyObject * obj0 = 0 ;
26992 char *kwnames[] = {
26993 (char *) "self", NULL
26994 };
26995
26996 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Clipboard",kwnames,&obj0)) goto fail;
26997 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
26998 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26999 {
27000 PyThreadState* __tstate = wxPyBeginAllowThreads();
27001 delete arg1;
27002
27003 wxPyEndAllowThreads(__tstate);
27004 if (PyErr_Occurred()) SWIG_fail;
27005 }
27006 Py_INCREF(Py_None); resultobj = Py_None;
27007 return resultobj;
27008 fail:
27009 return NULL;
27010 }
27011
27012
27013 static PyObject *_wrap_Clipboard_Open(PyObject *self, PyObject *args, PyObject *kwargs) {
27014 PyObject *resultobj;
27015 wxClipboard *arg1 = (wxClipboard *) 0 ;
27016 bool result;
27017 PyObject * obj0 = 0 ;
27018 char *kwnames[] = {
27019 (char *) "self", NULL
27020 };
27021
27022 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Open",kwnames,&obj0)) goto fail;
27023 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27024 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27025 {
27026 PyThreadState* __tstate = wxPyBeginAllowThreads();
27027 result = (bool)(arg1)->Open();
27028
27029 wxPyEndAllowThreads(__tstate);
27030 if (PyErr_Occurred()) SWIG_fail;
27031 }
27032 {
27033 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27034 }
27035 return resultobj;
27036 fail:
27037 return NULL;
27038 }
27039
27040
27041 static PyObject *_wrap_Clipboard_Close(PyObject *self, PyObject *args, PyObject *kwargs) {
27042 PyObject *resultobj;
27043 wxClipboard *arg1 = (wxClipboard *) 0 ;
27044 PyObject * obj0 = 0 ;
27045 char *kwnames[] = {
27046 (char *) "self", NULL
27047 };
27048
27049 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Close",kwnames,&obj0)) goto fail;
27050 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27051 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27052 {
27053 PyThreadState* __tstate = wxPyBeginAllowThreads();
27054 (arg1)->Close();
27055
27056 wxPyEndAllowThreads(__tstate);
27057 if (PyErr_Occurred()) SWIG_fail;
27058 }
27059 Py_INCREF(Py_None); resultobj = Py_None;
27060 return resultobj;
27061 fail:
27062 return NULL;
27063 }
27064
27065
27066 static PyObject *_wrap_Clipboard_IsOpened(PyObject *self, PyObject *args, PyObject *kwargs) {
27067 PyObject *resultobj;
27068 wxClipboard *arg1 = (wxClipboard *) 0 ;
27069 bool result;
27070 PyObject * obj0 = 0 ;
27071 char *kwnames[] = {
27072 (char *) "self", NULL
27073 };
27074
27075 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_IsOpened",kwnames,&obj0)) goto fail;
27076 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27077 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27078 {
27079 PyThreadState* __tstate = wxPyBeginAllowThreads();
27080 result = (bool)((wxClipboard const *)arg1)->IsOpened();
27081
27082 wxPyEndAllowThreads(__tstate);
27083 if (PyErr_Occurred()) SWIG_fail;
27084 }
27085 {
27086 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27087 }
27088 return resultobj;
27089 fail:
27090 return NULL;
27091 }
27092
27093
27094 static PyObject *_wrap_Clipboard_AddData(PyObject *self, PyObject *args, PyObject *kwargs) {
27095 PyObject *resultobj;
27096 wxClipboard *arg1 = (wxClipboard *) 0 ;
27097 wxDataObject *arg2 = (wxDataObject *) 0 ;
27098 bool result;
27099 PyObject * obj0 = 0 ;
27100 PyObject * obj1 = 0 ;
27101 char *kwnames[] = {
27102 (char *) "self",(char *) "data", NULL
27103 };
27104
27105 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_AddData",kwnames,&obj0,&obj1)) goto fail;
27106 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27107 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27108 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject,
27109 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
27110 {
27111 PyThreadState* __tstate = wxPyBeginAllowThreads();
27112 result = (bool)(arg1)->AddData(arg2);
27113
27114 wxPyEndAllowThreads(__tstate);
27115 if (PyErr_Occurred()) SWIG_fail;
27116 }
27117 {
27118 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27119 }
27120 return resultobj;
27121 fail:
27122 return NULL;
27123 }
27124
27125
27126 static PyObject *_wrap_Clipboard_SetData(PyObject *self, PyObject *args, PyObject *kwargs) {
27127 PyObject *resultobj;
27128 wxClipboard *arg1 = (wxClipboard *) 0 ;
27129 wxDataObject *arg2 = (wxDataObject *) 0 ;
27130 bool result;
27131 PyObject * obj0 = 0 ;
27132 PyObject * obj1 = 0 ;
27133 char *kwnames[] = {
27134 (char *) "self",(char *) "data", NULL
27135 };
27136
27137 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_SetData",kwnames,&obj0,&obj1)) goto fail;
27138 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27139 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27140 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject,
27141 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
27142 {
27143 PyThreadState* __tstate = wxPyBeginAllowThreads();
27144 result = (bool)(arg1)->SetData(arg2);
27145
27146 wxPyEndAllowThreads(__tstate);
27147 if (PyErr_Occurred()) SWIG_fail;
27148 }
27149 {
27150 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27151 }
27152 return resultobj;
27153 fail:
27154 return NULL;
27155 }
27156
27157
27158 static PyObject *_wrap_Clipboard_IsSupported(PyObject *self, PyObject *args, PyObject *kwargs) {
27159 PyObject *resultobj;
27160 wxClipboard *arg1 = (wxClipboard *) 0 ;
27161 wxDataFormat *arg2 = 0 ;
27162 bool result;
27163 PyObject * obj0 = 0 ;
27164 PyObject * obj1 = 0 ;
27165 char *kwnames[] = {
27166 (char *) "self",(char *) "format", NULL
27167 };
27168
27169 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_IsSupported",kwnames,&obj0,&obj1)) goto fail;
27170 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27171 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27172 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
27173 SWIG_POINTER_EXCEPTION | 0)) == -1)
27174 SWIG_fail;
27175 if (arg2 == NULL) {
27176 PyErr_SetString(PyExc_TypeError,"null reference");
27177 SWIG_fail;
27178 }
27179 {
27180 PyThreadState* __tstate = wxPyBeginAllowThreads();
27181 result = (bool)(arg1)->IsSupported((wxDataFormat const &)*arg2);
27182
27183 wxPyEndAllowThreads(__tstate);
27184 if (PyErr_Occurred()) SWIG_fail;
27185 }
27186 {
27187 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27188 }
27189 return resultobj;
27190 fail:
27191 return NULL;
27192 }
27193
27194
27195 static PyObject *_wrap_Clipboard_GetData(PyObject *self, PyObject *args, PyObject *kwargs) {
27196 PyObject *resultobj;
27197 wxClipboard *arg1 = (wxClipboard *) 0 ;
27198 wxDataObject *arg2 = 0 ;
27199 bool result;
27200 PyObject * obj0 = 0 ;
27201 PyObject * obj1 = 0 ;
27202 char *kwnames[] = {
27203 (char *) "self",(char *) "data", NULL
27204 };
27205
27206 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_GetData",kwnames,&obj0,&obj1)) goto fail;
27207 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27208 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27209 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject,
27210 SWIG_POINTER_EXCEPTION | 0)) == -1)
27211 SWIG_fail;
27212 if (arg2 == NULL) {
27213 PyErr_SetString(PyExc_TypeError,"null reference");
27214 SWIG_fail;
27215 }
27216 {
27217 PyThreadState* __tstate = wxPyBeginAllowThreads();
27218 result = (bool)(arg1)->GetData(*arg2);
27219
27220 wxPyEndAllowThreads(__tstate);
27221 if (PyErr_Occurred()) SWIG_fail;
27222 }
27223 {
27224 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27225 }
27226 return resultobj;
27227 fail:
27228 return NULL;
27229 }
27230
27231
27232 static PyObject *_wrap_Clipboard_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
27233 PyObject *resultobj;
27234 wxClipboard *arg1 = (wxClipboard *) 0 ;
27235 PyObject * obj0 = 0 ;
27236 char *kwnames[] = {
27237 (char *) "self", NULL
27238 };
27239
27240 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Clear",kwnames,&obj0)) goto fail;
27241 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27242 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27243 {
27244 PyThreadState* __tstate = wxPyBeginAllowThreads();
27245 (arg1)->Clear();
27246
27247 wxPyEndAllowThreads(__tstate);
27248 if (PyErr_Occurred()) SWIG_fail;
27249 }
27250 Py_INCREF(Py_None); resultobj = Py_None;
27251 return resultobj;
27252 fail:
27253 return NULL;
27254 }
27255
27256
27257 static PyObject *_wrap_Clipboard_Flush(PyObject *self, PyObject *args, PyObject *kwargs) {
27258 PyObject *resultobj;
27259 wxClipboard *arg1 = (wxClipboard *) 0 ;
27260 bool result;
27261 PyObject * obj0 = 0 ;
27262 char *kwnames[] = {
27263 (char *) "self", NULL
27264 };
27265
27266 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Flush",kwnames,&obj0)) goto fail;
27267 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27268 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27269 {
27270 PyThreadState* __tstate = wxPyBeginAllowThreads();
27271 result = (bool)(arg1)->Flush();
27272
27273 wxPyEndAllowThreads(__tstate);
27274 if (PyErr_Occurred()) SWIG_fail;
27275 }
27276 {
27277 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27278 }
27279 return resultobj;
27280 fail:
27281 return NULL;
27282 }
27283
27284
27285 static PyObject *_wrap_Clipboard_UsePrimarySelection(PyObject *self, PyObject *args, PyObject *kwargs) {
27286 PyObject *resultobj;
27287 wxClipboard *arg1 = (wxClipboard *) 0 ;
27288 bool arg2 = (bool) True ;
27289 PyObject * obj0 = 0 ;
27290 PyObject * obj1 = 0 ;
27291 char *kwnames[] = {
27292 (char *) "self",(char *) "primary", NULL
27293 };
27294
27295 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Clipboard_UsePrimarySelection",kwnames,&obj0,&obj1)) goto fail;
27296 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27297 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27298 if (obj1) {
27299 arg2 = (bool) SWIG_AsBool(obj1);
27300 if (PyErr_Occurred()) SWIG_fail;
27301 }
27302 {
27303 PyThreadState* __tstate = wxPyBeginAllowThreads();
27304 (arg1)->UsePrimarySelection(arg2);
27305
27306 wxPyEndAllowThreads(__tstate);
27307 if (PyErr_Occurred()) SWIG_fail;
27308 }
27309 Py_INCREF(Py_None); resultobj = Py_None;
27310 return resultobj;
27311 fail:
27312 return NULL;
27313 }
27314
27315
27316 static PyObject *_wrap_Clipboard_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
27317 PyObject *resultobj;
27318 wxClipboard *result;
27319 char *kwnames[] = {
27320 NULL
27321 };
27322
27323 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Clipboard_Get",kwnames)) goto fail;
27324 {
27325 PyThreadState* __tstate = wxPyBeginAllowThreads();
27326 result = (wxClipboard *)wxClipboard::Get();
27327
27328 wxPyEndAllowThreads(__tstate);
27329 if (PyErr_Occurred()) SWIG_fail;
27330 }
27331 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClipboard, 0);
27332 return resultobj;
27333 fail:
27334 return NULL;
27335 }
27336
27337
27338 static PyObject * Clipboard_swigregister(PyObject *self, PyObject *args) {
27339 PyObject *obj;
27340 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
27341 SWIG_TypeClientData(SWIGTYPE_p_wxClipboard, obj);
27342 Py_INCREF(obj);
27343 return Py_BuildValue((char *)"");
27344 }
27345 static PyObject *_wrap_new_ClipboardLocker(PyObject *self, PyObject *args, PyObject *kwargs) {
27346 PyObject *resultobj;
27347 wxClipboard *arg1 = (wxClipboard *) NULL ;
27348 wxClipboardLocker *result;
27349 PyObject * obj0 = 0 ;
27350 char *kwnames[] = {
27351 (char *) "clipboard", NULL
27352 };
27353
27354 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_ClipboardLocker",kwnames,&obj0)) goto fail;
27355 if (obj0) {
27356 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27357 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27358 }
27359 {
27360 PyThreadState* __tstate = wxPyBeginAllowThreads();
27361 result = (wxClipboardLocker *)new wxClipboardLocker(arg1);
27362
27363 wxPyEndAllowThreads(__tstate);
27364 if (PyErr_Occurred()) SWIG_fail;
27365 }
27366 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClipboardLocker, 1);
27367 return resultobj;
27368 fail:
27369 return NULL;
27370 }
27371
27372
27373 static PyObject *_wrap_delete_ClipboardLocker(PyObject *self, PyObject *args, PyObject *kwargs) {
27374 PyObject *resultobj;
27375 wxClipboardLocker *arg1 = (wxClipboardLocker *) 0 ;
27376 PyObject * obj0 = 0 ;
27377 char *kwnames[] = {
27378 (char *) "self", NULL
27379 };
27380
27381 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ClipboardLocker",kwnames,&obj0)) goto fail;
27382 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboardLocker,
27383 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27384 {
27385 PyThreadState* __tstate = wxPyBeginAllowThreads();
27386 delete arg1;
27387
27388 wxPyEndAllowThreads(__tstate);
27389 if (PyErr_Occurred()) SWIG_fail;
27390 }
27391 Py_INCREF(Py_None); resultobj = Py_None;
27392 return resultobj;
27393 fail:
27394 return NULL;
27395 }
27396
27397
27398 static PyObject *_wrap_ClipboardLocker___nonzero__(PyObject *self, PyObject *args, PyObject *kwargs) {
27399 PyObject *resultobj;
27400 wxClipboardLocker *arg1 = (wxClipboardLocker *) 0 ;
27401 bool result;
27402 PyObject * obj0 = 0 ;
27403 char *kwnames[] = {
27404 (char *) "self", NULL
27405 };
27406
27407 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ClipboardLocker___nonzero__",kwnames,&obj0)) goto fail;
27408 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboardLocker,
27409 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27410 {
27411 PyThreadState* __tstate = wxPyBeginAllowThreads();
27412 result = (bool)wxClipboardLocker___nonzero__(arg1);
27413
27414 wxPyEndAllowThreads(__tstate);
27415 if (PyErr_Occurred()) SWIG_fail;
27416 }
27417 {
27418 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27419 }
27420 return resultobj;
27421 fail:
27422 return NULL;
27423 }
27424
27425
27426 static PyObject * ClipboardLocker_swigregister(PyObject *self, PyObject *args) {
27427 PyObject *obj;
27428 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
27429 SWIG_TypeClientData(SWIGTYPE_p_wxClipboardLocker, obj);
27430 Py_INCREF(obj);
27431 return Py_BuildValue((char *)"");
27432 }
27433 static PyObject *_wrap_new_VideoMode(PyObject *self, PyObject *args, PyObject *kwargs) {
27434 PyObject *resultobj;
27435 int arg1 = (int) 0 ;
27436 int arg2 = (int) 0 ;
27437 int arg3 = (int) 0 ;
27438 int arg4 = (int) 0 ;
27439 wxVideoMode *result;
27440 PyObject * obj0 = 0 ;
27441 PyObject * obj1 = 0 ;
27442 PyObject * obj2 = 0 ;
27443 PyObject * obj3 = 0 ;
27444 char *kwnames[] = {
27445 (char *) "width",(char *) "height",(char *) "depth",(char *) "freq", NULL
27446 };
27447
27448 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_VideoMode",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
27449 if (obj0) {
27450 arg1 = (int) SWIG_AsInt(obj0);
27451 if (PyErr_Occurred()) SWIG_fail;
27452 }
27453 if (obj1) {
27454 arg2 = (int) SWIG_AsInt(obj1);
27455 if (PyErr_Occurred()) SWIG_fail;
27456 }
27457 if (obj2) {
27458 arg3 = (int) SWIG_AsInt(obj2);
27459 if (PyErr_Occurred()) SWIG_fail;
27460 }
27461 if (obj3) {
27462 arg4 = (int) SWIG_AsInt(obj3);
27463 if (PyErr_Occurred()) SWIG_fail;
27464 }
27465 {
27466 PyThreadState* __tstate = wxPyBeginAllowThreads();
27467 result = (wxVideoMode *)new wxVideoMode(arg1,arg2,arg3,arg4);
27468
27469 wxPyEndAllowThreads(__tstate);
27470 if (PyErr_Occurred()) SWIG_fail;
27471 }
27472 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxVideoMode, 1);
27473 return resultobj;
27474 fail:
27475 return NULL;
27476 }
27477
27478
27479 static PyObject *_wrap_delete_VideoMode(PyObject *self, PyObject *args, PyObject *kwargs) {
27480 PyObject *resultobj;
27481 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27482 PyObject * obj0 = 0 ;
27483 char *kwnames[] = {
27484 (char *) "self", NULL
27485 };
27486
27487 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_VideoMode",kwnames,&obj0)) goto fail;
27488 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27489 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27490 {
27491 PyThreadState* __tstate = wxPyBeginAllowThreads();
27492 delete arg1;
27493
27494 wxPyEndAllowThreads(__tstate);
27495 if (PyErr_Occurred()) SWIG_fail;
27496 }
27497 Py_INCREF(Py_None); resultobj = Py_None;
27498 return resultobj;
27499 fail:
27500 return NULL;
27501 }
27502
27503
27504 static PyObject *_wrap_VideoMode_Matches(PyObject *self, PyObject *args, PyObject *kwargs) {
27505 PyObject *resultobj;
27506 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27507 wxVideoMode *arg2 = 0 ;
27508 bool result;
27509 PyObject * obj0 = 0 ;
27510 PyObject * obj1 = 0 ;
27511 char *kwnames[] = {
27512 (char *) "self",(char *) "other", NULL
27513 };
27514
27515 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_Matches",kwnames,&obj0,&obj1)) goto fail;
27516 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27517 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27518 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode,
27519 SWIG_POINTER_EXCEPTION | 0)) == -1)
27520 SWIG_fail;
27521 if (arg2 == NULL) {
27522 PyErr_SetString(PyExc_TypeError,"null reference");
27523 SWIG_fail;
27524 }
27525 {
27526 PyThreadState* __tstate = wxPyBeginAllowThreads();
27527 result = (bool)((wxVideoMode const *)arg1)->Matches((wxVideoMode const &)*arg2);
27528
27529 wxPyEndAllowThreads(__tstate);
27530 if (PyErr_Occurred()) SWIG_fail;
27531 }
27532 {
27533 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27534 }
27535 return resultobj;
27536 fail:
27537 return NULL;
27538 }
27539
27540
27541 static PyObject *_wrap_VideoMode_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
27542 PyObject *resultobj;
27543 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27544 int result;
27545 PyObject * obj0 = 0 ;
27546 char *kwnames[] = {
27547 (char *) "self", NULL
27548 };
27549
27550 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_GetWidth",kwnames,&obj0)) goto fail;
27551 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27552 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27553 {
27554 PyThreadState* __tstate = wxPyBeginAllowThreads();
27555 result = (int)((wxVideoMode const *)arg1)->GetWidth();
27556
27557 wxPyEndAllowThreads(__tstate);
27558 if (PyErr_Occurred()) SWIG_fail;
27559 }
27560 resultobj = SWIG_FromInt((int)result);
27561 return resultobj;
27562 fail:
27563 return NULL;
27564 }
27565
27566
27567 static PyObject *_wrap_VideoMode_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
27568 PyObject *resultobj;
27569 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27570 int result;
27571 PyObject * obj0 = 0 ;
27572 char *kwnames[] = {
27573 (char *) "self", NULL
27574 };
27575
27576 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_GetHeight",kwnames,&obj0)) goto fail;
27577 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27578 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27579 {
27580 PyThreadState* __tstate = wxPyBeginAllowThreads();
27581 result = (int)((wxVideoMode const *)arg1)->GetHeight();
27582
27583 wxPyEndAllowThreads(__tstate);
27584 if (PyErr_Occurred()) SWIG_fail;
27585 }
27586 resultobj = SWIG_FromInt((int)result);
27587 return resultobj;
27588 fail:
27589 return NULL;
27590 }
27591
27592
27593 static PyObject *_wrap_VideoMode_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
27594 PyObject *resultobj;
27595 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27596 int result;
27597 PyObject * obj0 = 0 ;
27598 char *kwnames[] = {
27599 (char *) "self", NULL
27600 };
27601
27602 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_GetDepth",kwnames,&obj0)) goto fail;
27603 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27604 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27605 {
27606 PyThreadState* __tstate = wxPyBeginAllowThreads();
27607 result = (int)((wxVideoMode const *)arg1)->GetDepth();
27608
27609 wxPyEndAllowThreads(__tstate);
27610 if (PyErr_Occurred()) SWIG_fail;
27611 }
27612 resultobj = SWIG_FromInt((int)result);
27613 return resultobj;
27614 fail:
27615 return NULL;
27616 }
27617
27618
27619 static PyObject *_wrap_VideoMode_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
27620 PyObject *resultobj;
27621 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27622 bool result;
27623 PyObject * obj0 = 0 ;
27624 char *kwnames[] = {
27625 (char *) "self", NULL
27626 };
27627
27628 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_IsOk",kwnames,&obj0)) goto fail;
27629 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27630 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27631 {
27632 PyThreadState* __tstate = wxPyBeginAllowThreads();
27633 result = (bool)((wxVideoMode const *)arg1)->IsOk();
27634
27635 wxPyEndAllowThreads(__tstate);
27636 if (PyErr_Occurred()) SWIG_fail;
27637 }
27638 {
27639 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27640 }
27641 return resultobj;
27642 fail:
27643 return NULL;
27644 }
27645
27646
27647 static PyObject *_wrap_VideoMode___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
27648 PyObject *resultobj;
27649 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27650 wxVideoMode *arg2 = (wxVideoMode *) 0 ;
27651 bool result;
27652 PyObject * obj0 = 0 ;
27653 PyObject * obj1 = 0 ;
27654 char *kwnames[] = {
27655 (char *) "self",(char *) "other", NULL
27656 };
27657
27658 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode___eq__",kwnames,&obj0,&obj1)) goto fail;
27659 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27660 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27661 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode,
27662 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27663 {
27664 PyThreadState* __tstate = wxPyBeginAllowThreads();
27665 result = (bool)wxVideoMode___eq__(arg1,(wxVideoMode const *)arg2);
27666
27667 wxPyEndAllowThreads(__tstate);
27668 if (PyErr_Occurred()) SWIG_fail;
27669 }
27670 {
27671 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27672 }
27673 return resultobj;
27674 fail:
27675 return NULL;
27676 }
27677
27678
27679 static PyObject *_wrap_VideoMode___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
27680 PyObject *resultobj;
27681 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27682 wxVideoMode *arg2 = (wxVideoMode *) 0 ;
27683 bool result;
27684 PyObject * obj0 = 0 ;
27685 PyObject * obj1 = 0 ;
27686 char *kwnames[] = {
27687 (char *) "self",(char *) "other", NULL
27688 };
27689
27690 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode___ne__",kwnames,&obj0,&obj1)) goto fail;
27691 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27692 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27693 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode,
27694 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27695 {
27696 PyThreadState* __tstate = wxPyBeginAllowThreads();
27697 result = (bool)wxVideoMode___ne__(arg1,(wxVideoMode const *)arg2);
27698
27699 wxPyEndAllowThreads(__tstate);
27700 if (PyErr_Occurred()) SWIG_fail;
27701 }
27702 {
27703 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27704 }
27705 return resultobj;
27706 fail:
27707 return NULL;
27708 }
27709
27710
27711 static PyObject *_wrap_VideoMode_w_set(PyObject *self, PyObject *args, PyObject *kwargs) {
27712 PyObject *resultobj;
27713 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27714 int arg2 ;
27715 PyObject * obj0 = 0 ;
27716 PyObject * obj1 = 0 ;
27717 char *kwnames[] = {
27718 (char *) "self",(char *) "w", NULL
27719 };
27720
27721 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_w_set",kwnames,&obj0,&obj1)) goto fail;
27722 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27723 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27724 arg2 = (int) SWIG_AsInt(obj1);
27725 if (PyErr_Occurred()) SWIG_fail;
27726 if (arg1) (arg1)->w = arg2;
27727
27728 Py_INCREF(Py_None); resultobj = Py_None;
27729 return resultobj;
27730 fail:
27731 return NULL;
27732 }
27733
27734
27735 static PyObject *_wrap_VideoMode_w_get(PyObject *self, PyObject *args, PyObject *kwargs) {
27736 PyObject *resultobj;
27737 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27738 int result;
27739 PyObject * obj0 = 0 ;
27740 char *kwnames[] = {
27741 (char *) "self", NULL
27742 };
27743
27744 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_w_get",kwnames,&obj0)) goto fail;
27745 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27746 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27747 result = (int) ((arg1)->w);
27748
27749 resultobj = SWIG_FromInt((int)result);
27750 return resultobj;
27751 fail:
27752 return NULL;
27753 }
27754
27755
27756 static PyObject *_wrap_VideoMode_h_set(PyObject *self, PyObject *args, PyObject *kwargs) {
27757 PyObject *resultobj;
27758 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27759 int arg2 ;
27760 PyObject * obj0 = 0 ;
27761 PyObject * obj1 = 0 ;
27762 char *kwnames[] = {
27763 (char *) "self",(char *) "h", NULL
27764 };
27765
27766 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_h_set",kwnames,&obj0,&obj1)) goto fail;
27767 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27768 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27769 arg2 = (int) SWIG_AsInt(obj1);
27770 if (PyErr_Occurred()) SWIG_fail;
27771 if (arg1) (arg1)->h = arg2;
27772
27773 Py_INCREF(Py_None); resultobj = Py_None;
27774 return resultobj;
27775 fail:
27776 return NULL;
27777 }
27778
27779
27780 static PyObject *_wrap_VideoMode_h_get(PyObject *self, PyObject *args, PyObject *kwargs) {
27781 PyObject *resultobj;
27782 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27783 int result;
27784 PyObject * obj0 = 0 ;
27785 char *kwnames[] = {
27786 (char *) "self", NULL
27787 };
27788
27789 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_h_get",kwnames,&obj0)) goto fail;
27790 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27791 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27792 result = (int) ((arg1)->h);
27793
27794 resultobj = SWIG_FromInt((int)result);
27795 return resultobj;
27796 fail:
27797 return NULL;
27798 }
27799
27800
27801 static PyObject *_wrap_VideoMode_bpp_set(PyObject *self, PyObject *args, PyObject *kwargs) {
27802 PyObject *resultobj;
27803 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27804 int arg2 ;
27805 PyObject * obj0 = 0 ;
27806 PyObject * obj1 = 0 ;
27807 char *kwnames[] = {
27808 (char *) "self",(char *) "bpp", NULL
27809 };
27810
27811 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_bpp_set",kwnames,&obj0,&obj1)) goto fail;
27812 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27813 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27814 arg2 = (int) SWIG_AsInt(obj1);
27815 if (PyErr_Occurred()) SWIG_fail;
27816 if (arg1) (arg1)->bpp = arg2;
27817
27818 Py_INCREF(Py_None); resultobj = Py_None;
27819 return resultobj;
27820 fail:
27821 return NULL;
27822 }
27823
27824
27825 static PyObject *_wrap_VideoMode_bpp_get(PyObject *self, PyObject *args, PyObject *kwargs) {
27826 PyObject *resultobj;
27827 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27828 int result;
27829 PyObject * obj0 = 0 ;
27830 char *kwnames[] = {
27831 (char *) "self", NULL
27832 };
27833
27834 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_bpp_get",kwnames,&obj0)) goto fail;
27835 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27836 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27837 result = (int) ((arg1)->bpp);
27838
27839 resultobj = SWIG_FromInt((int)result);
27840 return resultobj;
27841 fail:
27842 return NULL;
27843 }
27844
27845
27846 static PyObject *_wrap_VideoMode_refresh_set(PyObject *self, PyObject *args, PyObject *kwargs) {
27847 PyObject *resultobj;
27848 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27849 int arg2 ;
27850 PyObject * obj0 = 0 ;
27851 PyObject * obj1 = 0 ;
27852 char *kwnames[] = {
27853 (char *) "self",(char *) "refresh", NULL
27854 };
27855
27856 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_refresh_set",kwnames,&obj0,&obj1)) goto fail;
27857 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27858 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27859 arg2 = (int) SWIG_AsInt(obj1);
27860 if (PyErr_Occurred()) SWIG_fail;
27861 if (arg1) (arg1)->refresh = arg2;
27862
27863 Py_INCREF(Py_None); resultobj = Py_None;
27864 return resultobj;
27865 fail:
27866 return NULL;
27867 }
27868
27869
27870 static PyObject *_wrap_VideoMode_refresh_get(PyObject *self, PyObject *args, PyObject *kwargs) {
27871 PyObject *resultobj;
27872 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27873 int result;
27874 PyObject * obj0 = 0 ;
27875 char *kwnames[] = {
27876 (char *) "self", NULL
27877 };
27878
27879 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_refresh_get",kwnames,&obj0)) goto fail;
27880 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27881 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27882 result = (int) ((arg1)->refresh);
27883
27884 resultobj = SWIG_FromInt((int)result);
27885 return resultobj;
27886 fail:
27887 return NULL;
27888 }
27889
27890
27891 static PyObject * VideoMode_swigregister(PyObject *self, PyObject *args) {
27892 PyObject *obj;
27893 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
27894 SWIG_TypeClientData(SWIGTYPE_p_wxVideoMode, obj);
27895 Py_INCREF(obj);
27896 return Py_BuildValue((char *)"");
27897 }
27898 static int _wrap_DefaultVideoMode_set(PyObject *_val) {
27899 PyErr_SetString(PyExc_TypeError,"Variable DefaultVideoMode is read-only.");
27900 return 1;
27901 }
27902
27903
27904 static PyObject *_wrap_DefaultVideoMode_get() {
27905 PyObject *pyobj;
27906
27907 pyobj = SWIG_NewPointerObj((void *)(&wxDefaultVideoMode), SWIGTYPE_p_wxVideoMode, 0);
27908 return pyobj;
27909 }
27910
27911
27912 static PyObject *_wrap_new_Display(PyObject *self, PyObject *args, PyObject *kwargs) {
27913 PyObject *resultobj;
27914 size_t arg1 = (size_t) 0 ;
27915 wxDisplay *result;
27916 PyObject * obj0 = 0 ;
27917 char *kwnames[] = {
27918 (char *) "index", NULL
27919 };
27920
27921 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Display",kwnames,&obj0)) goto fail;
27922 if (obj0) {
27923 arg1 = (size_t) SWIG_AsUnsignedLong(obj0);
27924 if (PyErr_Occurred()) SWIG_fail;
27925 }
27926 {
27927 PyThreadState* __tstate = wxPyBeginAllowThreads();
27928 result = (wxDisplay *)new wxDisplay(arg1);
27929
27930 wxPyEndAllowThreads(__tstate);
27931 if (PyErr_Occurred()) SWIG_fail;
27932 }
27933 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDisplay, 1);
27934 return resultobj;
27935 fail:
27936 return NULL;
27937 }
27938
27939
27940 static PyObject *_wrap_delete_Display(PyObject *self, PyObject *args, PyObject *kwargs) {
27941 PyObject *resultobj;
27942 wxDisplay *arg1 = (wxDisplay *) 0 ;
27943 PyObject * obj0 = 0 ;
27944 char *kwnames[] = {
27945 (char *) "self", NULL
27946 };
27947
27948 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Display",kwnames,&obj0)) goto fail;
27949 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
27950 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27951 {
27952 PyThreadState* __tstate = wxPyBeginAllowThreads();
27953 delete arg1;
27954
27955 wxPyEndAllowThreads(__tstate);
27956 if (PyErr_Occurred()) SWIG_fail;
27957 }
27958 Py_INCREF(Py_None); resultobj = Py_None;
27959 return resultobj;
27960 fail:
27961 return NULL;
27962 }
27963
27964
27965 static PyObject *_wrap_Display_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
27966 PyObject *resultobj;
27967 size_t result;
27968 char *kwnames[] = {
27969 NULL
27970 };
27971
27972 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Display_GetCount",kwnames)) goto fail;
27973 {
27974 PyThreadState* __tstate = wxPyBeginAllowThreads();
27975 result = (size_t)wxDisplay::GetCount();
27976
27977 wxPyEndAllowThreads(__tstate);
27978 if (PyErr_Occurred()) SWIG_fail;
27979 }
27980 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
27981 return resultobj;
27982 fail:
27983 return NULL;
27984 }
27985
27986
27987 static PyObject *_wrap_Display_GetFromPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
27988 PyObject *resultobj;
27989 wxPoint *arg1 = 0 ;
27990 int result;
27991 wxPoint temp1 ;
27992 PyObject * obj0 = 0 ;
27993 char *kwnames[] = {
27994 (char *) "pt", NULL
27995 };
27996
27997 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetFromPoint",kwnames,&obj0)) goto fail;
27998 {
27999 arg1 = &temp1;
28000 if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail;
28001 }
28002 {
28003 PyThreadState* __tstate = wxPyBeginAllowThreads();
28004 result = (int)wxDisplay::GetFromPoint((wxPoint const &)*arg1);
28005
28006 wxPyEndAllowThreads(__tstate);
28007 if (PyErr_Occurred()) SWIG_fail;
28008 }
28009 resultobj = SWIG_FromInt((int)result);
28010 return resultobj;
28011 fail:
28012 return NULL;
28013 }
28014
28015
28016 static PyObject *_wrap_Display_GetFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
28017 PyObject *resultobj;
28018 wxWindow *arg1 = (wxWindow *) 0 ;
28019 int result;
28020 PyObject * obj0 = 0 ;
28021 char *kwnames[] = {
28022 (char *) "window", NULL
28023 };
28024
28025 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetFromWindow",kwnames,&obj0)) goto fail;
28026 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
28027 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28028 {
28029 PyThreadState* __tstate = wxPyBeginAllowThreads();
28030 result = (int)Display_GetFromWindow(arg1);
28031
28032 wxPyEndAllowThreads(__tstate);
28033 if (PyErr_Occurred()) SWIG_fail;
28034 }
28035 resultobj = SWIG_FromInt((int)result);
28036 return resultobj;
28037 fail:
28038 return NULL;
28039 }
28040
28041
28042 static PyObject *_wrap_Display_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
28043 PyObject *resultobj;
28044 wxDisplay *arg1 = (wxDisplay *) 0 ;
28045 bool result;
28046 PyObject * obj0 = 0 ;
28047 char *kwnames[] = {
28048 (char *) "self", NULL
28049 };
28050
28051 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_IsOk",kwnames,&obj0)) goto fail;
28052 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
28053 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28054 {
28055 PyThreadState* __tstate = wxPyBeginAllowThreads();
28056 result = (bool)((wxDisplay const *)arg1)->IsOk();
28057
28058 wxPyEndAllowThreads(__tstate);
28059 if (PyErr_Occurred()) SWIG_fail;
28060 }
28061 {
28062 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28063 }
28064 return resultobj;
28065 fail:
28066 return NULL;
28067 }
28068
28069
28070 static PyObject *_wrap_Display_GetGeometry(PyObject *self, PyObject *args, PyObject *kwargs) {
28071 PyObject *resultobj;
28072 wxDisplay *arg1 = (wxDisplay *) 0 ;
28073 wxRect result;
28074 PyObject * obj0 = 0 ;
28075 char *kwnames[] = {
28076 (char *) "self", NULL
28077 };
28078
28079 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetGeometry",kwnames,&obj0)) goto fail;
28080 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
28081 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28082 {
28083 PyThreadState* __tstate = wxPyBeginAllowThreads();
28084 result = ((wxDisplay const *)arg1)->GetGeometry();
28085
28086 wxPyEndAllowThreads(__tstate);
28087 if (PyErr_Occurred()) SWIG_fail;
28088 }
28089 {
28090 wxRect * resultptr;
28091 resultptr = new wxRect((wxRect &) result);
28092 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
28093 }
28094 return resultobj;
28095 fail:
28096 return NULL;
28097 }
28098
28099
28100 static PyObject *_wrap_Display_GetName(PyObject *self, PyObject *args, PyObject *kwargs) {
28101 PyObject *resultobj;
28102 wxDisplay *arg1 = (wxDisplay *) 0 ;
28103 wxString result;
28104 PyObject * obj0 = 0 ;
28105 char *kwnames[] = {
28106 (char *) "self", NULL
28107 };
28108
28109 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetName",kwnames,&obj0)) goto fail;
28110 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
28111 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28112 {
28113 PyThreadState* __tstate = wxPyBeginAllowThreads();
28114 result = ((wxDisplay const *)arg1)->GetName();
28115
28116 wxPyEndAllowThreads(__tstate);
28117 if (PyErr_Occurred()) SWIG_fail;
28118 }
28119 {
28120 #if wxUSE_UNICODE
28121 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
28122 #else
28123 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
28124 #endif
28125 }
28126 return resultobj;
28127 fail:
28128 return NULL;
28129 }
28130
28131
28132 static PyObject *_wrap_Display_IsPrimary(PyObject *self, PyObject *args, PyObject *kwargs) {
28133 PyObject *resultobj;
28134 wxDisplay *arg1 = (wxDisplay *) 0 ;
28135 bool result;
28136 PyObject * obj0 = 0 ;
28137 char *kwnames[] = {
28138 (char *) "self", NULL
28139 };
28140
28141 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_IsPrimary",kwnames,&obj0)) goto fail;
28142 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
28143 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28144 {
28145 PyThreadState* __tstate = wxPyBeginAllowThreads();
28146 result = (bool)((wxDisplay const *)arg1)->IsPrimary();
28147
28148 wxPyEndAllowThreads(__tstate);
28149 if (PyErr_Occurred()) SWIG_fail;
28150 }
28151 {
28152 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28153 }
28154 return resultobj;
28155 fail:
28156 return NULL;
28157 }
28158
28159
28160 static PyObject *_wrap_Display_GetModes(PyObject *self, PyObject *args, PyObject *kwargs) {
28161 PyObject *resultobj;
28162 wxDisplay *arg1 = (wxDisplay *) 0 ;
28163 wxVideoMode const &arg2_defvalue = wxDefaultVideoMode ;
28164 wxVideoMode *arg2 = (wxVideoMode *) &arg2_defvalue ;
28165 PyObject *result;
28166 PyObject * obj0 = 0 ;
28167 PyObject * obj1 = 0 ;
28168 char *kwnames[] = {
28169 (char *) "self",(char *) "mode", NULL
28170 };
28171
28172 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Display_GetModes",kwnames,&obj0,&obj1)) goto fail;
28173 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
28174 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28175 if (obj1) {
28176 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode,
28177 SWIG_POINTER_EXCEPTION | 0)) == -1)
28178 SWIG_fail;
28179 if (arg2 == NULL) {
28180 PyErr_SetString(PyExc_TypeError,"null reference");
28181 SWIG_fail;
28182 }
28183 }
28184 {
28185 PyThreadState* __tstate = wxPyBeginAllowThreads();
28186 result = (PyObject *)wxDisplay_GetModes(arg1,(wxVideoMode const &)*arg2);
28187
28188 wxPyEndAllowThreads(__tstate);
28189 if (PyErr_Occurred()) SWIG_fail;
28190 }
28191 resultobj = result;
28192 return resultobj;
28193 fail:
28194 return NULL;
28195 }
28196
28197
28198 static PyObject *_wrap_Display_GetCurrentMode(PyObject *self, PyObject *args, PyObject *kwargs) {
28199 PyObject *resultobj;
28200 wxDisplay *arg1 = (wxDisplay *) 0 ;
28201 wxVideoMode result;
28202 PyObject * obj0 = 0 ;
28203 char *kwnames[] = {
28204 (char *) "self", NULL
28205 };
28206
28207 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetCurrentMode",kwnames,&obj0)) goto fail;
28208 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
28209 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28210 {
28211 PyThreadState* __tstate = wxPyBeginAllowThreads();
28212 result = ((wxDisplay const *)arg1)->GetCurrentMode();
28213
28214 wxPyEndAllowThreads(__tstate);
28215 if (PyErr_Occurred()) SWIG_fail;
28216 }
28217 {
28218 wxVideoMode * resultptr;
28219 resultptr = new wxVideoMode((wxVideoMode &) result);
28220 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVideoMode, 1);
28221 }
28222 return resultobj;
28223 fail:
28224 return NULL;
28225 }
28226
28227
28228 static PyObject *_wrap_Display_ChangeMode(PyObject *self, PyObject *args, PyObject *kwargs) {
28229 PyObject *resultobj;
28230 wxDisplay *arg1 = (wxDisplay *) 0 ;
28231 wxVideoMode const &arg2_defvalue = wxDefaultVideoMode ;
28232 wxVideoMode *arg2 = (wxVideoMode *) &arg2_defvalue ;
28233 bool result;
28234 PyObject * obj0 = 0 ;
28235 PyObject * obj1 = 0 ;
28236 char *kwnames[] = {
28237 (char *) "self",(char *) "mode", NULL
28238 };
28239
28240 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Display_ChangeMode",kwnames,&obj0,&obj1)) goto fail;
28241 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
28242 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28243 if (obj1) {
28244 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode,
28245 SWIG_POINTER_EXCEPTION | 0)) == -1)
28246 SWIG_fail;
28247 if (arg2 == NULL) {
28248 PyErr_SetString(PyExc_TypeError,"null reference");
28249 SWIG_fail;
28250 }
28251 }
28252 {
28253 PyThreadState* __tstate = wxPyBeginAllowThreads();
28254 result = (bool)(arg1)->ChangeMode((wxVideoMode const &)*arg2);
28255
28256 wxPyEndAllowThreads(__tstate);
28257 if (PyErr_Occurred()) SWIG_fail;
28258 }
28259 {
28260 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28261 }
28262 return resultobj;
28263 fail:
28264 return NULL;
28265 }
28266
28267
28268 static PyObject *_wrap_Display_ResetMode(PyObject *self, PyObject *args, PyObject *kwargs) {
28269 PyObject *resultobj;
28270 wxDisplay *arg1 = (wxDisplay *) 0 ;
28271 PyObject * obj0 = 0 ;
28272 char *kwnames[] = {
28273 (char *) "self", NULL
28274 };
28275
28276 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_ResetMode",kwnames,&obj0)) goto fail;
28277 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
28278 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28279 {
28280 PyThreadState* __tstate = wxPyBeginAllowThreads();
28281 (arg1)->ResetMode();
28282
28283 wxPyEndAllowThreads(__tstate);
28284 if (PyErr_Occurred()) SWIG_fail;
28285 }
28286 Py_INCREF(Py_None); resultobj = Py_None;
28287 return resultobj;
28288 fail:
28289 return NULL;
28290 }
28291
28292
28293 static PyObject * Display_swigregister(PyObject *self, PyObject *args) {
28294 PyObject *obj;
28295 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
28296 SWIG_TypeClientData(SWIGTYPE_p_wxDisplay, obj);
28297 Py_INCREF(obj);
28298 return Py_BuildValue((char *)"");
28299 }
28300 static PyMethodDef SwigMethods[] = {
28301 { (char *)"SystemSettings_GetColour", (PyCFunction) _wrap_SystemSettings_GetColour, METH_VARARGS | METH_KEYWORDS },
28302 { (char *)"SystemSettings_GetFont", (PyCFunction) _wrap_SystemSettings_GetFont, METH_VARARGS | METH_KEYWORDS },
28303 { (char *)"SystemSettings_GetMetric", (PyCFunction) _wrap_SystemSettings_GetMetric, METH_VARARGS | METH_KEYWORDS },
28304 { (char *)"SystemSettings_HasFeature", (PyCFunction) _wrap_SystemSettings_HasFeature, METH_VARARGS | METH_KEYWORDS },
28305 { (char *)"SystemSettings_GetScreenType", (PyCFunction) _wrap_SystemSettings_GetScreenType, METH_VARARGS | METH_KEYWORDS },
28306 { (char *)"SystemSettings_SetScreenType", (PyCFunction) _wrap_SystemSettings_SetScreenType, METH_VARARGS | METH_KEYWORDS },
28307 { (char *)"SystemSettings_swigregister", SystemSettings_swigregister, METH_VARARGS },
28308 { (char *)"new_SystemOptions", (PyCFunction) _wrap_new_SystemOptions, METH_VARARGS | METH_KEYWORDS },
28309 { (char *)"SystemOptions_SetOption", (PyCFunction) _wrap_SystemOptions_SetOption, METH_VARARGS | METH_KEYWORDS },
28310 { (char *)"SystemOptions_SetOptionInt", (PyCFunction) _wrap_SystemOptions_SetOptionInt, METH_VARARGS | METH_KEYWORDS },
28311 { (char *)"SystemOptions_GetOption", (PyCFunction) _wrap_SystemOptions_GetOption, METH_VARARGS | METH_KEYWORDS },
28312 { (char *)"SystemOptions_GetOptionInt", (PyCFunction) _wrap_SystemOptions_GetOptionInt, METH_VARARGS | METH_KEYWORDS },
28313 { (char *)"SystemOptions_HasOption", (PyCFunction) _wrap_SystemOptions_HasOption, METH_VARARGS | METH_KEYWORDS },
28314 { (char *)"SystemOptions_swigregister", SystemOptions_swigregister, METH_VARARGS },
28315 { (char *)"NewId", (PyCFunction) _wrap_NewId, METH_VARARGS | METH_KEYWORDS },
28316 { (char *)"RegisterId", (PyCFunction) _wrap_RegisterId, METH_VARARGS | METH_KEYWORDS },
28317 { (char *)"GetCurrentId", (PyCFunction) _wrap_GetCurrentId, METH_VARARGS | METH_KEYWORDS },
28318 { (char *)"Bell", (PyCFunction) _wrap_Bell, METH_VARARGS | METH_KEYWORDS },
28319 { (char *)"EndBusyCursor", (PyCFunction) _wrap_EndBusyCursor, METH_VARARGS | METH_KEYWORDS },
28320 { (char *)"GetElapsedTime", (PyCFunction) _wrap_GetElapsedTime, METH_VARARGS | METH_KEYWORDS },
28321 { (char *)"GetMousePosition", (PyCFunction) _wrap_GetMousePosition, METH_VARARGS | METH_KEYWORDS },
28322 { (char *)"IsBusy", (PyCFunction) _wrap_IsBusy, METH_VARARGS | METH_KEYWORDS },
28323 { (char *)"Now", (PyCFunction) _wrap_Now, METH_VARARGS | METH_KEYWORDS },
28324 { (char *)"Shell", (PyCFunction) _wrap_Shell, METH_VARARGS | METH_KEYWORDS },
28325 { (char *)"StartTimer", (PyCFunction) _wrap_StartTimer, METH_VARARGS | METH_KEYWORDS },
28326 { (char *)"GetOsVersion", (PyCFunction) _wrap_GetOsVersion, METH_VARARGS | METH_KEYWORDS },
28327 { (char *)"GetOsDescription", (PyCFunction) _wrap_GetOsDescription, METH_VARARGS | METH_KEYWORDS },
28328 { (char *)"GetFreeMemory", (PyCFunction) _wrap_GetFreeMemory, METH_VARARGS | METH_KEYWORDS },
28329 { (char *)"Shutdown", (PyCFunction) _wrap_Shutdown, METH_VARARGS | METH_KEYWORDS },
28330 { (char *)"Sleep", (PyCFunction) _wrap_Sleep, METH_VARARGS | METH_KEYWORDS },
28331 { (char *)"MilliSleep", (PyCFunction) _wrap_MilliSleep, METH_VARARGS | METH_KEYWORDS },
28332 { (char *)"MicroSleep", (PyCFunction) _wrap_MicroSleep, METH_VARARGS | METH_KEYWORDS },
28333 { (char *)"EnableTopLevelWindows", (PyCFunction) _wrap_EnableTopLevelWindows, METH_VARARGS | METH_KEYWORDS },
28334 { (char *)"StripMenuCodes", (PyCFunction) _wrap_StripMenuCodes, METH_VARARGS | METH_KEYWORDS },
28335 { (char *)"GetEmailAddress", (PyCFunction) _wrap_GetEmailAddress, METH_VARARGS | METH_KEYWORDS },
28336 { (char *)"GetHostName", (PyCFunction) _wrap_GetHostName, METH_VARARGS | METH_KEYWORDS },
28337 { (char *)"GetFullHostName", (PyCFunction) _wrap_GetFullHostName, METH_VARARGS | METH_KEYWORDS },
28338 { (char *)"GetUserId", (PyCFunction) _wrap_GetUserId, METH_VARARGS | METH_KEYWORDS },
28339 { (char *)"GetUserName", (PyCFunction) _wrap_GetUserName, METH_VARARGS | METH_KEYWORDS },
28340 { (char *)"GetHomeDir", (PyCFunction) _wrap_GetHomeDir, METH_VARARGS | METH_KEYWORDS },
28341 { (char *)"GetUserHome", (PyCFunction) _wrap_GetUserHome, METH_VARARGS | METH_KEYWORDS },
28342 { (char *)"GetProcessId", (PyCFunction) _wrap_GetProcessId, METH_VARARGS | METH_KEYWORDS },
28343 { (char *)"Trap", (PyCFunction) _wrap_Trap, METH_VARARGS | METH_KEYWORDS },
28344 { (char *)"FileSelector", (PyCFunction) _wrap_FileSelector, METH_VARARGS | METH_KEYWORDS },
28345 { (char *)"LoadFileSelector", (PyCFunction) _wrap_LoadFileSelector, METH_VARARGS | METH_KEYWORDS },
28346 { (char *)"SaveFileSelector", (PyCFunction) _wrap_SaveFileSelector, METH_VARARGS | METH_KEYWORDS },
28347 { (char *)"DirSelector", (PyCFunction) _wrap_DirSelector, METH_VARARGS | METH_KEYWORDS },
28348 { (char *)"GetTextFromUser", (PyCFunction) _wrap_GetTextFromUser, METH_VARARGS | METH_KEYWORDS },
28349 { (char *)"GetPasswordFromUser", (PyCFunction) _wrap_GetPasswordFromUser, METH_VARARGS | METH_KEYWORDS },
28350 { (char *)"GetSingleChoice", (PyCFunction) _wrap_GetSingleChoice, METH_VARARGS | METH_KEYWORDS },
28351 { (char *)"GetSingleChoiceIndex", (PyCFunction) _wrap_GetSingleChoiceIndex, METH_VARARGS | METH_KEYWORDS },
28352 { (char *)"MessageBox", (PyCFunction) _wrap_MessageBox, METH_VARARGS | METH_KEYWORDS },
28353 { (char *)"GetNumberFromUser", (PyCFunction) _wrap_GetNumberFromUser, METH_VARARGS | METH_KEYWORDS },
28354 { (char *)"ColourDisplay", (PyCFunction) _wrap_ColourDisplay, METH_VARARGS | METH_KEYWORDS },
28355 { (char *)"DisplayDepth", (PyCFunction) _wrap_DisplayDepth, METH_VARARGS | METH_KEYWORDS },
28356 { (char *)"GetDisplayDepth", (PyCFunction) _wrap_GetDisplayDepth, METH_VARARGS | METH_KEYWORDS },
28357 { (char *)"DisplaySize", (PyCFunction) _wrap_DisplaySize, METH_VARARGS | METH_KEYWORDS },
28358 { (char *)"GetDisplaySize", (PyCFunction) _wrap_GetDisplaySize, METH_VARARGS | METH_KEYWORDS },
28359 { (char *)"DisplaySizeMM", (PyCFunction) _wrap_DisplaySizeMM, METH_VARARGS | METH_KEYWORDS },
28360 { (char *)"GetDisplaySizeMM", (PyCFunction) _wrap_GetDisplaySizeMM, METH_VARARGS | METH_KEYWORDS },
28361 { (char *)"ClientDisplayRect", (PyCFunction) _wrap_ClientDisplayRect, METH_VARARGS | METH_KEYWORDS },
28362 { (char *)"GetClientDisplayRect", (PyCFunction) _wrap_GetClientDisplayRect, METH_VARARGS | METH_KEYWORDS },
28363 { (char *)"SetCursor", (PyCFunction) _wrap_SetCursor, METH_VARARGS | METH_KEYWORDS },
28364 { (char *)"BeginBusyCursor", (PyCFunction) _wrap_BeginBusyCursor, METH_VARARGS | METH_KEYWORDS },
28365 { (char *)"GetActiveWindow", (PyCFunction) _wrap_GetActiveWindow, METH_VARARGS | METH_KEYWORDS },
28366 { (char *)"GenericFindWindowAtPoint", (PyCFunction) _wrap_GenericFindWindowAtPoint, METH_VARARGS | METH_KEYWORDS },
28367 { (char *)"FindWindowAtPoint", (PyCFunction) _wrap_FindWindowAtPoint, METH_VARARGS | METH_KEYWORDS },
28368 { (char *)"GetTopLevelParent", (PyCFunction) _wrap_GetTopLevelParent, METH_VARARGS | METH_KEYWORDS },
28369 { (char *)"GetKeyState", (PyCFunction) _wrap_GetKeyState, METH_VARARGS | METH_KEYWORDS },
28370 { (char *)"WakeUpMainThread", (PyCFunction) _wrap_WakeUpMainThread, METH_VARARGS | METH_KEYWORDS },
28371 { (char *)"MutexGuiEnter", (PyCFunction) _wrap_MutexGuiEnter, METH_VARARGS | METH_KEYWORDS },
28372 { (char *)"MutexGuiLeave", (PyCFunction) _wrap_MutexGuiLeave, METH_VARARGS | METH_KEYWORDS },
28373 { (char *)"new_MutexGuiLocker", (PyCFunction) _wrap_new_MutexGuiLocker, METH_VARARGS | METH_KEYWORDS },
28374 { (char *)"delete_MutexGuiLocker", (PyCFunction) _wrap_delete_MutexGuiLocker, METH_VARARGS | METH_KEYWORDS },
28375 { (char *)"MutexGuiLocker_swigregister", MutexGuiLocker_swigregister, METH_VARARGS },
28376 { (char *)"Thread_IsMain", (PyCFunction) _wrap_Thread_IsMain, METH_VARARGS | METH_KEYWORDS },
28377 { (char *)"new_ToolTip", (PyCFunction) _wrap_new_ToolTip, METH_VARARGS | METH_KEYWORDS },
28378 { (char *)"ToolTip_SetTip", (PyCFunction) _wrap_ToolTip_SetTip, METH_VARARGS | METH_KEYWORDS },
28379 { (char *)"ToolTip_GetTip", (PyCFunction) _wrap_ToolTip_GetTip, METH_VARARGS | METH_KEYWORDS },
28380 { (char *)"ToolTip_GetWindow", (PyCFunction) _wrap_ToolTip_GetWindow, METH_VARARGS | METH_KEYWORDS },
28381 { (char *)"ToolTip_Enable", (PyCFunction) _wrap_ToolTip_Enable, METH_VARARGS | METH_KEYWORDS },
28382 { (char *)"ToolTip_SetDelay", (PyCFunction) _wrap_ToolTip_SetDelay, METH_VARARGS | METH_KEYWORDS },
28383 { (char *)"ToolTip_swigregister", ToolTip_swigregister, METH_VARARGS },
28384 { (char *)"new_Caret", (PyCFunction) _wrap_new_Caret, METH_VARARGS | METH_KEYWORDS },
28385 { (char *)"delete_Caret", (PyCFunction) _wrap_delete_Caret, METH_VARARGS | METH_KEYWORDS },
28386 { (char *)"Caret_IsOk", (PyCFunction) _wrap_Caret_IsOk, METH_VARARGS | METH_KEYWORDS },
28387 { (char *)"Caret_IsVisible", (PyCFunction) _wrap_Caret_IsVisible, METH_VARARGS | METH_KEYWORDS },
28388 { (char *)"Caret_GetPosition", (PyCFunction) _wrap_Caret_GetPosition, METH_VARARGS | METH_KEYWORDS },
28389 { (char *)"Caret_GetPositionTuple", (PyCFunction) _wrap_Caret_GetPositionTuple, METH_VARARGS | METH_KEYWORDS },
28390 { (char *)"Caret_GetSize", (PyCFunction) _wrap_Caret_GetSize, METH_VARARGS | METH_KEYWORDS },
28391 { (char *)"Caret_GetSizeTuple", (PyCFunction) _wrap_Caret_GetSizeTuple, METH_VARARGS | METH_KEYWORDS },
28392 { (char *)"Caret_GetWindow", (PyCFunction) _wrap_Caret_GetWindow, METH_VARARGS | METH_KEYWORDS },
28393 { (char *)"Caret_MoveXY", (PyCFunction) _wrap_Caret_MoveXY, METH_VARARGS | METH_KEYWORDS },
28394 { (char *)"Caret_Move", (PyCFunction) _wrap_Caret_Move, METH_VARARGS | METH_KEYWORDS },
28395 { (char *)"Caret_SetSizeWH", (PyCFunction) _wrap_Caret_SetSizeWH, METH_VARARGS | METH_KEYWORDS },
28396 { (char *)"Caret_SetSize", (PyCFunction) _wrap_Caret_SetSize, METH_VARARGS | METH_KEYWORDS },
28397 { (char *)"Caret_Show", (PyCFunction) _wrap_Caret_Show, METH_VARARGS | METH_KEYWORDS },
28398 { (char *)"Caret_Hide", (PyCFunction) _wrap_Caret_Hide, METH_VARARGS | METH_KEYWORDS },
28399 { (char *)"Caret_swigregister", Caret_swigregister, METH_VARARGS },
28400 { (char *)"Caret_GetBlinkTime", (PyCFunction) _wrap_Caret_GetBlinkTime, METH_VARARGS | METH_KEYWORDS },
28401 { (char *)"Caret_SetBlinkTime", (PyCFunction) _wrap_Caret_SetBlinkTime, METH_VARARGS | METH_KEYWORDS },
28402 { (char *)"new_BusyCursor", (PyCFunction) _wrap_new_BusyCursor, METH_VARARGS | METH_KEYWORDS },
28403 { (char *)"delete_BusyCursor", (PyCFunction) _wrap_delete_BusyCursor, METH_VARARGS | METH_KEYWORDS },
28404 { (char *)"BusyCursor_swigregister", BusyCursor_swigregister, METH_VARARGS },
28405 { (char *)"new_WindowDisabler", (PyCFunction) _wrap_new_WindowDisabler, METH_VARARGS | METH_KEYWORDS },
28406 { (char *)"delete_WindowDisabler", (PyCFunction) _wrap_delete_WindowDisabler, METH_VARARGS | METH_KEYWORDS },
28407 { (char *)"WindowDisabler_swigregister", WindowDisabler_swigregister, METH_VARARGS },
28408 { (char *)"new_BusyInfo", (PyCFunction) _wrap_new_BusyInfo, METH_VARARGS | METH_KEYWORDS },
28409 { (char *)"delete_BusyInfo", (PyCFunction) _wrap_delete_BusyInfo, METH_VARARGS | METH_KEYWORDS },
28410 { (char *)"BusyInfo_swigregister", BusyInfo_swigregister, METH_VARARGS },
28411 { (char *)"new_StopWatch", (PyCFunction) _wrap_new_StopWatch, METH_VARARGS | METH_KEYWORDS },
28412 { (char *)"StopWatch_Start", (PyCFunction) _wrap_StopWatch_Start, METH_VARARGS | METH_KEYWORDS },
28413 { (char *)"StopWatch_Pause", (PyCFunction) _wrap_StopWatch_Pause, METH_VARARGS | METH_KEYWORDS },
28414 { (char *)"StopWatch_Resume", (PyCFunction) _wrap_StopWatch_Resume, METH_VARARGS | METH_KEYWORDS },
28415 { (char *)"StopWatch_Time", (PyCFunction) _wrap_StopWatch_Time, METH_VARARGS | METH_KEYWORDS },
28416 { (char *)"StopWatch_swigregister", StopWatch_swigregister, METH_VARARGS },
28417 { (char *)"new_FileHistory", (PyCFunction) _wrap_new_FileHistory, METH_VARARGS | METH_KEYWORDS },
28418 { (char *)"delete_FileHistory", (PyCFunction) _wrap_delete_FileHistory, METH_VARARGS | METH_KEYWORDS },
28419 { (char *)"FileHistory_AddFileToHistory", (PyCFunction) _wrap_FileHistory_AddFileToHistory, METH_VARARGS | METH_KEYWORDS },
28420 { (char *)"FileHistory_RemoveFileFromHistory", (PyCFunction) _wrap_FileHistory_RemoveFileFromHistory, METH_VARARGS | METH_KEYWORDS },
28421 { (char *)"FileHistory_GetMaxFiles", (PyCFunction) _wrap_FileHistory_GetMaxFiles, METH_VARARGS | METH_KEYWORDS },
28422 { (char *)"FileHistory_UseMenu", (PyCFunction) _wrap_FileHistory_UseMenu, METH_VARARGS | METH_KEYWORDS },
28423 { (char *)"FileHistory_RemoveMenu", (PyCFunction) _wrap_FileHistory_RemoveMenu, METH_VARARGS | METH_KEYWORDS },
28424 { (char *)"FileHistory_Load", (PyCFunction) _wrap_FileHistory_Load, METH_VARARGS | METH_KEYWORDS },
28425 { (char *)"FileHistory_Save", (PyCFunction) _wrap_FileHistory_Save, METH_VARARGS | METH_KEYWORDS },
28426 { (char *)"FileHistory_AddFilesToMenu", (PyCFunction) _wrap_FileHistory_AddFilesToMenu, METH_VARARGS | METH_KEYWORDS },
28427 { (char *)"FileHistory_AddFilesToThisMenu", (PyCFunction) _wrap_FileHistory_AddFilesToThisMenu, METH_VARARGS | METH_KEYWORDS },
28428 { (char *)"FileHistory_GetHistoryFile", (PyCFunction) _wrap_FileHistory_GetHistoryFile, METH_VARARGS | METH_KEYWORDS },
28429 { (char *)"FileHistory_GetCount", (PyCFunction) _wrap_FileHistory_GetCount, METH_VARARGS | METH_KEYWORDS },
28430 { (char *)"FileHistory_swigregister", FileHistory_swigregister, METH_VARARGS },
28431 { (char *)"new_SingleInstanceChecker", (PyCFunction) _wrap_new_SingleInstanceChecker, METH_VARARGS | METH_KEYWORDS },
28432 { (char *)"new_PreSingleInstanceChecker", (PyCFunction) _wrap_new_PreSingleInstanceChecker, METH_VARARGS | METH_KEYWORDS },
28433 { (char *)"delete_SingleInstanceChecker", (PyCFunction) _wrap_delete_SingleInstanceChecker, METH_VARARGS | METH_KEYWORDS },
28434 { (char *)"SingleInstanceChecker_Create", (PyCFunction) _wrap_SingleInstanceChecker_Create, METH_VARARGS | METH_KEYWORDS },
28435 { (char *)"SingleInstanceChecker_IsAnotherRunning", (PyCFunction) _wrap_SingleInstanceChecker_IsAnotherRunning, METH_VARARGS | METH_KEYWORDS },
28436 { (char *)"SingleInstanceChecker_swigregister", SingleInstanceChecker_swigregister, METH_VARARGS },
28437 { (char *)"DrawWindowOnDC", (PyCFunction) _wrap_DrawWindowOnDC, METH_VARARGS | METH_KEYWORDS },
28438 { (char *)"delete_TipProvider", (PyCFunction) _wrap_delete_TipProvider, METH_VARARGS | METH_KEYWORDS },
28439 { (char *)"TipProvider_GetTip", (PyCFunction) _wrap_TipProvider_GetTip, METH_VARARGS | METH_KEYWORDS },
28440 { (char *)"TipProvider_GetCurrentTip", (PyCFunction) _wrap_TipProvider_GetCurrentTip, METH_VARARGS | METH_KEYWORDS },
28441 { (char *)"TipProvider_PreprocessTip", (PyCFunction) _wrap_TipProvider_PreprocessTip, METH_VARARGS | METH_KEYWORDS },
28442 { (char *)"TipProvider_swigregister", TipProvider_swigregister, METH_VARARGS },
28443 { (char *)"new_PyTipProvider", (PyCFunction) _wrap_new_PyTipProvider, METH_VARARGS | METH_KEYWORDS },
28444 { (char *)"PyTipProvider__setCallbackInfo", (PyCFunction) _wrap_PyTipProvider__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
28445 { (char *)"PyTipProvider_swigregister", PyTipProvider_swigregister, METH_VARARGS },
28446 { (char *)"ShowTip", (PyCFunction) _wrap_ShowTip, METH_VARARGS | METH_KEYWORDS },
28447 { (char *)"CreateFileTipProvider", (PyCFunction) _wrap_CreateFileTipProvider, METH_VARARGS | METH_KEYWORDS },
28448 { (char *)"new_Timer", (PyCFunction) _wrap_new_Timer, METH_VARARGS | METH_KEYWORDS },
28449 { (char *)"delete_Timer", (PyCFunction) _wrap_delete_Timer, METH_VARARGS | METH_KEYWORDS },
28450 { (char *)"Timer__setCallbackInfo", (PyCFunction) _wrap_Timer__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
28451 { (char *)"Timer_SetOwner", (PyCFunction) _wrap_Timer_SetOwner, METH_VARARGS | METH_KEYWORDS },
28452 { (char *)"Timer_GetOwner", (PyCFunction) _wrap_Timer_GetOwner, METH_VARARGS | METH_KEYWORDS },
28453 { (char *)"Timer_Start", (PyCFunction) _wrap_Timer_Start, METH_VARARGS | METH_KEYWORDS },
28454 { (char *)"Timer_Stop", (PyCFunction) _wrap_Timer_Stop, METH_VARARGS | METH_KEYWORDS },
28455 { (char *)"Timer_IsRunning", (PyCFunction) _wrap_Timer_IsRunning, METH_VARARGS | METH_KEYWORDS },
28456 { (char *)"Timer_GetInterval", (PyCFunction) _wrap_Timer_GetInterval, METH_VARARGS | METH_KEYWORDS },
28457 { (char *)"Timer_IsOneShot", (PyCFunction) _wrap_Timer_IsOneShot, METH_VARARGS | METH_KEYWORDS },
28458 { (char *)"Timer_GetId", (PyCFunction) _wrap_Timer_GetId, METH_VARARGS | METH_KEYWORDS },
28459 { (char *)"Timer_swigregister", Timer_swigregister, METH_VARARGS },
28460 { (char *)"new_TimerEvent", (PyCFunction) _wrap_new_TimerEvent, METH_VARARGS | METH_KEYWORDS },
28461 { (char *)"TimerEvent_GetInterval", (PyCFunction) _wrap_TimerEvent_GetInterval, METH_VARARGS | METH_KEYWORDS },
28462 { (char *)"TimerEvent_swigregister", TimerEvent_swigregister, METH_VARARGS },
28463 { (char *)"new_TimerRunner", _wrap_new_TimerRunner, METH_VARARGS },
28464 { (char *)"delete_TimerRunner", (PyCFunction) _wrap_delete_TimerRunner, METH_VARARGS | METH_KEYWORDS },
28465 { (char *)"TimerRunner_Start", (PyCFunction) _wrap_TimerRunner_Start, METH_VARARGS | METH_KEYWORDS },
28466 { (char *)"TimerRunner_swigregister", TimerRunner_swigregister, METH_VARARGS },
28467 { (char *)"new_Log", (PyCFunction) _wrap_new_Log, METH_VARARGS | METH_KEYWORDS },
28468 { (char *)"Log_IsEnabled", (PyCFunction) _wrap_Log_IsEnabled, METH_VARARGS | METH_KEYWORDS },
28469 { (char *)"Log_EnableLogging", (PyCFunction) _wrap_Log_EnableLogging, METH_VARARGS | METH_KEYWORDS },
28470 { (char *)"Log_OnLog", (PyCFunction) _wrap_Log_OnLog, METH_VARARGS | METH_KEYWORDS },
28471 { (char *)"Log_Flush", (PyCFunction) _wrap_Log_Flush, METH_VARARGS | METH_KEYWORDS },
28472 { (char *)"Log_FlushActive", (PyCFunction) _wrap_Log_FlushActive, METH_VARARGS | METH_KEYWORDS },
28473 { (char *)"Log_GetActiveTarget", (PyCFunction) _wrap_Log_GetActiveTarget, METH_VARARGS | METH_KEYWORDS },
28474 { (char *)"Log_SetActiveTarget", (PyCFunction) _wrap_Log_SetActiveTarget, METH_VARARGS | METH_KEYWORDS },
28475 { (char *)"Log_Suspend", (PyCFunction) _wrap_Log_Suspend, METH_VARARGS | METH_KEYWORDS },
28476 { (char *)"Log_Resume", (PyCFunction) _wrap_Log_Resume, METH_VARARGS | METH_KEYWORDS },
28477 { (char *)"Log_SetVerbose", (PyCFunction) _wrap_Log_SetVerbose, METH_VARARGS | METH_KEYWORDS },
28478 { (char *)"Log_SetLogLevel", (PyCFunction) _wrap_Log_SetLogLevel, METH_VARARGS | METH_KEYWORDS },
28479 { (char *)"Log_DontCreateOnDemand", (PyCFunction) _wrap_Log_DontCreateOnDemand, METH_VARARGS | METH_KEYWORDS },
28480 { (char *)"Log_SetTraceMask", (PyCFunction) _wrap_Log_SetTraceMask, METH_VARARGS | METH_KEYWORDS },
28481 { (char *)"Log_AddTraceMask", (PyCFunction) _wrap_Log_AddTraceMask, METH_VARARGS | METH_KEYWORDS },
28482 { (char *)"Log_RemoveTraceMask", (PyCFunction) _wrap_Log_RemoveTraceMask, METH_VARARGS | METH_KEYWORDS },
28483 { (char *)"Log_ClearTraceMasks", (PyCFunction) _wrap_Log_ClearTraceMasks, METH_VARARGS | METH_KEYWORDS },
28484 { (char *)"Log_GetTraceMasks", (PyCFunction) _wrap_Log_GetTraceMasks, METH_VARARGS | METH_KEYWORDS },
28485 { (char *)"Log_SetTimestamp", (PyCFunction) _wrap_Log_SetTimestamp, METH_VARARGS | METH_KEYWORDS },
28486 { (char *)"Log_GetVerbose", (PyCFunction) _wrap_Log_GetVerbose, METH_VARARGS | METH_KEYWORDS },
28487 { (char *)"Log_GetTraceMask", (PyCFunction) _wrap_Log_GetTraceMask, METH_VARARGS | METH_KEYWORDS },
28488 { (char *)"Log_IsAllowedTraceMask", (PyCFunction) _wrap_Log_IsAllowedTraceMask, METH_VARARGS | METH_KEYWORDS },
28489 { (char *)"Log_GetLogLevel", (PyCFunction) _wrap_Log_GetLogLevel, METH_VARARGS | METH_KEYWORDS },
28490 { (char *)"Log_GetTimestamp", (PyCFunction) _wrap_Log_GetTimestamp, METH_VARARGS | METH_KEYWORDS },
28491 { (char *)"Log_TimeStamp", (PyCFunction) _wrap_Log_TimeStamp, METH_VARARGS | METH_KEYWORDS },
28492 { (char *)"Log_Destroy", (PyCFunction) _wrap_Log_Destroy, METH_VARARGS | METH_KEYWORDS },
28493 { (char *)"Log_swigregister", Log_swigregister, METH_VARARGS },
28494 { (char *)"new_LogStderr", (PyCFunction) _wrap_new_LogStderr, METH_VARARGS | METH_KEYWORDS },
28495 { (char *)"LogStderr_swigregister", LogStderr_swigregister, METH_VARARGS },
28496 { (char *)"new_LogTextCtrl", (PyCFunction) _wrap_new_LogTextCtrl, METH_VARARGS | METH_KEYWORDS },
28497 { (char *)"LogTextCtrl_swigregister", LogTextCtrl_swigregister, METH_VARARGS },
28498 { (char *)"new_LogGui", (PyCFunction) _wrap_new_LogGui, METH_VARARGS | METH_KEYWORDS },
28499 { (char *)"LogGui_swigregister", LogGui_swigregister, METH_VARARGS },
28500 { (char *)"new_LogWindow", (PyCFunction) _wrap_new_LogWindow, METH_VARARGS | METH_KEYWORDS },
28501 { (char *)"LogWindow_Show", (PyCFunction) _wrap_LogWindow_Show, METH_VARARGS | METH_KEYWORDS },
28502 { (char *)"LogWindow_GetFrame", (PyCFunction) _wrap_LogWindow_GetFrame, METH_VARARGS | METH_KEYWORDS },
28503 { (char *)"LogWindow_GetOldLog", (PyCFunction) _wrap_LogWindow_GetOldLog, METH_VARARGS | METH_KEYWORDS },
28504 { (char *)"LogWindow_IsPassingMessages", (PyCFunction) _wrap_LogWindow_IsPassingMessages, METH_VARARGS | METH_KEYWORDS },
28505 { (char *)"LogWindow_PassMessages", (PyCFunction) _wrap_LogWindow_PassMessages, METH_VARARGS | METH_KEYWORDS },
28506 { (char *)"LogWindow_swigregister", LogWindow_swigregister, METH_VARARGS },
28507 { (char *)"new_LogChain", (PyCFunction) _wrap_new_LogChain, METH_VARARGS | METH_KEYWORDS },
28508 { (char *)"LogChain_SetLog", (PyCFunction) _wrap_LogChain_SetLog, METH_VARARGS | METH_KEYWORDS },
28509 { (char *)"LogChain_PassMessages", (PyCFunction) _wrap_LogChain_PassMessages, METH_VARARGS | METH_KEYWORDS },
28510 { (char *)"LogChain_IsPassingMessages", (PyCFunction) _wrap_LogChain_IsPassingMessages, METH_VARARGS | METH_KEYWORDS },
28511 { (char *)"LogChain_GetOldLog", (PyCFunction) _wrap_LogChain_GetOldLog, METH_VARARGS | METH_KEYWORDS },
28512 { (char *)"LogChain_swigregister", LogChain_swigregister, METH_VARARGS },
28513 { (char *)"SysErrorCode", (PyCFunction) _wrap_SysErrorCode, METH_VARARGS | METH_KEYWORDS },
28514 { (char *)"SysErrorMsg", (PyCFunction) _wrap_SysErrorMsg, METH_VARARGS | METH_KEYWORDS },
28515 { (char *)"LogFatalError", (PyCFunction) _wrap_LogFatalError, METH_VARARGS | METH_KEYWORDS },
28516 { (char *)"LogError", (PyCFunction) _wrap_LogError, METH_VARARGS | METH_KEYWORDS },
28517 { (char *)"LogWarning", (PyCFunction) _wrap_LogWarning, METH_VARARGS | METH_KEYWORDS },
28518 { (char *)"LogMessage", (PyCFunction) _wrap_LogMessage, METH_VARARGS | METH_KEYWORDS },
28519 { (char *)"LogInfo", (PyCFunction) _wrap_LogInfo, METH_VARARGS | METH_KEYWORDS },
28520 { (char *)"LogDebug", (PyCFunction) _wrap_LogDebug, METH_VARARGS | METH_KEYWORDS },
28521 { (char *)"LogVerbose", (PyCFunction) _wrap_LogVerbose, METH_VARARGS | METH_KEYWORDS },
28522 { (char *)"LogStatus", (PyCFunction) _wrap_LogStatus, METH_VARARGS | METH_KEYWORDS },
28523 { (char *)"LogStatusFrame", (PyCFunction) _wrap_LogStatusFrame, METH_VARARGS | METH_KEYWORDS },
28524 { (char *)"LogSysError", (PyCFunction) _wrap_LogSysError, METH_VARARGS | METH_KEYWORDS },
28525 { (char *)"LogTrace", _wrap_LogTrace, METH_VARARGS },
28526 { (char *)"LogGeneric", (PyCFunction) _wrap_LogGeneric, METH_VARARGS | METH_KEYWORDS },
28527 { (char *)"SafeShowMessage", (PyCFunction) _wrap_SafeShowMessage, METH_VARARGS | METH_KEYWORDS },
28528 { (char *)"new_LogNull", (PyCFunction) _wrap_new_LogNull, METH_VARARGS | METH_KEYWORDS },
28529 { (char *)"delete_LogNull", (PyCFunction) _wrap_delete_LogNull, METH_VARARGS | METH_KEYWORDS },
28530 { (char *)"LogNull_swigregister", LogNull_swigregister, METH_VARARGS },
28531 { (char *)"new_PyLog", (PyCFunction) _wrap_new_PyLog, METH_VARARGS | METH_KEYWORDS },
28532 { (char *)"PyLog__setCallbackInfo", (PyCFunction) _wrap_PyLog__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
28533 { (char *)"PyLog_swigregister", PyLog_swigregister, METH_VARARGS },
28534 { (char *)"Process_Kill", (PyCFunction) _wrap_Process_Kill, METH_VARARGS | METH_KEYWORDS },
28535 { (char *)"Process_Exists", (PyCFunction) _wrap_Process_Exists, METH_VARARGS | METH_KEYWORDS },
28536 { (char *)"Process_Open", (PyCFunction) _wrap_Process_Open, METH_VARARGS | METH_KEYWORDS },
28537 { (char *)"new_Process", (PyCFunction) _wrap_new_Process, METH_VARARGS | METH_KEYWORDS },
28538 { (char *)"Process__setCallbackInfo", (PyCFunction) _wrap_Process__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
28539 { (char *)"Process_base_OnTerminate", (PyCFunction) _wrap_Process_base_OnTerminate, METH_VARARGS | METH_KEYWORDS },
28540 { (char *)"Process_Redirect", (PyCFunction) _wrap_Process_Redirect, METH_VARARGS | METH_KEYWORDS },
28541 { (char *)"Process_IsRedirected", (PyCFunction) _wrap_Process_IsRedirected, METH_VARARGS | METH_KEYWORDS },
28542 { (char *)"Process_Detach", (PyCFunction) _wrap_Process_Detach, METH_VARARGS | METH_KEYWORDS },
28543 { (char *)"Process_GetInputStream", (PyCFunction) _wrap_Process_GetInputStream, METH_VARARGS | METH_KEYWORDS },
28544 { (char *)"Process_GetErrorStream", (PyCFunction) _wrap_Process_GetErrorStream, METH_VARARGS | METH_KEYWORDS },
28545 { (char *)"Process_GetOutputStream", (PyCFunction) _wrap_Process_GetOutputStream, METH_VARARGS | METH_KEYWORDS },
28546 { (char *)"Process_CloseOutput", (PyCFunction) _wrap_Process_CloseOutput, METH_VARARGS | METH_KEYWORDS },
28547 { (char *)"Process_IsInputOpened", (PyCFunction) _wrap_Process_IsInputOpened, METH_VARARGS | METH_KEYWORDS },
28548 { (char *)"Process_IsInputAvailable", (PyCFunction) _wrap_Process_IsInputAvailable, METH_VARARGS | METH_KEYWORDS },
28549 { (char *)"Process_IsErrorAvailable", (PyCFunction) _wrap_Process_IsErrorAvailable, METH_VARARGS | METH_KEYWORDS },
28550 { (char *)"Process_swigregister", Process_swigregister, METH_VARARGS },
28551 { (char *)"new_ProcessEvent", (PyCFunction) _wrap_new_ProcessEvent, METH_VARARGS | METH_KEYWORDS },
28552 { (char *)"ProcessEvent_GetPid", (PyCFunction) _wrap_ProcessEvent_GetPid, METH_VARARGS | METH_KEYWORDS },
28553 { (char *)"ProcessEvent_GetExitCode", (PyCFunction) _wrap_ProcessEvent_GetExitCode, METH_VARARGS | METH_KEYWORDS },
28554 { (char *)"ProcessEvent_m_pid_set", (PyCFunction) _wrap_ProcessEvent_m_pid_set, METH_VARARGS | METH_KEYWORDS },
28555 { (char *)"ProcessEvent_m_pid_get", (PyCFunction) _wrap_ProcessEvent_m_pid_get, METH_VARARGS | METH_KEYWORDS },
28556 { (char *)"ProcessEvent_m_exitcode_set", (PyCFunction) _wrap_ProcessEvent_m_exitcode_set, METH_VARARGS | METH_KEYWORDS },
28557 { (char *)"ProcessEvent_m_exitcode_get", (PyCFunction) _wrap_ProcessEvent_m_exitcode_get, METH_VARARGS | METH_KEYWORDS },
28558 { (char *)"ProcessEvent_swigregister", ProcessEvent_swigregister, METH_VARARGS },
28559 { (char *)"Execute", (PyCFunction) _wrap_Execute, METH_VARARGS | METH_KEYWORDS },
28560 { (char *)"new_Joystick", (PyCFunction) _wrap_new_Joystick, METH_VARARGS | METH_KEYWORDS },
28561 { (char *)"delete_Joystick", (PyCFunction) _wrap_delete_Joystick, METH_VARARGS | METH_KEYWORDS },
28562 { (char *)"Joystick_GetPosition", (PyCFunction) _wrap_Joystick_GetPosition, METH_VARARGS | METH_KEYWORDS },
28563 { (char *)"Joystick_GetZPosition", (PyCFunction) _wrap_Joystick_GetZPosition, METH_VARARGS | METH_KEYWORDS },
28564 { (char *)"Joystick_GetButtonState", (PyCFunction) _wrap_Joystick_GetButtonState, METH_VARARGS | METH_KEYWORDS },
28565 { (char *)"Joystick_GetPOVPosition", (PyCFunction) _wrap_Joystick_GetPOVPosition, METH_VARARGS | METH_KEYWORDS },
28566 { (char *)"Joystick_GetPOVCTSPosition", (PyCFunction) _wrap_Joystick_GetPOVCTSPosition, METH_VARARGS | METH_KEYWORDS },
28567 { (char *)"Joystick_GetRudderPosition", (PyCFunction) _wrap_Joystick_GetRudderPosition, METH_VARARGS | METH_KEYWORDS },
28568 { (char *)"Joystick_GetUPosition", (PyCFunction) _wrap_Joystick_GetUPosition, METH_VARARGS | METH_KEYWORDS },
28569 { (char *)"Joystick_GetVPosition", (PyCFunction) _wrap_Joystick_GetVPosition, METH_VARARGS | METH_KEYWORDS },
28570 { (char *)"Joystick_GetMovementThreshold", (PyCFunction) _wrap_Joystick_GetMovementThreshold, METH_VARARGS | METH_KEYWORDS },
28571 { (char *)"Joystick_SetMovementThreshold", (PyCFunction) _wrap_Joystick_SetMovementThreshold, METH_VARARGS | METH_KEYWORDS },
28572 { (char *)"Joystick_IsOk", (PyCFunction) _wrap_Joystick_IsOk, METH_VARARGS | METH_KEYWORDS },
28573 { (char *)"Joystick_GetNumberJoysticks", (PyCFunction) _wrap_Joystick_GetNumberJoysticks, METH_VARARGS | METH_KEYWORDS },
28574 { (char *)"Joystick_GetManufacturerId", (PyCFunction) _wrap_Joystick_GetManufacturerId, METH_VARARGS | METH_KEYWORDS },
28575 { (char *)"Joystick_GetProductId", (PyCFunction) _wrap_Joystick_GetProductId, METH_VARARGS | METH_KEYWORDS },
28576 { (char *)"Joystick_GetProductName", (PyCFunction) _wrap_Joystick_GetProductName, METH_VARARGS | METH_KEYWORDS },
28577 { (char *)"Joystick_GetXMin", (PyCFunction) _wrap_Joystick_GetXMin, METH_VARARGS | METH_KEYWORDS },
28578 { (char *)"Joystick_GetYMin", (PyCFunction) _wrap_Joystick_GetYMin, METH_VARARGS | METH_KEYWORDS },
28579 { (char *)"Joystick_GetZMin", (PyCFunction) _wrap_Joystick_GetZMin, METH_VARARGS | METH_KEYWORDS },
28580 { (char *)"Joystick_GetXMax", (PyCFunction) _wrap_Joystick_GetXMax, METH_VARARGS | METH_KEYWORDS },
28581 { (char *)"Joystick_GetYMax", (PyCFunction) _wrap_Joystick_GetYMax, METH_VARARGS | METH_KEYWORDS },
28582 { (char *)"Joystick_GetZMax", (PyCFunction) _wrap_Joystick_GetZMax, METH_VARARGS | METH_KEYWORDS },
28583 { (char *)"Joystick_GetNumberButtons", (PyCFunction) _wrap_Joystick_GetNumberButtons, METH_VARARGS | METH_KEYWORDS },
28584 { (char *)"Joystick_GetNumberAxes", (PyCFunction) _wrap_Joystick_GetNumberAxes, METH_VARARGS | METH_KEYWORDS },
28585 { (char *)"Joystick_GetMaxButtons", (PyCFunction) _wrap_Joystick_GetMaxButtons, METH_VARARGS | METH_KEYWORDS },
28586 { (char *)"Joystick_GetMaxAxes", (PyCFunction) _wrap_Joystick_GetMaxAxes, METH_VARARGS | METH_KEYWORDS },
28587 { (char *)"Joystick_GetPollingMin", (PyCFunction) _wrap_Joystick_GetPollingMin, METH_VARARGS | METH_KEYWORDS },
28588 { (char *)"Joystick_GetPollingMax", (PyCFunction) _wrap_Joystick_GetPollingMax, METH_VARARGS | METH_KEYWORDS },
28589 { (char *)"Joystick_GetRudderMin", (PyCFunction) _wrap_Joystick_GetRudderMin, METH_VARARGS | METH_KEYWORDS },
28590 { (char *)"Joystick_GetRudderMax", (PyCFunction) _wrap_Joystick_GetRudderMax, METH_VARARGS | METH_KEYWORDS },
28591 { (char *)"Joystick_GetUMin", (PyCFunction) _wrap_Joystick_GetUMin, METH_VARARGS | METH_KEYWORDS },
28592 { (char *)"Joystick_GetUMax", (PyCFunction) _wrap_Joystick_GetUMax, METH_VARARGS | METH_KEYWORDS },
28593 { (char *)"Joystick_GetVMin", (PyCFunction) _wrap_Joystick_GetVMin, METH_VARARGS | METH_KEYWORDS },
28594 { (char *)"Joystick_GetVMax", (PyCFunction) _wrap_Joystick_GetVMax, METH_VARARGS | METH_KEYWORDS },
28595 { (char *)"Joystick_HasRudder", (PyCFunction) _wrap_Joystick_HasRudder, METH_VARARGS | METH_KEYWORDS },
28596 { (char *)"Joystick_HasZ", (PyCFunction) _wrap_Joystick_HasZ, METH_VARARGS | METH_KEYWORDS },
28597 { (char *)"Joystick_HasU", (PyCFunction) _wrap_Joystick_HasU, METH_VARARGS | METH_KEYWORDS },
28598 { (char *)"Joystick_HasV", (PyCFunction) _wrap_Joystick_HasV, METH_VARARGS | METH_KEYWORDS },
28599 { (char *)"Joystick_HasPOV", (PyCFunction) _wrap_Joystick_HasPOV, METH_VARARGS | METH_KEYWORDS },
28600 { (char *)"Joystick_HasPOV4Dir", (PyCFunction) _wrap_Joystick_HasPOV4Dir, METH_VARARGS | METH_KEYWORDS },
28601 { (char *)"Joystick_HasPOVCTS", (PyCFunction) _wrap_Joystick_HasPOVCTS, METH_VARARGS | METH_KEYWORDS },
28602 { (char *)"Joystick_SetCapture", (PyCFunction) _wrap_Joystick_SetCapture, METH_VARARGS | METH_KEYWORDS },
28603 { (char *)"Joystick_ReleaseCapture", (PyCFunction) _wrap_Joystick_ReleaseCapture, METH_VARARGS | METH_KEYWORDS },
28604 { (char *)"Joystick_swigregister", Joystick_swigregister, METH_VARARGS },
28605 { (char *)"JoystickEvent_m_pos_set", (PyCFunction) _wrap_JoystickEvent_m_pos_set, METH_VARARGS | METH_KEYWORDS },
28606 { (char *)"JoystickEvent_m_pos_get", (PyCFunction) _wrap_JoystickEvent_m_pos_get, METH_VARARGS | METH_KEYWORDS },
28607 { (char *)"JoystickEvent_m_zPosition_set", (PyCFunction) _wrap_JoystickEvent_m_zPosition_set, METH_VARARGS | METH_KEYWORDS },
28608 { (char *)"JoystickEvent_m_zPosition_get", (PyCFunction) _wrap_JoystickEvent_m_zPosition_get, METH_VARARGS | METH_KEYWORDS },
28609 { (char *)"JoystickEvent_m_buttonChange_set", (PyCFunction) _wrap_JoystickEvent_m_buttonChange_set, METH_VARARGS | METH_KEYWORDS },
28610 { (char *)"JoystickEvent_m_buttonChange_get", (PyCFunction) _wrap_JoystickEvent_m_buttonChange_get, METH_VARARGS | METH_KEYWORDS },
28611 { (char *)"JoystickEvent_m_buttonState_set", (PyCFunction) _wrap_JoystickEvent_m_buttonState_set, METH_VARARGS | METH_KEYWORDS },
28612 { (char *)"JoystickEvent_m_buttonState_get", (PyCFunction) _wrap_JoystickEvent_m_buttonState_get, METH_VARARGS | METH_KEYWORDS },
28613 { (char *)"JoystickEvent_m_joyStick_set", (PyCFunction) _wrap_JoystickEvent_m_joyStick_set, METH_VARARGS | METH_KEYWORDS },
28614 { (char *)"JoystickEvent_m_joyStick_get", (PyCFunction) _wrap_JoystickEvent_m_joyStick_get, METH_VARARGS | METH_KEYWORDS },
28615 { (char *)"new_JoystickEvent", (PyCFunction) _wrap_new_JoystickEvent, METH_VARARGS | METH_KEYWORDS },
28616 { (char *)"JoystickEvent_GetPosition", (PyCFunction) _wrap_JoystickEvent_GetPosition, METH_VARARGS | METH_KEYWORDS },
28617 { (char *)"JoystickEvent_GetZPosition", (PyCFunction) _wrap_JoystickEvent_GetZPosition, METH_VARARGS | METH_KEYWORDS },
28618 { (char *)"JoystickEvent_GetButtonState", (PyCFunction) _wrap_JoystickEvent_GetButtonState, METH_VARARGS | METH_KEYWORDS },
28619 { (char *)"JoystickEvent_GetButtonChange", (PyCFunction) _wrap_JoystickEvent_GetButtonChange, METH_VARARGS | METH_KEYWORDS },
28620 { (char *)"JoystickEvent_GetJoystick", (PyCFunction) _wrap_JoystickEvent_GetJoystick, METH_VARARGS | METH_KEYWORDS },
28621 { (char *)"JoystickEvent_SetJoystick", (PyCFunction) _wrap_JoystickEvent_SetJoystick, METH_VARARGS | METH_KEYWORDS },
28622 { (char *)"JoystickEvent_SetButtonState", (PyCFunction) _wrap_JoystickEvent_SetButtonState, METH_VARARGS | METH_KEYWORDS },
28623 { (char *)"JoystickEvent_SetButtonChange", (PyCFunction) _wrap_JoystickEvent_SetButtonChange, METH_VARARGS | METH_KEYWORDS },
28624 { (char *)"JoystickEvent_SetPosition", (PyCFunction) _wrap_JoystickEvent_SetPosition, METH_VARARGS | METH_KEYWORDS },
28625 { (char *)"JoystickEvent_SetZPosition", (PyCFunction) _wrap_JoystickEvent_SetZPosition, METH_VARARGS | METH_KEYWORDS },
28626 { (char *)"JoystickEvent_IsButton", (PyCFunction) _wrap_JoystickEvent_IsButton, METH_VARARGS | METH_KEYWORDS },
28627 { (char *)"JoystickEvent_IsMove", (PyCFunction) _wrap_JoystickEvent_IsMove, METH_VARARGS | METH_KEYWORDS },
28628 { (char *)"JoystickEvent_IsZMove", (PyCFunction) _wrap_JoystickEvent_IsZMove, METH_VARARGS | METH_KEYWORDS },
28629 { (char *)"JoystickEvent_ButtonDown", (PyCFunction) _wrap_JoystickEvent_ButtonDown, METH_VARARGS | METH_KEYWORDS },
28630 { (char *)"JoystickEvent_ButtonUp", (PyCFunction) _wrap_JoystickEvent_ButtonUp, METH_VARARGS | METH_KEYWORDS },
28631 { (char *)"JoystickEvent_ButtonIsDown", (PyCFunction) _wrap_JoystickEvent_ButtonIsDown, METH_VARARGS | METH_KEYWORDS },
28632 { (char *)"JoystickEvent_swigregister", JoystickEvent_swigregister, METH_VARARGS },
28633 { (char *)"new_Sound", (PyCFunction) _wrap_new_Sound, METH_VARARGS | METH_KEYWORDS },
28634 { (char *)"new_SoundFromData", (PyCFunction) _wrap_new_SoundFromData, METH_VARARGS | METH_KEYWORDS },
28635 { (char *)"delete_Sound", (PyCFunction) _wrap_delete_Sound, METH_VARARGS | METH_KEYWORDS },
28636 { (char *)"Sound_Create", (PyCFunction) _wrap_Sound_Create, METH_VARARGS | METH_KEYWORDS },
28637 { (char *)"Sound_CreateFromData", (PyCFunction) _wrap_Sound_CreateFromData, METH_VARARGS | METH_KEYWORDS },
28638 { (char *)"Sound_IsOk", (PyCFunction) _wrap_Sound_IsOk, METH_VARARGS | METH_KEYWORDS },
28639 { (char *)"Sound_Play", (PyCFunction) _wrap_Sound_Play, METH_VARARGS | METH_KEYWORDS },
28640 { (char *)"Sound_PlaySound", (PyCFunction) _wrap_Sound_PlaySound, METH_VARARGS | METH_KEYWORDS },
28641 { (char *)"Sound_Stop", (PyCFunction) _wrap_Sound_Stop, METH_VARARGS | METH_KEYWORDS },
28642 { (char *)"Sound_swigregister", Sound_swigregister, METH_VARARGS },
28643 { (char *)"new_FileTypeInfo", (PyCFunction) _wrap_new_FileTypeInfo, METH_VARARGS | METH_KEYWORDS },
28644 { (char *)"new_FileTypeInfoSequence", (PyCFunction) _wrap_new_FileTypeInfoSequence, METH_VARARGS | METH_KEYWORDS },
28645 { (char *)"new_NullFileTypeInfo", (PyCFunction) _wrap_new_NullFileTypeInfo, METH_VARARGS | METH_KEYWORDS },
28646 { (char *)"FileTypeInfo_IsValid", (PyCFunction) _wrap_FileTypeInfo_IsValid, METH_VARARGS | METH_KEYWORDS },
28647 { (char *)"FileTypeInfo_SetIcon", (PyCFunction) _wrap_FileTypeInfo_SetIcon, METH_VARARGS | METH_KEYWORDS },
28648 { (char *)"FileTypeInfo_SetShortDesc", (PyCFunction) _wrap_FileTypeInfo_SetShortDesc, METH_VARARGS | METH_KEYWORDS },
28649 { (char *)"FileTypeInfo_GetMimeType", (PyCFunction) _wrap_FileTypeInfo_GetMimeType, METH_VARARGS | METH_KEYWORDS },
28650 { (char *)"FileTypeInfo_GetOpenCommand", (PyCFunction) _wrap_FileTypeInfo_GetOpenCommand, METH_VARARGS | METH_KEYWORDS },
28651 { (char *)"FileTypeInfo_GetPrintCommand", (PyCFunction) _wrap_FileTypeInfo_GetPrintCommand, METH_VARARGS | METH_KEYWORDS },
28652 { (char *)"FileTypeInfo_GetShortDesc", (PyCFunction) _wrap_FileTypeInfo_GetShortDesc, METH_VARARGS | METH_KEYWORDS },
28653 { (char *)"FileTypeInfo_GetDescription", (PyCFunction) _wrap_FileTypeInfo_GetDescription, METH_VARARGS | METH_KEYWORDS },
28654 { (char *)"FileTypeInfo_GetExtensions", (PyCFunction) _wrap_FileTypeInfo_GetExtensions, METH_VARARGS | METH_KEYWORDS },
28655 { (char *)"FileTypeInfo_GetExtensionsCount", (PyCFunction) _wrap_FileTypeInfo_GetExtensionsCount, METH_VARARGS | METH_KEYWORDS },
28656 { (char *)"FileTypeInfo_GetIconFile", (PyCFunction) _wrap_FileTypeInfo_GetIconFile, METH_VARARGS | METH_KEYWORDS },
28657 { (char *)"FileTypeInfo_GetIconIndex", (PyCFunction) _wrap_FileTypeInfo_GetIconIndex, METH_VARARGS | METH_KEYWORDS },
28658 { (char *)"FileTypeInfo_swigregister", FileTypeInfo_swigregister, METH_VARARGS },
28659 { (char *)"new_FileType", (PyCFunction) _wrap_new_FileType, METH_VARARGS | METH_KEYWORDS },
28660 { (char *)"delete_FileType", (PyCFunction) _wrap_delete_FileType, METH_VARARGS | METH_KEYWORDS },
28661 { (char *)"FileType_GetMimeType", (PyCFunction) _wrap_FileType_GetMimeType, METH_VARARGS | METH_KEYWORDS },
28662 { (char *)"FileType_GetMimeTypes", (PyCFunction) _wrap_FileType_GetMimeTypes, METH_VARARGS | METH_KEYWORDS },
28663 { (char *)"FileType_GetExtensions", (PyCFunction) _wrap_FileType_GetExtensions, METH_VARARGS | METH_KEYWORDS },
28664 { (char *)"FileType_GetIcon", (PyCFunction) _wrap_FileType_GetIcon, METH_VARARGS | METH_KEYWORDS },
28665 { (char *)"FileType_GetIconInfo", (PyCFunction) _wrap_FileType_GetIconInfo, METH_VARARGS | METH_KEYWORDS },
28666 { (char *)"FileType_GetDescription", (PyCFunction) _wrap_FileType_GetDescription, METH_VARARGS | METH_KEYWORDS },
28667 { (char *)"FileType_GetOpenCommand", (PyCFunction) _wrap_FileType_GetOpenCommand, METH_VARARGS | METH_KEYWORDS },
28668 { (char *)"FileType_GetPrintCommand", (PyCFunction) _wrap_FileType_GetPrintCommand, METH_VARARGS | METH_KEYWORDS },
28669 { (char *)"FileType_GetAllCommands", (PyCFunction) _wrap_FileType_GetAllCommands, METH_VARARGS | METH_KEYWORDS },
28670 { (char *)"FileType_SetCommand", (PyCFunction) _wrap_FileType_SetCommand, METH_VARARGS | METH_KEYWORDS },
28671 { (char *)"FileType_SetDefaultIcon", (PyCFunction) _wrap_FileType_SetDefaultIcon, METH_VARARGS | METH_KEYWORDS },
28672 { (char *)"FileType_Unassociate", (PyCFunction) _wrap_FileType_Unassociate, METH_VARARGS | METH_KEYWORDS },
28673 { (char *)"FileType_ExpandCommand", (PyCFunction) _wrap_FileType_ExpandCommand, METH_VARARGS | METH_KEYWORDS },
28674 { (char *)"FileType_swigregister", FileType_swigregister, METH_VARARGS },
28675 { (char *)"MimeTypesManager_IsOfType", (PyCFunction) _wrap_MimeTypesManager_IsOfType, METH_VARARGS | METH_KEYWORDS },
28676 { (char *)"new_MimeTypesManager", (PyCFunction) _wrap_new_MimeTypesManager, METH_VARARGS | METH_KEYWORDS },
28677 { (char *)"MimeTypesManager_Initialize", (PyCFunction) _wrap_MimeTypesManager_Initialize, METH_VARARGS | METH_KEYWORDS },
28678 { (char *)"MimeTypesManager_ClearData", (PyCFunction) _wrap_MimeTypesManager_ClearData, METH_VARARGS | METH_KEYWORDS },
28679 { (char *)"MimeTypesManager_GetFileTypeFromExtension", (PyCFunction) _wrap_MimeTypesManager_GetFileTypeFromExtension, METH_VARARGS | METH_KEYWORDS },
28680 { (char *)"MimeTypesManager_GetFileTypeFromMimeType", (PyCFunction) _wrap_MimeTypesManager_GetFileTypeFromMimeType, METH_VARARGS | METH_KEYWORDS },
28681 { (char *)"MimeTypesManager_ReadMailcap", (PyCFunction) _wrap_MimeTypesManager_ReadMailcap, METH_VARARGS | METH_KEYWORDS },
28682 { (char *)"MimeTypesManager_ReadMimeTypes", (PyCFunction) _wrap_MimeTypesManager_ReadMimeTypes, METH_VARARGS | METH_KEYWORDS },
28683 { (char *)"MimeTypesManager_EnumAllFileTypes", (PyCFunction) _wrap_MimeTypesManager_EnumAllFileTypes, METH_VARARGS | METH_KEYWORDS },
28684 { (char *)"MimeTypesManager_AddFallback", (PyCFunction) _wrap_MimeTypesManager_AddFallback, METH_VARARGS | METH_KEYWORDS },
28685 { (char *)"MimeTypesManager_Associate", (PyCFunction) _wrap_MimeTypesManager_Associate, METH_VARARGS | METH_KEYWORDS },
28686 { (char *)"MimeTypesManager_Unassociate", (PyCFunction) _wrap_MimeTypesManager_Unassociate, METH_VARARGS | METH_KEYWORDS },
28687 { (char *)"delete_MimeTypesManager", (PyCFunction) _wrap_delete_MimeTypesManager, METH_VARARGS | METH_KEYWORDS },
28688 { (char *)"MimeTypesManager_swigregister", MimeTypesManager_swigregister, METH_VARARGS },
28689 { (char *)"new_ArtProvider", (PyCFunction) _wrap_new_ArtProvider, METH_VARARGS | METH_KEYWORDS },
28690 { (char *)"ArtProvider__setCallbackInfo", (PyCFunction) _wrap_ArtProvider__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
28691 { (char *)"ArtProvider_PushProvider", (PyCFunction) _wrap_ArtProvider_PushProvider, METH_VARARGS | METH_KEYWORDS },
28692 { (char *)"ArtProvider_PopProvider", (PyCFunction) _wrap_ArtProvider_PopProvider, METH_VARARGS | METH_KEYWORDS },
28693 { (char *)"ArtProvider_RemoveProvider", (PyCFunction) _wrap_ArtProvider_RemoveProvider, METH_VARARGS | METH_KEYWORDS },
28694 { (char *)"ArtProvider_GetBitmap", (PyCFunction) _wrap_ArtProvider_GetBitmap, METH_VARARGS | METH_KEYWORDS },
28695 { (char *)"ArtProvider_GetIcon", (PyCFunction) _wrap_ArtProvider_GetIcon, METH_VARARGS | METH_KEYWORDS },
28696 { (char *)"ArtProvider_Destroy", (PyCFunction) _wrap_ArtProvider_Destroy, METH_VARARGS | METH_KEYWORDS },
28697 { (char *)"ArtProvider_swigregister", ArtProvider_swigregister, METH_VARARGS },
28698 { (char *)"delete_ConfigBase", (PyCFunction) _wrap_delete_ConfigBase, METH_VARARGS | METH_KEYWORDS },
28699 { (char *)"ConfigBase_Set", (PyCFunction) _wrap_ConfigBase_Set, METH_VARARGS | METH_KEYWORDS },
28700 { (char *)"ConfigBase_Get", (PyCFunction) _wrap_ConfigBase_Get, METH_VARARGS | METH_KEYWORDS },
28701 { (char *)"ConfigBase_Create", (PyCFunction) _wrap_ConfigBase_Create, METH_VARARGS | METH_KEYWORDS },
28702 { (char *)"ConfigBase_DontCreateOnDemand", (PyCFunction) _wrap_ConfigBase_DontCreateOnDemand, METH_VARARGS | METH_KEYWORDS },
28703 { (char *)"ConfigBase_SetPath", (PyCFunction) _wrap_ConfigBase_SetPath, METH_VARARGS | METH_KEYWORDS },
28704 { (char *)"ConfigBase_GetPath", (PyCFunction) _wrap_ConfigBase_GetPath, METH_VARARGS | METH_KEYWORDS },
28705 { (char *)"ConfigBase_GetFirstGroup", (PyCFunction) _wrap_ConfigBase_GetFirstGroup, METH_VARARGS | METH_KEYWORDS },
28706 { (char *)"ConfigBase_GetNextGroup", (PyCFunction) _wrap_ConfigBase_GetNextGroup, METH_VARARGS | METH_KEYWORDS },
28707 { (char *)"ConfigBase_GetFirstEntry", (PyCFunction) _wrap_ConfigBase_GetFirstEntry, METH_VARARGS | METH_KEYWORDS },
28708 { (char *)"ConfigBase_GetNextEntry", (PyCFunction) _wrap_ConfigBase_GetNextEntry, METH_VARARGS | METH_KEYWORDS },
28709 { (char *)"ConfigBase_GetNumberOfEntries", (PyCFunction) _wrap_ConfigBase_GetNumberOfEntries, METH_VARARGS | METH_KEYWORDS },
28710 { (char *)"ConfigBase_GetNumberOfGroups", (PyCFunction) _wrap_ConfigBase_GetNumberOfGroups, METH_VARARGS | METH_KEYWORDS },
28711 { (char *)"ConfigBase_HasGroup", (PyCFunction) _wrap_ConfigBase_HasGroup, METH_VARARGS | METH_KEYWORDS },
28712 { (char *)"ConfigBase_HasEntry", (PyCFunction) _wrap_ConfigBase_HasEntry, METH_VARARGS | METH_KEYWORDS },
28713 { (char *)"ConfigBase_Exists", (PyCFunction) _wrap_ConfigBase_Exists, METH_VARARGS | METH_KEYWORDS },
28714 { (char *)"ConfigBase_GetEntryType", (PyCFunction) _wrap_ConfigBase_GetEntryType, METH_VARARGS | METH_KEYWORDS },
28715 { (char *)"ConfigBase_Read", (PyCFunction) _wrap_ConfigBase_Read, METH_VARARGS | METH_KEYWORDS },
28716 { (char *)"ConfigBase_ReadInt", (PyCFunction) _wrap_ConfigBase_ReadInt, METH_VARARGS | METH_KEYWORDS },
28717 { (char *)"ConfigBase_ReadFloat", (PyCFunction) _wrap_ConfigBase_ReadFloat, METH_VARARGS | METH_KEYWORDS },
28718 { (char *)"ConfigBase_ReadBool", (PyCFunction) _wrap_ConfigBase_ReadBool, METH_VARARGS | METH_KEYWORDS },
28719 { (char *)"ConfigBase_Write", (PyCFunction) _wrap_ConfigBase_Write, METH_VARARGS | METH_KEYWORDS },
28720 { (char *)"ConfigBase_WriteInt", (PyCFunction) _wrap_ConfigBase_WriteInt, METH_VARARGS | METH_KEYWORDS },
28721 { (char *)"ConfigBase_WriteFloat", (PyCFunction) _wrap_ConfigBase_WriteFloat, METH_VARARGS | METH_KEYWORDS },
28722 { (char *)"ConfigBase_WriteBool", (PyCFunction) _wrap_ConfigBase_WriteBool, METH_VARARGS | METH_KEYWORDS },
28723 { (char *)"ConfigBase_Flush", (PyCFunction) _wrap_ConfigBase_Flush, METH_VARARGS | METH_KEYWORDS },
28724 { (char *)"ConfigBase_RenameEntry", (PyCFunction) _wrap_ConfigBase_RenameEntry, METH_VARARGS | METH_KEYWORDS },
28725 { (char *)"ConfigBase_RenameGroup", (PyCFunction) _wrap_ConfigBase_RenameGroup, METH_VARARGS | METH_KEYWORDS },
28726 { (char *)"ConfigBase_DeleteEntry", (PyCFunction) _wrap_ConfigBase_DeleteEntry, METH_VARARGS | METH_KEYWORDS },
28727 { (char *)"ConfigBase_DeleteGroup", (PyCFunction) _wrap_ConfigBase_DeleteGroup, METH_VARARGS | METH_KEYWORDS },
28728 { (char *)"ConfigBase_DeleteAll", (PyCFunction) _wrap_ConfigBase_DeleteAll, METH_VARARGS | METH_KEYWORDS },
28729 { (char *)"ConfigBase_SetExpandEnvVars", (PyCFunction) _wrap_ConfigBase_SetExpandEnvVars, METH_VARARGS | METH_KEYWORDS },
28730 { (char *)"ConfigBase_IsExpandingEnvVars", (PyCFunction) _wrap_ConfigBase_IsExpandingEnvVars, METH_VARARGS | METH_KEYWORDS },
28731 { (char *)"ConfigBase_SetRecordDefaults", (PyCFunction) _wrap_ConfigBase_SetRecordDefaults, METH_VARARGS | METH_KEYWORDS },
28732 { (char *)"ConfigBase_IsRecordingDefaults", (PyCFunction) _wrap_ConfigBase_IsRecordingDefaults, METH_VARARGS | METH_KEYWORDS },
28733 { (char *)"ConfigBase_ExpandEnvVars", (PyCFunction) _wrap_ConfigBase_ExpandEnvVars, METH_VARARGS | METH_KEYWORDS },
28734 { (char *)"ConfigBase_GetAppName", (PyCFunction) _wrap_ConfigBase_GetAppName, METH_VARARGS | METH_KEYWORDS },
28735 { (char *)"ConfigBase_GetVendorName", (PyCFunction) _wrap_ConfigBase_GetVendorName, METH_VARARGS | METH_KEYWORDS },
28736 { (char *)"ConfigBase_SetAppName", (PyCFunction) _wrap_ConfigBase_SetAppName, METH_VARARGS | METH_KEYWORDS },
28737 { (char *)"ConfigBase_SetVendorName", (PyCFunction) _wrap_ConfigBase_SetVendorName, METH_VARARGS | METH_KEYWORDS },
28738 { (char *)"ConfigBase_SetStyle", (PyCFunction) _wrap_ConfigBase_SetStyle, METH_VARARGS | METH_KEYWORDS },
28739 { (char *)"ConfigBase_GetStyle", (PyCFunction) _wrap_ConfigBase_GetStyle, METH_VARARGS | METH_KEYWORDS },
28740 { (char *)"ConfigBase_swigregister", ConfigBase_swigregister, METH_VARARGS },
28741 { (char *)"new_Config", (PyCFunction) _wrap_new_Config, METH_VARARGS | METH_KEYWORDS },
28742 { (char *)"delete_Config", (PyCFunction) _wrap_delete_Config, METH_VARARGS | METH_KEYWORDS },
28743 { (char *)"Config_swigregister", Config_swigregister, METH_VARARGS },
28744 { (char *)"new_FileConfig", (PyCFunction) _wrap_new_FileConfig, METH_VARARGS | METH_KEYWORDS },
28745 { (char *)"delete_FileConfig", (PyCFunction) _wrap_delete_FileConfig, METH_VARARGS | METH_KEYWORDS },
28746 { (char *)"FileConfig_swigregister", FileConfig_swigregister, METH_VARARGS },
28747 { (char *)"new_ConfigPathChanger", (PyCFunction) _wrap_new_ConfigPathChanger, METH_VARARGS | METH_KEYWORDS },
28748 { (char *)"delete_ConfigPathChanger", (PyCFunction) _wrap_delete_ConfigPathChanger, METH_VARARGS | METH_KEYWORDS },
28749 { (char *)"ConfigPathChanger_Name", (PyCFunction) _wrap_ConfigPathChanger_Name, METH_VARARGS | METH_KEYWORDS },
28750 { (char *)"ConfigPathChanger_swigregister", ConfigPathChanger_swigregister, METH_VARARGS },
28751 { (char *)"ExpandEnvVars", (PyCFunction) _wrap_ExpandEnvVars, METH_VARARGS | METH_KEYWORDS },
28752 { (char *)"DateTime_SetCountry", (PyCFunction) _wrap_DateTime_SetCountry, METH_VARARGS | METH_KEYWORDS },
28753 { (char *)"DateTime_GetCountry", (PyCFunction) _wrap_DateTime_GetCountry, METH_VARARGS | METH_KEYWORDS },
28754 { (char *)"DateTime_IsWestEuropeanCountry", (PyCFunction) _wrap_DateTime_IsWestEuropeanCountry, METH_VARARGS | METH_KEYWORDS },
28755 { (char *)"DateTime_GetCurrentYear", (PyCFunction) _wrap_DateTime_GetCurrentYear, METH_VARARGS | METH_KEYWORDS },
28756 { (char *)"DateTime_ConvertYearToBC", (PyCFunction) _wrap_DateTime_ConvertYearToBC, METH_VARARGS | METH_KEYWORDS },
28757 { (char *)"DateTime_GetCurrentMonth", (PyCFunction) _wrap_DateTime_GetCurrentMonth, METH_VARARGS | METH_KEYWORDS },
28758 { (char *)"DateTime_IsLeapYear", (PyCFunction) _wrap_DateTime_IsLeapYear, METH_VARARGS | METH_KEYWORDS },
28759 { (char *)"DateTime_GetCentury", (PyCFunction) _wrap_DateTime_GetCentury, METH_VARARGS | METH_KEYWORDS },
28760 { (char *)"DateTime_GetNumberOfDaysinYear", (PyCFunction) _wrap_DateTime_GetNumberOfDaysinYear, METH_VARARGS | METH_KEYWORDS },
28761 { (char *)"DateTime_GetNumberOfDaysInMonth", (PyCFunction) _wrap_DateTime_GetNumberOfDaysInMonth, METH_VARARGS | METH_KEYWORDS },
28762 { (char *)"DateTime_GetMonthName", (PyCFunction) _wrap_DateTime_GetMonthName, METH_VARARGS | METH_KEYWORDS },
28763 { (char *)"DateTime_GetWeekDayName", (PyCFunction) _wrap_DateTime_GetWeekDayName, METH_VARARGS | METH_KEYWORDS },
28764 { (char *)"DateTime_GetAmPmStrings", (PyCFunction) _wrap_DateTime_GetAmPmStrings, METH_VARARGS | METH_KEYWORDS },
28765 { (char *)"DateTime_IsDSTApplicable", (PyCFunction) _wrap_DateTime_IsDSTApplicable, METH_VARARGS | METH_KEYWORDS },
28766 { (char *)"DateTime_GetBeginDST", (PyCFunction) _wrap_DateTime_GetBeginDST, METH_VARARGS | METH_KEYWORDS },
28767 { (char *)"DateTime_GetEndDST", (PyCFunction) _wrap_DateTime_GetEndDST, METH_VARARGS | METH_KEYWORDS },
28768 { (char *)"DateTime_Now", (PyCFunction) _wrap_DateTime_Now, METH_VARARGS | METH_KEYWORDS },
28769 { (char *)"DateTime_UNow", (PyCFunction) _wrap_DateTime_UNow, METH_VARARGS | METH_KEYWORDS },
28770 { (char *)"DateTime_Today", (PyCFunction) _wrap_DateTime_Today, METH_VARARGS | METH_KEYWORDS },
28771 { (char *)"new_DateTime", (PyCFunction) _wrap_new_DateTime, METH_VARARGS | METH_KEYWORDS },
28772 { (char *)"new_DateTimeFromTimeT", (PyCFunction) _wrap_new_DateTimeFromTimeT, METH_VARARGS | METH_KEYWORDS },
28773 { (char *)"new_DateTimeFromJDN", (PyCFunction) _wrap_new_DateTimeFromJDN, METH_VARARGS | METH_KEYWORDS },
28774 { (char *)"new_DateTimeFromHMS", (PyCFunction) _wrap_new_DateTimeFromHMS, METH_VARARGS | METH_KEYWORDS },
28775 { (char *)"new_DateTimeFromDMY", (PyCFunction) _wrap_new_DateTimeFromDMY, METH_VARARGS | METH_KEYWORDS },
28776 { (char *)"delete_DateTime", (PyCFunction) _wrap_delete_DateTime, METH_VARARGS | METH_KEYWORDS },
28777 { (char *)"DateTime_SetToCurrent", (PyCFunction) _wrap_DateTime_SetToCurrent, METH_VARARGS | METH_KEYWORDS },
28778 { (char *)"DateTime_SetTimeT", (PyCFunction) _wrap_DateTime_SetTimeT, METH_VARARGS | METH_KEYWORDS },
28779 { (char *)"DateTime_SetJDN", (PyCFunction) _wrap_DateTime_SetJDN, METH_VARARGS | METH_KEYWORDS },
28780 { (char *)"DateTime_SetHMS", (PyCFunction) _wrap_DateTime_SetHMS, METH_VARARGS | METH_KEYWORDS },
28781 { (char *)"DateTime_Set", (PyCFunction) _wrap_DateTime_Set, METH_VARARGS | METH_KEYWORDS },
28782 { (char *)"DateTime_ResetTime", (PyCFunction) _wrap_DateTime_ResetTime, METH_VARARGS | METH_KEYWORDS },
28783 { (char *)"DateTime_SetYear", (PyCFunction) _wrap_DateTime_SetYear, METH_VARARGS | METH_KEYWORDS },
28784 { (char *)"DateTime_SetMonth", (PyCFunction) _wrap_DateTime_SetMonth, METH_VARARGS | METH_KEYWORDS },
28785 { (char *)"DateTime_SetDay", (PyCFunction) _wrap_DateTime_SetDay, METH_VARARGS | METH_KEYWORDS },
28786 { (char *)"DateTime_SetHour", (PyCFunction) _wrap_DateTime_SetHour, METH_VARARGS | METH_KEYWORDS },
28787 { (char *)"DateTime_SetMinute", (PyCFunction) _wrap_DateTime_SetMinute, METH_VARARGS | METH_KEYWORDS },
28788 { (char *)"DateTime_SetSecond", (PyCFunction) _wrap_DateTime_SetSecond, METH_VARARGS | METH_KEYWORDS },
28789 { (char *)"DateTime_SetMillisecond", (PyCFunction) _wrap_DateTime_SetMillisecond, METH_VARARGS | METH_KEYWORDS },
28790 { (char *)"DateTime_SetToWeekDayInSameWeek", (PyCFunction) _wrap_DateTime_SetToWeekDayInSameWeek, METH_VARARGS | METH_KEYWORDS },
28791 { (char *)"DateTime_GetWeekDayInSameWeek", (PyCFunction) _wrap_DateTime_GetWeekDayInSameWeek, METH_VARARGS | METH_KEYWORDS },
28792 { (char *)"DateTime_SetToNextWeekDay", (PyCFunction) _wrap_DateTime_SetToNextWeekDay, METH_VARARGS | METH_KEYWORDS },
28793 { (char *)"DateTime_GetNextWeekDay", (PyCFunction) _wrap_DateTime_GetNextWeekDay, METH_VARARGS | METH_KEYWORDS },
28794 { (char *)"DateTime_SetToPrevWeekDay", (PyCFunction) _wrap_DateTime_SetToPrevWeekDay, METH_VARARGS | METH_KEYWORDS },
28795 { (char *)"DateTime_GetPrevWeekDay", (PyCFunction) _wrap_DateTime_GetPrevWeekDay, METH_VARARGS | METH_KEYWORDS },
28796 { (char *)"DateTime_SetToWeekDay", (PyCFunction) _wrap_DateTime_SetToWeekDay, METH_VARARGS | METH_KEYWORDS },
28797 { (char *)"DateTime_SetToLastWeekDay", (PyCFunction) _wrap_DateTime_SetToLastWeekDay, METH_VARARGS | METH_KEYWORDS },
28798 { (char *)"DateTime_GetLastWeekDay", (PyCFunction) _wrap_DateTime_GetLastWeekDay, METH_VARARGS | METH_KEYWORDS },
28799 { (char *)"DateTime_SetToTheWeek", (PyCFunction) _wrap_DateTime_SetToTheWeek, METH_VARARGS | METH_KEYWORDS },
28800 { (char *)"DateTime_GetWeek", (PyCFunction) _wrap_DateTime_GetWeek, METH_VARARGS | METH_KEYWORDS },
28801 { (char *)"DateTime_SetToLastMonthDay", (PyCFunction) _wrap_DateTime_SetToLastMonthDay, METH_VARARGS | METH_KEYWORDS },
28802 { (char *)"DateTime_GetLastMonthDay", (PyCFunction) _wrap_DateTime_GetLastMonthDay, METH_VARARGS | METH_KEYWORDS },
28803 { (char *)"DateTime_SetToYearDay", (PyCFunction) _wrap_DateTime_SetToYearDay, METH_VARARGS | METH_KEYWORDS },
28804 { (char *)"DateTime_GetYearDay", (PyCFunction) _wrap_DateTime_GetYearDay, METH_VARARGS | METH_KEYWORDS },
28805 { (char *)"DateTime_GetJulianDayNumber", (PyCFunction) _wrap_DateTime_GetJulianDayNumber, METH_VARARGS | METH_KEYWORDS },
28806 { (char *)"DateTime_GetJDN", (PyCFunction) _wrap_DateTime_GetJDN, METH_VARARGS | METH_KEYWORDS },
28807 { (char *)"DateTime_GetModifiedJulianDayNumber", (PyCFunction) _wrap_DateTime_GetModifiedJulianDayNumber, METH_VARARGS | METH_KEYWORDS },
28808 { (char *)"DateTime_GetMJD", (PyCFunction) _wrap_DateTime_GetMJD, METH_VARARGS | METH_KEYWORDS },
28809 { (char *)"DateTime_GetRataDie", (PyCFunction) _wrap_DateTime_GetRataDie, METH_VARARGS | METH_KEYWORDS },
28810 { (char *)"DateTime_ToTimezone", (PyCFunction) _wrap_DateTime_ToTimezone, METH_VARARGS | METH_KEYWORDS },
28811 { (char *)"DateTime_MakeTimezone", (PyCFunction) _wrap_DateTime_MakeTimezone, METH_VARARGS | METH_KEYWORDS },
28812 { (char *)"DateTime_ToGMT", (PyCFunction) _wrap_DateTime_ToGMT, METH_VARARGS | METH_KEYWORDS },
28813 { (char *)"DateTime_MakeGMT", (PyCFunction) _wrap_DateTime_MakeGMT, METH_VARARGS | METH_KEYWORDS },
28814 { (char *)"DateTime_IsDST", (PyCFunction) _wrap_DateTime_IsDST, METH_VARARGS | METH_KEYWORDS },
28815 { (char *)"DateTime_IsValid", (PyCFunction) _wrap_DateTime_IsValid, METH_VARARGS | METH_KEYWORDS },
28816 { (char *)"DateTime_GetTicks", (PyCFunction) _wrap_DateTime_GetTicks, METH_VARARGS | METH_KEYWORDS },
28817 { (char *)"DateTime_GetYear", (PyCFunction) _wrap_DateTime_GetYear, METH_VARARGS | METH_KEYWORDS },
28818 { (char *)"DateTime_GetMonth", (PyCFunction) _wrap_DateTime_GetMonth, METH_VARARGS | METH_KEYWORDS },
28819 { (char *)"DateTime_GetDay", (PyCFunction) _wrap_DateTime_GetDay, METH_VARARGS | METH_KEYWORDS },
28820 { (char *)"DateTime_GetWeekDay", (PyCFunction) _wrap_DateTime_GetWeekDay, METH_VARARGS | METH_KEYWORDS },
28821 { (char *)"DateTime_GetHour", (PyCFunction) _wrap_DateTime_GetHour, METH_VARARGS | METH_KEYWORDS },
28822 { (char *)"DateTime_GetMinute", (PyCFunction) _wrap_DateTime_GetMinute, METH_VARARGS | METH_KEYWORDS },
28823 { (char *)"DateTime_GetSecond", (PyCFunction) _wrap_DateTime_GetSecond, METH_VARARGS | METH_KEYWORDS },
28824 { (char *)"DateTime_GetMillisecond", (PyCFunction) _wrap_DateTime_GetMillisecond, METH_VARARGS | METH_KEYWORDS },
28825 { (char *)"DateTime_GetDayOfYear", (PyCFunction) _wrap_DateTime_GetDayOfYear, METH_VARARGS | METH_KEYWORDS },
28826 { (char *)"DateTime_GetWeekOfYear", (PyCFunction) _wrap_DateTime_GetWeekOfYear, METH_VARARGS | METH_KEYWORDS },
28827 { (char *)"DateTime_GetWeekOfMonth", (PyCFunction) _wrap_DateTime_GetWeekOfMonth, METH_VARARGS | METH_KEYWORDS },
28828 { (char *)"DateTime_IsWorkDay", (PyCFunction) _wrap_DateTime_IsWorkDay, METH_VARARGS | METH_KEYWORDS },
28829 { (char *)"DateTime_IsEqualTo", (PyCFunction) _wrap_DateTime_IsEqualTo, METH_VARARGS | METH_KEYWORDS },
28830 { (char *)"DateTime_IsEarlierThan", (PyCFunction) _wrap_DateTime_IsEarlierThan, METH_VARARGS | METH_KEYWORDS },
28831 { (char *)"DateTime_IsLaterThan", (PyCFunction) _wrap_DateTime_IsLaterThan, METH_VARARGS | METH_KEYWORDS },
28832 { (char *)"DateTime_IsStrictlyBetween", (PyCFunction) _wrap_DateTime_IsStrictlyBetween, METH_VARARGS | METH_KEYWORDS },
28833 { (char *)"DateTime_IsBetween", (PyCFunction) _wrap_DateTime_IsBetween, METH_VARARGS | METH_KEYWORDS },
28834 { (char *)"DateTime_IsSameDate", (PyCFunction) _wrap_DateTime_IsSameDate, METH_VARARGS | METH_KEYWORDS },
28835 { (char *)"DateTime_IsSameTime", (PyCFunction) _wrap_DateTime_IsSameTime, METH_VARARGS | METH_KEYWORDS },
28836 { (char *)"DateTime_IsEqualUpTo", (PyCFunction) _wrap_DateTime_IsEqualUpTo, METH_VARARGS | METH_KEYWORDS },
28837 { (char *)"DateTime_AddTS", (PyCFunction) _wrap_DateTime_AddTS, METH_VARARGS | METH_KEYWORDS },
28838 { (char *)"DateTime_AddDS", (PyCFunction) _wrap_DateTime_AddDS, METH_VARARGS | METH_KEYWORDS },
28839 { (char *)"DateTime_SubtractTS", (PyCFunction) _wrap_DateTime_SubtractTS, METH_VARARGS | METH_KEYWORDS },
28840 { (char *)"DateTime_SubtractDS", (PyCFunction) _wrap_DateTime_SubtractDS, METH_VARARGS | METH_KEYWORDS },
28841 { (char *)"DateTime_Subtract", (PyCFunction) _wrap_DateTime_Subtract, METH_VARARGS | METH_KEYWORDS },
28842 { (char *)"DateTime___iadd__", _wrap_DateTime___iadd__, METH_VARARGS },
28843 { (char *)"DateTime___isub__", _wrap_DateTime___isub__, METH_VARARGS },
28844 { (char *)"DateTime___add__", _wrap_DateTime___add__, METH_VARARGS },
28845 { (char *)"DateTime___sub__", _wrap_DateTime___sub__, METH_VARARGS },
28846 { (char *)"DateTime___lt__", _wrap_DateTime___lt__, METH_VARARGS },
28847 { (char *)"DateTime___le__", _wrap_DateTime___le__, METH_VARARGS },
28848 { (char *)"DateTime___gt__", _wrap_DateTime___gt__, METH_VARARGS },
28849 { (char *)"DateTime___ge__", _wrap_DateTime___ge__, METH_VARARGS },
28850 { (char *)"DateTime___eq__", _wrap_DateTime___eq__, METH_VARARGS },
28851 { (char *)"DateTime___ne__", _wrap_DateTime___ne__, METH_VARARGS },
28852 { (char *)"DateTime_ParseRfc822Date", (PyCFunction) _wrap_DateTime_ParseRfc822Date, METH_VARARGS | METH_KEYWORDS },
28853 { (char *)"DateTime_ParseFormat", (PyCFunction) _wrap_DateTime_ParseFormat, METH_VARARGS | METH_KEYWORDS },
28854 { (char *)"DateTime_ParseDateTime", (PyCFunction) _wrap_DateTime_ParseDateTime, METH_VARARGS | METH_KEYWORDS },
28855 { (char *)"DateTime_ParseDate", (PyCFunction) _wrap_DateTime_ParseDate, METH_VARARGS | METH_KEYWORDS },
28856 { (char *)"DateTime_ParseTime", (PyCFunction) _wrap_DateTime_ParseTime, METH_VARARGS | METH_KEYWORDS },
28857 { (char *)"DateTime_Format", (PyCFunction) _wrap_DateTime_Format, METH_VARARGS | METH_KEYWORDS },
28858 { (char *)"DateTime_FormatDate", (PyCFunction) _wrap_DateTime_FormatDate, METH_VARARGS | METH_KEYWORDS },
28859 { (char *)"DateTime_FormatTime", (PyCFunction) _wrap_DateTime_FormatTime, METH_VARARGS | METH_KEYWORDS },
28860 { (char *)"DateTime_FormatISODate", (PyCFunction) _wrap_DateTime_FormatISODate, METH_VARARGS | METH_KEYWORDS },
28861 { (char *)"DateTime_FormatISOTime", (PyCFunction) _wrap_DateTime_FormatISOTime, METH_VARARGS | METH_KEYWORDS },
28862 { (char *)"DateTime_swigregister", DateTime_swigregister, METH_VARARGS },
28863 { (char *)"TimeSpan_Seconds", (PyCFunction) _wrap_TimeSpan_Seconds, METH_VARARGS | METH_KEYWORDS },
28864 { (char *)"TimeSpan_Second", (PyCFunction) _wrap_TimeSpan_Second, METH_VARARGS | METH_KEYWORDS },
28865 { (char *)"TimeSpan_Minutes", (PyCFunction) _wrap_TimeSpan_Minutes, METH_VARARGS | METH_KEYWORDS },
28866 { (char *)"TimeSpan_Minute", (PyCFunction) _wrap_TimeSpan_Minute, METH_VARARGS | METH_KEYWORDS },
28867 { (char *)"TimeSpan_Hours", (PyCFunction) _wrap_TimeSpan_Hours, METH_VARARGS | METH_KEYWORDS },
28868 { (char *)"TimeSpan_Hour", (PyCFunction) _wrap_TimeSpan_Hour, METH_VARARGS | METH_KEYWORDS },
28869 { (char *)"TimeSpan_Days", (PyCFunction) _wrap_TimeSpan_Days, METH_VARARGS | METH_KEYWORDS },
28870 { (char *)"TimeSpan_Day", (PyCFunction) _wrap_TimeSpan_Day, METH_VARARGS | METH_KEYWORDS },
28871 { (char *)"TimeSpan_Weeks", (PyCFunction) _wrap_TimeSpan_Weeks, METH_VARARGS | METH_KEYWORDS },
28872 { (char *)"TimeSpan_Week", (PyCFunction) _wrap_TimeSpan_Week, METH_VARARGS | METH_KEYWORDS },
28873 { (char *)"new_TimeSpan", (PyCFunction) _wrap_new_TimeSpan, METH_VARARGS | METH_KEYWORDS },
28874 { (char *)"delete_TimeSpan", (PyCFunction) _wrap_delete_TimeSpan, METH_VARARGS | METH_KEYWORDS },
28875 { (char *)"TimeSpan_Add", (PyCFunction) _wrap_TimeSpan_Add, METH_VARARGS | METH_KEYWORDS },
28876 { (char *)"TimeSpan_Subtract", (PyCFunction) _wrap_TimeSpan_Subtract, METH_VARARGS | METH_KEYWORDS },
28877 { (char *)"TimeSpan_Multiply", (PyCFunction) _wrap_TimeSpan_Multiply, METH_VARARGS | METH_KEYWORDS },
28878 { (char *)"TimeSpan_Neg", (PyCFunction) _wrap_TimeSpan_Neg, METH_VARARGS | METH_KEYWORDS },
28879 { (char *)"TimeSpan_Abs", (PyCFunction) _wrap_TimeSpan_Abs, METH_VARARGS | METH_KEYWORDS },
28880 { (char *)"TimeSpan___iadd__", (PyCFunction) _wrap_TimeSpan___iadd__, METH_VARARGS | METH_KEYWORDS },
28881 { (char *)"TimeSpan___isub__", (PyCFunction) _wrap_TimeSpan___isub__, METH_VARARGS | METH_KEYWORDS },
28882 { (char *)"TimeSpan___imul__", (PyCFunction) _wrap_TimeSpan___imul__, METH_VARARGS | METH_KEYWORDS },
28883 { (char *)"TimeSpan___neg__", (PyCFunction) _wrap_TimeSpan___neg__, METH_VARARGS | METH_KEYWORDS },
28884 { (char *)"TimeSpan___add__", (PyCFunction) _wrap_TimeSpan___add__, METH_VARARGS | METH_KEYWORDS },
28885 { (char *)"TimeSpan___sub__", (PyCFunction) _wrap_TimeSpan___sub__, METH_VARARGS | METH_KEYWORDS },
28886 { (char *)"TimeSpan___mul__", (PyCFunction) _wrap_TimeSpan___mul__, METH_VARARGS | METH_KEYWORDS },
28887 { (char *)"TimeSpan___rmul__", (PyCFunction) _wrap_TimeSpan___rmul__, METH_VARARGS | METH_KEYWORDS },
28888 { (char *)"TimeSpan___lt__", (PyCFunction) _wrap_TimeSpan___lt__, METH_VARARGS | METH_KEYWORDS },
28889 { (char *)"TimeSpan___le__", (PyCFunction) _wrap_TimeSpan___le__, METH_VARARGS | METH_KEYWORDS },
28890 { (char *)"TimeSpan___gt__", (PyCFunction) _wrap_TimeSpan___gt__, METH_VARARGS | METH_KEYWORDS },
28891 { (char *)"TimeSpan___ge__", (PyCFunction) _wrap_TimeSpan___ge__, METH_VARARGS | METH_KEYWORDS },
28892 { (char *)"TimeSpan___eq__", (PyCFunction) _wrap_TimeSpan___eq__, METH_VARARGS | METH_KEYWORDS },
28893 { (char *)"TimeSpan___ne__", (PyCFunction) _wrap_TimeSpan___ne__, METH_VARARGS | METH_KEYWORDS },
28894 { (char *)"TimeSpan_IsNull", (PyCFunction) _wrap_TimeSpan_IsNull, METH_VARARGS | METH_KEYWORDS },
28895 { (char *)"TimeSpan_IsPositive", (PyCFunction) _wrap_TimeSpan_IsPositive, METH_VARARGS | METH_KEYWORDS },
28896 { (char *)"TimeSpan_IsNegative", (PyCFunction) _wrap_TimeSpan_IsNegative, METH_VARARGS | METH_KEYWORDS },
28897 { (char *)"TimeSpan_IsEqualTo", (PyCFunction) _wrap_TimeSpan_IsEqualTo, METH_VARARGS | METH_KEYWORDS },
28898 { (char *)"TimeSpan_IsLongerThan", (PyCFunction) _wrap_TimeSpan_IsLongerThan, METH_VARARGS | METH_KEYWORDS },
28899 { (char *)"TimeSpan_IsShorterThan", (PyCFunction) _wrap_TimeSpan_IsShorterThan, METH_VARARGS | METH_KEYWORDS },
28900 { (char *)"TimeSpan_GetWeeks", (PyCFunction) _wrap_TimeSpan_GetWeeks, METH_VARARGS | METH_KEYWORDS },
28901 { (char *)"TimeSpan_GetDays", (PyCFunction) _wrap_TimeSpan_GetDays, METH_VARARGS | METH_KEYWORDS },
28902 { (char *)"TimeSpan_GetHours", (PyCFunction) _wrap_TimeSpan_GetHours, METH_VARARGS | METH_KEYWORDS },
28903 { (char *)"TimeSpan_GetMinutes", (PyCFunction) _wrap_TimeSpan_GetMinutes, METH_VARARGS | METH_KEYWORDS },
28904 { (char *)"TimeSpan_GetSeconds", (PyCFunction) _wrap_TimeSpan_GetSeconds, METH_VARARGS | METH_KEYWORDS },
28905 { (char *)"TimeSpan_GetMilliseconds", (PyCFunction) _wrap_TimeSpan_GetMilliseconds, METH_VARARGS | METH_KEYWORDS },
28906 { (char *)"TimeSpan_Format", (PyCFunction) _wrap_TimeSpan_Format, METH_VARARGS | METH_KEYWORDS },
28907 { (char *)"TimeSpan_swigregister", TimeSpan_swigregister, METH_VARARGS },
28908 { (char *)"new_DateSpan", (PyCFunction) _wrap_new_DateSpan, METH_VARARGS | METH_KEYWORDS },
28909 { (char *)"delete_DateSpan", (PyCFunction) _wrap_delete_DateSpan, METH_VARARGS | METH_KEYWORDS },
28910 { (char *)"DateSpan_Days", (PyCFunction) _wrap_DateSpan_Days, METH_VARARGS | METH_KEYWORDS },
28911 { (char *)"DateSpan_Day", (PyCFunction) _wrap_DateSpan_Day, METH_VARARGS | METH_KEYWORDS },
28912 { (char *)"DateSpan_Weeks", (PyCFunction) _wrap_DateSpan_Weeks, METH_VARARGS | METH_KEYWORDS },
28913 { (char *)"DateSpan_Week", (PyCFunction) _wrap_DateSpan_Week, METH_VARARGS | METH_KEYWORDS },
28914 { (char *)"DateSpan_Months", (PyCFunction) _wrap_DateSpan_Months, METH_VARARGS | METH_KEYWORDS },
28915 { (char *)"DateSpan_Month", (PyCFunction) _wrap_DateSpan_Month, METH_VARARGS | METH_KEYWORDS },
28916 { (char *)"DateSpan_Years", (PyCFunction) _wrap_DateSpan_Years, METH_VARARGS | METH_KEYWORDS },
28917 { (char *)"DateSpan_Year", (PyCFunction) _wrap_DateSpan_Year, METH_VARARGS | METH_KEYWORDS },
28918 { (char *)"DateSpan_SetYears", (PyCFunction) _wrap_DateSpan_SetYears, METH_VARARGS | METH_KEYWORDS },
28919 { (char *)"DateSpan_SetMonths", (PyCFunction) _wrap_DateSpan_SetMonths, METH_VARARGS | METH_KEYWORDS },
28920 { (char *)"DateSpan_SetWeeks", (PyCFunction) _wrap_DateSpan_SetWeeks, METH_VARARGS | METH_KEYWORDS },
28921 { (char *)"DateSpan_SetDays", (PyCFunction) _wrap_DateSpan_SetDays, METH_VARARGS | METH_KEYWORDS },
28922 { (char *)"DateSpan_GetYears", (PyCFunction) _wrap_DateSpan_GetYears, METH_VARARGS | METH_KEYWORDS },
28923 { (char *)"DateSpan_GetMonths", (PyCFunction) _wrap_DateSpan_GetMonths, METH_VARARGS | METH_KEYWORDS },
28924 { (char *)"DateSpan_GetWeeks", (PyCFunction) _wrap_DateSpan_GetWeeks, METH_VARARGS | METH_KEYWORDS },
28925 { (char *)"DateSpan_GetDays", (PyCFunction) _wrap_DateSpan_GetDays, METH_VARARGS | METH_KEYWORDS },
28926 { (char *)"DateSpan_GetTotalDays", (PyCFunction) _wrap_DateSpan_GetTotalDays, METH_VARARGS | METH_KEYWORDS },
28927 { (char *)"DateSpan_Add", (PyCFunction) _wrap_DateSpan_Add, METH_VARARGS | METH_KEYWORDS },
28928 { (char *)"DateSpan_Subtract", (PyCFunction) _wrap_DateSpan_Subtract, METH_VARARGS | METH_KEYWORDS },
28929 { (char *)"DateSpan_Neg", (PyCFunction) _wrap_DateSpan_Neg, METH_VARARGS | METH_KEYWORDS },
28930 { (char *)"DateSpan_Multiply", (PyCFunction) _wrap_DateSpan_Multiply, METH_VARARGS | METH_KEYWORDS },
28931 { (char *)"DateSpan___iadd__", (PyCFunction) _wrap_DateSpan___iadd__, METH_VARARGS | METH_KEYWORDS },
28932 { (char *)"DateSpan___isub__", (PyCFunction) _wrap_DateSpan___isub__, METH_VARARGS | METH_KEYWORDS },
28933 { (char *)"DateSpan___neg__", (PyCFunction) _wrap_DateSpan___neg__, METH_VARARGS | METH_KEYWORDS },
28934 { (char *)"DateSpan___imul__", (PyCFunction) _wrap_DateSpan___imul__, METH_VARARGS | METH_KEYWORDS },
28935 { (char *)"DateSpan___add__", (PyCFunction) _wrap_DateSpan___add__, METH_VARARGS | METH_KEYWORDS },
28936 { (char *)"DateSpan___sub__", (PyCFunction) _wrap_DateSpan___sub__, METH_VARARGS | METH_KEYWORDS },
28937 { (char *)"DateSpan___mul__", (PyCFunction) _wrap_DateSpan___mul__, METH_VARARGS | METH_KEYWORDS },
28938 { (char *)"DateSpan___rmul__", (PyCFunction) _wrap_DateSpan___rmul__, METH_VARARGS | METH_KEYWORDS },
28939 { (char *)"DateSpan___eq__", (PyCFunction) _wrap_DateSpan___eq__, METH_VARARGS | METH_KEYWORDS },
28940 { (char *)"DateSpan___ne__", (PyCFunction) _wrap_DateSpan___ne__, METH_VARARGS | METH_KEYWORDS },
28941 { (char *)"DateSpan_swigregister", DateSpan_swigregister, METH_VARARGS },
28942 { (char *)"GetLocalTime", (PyCFunction) _wrap_GetLocalTime, METH_VARARGS | METH_KEYWORDS },
28943 { (char *)"GetUTCTime", (PyCFunction) _wrap_GetUTCTime, METH_VARARGS | METH_KEYWORDS },
28944 { (char *)"GetCurrentTime", (PyCFunction) _wrap_GetCurrentTime, METH_VARARGS | METH_KEYWORDS },
28945 { (char *)"GetLocalTimeMillis", (PyCFunction) _wrap_GetLocalTimeMillis, METH_VARARGS | METH_KEYWORDS },
28946 { (char *)"new_DataFormat", (PyCFunction) _wrap_new_DataFormat, METH_VARARGS | METH_KEYWORDS },
28947 { (char *)"new_CustomDataFormat", (PyCFunction) _wrap_new_CustomDataFormat, METH_VARARGS | METH_KEYWORDS },
28948 { (char *)"delete_DataFormat", (PyCFunction) _wrap_delete_DataFormat, METH_VARARGS | METH_KEYWORDS },
28949 { (char *)"DataFormat___eq__", _wrap_DataFormat___eq__, METH_VARARGS },
28950 { (char *)"DataFormat___ne__", _wrap_DataFormat___ne__, METH_VARARGS },
28951 { (char *)"DataFormat_SetType", (PyCFunction) _wrap_DataFormat_SetType, METH_VARARGS | METH_KEYWORDS },
28952 { (char *)"DataFormat_GetType", (PyCFunction) _wrap_DataFormat_GetType, METH_VARARGS | METH_KEYWORDS },
28953 { (char *)"DataFormat_GetId", (PyCFunction) _wrap_DataFormat_GetId, METH_VARARGS | METH_KEYWORDS },
28954 { (char *)"DataFormat_SetId", (PyCFunction) _wrap_DataFormat_SetId, METH_VARARGS | METH_KEYWORDS },
28955 { (char *)"DataFormat_swigregister", DataFormat_swigregister, METH_VARARGS },
28956 { (char *)"delete_DataObject", (PyCFunction) _wrap_delete_DataObject, METH_VARARGS | METH_KEYWORDS },
28957 { (char *)"DataObject_GetPreferredFormat", (PyCFunction) _wrap_DataObject_GetPreferredFormat, METH_VARARGS | METH_KEYWORDS },
28958 { (char *)"DataObject_GetFormatCount", (PyCFunction) _wrap_DataObject_GetFormatCount, METH_VARARGS | METH_KEYWORDS },
28959 { (char *)"DataObject_IsSupported", (PyCFunction) _wrap_DataObject_IsSupported, METH_VARARGS | METH_KEYWORDS },
28960 { (char *)"DataObject_GetDataSize", (PyCFunction) _wrap_DataObject_GetDataSize, METH_VARARGS | METH_KEYWORDS },
28961 { (char *)"DataObject_GetAllFormats", (PyCFunction) _wrap_DataObject_GetAllFormats, METH_VARARGS | METH_KEYWORDS },
28962 { (char *)"DataObject_GetDataHere", (PyCFunction) _wrap_DataObject_GetDataHere, METH_VARARGS | METH_KEYWORDS },
28963 { (char *)"DataObject_SetData", (PyCFunction) _wrap_DataObject_SetData, METH_VARARGS | METH_KEYWORDS },
28964 { (char *)"DataObject_swigregister", DataObject_swigregister, METH_VARARGS },
28965 { (char *)"new_DataObjectSimple", (PyCFunction) _wrap_new_DataObjectSimple, METH_VARARGS | METH_KEYWORDS },
28966 { (char *)"DataObjectSimple_GetFormat", (PyCFunction) _wrap_DataObjectSimple_GetFormat, METH_VARARGS | METH_KEYWORDS },
28967 { (char *)"DataObjectSimple_SetFormat", (PyCFunction) _wrap_DataObjectSimple_SetFormat, METH_VARARGS | METH_KEYWORDS },
28968 { (char *)"DataObjectSimple_GetDataSize", (PyCFunction) _wrap_DataObjectSimple_GetDataSize, METH_VARARGS | METH_KEYWORDS },
28969 { (char *)"DataObjectSimple_GetDataHere", (PyCFunction) _wrap_DataObjectSimple_GetDataHere, METH_VARARGS | METH_KEYWORDS },
28970 { (char *)"DataObjectSimple_SetData", (PyCFunction) _wrap_DataObjectSimple_SetData, METH_VARARGS | METH_KEYWORDS },
28971 { (char *)"DataObjectSimple_swigregister", DataObjectSimple_swigregister, METH_VARARGS },
28972 { (char *)"new_PyDataObjectSimple", (PyCFunction) _wrap_new_PyDataObjectSimple, METH_VARARGS | METH_KEYWORDS },
28973 { (char *)"PyDataObjectSimple__setCallbackInfo", (PyCFunction) _wrap_PyDataObjectSimple__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
28974 { (char *)"PyDataObjectSimple_swigregister", PyDataObjectSimple_swigregister, METH_VARARGS },
28975 { (char *)"new_DataObjectComposite", (PyCFunction) _wrap_new_DataObjectComposite, METH_VARARGS | METH_KEYWORDS },
28976 { (char *)"DataObjectComposite_Add", (PyCFunction) _wrap_DataObjectComposite_Add, METH_VARARGS | METH_KEYWORDS },
28977 { (char *)"DataObjectComposite_swigregister", DataObjectComposite_swigregister, METH_VARARGS },
28978 { (char *)"new_TextDataObject", (PyCFunction) _wrap_new_TextDataObject, METH_VARARGS | METH_KEYWORDS },
28979 { (char *)"TextDataObject_GetTextLength", (PyCFunction) _wrap_TextDataObject_GetTextLength, METH_VARARGS | METH_KEYWORDS },
28980 { (char *)"TextDataObject_GetText", (PyCFunction) _wrap_TextDataObject_GetText, METH_VARARGS | METH_KEYWORDS },
28981 { (char *)"TextDataObject_SetText", (PyCFunction) _wrap_TextDataObject_SetText, METH_VARARGS | METH_KEYWORDS },
28982 { (char *)"TextDataObject_swigregister", TextDataObject_swigregister, METH_VARARGS },
28983 { (char *)"new_PyTextDataObject", (PyCFunction) _wrap_new_PyTextDataObject, METH_VARARGS | METH_KEYWORDS },
28984 { (char *)"PyTextDataObject__setCallbackInfo", (PyCFunction) _wrap_PyTextDataObject__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
28985 { (char *)"PyTextDataObject_swigregister", PyTextDataObject_swigregister, METH_VARARGS },
28986 { (char *)"new_BitmapDataObject", (PyCFunction) _wrap_new_BitmapDataObject, METH_VARARGS | METH_KEYWORDS },
28987 { (char *)"BitmapDataObject_GetBitmap", (PyCFunction) _wrap_BitmapDataObject_GetBitmap, METH_VARARGS | METH_KEYWORDS },
28988 { (char *)"BitmapDataObject_SetBitmap", (PyCFunction) _wrap_BitmapDataObject_SetBitmap, METH_VARARGS | METH_KEYWORDS },
28989 { (char *)"BitmapDataObject_swigregister", BitmapDataObject_swigregister, METH_VARARGS },
28990 { (char *)"new_PyBitmapDataObject", (PyCFunction) _wrap_new_PyBitmapDataObject, METH_VARARGS | METH_KEYWORDS },
28991 { (char *)"PyBitmapDataObject__setCallbackInfo", (PyCFunction) _wrap_PyBitmapDataObject__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
28992 { (char *)"PyBitmapDataObject_swigregister", PyBitmapDataObject_swigregister, METH_VARARGS },
28993 { (char *)"new_FileDataObject", (PyCFunction) _wrap_new_FileDataObject, METH_VARARGS | METH_KEYWORDS },
28994 { (char *)"FileDataObject_GetFilenames", (PyCFunction) _wrap_FileDataObject_GetFilenames, METH_VARARGS | METH_KEYWORDS },
28995 { (char *)"FileDataObject_AddFile", (PyCFunction) _wrap_FileDataObject_AddFile, METH_VARARGS | METH_KEYWORDS },
28996 { (char *)"FileDataObject_swigregister", FileDataObject_swigregister, METH_VARARGS },
28997 { (char *)"new_CustomDataObject", (PyCFunction) _wrap_new_CustomDataObject, METH_VARARGS | METH_KEYWORDS },
28998 { (char *)"CustomDataObject_SetData", (PyCFunction) _wrap_CustomDataObject_SetData, METH_VARARGS | METH_KEYWORDS },
28999 { (char *)"CustomDataObject_GetSize", (PyCFunction) _wrap_CustomDataObject_GetSize, METH_VARARGS | METH_KEYWORDS },
29000 { (char *)"CustomDataObject_GetData", (PyCFunction) _wrap_CustomDataObject_GetData, METH_VARARGS | METH_KEYWORDS },
29001 { (char *)"CustomDataObject_swigregister", CustomDataObject_swigregister, METH_VARARGS },
29002 { (char *)"new_URLDataObject", (PyCFunction) _wrap_new_URLDataObject, METH_VARARGS | METH_KEYWORDS },
29003 { (char *)"URLDataObject_GetURL", (PyCFunction) _wrap_URLDataObject_GetURL, METH_VARARGS | METH_KEYWORDS },
29004 { (char *)"URLDataObject_SetURL", (PyCFunction) _wrap_URLDataObject_SetURL, METH_VARARGS | METH_KEYWORDS },
29005 { (char *)"URLDataObject_swigregister", URLDataObject_swigregister, METH_VARARGS },
29006 { (char *)"new_MetafileDataObject", (PyCFunction) _wrap_new_MetafileDataObject, METH_VARARGS | METH_KEYWORDS },
29007 { (char *)"MetafileDataObject_SetMetafile", (PyCFunction) _wrap_MetafileDataObject_SetMetafile, METH_VARARGS | METH_KEYWORDS },
29008 { (char *)"MetafileDataObject_GetMetafile", (PyCFunction) _wrap_MetafileDataObject_GetMetafile, METH_VARARGS | METH_KEYWORDS },
29009 { (char *)"MetafileDataObject_swigregister", MetafileDataObject_swigregister, METH_VARARGS },
29010 { (char *)"IsDragResultOk", (PyCFunction) _wrap_IsDragResultOk, METH_VARARGS | METH_KEYWORDS },
29011 { (char *)"new_DropSource", (PyCFunction) _wrap_new_DropSource, METH_VARARGS | METH_KEYWORDS },
29012 { (char *)"DropSource__setCallbackInfo", (PyCFunction) _wrap_DropSource__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
29013 { (char *)"delete_DropSource", (PyCFunction) _wrap_delete_DropSource, METH_VARARGS | METH_KEYWORDS },
29014 { (char *)"DropSource_SetData", (PyCFunction) _wrap_DropSource_SetData, METH_VARARGS | METH_KEYWORDS },
29015 { (char *)"DropSource_GetDataObject", (PyCFunction) _wrap_DropSource_GetDataObject, METH_VARARGS | METH_KEYWORDS },
29016 { (char *)"DropSource_SetCursor", (PyCFunction) _wrap_DropSource_SetCursor, METH_VARARGS | METH_KEYWORDS },
29017 { (char *)"DropSource_DoDragDrop", (PyCFunction) _wrap_DropSource_DoDragDrop, METH_VARARGS | METH_KEYWORDS },
29018 { (char *)"DropSource_base_GiveFeedback", (PyCFunction) _wrap_DropSource_base_GiveFeedback, METH_VARARGS | METH_KEYWORDS },
29019 { (char *)"DropSource_swigregister", DropSource_swigregister, METH_VARARGS },
29020 { (char *)"new_DropTarget", (PyCFunction) _wrap_new_DropTarget, METH_VARARGS | METH_KEYWORDS },
29021 { (char *)"DropTarget__setCallbackInfo", (PyCFunction) _wrap_DropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
29022 { (char *)"delete_DropTarget", (PyCFunction) _wrap_delete_DropTarget, METH_VARARGS | METH_KEYWORDS },
29023 { (char *)"DropTarget_GetDataObject", (PyCFunction) _wrap_DropTarget_GetDataObject, METH_VARARGS | METH_KEYWORDS },
29024 { (char *)"DropTarget_SetDataObject", (PyCFunction) _wrap_DropTarget_SetDataObject, METH_VARARGS | METH_KEYWORDS },
29025 { (char *)"DropTarget_base_OnEnter", (PyCFunction) _wrap_DropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS },
29026 { (char *)"DropTarget_base_OnDragOver", (PyCFunction) _wrap_DropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS },
29027 { (char *)"DropTarget_base_OnLeave", (PyCFunction) _wrap_DropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS },
29028 { (char *)"DropTarget_base_OnDrop", (PyCFunction) _wrap_DropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS },
29029 { (char *)"DropTarget_GetData", (PyCFunction) _wrap_DropTarget_GetData, METH_VARARGS | METH_KEYWORDS },
29030 { (char *)"DropTarget_swigregister", DropTarget_swigregister, METH_VARARGS },
29031 { (char *)"new_TextDropTarget", (PyCFunction) _wrap_new_TextDropTarget, METH_VARARGS | METH_KEYWORDS },
29032 { (char *)"TextDropTarget__setCallbackInfo", (PyCFunction) _wrap_TextDropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
29033 { (char *)"TextDropTarget_base_OnEnter", (PyCFunction) _wrap_TextDropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS },
29034 { (char *)"TextDropTarget_base_OnDragOver", (PyCFunction) _wrap_TextDropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS },
29035 { (char *)"TextDropTarget_base_OnLeave", (PyCFunction) _wrap_TextDropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS },
29036 { (char *)"TextDropTarget_base_OnDrop", (PyCFunction) _wrap_TextDropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS },
29037 { (char *)"TextDropTarget_base_OnData", (PyCFunction) _wrap_TextDropTarget_base_OnData, METH_VARARGS | METH_KEYWORDS },
29038 { (char *)"TextDropTarget_swigregister", TextDropTarget_swigregister, METH_VARARGS },
29039 { (char *)"new_FileDropTarget", (PyCFunction) _wrap_new_FileDropTarget, METH_VARARGS | METH_KEYWORDS },
29040 { (char *)"FileDropTarget__setCallbackInfo", (PyCFunction) _wrap_FileDropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
29041 { (char *)"FileDropTarget_base_OnEnter", (PyCFunction) _wrap_FileDropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS },
29042 { (char *)"FileDropTarget_base_OnDragOver", (PyCFunction) _wrap_FileDropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS },
29043 { (char *)"FileDropTarget_base_OnLeave", (PyCFunction) _wrap_FileDropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS },
29044 { (char *)"FileDropTarget_base_OnDrop", (PyCFunction) _wrap_FileDropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS },
29045 { (char *)"FileDropTarget_base_OnData", (PyCFunction) _wrap_FileDropTarget_base_OnData, METH_VARARGS | METH_KEYWORDS },
29046 { (char *)"FileDropTarget_swigregister", FileDropTarget_swigregister, METH_VARARGS },
29047 { (char *)"new_Clipboard", (PyCFunction) _wrap_new_Clipboard, METH_VARARGS | METH_KEYWORDS },
29048 { (char *)"delete_Clipboard", (PyCFunction) _wrap_delete_Clipboard, METH_VARARGS | METH_KEYWORDS },
29049 { (char *)"Clipboard_Open", (PyCFunction) _wrap_Clipboard_Open, METH_VARARGS | METH_KEYWORDS },
29050 { (char *)"Clipboard_Close", (PyCFunction) _wrap_Clipboard_Close, METH_VARARGS | METH_KEYWORDS },
29051 { (char *)"Clipboard_IsOpened", (PyCFunction) _wrap_Clipboard_IsOpened, METH_VARARGS | METH_KEYWORDS },
29052 { (char *)"Clipboard_AddData", (PyCFunction) _wrap_Clipboard_AddData, METH_VARARGS | METH_KEYWORDS },
29053 { (char *)"Clipboard_SetData", (PyCFunction) _wrap_Clipboard_SetData, METH_VARARGS | METH_KEYWORDS },
29054 { (char *)"Clipboard_IsSupported", (PyCFunction) _wrap_Clipboard_IsSupported, METH_VARARGS | METH_KEYWORDS },
29055 { (char *)"Clipboard_GetData", (PyCFunction) _wrap_Clipboard_GetData, METH_VARARGS | METH_KEYWORDS },
29056 { (char *)"Clipboard_Clear", (PyCFunction) _wrap_Clipboard_Clear, METH_VARARGS | METH_KEYWORDS },
29057 { (char *)"Clipboard_Flush", (PyCFunction) _wrap_Clipboard_Flush, METH_VARARGS | METH_KEYWORDS },
29058 { (char *)"Clipboard_UsePrimarySelection", (PyCFunction) _wrap_Clipboard_UsePrimarySelection, METH_VARARGS | METH_KEYWORDS },
29059 { (char *)"Clipboard_Get", (PyCFunction) _wrap_Clipboard_Get, METH_VARARGS | METH_KEYWORDS },
29060 { (char *)"Clipboard_swigregister", Clipboard_swigregister, METH_VARARGS },
29061 { (char *)"new_ClipboardLocker", (PyCFunction) _wrap_new_ClipboardLocker, METH_VARARGS | METH_KEYWORDS },
29062 { (char *)"delete_ClipboardLocker", (PyCFunction) _wrap_delete_ClipboardLocker, METH_VARARGS | METH_KEYWORDS },
29063 { (char *)"ClipboardLocker___nonzero__", (PyCFunction) _wrap_ClipboardLocker___nonzero__, METH_VARARGS | METH_KEYWORDS },
29064 { (char *)"ClipboardLocker_swigregister", ClipboardLocker_swigregister, METH_VARARGS },
29065 { (char *)"new_VideoMode", (PyCFunction) _wrap_new_VideoMode, METH_VARARGS | METH_KEYWORDS },
29066 { (char *)"delete_VideoMode", (PyCFunction) _wrap_delete_VideoMode, METH_VARARGS | METH_KEYWORDS },
29067 { (char *)"VideoMode_Matches", (PyCFunction) _wrap_VideoMode_Matches, METH_VARARGS | METH_KEYWORDS },
29068 { (char *)"VideoMode_GetWidth", (PyCFunction) _wrap_VideoMode_GetWidth, METH_VARARGS | METH_KEYWORDS },
29069 { (char *)"VideoMode_GetHeight", (PyCFunction) _wrap_VideoMode_GetHeight, METH_VARARGS | METH_KEYWORDS },
29070 { (char *)"VideoMode_GetDepth", (PyCFunction) _wrap_VideoMode_GetDepth, METH_VARARGS | METH_KEYWORDS },
29071 { (char *)"VideoMode_IsOk", (PyCFunction) _wrap_VideoMode_IsOk, METH_VARARGS | METH_KEYWORDS },
29072 { (char *)"VideoMode___eq__", (PyCFunction) _wrap_VideoMode___eq__, METH_VARARGS | METH_KEYWORDS },
29073 { (char *)"VideoMode___ne__", (PyCFunction) _wrap_VideoMode___ne__, METH_VARARGS | METH_KEYWORDS },
29074 { (char *)"VideoMode_w_set", (PyCFunction) _wrap_VideoMode_w_set, METH_VARARGS | METH_KEYWORDS },
29075 { (char *)"VideoMode_w_get", (PyCFunction) _wrap_VideoMode_w_get, METH_VARARGS | METH_KEYWORDS },
29076 { (char *)"VideoMode_h_set", (PyCFunction) _wrap_VideoMode_h_set, METH_VARARGS | METH_KEYWORDS },
29077 { (char *)"VideoMode_h_get", (PyCFunction) _wrap_VideoMode_h_get, METH_VARARGS | METH_KEYWORDS },
29078 { (char *)"VideoMode_bpp_set", (PyCFunction) _wrap_VideoMode_bpp_set, METH_VARARGS | METH_KEYWORDS },
29079 { (char *)"VideoMode_bpp_get", (PyCFunction) _wrap_VideoMode_bpp_get, METH_VARARGS | METH_KEYWORDS },
29080 { (char *)"VideoMode_refresh_set", (PyCFunction) _wrap_VideoMode_refresh_set, METH_VARARGS | METH_KEYWORDS },
29081 { (char *)"VideoMode_refresh_get", (PyCFunction) _wrap_VideoMode_refresh_get, METH_VARARGS | METH_KEYWORDS },
29082 { (char *)"VideoMode_swigregister", VideoMode_swigregister, METH_VARARGS },
29083 { (char *)"new_Display", (PyCFunction) _wrap_new_Display, METH_VARARGS | METH_KEYWORDS },
29084 { (char *)"delete_Display", (PyCFunction) _wrap_delete_Display, METH_VARARGS | METH_KEYWORDS },
29085 { (char *)"Display_GetCount", (PyCFunction) _wrap_Display_GetCount, METH_VARARGS | METH_KEYWORDS },
29086 { (char *)"Display_GetFromPoint", (PyCFunction) _wrap_Display_GetFromPoint, METH_VARARGS | METH_KEYWORDS },
29087 { (char *)"Display_GetFromWindow", (PyCFunction) _wrap_Display_GetFromWindow, METH_VARARGS | METH_KEYWORDS },
29088 { (char *)"Display_IsOk", (PyCFunction) _wrap_Display_IsOk, METH_VARARGS | METH_KEYWORDS },
29089 { (char *)"Display_GetGeometry", (PyCFunction) _wrap_Display_GetGeometry, METH_VARARGS | METH_KEYWORDS },
29090 { (char *)"Display_GetName", (PyCFunction) _wrap_Display_GetName, METH_VARARGS | METH_KEYWORDS },
29091 { (char *)"Display_IsPrimary", (PyCFunction) _wrap_Display_IsPrimary, METH_VARARGS | METH_KEYWORDS },
29092 { (char *)"Display_GetModes", (PyCFunction) _wrap_Display_GetModes, METH_VARARGS | METH_KEYWORDS },
29093 { (char *)"Display_GetCurrentMode", (PyCFunction) _wrap_Display_GetCurrentMode, METH_VARARGS | METH_KEYWORDS },
29094 { (char *)"Display_ChangeMode", (PyCFunction) _wrap_Display_ChangeMode, METH_VARARGS | METH_KEYWORDS },
29095 { (char *)"Display_ResetMode", (PyCFunction) _wrap_Display_ResetMode, METH_VARARGS | METH_KEYWORDS },
29096 { (char *)"Display_swigregister", Display_swigregister, METH_VARARGS },
29097 { NULL, NULL }
29098 };
29099
29100
29101 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
29102
29103 static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) {
29104 return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x));
29105 }
29106 static void *_p_wxMenuEventTo_p_wxEvent(void *x) {
29107 return (void *)((wxEvent *) ((wxMenuEvent *) x));
29108 }
29109 static void *_p_wxCloseEventTo_p_wxEvent(void *x) {
29110 return (void *)((wxEvent *) ((wxCloseEvent *) x));
29111 }
29112 static void *_p_wxMouseEventTo_p_wxEvent(void *x) {
29113 return (void *)((wxEvent *) ((wxMouseEvent *) x));
29114 }
29115 static void *_p_wxEraseEventTo_p_wxEvent(void *x) {
29116 return (void *)((wxEvent *) ((wxEraseEvent *) x));
29117 }
29118 static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) {
29119 return (void *)((wxEvent *) ((wxSetCursorEvent *) x));
29120 }
29121 static void *_p_wxTimerEventTo_p_wxEvent(void *x) {
29122 return (void *)((wxEvent *) ((wxTimerEvent *) x));
29123 }
29124 static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) {
29125 return (void *)((wxEvent *) ((wxInitDialogEvent *) x));
29126 }
29127 static void *_p_wxScrollEventTo_p_wxEvent(void *x) {
29128 return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x));
29129 }
29130 static void *_p_wxPyEventTo_p_wxEvent(void *x) {
29131 return (void *)((wxEvent *) ((wxPyEvent *) x));
29132 }
29133 static void *_p_wxNotifyEventTo_p_wxEvent(void *x) {
29134 return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x));
29135 }
29136 static void *_p_wxJoystickEventTo_p_wxEvent(void *x) {
29137 return (void *)((wxEvent *) ((wxJoystickEvent *) x));
29138 }
29139 static void *_p_wxIdleEventTo_p_wxEvent(void *x) {
29140 return (void *)((wxEvent *) ((wxIdleEvent *) x));
29141 }
29142 static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) {
29143 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x));
29144 }
29145 static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) {
29146 return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x));
29147 }
29148 static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) {
29149 return (void *)((wxEvent *) ((wxMaximizeEvent *) x));
29150 }
29151 static void *_p_wxIconizeEventTo_p_wxEvent(void *x) {
29152 return (void *)((wxEvent *) ((wxIconizeEvent *) x));
29153 }
29154 static void *_p_wxActivateEventTo_p_wxEvent(void *x) {
29155 return (void *)((wxEvent *) ((wxActivateEvent *) x));
29156 }
29157 static void *_p_wxSizeEventTo_p_wxEvent(void *x) {
29158 return (void *)((wxEvent *) ((wxSizeEvent *) x));
29159 }
29160 static void *_p_wxMoveEventTo_p_wxEvent(void *x) {
29161 return (void *)((wxEvent *) ((wxMoveEvent *) x));
29162 }
29163 static void *_p_wxPaintEventTo_p_wxEvent(void *x) {
29164 return (void *)((wxEvent *) ((wxPaintEvent *) x));
29165 }
29166 static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) {
29167 return (void *)((wxEvent *) ((wxNcPaintEvent *) x));
29168 }
29169 static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) {
29170 return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x));
29171 }
29172 static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) {
29173 return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x));
29174 }
29175 static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) {
29176 return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x));
29177 }
29178 static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) {
29179 return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x));
29180 }
29181 static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) {
29182 return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x));
29183 }
29184 static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) {
29185 return (void *)((wxEvent *) ((wxDropFilesEvent *) x));
29186 }
29187 static void *_p_wxFocusEventTo_p_wxEvent(void *x) {
29188 return (void *)((wxEvent *) ((wxFocusEvent *) x));
29189 }
29190 static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) {
29191 return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x));
29192 }
29193 static void *_p_wxProcessEventTo_p_wxEvent(void *x) {
29194 return (void *)((wxEvent *) ((wxProcessEvent *) x));
29195 }
29196 static void *_p_wxShowEventTo_p_wxEvent(void *x) {
29197 return (void *)((wxEvent *) ((wxShowEvent *) x));
29198 }
29199 static void *_p_wxCommandEventTo_p_wxEvent(void *x) {
29200 return (void *)((wxEvent *) ((wxCommandEvent *) x));
29201 }
29202 static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) {
29203 return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x));
29204 }
29205 static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) {
29206 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x));
29207 }
29208 static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) {
29209 return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x));
29210 }
29211 static void *_p_wxKeyEventTo_p_wxEvent(void *x) {
29212 return (void *)((wxEvent *) ((wxKeyEvent *) x));
29213 }
29214 static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) {
29215 return (void *)((wxEvent *) ((wxScrollWinEvent *) x));
29216 }
29217 static void *_p_wxFileConfigTo_p_wxConfigBase(void *x) {
29218 return (void *)((wxConfigBase *) ((wxFileConfig *) x));
29219 }
29220 static void *_p_wxConfigTo_p_wxConfigBase(void *x) {
29221 return (void *)((wxConfigBase *) ((wxConfig *) x));
29222 }
29223 static void *_p_wxPyBitmapDataObjectTo_p_wxBitmapDataObject(void *x) {
29224 return (void *)((wxBitmapDataObject *) ((wxPyBitmapDataObject *) x));
29225 }
29226 static void *_p_wxPyTextDataObjectTo_p_wxTextDataObject(void *x) {
29227 return (void *)((wxTextDataObject *) ((wxPyTextDataObject *) x));
29228 }
29229 static void *_p_wxDataObjectSimpleTo_p_wxDataObject(void *x) {
29230 return (void *)((wxDataObject *) ((wxDataObjectSimple *) x));
29231 }
29232 static void *_p_wxPyDataObjectSimpleTo_p_wxDataObject(void *x) {
29233 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxPyDataObjectSimple *) x));
29234 }
29235 static void *_p_wxDataObjectCompositeTo_p_wxDataObject(void *x) {
29236 return (void *)((wxDataObject *) ((wxDataObjectComposite *) x));
29237 }
29238 static void *_p_wxTextDataObjectTo_p_wxDataObject(void *x) {
29239 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxTextDataObject *) x));
29240 }
29241 static void *_p_wxPyTextDataObjectTo_p_wxDataObject(void *x) {
29242 return (void *)((wxDataObject *) (wxDataObjectSimple *)(wxTextDataObject *) ((wxPyTextDataObject *) x));
29243 }
29244 static void *_p_wxBitmapDataObjectTo_p_wxDataObject(void *x) {
29245 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxBitmapDataObject *) x));
29246 }
29247 static void *_p_wxPyBitmapDataObjectTo_p_wxDataObject(void *x) {
29248 return (void *)((wxDataObject *) (wxDataObjectSimple *)(wxBitmapDataObject *) ((wxPyBitmapDataObject *) x));
29249 }
29250 static void *_p_wxFileDataObjectTo_p_wxDataObject(void *x) {
29251 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxFileDataObject *) x));
29252 }
29253 static void *_p_wxCustomDataObjectTo_p_wxDataObject(void *x) {
29254 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxCustomDataObject *) x));
29255 }
29256 static void *_p_wxURLDataObjectTo_p_wxDataObject(void *x) {
29257 return (void *)((wxDataObject *) (wxDataObjectComposite *) ((wxURLDataObject *) x));
29258 }
29259 static void *_p_wxMetafileDataObjectTo_p_wxDataObject(void *x) {
29260 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxMetafileDataObject *) x));
29261 }
29262 static void *_p_wxURLDataObjectTo_p_wxDataObjectComposite(void *x) {
29263 return (void *)((wxDataObjectComposite *) ((wxURLDataObject *) x));
29264 }
29265 static void *_p_wxPyDataObjectSimpleTo_p_wxDataObjectSimple(void *x) {
29266 return (void *)((wxDataObjectSimple *) ((wxPyDataObjectSimple *) x));
29267 }
29268 static void *_p_wxTextDataObjectTo_p_wxDataObjectSimple(void *x) {
29269 return (void *)((wxDataObjectSimple *) ((wxTextDataObject *) x));
29270 }
29271 static void *_p_wxPyTextDataObjectTo_p_wxDataObjectSimple(void *x) {
29272 return (void *)((wxDataObjectSimple *) (wxTextDataObject *) ((wxPyTextDataObject *) x));
29273 }
29274 static void *_p_wxBitmapDataObjectTo_p_wxDataObjectSimple(void *x) {
29275 return (void *)((wxDataObjectSimple *) ((wxBitmapDataObject *) x));
29276 }
29277 static void *_p_wxPyBitmapDataObjectTo_p_wxDataObjectSimple(void *x) {
29278 return (void *)((wxDataObjectSimple *) (wxBitmapDataObject *) ((wxPyBitmapDataObject *) x));
29279 }
29280 static void *_p_wxFileDataObjectTo_p_wxDataObjectSimple(void *x) {
29281 return (void *)((wxDataObjectSimple *) ((wxFileDataObject *) x));
29282 }
29283 static void *_p_wxCustomDataObjectTo_p_wxDataObjectSimple(void *x) {
29284 return (void *)((wxDataObjectSimple *) ((wxCustomDataObject *) x));
29285 }
29286 static void *_p_wxMetafileDataObjectTo_p_wxDataObjectSimple(void *x) {
29287 return (void *)((wxDataObjectSimple *) ((wxMetafileDataObject *) x));
29288 }
29289 static void *_p_wxControlTo_p_wxEvtHandler(void *x) {
29290 return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x));
29291 }
29292 static void *_p_wxWindowTo_p_wxEvtHandler(void *x) {
29293 return (void *)((wxEvtHandler *) ((wxWindow *) x));
29294 }
29295 static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) {
29296 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x));
29297 }
29298 static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) {
29299 return (void *)((wxEvtHandler *) ((wxPyApp *) x));
29300 }
29301 static void *_p_wxPyTimerTo_p_wxEvtHandler(void *x) {
29302 return (void *)((wxEvtHandler *) ((wxPyTimer *) x));
29303 }
29304 static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) {
29305 return (void *)((wxEvtHandler *) ((wxValidator *) x));
29306 }
29307 static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) {
29308 return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x));
29309 }
29310 static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) {
29311 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x));
29312 }
29313 static void *_p_wxMenuTo_p_wxEvtHandler(void *x) {
29314 return (void *)((wxEvtHandler *) ((wxMenu *) x));
29315 }
29316 static void *_p_wxPyProcessTo_p_wxEvtHandler(void *x) {
29317 return (void *)((wxEvtHandler *) ((wxPyProcess *) x));
29318 }
29319 static void *_p_wxPyTipProviderTo_p_wxTipProvider(void *x) {
29320 return (void *)((wxTipProvider *) ((wxPyTipProvider *) x));
29321 }
29322 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
29323 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
29324 }
29325 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
29326 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
29327 }
29328 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
29329 return (void *)((wxObject *) ((wxSizerItem *) x));
29330 }
29331 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
29332 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
29333 }
29334 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
29335 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
29336 }
29337 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
29338 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
29339 }
29340 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
29341 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
29342 }
29343 static void *_p_wxSizerTo_p_wxObject(void *x) {
29344 return (void *)((wxObject *) ((wxSizer *) x));
29345 }
29346 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
29347 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
29348 }
29349 static void *_p_wxFileHistoryTo_p_wxObject(void *x) {
29350 return (void *)((wxObject *) ((wxFileHistory *) x));
29351 }
29352 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
29353 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
29354 }
29355 static void *_p_wxEventTo_p_wxObject(void *x) {
29356 return (void *)((wxObject *) ((wxEvent *) x));
29357 }
29358 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
29359 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
29360 }
29361 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
29362 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
29363 }
29364 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
29365 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
29366 }
29367 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
29368 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
29369 }
29370 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
29371 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
29372 }
29373 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
29374 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
29375 }
29376 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
29377 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
29378 }
29379 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
29380 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
29381 }
29382 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
29383 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
29384 }
29385 static void *_p_wxControlTo_p_wxObject(void *x) {
29386 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
29387 }
29388 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
29389 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
29390 }
29391 static void *_p_wxTimerEventTo_p_wxObject(void *x) {
29392 return (void *)((wxObject *) (wxEvent *) ((wxTimerEvent *) x));
29393 }
29394 static void *_p_wxFSFileTo_p_wxObject(void *x) {
29395 return (void *)((wxObject *) ((wxFSFile *) x));
29396 }
29397 static void *_p_wxClipboardTo_p_wxObject(void *x) {
29398 return (void *)((wxObject *) ((wxClipboard *) x));
29399 }
29400 static void *_p_wxPySizerTo_p_wxObject(void *x) {
29401 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
29402 }
29403 static void *_p_wxPyEventTo_p_wxObject(void *x) {
29404 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
29405 }
29406 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
29407 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
29408 }
29409 static void *_p_wxShowEventTo_p_wxObject(void *x) {
29410 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
29411 }
29412 static void *_p_wxToolTipTo_p_wxObject(void *x) {
29413 return (void *)((wxObject *) ((wxToolTip *) x));
29414 }
29415 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
29416 return (void *)((wxObject *) ((wxMenuItem *) x));
29417 }
29418 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
29419 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
29420 }
29421 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
29422 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
29423 }
29424 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
29425 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
29426 }
29427 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
29428 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
29429 }
29430 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
29431 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
29432 }
29433 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
29434 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
29435 }
29436 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
29437 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
29438 }
29439 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
29440 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
29441 }
29442 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
29443 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
29444 }
29445 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
29446 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
29447 }
29448 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
29449 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
29450 }
29451 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
29452 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
29453 }
29454 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
29455 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
29456 }
29457 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
29458 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
29459 }
29460 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
29461 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
29462 }
29463 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
29464 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
29465 }
29466 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
29467 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
29468 }
29469 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
29470 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
29471 }
29472 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
29473 return (void *)((wxObject *) ((wxImageHandler *) x));
29474 }
29475 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
29476 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
29477 }
29478 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
29479 return (void *)((wxObject *) ((wxEvtHandler *) x));
29480 }
29481 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
29482 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
29483 }
29484 static void *_p_wxImageTo_p_wxObject(void *x) {
29485 return (void *)((wxObject *) ((wxImage *) x));
29486 }
29487 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
29488 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
29489 }
29490 static void *_p_wxSystemOptionsTo_p_wxObject(void *x) {
29491 return (void *)((wxObject *) ((wxSystemOptions *) x));
29492 }
29493 static void *_p_wxJoystickEventTo_p_wxObject(void *x) {
29494 return (void *)((wxObject *) (wxEvent *) ((wxJoystickEvent *) x));
29495 }
29496 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
29497 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
29498 }
29499 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
29500 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
29501 }
29502 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
29503 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
29504 }
29505 static void *_p_wxWindowTo_p_wxObject(void *x) {
29506 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
29507 }
29508 static void *_p_wxMenuTo_p_wxObject(void *x) {
29509 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
29510 }
29511 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
29512 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
29513 }
29514 static void *_p_wxPyProcessTo_p_wxObject(void *x) {
29515 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyProcess *) x));
29516 }
29517 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
29518 return (void *)((wxObject *) ((wxFileSystem *) x));
29519 }
29520 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
29521 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
29522 }
29523 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
29524 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
29525 }
29526 static void *_p_wxPyAppTo_p_wxObject(void *x) {
29527 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
29528 }
29529 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
29530 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
29531 }
29532 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
29533 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
29534 }
29535 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
29536 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
29537 }
29538 static void *_p_wxBusyInfoTo_p_wxObject(void *x) {
29539 return (void *)((wxObject *) ((wxBusyInfo *) x));
29540 }
29541 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
29542 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
29543 }
29544 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
29545 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
29546 }
29547 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
29548 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
29549 }
29550 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
29551 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
29552 }
29553 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
29554 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
29555 }
29556 static void *_p_wxProcessEventTo_p_wxObject(void *x) {
29557 return (void *)((wxObject *) (wxEvent *) ((wxProcessEvent *) x));
29558 }
29559 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
29560 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
29561 }
29562 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
29563 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
29564 }
29565 static void *_p_wxValidatorTo_p_wxObject(void *x) {
29566 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
29567 }
29568 static void *_p_wxPyTimerTo_p_wxObject(void *x) {
29569 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyTimer *) x));
29570 }
29571 static void *_p_wxLogStderrTo_p_wxLog(void *x) {
29572 return (void *)((wxLog *) ((wxLogStderr *) x));
29573 }
29574 static void *_p_wxLogTextCtrlTo_p_wxLog(void *x) {
29575 return (void *)((wxLog *) ((wxLogTextCtrl *) x));
29576 }
29577 static void *_p_wxLogWindowTo_p_wxLog(void *x) {
29578 return (void *)((wxLog *) ((wxLogWindow *) x));
29579 }
29580 static void *_p_wxLogChainTo_p_wxLog(void *x) {
29581 return (void *)((wxLog *) ((wxLogChain *) x));
29582 }
29583 static void *_p_wxLogGuiTo_p_wxLog(void *x) {
29584 return (void *)((wxLog *) ((wxLogGui *) x));
29585 }
29586 static void *_p_wxPyLogTo_p_wxLog(void *x) {
29587 return (void *)((wxLog *) ((wxPyLog *) x));
29588 }
29589 static void *_p_wxControlTo_p_wxWindow(void *x) {
29590 return (void *)((wxWindow *) ((wxControl *) x));
29591 }
29592 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
29593 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
29594 }
29595 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
29596 return (void *)((wxWindow *) ((wxMenuBar *) x));
29597 }
29598 static void *_p_wxPyTextDropTargetTo_p_wxPyDropTarget(void *x) {
29599 return (void *)((wxPyDropTarget *) ((wxPyTextDropTarget *) x));
29600 }
29601 static void *_p_wxPyFileDropTargetTo_p_wxPyDropTarget(void *x) {
29602 return (void *)((wxPyDropTarget *) ((wxPyFileDropTarget *) x));
29603 }
29604 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}};
29605 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}};
29606 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}};
29607 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}};
29608 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}};
29609 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}};
29610 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}};
29611 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}};
29612 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}};
29613 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}};
29614 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}};
29615 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}};
29616 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}};
29617 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}};
29618 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}};
29619 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}};
29620 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}};
29621 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}};
29622 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}};
29623 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}};
29624 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}};
29625 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}};
29626 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}};
29627 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}};
29628 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}};
29629 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}};
29630 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}};
29631 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}};
29632 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}};
29633 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}};
29634 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}};
29635 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}};
29636 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}};
29637 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}};
29638 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}};
29639 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}};
29640 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}};
29641 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}};
29642 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}};
29643 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}};
29644 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}};
29645 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}};
29646 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}};
29647 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}};
29648 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}};
29649 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}};
29650 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}};
29651 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}};
29652 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}};
29653 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}};
29654 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}};
29655 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}};
29656 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}};
29657 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}};
29658 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}};
29659 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}};
29660 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}};
29661 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}};
29662 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}};
29663 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}};
29664 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}};
29665 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}};
29666 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}};
29667 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}};
29668 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}};
29669 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}};
29670 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}};
29671 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}};
29672 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}};
29673 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}};
29674 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}};
29675 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}};
29676 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}};
29677 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}};
29678 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}};
29679 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}};
29680 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}};
29681 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}};
29682 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}};
29683 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}};
29684 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}};
29685 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}};
29686 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}};
29687 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}};
29688 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}};
29689 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}};
29690
29691 static swig_type_info *swig_types_initial[] = {
29692 _swigt__p_wxLogChain,
29693 _swigt__p_wxMutexGuiLocker,
29694 _swigt__p_wxMetafile,
29695 _swigt__p_wxFileHistory,
29696 _swigt__p_wxLog,
29697 _swigt__p_wxDateTime__TimeZone,
29698 _swigt__p_wxMenu,
29699 _swigt__p_wxEvent,
29700 _swigt__p_wxConfigBase,
29701 _swigt__p_wxDisplay,
29702 _swigt__p_wxFileType,
29703 _swigt__p_wxLogGui,
29704 _swigt__p_wxFont,
29705 _swigt__p_wxDataFormat,
29706 _swigt__p_wxTimerEvent,
29707 _swigt__p_wxCaret,
29708 _swigt__p_int,
29709 _swigt__p_wxSize,
29710 _swigt__p_wxClipboard,
29711 _swigt__p_wxStopWatch,
29712 _swigt__p_wxDC,
29713 _swigt__p_wxClipboardLocker,
29714 _swigt__p_wxIcon,
29715 _swigt__p_wxLogStderr,
29716 _swigt__p_wxLogTextCtrl,
29717 _swigt__p_wxTextCtrl,
29718 _swigt__p_wxBusyCursor,
29719 _swigt__p_wxPyBitmapDataObject,
29720 _swigt__p_wxPyTextDataObject,
29721 _swigt__p_wxBitmapDataObject,
29722 _swigt__p_wxTextDataObject,
29723 _swigt__p_wxDataObject,
29724 _swigt__p_wxFileDataObject,
29725 _swigt__p_wxCustomDataObject,
29726 _swigt__p_wxURLDataObject,
29727 _swigt__p_wxMetafileDataObject,
29728 _swigt__p_wxSound,
29729 _swigt__p_wxTimerRunner,
29730 _swigt__p_wxLogWindow,
29731 _swigt__p_wxTimeSpan,
29732 _swigt__p_wxArrayString,
29733 _swigt__p_wxWindowDisabler,
29734 _swigt__p_wxToolTip,
29735 _swigt__p_wxDataObjectComposite,
29736 _swigt__p_wxFileConfig,
29737 _swigt__p_wxSystemSettings,
29738 _swigt__p_wxVideoMode,
29739 _swigt__p_wxPyDataObjectSimple,
29740 _swigt__p_wxDataObjectSimple,
29741 _swigt__p_wxEvtHandler,
29742 _swigt__p_wxRect,
29743 _swigt__p_char,
29744 _swigt__p_wxSingleInstanceChecker,
29745 _swigt__p_wxFileTypeInfo,
29746 _swigt__p_wxFrame,
29747 _swigt__p_wxTimer,
29748 _swigt__p_wxMimeTypesManager,
29749 _swigt__p_wxPyArtProvider,
29750 _swigt__p_wxPyTipProvider,
29751 _swigt__p_wxTipProvider,
29752 _swigt__p_wxJoystick,
29753 _swigt__p_wxSystemOptions,
29754 _swigt__p_wxPoint,
29755 _swigt__p_wxJoystickEvent,
29756 _swigt__p_wxCursor,
29757 _swigt__p_wxObject,
29758 _swigt__p_wxOutputStream,
29759 _swigt__p_wxDateTime,
29760 _swigt__p_wxPyDropSource,
29761 _swigt__p_wxWindow,
29762 _swigt__p_wxString,
29763 _swigt__p_wxPyProcess,
29764 _swigt__p_wxBitmap,
29765 _swigt__p_wxConfig,
29766 _swigt__p_wxChar,
29767 _swigt__p_wxBusyInfo,
29768 _swigt__p_wxPyDropTarget,
29769 _swigt__p_wxPyTextDropTarget,
29770 _swigt__p_wxPyFileDropTarget,
29771 _swigt__p_wxProcessEvent,
29772 _swigt__p_wxPyLog,
29773 _swigt__p_wxLogNull,
29774 _swigt__p_wxColour,
29775 _swigt__p_wxConfigPathChanger,
29776 _swigt__p_wxPyTimer,
29777 _swigt__p_wxDateSpan,
29778 0
29779 };
29780
29781
29782 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
29783
29784 static swig_const_info swig_const_table[] = {
29785 { SWIG_PY_POINTER, (char*)"TRACE_MemAlloc", 0, 0, (void *)"memalloc", &SWIGTYPE_p_char},
29786 { SWIG_PY_POINTER, (char*)"TRACE_Messages", 0, 0, (void *)"messages", &SWIGTYPE_p_char},
29787 { SWIG_PY_POINTER, (char*)"TRACE_ResAlloc", 0, 0, (void *)"resalloc", &SWIGTYPE_p_char},
29788 { SWIG_PY_POINTER, (char*)"TRACE_RefCount", 0, 0, (void *)"refcount", &SWIGTYPE_p_char},
29789 { SWIG_PY_POINTER, (char*)"TRACE_OleCalls", 0, 0, (void *)"ole", &SWIGTYPE_p_char},
29790 {0}};
29791
29792 #ifdef __cplusplus
29793 }
29794 #endif
29795
29796 #ifdef __cplusplus
29797 extern "C"
29798 #endif
29799 SWIGEXPORT(void) SWIG_init(void) {
29800 static PyObject *SWIG_globals = 0;
29801 static int typeinit = 0;
29802 PyObject *m, *d;
29803 int i;
29804 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
29805 m = Py_InitModule((char *) SWIG_name, SwigMethods);
29806 d = PyModule_GetDict(m);
29807
29808 if (!typeinit) {
29809 for (i = 0; swig_types_initial[i]; i++) {
29810 swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
29811 }
29812 typeinit = 1;
29813 }
29814 SWIG_InstallConstants(d,swig_const_table);
29815
29816 PyDict_SetItemString(d,"SYS_OEM_FIXED_FONT", SWIG_FromInt((int)wxSYS_OEM_FIXED_FONT));
29817 PyDict_SetItemString(d,"SYS_ANSI_FIXED_FONT", SWIG_FromInt((int)wxSYS_ANSI_FIXED_FONT));
29818 PyDict_SetItemString(d,"SYS_ANSI_VAR_FONT", SWIG_FromInt((int)wxSYS_ANSI_VAR_FONT));
29819 PyDict_SetItemString(d,"SYS_SYSTEM_FONT", SWIG_FromInt((int)wxSYS_SYSTEM_FONT));
29820 PyDict_SetItemString(d,"SYS_DEVICE_DEFAULT_FONT", SWIG_FromInt((int)wxSYS_DEVICE_DEFAULT_FONT));
29821 PyDict_SetItemString(d,"SYS_DEFAULT_PALETTE", SWIG_FromInt((int)wxSYS_DEFAULT_PALETTE));
29822 PyDict_SetItemString(d,"SYS_SYSTEM_FIXED_FONT", SWIG_FromInt((int)wxSYS_SYSTEM_FIXED_FONT));
29823 PyDict_SetItemString(d,"SYS_DEFAULT_GUI_FONT", SWIG_FromInt((int)wxSYS_DEFAULT_GUI_FONT));
29824 PyDict_SetItemString(d,"SYS_ICONTITLE_FONT", SWIG_FromInt((int)wxSYS_ICONTITLE_FONT));
29825 PyDict_SetItemString(d,"SYS_COLOUR_SCROLLBAR", SWIG_FromInt((int)wxSYS_COLOUR_SCROLLBAR));
29826 PyDict_SetItemString(d,"SYS_COLOUR_BACKGROUND", SWIG_FromInt((int)wxSYS_COLOUR_BACKGROUND));
29827 PyDict_SetItemString(d,"SYS_COLOUR_DESKTOP", SWIG_FromInt((int)wxSYS_COLOUR_DESKTOP));
29828 PyDict_SetItemString(d,"SYS_COLOUR_ACTIVECAPTION", SWIG_FromInt((int)wxSYS_COLOUR_ACTIVECAPTION));
29829 PyDict_SetItemString(d,"SYS_COLOUR_INACTIVECAPTION", SWIG_FromInt((int)wxSYS_COLOUR_INACTIVECAPTION));
29830 PyDict_SetItemString(d,"SYS_COLOUR_MENU", SWIG_FromInt((int)wxSYS_COLOUR_MENU));
29831 PyDict_SetItemString(d,"SYS_COLOUR_WINDOW", SWIG_FromInt((int)wxSYS_COLOUR_WINDOW));
29832 PyDict_SetItemString(d,"SYS_COLOUR_WINDOWFRAME", SWIG_FromInt((int)wxSYS_COLOUR_WINDOWFRAME));
29833 PyDict_SetItemString(d,"SYS_COLOUR_MENUTEXT", SWIG_FromInt((int)wxSYS_COLOUR_MENUTEXT));
29834 PyDict_SetItemString(d,"SYS_COLOUR_WINDOWTEXT", SWIG_FromInt((int)wxSYS_COLOUR_WINDOWTEXT));
29835 PyDict_SetItemString(d,"SYS_COLOUR_CAPTIONTEXT", SWIG_FromInt((int)wxSYS_COLOUR_CAPTIONTEXT));
29836 PyDict_SetItemString(d,"SYS_COLOUR_ACTIVEBORDER", SWIG_FromInt((int)wxSYS_COLOUR_ACTIVEBORDER));
29837 PyDict_SetItemString(d,"SYS_COLOUR_INACTIVEBORDER", SWIG_FromInt((int)wxSYS_COLOUR_INACTIVEBORDER));
29838 PyDict_SetItemString(d,"SYS_COLOUR_APPWORKSPACE", SWIG_FromInt((int)wxSYS_COLOUR_APPWORKSPACE));
29839 PyDict_SetItemString(d,"SYS_COLOUR_HIGHLIGHT", SWIG_FromInt((int)wxSYS_COLOUR_HIGHLIGHT));
29840 PyDict_SetItemString(d,"SYS_COLOUR_HIGHLIGHTTEXT", SWIG_FromInt((int)wxSYS_COLOUR_HIGHLIGHTTEXT));
29841 PyDict_SetItemString(d,"SYS_COLOUR_BTNFACE", SWIG_FromInt((int)wxSYS_COLOUR_BTNFACE));
29842 PyDict_SetItemString(d,"SYS_COLOUR_3DFACE", SWIG_FromInt((int)wxSYS_COLOUR_3DFACE));
29843 PyDict_SetItemString(d,"SYS_COLOUR_BTNSHADOW", SWIG_FromInt((int)wxSYS_COLOUR_BTNSHADOW));
29844 PyDict_SetItemString(d,"SYS_COLOUR_3DSHADOW", SWIG_FromInt((int)wxSYS_COLOUR_3DSHADOW));
29845 PyDict_SetItemString(d,"SYS_COLOUR_GRAYTEXT", SWIG_FromInt((int)wxSYS_COLOUR_GRAYTEXT));
29846 PyDict_SetItemString(d,"SYS_COLOUR_BTNTEXT", SWIG_FromInt((int)wxSYS_COLOUR_BTNTEXT));
29847 PyDict_SetItemString(d,"SYS_COLOUR_INACTIVECAPTIONTEXT", SWIG_FromInt((int)wxSYS_COLOUR_INACTIVECAPTIONTEXT));
29848 PyDict_SetItemString(d,"SYS_COLOUR_BTNHIGHLIGHT", SWIG_FromInt((int)wxSYS_COLOUR_BTNHIGHLIGHT));
29849 PyDict_SetItemString(d,"SYS_COLOUR_BTNHILIGHT", SWIG_FromInt((int)wxSYS_COLOUR_BTNHILIGHT));
29850 PyDict_SetItemString(d,"SYS_COLOUR_3DHIGHLIGHT", SWIG_FromInt((int)wxSYS_COLOUR_3DHIGHLIGHT));
29851 PyDict_SetItemString(d,"SYS_COLOUR_3DHILIGHT", SWIG_FromInt((int)wxSYS_COLOUR_3DHILIGHT));
29852 PyDict_SetItemString(d,"SYS_COLOUR_3DDKSHADOW", SWIG_FromInt((int)wxSYS_COLOUR_3DDKSHADOW));
29853 PyDict_SetItemString(d,"SYS_COLOUR_3DLIGHT", SWIG_FromInt((int)wxSYS_COLOUR_3DLIGHT));
29854 PyDict_SetItemString(d,"SYS_COLOUR_INFOTEXT", SWIG_FromInt((int)wxSYS_COLOUR_INFOTEXT));
29855 PyDict_SetItemString(d,"SYS_COLOUR_INFOBK", SWIG_FromInt((int)wxSYS_COLOUR_INFOBK));
29856 PyDict_SetItemString(d,"SYS_COLOUR_LISTBOX", SWIG_FromInt((int)wxSYS_COLOUR_LISTBOX));
29857 PyDict_SetItemString(d,"SYS_COLOUR_HOTLIGHT", SWIG_FromInt((int)wxSYS_COLOUR_HOTLIGHT));
29858 PyDict_SetItemString(d,"SYS_COLOUR_GRADIENTACTIVECAPTION", SWIG_FromInt((int)wxSYS_COLOUR_GRADIENTACTIVECAPTION));
29859 PyDict_SetItemString(d,"SYS_COLOUR_GRADIENTINACTIVECAPTION", SWIG_FromInt((int)wxSYS_COLOUR_GRADIENTINACTIVECAPTION));
29860 PyDict_SetItemString(d,"SYS_COLOUR_MENUHILIGHT", SWIG_FromInt((int)wxSYS_COLOUR_MENUHILIGHT));
29861 PyDict_SetItemString(d,"SYS_COLOUR_MENUBAR", SWIG_FromInt((int)wxSYS_COLOUR_MENUBAR));
29862 PyDict_SetItemString(d,"SYS_COLOUR_MAX", SWIG_FromInt((int)wxSYS_COLOUR_MAX));
29863 PyDict_SetItemString(d,"SYS_MOUSE_BUTTONS", SWIG_FromInt((int)wxSYS_MOUSE_BUTTONS));
29864 PyDict_SetItemString(d,"SYS_BORDER_X", SWIG_FromInt((int)wxSYS_BORDER_X));
29865 PyDict_SetItemString(d,"SYS_BORDER_Y", SWIG_FromInt((int)wxSYS_BORDER_Y));
29866 PyDict_SetItemString(d,"SYS_CURSOR_X", SWIG_FromInt((int)wxSYS_CURSOR_X));
29867 PyDict_SetItemString(d,"SYS_CURSOR_Y", SWIG_FromInt((int)wxSYS_CURSOR_Y));
29868 PyDict_SetItemString(d,"SYS_DCLICK_X", SWIG_FromInt((int)wxSYS_DCLICK_X));
29869 PyDict_SetItemString(d,"SYS_DCLICK_Y", SWIG_FromInt((int)wxSYS_DCLICK_Y));
29870 PyDict_SetItemString(d,"SYS_DRAG_X", SWIG_FromInt((int)wxSYS_DRAG_X));
29871 PyDict_SetItemString(d,"SYS_DRAG_Y", SWIG_FromInt((int)wxSYS_DRAG_Y));
29872 PyDict_SetItemString(d,"SYS_EDGE_X", SWIG_FromInt((int)wxSYS_EDGE_X));
29873 PyDict_SetItemString(d,"SYS_EDGE_Y", SWIG_FromInt((int)wxSYS_EDGE_Y));
29874 PyDict_SetItemString(d,"SYS_HSCROLL_ARROW_X", SWIG_FromInt((int)wxSYS_HSCROLL_ARROW_X));
29875 PyDict_SetItemString(d,"SYS_HSCROLL_ARROW_Y", SWIG_FromInt((int)wxSYS_HSCROLL_ARROW_Y));
29876 PyDict_SetItemString(d,"SYS_HTHUMB_X", SWIG_FromInt((int)wxSYS_HTHUMB_X));
29877 PyDict_SetItemString(d,"SYS_ICON_X", SWIG_FromInt((int)wxSYS_ICON_X));
29878 PyDict_SetItemString(d,"SYS_ICON_Y", SWIG_FromInt((int)wxSYS_ICON_Y));
29879 PyDict_SetItemString(d,"SYS_ICONSPACING_X", SWIG_FromInt((int)wxSYS_ICONSPACING_X));
29880 PyDict_SetItemString(d,"SYS_ICONSPACING_Y", SWIG_FromInt((int)wxSYS_ICONSPACING_Y));
29881 PyDict_SetItemString(d,"SYS_WINDOWMIN_X", SWIG_FromInt((int)wxSYS_WINDOWMIN_X));
29882 PyDict_SetItemString(d,"SYS_WINDOWMIN_Y", SWIG_FromInt((int)wxSYS_WINDOWMIN_Y));
29883 PyDict_SetItemString(d,"SYS_SCREEN_X", SWIG_FromInt((int)wxSYS_SCREEN_X));
29884 PyDict_SetItemString(d,"SYS_SCREEN_Y", SWIG_FromInt((int)wxSYS_SCREEN_Y));
29885 PyDict_SetItemString(d,"SYS_FRAMESIZE_X", SWIG_FromInt((int)wxSYS_FRAMESIZE_X));
29886 PyDict_SetItemString(d,"SYS_FRAMESIZE_Y", SWIG_FromInt((int)wxSYS_FRAMESIZE_Y));
29887 PyDict_SetItemString(d,"SYS_SMALLICON_X", SWIG_FromInt((int)wxSYS_SMALLICON_X));
29888 PyDict_SetItemString(d,"SYS_SMALLICON_Y", SWIG_FromInt((int)wxSYS_SMALLICON_Y));
29889 PyDict_SetItemString(d,"SYS_HSCROLL_Y", SWIG_FromInt((int)wxSYS_HSCROLL_Y));
29890 PyDict_SetItemString(d,"SYS_VSCROLL_X", SWIG_FromInt((int)wxSYS_VSCROLL_X));
29891 PyDict_SetItemString(d,"SYS_VSCROLL_ARROW_X", SWIG_FromInt((int)wxSYS_VSCROLL_ARROW_X));
29892 PyDict_SetItemString(d,"SYS_VSCROLL_ARROW_Y", SWIG_FromInt((int)wxSYS_VSCROLL_ARROW_Y));
29893 PyDict_SetItemString(d,"SYS_VTHUMB_Y", SWIG_FromInt((int)wxSYS_VTHUMB_Y));
29894 PyDict_SetItemString(d,"SYS_CAPTION_Y", SWIG_FromInt((int)wxSYS_CAPTION_Y));
29895 PyDict_SetItemString(d,"SYS_MENU_Y", SWIG_FromInt((int)wxSYS_MENU_Y));
29896 PyDict_SetItemString(d,"SYS_NETWORK_PRESENT", SWIG_FromInt((int)wxSYS_NETWORK_PRESENT));
29897 PyDict_SetItemString(d,"SYS_PENWINDOWS_PRESENT", SWIG_FromInt((int)wxSYS_PENWINDOWS_PRESENT));
29898 PyDict_SetItemString(d,"SYS_SHOW_SOUNDS", SWIG_FromInt((int)wxSYS_SHOW_SOUNDS));
29899 PyDict_SetItemString(d,"SYS_SWAP_BUTTONS", SWIG_FromInt((int)wxSYS_SWAP_BUTTONS));
29900 PyDict_SetItemString(d,"SYS_CAN_DRAW_FRAME_DECORATIONS", SWIG_FromInt((int)wxSYS_CAN_DRAW_FRAME_DECORATIONS));
29901 PyDict_SetItemString(d,"SYS_CAN_ICONIZE_FRAME", SWIG_FromInt((int)wxSYS_CAN_ICONIZE_FRAME));
29902 PyDict_SetItemString(d,"SYS_SCREEN_NONE", SWIG_FromInt((int)wxSYS_SCREEN_NONE));
29903 PyDict_SetItemString(d,"SYS_SCREEN_TINY", SWIG_FromInt((int)wxSYS_SCREEN_TINY));
29904 PyDict_SetItemString(d,"SYS_SCREEN_PDA", SWIG_FromInt((int)wxSYS_SCREEN_PDA));
29905 PyDict_SetItemString(d,"SYS_SCREEN_SMALL", SWIG_FromInt((int)wxSYS_SCREEN_SMALL));
29906 PyDict_SetItemString(d,"SYS_SCREEN_DESKTOP", SWIG_FromInt((int)wxSYS_SCREEN_DESKTOP));
29907 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
29908 SWIG_addvarlink(SWIG_globals,(char*)"FileSelectorPromptStr",_wrap_FileSelectorPromptStr_get, _wrap_FileSelectorPromptStr_set);
29909 SWIG_addvarlink(SWIG_globals,(char*)"FileSelectorDefaultWildcardStr",_wrap_FileSelectorDefaultWildcardStr_get, _wrap_FileSelectorDefaultWildcardStr_set);
29910 SWIG_addvarlink(SWIG_globals,(char*)"DirSelectorPromptStr",_wrap_DirSelectorPromptStr_get, _wrap_DirSelectorPromptStr_set);
29911 PyDict_SetItemString(d,"SHUTDOWN_POWEROFF", SWIG_FromInt((int)wxSHUTDOWN_POWEROFF));
29912 PyDict_SetItemString(d,"SHUTDOWN_REBOOT", SWIG_FromInt((int)wxSHUTDOWN_REBOOT));
29913 PyDict_SetItemString(d,"TIMER_CONTINUOUS", SWIG_FromInt((int)wxTIMER_CONTINUOUS));
29914 PyDict_SetItemString(d,"TIMER_ONE_SHOT", SWIG_FromInt((int)wxTIMER_ONE_SHOT));
29915 PyDict_SetItemString(d, "wxEVT_TIMER", PyInt_FromLong(wxEVT_TIMER));
29916
29917 wxPyPtrTypeMap_Add("wxTimer", "wxPyTimer");
29918
29919 PyDict_SetItemString(d,"LOG_FatalError", SWIG_FromInt((int)wxLOG_FatalError));
29920 PyDict_SetItemString(d,"LOG_Error", SWIG_FromInt((int)wxLOG_Error));
29921 PyDict_SetItemString(d,"LOG_Warning", SWIG_FromInt((int)wxLOG_Warning));
29922 PyDict_SetItemString(d,"LOG_Message", SWIG_FromInt((int)wxLOG_Message));
29923 PyDict_SetItemString(d,"LOG_Status", SWIG_FromInt((int)wxLOG_Status));
29924 PyDict_SetItemString(d,"LOG_Info", SWIG_FromInt((int)wxLOG_Info));
29925 PyDict_SetItemString(d,"LOG_Debug", SWIG_FromInt((int)wxLOG_Debug));
29926 PyDict_SetItemString(d,"LOG_Trace", SWIG_FromInt((int)wxLOG_Trace));
29927 PyDict_SetItemString(d,"LOG_Progress", SWIG_FromInt((int)wxLOG_Progress));
29928 PyDict_SetItemString(d,"LOG_User", SWIG_FromInt((int)wxLOG_User));
29929 PyDict_SetItemString(d,"LOG_Max", SWIG_FromInt((int)wxLOG_Max));
29930 PyDict_SetItemString(d,"TRACE_MemAlloc", SWIG_FromCharPtr("memalloc"));
29931 PyDict_SetItemString(d,"TRACE_Messages", SWIG_FromCharPtr("messages"));
29932 PyDict_SetItemString(d,"TRACE_ResAlloc", SWIG_FromCharPtr("resalloc"));
29933 PyDict_SetItemString(d,"TRACE_RefCount", SWIG_FromCharPtr("refcount"));
29934 PyDict_SetItemString(d,"TRACE_OleCalls", SWIG_FromCharPtr("ole"));
29935 PyDict_SetItemString(d,"TraceMemAlloc", SWIG_FromInt((int)0x0001));
29936 PyDict_SetItemString(d,"TraceMessages", SWIG_FromInt((int)0x0002));
29937 PyDict_SetItemString(d,"TraceResAlloc", SWIG_FromInt((int)0x0004));
29938 PyDict_SetItemString(d,"TraceRefCount", SWIG_FromInt((int)0x0008));
29939 PyDict_SetItemString(d,"TraceOleCalls", SWIG_FromInt((int)0x0100));
29940 PyDict_SetItemString(d,"PROCESS_DEFAULT", SWIG_FromInt((int)wxPROCESS_DEFAULT));
29941 PyDict_SetItemString(d,"PROCESS_REDIRECT", SWIG_FromInt((int)wxPROCESS_REDIRECT));
29942 PyDict_SetItemString(d,"KILL_OK", SWIG_FromInt((int)wxKILL_OK));
29943 PyDict_SetItemString(d,"KILL_BAD_SIGNAL", SWIG_FromInt((int)wxKILL_BAD_SIGNAL));
29944 PyDict_SetItemString(d,"KILL_ACCESS_DENIED", SWIG_FromInt((int)wxKILL_ACCESS_DENIED));
29945 PyDict_SetItemString(d,"KILL_NO_PROCESS", SWIG_FromInt((int)wxKILL_NO_PROCESS));
29946 PyDict_SetItemString(d,"KILL_ERROR", SWIG_FromInt((int)wxKILL_ERROR));
29947 PyDict_SetItemString(d,"SIGNONE", SWIG_FromInt((int)wxSIGNONE));
29948 PyDict_SetItemString(d,"SIGHUP", SWIG_FromInt((int)wxSIGHUP));
29949 PyDict_SetItemString(d,"SIGINT", SWIG_FromInt((int)wxSIGINT));
29950 PyDict_SetItemString(d,"SIGQUIT", SWIG_FromInt((int)wxSIGQUIT));
29951 PyDict_SetItemString(d,"SIGILL", SWIG_FromInt((int)wxSIGILL));
29952 PyDict_SetItemString(d,"SIGTRAP", SWIG_FromInt((int)wxSIGTRAP));
29953 PyDict_SetItemString(d,"SIGABRT", SWIG_FromInt((int)wxSIGABRT));
29954 PyDict_SetItemString(d,"SIGIOT", SWIG_FromInt((int)wxSIGIOT));
29955 PyDict_SetItemString(d,"SIGEMT", SWIG_FromInt((int)wxSIGEMT));
29956 PyDict_SetItemString(d,"SIGFPE", SWIG_FromInt((int)wxSIGFPE));
29957 PyDict_SetItemString(d,"SIGKILL", SWIG_FromInt((int)wxSIGKILL));
29958 PyDict_SetItemString(d,"SIGBUS", SWIG_FromInt((int)wxSIGBUS));
29959 PyDict_SetItemString(d,"SIGSEGV", SWIG_FromInt((int)wxSIGSEGV));
29960 PyDict_SetItemString(d,"SIGSYS", SWIG_FromInt((int)wxSIGSYS));
29961 PyDict_SetItemString(d,"SIGPIPE", SWIG_FromInt((int)wxSIGPIPE));
29962 PyDict_SetItemString(d,"SIGALRM", SWIG_FromInt((int)wxSIGALRM));
29963 PyDict_SetItemString(d,"SIGTERM", SWIG_FromInt((int)wxSIGTERM));
29964 PyDict_SetItemString(d, "wxEVT_END_PROCESS", PyInt_FromLong(wxEVT_END_PROCESS));
29965 PyDict_SetItemString(d,"EXEC_ASYNC", SWIG_FromInt((int)wxEXEC_ASYNC));
29966 PyDict_SetItemString(d,"EXEC_SYNC", SWIG_FromInt((int)wxEXEC_SYNC));
29967 PyDict_SetItemString(d,"EXEC_NOHIDE", SWIG_FromInt((int)wxEXEC_NOHIDE));
29968 PyDict_SetItemString(d,"EXEC_MAKE_GROUP_LEADER", SWIG_FromInt((int)wxEXEC_MAKE_GROUP_LEADER));
29969
29970 wxPyPtrTypeMap_Add("wxProcess", "wxPyProcess");
29971
29972 PyDict_SetItemString(d,"JOYSTICK1", SWIG_FromInt((int)wxJOYSTICK1));
29973 PyDict_SetItemString(d,"JOYSTICK2", SWIG_FromInt((int)wxJOYSTICK2));
29974 PyDict_SetItemString(d,"JOY_BUTTON_ANY", SWIG_FromInt((int)wxJOY_BUTTON_ANY));
29975 PyDict_SetItemString(d,"JOY_BUTTON1", SWIG_FromInt((int)wxJOY_BUTTON1));
29976 PyDict_SetItemString(d,"JOY_BUTTON2", SWIG_FromInt((int)wxJOY_BUTTON2));
29977 PyDict_SetItemString(d,"JOY_BUTTON3", SWIG_FromInt((int)wxJOY_BUTTON3));
29978 PyDict_SetItemString(d,"JOY_BUTTON4", SWIG_FromInt((int)wxJOY_BUTTON4));
29979 PyDict_SetItemString(d, "wxEVT_JOY_BUTTON_DOWN", PyInt_FromLong(wxEVT_JOY_BUTTON_DOWN));
29980 PyDict_SetItemString(d, "wxEVT_JOY_BUTTON_UP", PyInt_FromLong(wxEVT_JOY_BUTTON_UP));
29981 PyDict_SetItemString(d, "wxEVT_JOY_MOVE", PyInt_FromLong(wxEVT_JOY_MOVE));
29982 PyDict_SetItemString(d, "wxEVT_JOY_ZMOVE", PyInt_FromLong(wxEVT_JOY_ZMOVE));
29983 PyDict_SetItemString(d,"SOUND_SYNC", SWIG_FromInt((int)wxSOUND_SYNC));
29984 PyDict_SetItemString(d,"SOUND_ASYNC", SWIG_FromInt((int)wxSOUND_ASYNC));
29985 PyDict_SetItemString(d,"SOUND_LOOP", SWIG_FromInt((int)wxSOUND_LOOP));
29986 PyDict_SetItemString(d,"MAILCAP_STANDARD", SWIG_FromInt((int)wxMAILCAP_STANDARD));
29987 PyDict_SetItemString(d,"MAILCAP_NETSCAPE", SWIG_FromInt((int)wxMAILCAP_NETSCAPE));
29988 PyDict_SetItemString(d,"MAILCAP_KDE", SWIG_FromInt((int)wxMAILCAP_KDE));
29989 PyDict_SetItemString(d,"MAILCAP_GNOME", SWIG_FromInt((int)wxMAILCAP_GNOME));
29990 PyDict_SetItemString(d,"MAILCAP_ALL", SWIG_FromInt((int)wxMAILCAP_ALL));
29991 SWIG_addvarlink(SWIG_globals,(char*)"TheMimeTypesManager",_wrap_TheMimeTypesManager_get, _wrap_TheMimeTypesManager_set);
29992 SWIG_addvarlink(SWIG_globals,(char*)"ART_TOOLBAR",_wrap_ART_TOOLBAR_get, _wrap_ART_TOOLBAR_set);
29993 SWIG_addvarlink(SWIG_globals,(char*)"ART_MENU",_wrap_ART_MENU_get, _wrap_ART_MENU_set);
29994 SWIG_addvarlink(SWIG_globals,(char*)"ART_FRAME_ICON",_wrap_ART_FRAME_ICON_get, _wrap_ART_FRAME_ICON_set);
29995 SWIG_addvarlink(SWIG_globals,(char*)"ART_CMN_DIALOG",_wrap_ART_CMN_DIALOG_get, _wrap_ART_CMN_DIALOG_set);
29996 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_BROWSER",_wrap_ART_HELP_BROWSER_get, _wrap_ART_HELP_BROWSER_set);
29997 SWIG_addvarlink(SWIG_globals,(char*)"ART_MESSAGE_BOX",_wrap_ART_MESSAGE_BOX_get, _wrap_ART_MESSAGE_BOX_set);
29998 SWIG_addvarlink(SWIG_globals,(char*)"ART_BUTTON",_wrap_ART_BUTTON_get, _wrap_ART_BUTTON_set);
29999 SWIG_addvarlink(SWIG_globals,(char*)"ART_OTHER",_wrap_ART_OTHER_get, _wrap_ART_OTHER_set);
30000 SWIG_addvarlink(SWIG_globals,(char*)"ART_ADD_BOOKMARK",_wrap_ART_ADD_BOOKMARK_get, _wrap_ART_ADD_BOOKMARK_set);
30001 SWIG_addvarlink(SWIG_globals,(char*)"ART_DEL_BOOKMARK",_wrap_ART_DEL_BOOKMARK_get, _wrap_ART_DEL_BOOKMARK_set);
30002 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_SIDE_PANEL",_wrap_ART_HELP_SIDE_PANEL_get, _wrap_ART_HELP_SIDE_PANEL_set);
30003 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_SETTINGS",_wrap_ART_HELP_SETTINGS_get, _wrap_ART_HELP_SETTINGS_set);
30004 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_BOOK",_wrap_ART_HELP_BOOK_get, _wrap_ART_HELP_BOOK_set);
30005 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_FOLDER",_wrap_ART_HELP_FOLDER_get, _wrap_ART_HELP_FOLDER_set);
30006 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_PAGE",_wrap_ART_HELP_PAGE_get, _wrap_ART_HELP_PAGE_set);
30007 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_BACK",_wrap_ART_GO_BACK_get, _wrap_ART_GO_BACK_set);
30008 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_FORWARD",_wrap_ART_GO_FORWARD_get, _wrap_ART_GO_FORWARD_set);
30009 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_UP",_wrap_ART_GO_UP_get, _wrap_ART_GO_UP_set);
30010 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_DOWN",_wrap_ART_GO_DOWN_get, _wrap_ART_GO_DOWN_set);
30011 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_TO_PARENT",_wrap_ART_GO_TO_PARENT_get, _wrap_ART_GO_TO_PARENT_set);
30012 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_HOME",_wrap_ART_GO_HOME_get, _wrap_ART_GO_HOME_set);
30013 SWIG_addvarlink(SWIG_globals,(char*)"ART_FILE_OPEN",_wrap_ART_FILE_OPEN_get, _wrap_ART_FILE_OPEN_set);
30014 SWIG_addvarlink(SWIG_globals,(char*)"ART_PRINT",_wrap_ART_PRINT_get, _wrap_ART_PRINT_set);
30015 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP",_wrap_ART_HELP_get, _wrap_ART_HELP_set);
30016 SWIG_addvarlink(SWIG_globals,(char*)"ART_TIP",_wrap_ART_TIP_get, _wrap_ART_TIP_set);
30017 SWIG_addvarlink(SWIG_globals,(char*)"ART_REPORT_VIEW",_wrap_ART_REPORT_VIEW_get, _wrap_ART_REPORT_VIEW_set);
30018 SWIG_addvarlink(SWIG_globals,(char*)"ART_LIST_VIEW",_wrap_ART_LIST_VIEW_get, _wrap_ART_LIST_VIEW_set);
30019 SWIG_addvarlink(SWIG_globals,(char*)"ART_NEW_DIR",_wrap_ART_NEW_DIR_get, _wrap_ART_NEW_DIR_set);
30020 SWIG_addvarlink(SWIG_globals,(char*)"ART_FOLDER",_wrap_ART_FOLDER_get, _wrap_ART_FOLDER_set);
30021 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_DIR_UP",_wrap_ART_GO_DIR_UP_get, _wrap_ART_GO_DIR_UP_set);
30022 SWIG_addvarlink(SWIG_globals,(char*)"ART_EXECUTABLE_FILE",_wrap_ART_EXECUTABLE_FILE_get, _wrap_ART_EXECUTABLE_FILE_set);
30023 SWIG_addvarlink(SWIG_globals,(char*)"ART_NORMAL_FILE",_wrap_ART_NORMAL_FILE_get, _wrap_ART_NORMAL_FILE_set);
30024 SWIG_addvarlink(SWIG_globals,(char*)"ART_TICK_MARK",_wrap_ART_TICK_MARK_get, _wrap_ART_TICK_MARK_set);
30025 SWIG_addvarlink(SWIG_globals,(char*)"ART_CROSS_MARK",_wrap_ART_CROSS_MARK_get, _wrap_ART_CROSS_MARK_set);
30026 SWIG_addvarlink(SWIG_globals,(char*)"ART_ERROR",_wrap_ART_ERROR_get, _wrap_ART_ERROR_set);
30027 SWIG_addvarlink(SWIG_globals,(char*)"ART_QUESTION",_wrap_ART_QUESTION_get, _wrap_ART_QUESTION_set);
30028 SWIG_addvarlink(SWIG_globals,(char*)"ART_WARNING",_wrap_ART_WARNING_get, _wrap_ART_WARNING_set);
30029 SWIG_addvarlink(SWIG_globals,(char*)"ART_INFORMATION",_wrap_ART_INFORMATION_get, _wrap_ART_INFORMATION_set);
30030 SWIG_addvarlink(SWIG_globals,(char*)"ART_MISSING_IMAGE",_wrap_ART_MISSING_IMAGE_get, _wrap_ART_MISSING_IMAGE_set);
30031
30032 wxPyPtrTypeMap_Add("wxArtProvider", "wxPyArtProvider");
30033
30034 PyDict_SetItemString(d,"CONFIG_USE_LOCAL_FILE", SWIG_FromInt((int)wxCONFIG_USE_LOCAL_FILE));
30035 PyDict_SetItemString(d,"CONFIG_USE_GLOBAL_FILE", SWIG_FromInt((int)wxCONFIG_USE_GLOBAL_FILE));
30036 PyDict_SetItemString(d,"CONFIG_USE_RELATIVE_PATH", SWIG_FromInt((int)wxCONFIG_USE_RELATIVE_PATH));
30037 PyDict_SetItemString(d,"CONFIG_USE_NO_ESCAPE_CHARACTERS", SWIG_FromInt((int)wxCONFIG_USE_NO_ESCAPE_CHARACTERS));
30038 PyDict_SetItemString(d,"ConfigBase_Type_Unknown", SWIG_FromInt((int)wxConfigBase::Type_Unknown));
30039 PyDict_SetItemString(d,"ConfigBase_Type_String", SWIG_FromInt((int)wxConfigBase::Type_String));
30040 PyDict_SetItemString(d,"ConfigBase_Type_Boolean", SWIG_FromInt((int)wxConfigBase::Type_Boolean));
30041 PyDict_SetItemString(d,"ConfigBase_Type_Integer", SWIG_FromInt((int)wxConfigBase::Type_Integer));
30042 PyDict_SetItemString(d,"ConfigBase_Type_Float", SWIG_FromInt((int)wxConfigBase::Type_Float));
30043 SWIG_addvarlink(SWIG_globals,(char*)"DateFormatStr",_wrap_DateFormatStr_get, _wrap_DateFormatStr_set);
30044 SWIG_addvarlink(SWIG_globals,(char*)"TimeSpanFormatStr",_wrap_TimeSpanFormatStr_get, _wrap_TimeSpanFormatStr_set);
30045 PyDict_SetItemString(d,"DateTime_Local", SWIG_FromInt((int)wxDateTime::Local));
30046 PyDict_SetItemString(d,"DateTime_GMT_12", SWIG_FromInt((int)wxDateTime::GMT_12));
30047 PyDict_SetItemString(d,"DateTime_GMT_11", SWIG_FromInt((int)wxDateTime::GMT_11));
30048 PyDict_SetItemString(d,"DateTime_GMT_10", SWIG_FromInt((int)wxDateTime::GMT_10));
30049 PyDict_SetItemString(d,"DateTime_GMT_9", SWIG_FromInt((int)wxDateTime::GMT_9));
30050 PyDict_SetItemString(d,"DateTime_GMT_8", SWIG_FromInt((int)wxDateTime::GMT_8));
30051 PyDict_SetItemString(d,"DateTime_GMT_7", SWIG_FromInt((int)wxDateTime::GMT_7));
30052 PyDict_SetItemString(d,"DateTime_GMT_6", SWIG_FromInt((int)wxDateTime::GMT_6));
30053 PyDict_SetItemString(d,"DateTime_GMT_5", SWIG_FromInt((int)wxDateTime::GMT_5));
30054 PyDict_SetItemString(d,"DateTime_GMT_4", SWIG_FromInt((int)wxDateTime::GMT_4));
30055 PyDict_SetItemString(d,"DateTime_GMT_3", SWIG_FromInt((int)wxDateTime::GMT_3));
30056 PyDict_SetItemString(d,"DateTime_GMT_2", SWIG_FromInt((int)wxDateTime::GMT_2));
30057 PyDict_SetItemString(d,"DateTime_GMT_1", SWIG_FromInt((int)wxDateTime::GMT_1));
30058 PyDict_SetItemString(d,"DateTime_GMT0", SWIG_FromInt((int)wxDateTime::GMT0));
30059 PyDict_SetItemString(d,"DateTime_GMT1", SWIG_FromInt((int)wxDateTime::GMT1));
30060 PyDict_SetItemString(d,"DateTime_GMT2", SWIG_FromInt((int)wxDateTime::GMT2));
30061 PyDict_SetItemString(d,"DateTime_GMT3", SWIG_FromInt((int)wxDateTime::GMT3));
30062 PyDict_SetItemString(d,"DateTime_GMT4", SWIG_FromInt((int)wxDateTime::GMT4));
30063 PyDict_SetItemString(d,"DateTime_GMT5", SWIG_FromInt((int)wxDateTime::GMT5));
30064 PyDict_SetItemString(d,"DateTime_GMT6", SWIG_FromInt((int)wxDateTime::GMT6));
30065 PyDict_SetItemString(d,"DateTime_GMT7", SWIG_FromInt((int)wxDateTime::GMT7));
30066 PyDict_SetItemString(d,"DateTime_GMT8", SWIG_FromInt((int)wxDateTime::GMT8));
30067 PyDict_SetItemString(d,"DateTime_GMT9", SWIG_FromInt((int)wxDateTime::GMT9));
30068 PyDict_SetItemString(d,"DateTime_GMT10", SWIG_FromInt((int)wxDateTime::GMT10));
30069 PyDict_SetItemString(d,"DateTime_GMT11", SWIG_FromInt((int)wxDateTime::GMT11));
30070 PyDict_SetItemString(d,"DateTime_GMT12", SWIG_FromInt((int)wxDateTime::GMT12));
30071 PyDict_SetItemString(d,"DateTime_WET", SWIG_FromInt((int)wxDateTime::WET));
30072 PyDict_SetItemString(d,"DateTime_WEST", SWIG_FromInt((int)wxDateTime::WEST));
30073 PyDict_SetItemString(d,"DateTime_CET", SWIG_FromInt((int)wxDateTime::CET));
30074 PyDict_SetItemString(d,"DateTime_CEST", SWIG_FromInt((int)wxDateTime::CEST));
30075 PyDict_SetItemString(d,"DateTime_EET", SWIG_FromInt((int)wxDateTime::EET));
30076 PyDict_SetItemString(d,"DateTime_EEST", SWIG_FromInt((int)wxDateTime::EEST));
30077 PyDict_SetItemString(d,"DateTime_MSK", SWIG_FromInt((int)wxDateTime::MSK));
30078 PyDict_SetItemString(d,"DateTime_MSD", SWIG_FromInt((int)wxDateTime::MSD));
30079 PyDict_SetItemString(d,"DateTime_AST", SWIG_FromInt((int)wxDateTime::AST));
30080 PyDict_SetItemString(d,"DateTime_ADT", SWIG_FromInt((int)wxDateTime::ADT));
30081 PyDict_SetItemString(d,"DateTime_EST", SWIG_FromInt((int)wxDateTime::EST));
30082 PyDict_SetItemString(d,"DateTime_EDT", SWIG_FromInt((int)wxDateTime::EDT));
30083 PyDict_SetItemString(d,"DateTime_CST", SWIG_FromInt((int)wxDateTime::CST));
30084 PyDict_SetItemString(d,"DateTime_CDT", SWIG_FromInt((int)wxDateTime::CDT));
30085 PyDict_SetItemString(d,"DateTime_MST", SWIG_FromInt((int)wxDateTime::MST));
30086 PyDict_SetItemString(d,"DateTime_MDT", SWIG_FromInt((int)wxDateTime::MDT));
30087 PyDict_SetItemString(d,"DateTime_PST", SWIG_FromInt((int)wxDateTime::PST));
30088 PyDict_SetItemString(d,"DateTime_PDT", SWIG_FromInt((int)wxDateTime::PDT));
30089 PyDict_SetItemString(d,"DateTime_HST", SWIG_FromInt((int)wxDateTime::HST));
30090 PyDict_SetItemString(d,"DateTime_AKST", SWIG_FromInt((int)wxDateTime::AKST));
30091 PyDict_SetItemString(d,"DateTime_AKDT", SWIG_FromInt((int)wxDateTime::AKDT));
30092 PyDict_SetItemString(d,"DateTime_A_WST", SWIG_FromInt((int)wxDateTime::A_WST));
30093 PyDict_SetItemString(d,"DateTime_A_CST", SWIG_FromInt((int)wxDateTime::A_CST));
30094 PyDict_SetItemString(d,"DateTime_A_EST", SWIG_FromInt((int)wxDateTime::A_EST));
30095 PyDict_SetItemString(d,"DateTime_A_ESST", SWIG_FromInt((int)wxDateTime::A_ESST));
30096 PyDict_SetItemString(d,"DateTime_UTC", SWIG_FromInt((int)wxDateTime::UTC));
30097 PyDict_SetItemString(d,"DateTime_Gregorian", SWIG_FromInt((int)wxDateTime::Gregorian));
30098 PyDict_SetItemString(d,"DateTime_Julian", SWIG_FromInt((int)wxDateTime::Julian));
30099 PyDict_SetItemString(d,"DateTime_Gr_Unknown", SWIG_FromInt((int)wxDateTime::Gr_Unknown));
30100 PyDict_SetItemString(d,"DateTime_Gr_Standard", SWIG_FromInt((int)wxDateTime::Gr_Standard));
30101 PyDict_SetItemString(d,"DateTime_Gr_Alaska", SWIG_FromInt((int)wxDateTime::Gr_Alaska));
30102 PyDict_SetItemString(d,"DateTime_Gr_Albania", SWIG_FromInt((int)wxDateTime::Gr_Albania));
30103 PyDict_SetItemString(d,"DateTime_Gr_Austria", SWIG_FromInt((int)wxDateTime::Gr_Austria));
30104 PyDict_SetItemString(d,"DateTime_Gr_Austria_Brixen", SWIG_FromInt((int)wxDateTime::Gr_Austria_Brixen));
30105 PyDict_SetItemString(d,"DateTime_Gr_Austria_Salzburg", SWIG_FromInt((int)wxDateTime::Gr_Austria_Salzburg));
30106 PyDict_SetItemString(d,"DateTime_Gr_Austria_Tyrol", SWIG_FromInt((int)wxDateTime::Gr_Austria_Tyrol));
30107 PyDict_SetItemString(d,"DateTime_Gr_Austria_Carinthia", SWIG_FromInt((int)wxDateTime::Gr_Austria_Carinthia));
30108 PyDict_SetItemString(d,"DateTime_Gr_Austria_Styria", SWIG_FromInt((int)wxDateTime::Gr_Austria_Styria));
30109 PyDict_SetItemString(d,"DateTime_Gr_Belgium", SWIG_FromInt((int)wxDateTime::Gr_Belgium));
30110 PyDict_SetItemString(d,"DateTime_Gr_Bulgaria", SWIG_FromInt((int)wxDateTime::Gr_Bulgaria));
30111 PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_1", SWIG_FromInt((int)wxDateTime::Gr_Bulgaria_1));
30112 PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_2", SWIG_FromInt((int)wxDateTime::Gr_Bulgaria_2));
30113 PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_3", SWIG_FromInt((int)wxDateTime::Gr_Bulgaria_3));
30114 PyDict_SetItemString(d,"DateTime_Gr_Canada", SWIG_FromInt((int)wxDateTime::Gr_Canada));
30115 PyDict_SetItemString(d,"DateTime_Gr_China", SWIG_FromInt((int)wxDateTime::Gr_China));
30116 PyDict_SetItemString(d,"DateTime_Gr_China_1", SWIG_FromInt((int)wxDateTime::Gr_China_1));
30117 PyDict_SetItemString(d,"DateTime_Gr_China_2", SWIG_FromInt((int)wxDateTime::Gr_China_2));
30118 PyDict_SetItemString(d,"DateTime_Gr_Czechoslovakia", SWIG_FromInt((int)wxDateTime::Gr_Czechoslovakia));
30119 PyDict_SetItemString(d,"DateTime_Gr_Denmark", SWIG_FromInt((int)wxDateTime::Gr_Denmark));
30120 PyDict_SetItemString(d,"DateTime_Gr_Egypt", SWIG_FromInt((int)wxDateTime::Gr_Egypt));
30121 PyDict_SetItemString(d,"DateTime_Gr_Estonia", SWIG_FromInt((int)wxDateTime::Gr_Estonia));
30122 PyDict_SetItemString(d,"DateTime_Gr_Finland", SWIG_FromInt((int)wxDateTime::Gr_Finland));
30123 PyDict_SetItemString(d,"DateTime_Gr_France", SWIG_FromInt((int)wxDateTime::Gr_France));
30124 PyDict_SetItemString(d,"DateTime_Gr_France_Alsace", SWIG_FromInt((int)wxDateTime::Gr_France_Alsace));
30125 PyDict_SetItemString(d,"DateTime_Gr_France_Lorraine", SWIG_FromInt((int)wxDateTime::Gr_France_Lorraine));
30126 PyDict_SetItemString(d,"DateTime_Gr_France_Strasbourg", SWIG_FromInt((int)wxDateTime::Gr_France_Strasbourg));
30127 PyDict_SetItemString(d,"DateTime_Gr_Germany", SWIG_FromInt((int)wxDateTime::Gr_Germany));
30128 PyDict_SetItemString(d,"DateTime_Gr_Germany_Catholic", SWIG_FromInt((int)wxDateTime::Gr_Germany_Catholic));
30129 PyDict_SetItemString(d,"DateTime_Gr_Germany_Prussia", SWIG_FromInt((int)wxDateTime::Gr_Germany_Prussia));
30130 PyDict_SetItemString(d,"DateTime_Gr_Germany_Protestant", SWIG_FromInt((int)wxDateTime::Gr_Germany_Protestant));
30131 PyDict_SetItemString(d,"DateTime_Gr_GreatBritain", SWIG_FromInt((int)wxDateTime::Gr_GreatBritain));
30132 PyDict_SetItemString(d,"DateTime_Gr_Greece", SWIG_FromInt((int)wxDateTime::Gr_Greece));
30133 PyDict_SetItemString(d,"DateTime_Gr_Hungary", SWIG_FromInt((int)wxDateTime::Gr_Hungary));
30134 PyDict_SetItemString(d,"DateTime_Gr_Ireland", SWIG_FromInt((int)wxDateTime::Gr_Ireland));
30135 PyDict_SetItemString(d,"DateTime_Gr_Italy", SWIG_FromInt((int)wxDateTime::Gr_Italy));
30136 PyDict_SetItemString(d,"DateTime_Gr_Japan", SWIG_FromInt((int)wxDateTime::Gr_Japan));
30137 PyDict_SetItemString(d,"DateTime_Gr_Japan_1", SWIG_FromInt((int)wxDateTime::Gr_Japan_1));
30138 PyDict_SetItemString(d,"DateTime_Gr_Japan_2", SWIG_FromInt((int)wxDateTime::Gr_Japan_2));
30139 PyDict_SetItemString(d,"DateTime_Gr_Japan_3", SWIG_FromInt((int)wxDateTime::Gr_Japan_3));
30140 PyDict_SetItemString(d,"DateTime_Gr_Latvia", SWIG_FromInt((int)wxDateTime::Gr_Latvia));
30141 PyDict_SetItemString(d,"DateTime_Gr_Lithuania", SWIG_FromInt((int)wxDateTime::Gr_Lithuania));
30142 PyDict_SetItemString(d,"DateTime_Gr_Luxemburg", SWIG_FromInt((int)wxDateTime::Gr_Luxemburg));
30143 PyDict_SetItemString(d,"DateTime_Gr_Netherlands", SWIG_FromInt((int)wxDateTime::Gr_Netherlands));
30144 PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Groningen", SWIG_FromInt((int)wxDateTime::Gr_Netherlands_Groningen));
30145 PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Gelderland", SWIG_FromInt((int)wxDateTime::Gr_Netherlands_Gelderland));
30146 PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Utrecht", SWIG_FromInt((int)wxDateTime::Gr_Netherlands_Utrecht));
30147 PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Friesland", SWIG_FromInt((int)wxDateTime::Gr_Netherlands_Friesland));
30148 PyDict_SetItemString(d,"DateTime_Gr_Norway", SWIG_FromInt((int)wxDateTime::Gr_Norway));
30149 PyDict_SetItemString(d,"DateTime_Gr_Poland", SWIG_FromInt((int)wxDateTime::Gr_Poland));
30150 PyDict_SetItemString(d,"DateTime_Gr_Portugal", SWIG_FromInt((int)wxDateTime::Gr_Portugal));
30151 PyDict_SetItemString(d,"DateTime_Gr_Romania", SWIG_FromInt((int)wxDateTime::Gr_Romania));
30152 PyDict_SetItemString(d,"DateTime_Gr_Russia", SWIG_FromInt((int)wxDateTime::Gr_Russia));
30153 PyDict_SetItemString(d,"DateTime_Gr_Scotland", SWIG_FromInt((int)wxDateTime::Gr_Scotland));
30154 PyDict_SetItemString(d,"DateTime_Gr_Spain", SWIG_FromInt((int)wxDateTime::Gr_Spain));
30155 PyDict_SetItemString(d,"DateTime_Gr_Sweden", SWIG_FromInt((int)wxDateTime::Gr_Sweden));
30156 PyDict_SetItemString(d,"DateTime_Gr_Switzerland", SWIG_FromInt((int)wxDateTime::Gr_Switzerland));
30157 PyDict_SetItemString(d,"DateTime_Gr_Switzerland_Catholic", SWIG_FromInt((int)wxDateTime::Gr_Switzerland_Catholic));
30158 PyDict_SetItemString(d,"DateTime_Gr_Switzerland_Protestant", SWIG_FromInt((int)wxDateTime::Gr_Switzerland_Protestant));
30159 PyDict_SetItemString(d,"DateTime_Gr_Turkey", SWIG_FromInt((int)wxDateTime::Gr_Turkey));
30160 PyDict_SetItemString(d,"DateTime_Gr_USA", SWIG_FromInt((int)wxDateTime::Gr_USA));
30161 PyDict_SetItemString(d,"DateTime_Gr_Wales", SWIG_FromInt((int)wxDateTime::Gr_Wales));
30162 PyDict_SetItemString(d,"DateTime_Gr_Yugoslavia", SWIG_FromInt((int)wxDateTime::Gr_Yugoslavia));
30163 PyDict_SetItemString(d,"DateTime_Country_Unknown", SWIG_FromInt((int)wxDateTime::Country_Unknown));
30164 PyDict_SetItemString(d,"DateTime_Country_Default", SWIG_FromInt((int)wxDateTime::Country_Default));
30165 PyDict_SetItemString(d,"DateTime_Country_WesternEurope_Start", SWIG_FromInt((int)wxDateTime::Country_WesternEurope_Start));
30166 PyDict_SetItemString(d,"DateTime_Country_EEC", SWIG_FromInt((int)wxDateTime::Country_EEC));
30167 PyDict_SetItemString(d,"DateTime_France", SWIG_FromInt((int)wxDateTime::France));
30168 PyDict_SetItemString(d,"DateTime_Germany", SWIG_FromInt((int)wxDateTime::Germany));
30169 PyDict_SetItemString(d,"DateTime_UK", SWIG_FromInt((int)wxDateTime::UK));
30170 PyDict_SetItemString(d,"DateTime_Country_WesternEurope_End", SWIG_FromInt((int)wxDateTime::Country_WesternEurope_End));
30171 PyDict_SetItemString(d,"DateTime_Russia", SWIG_FromInt((int)wxDateTime::Russia));
30172 PyDict_SetItemString(d,"DateTime_USA", SWIG_FromInt((int)wxDateTime::USA));
30173 PyDict_SetItemString(d,"DateTime_Jan", SWIG_FromInt((int)wxDateTime::Jan));
30174 PyDict_SetItemString(d,"DateTime_Feb", SWIG_FromInt((int)wxDateTime::Feb));
30175 PyDict_SetItemString(d,"DateTime_Mar", SWIG_FromInt((int)wxDateTime::Mar));
30176 PyDict_SetItemString(d,"DateTime_Apr", SWIG_FromInt((int)wxDateTime::Apr));
30177 PyDict_SetItemString(d,"DateTime_May", SWIG_FromInt((int)wxDateTime::May));
30178 PyDict_SetItemString(d,"DateTime_Jun", SWIG_FromInt((int)wxDateTime::Jun));
30179 PyDict_SetItemString(d,"DateTime_Jul", SWIG_FromInt((int)wxDateTime::Jul));
30180 PyDict_SetItemString(d,"DateTime_Aug", SWIG_FromInt((int)wxDateTime::Aug));
30181 PyDict_SetItemString(d,"DateTime_Sep", SWIG_FromInt((int)wxDateTime::Sep));
30182 PyDict_SetItemString(d,"DateTime_Oct", SWIG_FromInt((int)wxDateTime::Oct));
30183 PyDict_SetItemString(d,"DateTime_Nov", SWIG_FromInt((int)wxDateTime::Nov));
30184 PyDict_SetItemString(d,"DateTime_Dec", SWIG_FromInt((int)wxDateTime::Dec));
30185 PyDict_SetItemString(d,"DateTime_Inv_Month", SWIG_FromInt((int)wxDateTime::Inv_Month));
30186 PyDict_SetItemString(d,"DateTime_Sun", SWIG_FromInt((int)wxDateTime::Sun));
30187 PyDict_SetItemString(d,"DateTime_Mon", SWIG_FromInt((int)wxDateTime::Mon));
30188 PyDict_SetItemString(d,"DateTime_Tue", SWIG_FromInt((int)wxDateTime::Tue));
30189 PyDict_SetItemString(d,"DateTime_Wed", SWIG_FromInt((int)wxDateTime::Wed));
30190 PyDict_SetItemString(d,"DateTime_Thu", SWIG_FromInt((int)wxDateTime::Thu));
30191 PyDict_SetItemString(d,"DateTime_Fri", SWIG_FromInt((int)wxDateTime::Fri));
30192 PyDict_SetItemString(d,"DateTime_Sat", SWIG_FromInt((int)wxDateTime::Sat));
30193 PyDict_SetItemString(d,"DateTime_Inv_WeekDay", SWIG_FromInt((int)wxDateTime::Inv_WeekDay));
30194 PyDict_SetItemString(d,"DateTime_Inv_Year", SWIG_FromInt((int)wxDateTime::Inv_Year));
30195 PyDict_SetItemString(d,"DateTime_Name_Full", SWIG_FromInt((int)wxDateTime::Name_Full));
30196 PyDict_SetItemString(d,"DateTime_Name_Abbr", SWIG_FromInt((int)wxDateTime::Name_Abbr));
30197 PyDict_SetItemString(d,"DateTime_Default_First", SWIG_FromInt((int)wxDateTime::Default_First));
30198 PyDict_SetItemString(d,"DateTime_Monday_First", SWIG_FromInt((int)wxDateTime::Monday_First));
30199 PyDict_SetItemString(d,"DateTime_Sunday_First", SWIG_FromInt((int)wxDateTime::Sunday_First));
30200 SWIG_addvarlink(SWIG_globals,(char*)"DefaultDateTime",_wrap_DefaultDateTime_get, _wrap_DefaultDateTime_set);
30201 PyDict_SetItemString(d,"DF_INVALID", SWIG_FromInt((int)wxDF_INVALID));
30202 PyDict_SetItemString(d,"DF_TEXT", SWIG_FromInt((int)wxDF_TEXT));
30203 PyDict_SetItemString(d,"DF_BITMAP", SWIG_FromInt((int)wxDF_BITMAP));
30204 PyDict_SetItemString(d,"DF_METAFILE", SWIG_FromInt((int)wxDF_METAFILE));
30205 PyDict_SetItemString(d,"DF_SYLK", SWIG_FromInt((int)wxDF_SYLK));
30206 PyDict_SetItemString(d,"DF_DIF", SWIG_FromInt((int)wxDF_DIF));
30207 PyDict_SetItemString(d,"DF_TIFF", SWIG_FromInt((int)wxDF_TIFF));
30208 PyDict_SetItemString(d,"DF_OEMTEXT", SWIG_FromInt((int)wxDF_OEMTEXT));
30209 PyDict_SetItemString(d,"DF_DIB", SWIG_FromInt((int)wxDF_DIB));
30210 PyDict_SetItemString(d,"DF_PALETTE", SWIG_FromInt((int)wxDF_PALETTE));
30211 PyDict_SetItemString(d,"DF_PENDATA", SWIG_FromInt((int)wxDF_PENDATA));
30212 PyDict_SetItemString(d,"DF_RIFF", SWIG_FromInt((int)wxDF_RIFF));
30213 PyDict_SetItemString(d,"DF_WAVE", SWIG_FromInt((int)wxDF_WAVE));
30214 PyDict_SetItemString(d,"DF_UNICODETEXT", SWIG_FromInt((int)wxDF_UNICODETEXT));
30215 PyDict_SetItemString(d,"DF_ENHMETAFILE", SWIG_FromInt((int)wxDF_ENHMETAFILE));
30216 PyDict_SetItemString(d,"DF_FILENAME", SWIG_FromInt((int)wxDF_FILENAME));
30217 PyDict_SetItemString(d,"DF_LOCALE", SWIG_FromInt((int)wxDF_LOCALE));
30218 PyDict_SetItemString(d,"DF_PRIVATE", SWIG_FromInt((int)wxDF_PRIVATE));
30219 PyDict_SetItemString(d,"DF_HTML", SWIG_FromInt((int)wxDF_HTML));
30220 PyDict_SetItemString(d,"DF_MAX", SWIG_FromInt((int)wxDF_MAX));
30221 SWIG_addvarlink(SWIG_globals,(char*)"FormatInvalid",_wrap_FormatInvalid_get, _wrap_FormatInvalid_set);
30222 PyDict_SetItemString(d,"DataObject_Get", SWIG_FromInt((int)wxDataObject::Get));
30223 PyDict_SetItemString(d,"DataObject_Set", SWIG_FromInt((int)wxDataObject::Set));
30224 PyDict_SetItemString(d,"DataObject_Both", SWIG_FromInt((int)wxDataObject::Both));
30225 PyDict_SetItemString(d,"Drag_CopyOnly", SWIG_FromInt((int)wxDrag_CopyOnly));
30226 PyDict_SetItemString(d,"Drag_AllowMove", SWIG_FromInt((int)wxDrag_AllowMove));
30227 PyDict_SetItemString(d,"Drag_DefaultMove", SWIG_FromInt((int)wxDrag_DefaultMove));
30228 PyDict_SetItemString(d,"DragError", SWIG_FromInt((int)wxDragError));
30229 PyDict_SetItemString(d,"DragNone", SWIG_FromInt((int)wxDragNone));
30230 PyDict_SetItemString(d,"DragCopy", SWIG_FromInt((int)wxDragCopy));
30231 PyDict_SetItemString(d,"DragMove", SWIG_FromInt((int)wxDragMove));
30232 PyDict_SetItemString(d,"DragLink", SWIG_FromInt((int)wxDragLink));
30233 PyDict_SetItemString(d,"DragCancel", SWIG_FromInt((int)wxDragCancel));
30234
30235 wxPyPtrTypeMap_Add("wxDropSource", "wxPyDropSource");
30236 wxPyPtrTypeMap_Add("wxDropTarget", "wxPyDropTarget");
30237 wxPyPtrTypeMap_Add("wxTextDropTarget", "wxPyTextDropTarget");
30238 wxPyPtrTypeMap_Add("wxFileDropTarget", "wxPyFileDropTarget");
30239
30240 SWIG_addvarlink(SWIG_globals,(char*)"DefaultVideoMode",_wrap_DefaultVideoMode_get, _wrap_DefaultVideoMode_set);
30241 }
30242