]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/gtk/_misc_wrap.cpp
a61cfd0b5aa4b6722950166466e3908572215af4
[wxWidgets.git] / wxPython / src / gtk / _misc_wrap.cpp
1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 1.3.22
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11 #define SWIGPYTHON
12 #define SWIG_NOINCLUDE
13
14 #ifdef __cplusplus
15 template<class T> class SwigValueWrapper {
16 T *tt;
17 public:
18 SwigValueWrapper() : tt(0) { }
19 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
20 SwigValueWrapper(const T& t) : tt(new T(t)) { }
21 ~SwigValueWrapper() { delete tt; }
22 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
23 operator T&() const { return *tt; }
24 T *operator&() { return tt; }
25 private:
26 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
27 };
28 #endif
29
30
31 #include "Python.h"
32
33 /*************************************************************** -*- c -*-
34 * python/precommon.swg
35 *
36 * Rename all exported symbols from common.swg, to avoid symbol
37 * clashes if multiple interpreters are included
38 *
39 ************************************************************************/
40
41 #define SWIG_TypeRegister SWIG_Python_TypeRegister
42 #define SWIG_TypeCheck SWIG_Python_TypeCheck
43 #define SWIG_TypeCast SWIG_Python_TypeCast
44 #define SWIG_TypeDynamicCast SWIG_Python_TypeDynamicCast
45 #define SWIG_TypeName SWIG_Python_TypeName
46 #define SWIG_TypeQuery SWIG_Python_TypeQuery
47 #define SWIG_TypeClientData SWIG_Python_TypeClientData
48 #define SWIG_PackData SWIG_Python_PackData
49 #define SWIG_UnpackData SWIG_Python_UnpackData
50
51
52 /***********************************************************************
53 * common.swg for wxPython
54 *
55 * Include only the function prototypes and such from SWIG's common.swg,
56 * but not the runtime functions themselves. This helps keep the
57 * wrapper files clean of unnecessary stuff that is in the libpy.c file
58 * anyway.
59 *
60 ************************************************************************/
61
62 #include <string.h>
63
64 #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
65 # if defined(_MSC_VER) || defined(__GNUC__)
66 # if defined(STATIC_LINKED)
67 # define SWIGEXPORT(a) a
68 # define SWIGIMPORT(a) extern a
69 # else
70 # define SWIGEXPORT(a) __declspec(dllexport) a
71 # define SWIGIMPORT(a) extern a
72 # endif
73 # else
74 # if defined(__BORLANDC__)
75 # define SWIGEXPORT(a) a _export
76 # define SWIGIMPORT(a) a _export
77 # else
78 # define SWIGEXPORT(a) a
79 # define SWIGIMPORT(a) a
80 # endif
81 # endif
82 #else
83 # define SWIGEXPORT(a) a
84 # define SWIGIMPORT(a) a
85 #endif
86
87 #ifdef SWIG_GLOBAL
88 # define SWIGRUNTIME(a) SWIGEXPORT(a)
89 #else
90 # define SWIGRUNTIME(a) static a
91 #endif
92
93 #ifdef __cplusplus
94 extern "C" {
95 #endif
96
97 typedef void *(*swig_converter_func)(void *);
98 typedef struct swig_type_info *(*swig_dycast_func)(void **);
99
100 typedef struct swig_type_info {
101 const char *name;
102 swig_converter_func converter;
103 const char *str;
104 void *clientdata;
105 swig_dycast_func dcast;
106 struct swig_type_info *next;
107 struct swig_type_info *prev;
108 } swig_type_info;
109
110
111 SWIGIMPORT(swig_type_info *) SWIG_TypeRegister(swig_type_info *);
112 SWIGIMPORT(swig_type_info *) SWIG_TypeCheck(char *c, swig_type_info *);
113 SWIGIMPORT(void *) SWIG_TypeCast(swig_type_info *, void *);
114 SWIGIMPORT(swig_type_info *) SWIG_TypeDynamicCast(swig_type_info *, void **);
115 SWIGIMPORT(const char *) SWIG_TypeName(const swig_type_info *);
116 SWIGIMPORT(swig_type_info *) SWIG_TypeQuery(const char *);
117 SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info *, void *);
118 SWIGIMPORT(char *) SWIG_PackData(char *, void *, int);
119 SWIGIMPORT(char *) SWIG_UnpackData(char *, void *, int);
120
121
122 #ifdef __cplusplus
123 }
124 #endif
125
126 /***********************************************************************
127 * pyrun.swg for wxPython
128 *
129 * Include only the function prototypes and such from SWIG's pyrun.swg,
130 * but not the runtime functions themselves. This helps keep the
131 * wrapper files clean of unnecessary stuff that is in the libpy.c file
132 * anyway.
133 *
134 ************************************************************************/
135
136 #include "Python.h"
137
138 #ifdef __cplusplus
139 extern "C" {
140 #endif
141
142 #define SWIG_PY_INT 1
143 #define SWIG_PY_FLOAT 2
144 #define SWIG_PY_STRING 3
145 #define SWIG_PY_POINTER 4
146 #define SWIG_PY_BINARY 5
147
148 /* Flags for pointer conversion */
149
150 #define SWIG_POINTER_EXCEPTION 0x1
151 #define SWIG_POINTER_DISOWN 0x2
152
153 /* Exception handling in wrappers */
154 #define SWIG_fail goto fail
155
156 /* Constant information structure */
157 typedef struct swig_const_info {
158 int type;
159 char *name;
160 long lvalue;
161 double dvalue;
162 void *pvalue;
163 swig_type_info **ptype;
164 } swig_const_info;
165
166 /* Common SWIG API */
167 #define SWIG_ConvertPtr(obj, pp, type, flags) \
168 SWIG_Python_ConvertPtr(obj, pp, type, flags)
169 #define SWIG_NewPointerObj(p, type, flags) \
170 SWIG_Python_NewPointerObj(p, type, flags)
171 #define SWIG_MustGetPtr(p, type, argnum, flags) \
172 SWIG_Python_MustGetPtr(p, type, argnum, flags)
173
174 /* Python-specific SWIG API */
175 #define SWIG_newvarlink() \
176 SWIG_Python_newvarlink()
177 #define SWIG_addvarlink(p, name, get_attr, set_attr) \
178 SWIG_Python_addvarlink(p, name, get_attr, set_attr)
179 #define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) \
180 SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags)
181 #define SWIG_NewPackedObj(ptr, sz, type) \
182 SWIG_Python_NewPackedObj(ptr, sz, type)
183 #define SWIG_InstallConstants(d, constants) \
184 SWIG_Python_InstallConstants(d, constants)
185
186 typedef double (*py_objasdbl_conv)(PyObject *obj);
187
188 SWIGIMPORT(int) SWIG_Python_ConvertPtr(PyObject *, void **, swig_type_info *, int);
189 SWIGIMPORT(PyObject *) SWIG_Python_NewPointerObj(void *, swig_type_info *,int own);
190 SWIGIMPORT(void *) SWIG_Python_MustGetPtr(PyObject *, swig_type_info *, int, int);
191 SWIGIMPORT(PyObject *) SWIG_Python_newvarlink(void);
192 SWIGIMPORT(void) SWIG_Python_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *));
193 SWIGIMPORT(int) SWIG_Python_ConvertPacked(PyObject *, void *, int sz, swig_type_info *, int);
194 SWIGIMPORT(PyObject *) SWIG_Python_NewPackedObj(void *, int sz, swig_type_info *);
195 SWIGIMPORT(void) SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]);
196
197
198 /* Contract support */
199
200 #define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else
201
202 #ifdef __cplusplus
203 }
204 #endif
205
206
207 /* -------- TYPES TABLE (BEGIN) -------- */
208
209 #define SWIGTYPE_p_wxLogChain swig_types[0]
210 #define SWIGTYPE_p_wxMutexGuiLocker swig_types[1]
211 #define SWIGTYPE_p_wxFileHistory swig_types[2]
212 #define SWIGTYPE_p_wxLog swig_types[3]
213 #define SWIGTYPE_p_wxDateTime__TimeZone swig_types[4]
214 #define SWIGTYPE_p_wxMenu swig_types[5]
215 #define SWIGTYPE_p_wxEvent swig_types[6]
216 #define SWIGTYPE_p_wxConfigBase swig_types[7]
217 #define SWIGTYPE_p_wxDisplay swig_types[8]
218 #define SWIGTYPE_p_wxFileType swig_types[9]
219 #define SWIGTYPE_p_wxLogGui swig_types[10]
220 #define SWIGTYPE_p_wxFont swig_types[11]
221 #define SWIGTYPE_p_wxDataFormat swig_types[12]
222 #define SWIGTYPE_p_wxTimerEvent swig_types[13]
223 #define SWIGTYPE_p_wxCaret swig_types[14]
224 #define SWIGTYPE_p_int swig_types[15]
225 #define SWIGTYPE_p_wxSize swig_types[16]
226 #define SWIGTYPE_p_wxClipboard swig_types[17]
227 #define SWIGTYPE_p_wxStopWatch swig_types[18]
228 #define SWIGTYPE_p_wxDC swig_types[19]
229 #define SWIGTYPE_p_wxClipboardLocker swig_types[20]
230 #define SWIGTYPE_p_wxIcon swig_types[21]
231 #define SWIGTYPE_p_wxLogStderr swig_types[22]
232 #define SWIGTYPE_p_wxLogTextCtrl swig_types[23]
233 #define SWIGTYPE_p_wxTextCtrl swig_types[24]
234 #define SWIGTYPE_p_wxBusyCursor swig_types[25]
235 #define SWIGTYPE_p_wxPyBitmapDataObject swig_types[26]
236 #define SWIGTYPE_p_wxPyTextDataObject swig_types[27]
237 #define SWIGTYPE_p_wxBitmapDataObject swig_types[28]
238 #define SWIGTYPE_p_wxTextDataObject swig_types[29]
239 #define SWIGTYPE_p_wxDataObject swig_types[30]
240 #define SWIGTYPE_p_wxFileDataObject swig_types[31]
241 #define SWIGTYPE_p_wxCustomDataObject swig_types[32]
242 #define SWIGTYPE_p_wxURLDataObject swig_types[33]
243 #define SWIGTYPE_p_wxMetafileDataObject swig_types[34]
244 #define SWIGTYPE_p_wxSound swig_types[35]
245 #define SWIGTYPE_p_wxTimerRunner swig_types[36]
246 #define SWIGTYPE_p_wxLogWindow swig_types[37]
247 #define SWIGTYPE_p_wxTimeSpan swig_types[38]
248 #define SWIGTYPE_p_wxArrayString swig_types[39]
249 #define SWIGTYPE_p_wxWindowDisabler swig_types[40]
250 #define SWIGTYPE_p_wxToolTip swig_types[41]
251 #define SWIGTYPE_p_wxDataObjectComposite swig_types[42]
252 #define SWIGTYPE_p_wxFileConfig swig_types[43]
253 #define SWIGTYPE_p_wxSystemSettings swig_types[44]
254 #define SWIGTYPE_p_wxVideoMode swig_types[45]
255 #define SWIGTYPE_p_wxPyDataObjectSimple swig_types[46]
256 #define SWIGTYPE_p_wxDataObjectSimple swig_types[47]
257 #define SWIGTYPE_p_wxEvtHandler swig_types[48]
258 #define SWIGTYPE_p_wxRect swig_types[49]
259 #define SWIGTYPE_p_char swig_types[50]
260 #define SWIGTYPE_p_wxSingleInstanceChecker swig_types[51]
261 #define SWIGTYPE_p_wxFileTypeInfo swig_types[52]
262 #define SWIGTYPE_p_wxFrame swig_types[53]
263 #define SWIGTYPE_p_wxTimer swig_types[54]
264 #define SWIGTYPE_p_wxMimeTypesManager swig_types[55]
265 #define SWIGTYPE_p_wxPyArtProvider swig_types[56]
266 #define SWIGTYPE_p_wxPyTipProvider swig_types[57]
267 #define SWIGTYPE_p_wxTipProvider swig_types[58]
268 #define SWIGTYPE_p_wxJoystick swig_types[59]
269 #define SWIGTYPE_p_wxSystemOptions swig_types[60]
270 #define SWIGTYPE_p_wxPoint swig_types[61]
271 #define SWIGTYPE_p_wxJoystickEvent swig_types[62]
272 #define SWIGTYPE_p_wxCursor swig_types[63]
273 #define SWIGTYPE_p_wxObject swig_types[64]
274 #define SWIGTYPE_p_wxOutputStream swig_types[65]
275 #define SWIGTYPE_p_wxDateTime swig_types[66]
276 #define SWIGTYPE_p_wxPyDropSource swig_types[67]
277 #define SWIGTYPE_p_wxWindow swig_types[68]
278 #define SWIGTYPE_p_wxString swig_types[69]
279 #define SWIGTYPE_p_wxPyProcess swig_types[70]
280 #define SWIGTYPE_p_wxBitmap swig_types[71]
281 #define SWIGTYPE_p_wxConfig swig_types[72]
282 #define SWIGTYPE_p_wxChar swig_types[73]
283 #define SWIGTYPE_p_wxBusyInfo swig_types[74]
284 #define SWIGTYPE_p_wxPyDropTarget swig_types[75]
285 #define SWIGTYPE_p_wxPyTextDropTarget swig_types[76]
286 #define SWIGTYPE_p_wxPyFileDropTarget swig_types[77]
287 #define SWIGTYPE_p_wxProcessEvent swig_types[78]
288 #define SWIGTYPE_p_wxPyLog swig_types[79]
289 #define SWIGTYPE_p_wxLogNull swig_types[80]
290 #define SWIGTYPE_p_wxColour swig_types[81]
291 #define SWIGTYPE_p_wxConfigPathChanger swig_types[82]
292 #define SWIGTYPE_p_wxPyTimer swig_types[83]
293 #define SWIGTYPE_p_wxDateSpan swig_types[84]
294 static swig_type_info *swig_types[86];
295
296 /* -------- TYPES TABLE (END) -------- */
297
298
299 /*-----------------------------------------------
300 @(target):= _misc_.so
301 ------------------------------------------------*/
302 #define SWIG_init init_misc_
303
304 #define SWIG_name "_misc_"
305
306 /* Auxiliar swig macros */
307
308 #ifdef __cplusplus
309 #define SWIGSTATICINLINE(a) static inline a
310 #define SWIGSTATIC(a) static a
311 #define swig_new_array(type, size) (new type[(size)])
312 #define swig_delete_array(cptr) delete[] cptr
313 #define swig_const_cast(type,a) const_cast<type>(a)
314 #define swig_static_cast(type,a) static_cast<type>(a)
315 #define swig_reinterpret_cast(type,a) reinterpret_cast<type>(a)
316
317 #ifdef HAVE_NUMERIC_CAST
318 #define swig_numeric_cast(type,a) numeric_cast<type>(a)
319 #else
320 #define swig_numeric_cast(type,a) static_cast<type>(a)
321 #endif
322
323 #else /* C case */
324
325 #define SWIGSTATICINLINE(a) static a
326 #define SWIGSTATIC(a) static a
327 #define swig_new_array(type, size) ((type*) malloc((size)*sizeof(type)))
328 #define swig_delete_array(cptr) free((char*)cptr)
329 #define swig_const_cast(type,a) (type)(a)
330 #define swig_static_cast(type,a) (type)(a)
331 #define swig_reinterpret_cast(type,a) (type)(a)
332 #define swig_numeric_cast(type,a) (type)(a)
333
334 #endif /* __cplusplus */
335
336
337 #define SWIG_FromSignedChar PyInt_FromLong
338 #define SWIG_FromUnsignedChar PyInt_FromLong
339 #define SWIG_FromShort PyInt_FromLong
340 #define SWIG_FromUnsignedShort PyInt_FromLong
341 #define SWIG_FromInt PyInt_FromLong
342 #define SWIG_FromLong PyInt_FromLong
343 #define SWIG_FromFloat PyFloat_FromDouble
344 #define SWIG_FromDouble PyFloat_FromDouble
345 #define SWIG_FromFloat PyFloat_FromDouble
346 #define SWIG_FromDouble PyFloat_FromDouble
347
348
349 #include "wx/wxPython/wxPython.h"
350 #include "wx/wxPython/pyclasses.h"
351 #include "wx/wxPython/pyistream.h"
352
353 static const wxString wxPyEmptyString(wxEmptyString);
354
355
356
357 #include <limits.h>
358
359
360 SWIGSTATICINLINE(long)
361 SWIG_CheckLongInRange(long value, const char* type,
362 long min_value, long max_value)
363 {
364 if (!PyErr_Occurred()) {
365 if (value < min_value) {
366 PyObject *err =
367 PyString_FromFormat("value %ld is less than '%s' minimum %ld",
368 value, type, min_value);
369
370 PyErr_SetObject(PyExc_OverflowError, err);
371 Py_DECREF(err);
372 } else if (value > max_value) {
373 PyObject *err =
374 PyString_FromFormat("value %ld is greater than '%s' maximum %ld",
375 value, type, max_value);
376 PyErr_SetObject(PyExc_OverflowError, err);
377 Py_DECREF(err);
378 }
379 }
380 return value;
381 }
382
383
384 SWIGSTATICINLINE(long)
385 SWIG_AsLong(PyObject * obj)
386 {
387 if (PyNumber_Check(obj))
388 return PyInt_AsLong(obj);
389 else {
390 PyObject* errmsg = PyString_FromFormat("Expected number, got %s",
391 obj->ob_type->tp_name);
392 PyErr_SetObject(PyExc_TypeError, errmsg);
393 Py_DECREF(errmsg);
394 return 0;
395 }
396 }
397
398
399 #if INT_MAX != LONG_MAX
400 SWIGSTATICINLINE(int)
401 SWIG_AsInt(PyObject *obj)
402 {
403 return swig_numeric_cast(int,
404 SWIG_CheckLongInRange(SWIG_AsLong(obj),
405 "int", INT_MIN, INT_MAX));
406 }
407 #else
408 #define SWIG_AsInt SWIG_AsLong
409 #endif
410
411
412 SWIGSTATICINLINE(int)
413 SWIG_CheckInt(PyObject* obj)
414 {
415 SWIG_AsInt(obj);
416 if (PyErr_Occurred()) {
417 PyErr_Clear();
418 return 0;
419 } else {
420 return 1;
421 }
422 }
423
424
425 #include <wx/stockitem.h>
426
427 static const wxString wxPyFileSelectorPromptStr(wxFileSelectorPromptStr);
428 static const wxString wxPyFileSelectorDefaultWildcardStr(wxFileSelectorDefaultWildcardStr);
429 static const wxString wxPyDirSelectorPromptStr(wxDirSelectorPromptStr);
430
431 SWIGSTATICINLINE(int)
432 SWIG_CheckLong(PyObject* obj)
433 {
434 SWIG_AsLong(obj);
435 if (PyErr_Occurred()) {
436 PyErr_Clear();
437 return 0;
438 } else {
439 return 1;
440 }
441 }
442
443
444 SWIGSTATICINLINE(bool)
445 SWIG_AsBool(PyObject *obj)
446 {
447 return PyObject_IsTrue(obj) ? true : false;
448 }
449
450
451 SWIGSTATICINLINE(int)
452 SWIG_CheckBool(PyObject* obj)
453 {
454 SWIG_AsBool(obj);
455 if (PyErr_Occurred()) {
456 PyErr_Clear();
457 return 0;
458 } else {
459 return 1;
460 }
461 }
462
463
464 static PyObject* t_output_helper(PyObject* target, PyObject* o) {
465 PyObject* o2;
466 PyObject* o3;
467
468 if (!target) {
469 target = o;
470 } else if (target == Py_None) {
471 Py_DECREF(Py_None);
472 target = o;
473 } else {
474 if (!PyTuple_Check(target)) {
475 o2 = target;
476 target = PyTuple_New(1);
477 PyTuple_SetItem(target, 0, o2);
478 }
479 o3 = PyTuple_New(1);
480 PyTuple_SetItem(o3, 0, o);
481
482 o2 = target;
483 target = PySequence_Concat(o2, o3);
484 Py_DECREF(o2);
485 Py_DECREF(o3);
486 }
487 return target;
488 }
489
490
491 long wxGetFreeMemory()
492 { wxPyRaiseNotImplemented(); return 0; }
493
494
495 SWIGSTATICINLINE(unsigned long)
496 SWIG_AsUnsignedLong(PyObject * obj)
497 {
498 if (PyLong_Check(obj)) {
499 return PyLong_AsUnsignedLong(obj);
500 } else {
501 long i = SWIG_AsLong(obj);
502 if ( !PyErr_Occurred() && (i < 0)) {
503 PyErr_SetString(PyExc_TypeError, "negative value received for unsigned type");
504 }
505 return i;
506 }
507 }
508
509
510 SWIGSTATICINLINE(int)
511 SWIG_CheckUnsignedLong(PyObject* obj)
512 {
513 SWIG_AsUnsignedLong(obj);
514 if (PyErr_Occurred()) {
515 PyErr_Clear();
516 return 0;
517 } else {
518 return 1;
519 }
520 }
521
522
523 SWIGSTATICINLINE(PyObject* )
524 SWIG_FromUnsignedLong(unsigned long value)
525 {
526 return (value > LONG_MAX) ?
527 PyLong_FromUnsignedLong(value)
528 : PyInt_FromLong(swig_numeric_cast(long,value));
529 }
530
531
532 void wxWakeUpMainThread() {}
533
534
535 bool wxThread_IsMain() {
536 #ifdef WXP_WITH_THREAD
537 return wxThread::IsMain();
538 #else
539 return True;
540 #endif
541 }
542
543
544 int wxCaret_GetBlinkTime() {
545 return wxCaret::GetBlinkTime();
546 }
547
548 void wxCaret_SetBlinkTime(int milliseconds) {
549 wxCaret::SetBlinkTime(milliseconds);
550 }
551
552
553 #include <wx/snglinst.h>
554
555
556 #ifdef __WXMSW__
557 #include <wx/msw/private.h>
558 #include <wx/dynload.h>
559 #endif
560
561
562
563 void wxDrawWindowOnDC(wxWindow* window, const wxDC& dc, int method)
564 {
565 #ifdef __WXMSW__
566
567 switch (method)
568 {
569 case 1:
570 // This one only partially works. Appears to be an undocumented
571 // "standard" convention that not all widgets adhear to. For
572 // example, for some widgets backgrounds or non-client areas may
573 // not be painted.
574 ::SendMessage(GetHwndOf(window), WM_PAINT, (long)GetHdcOf(dc), 0);
575 break;
576
577 case 2:
578 // This one works much better, except for on XP. On Win2k nearly
579 // all widgets and their children are captured correctly[**]. On
580 // XP with Themes activated most native widgets draw only
581 // partially, if at all. Without themes it works just like on
582 // Win2k.
583 //
584 // ** For example the radio buttons in a wxRadioBox are not its
585 // children by default, but you can capture it via the panel
586 // instead, or change RADIOBTN_PARENT_IS_RADIOBOX in radiobox.cpp.
587 ::SendMessage(GetHwndOf(window), WM_PRINT, (long)GetHdcOf(dc),
588 PRF_CLIENT | PRF_NONCLIENT | PRF_CHILDREN |
589 PRF_ERASEBKGND | PRF_OWNED );
590 break;
591
592 case 3:
593 // This one is only defined in the latest SDK and is only
594 // available on XP. MSDN says it is similar to sending WM_PRINT
595 // so I expect that it will work similar to the above. Since it
596 // is avaialble only on XP, it can't be compiled like this and
597 // will have to be loaded dynamically.
598 // //::PrintWindow(GetHwndOf(window), GetHdcOf(dc), 0); //break;
599
600 // fall through
601
602 case 4:
603 // Use PrintWindow if available, or fallback to WM_PRINT
604 // otherwise. Unfortunately using PrintWindow is even worse than
605 // WM_PRINT. For most native widgets nothing is drawn to the dc
606 // at all, with or without Themes.
607 typedef BOOL (WINAPI *PrintWindow_t)(HWND, HDC, UINT);
608 static bool s_triedToLoad = False;
609 static PrintWindow_t pfnPrintWindow = NULL;
610 if ( !s_triedToLoad )
611 {
612
613 s_triedToLoad = True;
614 wxDynamicLibrary dllUser32(_T("user32.dll"));
615 if ( dllUser32.IsLoaded() )
616 {
617 wxLogNull nolog; // Don't report errors here
618 pfnPrintWindow = (PrintWindow_t)dllUser32.GetSymbol(_T("PrintWindow"));
619 }
620 }
621 if (pfnPrintWindow)
622 {
623 printf("Using PrintWindow\n");
624 pfnPrintWindow(GetHwndOf(window), GetHdcOf(dc), 0);
625 }
626 else
627 {
628 printf("Using WM_PRINT\n");
629 ::SendMessage(GetHwndOf(window), WM_PRINT, (long)GetHdcOf(dc),
630 PRF_CLIENT | PRF_NONCLIENT | PRF_CHILDREN | PRF_ERASEBKGND | PRF_OWNED );
631 }
632 }
633 #endif
634 }
635
636
637
638 #include <wx/tipdlg.h>
639
640
641 class wxPyTipProvider : public wxTipProvider {
642 public:
643 wxPyTipProvider(size_t currentTip)
644 : wxTipProvider(currentTip) {}
645
646 DEC_PYCALLBACK_STRING__pure(GetTip);
647 DEC_PYCALLBACK_STRING_STRING(PreprocessTip);
648 PYPRIVATE;
649 };
650
651 IMP_PYCALLBACK_STRING__pure( wxPyTipProvider, wxTipProvider, GetTip);
652 IMP_PYCALLBACK_STRING_STRING(wxPyTipProvider, wxTipProvider, PreprocessTip);
653
654
655 //IMP_PYCALLBACK__(wxPyTimer, wxTimer, Notify);
656
657 IMPLEMENT_ABSTRACT_CLASS(wxPyTimer, wxTimer);
658
659 void wxPyTimer::Notify() {
660 bool found;
661 bool blocked = wxPyBeginBlockThreads();
662 if ((found = wxPyCBH_findCallback(m_myInst, "Notify")))
663 wxPyCBH_callCallback(m_myInst, Py_BuildValue("()"));
664 wxPyEndBlockThreads(blocked);
665 if (! found)
666 wxTimer::Notify();
667 }
668 void wxPyTimer::base_Notify() {
669 wxTimer::Notify();
670 }
671
672
673
674 SWIGSTATICINLINE(PyObject *)
675 SWIG_FromCharPtr(const char* cptr)
676 {
677 size_t size = cptr ? strlen(cptr) : 0;
678 if (cptr) {
679 if (size > INT_MAX) {
680 return SWIG_NewPointerObj(swig_const_cast(char*,cptr),
681 SWIG_TypeQuery("char *"), 0);
682 } else {
683 return PyString_FromStringAndSize(cptr, swig_numeric_cast(int,size));
684 }
685 } else {
686 Py_INCREF(Py_None);
687 return Py_None;
688 }
689 }
690
691
692 SWIGSTATICINLINE(unsigned long)
693 SWIG_CheckUnsignedLongInRange(unsigned long value, const char* type,
694 unsigned long max_value)
695 {
696 if (!PyErr_Occurred()) {
697 if (value > max_value) {
698 PyObject *err =
699 PyString_FromFormat("value %ld is greater than '%s' minimum %ld",
700 value, type, max_value);
701 PyErr_SetObject(PyExc_OverflowError, err);
702 Py_DECREF(err);
703 }
704 }
705 return value;
706 }
707
708
709 #if UINT_MAX != ULONG_MAX
710 SWIGSTATICINLINE(unsigned int)
711 SWIG_AsUnsignedInt(PyObject *obj)
712 {
713 return swig_numeric_cast(unsigned int,
714 SWIG_CheckUnsignedLongInRange(SWIG_AsUnsignedLong(obj),
715 "unsigned int", UINT_MAX));
716 }
717 #else
718 #define SWIG_AsUnsignedInt SWIG_AsUnsignedLong
719 #endif
720
721
722 SWIGSTATICINLINE(int)
723 SWIG_CheckUnsignedInt(PyObject* obj)
724 {
725 SWIG_AsUnsignedInt(obj);
726 if (PyErr_Occurred()) {
727 PyErr_Clear();
728 return 0;
729 } else {
730 return 1;
731 }
732 }
733
734 wxString Log_TimeStamp(){
735 wxString msg;
736 wxLog::TimeStamp(&msg);
737 return msg;
738 }
739 void wxLog_Destroy(wxLog *self){ delete self; }
740
741 // A wxLog class that can be derived from in wxPython
742 class wxPyLog : public wxLog {
743 public:
744 wxPyLog() : wxLog() {}
745
746 virtual void DoLog(wxLogLevel level, const wxChar *szString, time_t t) {
747 bool found;
748 bool blocked = wxPyBeginBlockThreads();
749 if ((found = wxPyCBH_findCallback(m_myInst, "DoLog"))) {
750 PyObject* s = wx2PyString(szString);
751 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iOi)", level, s, t));
752 Py_DECREF(s);
753 }
754 wxPyEndBlockThreads(blocked);
755 if (! found)
756 wxLog::DoLog(level, szString, t);
757 }
758
759 virtual void DoLogString(const wxChar *szString, time_t t) {
760 bool found;
761 bool blocked = wxPyBeginBlockThreads();
762 if ((found = wxPyCBH_findCallback(m_myInst, "DoLogString"))) {
763 PyObject* s = wx2PyString(szString);
764 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(Oi)", s, t));
765 Py_DECREF(s);
766 }
767 wxPyEndBlockThreads(blocked);
768 if (! found)
769 wxLog::DoLogString(szString, t);
770 }
771
772 PYPRIVATE;
773 };
774
775
776
777
778 IMP_PYCALLBACK_VOID_INTINT( wxPyProcess, wxProcess, OnTerminate);
779
780
781 #include <wx/joystick.h>
782
783
784 #if !wxUSE_JOYSTICK && !defined(__WXMSW__)
785 // A C++ stub class for wxJoystick for platforms that don't have it.
786 class wxJoystick : public wxObject {
787 public:
788 wxJoystick(int joystick = wxJOYSTICK1) {
789 bool blocked = wxPyBeginBlockThreads();
790 PyErr_SetString(PyExc_NotImplementedError,
791 "wxJoystick is not available on this platform.");
792 wxPyEndBlockThreads(blocked);
793 }
794 wxPoint GetPosition() { return wxPoint(-1,-1); }
795 int GetZPosition() { return -1; }
796 int GetButtonState() { return -1; }
797 int GetPOVPosition() { return -1; }
798 int GetPOVCTSPosition() { return -1; }
799 int GetRudderPosition() { return -1; }
800 int GetUPosition() { return -1; }
801 int GetVPosition() { return -1; }
802 int GetMovementThreshold() { return -1; }
803 void SetMovementThreshold(int threshold) {}
804
805 bool IsOk(void) { return False; }
806 int GetNumberJoysticks() { return -1; }
807 int GetManufacturerId() { return -1; }
808 int GetProductId() { return -1; }
809 wxString GetProductName() { return wxEmptyString; }
810 int GetXMin() { return -1; }
811 int GetYMin() { return -1; }
812 int GetZMin() { return -1; }
813 int GetXMax() { return -1; }
814 int GetYMax() { return -1; }
815 int GetZMax() { return -1; }
816 int GetNumberButtons() { return -1; }
817 int GetNumberAxes() { return -1; }
818 int GetMaxButtons() { return -1; }
819 int GetMaxAxes() { return -1; }
820 int GetPollingMin() { return -1; }
821 int GetPollingMax() { return -1; }
822 int GetRudderMin() { return -1; }
823 int GetRudderMax() { return -1; }
824 int GetUMin() { return -1; }
825 int GetUMax() { return -1; }
826 int GetVMin() { return -1; }
827 int GetVMax() { return -1; }
828
829 bool HasRudder() { return False; }
830 bool HasZ() { return False; }
831 bool HasU() { return False; }
832 bool HasV() { return False; }
833 bool HasPOV() { return False; }
834 bool HasPOV4Dir() { return False; }
835 bool HasPOVCTS() { return False; }
836
837 bool SetCapture(wxWindow* win, int pollingFreq = 0) { return False; }
838 bool ReleaseCapture() { return False; }
839 };
840 #endif
841
842
843 #include <wx/sound.h>
844
845
846 #if !wxUSE_SOUND
847 // A C++ stub class for wxWave for platforms that don't have it.
848 class wxSound : public wxObject
849 {
850 public:
851 wxSound() {
852 bool blocked = wxPyBeginBlockThreads();
853 PyErr_SetString(PyExc_NotImplementedError,
854 "wxSound is not available on this platform.");
855 wxPyEndBlockThreads(blocked);
856 }
857 wxSound(const wxString&/*, bool*/) {
858 bool blocked = wxPyBeginBlockThreads();
859 PyErr_SetString(PyExc_NotImplementedError,
860 "wxSound is not available on this platform.");
861 wxPyEndBlockThreads(blocked);
862 }
863 wxSound(int, const wxByte*) {
864 bool blocked = wxPyBeginBlockThreads();
865 PyErr_SetString(PyExc_NotImplementedError,
866 "wxSound is not available on this platform.");
867 wxPyEndBlockThreads(blocked);
868 }
869
870 ~wxSound() {};
871
872 bool Create(const wxString&/*, bool*/) { return false; }
873 bool Create(int, const wxByte*) { return false; };
874 bool IsOk() { return false; };
875 bool Play(unsigned) const { return false; }
876 static bool Play(const wxString&, unsigned) { return false; }
877 static void Stop() {}
878 };
879
880 #endif
881
882 wxSound *new_wxSound(wxString const &fileName){
883 if (fileName.Length() == 0)
884 return new wxSound;
885 else
886 return new wxSound(fileName);
887 }
888 wxSound *new_wxSound(PyObject *data){
889 unsigned char* buffer; int size;
890 wxSound *sound = NULL;
891
892 bool blocked = wxPyBeginBlockThreads();
893 if (!PyArg_Parse(data, "t#", &buffer, &size))
894 goto done;
895 sound = new wxSound(size, buffer);
896 done:
897 wxPyEndBlockThreads(blocked);
898 return sound;
899 }
900 bool wxSound_CreateFromData(wxSound *self,PyObject *data){
901 #ifndef __WXMAC__
902 unsigned char* buffer;
903 int size;
904 bool rv = False;
905
906 bool blocked = wxPyBeginBlockThreads();
907 if (!PyArg_Parse(data, "t#", &buffer, &size))
908 goto done;
909 rv = self->Create(size, buffer);
910 done:
911 wxPyEndBlockThreads(blocked);
912 return rv;
913 #else
914 bool blocked = wxPyBeginBlockThreads();
915 PyErr_SetString(PyExc_NotImplementedError,
916 "Create from data is not available on this platform.");
917 wxPyEndBlockThreads(blocked);
918 return False;
919 #endif
920 }
921
922 #include <wx/mimetype.h>
923
924 PyObject *wxFileType_GetMimeType(wxFileType *self){
925 wxString str;
926 if (self->GetMimeType(&str))
927 return wx2PyString(str);
928 else
929 RETURN_NONE();
930 }
931 PyObject *wxFileType_GetMimeTypes(wxFileType *self){
932 wxArrayString arr;
933 if (self->GetMimeTypes(arr))
934 return wxArrayString2PyList_helper(arr);
935 else
936 RETURN_NONE();
937 }
938 PyObject *wxFileType_GetExtensions(wxFileType *self){
939 wxArrayString arr;
940 if (self->GetExtensions(arr))
941 return wxArrayString2PyList_helper(arr);
942 else
943 RETURN_NONE();
944 }
945 wxIcon *wxFileType_GetIcon(wxFileType *self){
946 wxIconLocation loc;
947 if (self->GetIcon(&loc))
948 return new wxIcon(loc);
949 else
950 return NULL;
951 }
952 PyObject *wxFileType_GetIconInfo(wxFileType *self){
953 wxIconLocation loc;
954 if (self->GetIcon(&loc)) {
955 wxString iconFile = loc.GetFileName();
956 int iconIndex = -1;
957
958
959
960 // Make a tuple and put the values in it
961 bool blocked = wxPyBeginBlockThreads();
962 PyObject* tuple = PyTuple_New(3);
963 PyTuple_SetItem(tuple, 0, wxPyConstructObject(new wxIcon(loc),
964 wxT("wxIcon"), True));
965 PyTuple_SetItem(tuple, 1, wx2PyString(iconFile));
966 PyTuple_SetItem(tuple, 2, PyInt_FromLong(iconIndex));
967 wxPyEndBlockThreads(blocked);
968 return tuple;
969 }
970 else
971 RETURN_NONE();
972 }
973 PyObject *wxFileType_GetDescription(wxFileType *self){
974 wxString str;
975 if (self->GetDescription(&str))
976 return wx2PyString(str);
977 else
978 RETURN_NONE();
979 }
980 PyObject *wxFileType_GetOpenCommand(wxFileType *self,wxString const &filename,wxString const &mimetype){
981 wxString str;
982 if (self->GetOpenCommand(&str, wxFileType::MessageParameters(filename, mimetype)))
983 return wx2PyString(str);
984 else
985 RETURN_NONE();
986 }
987 PyObject *wxFileType_GetPrintCommand(wxFileType *self,wxString const &filename,wxString const &mimetype){
988 wxString str;
989 if (self->GetPrintCommand(&str, wxFileType::MessageParameters(filename, mimetype)))
990 return wx2PyString(str);
991 else
992 RETURN_NONE();
993 }
994 PyObject *wxFileType_GetAllCommands(wxFileType *self,wxString const &filename,wxString const &mimetype){
995 wxArrayString verbs;
996 wxArrayString commands;
997 if (self->GetAllCommands(&verbs, &commands,
998 wxFileType::MessageParameters(filename, mimetype))) {
999 bool blocked = wxPyBeginBlockThreads();
1000 PyObject* tuple = PyTuple_New(2);
1001 PyTuple_SetItem(tuple, 0, wxArrayString2PyList_helper(verbs));
1002 PyTuple_SetItem(tuple, 1, wxArrayString2PyList_helper(commands));
1003 wxPyEndBlockThreads(blocked);
1004 return tuple;
1005 }
1006 else
1007 RETURN_NONE();
1008 }
1009 wxString FileType_ExpandCommand(wxString const &command,wxString const &filename,wxString const &mimetype){
1010 return wxFileType::ExpandCommand(command,
1011 wxFileType::MessageParameters(filename, mimetype));
1012 }
1013 PyObject *wxMimeTypesManager_EnumAllFileTypes(wxMimeTypesManager *self){
1014 wxArrayString arr;
1015 self->EnumAllFileTypes(arr);
1016 return wxArrayString2PyList_helper(arr);
1017 }
1018
1019 #include <wx/artprov.h>
1020
1021 static const wxString wxPyART_TOOLBAR(wxART_TOOLBAR);
1022 static const wxString wxPyART_MENU(wxART_MENU);
1023 static const wxString wxPyART_FRAME_ICON(wxART_FRAME_ICON);
1024 static const wxString wxPyART_CMN_DIALOG(wxART_CMN_DIALOG);
1025 static const wxString wxPyART_HELP_BROWSER(wxART_HELP_BROWSER);
1026 static const wxString wxPyART_MESSAGE_BOX(wxART_MESSAGE_BOX);
1027 static const wxString wxPyART_BUTTON(wxART_BUTTON);
1028 static const wxString wxPyART_OTHER(wxART_OTHER);
1029 static const wxString wxPyART_ADD_BOOKMARK(wxART_ADD_BOOKMARK);
1030 static const wxString wxPyART_DEL_BOOKMARK(wxART_DEL_BOOKMARK);
1031 static const wxString wxPyART_HELP_SIDE_PANEL(wxART_HELP_SIDE_PANEL);
1032 static const wxString wxPyART_HELP_SETTINGS(wxART_HELP_SETTINGS);
1033 static const wxString wxPyART_HELP_BOOK(wxART_HELP_BOOK);
1034 static const wxString wxPyART_HELP_FOLDER(wxART_HELP_FOLDER);
1035 static const wxString wxPyART_HELP_PAGE(wxART_HELP_PAGE);
1036 static const wxString wxPyART_GO_BACK(wxART_GO_BACK);
1037 static const wxString wxPyART_GO_FORWARD(wxART_GO_FORWARD);
1038 static const wxString wxPyART_GO_UP(wxART_GO_UP);
1039 static const wxString wxPyART_GO_DOWN(wxART_GO_DOWN);
1040 static const wxString wxPyART_GO_TO_PARENT(wxART_GO_TO_PARENT);
1041 static const wxString wxPyART_GO_HOME(wxART_GO_HOME);
1042 static const wxString wxPyART_FILE_OPEN(wxART_FILE_OPEN);
1043 static const wxString wxPyART_PRINT(wxART_PRINT);
1044 static const wxString wxPyART_HELP(wxART_HELP);
1045 static const wxString wxPyART_TIP(wxART_TIP);
1046 static const wxString wxPyART_REPORT_VIEW(wxART_REPORT_VIEW);
1047 static const wxString wxPyART_LIST_VIEW(wxART_LIST_VIEW);
1048 static const wxString wxPyART_NEW_DIR(wxART_NEW_DIR);
1049 static const wxString wxPyART_FOLDER(wxART_FOLDER);
1050 static const wxString wxPyART_GO_DIR_UP(wxART_GO_DIR_UP);
1051 static const wxString wxPyART_EXECUTABLE_FILE(wxART_EXECUTABLE_FILE);
1052 static const wxString wxPyART_NORMAL_FILE(wxART_NORMAL_FILE);
1053 static const wxString wxPyART_TICK_MARK(wxART_TICK_MARK);
1054 static const wxString wxPyART_CROSS_MARK(wxART_CROSS_MARK);
1055 static const wxString wxPyART_ERROR(wxART_ERROR);
1056 static const wxString wxPyART_QUESTION(wxART_QUESTION);
1057 static const wxString wxPyART_WARNING(wxART_WARNING);
1058 static const wxString wxPyART_INFORMATION(wxART_INFORMATION);
1059 static const wxString wxPyART_MISSING_IMAGE(wxART_MISSING_IMAGE);
1060 // Python aware wxArtProvider
1061 class wxPyArtProvider : public wxArtProvider {
1062 public:
1063
1064 virtual wxBitmap CreateBitmap(const wxArtID& id,
1065 const wxArtClient& client,
1066 const wxSize& size) {
1067 wxBitmap rval = wxNullBitmap;
1068 bool blocked = wxPyBeginBlockThreads();
1069 if ((wxPyCBH_findCallback(m_myInst, "CreateBitmap"))) {
1070 PyObject* so = wxPyConstructObject((void*)&size, wxT("wxSize"), 0);
1071 PyObject* ro;
1072 wxBitmap* ptr;
1073 PyObject* s1, *s2;
1074 s1 = wx2PyString(id);
1075 s2 = wx2PyString(client);
1076 ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OOO)", s1, s2, so));
1077 Py_DECREF(so);
1078 Py_DECREF(s1);
1079 Py_DECREF(s2);
1080 if (ro) {
1081 if (wxPyConvertSwigPtr(ro, (void**)&ptr, wxT("wxBitmap")))
1082 rval = *ptr;
1083 Py_DECREF(ro);
1084 }
1085 }
1086 wxPyEndBlockThreads(blocked);
1087 return rval;
1088 }
1089
1090 PYPRIVATE;
1091 };
1092
1093 void wxPyArtProvider_Destroy(wxPyArtProvider *self){ delete self; }
1094
1095
1096
1097 static PyObject* __EnumerationHelper(bool flag, wxString& str, long index) {
1098 PyObject* ret = PyTuple_New(3);
1099 if (ret) {
1100 PyTuple_SET_ITEM(ret, 0, PyInt_FromLong(flag));
1101 PyTuple_SET_ITEM(ret, 1, wx2PyString(str));
1102 PyTuple_SET_ITEM(ret, 2, PyInt_FromLong(index));
1103 }
1104 return ret;
1105 }
1106
1107 PyObject *wxConfigBase_GetFirstGroup(wxConfigBase *self){
1108 bool cont;
1109 long index = 0;
1110 wxString value;
1111
1112 cont = self->GetFirstGroup(value, index);
1113 return __EnumerationHelper(cont, value, index);
1114 }
1115 PyObject *wxConfigBase_GetNextGroup(wxConfigBase *self,long index){
1116 bool cont;
1117 wxString value;
1118
1119 cont = self->GetNextGroup(value, index);
1120 return __EnumerationHelper(cont, value, index);
1121 }
1122 PyObject *wxConfigBase_GetFirstEntry(wxConfigBase *self){
1123 bool cont;
1124 long index = 0;
1125 wxString value;
1126
1127 cont = self->GetFirstEntry(value, index);
1128 return __EnumerationHelper(cont, value, index);
1129 }
1130 PyObject *wxConfigBase_GetNextEntry(wxConfigBase *self,long index){
1131 bool cont;
1132 wxString value;
1133
1134 cont = self->GetNextEntry(value, index);
1135 return __EnumerationHelper(cont, value, index);
1136 }
1137 long wxConfigBase_ReadInt(wxConfigBase *self,wxString const &key,long defaultVal){
1138 long rv;
1139 self->Read(key, &rv, defaultVal);
1140 return rv;
1141 }
1142
1143 SWIGSTATICINLINE(double)
1144 SWIG_AsDouble(PyObject *obj)
1145 {
1146 if (PyNumber_Check(obj))
1147 return PyFloat_AsDouble(obj);
1148 else {
1149 PyObject* errmsg = PyString_FromFormat("Expected number, got %s",
1150 obj->ob_type->tp_name);
1151 PyErr_SetObject(PyExc_TypeError, errmsg);
1152 Py_DECREF(errmsg);
1153 return 0;
1154 }
1155 }
1156
1157
1158 SWIGSTATICINLINE(int)
1159 SWIG_CheckDouble(PyObject* obj)
1160 {
1161 SWIG_AsDouble(obj);
1162 if (PyErr_Occurred()) {
1163 PyErr_Clear();
1164 return 0;
1165 } else {
1166 return 1;
1167 }
1168 }
1169
1170 double wxConfigBase_ReadFloat(wxConfigBase *self,wxString const &key,double defaultVal){
1171 double rv;
1172 self->Read(key, &rv, defaultVal);
1173 return rv;
1174 }
1175 bool wxConfigBase_ReadBool(wxConfigBase *self,wxString const &key,bool defaultVal){
1176 bool rv;
1177 self->Read(key, &rv, defaultVal);
1178 return rv;
1179 }
1180
1181 #include <wx/datetime.h>
1182
1183
1184 static const wxString wxPyDateFormatStr(wxT("%c"));
1185 static const wxString wxPyTimeSpanFormatStr(wxT("%H:%M:%S"));
1186
1187 #define LOCAL_TZ wxDateTime::Local
1188
1189
1190 #if UINT_MAX < LONG_MAX
1191 #define SWIG_FromUnsignedInt SWIG_FromLong
1192 #else
1193 #define SWIG_FromUnsignedInt SWIG_FromUnsignedLong
1194 #endif
1195
1196 wxDateTime wxDateTime___add____SWIG_0(wxDateTime *self,wxTimeSpan const &other){ return *self + other; }
1197 wxDateTime wxDateTime___add____SWIG_1(wxDateTime *self,wxDateSpan const &other){ return *self + other; }
1198 wxTimeSpan wxDateTime___sub____SWIG_0(wxDateTime *self,wxDateTime const &other){ return *self - other; }
1199 wxDateTime wxDateTime___sub____SWIG_1(wxDateTime *self,wxTimeSpan const &other){ return *self - other; }
1200 wxDateTime wxDateTime___sub____SWIG_2(wxDateTime *self,wxDateSpan const &other){ return *self - other; }
1201 bool wxDateTime___lt__(wxDateTime *self,wxDateTime const *other){
1202 if (!other || !self->IsValid() || !other->IsValid()) return self < other;
1203 return (*self < *other);
1204 }
1205 bool wxDateTime___le__(wxDateTime *self,wxDateTime const *other){
1206 if (!other || !self->IsValid() || !other->IsValid()) return self <= other;
1207 return (*self <= *other);
1208 }
1209 bool wxDateTime___gt__(wxDateTime *self,wxDateTime const *other){
1210 if (!other || !self->IsValid() || !other->IsValid()) return self > other;
1211 return (*self > *other);
1212 }
1213 bool wxDateTime___ge__(wxDateTime *self,wxDateTime const *other){
1214 if (!other || !self->IsValid() || !other->IsValid()) return self >= other;
1215 return (*self >= *other);
1216 }
1217 bool wxDateTime___eq__(wxDateTime *self,wxDateTime const *other){
1218 if (!other || !self->IsValid() || !other->IsValid()) return self == other;
1219 return (*self == *other);
1220 }
1221 bool wxDateTime___ne__(wxDateTime *self,wxDateTime const *other){
1222 if (!other || !self->IsValid() || !other->IsValid()) return self != other;
1223 return (*self != *other);
1224 }
1225 int wxDateTime_ParseRfc822Date(wxDateTime *self,wxString const &date){
1226 const wxChar* rv;
1227 const wxChar* _date = date;
1228 rv = self->ParseRfc822Date(_date);
1229 if (rv == NULL) return -1;
1230 return rv - _date;
1231 }
1232 int wxDateTime_ParseFormat(wxDateTime *self,wxString const &date,wxString const &format,wxDateTime const &dateDef){
1233 const wxChar* rv;
1234 const wxChar* _date = date;
1235 rv = self->ParseFormat(_date, format, dateDef);
1236 if (rv == NULL) return -1;
1237 return rv - _date;
1238 }
1239 int wxDateTime_ParseDateTime(wxDateTime *self,wxString const &datetime){
1240 const wxChar* rv;
1241 const wxChar* _datetime = datetime;
1242 rv = self->ParseDateTime(_datetime);
1243 if (rv == NULL) return -1;
1244 return rv - _datetime;
1245 }
1246 int wxDateTime_ParseDate(wxDateTime *self,wxString const &date){
1247 const wxChar* rv;
1248 const wxChar* _date = date;
1249 rv = self->ParseDate(_date);
1250 if (rv == NULL) return -1;
1251 return rv - _date;
1252 }
1253 int wxDateTime_ParseTime(wxDateTime *self,wxString const &time){
1254 const wxChar* rv;
1255 const wxChar* _time = time;
1256 rv = self->ParseTime(_time);
1257 if (rv == NULL) return -1;
1258 return rv - _time;
1259 }
1260 wxTimeSpan wxTimeSpan___add__(wxTimeSpan *self,wxTimeSpan const &other){ return *self + other; }
1261 wxTimeSpan wxTimeSpan___sub__(wxTimeSpan *self,wxTimeSpan const &other){ return *self - other; }
1262 wxTimeSpan wxTimeSpan___mul__(wxTimeSpan *self,int n){ return *self * n; }
1263 wxTimeSpan wxTimeSpan___rmul__(wxTimeSpan *self,int n){ return n * *self; }
1264 bool wxTimeSpan___lt__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self < *other) : False; }
1265 bool wxTimeSpan___le__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self <= *other) : False; }
1266 bool wxTimeSpan___gt__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self > *other) : True; }
1267 bool wxTimeSpan___ge__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self >= *other) : True; }
1268 bool wxTimeSpan___eq__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self == *other) : False; }
1269 bool wxTimeSpan___ne__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self != *other) : True; }
1270 wxDateSpan wxDateSpan___add__(wxDateSpan *self,wxDateSpan const &other){ return *self + other; }
1271 wxDateSpan wxDateSpan___sub__(wxDateSpan *self,wxDateSpan const &other){ return *self - other; }
1272 wxDateSpan wxDateSpan___mul__(wxDateSpan *self,int n){ return *self * n; }
1273 wxDateSpan wxDateSpan___rmul__(wxDateSpan *self,int n){ return n * *self; }
1274 bool wxDateSpan___eq__(wxDateSpan *self,wxDateSpan const *other){ return other ? (*self == *other) : False; }
1275 bool wxDateSpan___ne__(wxDateSpan *self,wxDateSpan const *other){ return other ? (*self != *other) : True; }
1276
1277 #include <wx/dataobj.h>
1278
1279 PyObject *wxDataObject_GetAllFormats(wxDataObject *self,wxDataObject::Direction dir){
1280 size_t count = self->GetFormatCount(dir);
1281 wxDataFormat* formats = new wxDataFormat[count];
1282 self->GetAllFormats(formats, dir);
1283
1284 bool blocked = wxPyBeginBlockThreads();
1285 PyObject* list = PyList_New(count);
1286 for (size_t i=0; i<count; i++) {
1287 wxDataFormat* format = new wxDataFormat(formats[i]);
1288 PyObject* obj = wxPyConstructObject((void*)format, wxT("wxDataFormat"), True);
1289 PyList_Append(list, obj);
1290 Py_DECREF(obj);
1291 }
1292 wxPyEndBlockThreads(blocked);
1293 delete [] formats;
1294 return list;
1295 }
1296 PyObject *wxDataObject_GetDataHere(wxDataObject *self,wxDataFormat const &format){
1297 PyObject* rval = NULL;
1298 size_t size = self->GetDataSize(format);
1299 bool blocked = wxPyBeginBlockThreads();
1300 if (size) {
1301 char* buf = new char[size];
1302 if (self->GetDataHere(format, buf))
1303 rval = PyString_FromStringAndSize(buf, size);
1304 delete [] buf;
1305 }
1306 if (! rval) {
1307 rval = Py_None;
1308 Py_INCREF(rval);
1309 }
1310 wxPyEndBlockThreads(blocked);
1311 return rval;
1312 }
1313 bool wxDataObject_SetData(wxDataObject *self,wxDataFormat const &format,PyObject *data){
1314 bool rval;
1315 bool blocked = wxPyBeginBlockThreads();
1316 if (PyString_Check(data)) {
1317 rval = self->SetData(format, PyString_Size(data), PyString_AsString(data));
1318 }
1319 else {
1320 // raise a TypeError if not a string
1321 PyErr_SetString(PyExc_TypeError, "String expected.");
1322 rval = False;
1323 }
1324 wxPyEndBlockThreads(blocked);
1325 return rval;
1326 }
1327 PyObject *wxDataObjectSimple_GetDataHere(wxDataObjectSimple *self){
1328 PyObject* rval = NULL;
1329 size_t size = self->GetDataSize();
1330 bool blocked = wxPyBeginBlockThreads();
1331 if (size) {
1332 char* buf = new char[size];
1333 if (self->GetDataHere(buf))
1334 rval = PyString_FromStringAndSize(buf, size);
1335 delete [] buf;
1336 }
1337 if (! rval) {
1338 rval = Py_None;
1339 Py_INCREF(rval);
1340 }
1341 wxPyEndBlockThreads(blocked);
1342 return rval;
1343 }
1344 bool wxDataObjectSimple_SetData(wxDataObjectSimple *self,PyObject *data){
1345 bool rval;
1346 bool blocked = wxPyBeginBlockThreads();
1347 if (PyString_Check(data)) {
1348 rval = self->SetData(PyString_Size(data), PyString_AsString(data));
1349 }
1350 else {
1351 // raise a TypeError if not a string
1352 PyErr_SetString(PyExc_TypeError, "String expected.");
1353 rval = False;
1354 }
1355 wxPyEndBlockThreads(blocked);
1356 return rval;
1357 }
1358 // Create a new class for wxPython to use
1359 class wxPyDataObjectSimple : public wxDataObjectSimple {
1360 public:
1361 wxPyDataObjectSimple(const wxDataFormat& format = wxFormatInvalid)
1362 : wxDataObjectSimple(format) {}
1363
1364 DEC_PYCALLBACK_SIZET__const(GetDataSize);
1365 bool GetDataHere(void *buf) const;
1366 bool SetData(size_t len, const void *buf) const;
1367 PYPRIVATE;
1368 };
1369
1370 IMP_PYCALLBACK_SIZET__const(wxPyDataObjectSimple, wxDataObjectSimple, GetDataSize);
1371
1372 bool wxPyDataObjectSimple::GetDataHere(void *buf) const {
1373 // We need to get the data for this object and write it to buf. I think
1374 // the best way to do this for wxPython is to have the Python method
1375 // return either a string or None and then act appropriately with the
1376 // C++ version.
1377
1378 bool rval = False;
1379 bool blocked = wxPyBeginBlockThreads();
1380 if (wxPyCBH_findCallback(m_myInst, "GetDataHere")) {
1381 PyObject* ro;
1382 ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()"));
1383 if (ro) {
1384 rval = (ro != Py_None && PyString_Check(ro));
1385 if (rval)
1386 memcpy(buf, PyString_AsString(ro), PyString_Size(ro));
1387 Py_DECREF(ro);
1388 }
1389 }
1390 wxPyEndBlockThreads(blocked);
1391 return rval;
1392 }
1393
1394 bool wxPyDataObjectSimple::SetData(size_t len, const void *buf) const{
1395 // For this one we simply need to make a string from buf and len
1396 // and send it to the Python method.
1397 bool rval = False;
1398 bool blocked = wxPyBeginBlockThreads();
1399 if (wxPyCBH_findCallback(m_myInst, "SetData")) {
1400 PyObject* data = PyString_FromStringAndSize((char*)buf, len);
1401 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(O)", data));
1402 Py_DECREF(data);
1403 }
1404 wxPyEndBlockThreads(blocked);
1405 return rval;
1406 }
1407
1408 // Create a new class for wxPython to use
1409 class wxPyTextDataObject : public wxTextDataObject {
1410 public:
1411 wxPyTextDataObject(const wxString& text = wxPyEmptyString)
1412 : wxTextDataObject(text) {}
1413
1414 DEC_PYCALLBACK_SIZET__const(GetTextLength);
1415 DEC_PYCALLBACK_STRING__const(GetText);
1416 DEC_PYCALLBACK__STRING(SetText);
1417 PYPRIVATE;
1418 };
1419
1420 IMP_PYCALLBACK_SIZET__const(wxPyTextDataObject, wxTextDataObject, GetTextLength);
1421 IMP_PYCALLBACK_STRING__const(wxPyTextDataObject, wxTextDataObject, GetText);
1422 IMP_PYCALLBACK__STRING(wxPyTextDataObject, wxTextDataObject, SetText);
1423
1424
1425 // Create a new class for wxPython to use
1426 class wxPyBitmapDataObject : public wxBitmapDataObject {
1427 public:
1428 wxPyBitmapDataObject(const wxBitmap& bitmap = wxNullBitmap)
1429 : wxBitmapDataObject(bitmap) {}
1430
1431 wxBitmap GetBitmap() const;
1432 void SetBitmap(const wxBitmap& bitmap);
1433 PYPRIVATE;
1434 };
1435
1436 wxBitmap wxPyBitmapDataObject::GetBitmap() const {
1437 wxBitmap* rval = &wxNullBitmap;
1438 bool blocked = wxPyBeginBlockThreads();
1439 if (wxPyCBH_findCallback(m_myInst, "GetBitmap")) {
1440 PyObject* ro;
1441 wxBitmap* ptr;
1442 ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()"));
1443 if (ro) {
1444 if (wxPyConvertSwigPtr(ro, (void **)&ptr, wxT("wxBitmap")))
1445 rval = ptr;
1446 Py_DECREF(ro);
1447 }
1448 }
1449 wxPyEndBlockThreads(blocked);
1450 return *rval;
1451 }
1452
1453 void wxPyBitmapDataObject::SetBitmap(const wxBitmap& bitmap) {
1454 bool blocked = wxPyBeginBlockThreads();
1455 if (wxPyCBH_findCallback(m_myInst, "SetBitmap")) {
1456 PyObject* bo = wxPyConstructObject((void*)&bitmap, wxT("wxBitmap"), False);
1457 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(O)", bo));
1458 Py_DECREF(bo);
1459 }
1460 wxPyEndBlockThreads(blocked);
1461 }
1462
1463 bool wxCustomDataObject_SetData(wxCustomDataObject *self,PyObject *data){
1464 bool rval;
1465 bool blocked = wxPyBeginBlockThreads();
1466 if (PyString_Check(data)) {
1467 rval = self->SetData(PyString_Size(data), PyString_AsString(data));
1468 }
1469 else {
1470 // raise a TypeError if not a string
1471 PyErr_SetString(PyExc_TypeError, "String expected.");
1472 rval = False;
1473 }
1474 wxPyEndBlockThreads(blocked);
1475 return rval;
1476 }
1477 PyObject *wxCustomDataObject_GetData(wxCustomDataObject *self){
1478 PyObject* obj;
1479 bool blocked = wxPyBeginBlockThreads();
1480 obj = PyString_FromStringAndSize((char*)self->GetData(), self->GetSize());
1481 wxPyEndBlockThreads(blocked);
1482 return obj;
1483 }
1484
1485 class wxMetafileDataObject : public wxDataObjectSimple
1486 {
1487 public:
1488 wxMetafileDataObject() { wxPyRaiseNotImplemented(); }
1489 };
1490
1491
1492 IMP_PYCALLBACK_BOOL_DR(wxPyDropSource, wxDropSource, GiveFeedback);
1493
1494
1495 IMP_PYCALLBACK__(wxPyDropTarget, wxDropTarget, OnLeave);
1496 IMP_PYCALLBACK_DR_2WXCDR(wxPyDropTarget, wxDropTarget, OnEnter);
1497 IMP_PYCALLBACK_DR_2WXCDR(wxPyDropTarget, wxDropTarget, OnDragOver);
1498 IMP_PYCALLBACK_DR_2WXCDR_pure(wxPyDropTarget, wxDropTarget, OnData);
1499 IMP_PYCALLBACK_BOOL_INTINT(wxPyDropTarget, wxDropTarget, OnDrop);
1500
1501
1502 class wxPyTextDropTarget : public wxTextDropTarget {
1503 public:
1504 wxPyTextDropTarget() {}
1505
1506 DEC_PYCALLBACK_BOOL_INTINTSTR_pure(OnDropText);
1507
1508 DEC_PYCALLBACK__(OnLeave);
1509 DEC_PYCALLBACK_DR_2WXCDR(OnEnter);
1510 DEC_PYCALLBACK_DR_2WXCDR(OnDragOver);
1511 DEC_PYCALLBACK_DR_2WXCDR(OnData);
1512 DEC_PYCALLBACK_BOOL_INTINT(OnDrop);
1513
1514 PYPRIVATE;
1515 };
1516
1517 IMP_PYCALLBACK_BOOL_INTINTSTR_pure(wxPyTextDropTarget, wxTextDropTarget, OnDropText);
1518 IMP_PYCALLBACK__(wxPyTextDropTarget, wxTextDropTarget, OnLeave);
1519 IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnEnter);
1520 IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnDragOver);
1521 IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnData);
1522 IMP_PYCALLBACK_BOOL_INTINT(wxPyTextDropTarget, wxTextDropTarget, OnDrop);
1523
1524
1525
1526 class wxPyFileDropTarget : public wxFileDropTarget {
1527 public:
1528 wxPyFileDropTarget() {}
1529
1530 virtual bool OnDropFiles(wxCoord x, wxCoord y, const wxArrayString& filenames);
1531
1532 DEC_PYCALLBACK__(OnLeave);
1533 DEC_PYCALLBACK_DR_2WXCDR(OnEnter);
1534 DEC_PYCALLBACK_DR_2WXCDR(OnDragOver);
1535 DEC_PYCALLBACK_DR_2WXCDR(OnData);
1536 DEC_PYCALLBACK_BOOL_INTINT(OnDrop);
1537
1538 PYPRIVATE;
1539 };
1540
1541 bool wxPyFileDropTarget::OnDropFiles(wxCoord x, wxCoord y,
1542 const wxArrayString& filenames) {
1543 bool rval = False;
1544 bool blocked = wxPyBeginBlockThreads();
1545 if (wxPyCBH_findCallback(m_myInst, "OnDropFiles")) {
1546 PyObject* list = wxArrayString2PyList_helper(filenames);
1547 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iiO)",x,y,list));
1548 Py_DECREF(list);
1549 }
1550 wxPyEndBlockThreads(blocked);
1551 return rval;
1552 }
1553
1554
1555
1556 IMP_PYCALLBACK__(wxPyFileDropTarget, wxFileDropTarget, OnLeave);
1557 IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnEnter);
1558 IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnDragOver);
1559 IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnData);
1560 IMP_PYCALLBACK_BOOL_INTINT(wxPyFileDropTarget, wxFileDropTarget, OnDrop);
1561
1562
1563
1564
1565 bool wxClipboardLocker___nonzero__(wxClipboardLocker *self){ return !!(*self); }
1566
1567 #include <wx/display.h>
1568
1569 bool wxVideoMode___eq__(wxVideoMode *self,wxVideoMode const *other){ return other ? (*self == *other) : False; }
1570 bool wxVideoMode___ne__(wxVideoMode *self,wxVideoMode const *other){ return other ? (*self != *other) : True; }
1571
1572 // dummy version of wxDisplay for when it is not enabled in the wxWidgets build
1573 #if !wxUSE_DISPLAY
1574 #include <wx/dynarray.h>
1575 #include <wx/vidmode.h>
1576
1577 WX_DECLARE_OBJARRAY(wxVideoMode, wxArrayVideoModes);
1578 #include "wx/arrimpl.cpp"
1579 WX_DEFINE_OBJARRAY(wxArrayVideoModes);
1580 const wxVideoMode wxDefaultVideoMode;
1581
1582 class wxDisplay
1583 {
1584 public:
1585 wxDisplay(size_t index = 0) { wxPyRaiseNotImplemented(); }
1586 ~wxDisplay() {}
1587
1588 static size_t GetCount()
1589 { wxPyRaiseNotImplemented(); return 0; }
1590
1591 static int GetFromPoint(const wxPoint& pt)
1592 { wxPyRaiseNotImplemented(); return wxNOT_FOUND; }
1593 static int GetFromWindow(wxWindow *window)
1594 { wxPyRaiseNotImplemented(); return wxNOT_FOUND; }
1595
1596 virtual bool IsOk() const { return false; }
1597 virtual wxRect GetGeometry() const { wxRect r; return r; }
1598 virtual wxString GetName() const { return wxEmptyString; }
1599 bool IsPrimary() const { return false; }
1600
1601 wxArrayVideoModes GetModes(const wxVideoMode& mode = wxDefaultVideoMode)
1602 { wxArrayVideoModes a; return a; }
1603
1604 virtual wxVideoMode GetCurrentMode() const
1605 { return wxDefaultVideoMode; }
1606
1607 virtual bool ChangeMode(const wxVideoMode& mode = wxDefaultVideoMode)
1608 { return false; }
1609
1610 void ResetMode() {}
1611 };
1612 #endif
1613
1614 int Display_GetFromWindow(wxWindow *window){ wxPyRaiseNotImplemented(); return wxNOT_FOUND; }
1615 PyObject *wxDisplay_GetModes(wxDisplay *self,wxVideoMode const &mode){
1616 PyObject* pyList = NULL;
1617 wxArrayVideoModes arr = self->GetModes(mode);
1618 bool blocked = wxPyBeginBlockThreads();
1619 pyList = PyList_New(0);
1620 for (int i=0; i < arr.GetCount(); i++) {
1621 wxVideoMode* m = new wxVideoMode(arr.Item(i));
1622 PyObject* pyObj = wxPyConstructObject(m, wxT("wxVideoMode"), true);
1623 PyList_Append(pyList, pyObj);
1624 Py_DECREF(pyObj);
1625 }
1626 wxPyEndBlockThreads(blocked);
1627 return pyList;
1628 }
1629 #ifdef __cplusplus
1630 extern "C" {
1631 #endif
1632 static PyObject *_wrap_SystemSettings_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1633 PyObject *resultobj;
1634 int arg1 ;
1635 wxColour result;
1636 PyObject * obj0 = 0 ;
1637 char *kwnames[] = {
1638 (char *) "index", NULL
1639 };
1640
1641 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_GetColour",kwnames,&obj0)) goto fail;
1642 arg1 = (wxSystemColour) SWIG_AsInt(obj0);
1643 if (PyErr_Occurred()) SWIG_fail;
1644 {
1645 if (!wxPyCheckForApp()) SWIG_fail;
1646 PyThreadState* __tstate = wxPyBeginAllowThreads();
1647 result = wxSystemSettings::GetColour((wxSystemColour )arg1);
1648
1649 wxPyEndAllowThreads(__tstate);
1650 if (PyErr_Occurred()) SWIG_fail;
1651 }
1652 {
1653 wxColour * resultptr;
1654 resultptr = new wxColour((wxColour &) result);
1655 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
1656 }
1657 return resultobj;
1658 fail:
1659 return NULL;
1660 }
1661
1662
1663 static PyObject *_wrap_SystemSettings_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
1664 PyObject *resultobj;
1665 int arg1 ;
1666 wxFont result;
1667 PyObject * obj0 = 0 ;
1668 char *kwnames[] = {
1669 (char *) "index", NULL
1670 };
1671
1672 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_GetFont",kwnames,&obj0)) goto fail;
1673 arg1 = (wxSystemFont) SWIG_AsInt(obj0);
1674 if (PyErr_Occurred()) SWIG_fail;
1675 {
1676 if (!wxPyCheckForApp()) SWIG_fail;
1677 PyThreadState* __tstate = wxPyBeginAllowThreads();
1678 result = wxSystemSettings::GetFont((wxSystemFont )arg1);
1679
1680 wxPyEndAllowThreads(__tstate);
1681 if (PyErr_Occurred()) SWIG_fail;
1682 }
1683 {
1684 wxFont * resultptr;
1685 resultptr = new wxFont((wxFont &) result);
1686 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1);
1687 }
1688 return resultobj;
1689 fail:
1690 return NULL;
1691 }
1692
1693
1694 static PyObject *_wrap_SystemSettings_GetMetric(PyObject *self, PyObject *args, PyObject *kwargs) {
1695 PyObject *resultobj;
1696 int arg1 ;
1697 int result;
1698 PyObject * obj0 = 0 ;
1699 char *kwnames[] = {
1700 (char *) "index", NULL
1701 };
1702
1703 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_GetMetric",kwnames,&obj0)) goto fail;
1704 arg1 = (wxSystemMetric) SWIG_AsInt(obj0);
1705 if (PyErr_Occurred()) SWIG_fail;
1706 {
1707 if (!wxPyCheckForApp()) SWIG_fail;
1708 PyThreadState* __tstate = wxPyBeginAllowThreads();
1709 result = (int)wxSystemSettings::GetMetric((wxSystemMetric )arg1);
1710
1711 wxPyEndAllowThreads(__tstate);
1712 if (PyErr_Occurred()) SWIG_fail;
1713 }
1714 resultobj = SWIG_FromInt((int)result);
1715 return resultobj;
1716 fail:
1717 return NULL;
1718 }
1719
1720
1721 static PyObject *_wrap_SystemSettings_HasFeature(PyObject *self, PyObject *args, PyObject *kwargs) {
1722 PyObject *resultobj;
1723 int arg1 ;
1724 bool result;
1725 PyObject * obj0 = 0 ;
1726 char *kwnames[] = {
1727 (char *) "index", NULL
1728 };
1729
1730 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_HasFeature",kwnames,&obj0)) goto fail;
1731 arg1 = (wxSystemFeature) SWIG_AsInt(obj0);
1732 if (PyErr_Occurred()) SWIG_fail;
1733 {
1734 if (!wxPyCheckForApp()) SWIG_fail;
1735 PyThreadState* __tstate = wxPyBeginAllowThreads();
1736 result = (bool)wxSystemSettings::HasFeature((wxSystemFeature )arg1);
1737
1738 wxPyEndAllowThreads(__tstate);
1739 if (PyErr_Occurred()) SWIG_fail;
1740 }
1741 {
1742 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1743 }
1744 return resultobj;
1745 fail:
1746 return NULL;
1747 }
1748
1749
1750 static PyObject *_wrap_SystemSettings_GetScreenType(PyObject *self, PyObject *args, PyObject *kwargs) {
1751 PyObject *resultobj;
1752 int result;
1753 char *kwnames[] = {
1754 NULL
1755 };
1756
1757 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":SystemSettings_GetScreenType",kwnames)) goto fail;
1758 {
1759 if (!wxPyCheckForApp()) SWIG_fail;
1760 PyThreadState* __tstate = wxPyBeginAllowThreads();
1761 result = (int)wxSystemSettings::GetScreenType();
1762
1763 wxPyEndAllowThreads(__tstate);
1764 if (PyErr_Occurred()) SWIG_fail;
1765 }
1766 resultobj = SWIG_FromInt((int)result);
1767 return resultobj;
1768 fail:
1769 return NULL;
1770 }
1771
1772
1773 static PyObject *_wrap_SystemSettings_SetScreenType(PyObject *self, PyObject *args, PyObject *kwargs) {
1774 PyObject *resultobj;
1775 int arg1 ;
1776 PyObject * obj0 = 0 ;
1777 char *kwnames[] = {
1778 (char *) "screen", NULL
1779 };
1780
1781 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_SetScreenType",kwnames,&obj0)) goto fail;
1782 arg1 = (wxSystemScreenType) SWIG_AsInt(obj0);
1783 if (PyErr_Occurred()) SWIG_fail;
1784 {
1785 if (!wxPyCheckForApp()) SWIG_fail;
1786 PyThreadState* __tstate = wxPyBeginAllowThreads();
1787 wxSystemSettings::SetScreenType((wxSystemScreenType )arg1);
1788
1789 wxPyEndAllowThreads(__tstate);
1790 if (PyErr_Occurred()) SWIG_fail;
1791 }
1792 Py_INCREF(Py_None); resultobj = Py_None;
1793 return resultobj;
1794 fail:
1795 return NULL;
1796 }
1797
1798
1799 static PyObject * SystemSettings_swigregister(PyObject *self, PyObject *args) {
1800 PyObject *obj;
1801 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1802 SWIG_TypeClientData(SWIGTYPE_p_wxSystemSettings, obj);
1803 Py_INCREF(obj);
1804 return Py_BuildValue((char *)"");
1805 }
1806 static PyObject *_wrap_new_SystemOptions(PyObject *self, PyObject *args, PyObject *kwargs) {
1807 PyObject *resultobj;
1808 wxSystemOptions *result;
1809 char *kwnames[] = {
1810 NULL
1811 };
1812
1813 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SystemOptions",kwnames)) goto fail;
1814 {
1815 PyThreadState* __tstate = wxPyBeginAllowThreads();
1816 result = (wxSystemOptions *)new wxSystemOptions();
1817
1818 wxPyEndAllowThreads(__tstate);
1819 if (PyErr_Occurred()) SWIG_fail;
1820 }
1821 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSystemOptions, 1);
1822 return resultobj;
1823 fail:
1824 return NULL;
1825 }
1826
1827
1828 static PyObject *_wrap_SystemOptions_SetOption(PyObject *self, PyObject *args, PyObject *kwargs) {
1829 PyObject *resultobj;
1830 wxString *arg1 = 0 ;
1831 wxString *arg2 = 0 ;
1832 bool temp1 = False ;
1833 bool temp2 = False ;
1834 PyObject * obj0 = 0 ;
1835 PyObject * obj1 = 0 ;
1836 char *kwnames[] = {
1837 (char *) "name",(char *) "value", NULL
1838 };
1839
1840 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SystemOptions_SetOption",kwnames,&obj0,&obj1)) goto fail;
1841 {
1842 arg1 = wxString_in_helper(obj0);
1843 if (arg1 == NULL) SWIG_fail;
1844 temp1 = True;
1845 }
1846 {
1847 arg2 = wxString_in_helper(obj1);
1848 if (arg2 == NULL) SWIG_fail;
1849 temp2 = True;
1850 }
1851 {
1852 PyThreadState* __tstate = wxPyBeginAllowThreads();
1853 wxSystemOptions::SetOption((wxString const &)*arg1,(wxString const &)*arg2);
1854
1855 wxPyEndAllowThreads(__tstate);
1856 if (PyErr_Occurred()) SWIG_fail;
1857 }
1858 Py_INCREF(Py_None); resultobj = Py_None;
1859 {
1860 if (temp1)
1861 delete arg1;
1862 }
1863 {
1864 if (temp2)
1865 delete arg2;
1866 }
1867 return resultobj;
1868 fail:
1869 {
1870 if (temp1)
1871 delete arg1;
1872 }
1873 {
1874 if (temp2)
1875 delete arg2;
1876 }
1877 return NULL;
1878 }
1879
1880
1881 static PyObject *_wrap_SystemOptions_SetOptionInt(PyObject *self, PyObject *args, PyObject *kwargs) {
1882 PyObject *resultobj;
1883 wxString *arg1 = 0 ;
1884 int arg2 ;
1885 bool temp1 = False ;
1886 PyObject * obj0 = 0 ;
1887 PyObject * obj1 = 0 ;
1888 char *kwnames[] = {
1889 (char *) "name",(char *) "value", NULL
1890 };
1891
1892 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SystemOptions_SetOptionInt",kwnames,&obj0,&obj1)) goto fail;
1893 {
1894 arg1 = wxString_in_helper(obj0);
1895 if (arg1 == NULL) SWIG_fail;
1896 temp1 = True;
1897 }
1898 arg2 = (int) SWIG_AsInt(obj1);
1899 if (PyErr_Occurred()) SWIG_fail;
1900 {
1901 PyThreadState* __tstate = wxPyBeginAllowThreads();
1902 wxSystemOptions::SetOption((wxString const &)*arg1,arg2);
1903
1904 wxPyEndAllowThreads(__tstate);
1905 if (PyErr_Occurred()) SWIG_fail;
1906 }
1907 Py_INCREF(Py_None); resultobj = Py_None;
1908 {
1909 if (temp1)
1910 delete arg1;
1911 }
1912 return resultobj;
1913 fail:
1914 {
1915 if (temp1)
1916 delete arg1;
1917 }
1918 return NULL;
1919 }
1920
1921
1922 static PyObject *_wrap_SystemOptions_GetOption(PyObject *self, PyObject *args, PyObject *kwargs) {
1923 PyObject *resultobj;
1924 wxString *arg1 = 0 ;
1925 wxString result;
1926 bool temp1 = False ;
1927 PyObject * obj0 = 0 ;
1928 char *kwnames[] = {
1929 (char *) "name", NULL
1930 };
1931
1932 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_GetOption",kwnames,&obj0)) goto fail;
1933 {
1934 arg1 = wxString_in_helper(obj0);
1935 if (arg1 == NULL) SWIG_fail;
1936 temp1 = True;
1937 }
1938 {
1939 PyThreadState* __tstate = wxPyBeginAllowThreads();
1940 result = wxSystemOptions::GetOption((wxString const &)*arg1);
1941
1942 wxPyEndAllowThreads(__tstate);
1943 if (PyErr_Occurred()) SWIG_fail;
1944 }
1945 {
1946 #if wxUSE_UNICODE
1947 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
1948 #else
1949 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
1950 #endif
1951 }
1952 {
1953 if (temp1)
1954 delete arg1;
1955 }
1956 return resultobj;
1957 fail:
1958 {
1959 if (temp1)
1960 delete arg1;
1961 }
1962 return NULL;
1963 }
1964
1965
1966 static PyObject *_wrap_SystemOptions_GetOptionInt(PyObject *self, PyObject *args, PyObject *kwargs) {
1967 PyObject *resultobj;
1968 wxString *arg1 = 0 ;
1969 int result;
1970 bool temp1 = False ;
1971 PyObject * obj0 = 0 ;
1972 char *kwnames[] = {
1973 (char *) "name", NULL
1974 };
1975
1976 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_GetOptionInt",kwnames,&obj0)) goto fail;
1977 {
1978 arg1 = wxString_in_helper(obj0);
1979 if (arg1 == NULL) SWIG_fail;
1980 temp1 = True;
1981 }
1982 {
1983 PyThreadState* __tstate = wxPyBeginAllowThreads();
1984 result = (int)wxSystemOptions::GetOptionInt((wxString const &)*arg1);
1985
1986 wxPyEndAllowThreads(__tstate);
1987 if (PyErr_Occurred()) SWIG_fail;
1988 }
1989 resultobj = SWIG_FromInt((int)result);
1990 {
1991 if (temp1)
1992 delete arg1;
1993 }
1994 return resultobj;
1995 fail:
1996 {
1997 if (temp1)
1998 delete arg1;
1999 }
2000 return NULL;
2001 }
2002
2003
2004 static PyObject *_wrap_SystemOptions_HasOption(PyObject *self, PyObject *args, PyObject *kwargs) {
2005 PyObject *resultobj;
2006 wxString *arg1 = 0 ;
2007 bool result;
2008 bool temp1 = False ;
2009 PyObject * obj0 = 0 ;
2010 char *kwnames[] = {
2011 (char *) "name", NULL
2012 };
2013
2014 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_HasOption",kwnames,&obj0)) goto fail;
2015 {
2016 arg1 = wxString_in_helper(obj0);
2017 if (arg1 == NULL) SWIG_fail;
2018 temp1 = True;
2019 }
2020 {
2021 PyThreadState* __tstate = wxPyBeginAllowThreads();
2022 result = (bool)wxSystemOptions::HasOption((wxString const &)*arg1);
2023
2024 wxPyEndAllowThreads(__tstate);
2025 if (PyErr_Occurred()) SWIG_fail;
2026 }
2027 {
2028 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2029 }
2030 {
2031 if (temp1)
2032 delete arg1;
2033 }
2034 return resultobj;
2035 fail:
2036 {
2037 if (temp1)
2038 delete arg1;
2039 }
2040 return NULL;
2041 }
2042
2043
2044 static PyObject * SystemOptions_swigregister(PyObject *self, PyObject *args) {
2045 PyObject *obj;
2046 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2047 SWIG_TypeClientData(SWIGTYPE_p_wxSystemOptions, obj);
2048 Py_INCREF(obj);
2049 return Py_BuildValue((char *)"");
2050 }
2051 static int _wrap_FileSelectorPromptStr_set(PyObject *_val) {
2052 PyErr_SetString(PyExc_TypeError,"Variable FileSelectorPromptStr is read-only.");
2053 return 1;
2054 }
2055
2056
2057 static PyObject *_wrap_FileSelectorPromptStr_get() {
2058 PyObject *pyobj;
2059
2060 {
2061 #if wxUSE_UNICODE
2062 pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len());
2063 #else
2064 pyobj = PyString_FromStringAndSize((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len());
2065 #endif
2066 }
2067 return pyobj;
2068 }
2069
2070
2071 static int _wrap_FileSelectorDefaultWildcardStr_set(PyObject *_val) {
2072 PyErr_SetString(PyExc_TypeError,"Variable FileSelectorDefaultWildcardStr is read-only.");
2073 return 1;
2074 }
2075
2076
2077 static PyObject *_wrap_FileSelectorDefaultWildcardStr_get() {
2078 PyObject *pyobj;
2079
2080 {
2081 #if wxUSE_UNICODE
2082 pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len());
2083 #else
2084 pyobj = PyString_FromStringAndSize((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len());
2085 #endif
2086 }
2087 return pyobj;
2088 }
2089
2090
2091 static int _wrap_DirSelectorPromptStr_set(PyObject *_val) {
2092 PyErr_SetString(PyExc_TypeError,"Variable DirSelectorPromptStr is read-only.");
2093 return 1;
2094 }
2095
2096
2097 static PyObject *_wrap_DirSelectorPromptStr_get() {
2098 PyObject *pyobj;
2099
2100 {
2101 #if wxUSE_UNICODE
2102 pyobj = PyUnicode_FromWideChar((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len());
2103 #else
2104 pyobj = PyString_FromStringAndSize((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len());
2105 #endif
2106 }
2107 return pyobj;
2108 }
2109
2110
2111 static PyObject *_wrap_NewId(PyObject *self, PyObject *args, PyObject *kwargs) {
2112 PyObject *resultobj;
2113 long result;
2114 char *kwnames[] = {
2115 NULL
2116 };
2117
2118 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":NewId",kwnames)) goto fail;
2119 {
2120 PyThreadState* __tstate = wxPyBeginAllowThreads();
2121 result = (long)wxNewId();
2122
2123 wxPyEndAllowThreads(__tstate);
2124 if (PyErr_Occurred()) SWIG_fail;
2125 }
2126 resultobj = SWIG_FromLong((long)result);
2127 return resultobj;
2128 fail:
2129 return NULL;
2130 }
2131
2132
2133 static PyObject *_wrap_RegisterId(PyObject *self, PyObject *args, PyObject *kwargs) {
2134 PyObject *resultobj;
2135 long arg1 ;
2136 PyObject * obj0 = 0 ;
2137 char *kwnames[] = {
2138 (char *) "id", NULL
2139 };
2140
2141 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegisterId",kwnames,&obj0)) goto fail;
2142 arg1 = (long) SWIG_AsLong(obj0);
2143 if (PyErr_Occurred()) SWIG_fail;
2144 {
2145 PyThreadState* __tstate = wxPyBeginAllowThreads();
2146 wxRegisterId(arg1);
2147
2148 wxPyEndAllowThreads(__tstate);
2149 if (PyErr_Occurred()) SWIG_fail;
2150 }
2151 Py_INCREF(Py_None); resultobj = Py_None;
2152 return resultobj;
2153 fail:
2154 return NULL;
2155 }
2156
2157
2158 static PyObject *_wrap_GetCurrentId(PyObject *self, PyObject *args, PyObject *kwargs) {
2159 PyObject *resultobj;
2160 long result;
2161 char *kwnames[] = {
2162 NULL
2163 };
2164
2165 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetCurrentId",kwnames)) goto fail;
2166 {
2167 PyThreadState* __tstate = wxPyBeginAllowThreads();
2168 result = (long)wxGetCurrentId();
2169
2170 wxPyEndAllowThreads(__tstate);
2171 if (PyErr_Occurred()) SWIG_fail;
2172 }
2173 resultobj = SWIG_FromLong((long)result);
2174 return resultobj;
2175 fail:
2176 return NULL;
2177 }
2178
2179
2180 static PyObject *_wrap_Bell(PyObject *self, PyObject *args, PyObject *kwargs) {
2181 PyObject *resultobj;
2182 char *kwnames[] = {
2183 NULL
2184 };
2185
2186 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Bell",kwnames)) goto fail;
2187 {
2188 if (!wxPyCheckForApp()) SWIG_fail;
2189 PyThreadState* __tstate = wxPyBeginAllowThreads();
2190 wxBell();
2191
2192 wxPyEndAllowThreads(__tstate);
2193 if (PyErr_Occurred()) SWIG_fail;
2194 }
2195 Py_INCREF(Py_None); resultobj = Py_None;
2196 return resultobj;
2197 fail:
2198 return NULL;
2199 }
2200
2201
2202 static PyObject *_wrap_EndBusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
2203 PyObject *resultobj;
2204 char *kwnames[] = {
2205 NULL
2206 };
2207
2208 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":EndBusyCursor",kwnames)) goto fail;
2209 {
2210 if (!wxPyCheckForApp()) SWIG_fail;
2211 PyThreadState* __tstate = wxPyBeginAllowThreads();
2212 wxEndBusyCursor();
2213
2214 wxPyEndAllowThreads(__tstate);
2215 if (PyErr_Occurred()) SWIG_fail;
2216 }
2217 Py_INCREF(Py_None); resultobj = Py_None;
2218 return resultobj;
2219 fail:
2220 return NULL;
2221 }
2222
2223
2224 static PyObject *_wrap_GetElapsedTime(PyObject *self, PyObject *args, PyObject *kwargs) {
2225 PyObject *resultobj;
2226 bool arg1 = (bool) True ;
2227 long result;
2228 PyObject * obj0 = 0 ;
2229 char *kwnames[] = {
2230 (char *) "resetTimer", NULL
2231 };
2232
2233 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:GetElapsedTime",kwnames,&obj0)) goto fail;
2234 if (obj0) {
2235 arg1 = (bool) SWIG_AsBool(obj0);
2236 if (PyErr_Occurred()) SWIG_fail;
2237 }
2238 {
2239 PyThreadState* __tstate = wxPyBeginAllowThreads();
2240 result = (long)wxGetElapsedTime(arg1);
2241
2242 wxPyEndAllowThreads(__tstate);
2243 if (PyErr_Occurred()) SWIG_fail;
2244 }
2245 resultobj = SWIG_FromLong((long)result);
2246 return resultobj;
2247 fail:
2248 return NULL;
2249 }
2250
2251
2252 static PyObject *_wrap_GetMousePosition(PyObject *self, PyObject *args, PyObject *kwargs) {
2253 PyObject *resultobj;
2254 int *arg1 = (int *) 0 ;
2255 int *arg2 = (int *) 0 ;
2256 int temp1 ;
2257 int temp2 ;
2258 char *kwnames[] = {
2259 NULL
2260 };
2261
2262 arg1 = &temp1;
2263 arg2 = &temp2;
2264 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetMousePosition",kwnames)) goto fail;
2265 {
2266 if (!wxPyCheckForApp()) SWIG_fail;
2267 PyThreadState* __tstate = wxPyBeginAllowThreads();
2268 wxGetMousePosition(arg1,arg2);
2269
2270 wxPyEndAllowThreads(__tstate);
2271 if (PyErr_Occurred()) SWIG_fail;
2272 }
2273 Py_INCREF(Py_None); resultobj = Py_None;
2274 {
2275 PyObject *o = PyInt_FromLong((long) (*arg1));
2276 resultobj = t_output_helper(resultobj,o);
2277 }
2278 {
2279 PyObject *o = PyInt_FromLong((long) (*arg2));
2280 resultobj = t_output_helper(resultobj,o);
2281 }
2282 return resultobj;
2283 fail:
2284 return NULL;
2285 }
2286
2287
2288 static PyObject *_wrap_IsBusy(PyObject *self, PyObject *args, PyObject *kwargs) {
2289 PyObject *resultobj;
2290 bool result;
2291 char *kwnames[] = {
2292 NULL
2293 };
2294
2295 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":IsBusy",kwnames)) goto fail;
2296 {
2297 PyThreadState* __tstate = wxPyBeginAllowThreads();
2298 result = (bool)wxIsBusy();
2299
2300 wxPyEndAllowThreads(__tstate);
2301 if (PyErr_Occurred()) SWIG_fail;
2302 }
2303 {
2304 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2305 }
2306 return resultobj;
2307 fail:
2308 return NULL;
2309 }
2310
2311
2312 static PyObject *_wrap_Now(PyObject *self, PyObject *args, PyObject *kwargs) {
2313 PyObject *resultobj;
2314 wxString result;
2315 char *kwnames[] = {
2316 NULL
2317 };
2318
2319 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Now",kwnames)) goto fail;
2320 {
2321 PyThreadState* __tstate = wxPyBeginAllowThreads();
2322 result = wxNow();
2323
2324 wxPyEndAllowThreads(__tstate);
2325 if (PyErr_Occurred()) SWIG_fail;
2326 }
2327 {
2328 #if wxUSE_UNICODE
2329 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2330 #else
2331 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2332 #endif
2333 }
2334 return resultobj;
2335 fail:
2336 return NULL;
2337 }
2338
2339
2340 static PyObject *_wrap_Shell(PyObject *self, PyObject *args, PyObject *kwargs) {
2341 PyObject *resultobj;
2342 wxString const &arg1_defvalue = wxPyEmptyString ;
2343 wxString *arg1 = (wxString *) &arg1_defvalue ;
2344 bool result;
2345 bool temp1 = False ;
2346 PyObject * obj0 = 0 ;
2347 char *kwnames[] = {
2348 (char *) "command", NULL
2349 };
2350
2351 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Shell",kwnames,&obj0)) goto fail;
2352 if (obj0) {
2353 {
2354 arg1 = wxString_in_helper(obj0);
2355 if (arg1 == NULL) SWIG_fail;
2356 temp1 = True;
2357 }
2358 }
2359 {
2360 PyThreadState* __tstate = wxPyBeginAllowThreads();
2361 result = (bool)wxShell((wxString const &)*arg1);
2362
2363 wxPyEndAllowThreads(__tstate);
2364 if (PyErr_Occurred()) SWIG_fail;
2365 }
2366 {
2367 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2368 }
2369 {
2370 if (temp1)
2371 delete arg1;
2372 }
2373 return resultobj;
2374 fail:
2375 {
2376 if (temp1)
2377 delete arg1;
2378 }
2379 return NULL;
2380 }
2381
2382
2383 static PyObject *_wrap_StartTimer(PyObject *self, PyObject *args, PyObject *kwargs) {
2384 PyObject *resultobj;
2385 char *kwnames[] = {
2386 NULL
2387 };
2388
2389 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":StartTimer",kwnames)) goto fail;
2390 {
2391 PyThreadState* __tstate = wxPyBeginAllowThreads();
2392 wxStartTimer();
2393
2394 wxPyEndAllowThreads(__tstate);
2395 if (PyErr_Occurred()) SWIG_fail;
2396 }
2397 Py_INCREF(Py_None); resultobj = Py_None;
2398 return resultobj;
2399 fail:
2400 return NULL;
2401 }
2402
2403
2404 static PyObject *_wrap_GetOsVersion(PyObject *self, PyObject *args, PyObject *kwargs) {
2405 PyObject *resultobj;
2406 int *arg1 = (int *) 0 ;
2407 int *arg2 = (int *) 0 ;
2408 int result;
2409 int temp1 ;
2410 int temp2 ;
2411 char *kwnames[] = {
2412 NULL
2413 };
2414
2415 arg1 = &temp1;
2416 arg2 = &temp2;
2417 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetOsVersion",kwnames)) goto fail;
2418 {
2419 PyThreadState* __tstate = wxPyBeginAllowThreads();
2420 result = (int)wxGetOsVersion(arg1,arg2);
2421
2422 wxPyEndAllowThreads(__tstate);
2423 if (PyErr_Occurred()) SWIG_fail;
2424 }
2425 resultobj = SWIG_FromInt((int)result);
2426 {
2427 PyObject *o = PyInt_FromLong((long) (*arg1));
2428 resultobj = t_output_helper(resultobj,o);
2429 }
2430 {
2431 PyObject *o = PyInt_FromLong((long) (*arg2));
2432 resultobj = t_output_helper(resultobj,o);
2433 }
2434 return resultobj;
2435 fail:
2436 return NULL;
2437 }
2438
2439
2440 static PyObject *_wrap_GetOsDescription(PyObject *self, PyObject *args, PyObject *kwargs) {
2441 PyObject *resultobj;
2442 wxString result;
2443 char *kwnames[] = {
2444 NULL
2445 };
2446
2447 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetOsDescription",kwnames)) goto fail;
2448 {
2449 PyThreadState* __tstate = wxPyBeginAllowThreads();
2450 result = wxGetOsDescription();
2451
2452 wxPyEndAllowThreads(__tstate);
2453 if (PyErr_Occurred()) SWIG_fail;
2454 }
2455 {
2456 #if wxUSE_UNICODE
2457 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2458 #else
2459 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2460 #endif
2461 }
2462 return resultobj;
2463 fail:
2464 return NULL;
2465 }
2466
2467
2468 static PyObject *_wrap_GetFreeMemory(PyObject *self, PyObject *args, PyObject *kwargs) {
2469 PyObject *resultobj;
2470 long result;
2471 char *kwnames[] = {
2472 NULL
2473 };
2474
2475 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetFreeMemory",kwnames)) goto fail;
2476 {
2477 PyThreadState* __tstate = wxPyBeginAllowThreads();
2478 result = (long)wxGetFreeMemory();
2479
2480 wxPyEndAllowThreads(__tstate);
2481 if (PyErr_Occurred()) SWIG_fail;
2482 }
2483 resultobj = SWIG_FromLong((long)result);
2484 return resultobj;
2485 fail:
2486 return NULL;
2487 }
2488
2489
2490 static PyObject *_wrap_Shutdown(PyObject *self, PyObject *args, PyObject *kwargs) {
2491 PyObject *resultobj;
2492 int arg1 ;
2493 bool result;
2494 PyObject * obj0 = 0 ;
2495 char *kwnames[] = {
2496 (char *) "wFlags", NULL
2497 };
2498
2499 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Shutdown",kwnames,&obj0)) goto fail;
2500 arg1 = (wxShutdownFlags) SWIG_AsInt(obj0);
2501 if (PyErr_Occurred()) SWIG_fail;
2502 {
2503 if (!wxPyCheckForApp()) SWIG_fail;
2504 PyThreadState* __tstate = wxPyBeginAllowThreads();
2505 result = (bool)wxShutdown((wxShutdownFlags )arg1);
2506
2507 wxPyEndAllowThreads(__tstate);
2508 if (PyErr_Occurred()) SWIG_fail;
2509 }
2510 {
2511 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2512 }
2513 return resultobj;
2514 fail:
2515 return NULL;
2516 }
2517
2518
2519 static PyObject *_wrap_Sleep(PyObject *self, PyObject *args, PyObject *kwargs) {
2520 PyObject *resultobj;
2521 int arg1 ;
2522 PyObject * obj0 = 0 ;
2523 char *kwnames[] = {
2524 (char *) "secs", NULL
2525 };
2526
2527 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sleep",kwnames,&obj0)) goto fail;
2528 arg1 = (int) SWIG_AsInt(obj0);
2529 if (PyErr_Occurred()) SWIG_fail;
2530 {
2531 PyThreadState* __tstate = wxPyBeginAllowThreads();
2532 wxSleep(arg1);
2533
2534 wxPyEndAllowThreads(__tstate);
2535 if (PyErr_Occurred()) SWIG_fail;
2536 }
2537 Py_INCREF(Py_None); resultobj = Py_None;
2538 return resultobj;
2539 fail:
2540 return NULL;
2541 }
2542
2543
2544 static PyObject *_wrap_MilliSleep(PyObject *self, PyObject *args, PyObject *kwargs) {
2545 PyObject *resultobj;
2546 unsigned long arg1 ;
2547 PyObject * obj0 = 0 ;
2548 char *kwnames[] = {
2549 (char *) "milliseconds", NULL
2550 };
2551
2552 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MilliSleep",kwnames,&obj0)) goto fail;
2553 arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0);
2554 if (PyErr_Occurred()) SWIG_fail;
2555 {
2556 PyThreadState* __tstate = wxPyBeginAllowThreads();
2557 wxMilliSleep(arg1);
2558
2559 wxPyEndAllowThreads(__tstate);
2560 if (PyErr_Occurred()) SWIG_fail;
2561 }
2562 Py_INCREF(Py_None); resultobj = Py_None;
2563 return resultobj;
2564 fail:
2565 return NULL;
2566 }
2567
2568
2569 static PyObject *_wrap_MicroSleep(PyObject *self, PyObject *args, PyObject *kwargs) {
2570 PyObject *resultobj;
2571 unsigned long arg1 ;
2572 PyObject * obj0 = 0 ;
2573 char *kwnames[] = {
2574 (char *) "microseconds", NULL
2575 };
2576
2577 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MicroSleep",kwnames,&obj0)) goto fail;
2578 arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0);
2579 if (PyErr_Occurred()) SWIG_fail;
2580 {
2581 PyThreadState* __tstate = wxPyBeginAllowThreads();
2582 wxMicroSleep(arg1);
2583
2584 wxPyEndAllowThreads(__tstate);
2585 if (PyErr_Occurred()) SWIG_fail;
2586 }
2587 Py_INCREF(Py_None); resultobj = Py_None;
2588 return resultobj;
2589 fail:
2590 return NULL;
2591 }
2592
2593
2594 static PyObject *_wrap_EnableTopLevelWindows(PyObject *self, PyObject *args, PyObject *kwargs) {
2595 PyObject *resultobj;
2596 bool arg1 ;
2597 PyObject * obj0 = 0 ;
2598 char *kwnames[] = {
2599 (char *) "enable", NULL
2600 };
2601
2602 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EnableTopLevelWindows",kwnames,&obj0)) goto fail;
2603 arg1 = (bool) SWIG_AsBool(obj0);
2604 if (PyErr_Occurred()) SWIG_fail;
2605 {
2606 PyThreadState* __tstate = wxPyBeginAllowThreads();
2607 wxEnableTopLevelWindows(arg1);
2608
2609 wxPyEndAllowThreads(__tstate);
2610 if (PyErr_Occurred()) SWIG_fail;
2611 }
2612 Py_INCREF(Py_None); resultobj = Py_None;
2613 return resultobj;
2614 fail:
2615 return NULL;
2616 }
2617
2618
2619 static PyObject *_wrap_StripMenuCodes(PyObject *self, PyObject *args, PyObject *kwargs) {
2620 PyObject *resultobj;
2621 wxString *arg1 = 0 ;
2622 wxString result;
2623 bool temp1 = False ;
2624 PyObject * obj0 = 0 ;
2625 char *kwnames[] = {
2626 (char *) "in", NULL
2627 };
2628
2629 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StripMenuCodes",kwnames,&obj0)) goto fail;
2630 {
2631 arg1 = wxString_in_helper(obj0);
2632 if (arg1 == NULL) SWIG_fail;
2633 temp1 = True;
2634 }
2635 {
2636 PyThreadState* __tstate = wxPyBeginAllowThreads();
2637 result = wxStripMenuCodes((wxString const &)*arg1);
2638
2639 wxPyEndAllowThreads(__tstate);
2640 if (PyErr_Occurred()) SWIG_fail;
2641 }
2642 {
2643 #if wxUSE_UNICODE
2644 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2645 #else
2646 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2647 #endif
2648 }
2649 {
2650 if (temp1)
2651 delete arg1;
2652 }
2653 return resultobj;
2654 fail:
2655 {
2656 if (temp1)
2657 delete arg1;
2658 }
2659 return NULL;
2660 }
2661
2662
2663 static PyObject *_wrap_GetEmailAddress(PyObject *self, PyObject *args, PyObject *kwargs) {
2664 PyObject *resultobj;
2665 wxString result;
2666 char *kwnames[] = {
2667 NULL
2668 };
2669
2670 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetEmailAddress",kwnames)) goto fail;
2671 {
2672 PyThreadState* __tstate = wxPyBeginAllowThreads();
2673 result = wxGetEmailAddress();
2674
2675 wxPyEndAllowThreads(__tstate);
2676 if (PyErr_Occurred()) SWIG_fail;
2677 }
2678 {
2679 #if wxUSE_UNICODE
2680 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2681 #else
2682 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2683 #endif
2684 }
2685 return resultobj;
2686 fail:
2687 return NULL;
2688 }
2689
2690
2691 static PyObject *_wrap_GetHostName(PyObject *self, PyObject *args, PyObject *kwargs) {
2692 PyObject *resultobj;
2693 wxString result;
2694 char *kwnames[] = {
2695 NULL
2696 };
2697
2698 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetHostName",kwnames)) goto fail;
2699 {
2700 PyThreadState* __tstate = wxPyBeginAllowThreads();
2701 result = wxGetHostName();
2702
2703 wxPyEndAllowThreads(__tstate);
2704 if (PyErr_Occurred()) SWIG_fail;
2705 }
2706 {
2707 #if wxUSE_UNICODE
2708 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2709 #else
2710 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2711 #endif
2712 }
2713 return resultobj;
2714 fail:
2715 return NULL;
2716 }
2717
2718
2719 static PyObject *_wrap_GetFullHostName(PyObject *self, PyObject *args, PyObject *kwargs) {
2720 PyObject *resultobj;
2721 wxString result;
2722 char *kwnames[] = {
2723 NULL
2724 };
2725
2726 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetFullHostName",kwnames)) goto fail;
2727 {
2728 PyThreadState* __tstate = wxPyBeginAllowThreads();
2729 result = wxGetFullHostName();
2730
2731 wxPyEndAllowThreads(__tstate);
2732 if (PyErr_Occurred()) SWIG_fail;
2733 }
2734 {
2735 #if wxUSE_UNICODE
2736 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2737 #else
2738 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2739 #endif
2740 }
2741 return resultobj;
2742 fail:
2743 return NULL;
2744 }
2745
2746
2747 static PyObject *_wrap_GetUserId(PyObject *self, PyObject *args, PyObject *kwargs) {
2748 PyObject *resultobj;
2749 wxString result;
2750 char *kwnames[] = {
2751 NULL
2752 };
2753
2754 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUserId",kwnames)) goto fail;
2755 {
2756 PyThreadState* __tstate = wxPyBeginAllowThreads();
2757 result = wxGetUserId();
2758
2759 wxPyEndAllowThreads(__tstate);
2760 if (PyErr_Occurred()) SWIG_fail;
2761 }
2762 {
2763 #if wxUSE_UNICODE
2764 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2765 #else
2766 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2767 #endif
2768 }
2769 return resultobj;
2770 fail:
2771 return NULL;
2772 }
2773
2774
2775 static PyObject *_wrap_GetUserName(PyObject *self, PyObject *args, PyObject *kwargs) {
2776 PyObject *resultobj;
2777 wxString result;
2778 char *kwnames[] = {
2779 NULL
2780 };
2781
2782 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUserName",kwnames)) goto fail;
2783 {
2784 PyThreadState* __tstate = wxPyBeginAllowThreads();
2785 result = wxGetUserName();
2786
2787 wxPyEndAllowThreads(__tstate);
2788 if (PyErr_Occurred()) SWIG_fail;
2789 }
2790 {
2791 #if wxUSE_UNICODE
2792 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2793 #else
2794 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2795 #endif
2796 }
2797 return resultobj;
2798 fail:
2799 return NULL;
2800 }
2801
2802
2803 static PyObject *_wrap_GetHomeDir(PyObject *self, PyObject *args, PyObject *kwargs) {
2804 PyObject *resultobj;
2805 wxString result;
2806 char *kwnames[] = {
2807 NULL
2808 };
2809
2810 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetHomeDir",kwnames)) goto fail;
2811 {
2812 PyThreadState* __tstate = wxPyBeginAllowThreads();
2813 result = wxGetHomeDir();
2814
2815 wxPyEndAllowThreads(__tstate);
2816 if (PyErr_Occurred()) SWIG_fail;
2817 }
2818 {
2819 #if wxUSE_UNICODE
2820 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2821 #else
2822 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2823 #endif
2824 }
2825 return resultobj;
2826 fail:
2827 return NULL;
2828 }
2829
2830
2831 static PyObject *_wrap_GetUserHome(PyObject *self, PyObject *args, PyObject *kwargs) {
2832 PyObject *resultobj;
2833 wxString const &arg1_defvalue = wxPyEmptyString ;
2834 wxString *arg1 = (wxString *) &arg1_defvalue ;
2835 wxString result;
2836 bool temp1 = False ;
2837 PyObject * obj0 = 0 ;
2838 char *kwnames[] = {
2839 (char *) "user", NULL
2840 };
2841
2842 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:GetUserHome",kwnames,&obj0)) goto fail;
2843 if (obj0) {
2844 {
2845 arg1 = wxString_in_helper(obj0);
2846 if (arg1 == NULL) SWIG_fail;
2847 temp1 = True;
2848 }
2849 }
2850 {
2851 PyThreadState* __tstate = wxPyBeginAllowThreads();
2852 result = wxGetUserHome((wxString const &)*arg1);
2853
2854 wxPyEndAllowThreads(__tstate);
2855 if (PyErr_Occurred()) SWIG_fail;
2856 }
2857 {
2858 #if wxUSE_UNICODE
2859 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2860 #else
2861 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2862 #endif
2863 }
2864 {
2865 if (temp1)
2866 delete arg1;
2867 }
2868 return resultobj;
2869 fail:
2870 {
2871 if (temp1)
2872 delete arg1;
2873 }
2874 return NULL;
2875 }
2876
2877
2878 static PyObject *_wrap_GetProcessId(PyObject *self, PyObject *args, PyObject *kwargs) {
2879 PyObject *resultobj;
2880 unsigned long result;
2881 char *kwnames[] = {
2882 NULL
2883 };
2884
2885 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetProcessId",kwnames)) goto fail;
2886 {
2887 PyThreadState* __tstate = wxPyBeginAllowThreads();
2888 result = (unsigned long)wxGetProcessId();
2889
2890 wxPyEndAllowThreads(__tstate);
2891 if (PyErr_Occurred()) SWIG_fail;
2892 }
2893 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
2894 return resultobj;
2895 fail:
2896 return NULL;
2897 }
2898
2899
2900 static PyObject *_wrap_Trap(PyObject *self, PyObject *args, PyObject *kwargs) {
2901 PyObject *resultobj;
2902 char *kwnames[] = {
2903 NULL
2904 };
2905
2906 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Trap",kwnames)) goto fail;
2907 {
2908 PyThreadState* __tstate = wxPyBeginAllowThreads();
2909 wxTrap();
2910
2911 wxPyEndAllowThreads(__tstate);
2912 if (PyErr_Occurred()) SWIG_fail;
2913 }
2914 Py_INCREF(Py_None); resultobj = Py_None;
2915 return resultobj;
2916 fail:
2917 return NULL;
2918 }
2919
2920
2921 static PyObject *_wrap_FileSelector(PyObject *self, PyObject *args, PyObject *kwargs) {
2922 PyObject *resultobj;
2923 wxString const &arg1_defvalue = wxPyFileSelectorPromptStr ;
2924 wxString *arg1 = (wxString *) &arg1_defvalue ;
2925 wxString const &arg2_defvalue = wxPyEmptyString ;
2926 wxString *arg2 = (wxString *) &arg2_defvalue ;
2927 wxString const &arg3_defvalue = wxPyEmptyString ;
2928 wxString *arg3 = (wxString *) &arg3_defvalue ;
2929 wxString const &arg4_defvalue = wxPyEmptyString ;
2930 wxString *arg4 = (wxString *) &arg4_defvalue ;
2931 wxString const &arg5_defvalue = wxPyFileSelectorDefaultWildcardStr ;
2932 wxString *arg5 = (wxString *) &arg5_defvalue ;
2933 int arg6 = (int) 0 ;
2934 wxWindow *arg7 = (wxWindow *) NULL ;
2935 int arg8 = (int) -1 ;
2936 int arg9 = (int) -1 ;
2937 wxString result;
2938 bool temp1 = False ;
2939 bool temp2 = False ;
2940 bool temp3 = False ;
2941 bool temp4 = False ;
2942 bool temp5 = False ;
2943 PyObject * obj0 = 0 ;
2944 PyObject * obj1 = 0 ;
2945 PyObject * obj2 = 0 ;
2946 PyObject * obj3 = 0 ;
2947 PyObject * obj4 = 0 ;
2948 PyObject * obj5 = 0 ;
2949 PyObject * obj6 = 0 ;
2950 PyObject * obj7 = 0 ;
2951 PyObject * obj8 = 0 ;
2952 char *kwnames[] = {
2953 (char *) "message",(char *) "default_path",(char *) "default_filename",(char *) "default_extension",(char *) "wildcard",(char *) "flags",(char *) "parent",(char *) "x",(char *) "y", NULL
2954 };
2955
2956 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOOOOOO:FileSelector",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
2957 if (obj0) {
2958 {
2959 arg1 = wxString_in_helper(obj0);
2960 if (arg1 == NULL) SWIG_fail;
2961 temp1 = True;
2962 }
2963 }
2964 if (obj1) {
2965 {
2966 arg2 = wxString_in_helper(obj1);
2967 if (arg2 == NULL) SWIG_fail;
2968 temp2 = True;
2969 }
2970 }
2971 if (obj2) {
2972 {
2973 arg3 = wxString_in_helper(obj2);
2974 if (arg3 == NULL) SWIG_fail;
2975 temp3 = True;
2976 }
2977 }
2978 if (obj3) {
2979 {
2980 arg4 = wxString_in_helper(obj3);
2981 if (arg4 == NULL) SWIG_fail;
2982 temp4 = True;
2983 }
2984 }
2985 if (obj4) {
2986 {
2987 arg5 = wxString_in_helper(obj4);
2988 if (arg5 == NULL) SWIG_fail;
2989 temp5 = True;
2990 }
2991 }
2992 if (obj5) {
2993 arg6 = (int) SWIG_AsInt(obj5);
2994 if (PyErr_Occurred()) SWIG_fail;
2995 }
2996 if (obj6) {
2997 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxWindow,
2998 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2999 }
3000 if (obj7) {
3001 arg8 = (int) SWIG_AsInt(obj7);
3002 if (PyErr_Occurred()) SWIG_fail;
3003 }
3004 if (obj8) {
3005 arg9 = (int) SWIG_AsInt(obj8);
3006 if (PyErr_Occurred()) SWIG_fail;
3007 }
3008 {
3009 if (!wxPyCheckForApp()) SWIG_fail;
3010 PyThreadState* __tstate = wxPyBeginAllowThreads();
3011 result = wxFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxString const &)*arg5,arg6,arg7,arg8,arg9);
3012
3013 wxPyEndAllowThreads(__tstate);
3014 if (PyErr_Occurred()) SWIG_fail;
3015 }
3016 {
3017 #if wxUSE_UNICODE
3018 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3019 #else
3020 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3021 #endif
3022 }
3023 {
3024 if (temp1)
3025 delete arg1;
3026 }
3027 {
3028 if (temp2)
3029 delete arg2;
3030 }
3031 {
3032 if (temp3)
3033 delete arg3;
3034 }
3035 {
3036 if (temp4)
3037 delete arg4;
3038 }
3039 {
3040 if (temp5)
3041 delete arg5;
3042 }
3043 return resultobj;
3044 fail:
3045 {
3046 if (temp1)
3047 delete arg1;
3048 }
3049 {
3050 if (temp2)
3051 delete arg2;
3052 }
3053 {
3054 if (temp3)
3055 delete arg3;
3056 }
3057 {
3058 if (temp4)
3059 delete arg4;
3060 }
3061 {
3062 if (temp5)
3063 delete arg5;
3064 }
3065 return NULL;
3066 }
3067
3068
3069 static PyObject *_wrap_LoadFileSelector(PyObject *self, PyObject *args, PyObject *kwargs) {
3070 PyObject *resultobj;
3071 wxString *arg1 = 0 ;
3072 wxString *arg2 = 0 ;
3073 wxString const &arg3_defvalue = wxPyEmptyString ;
3074 wxString *arg3 = (wxString *) &arg3_defvalue ;
3075 wxWindow *arg4 = (wxWindow *) NULL ;
3076 wxString result;
3077 bool temp1 = False ;
3078 bool temp2 = False ;
3079 bool temp3 = False ;
3080 PyObject * obj0 = 0 ;
3081 PyObject * obj1 = 0 ;
3082 PyObject * obj2 = 0 ;
3083 PyObject * obj3 = 0 ;
3084 char *kwnames[] = {
3085 (char *) "what",(char *) "extension",(char *) "default_name",(char *) "parent", NULL
3086 };
3087
3088 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:LoadFileSelector",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3089 {
3090 arg1 = wxString_in_helper(obj0);
3091 if (arg1 == NULL) SWIG_fail;
3092 temp1 = True;
3093 }
3094 {
3095 arg2 = wxString_in_helper(obj1);
3096 if (arg2 == NULL) SWIG_fail;
3097 temp2 = True;
3098 }
3099 if (obj2) {
3100 {
3101 arg3 = wxString_in_helper(obj2);
3102 if (arg3 == NULL) SWIG_fail;
3103 temp3 = True;
3104 }
3105 }
3106 if (obj3) {
3107 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow,
3108 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3109 }
3110 {
3111 if (!wxPyCheckForApp()) SWIG_fail;
3112 PyThreadState* __tstate = wxPyBeginAllowThreads();
3113 result = wxLoadFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4);
3114
3115 wxPyEndAllowThreads(__tstate);
3116 if (PyErr_Occurred()) SWIG_fail;
3117 }
3118 {
3119 #if wxUSE_UNICODE
3120 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3121 #else
3122 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3123 #endif
3124 }
3125 {
3126 if (temp1)
3127 delete arg1;
3128 }
3129 {
3130 if (temp2)
3131 delete arg2;
3132 }
3133 {
3134 if (temp3)
3135 delete arg3;
3136 }
3137 return resultobj;
3138 fail:
3139 {
3140 if (temp1)
3141 delete arg1;
3142 }
3143 {
3144 if (temp2)
3145 delete arg2;
3146 }
3147 {
3148 if (temp3)
3149 delete arg3;
3150 }
3151 return NULL;
3152 }
3153
3154
3155 static PyObject *_wrap_SaveFileSelector(PyObject *self, PyObject *args, PyObject *kwargs) {
3156 PyObject *resultobj;
3157 wxString *arg1 = 0 ;
3158 wxString *arg2 = 0 ;
3159 wxString const &arg3_defvalue = wxPyEmptyString ;
3160 wxString *arg3 = (wxString *) &arg3_defvalue ;
3161 wxWindow *arg4 = (wxWindow *) NULL ;
3162 wxString result;
3163 bool temp1 = False ;
3164 bool temp2 = False ;
3165 bool temp3 = False ;
3166 PyObject * obj0 = 0 ;
3167 PyObject * obj1 = 0 ;
3168 PyObject * obj2 = 0 ;
3169 PyObject * obj3 = 0 ;
3170 char *kwnames[] = {
3171 (char *) "what",(char *) "extension",(char *) "default_name",(char *) "parent", NULL
3172 };
3173
3174 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:SaveFileSelector",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3175 {
3176 arg1 = wxString_in_helper(obj0);
3177 if (arg1 == NULL) SWIG_fail;
3178 temp1 = True;
3179 }
3180 {
3181 arg2 = wxString_in_helper(obj1);
3182 if (arg2 == NULL) SWIG_fail;
3183 temp2 = True;
3184 }
3185 if (obj2) {
3186 {
3187 arg3 = wxString_in_helper(obj2);
3188 if (arg3 == NULL) SWIG_fail;
3189 temp3 = True;
3190 }
3191 }
3192 if (obj3) {
3193 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow,
3194 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3195 }
3196 {
3197 if (!wxPyCheckForApp()) SWIG_fail;
3198 PyThreadState* __tstate = wxPyBeginAllowThreads();
3199 result = wxSaveFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4);
3200
3201 wxPyEndAllowThreads(__tstate);
3202 if (PyErr_Occurred()) SWIG_fail;
3203 }
3204 {
3205 #if wxUSE_UNICODE
3206 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3207 #else
3208 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3209 #endif
3210 }
3211 {
3212 if (temp1)
3213 delete arg1;
3214 }
3215 {
3216 if (temp2)
3217 delete arg2;
3218 }
3219 {
3220 if (temp3)
3221 delete arg3;
3222 }
3223 return resultobj;
3224 fail:
3225 {
3226 if (temp1)
3227 delete arg1;
3228 }
3229 {
3230 if (temp2)
3231 delete arg2;
3232 }
3233 {
3234 if (temp3)
3235 delete arg3;
3236 }
3237 return NULL;
3238 }
3239
3240
3241 static PyObject *_wrap_DirSelector(PyObject *self, PyObject *args, PyObject *kwargs) {
3242 PyObject *resultobj;
3243 wxString const &arg1_defvalue = wxPyDirSelectorPromptStr ;
3244 wxString *arg1 = (wxString *) &arg1_defvalue ;
3245 wxString const &arg2_defvalue = wxPyEmptyString ;
3246 wxString *arg2 = (wxString *) &arg2_defvalue ;
3247 long arg3 = (long) wxDD_DEFAULT_STYLE ;
3248 wxPoint const &arg4_defvalue = wxDefaultPosition ;
3249 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
3250 wxWindow *arg5 = (wxWindow *) NULL ;
3251 wxString result;
3252 bool temp1 = False ;
3253 bool temp2 = False ;
3254 wxPoint temp4 ;
3255 PyObject * obj0 = 0 ;
3256 PyObject * obj1 = 0 ;
3257 PyObject * obj2 = 0 ;
3258 PyObject * obj3 = 0 ;
3259 PyObject * obj4 = 0 ;
3260 char *kwnames[] = {
3261 (char *) "message",(char *) "defaultPath",(char *) "style",(char *) "pos",(char *) "parent", NULL
3262 };
3263
3264 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:DirSelector",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
3265 if (obj0) {
3266 {
3267 arg1 = wxString_in_helper(obj0);
3268 if (arg1 == NULL) SWIG_fail;
3269 temp1 = True;
3270 }
3271 }
3272 if (obj1) {
3273 {
3274 arg2 = wxString_in_helper(obj1);
3275 if (arg2 == NULL) SWIG_fail;
3276 temp2 = True;
3277 }
3278 }
3279 if (obj2) {
3280 arg3 = (long) SWIG_AsLong(obj2);
3281 if (PyErr_Occurred()) SWIG_fail;
3282 }
3283 if (obj3) {
3284 {
3285 arg4 = &temp4;
3286 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
3287 }
3288 }
3289 if (obj4) {
3290 if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxWindow,
3291 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3292 }
3293 {
3294 if (!wxPyCheckForApp()) SWIG_fail;
3295 PyThreadState* __tstate = wxPyBeginAllowThreads();
3296 result = wxDirSelector((wxString const &)*arg1,(wxString const &)*arg2,arg3,(wxPoint const &)*arg4,arg5);
3297
3298 wxPyEndAllowThreads(__tstate);
3299 if (PyErr_Occurred()) SWIG_fail;
3300 }
3301 {
3302 #if wxUSE_UNICODE
3303 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3304 #else
3305 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3306 #endif
3307 }
3308 {
3309 if (temp1)
3310 delete arg1;
3311 }
3312 {
3313 if (temp2)
3314 delete arg2;
3315 }
3316 return resultobj;
3317 fail:
3318 {
3319 if (temp1)
3320 delete arg1;
3321 }
3322 {
3323 if (temp2)
3324 delete arg2;
3325 }
3326 return NULL;
3327 }
3328
3329
3330 static PyObject *_wrap_GetTextFromUser(PyObject *self, PyObject *args, PyObject *kwargs) {
3331 PyObject *resultobj;
3332 wxString *arg1 = 0 ;
3333 wxString const &arg2_defvalue = wxPyEmptyString ;
3334 wxString *arg2 = (wxString *) &arg2_defvalue ;
3335 wxString const &arg3_defvalue = wxPyEmptyString ;
3336 wxString *arg3 = (wxString *) &arg3_defvalue ;
3337 wxWindow *arg4 = (wxWindow *) NULL ;
3338 int arg5 = (int) -1 ;
3339 int arg6 = (int) -1 ;
3340 bool arg7 = (bool) True ;
3341 wxString result;
3342 bool temp1 = False ;
3343 bool temp2 = False ;
3344 bool temp3 = False ;
3345 PyObject * obj0 = 0 ;
3346 PyObject * obj1 = 0 ;
3347 PyObject * obj2 = 0 ;
3348 PyObject * obj3 = 0 ;
3349 PyObject * obj4 = 0 ;
3350 PyObject * obj5 = 0 ;
3351 PyObject * obj6 = 0 ;
3352 char *kwnames[] = {
3353 (char *) "message",(char *) "caption",(char *) "default_value",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre", NULL
3354 };
3355
3356 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GetTextFromUser",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
3357 {
3358 arg1 = wxString_in_helper(obj0);
3359 if (arg1 == NULL) SWIG_fail;
3360 temp1 = True;
3361 }
3362 if (obj1) {
3363 {
3364 arg2 = wxString_in_helper(obj1);
3365 if (arg2 == NULL) SWIG_fail;
3366 temp2 = True;
3367 }
3368 }
3369 if (obj2) {
3370 {
3371 arg3 = wxString_in_helper(obj2);
3372 if (arg3 == NULL) SWIG_fail;
3373 temp3 = True;
3374 }
3375 }
3376 if (obj3) {
3377 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow,
3378 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3379 }
3380 if (obj4) {
3381 arg5 = (int) SWIG_AsInt(obj4);
3382 if (PyErr_Occurred()) SWIG_fail;
3383 }
3384 if (obj5) {
3385 arg6 = (int) SWIG_AsInt(obj5);
3386 if (PyErr_Occurred()) SWIG_fail;
3387 }
3388 if (obj6) {
3389 arg7 = (bool) SWIG_AsBool(obj6);
3390 if (PyErr_Occurred()) SWIG_fail;
3391 }
3392 {
3393 if (!wxPyCheckForApp()) SWIG_fail;
3394 PyThreadState* __tstate = wxPyBeginAllowThreads();
3395 result = wxGetTextFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6,arg7);
3396
3397 wxPyEndAllowThreads(__tstate);
3398 if (PyErr_Occurred()) SWIG_fail;
3399 }
3400 {
3401 #if wxUSE_UNICODE
3402 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3403 #else
3404 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3405 #endif
3406 }
3407 {
3408 if (temp1)
3409 delete arg1;
3410 }
3411 {
3412 if (temp2)
3413 delete arg2;
3414 }
3415 {
3416 if (temp3)
3417 delete arg3;
3418 }
3419 return resultobj;
3420 fail:
3421 {
3422 if (temp1)
3423 delete arg1;
3424 }
3425 {
3426 if (temp2)
3427 delete arg2;
3428 }
3429 {
3430 if (temp3)
3431 delete arg3;
3432 }
3433 return NULL;
3434 }
3435
3436
3437 static PyObject *_wrap_GetPasswordFromUser(PyObject *self, PyObject *args, PyObject *kwargs) {
3438 PyObject *resultobj;
3439 wxString *arg1 = 0 ;
3440 wxString const &arg2_defvalue = wxPyEmptyString ;
3441 wxString *arg2 = (wxString *) &arg2_defvalue ;
3442 wxString const &arg3_defvalue = wxPyEmptyString ;
3443 wxString *arg3 = (wxString *) &arg3_defvalue ;
3444 wxWindow *arg4 = (wxWindow *) NULL ;
3445 wxString result;
3446 bool temp1 = False ;
3447 bool temp2 = False ;
3448 bool temp3 = False ;
3449 PyObject * obj0 = 0 ;
3450 PyObject * obj1 = 0 ;
3451 PyObject * obj2 = 0 ;
3452 PyObject * obj3 = 0 ;
3453 char *kwnames[] = {
3454 (char *) "message",(char *) "caption",(char *) "default_value",(char *) "parent", NULL
3455 };
3456
3457 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:GetPasswordFromUser",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3458 {
3459 arg1 = wxString_in_helper(obj0);
3460 if (arg1 == NULL) SWIG_fail;
3461 temp1 = True;
3462 }
3463 if (obj1) {
3464 {
3465 arg2 = wxString_in_helper(obj1);
3466 if (arg2 == NULL) SWIG_fail;
3467 temp2 = True;
3468 }
3469 }
3470 if (obj2) {
3471 {
3472 arg3 = wxString_in_helper(obj2);
3473 if (arg3 == NULL) SWIG_fail;
3474 temp3 = True;
3475 }
3476 }
3477 if (obj3) {
3478 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow,
3479 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3480 }
3481 {
3482 if (!wxPyCheckForApp()) SWIG_fail;
3483 PyThreadState* __tstate = wxPyBeginAllowThreads();
3484 result = wxGetPasswordFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4);
3485
3486 wxPyEndAllowThreads(__tstate);
3487 if (PyErr_Occurred()) SWIG_fail;
3488 }
3489 {
3490 #if wxUSE_UNICODE
3491 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3492 #else
3493 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3494 #endif
3495 }
3496 {
3497 if (temp1)
3498 delete arg1;
3499 }
3500 {
3501 if (temp2)
3502 delete arg2;
3503 }
3504 {
3505 if (temp3)
3506 delete arg3;
3507 }
3508 return resultobj;
3509 fail:
3510 {
3511 if (temp1)
3512 delete arg1;
3513 }
3514 {
3515 if (temp2)
3516 delete arg2;
3517 }
3518 {
3519 if (temp3)
3520 delete arg3;
3521 }
3522 return NULL;
3523 }
3524
3525
3526 static PyObject *_wrap_GetSingleChoice(PyObject *self, PyObject *args, PyObject *kwargs) {
3527 PyObject *resultobj;
3528 wxString *arg1 = 0 ;
3529 wxString *arg2 = 0 ;
3530 int arg3 ;
3531 wxString *arg4 = (wxString *) 0 ;
3532 wxWindow *arg5 = (wxWindow *) NULL ;
3533 int arg6 = (int) -1 ;
3534 int arg7 = (int) -1 ;
3535 bool arg8 = (bool) True ;
3536 int arg9 = (int) 150 ;
3537 int arg10 = (int) 200 ;
3538 wxString result;
3539 bool temp1 = False ;
3540 bool temp2 = False ;
3541 PyObject * obj0 = 0 ;
3542 PyObject * obj1 = 0 ;
3543 PyObject * obj2 = 0 ;
3544 PyObject * obj3 = 0 ;
3545 PyObject * obj4 = 0 ;
3546 PyObject * obj5 = 0 ;
3547 PyObject * obj6 = 0 ;
3548 PyObject * obj7 = 0 ;
3549 PyObject * obj8 = 0 ;
3550 char *kwnames[] = {
3551 (char *) "message",(char *) "caption",(char *) "choices",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre",(char *) "width",(char *) "height", NULL
3552 };
3553
3554 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:GetSingleChoice",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
3555 {
3556 arg1 = wxString_in_helper(obj0);
3557 if (arg1 == NULL) SWIG_fail;
3558 temp1 = True;
3559 }
3560 {
3561 arg2 = wxString_in_helper(obj1);
3562 if (arg2 == NULL) SWIG_fail;
3563 temp2 = True;
3564 }
3565 {
3566 arg3 = PyList_Size(obj2);
3567 arg4 = wxString_LIST_helper(obj2);
3568 if (arg4 == NULL) SWIG_fail;
3569 }
3570 if (obj3) {
3571 if ((SWIG_ConvertPtr(obj3,(void **)(&arg5),SWIGTYPE_p_wxWindow,
3572 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3573 }
3574 if (obj4) {
3575 arg6 = (int) SWIG_AsInt(obj4);
3576 if (PyErr_Occurred()) SWIG_fail;
3577 }
3578 if (obj5) {
3579 arg7 = (int) SWIG_AsInt(obj5);
3580 if (PyErr_Occurred()) SWIG_fail;
3581 }
3582 if (obj6) {
3583 arg8 = (bool) SWIG_AsBool(obj6);
3584 if (PyErr_Occurred()) SWIG_fail;
3585 }
3586 if (obj7) {
3587 arg9 = (int) SWIG_AsInt(obj7);
3588 if (PyErr_Occurred()) SWIG_fail;
3589 }
3590 if (obj8) {
3591 arg10 = (int) SWIG_AsInt(obj8);
3592 if (PyErr_Occurred()) SWIG_fail;
3593 }
3594 {
3595 if (!wxPyCheckForApp()) SWIG_fail;
3596 PyThreadState* __tstate = wxPyBeginAllowThreads();
3597 result = wxGetSingleChoice((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10);
3598
3599 wxPyEndAllowThreads(__tstate);
3600 if (PyErr_Occurred()) SWIG_fail;
3601 }
3602 {
3603 #if wxUSE_UNICODE
3604 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3605 #else
3606 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3607 #endif
3608 }
3609 {
3610 if (temp1)
3611 delete arg1;
3612 }
3613 {
3614 if (temp2)
3615 delete arg2;
3616 }
3617 {
3618 if (arg4) delete [] arg4;
3619 }
3620 return resultobj;
3621 fail:
3622 {
3623 if (temp1)
3624 delete arg1;
3625 }
3626 {
3627 if (temp2)
3628 delete arg2;
3629 }
3630 {
3631 if (arg4) delete [] arg4;
3632 }
3633 return NULL;
3634 }
3635
3636
3637 static PyObject *_wrap_GetSingleChoiceIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
3638 PyObject *resultobj;
3639 wxString *arg1 = 0 ;
3640 wxString *arg2 = 0 ;
3641 int arg3 ;
3642 wxString *arg4 = (wxString *) 0 ;
3643 wxWindow *arg5 = (wxWindow *) NULL ;
3644 int arg6 = (int) -1 ;
3645 int arg7 = (int) -1 ;
3646 bool arg8 = (bool) True ;
3647 int arg9 = (int) 150 ;
3648 int arg10 = (int) 200 ;
3649 int result;
3650 bool temp1 = False ;
3651 bool temp2 = False ;
3652 PyObject * obj0 = 0 ;
3653 PyObject * obj1 = 0 ;
3654 PyObject * obj2 = 0 ;
3655 PyObject * obj3 = 0 ;
3656 PyObject * obj4 = 0 ;
3657 PyObject * obj5 = 0 ;
3658 PyObject * obj6 = 0 ;
3659 PyObject * obj7 = 0 ;
3660 PyObject * obj8 = 0 ;
3661 char *kwnames[] = {
3662 (char *) "message",(char *) "caption",(char *) "choices",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre",(char *) "width",(char *) "height", NULL
3663 };
3664
3665 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:GetSingleChoiceIndex",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
3666 {
3667 arg1 = wxString_in_helper(obj0);
3668 if (arg1 == NULL) SWIG_fail;
3669 temp1 = True;
3670 }
3671 {
3672 arg2 = wxString_in_helper(obj1);
3673 if (arg2 == NULL) SWIG_fail;
3674 temp2 = True;
3675 }
3676 {
3677 arg3 = PyList_Size(obj2);
3678 arg4 = wxString_LIST_helper(obj2);
3679 if (arg4 == NULL) SWIG_fail;
3680 }
3681 if (obj3) {
3682 if ((SWIG_ConvertPtr(obj3,(void **)(&arg5),SWIGTYPE_p_wxWindow,
3683 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3684 }
3685 if (obj4) {
3686 arg6 = (int) SWIG_AsInt(obj4);
3687 if (PyErr_Occurred()) SWIG_fail;
3688 }
3689 if (obj5) {
3690 arg7 = (int) SWIG_AsInt(obj5);
3691 if (PyErr_Occurred()) SWIG_fail;
3692 }
3693 if (obj6) {
3694 arg8 = (bool) SWIG_AsBool(obj6);
3695 if (PyErr_Occurred()) SWIG_fail;
3696 }
3697 if (obj7) {
3698 arg9 = (int) SWIG_AsInt(obj7);
3699 if (PyErr_Occurred()) SWIG_fail;
3700 }
3701 if (obj8) {
3702 arg10 = (int) SWIG_AsInt(obj8);
3703 if (PyErr_Occurred()) SWIG_fail;
3704 }
3705 {
3706 if (!wxPyCheckForApp()) SWIG_fail;
3707 PyThreadState* __tstate = wxPyBeginAllowThreads();
3708 result = (int)wxGetSingleChoiceIndex((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10);
3709
3710 wxPyEndAllowThreads(__tstate);
3711 if (PyErr_Occurred()) SWIG_fail;
3712 }
3713 resultobj = SWIG_FromInt((int)result);
3714 {
3715 if (temp1)
3716 delete arg1;
3717 }
3718 {
3719 if (temp2)
3720 delete arg2;
3721 }
3722 {
3723 if (arg4) delete [] arg4;
3724 }
3725 return resultobj;
3726 fail:
3727 {
3728 if (temp1)
3729 delete arg1;
3730 }
3731 {
3732 if (temp2)
3733 delete arg2;
3734 }
3735 {
3736 if (arg4) delete [] arg4;
3737 }
3738 return NULL;
3739 }
3740
3741
3742 static PyObject *_wrap_MessageBox(PyObject *self, PyObject *args, PyObject *kwargs) {
3743 PyObject *resultobj;
3744 wxString *arg1 = 0 ;
3745 wxString const &arg2_defvalue = wxPyEmptyString ;
3746 wxString *arg2 = (wxString *) &arg2_defvalue ;
3747 int arg3 = (int) wxOK|wxCENTRE ;
3748 wxWindow *arg4 = (wxWindow *) NULL ;
3749 int arg5 = (int) -1 ;
3750 int arg6 = (int) -1 ;
3751 int result;
3752 bool temp1 = False ;
3753 bool temp2 = False ;
3754 PyObject * obj0 = 0 ;
3755 PyObject * obj1 = 0 ;
3756 PyObject * obj2 = 0 ;
3757 PyObject * obj3 = 0 ;
3758 PyObject * obj4 = 0 ;
3759 PyObject * obj5 = 0 ;
3760 char *kwnames[] = {
3761 (char *) "message",(char *) "caption",(char *) "style",(char *) "parent",(char *) "x",(char *) "y", NULL
3762 };
3763
3764 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:MessageBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
3765 {
3766 arg1 = wxString_in_helper(obj0);
3767 if (arg1 == NULL) SWIG_fail;
3768 temp1 = True;
3769 }
3770 if (obj1) {
3771 {
3772 arg2 = wxString_in_helper(obj1);
3773 if (arg2 == NULL) SWIG_fail;
3774 temp2 = True;
3775 }
3776 }
3777 if (obj2) {
3778 arg3 = (int) SWIG_AsInt(obj2);
3779 if (PyErr_Occurred()) SWIG_fail;
3780 }
3781 if (obj3) {
3782 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow,
3783 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3784 }
3785 if (obj4) {
3786 arg5 = (int) SWIG_AsInt(obj4);
3787 if (PyErr_Occurred()) SWIG_fail;
3788 }
3789 if (obj5) {
3790 arg6 = (int) SWIG_AsInt(obj5);
3791 if (PyErr_Occurred()) SWIG_fail;
3792 }
3793 {
3794 if (!wxPyCheckForApp()) SWIG_fail;
3795 PyThreadState* __tstate = wxPyBeginAllowThreads();
3796 result = (int)wxMessageBox((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6);
3797
3798 wxPyEndAllowThreads(__tstate);
3799 if (PyErr_Occurred()) SWIG_fail;
3800 }
3801 resultobj = SWIG_FromInt((int)result);
3802 {
3803 if (temp1)
3804 delete arg1;
3805 }
3806 {
3807 if (temp2)
3808 delete arg2;
3809 }
3810 return resultobj;
3811 fail:
3812 {
3813 if (temp1)
3814 delete arg1;
3815 }
3816 {
3817 if (temp2)
3818 delete arg2;
3819 }
3820 return NULL;
3821 }
3822
3823
3824 static PyObject *_wrap_GetNumberFromUser(PyObject *self, PyObject *args, PyObject *kwargs) {
3825 PyObject *resultobj;
3826 wxString *arg1 = 0 ;
3827 wxString *arg2 = 0 ;
3828 wxString *arg3 = 0 ;
3829 long arg4 ;
3830 long arg5 = (long) 0 ;
3831 long arg6 = (long) 100 ;
3832 wxWindow *arg7 = (wxWindow *) NULL ;
3833 wxPoint const &arg8_defvalue = wxDefaultPosition ;
3834 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
3835 long result;
3836 bool temp1 = False ;
3837 bool temp2 = False ;
3838 bool temp3 = False ;
3839 wxPoint temp8 ;
3840 PyObject * obj0 = 0 ;
3841 PyObject * obj1 = 0 ;
3842 PyObject * obj2 = 0 ;
3843 PyObject * obj3 = 0 ;
3844 PyObject * obj4 = 0 ;
3845 PyObject * obj5 = 0 ;
3846 PyObject * obj6 = 0 ;
3847 PyObject * obj7 = 0 ;
3848 char *kwnames[] = {
3849 (char *) "message",(char *) "prompt",(char *) "caption",(char *) "value",(char *) "min",(char *) "max",(char *) "parent",(char *) "pos", NULL
3850 };
3851
3852 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:GetNumberFromUser",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
3853 {
3854 arg1 = wxString_in_helper(obj0);
3855 if (arg1 == NULL) SWIG_fail;
3856 temp1 = True;
3857 }
3858 {
3859 arg2 = wxString_in_helper(obj1);
3860 if (arg2 == NULL) SWIG_fail;
3861 temp2 = True;
3862 }
3863 {
3864 arg3 = wxString_in_helper(obj2);
3865 if (arg3 == NULL) SWIG_fail;
3866 temp3 = True;
3867 }
3868 arg4 = (long) SWIG_AsLong(obj3);
3869 if (PyErr_Occurred()) SWIG_fail;
3870 if (obj4) {
3871 arg5 = (long) SWIG_AsLong(obj4);
3872 if (PyErr_Occurred()) SWIG_fail;
3873 }
3874 if (obj5) {
3875 arg6 = (long) SWIG_AsLong(obj5);
3876 if (PyErr_Occurred()) SWIG_fail;
3877 }
3878 if (obj6) {
3879 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxWindow,
3880 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3881 }
3882 if (obj7) {
3883 {
3884 arg8 = &temp8;
3885 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
3886 }
3887 }
3888 {
3889 if (!wxPyCheckForApp()) SWIG_fail;
3890 PyThreadState* __tstate = wxPyBeginAllowThreads();
3891 result = (long)wxGetNumberFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6,arg7,(wxPoint const &)*arg8);
3892
3893 wxPyEndAllowThreads(__tstate);
3894 if (PyErr_Occurred()) SWIG_fail;
3895 }
3896 resultobj = SWIG_FromLong((long)result);
3897 {
3898 if (temp1)
3899 delete arg1;
3900 }
3901 {
3902 if (temp2)
3903 delete arg2;
3904 }
3905 {
3906 if (temp3)
3907 delete arg3;
3908 }
3909 return resultobj;
3910 fail:
3911 {
3912 if (temp1)
3913 delete arg1;
3914 }
3915 {
3916 if (temp2)
3917 delete arg2;
3918 }
3919 {
3920 if (temp3)
3921 delete arg3;
3922 }
3923 return NULL;
3924 }
3925
3926
3927 static PyObject *_wrap_ColourDisplay(PyObject *self, PyObject *args, PyObject *kwargs) {
3928 PyObject *resultobj;
3929 bool result;
3930 char *kwnames[] = {
3931 NULL
3932 };
3933
3934 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ColourDisplay",kwnames)) goto fail;
3935 {
3936 if (!wxPyCheckForApp()) SWIG_fail;
3937 PyThreadState* __tstate = wxPyBeginAllowThreads();
3938 result = (bool)wxColourDisplay();
3939
3940 wxPyEndAllowThreads(__tstate);
3941 if (PyErr_Occurred()) SWIG_fail;
3942 }
3943 {
3944 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3945 }
3946 return resultobj;
3947 fail:
3948 return NULL;
3949 }
3950
3951
3952 static PyObject *_wrap_DisplayDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3953 PyObject *resultobj;
3954 int result;
3955 char *kwnames[] = {
3956 NULL
3957 };
3958
3959 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplayDepth",kwnames)) goto fail;
3960 {
3961 if (!wxPyCheckForApp()) SWIG_fail;
3962 PyThreadState* __tstate = wxPyBeginAllowThreads();
3963 result = (int)wxDisplayDepth();
3964
3965 wxPyEndAllowThreads(__tstate);
3966 if (PyErr_Occurred()) SWIG_fail;
3967 }
3968 resultobj = SWIG_FromInt((int)result);
3969 return resultobj;
3970 fail:
3971 return NULL;
3972 }
3973
3974
3975 static PyObject *_wrap_GetDisplayDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3976 PyObject *resultobj;
3977 int result;
3978 char *kwnames[] = {
3979 NULL
3980 };
3981
3982 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplayDepth",kwnames)) goto fail;
3983 {
3984 if (!wxPyCheckForApp()) SWIG_fail;
3985 PyThreadState* __tstate = wxPyBeginAllowThreads();
3986 result = (int)wxGetDisplayDepth();
3987
3988 wxPyEndAllowThreads(__tstate);
3989 if (PyErr_Occurred()) SWIG_fail;
3990 }
3991 resultobj = SWIG_FromInt((int)result);
3992 return resultobj;
3993 fail:
3994 return NULL;
3995 }
3996
3997
3998 static PyObject *_wrap_DisplaySize(PyObject *self, PyObject *args, PyObject *kwargs) {
3999 PyObject *resultobj;
4000 int *arg1 = (int *) 0 ;
4001 int *arg2 = (int *) 0 ;
4002 int temp1 ;
4003 int temp2 ;
4004 char *kwnames[] = {
4005 NULL
4006 };
4007
4008 arg1 = &temp1;
4009 arg2 = &temp2;
4010 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplaySize",kwnames)) goto fail;
4011 {
4012 if (!wxPyCheckForApp()) SWIG_fail;
4013 PyThreadState* __tstate = wxPyBeginAllowThreads();
4014 wxDisplaySize(arg1,arg2);
4015
4016 wxPyEndAllowThreads(__tstate);
4017 if (PyErr_Occurred()) SWIG_fail;
4018 }
4019 Py_INCREF(Py_None); resultobj = Py_None;
4020 {
4021 PyObject *o = PyInt_FromLong((long) (*arg1));
4022 resultobj = t_output_helper(resultobj,o);
4023 }
4024 {
4025 PyObject *o = PyInt_FromLong((long) (*arg2));
4026 resultobj = t_output_helper(resultobj,o);
4027 }
4028 return resultobj;
4029 fail:
4030 return NULL;
4031 }
4032
4033
4034 static PyObject *_wrap_GetDisplaySize(PyObject *self, PyObject *args, PyObject *kwargs) {
4035 PyObject *resultobj;
4036 wxSize result;
4037 char *kwnames[] = {
4038 NULL
4039 };
4040
4041 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplaySize",kwnames)) goto fail;
4042 {
4043 if (!wxPyCheckForApp()) SWIG_fail;
4044 PyThreadState* __tstate = wxPyBeginAllowThreads();
4045 result = wxGetDisplaySize();
4046
4047 wxPyEndAllowThreads(__tstate);
4048 if (PyErr_Occurred()) SWIG_fail;
4049 }
4050 {
4051 wxSize * resultptr;
4052 resultptr = new wxSize((wxSize &) result);
4053 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
4054 }
4055 return resultobj;
4056 fail:
4057 return NULL;
4058 }
4059
4060
4061 static PyObject *_wrap_DisplaySizeMM(PyObject *self, PyObject *args, PyObject *kwargs) {
4062 PyObject *resultobj;
4063 int *arg1 = (int *) 0 ;
4064 int *arg2 = (int *) 0 ;
4065 int temp1 ;
4066 int temp2 ;
4067 char *kwnames[] = {
4068 NULL
4069 };
4070
4071 arg1 = &temp1;
4072 arg2 = &temp2;
4073 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplaySizeMM",kwnames)) goto fail;
4074 {
4075 if (!wxPyCheckForApp()) SWIG_fail;
4076 PyThreadState* __tstate = wxPyBeginAllowThreads();
4077 wxDisplaySizeMM(arg1,arg2);
4078
4079 wxPyEndAllowThreads(__tstate);
4080 if (PyErr_Occurred()) SWIG_fail;
4081 }
4082 Py_INCREF(Py_None); resultobj = Py_None;
4083 {
4084 PyObject *o = PyInt_FromLong((long) (*arg1));
4085 resultobj = t_output_helper(resultobj,o);
4086 }
4087 {
4088 PyObject *o = PyInt_FromLong((long) (*arg2));
4089 resultobj = t_output_helper(resultobj,o);
4090 }
4091 return resultobj;
4092 fail:
4093 return NULL;
4094 }
4095
4096
4097 static PyObject *_wrap_GetDisplaySizeMM(PyObject *self, PyObject *args, PyObject *kwargs) {
4098 PyObject *resultobj;
4099 wxSize result;
4100 char *kwnames[] = {
4101 NULL
4102 };
4103
4104 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplaySizeMM",kwnames)) goto fail;
4105 {
4106 if (!wxPyCheckForApp()) SWIG_fail;
4107 PyThreadState* __tstate = wxPyBeginAllowThreads();
4108 result = wxGetDisplaySizeMM();
4109
4110 wxPyEndAllowThreads(__tstate);
4111 if (PyErr_Occurred()) SWIG_fail;
4112 }
4113 {
4114 wxSize * resultptr;
4115 resultptr = new wxSize((wxSize &) result);
4116 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
4117 }
4118 return resultobj;
4119 fail:
4120 return NULL;
4121 }
4122
4123
4124 static PyObject *_wrap_ClientDisplayRect(PyObject *self, PyObject *args, PyObject *kwargs) {
4125 PyObject *resultobj;
4126 int *arg1 = (int *) 0 ;
4127 int *arg2 = (int *) 0 ;
4128 int *arg3 = (int *) 0 ;
4129 int *arg4 = (int *) 0 ;
4130 int temp1 ;
4131 int temp2 ;
4132 int temp3 ;
4133 int temp4 ;
4134 char *kwnames[] = {
4135 NULL
4136 };
4137
4138 arg1 = &temp1;
4139 arg2 = &temp2;
4140 arg3 = &temp3;
4141 arg4 = &temp4;
4142 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ClientDisplayRect",kwnames)) goto fail;
4143 {
4144 if (!wxPyCheckForApp()) SWIG_fail;
4145 PyThreadState* __tstate = wxPyBeginAllowThreads();
4146 wxClientDisplayRect(arg1,arg2,arg3,arg4);
4147
4148 wxPyEndAllowThreads(__tstate);
4149 if (PyErr_Occurred()) SWIG_fail;
4150 }
4151 Py_INCREF(Py_None); resultobj = Py_None;
4152 {
4153 PyObject *o = PyInt_FromLong((long) (*arg1));
4154 resultobj = t_output_helper(resultobj,o);
4155 }
4156 {
4157 PyObject *o = PyInt_FromLong((long) (*arg2));
4158 resultobj = t_output_helper(resultobj,o);
4159 }
4160 {
4161 PyObject *o = PyInt_FromLong((long) (*arg3));
4162 resultobj = t_output_helper(resultobj,o);
4163 }
4164 {
4165 PyObject *o = PyInt_FromLong((long) (*arg4));
4166 resultobj = t_output_helper(resultobj,o);
4167 }
4168 return resultobj;
4169 fail:
4170 return NULL;
4171 }
4172
4173
4174 static PyObject *_wrap_GetClientDisplayRect(PyObject *self, PyObject *args, PyObject *kwargs) {
4175 PyObject *resultobj;
4176 wxRect result;
4177 char *kwnames[] = {
4178 NULL
4179 };
4180
4181 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetClientDisplayRect",kwnames)) goto fail;
4182 {
4183 if (!wxPyCheckForApp()) SWIG_fail;
4184 PyThreadState* __tstate = wxPyBeginAllowThreads();
4185 result = wxGetClientDisplayRect();
4186
4187 wxPyEndAllowThreads(__tstate);
4188 if (PyErr_Occurred()) SWIG_fail;
4189 }
4190 {
4191 wxRect * resultptr;
4192 resultptr = new wxRect((wxRect &) result);
4193 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
4194 }
4195 return resultobj;
4196 fail:
4197 return NULL;
4198 }
4199
4200
4201 static PyObject *_wrap_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
4202 PyObject *resultobj;
4203 wxCursor *arg1 = 0 ;
4204 PyObject * obj0 = 0 ;
4205 char *kwnames[] = {
4206 (char *) "cursor", NULL
4207 };
4208
4209 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursor",kwnames,&obj0)) goto fail;
4210 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
4211 SWIG_POINTER_EXCEPTION | 0)) == -1)
4212 SWIG_fail;
4213 if (arg1 == NULL) {
4214 PyErr_SetString(PyExc_TypeError,"null reference");
4215 SWIG_fail;
4216 }
4217 {
4218 if (!wxPyCheckForApp()) SWIG_fail;
4219 PyThreadState* __tstate = wxPyBeginAllowThreads();
4220 wxSetCursor(*arg1);
4221
4222 wxPyEndAllowThreads(__tstate);
4223 if (PyErr_Occurred()) SWIG_fail;
4224 }
4225 Py_INCREF(Py_None); resultobj = Py_None;
4226 return resultobj;
4227 fail:
4228 return NULL;
4229 }
4230
4231
4232 static PyObject *_wrap_BeginBusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
4233 PyObject *resultobj;
4234 wxCursor *arg1 = (wxCursor *) wxHOURGLASS_CURSOR ;
4235 PyObject * obj0 = 0 ;
4236 char *kwnames[] = {
4237 (char *) "cursor", NULL
4238 };
4239
4240 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:BeginBusyCursor",kwnames,&obj0)) goto fail;
4241 if (obj0) {
4242 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
4243 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4244 }
4245 {
4246 if (!wxPyCheckForApp()) SWIG_fail;
4247 PyThreadState* __tstate = wxPyBeginAllowThreads();
4248 wxBeginBusyCursor(arg1);
4249
4250 wxPyEndAllowThreads(__tstate);
4251 if (PyErr_Occurred()) SWIG_fail;
4252 }
4253 Py_INCREF(Py_None); resultobj = Py_None;
4254 return resultobj;
4255 fail:
4256 return NULL;
4257 }
4258
4259
4260 static PyObject *_wrap_GetActiveWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
4261 PyObject *resultobj;
4262 wxWindow *result;
4263 char *kwnames[] = {
4264 NULL
4265 };
4266
4267 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetActiveWindow",kwnames)) goto fail;
4268 {
4269 if (!wxPyCheckForApp()) SWIG_fail;
4270 PyThreadState* __tstate = wxPyBeginAllowThreads();
4271 result = (wxWindow *)wxGetActiveWindow();
4272
4273 wxPyEndAllowThreads(__tstate);
4274 if (PyErr_Occurred()) SWIG_fail;
4275 }
4276 {
4277 resultobj = wxPyMake_wxObject(result, 0);
4278 }
4279 return resultobj;
4280 fail:
4281 return NULL;
4282 }
4283
4284
4285 static PyObject *_wrap_GenericFindWindowAtPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
4286 PyObject *resultobj;
4287 wxPoint *arg1 = 0 ;
4288 wxWindow *result;
4289 wxPoint temp1 ;
4290 PyObject * obj0 = 0 ;
4291 char *kwnames[] = {
4292 (char *) "pt", NULL
4293 };
4294
4295 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericFindWindowAtPoint",kwnames,&obj0)) goto fail;
4296 {
4297 arg1 = &temp1;
4298 if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail;
4299 }
4300 {
4301 if (!wxPyCheckForApp()) SWIG_fail;
4302 PyThreadState* __tstate = wxPyBeginAllowThreads();
4303 result = (wxWindow *)wxGenericFindWindowAtPoint((wxPoint const &)*arg1);
4304
4305 wxPyEndAllowThreads(__tstate);
4306 if (PyErr_Occurred()) SWIG_fail;
4307 }
4308 {
4309 resultobj = wxPyMake_wxObject(result, 0);
4310 }
4311 return resultobj;
4312 fail:
4313 return NULL;
4314 }
4315
4316
4317 static PyObject *_wrap_FindWindowAtPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
4318 PyObject *resultobj;
4319 wxPoint *arg1 = 0 ;
4320 wxWindow *result;
4321 wxPoint temp1 ;
4322 PyObject * obj0 = 0 ;
4323 char *kwnames[] = {
4324 (char *) "pt", NULL
4325 };
4326
4327 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FindWindowAtPoint",kwnames,&obj0)) goto fail;
4328 {
4329 arg1 = &temp1;
4330 if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail;
4331 }
4332 {
4333 if (!wxPyCheckForApp()) SWIG_fail;
4334 PyThreadState* __tstate = wxPyBeginAllowThreads();
4335 result = (wxWindow *)wxFindWindowAtPoint((wxPoint const &)*arg1);
4336
4337 wxPyEndAllowThreads(__tstate);
4338 if (PyErr_Occurred()) SWIG_fail;
4339 }
4340 {
4341 resultobj = wxPyMake_wxObject(result, 0);
4342 }
4343 return resultobj;
4344 fail:
4345 return NULL;
4346 }
4347
4348
4349 static PyObject *_wrap_GetTopLevelParent(PyObject *self, PyObject *args, PyObject *kwargs) {
4350 PyObject *resultobj;
4351 wxWindow *arg1 = (wxWindow *) 0 ;
4352 wxWindow *result;
4353 PyObject * obj0 = 0 ;
4354 char *kwnames[] = {
4355 (char *) "win", NULL
4356 };
4357
4358 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetTopLevelParent",kwnames,&obj0)) goto fail;
4359 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
4360 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4361 {
4362 if (!wxPyCheckForApp()) SWIG_fail;
4363 PyThreadState* __tstate = wxPyBeginAllowThreads();
4364 result = (wxWindow *)wxGetTopLevelParent(arg1);
4365
4366 wxPyEndAllowThreads(__tstate);
4367 if (PyErr_Occurred()) SWIG_fail;
4368 }
4369 {
4370 resultobj = wxPyMake_wxObject(result, 0);
4371 }
4372 return resultobj;
4373 fail:
4374 return NULL;
4375 }
4376
4377
4378 static PyObject *_wrap_GetKeyState(PyObject *self, PyObject *args, PyObject *kwargs) {
4379 PyObject *resultobj;
4380 int arg1 ;
4381 bool result;
4382 PyObject * obj0 = 0 ;
4383 char *kwnames[] = {
4384 (char *) "key", NULL
4385 };
4386
4387 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetKeyState",kwnames,&obj0)) goto fail;
4388 arg1 = (wxKeyCode) SWIG_AsInt(obj0);
4389 if (PyErr_Occurred()) SWIG_fail;
4390 {
4391 if (!wxPyCheckForApp()) SWIG_fail;
4392 PyThreadState* __tstate = wxPyBeginAllowThreads();
4393 result = (bool)wxGetKeyState((wxKeyCode )arg1);
4394
4395 wxPyEndAllowThreads(__tstate);
4396 if (PyErr_Occurred()) SWIG_fail;
4397 }
4398 {
4399 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4400 }
4401 return resultobj;
4402 fail:
4403 return NULL;
4404 }
4405
4406
4407 static PyObject *_wrap_WakeUpMainThread(PyObject *self, PyObject *args, PyObject *kwargs) {
4408 PyObject *resultobj;
4409 char *kwnames[] = {
4410 NULL
4411 };
4412
4413 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":WakeUpMainThread",kwnames)) goto fail;
4414 {
4415 if (!wxPyCheckForApp()) SWIG_fail;
4416 PyThreadState* __tstate = wxPyBeginAllowThreads();
4417 wxWakeUpMainThread();
4418
4419 wxPyEndAllowThreads(__tstate);
4420 if (PyErr_Occurred()) SWIG_fail;
4421 }
4422 Py_INCREF(Py_None); resultobj = Py_None;
4423 return resultobj;
4424 fail:
4425 return NULL;
4426 }
4427
4428
4429 static PyObject *_wrap_MutexGuiEnter(PyObject *self, PyObject *args, PyObject *kwargs) {
4430 PyObject *resultobj;
4431 char *kwnames[] = {
4432 NULL
4433 };
4434
4435 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MutexGuiEnter",kwnames)) goto fail;
4436 {
4437 if (!wxPyCheckForApp()) SWIG_fail;
4438 PyThreadState* __tstate = wxPyBeginAllowThreads();
4439 wxMutexGuiEnter();
4440
4441 wxPyEndAllowThreads(__tstate);
4442 if (PyErr_Occurred()) SWIG_fail;
4443 }
4444 Py_INCREF(Py_None); resultobj = Py_None;
4445 return resultobj;
4446 fail:
4447 return NULL;
4448 }
4449
4450
4451 static PyObject *_wrap_MutexGuiLeave(PyObject *self, PyObject *args, PyObject *kwargs) {
4452 PyObject *resultobj;
4453 char *kwnames[] = {
4454 NULL
4455 };
4456
4457 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MutexGuiLeave",kwnames)) goto fail;
4458 {
4459 if (!wxPyCheckForApp()) SWIG_fail;
4460 PyThreadState* __tstate = wxPyBeginAllowThreads();
4461 wxMutexGuiLeave();
4462
4463 wxPyEndAllowThreads(__tstate);
4464 if (PyErr_Occurred()) SWIG_fail;
4465 }
4466 Py_INCREF(Py_None); resultobj = Py_None;
4467 return resultobj;
4468 fail:
4469 return NULL;
4470 }
4471
4472
4473 static PyObject *_wrap_new_MutexGuiLocker(PyObject *self, PyObject *args, PyObject *kwargs) {
4474 PyObject *resultobj;
4475 wxMutexGuiLocker *result;
4476 char *kwnames[] = {
4477 NULL
4478 };
4479
4480 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MutexGuiLocker",kwnames)) goto fail;
4481 {
4482 if (!wxPyCheckForApp()) SWIG_fail;
4483 PyThreadState* __tstate = wxPyBeginAllowThreads();
4484 result = (wxMutexGuiLocker *)new wxMutexGuiLocker();
4485
4486 wxPyEndAllowThreads(__tstate);
4487 if (PyErr_Occurred()) SWIG_fail;
4488 }
4489 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMutexGuiLocker, 1);
4490 return resultobj;
4491 fail:
4492 return NULL;
4493 }
4494
4495
4496 static PyObject *_wrap_delete_MutexGuiLocker(PyObject *self, PyObject *args, PyObject *kwargs) {
4497 PyObject *resultobj;
4498 wxMutexGuiLocker *arg1 = (wxMutexGuiLocker *) 0 ;
4499 PyObject * obj0 = 0 ;
4500 char *kwnames[] = {
4501 (char *) "self", NULL
4502 };
4503
4504 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MutexGuiLocker",kwnames,&obj0)) goto fail;
4505 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMutexGuiLocker,
4506 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4507 {
4508 PyThreadState* __tstate = wxPyBeginAllowThreads();
4509 delete arg1;
4510
4511 wxPyEndAllowThreads(__tstate);
4512 if (PyErr_Occurred()) SWIG_fail;
4513 }
4514 Py_INCREF(Py_None); resultobj = Py_None;
4515 return resultobj;
4516 fail:
4517 return NULL;
4518 }
4519
4520
4521 static PyObject * MutexGuiLocker_swigregister(PyObject *self, PyObject *args) {
4522 PyObject *obj;
4523 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4524 SWIG_TypeClientData(SWIGTYPE_p_wxMutexGuiLocker, obj);
4525 Py_INCREF(obj);
4526 return Py_BuildValue((char *)"");
4527 }
4528 static PyObject *_wrap_Thread_IsMain(PyObject *self, PyObject *args, PyObject *kwargs) {
4529 PyObject *resultobj;
4530 bool result;
4531 char *kwnames[] = {
4532 NULL
4533 };
4534
4535 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Thread_IsMain",kwnames)) goto fail;
4536 {
4537 PyThreadState* __tstate = wxPyBeginAllowThreads();
4538 result = (bool)wxThread_IsMain();
4539
4540 wxPyEndAllowThreads(__tstate);
4541 if (PyErr_Occurred()) SWIG_fail;
4542 }
4543 {
4544 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4545 }
4546 return resultobj;
4547 fail:
4548 return NULL;
4549 }
4550
4551
4552 static PyObject *_wrap_new_ToolTip(PyObject *self, PyObject *args, PyObject *kwargs) {
4553 PyObject *resultobj;
4554 wxString *arg1 = 0 ;
4555 wxToolTip *result;
4556 bool temp1 = False ;
4557 PyObject * obj0 = 0 ;
4558 char *kwnames[] = {
4559 (char *) "tip", NULL
4560 };
4561
4562 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ToolTip",kwnames,&obj0)) goto fail;
4563 {
4564 arg1 = wxString_in_helper(obj0);
4565 if (arg1 == NULL) SWIG_fail;
4566 temp1 = True;
4567 }
4568 {
4569 if (!wxPyCheckForApp()) SWIG_fail;
4570 PyThreadState* __tstate = wxPyBeginAllowThreads();
4571 result = (wxToolTip *)new wxToolTip((wxString const &)*arg1);
4572
4573 wxPyEndAllowThreads(__tstate);
4574 if (PyErr_Occurred()) SWIG_fail;
4575 }
4576 {
4577 resultobj = wxPyMake_wxObject(result, 1);
4578 }
4579 {
4580 if (temp1)
4581 delete arg1;
4582 }
4583 return resultobj;
4584 fail:
4585 {
4586 if (temp1)
4587 delete arg1;
4588 }
4589 return NULL;
4590 }
4591
4592
4593 static PyObject *_wrap_ToolTip_SetTip(PyObject *self, PyObject *args, PyObject *kwargs) {
4594 PyObject *resultobj;
4595 wxToolTip *arg1 = (wxToolTip *) 0 ;
4596 wxString *arg2 = 0 ;
4597 bool temp2 = False ;
4598 PyObject * obj0 = 0 ;
4599 PyObject * obj1 = 0 ;
4600 char *kwnames[] = {
4601 (char *) "self",(char *) "tip", NULL
4602 };
4603
4604 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolTip_SetTip",kwnames,&obj0,&obj1)) goto fail;
4605 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolTip,
4606 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4607 {
4608 arg2 = wxString_in_helper(obj1);
4609 if (arg2 == NULL) SWIG_fail;
4610 temp2 = True;
4611 }
4612 {
4613 PyThreadState* __tstate = wxPyBeginAllowThreads();
4614 (arg1)->SetTip((wxString const &)*arg2);
4615
4616 wxPyEndAllowThreads(__tstate);
4617 if (PyErr_Occurred()) SWIG_fail;
4618 }
4619 Py_INCREF(Py_None); resultobj = Py_None;
4620 {
4621 if (temp2)
4622 delete arg2;
4623 }
4624 return resultobj;
4625 fail:
4626 {
4627 if (temp2)
4628 delete arg2;
4629 }
4630 return NULL;
4631 }
4632
4633
4634 static PyObject *_wrap_ToolTip_GetTip(PyObject *self, PyObject *args, PyObject *kwargs) {
4635 PyObject *resultobj;
4636 wxToolTip *arg1 = (wxToolTip *) 0 ;
4637 wxString result;
4638 PyObject * obj0 = 0 ;
4639 char *kwnames[] = {
4640 (char *) "self", NULL
4641 };
4642
4643 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_GetTip",kwnames,&obj0)) goto fail;
4644 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolTip,
4645 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4646 {
4647 PyThreadState* __tstate = wxPyBeginAllowThreads();
4648 result = (arg1)->GetTip();
4649
4650 wxPyEndAllowThreads(__tstate);
4651 if (PyErr_Occurred()) SWIG_fail;
4652 }
4653 {
4654 #if wxUSE_UNICODE
4655 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
4656 #else
4657 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
4658 #endif
4659 }
4660 return resultobj;
4661 fail:
4662 return NULL;
4663 }
4664
4665
4666 static PyObject *_wrap_ToolTip_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
4667 PyObject *resultobj;
4668 wxToolTip *arg1 = (wxToolTip *) 0 ;
4669 wxWindow *result;
4670 PyObject * obj0 = 0 ;
4671 char *kwnames[] = {
4672 (char *) "self", NULL
4673 };
4674
4675 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_GetWindow",kwnames,&obj0)) goto fail;
4676 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolTip,
4677 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4678 {
4679 PyThreadState* __tstate = wxPyBeginAllowThreads();
4680 result = (wxWindow *)(arg1)->GetWindow();
4681
4682 wxPyEndAllowThreads(__tstate);
4683 if (PyErr_Occurred()) SWIG_fail;
4684 }
4685 {
4686 resultobj = wxPyMake_wxObject(result, 0);
4687 }
4688 return resultobj;
4689 fail:
4690 return NULL;
4691 }
4692
4693
4694 static PyObject *_wrap_ToolTip_Enable(PyObject *self, PyObject *args, PyObject *kwargs) {
4695 PyObject *resultobj;
4696 bool arg1 ;
4697 PyObject * obj0 = 0 ;
4698 char *kwnames[] = {
4699 (char *) "flag", NULL
4700 };
4701
4702 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_Enable",kwnames,&obj0)) goto fail;
4703 arg1 = (bool) SWIG_AsBool(obj0);
4704 if (PyErr_Occurred()) SWIG_fail;
4705 {
4706 PyThreadState* __tstate = wxPyBeginAllowThreads();
4707 wxToolTip::Enable(arg1);
4708
4709 wxPyEndAllowThreads(__tstate);
4710 if (PyErr_Occurred()) SWIG_fail;
4711 }
4712 Py_INCREF(Py_None); resultobj = Py_None;
4713 return resultobj;
4714 fail:
4715 return NULL;
4716 }
4717
4718
4719 static PyObject *_wrap_ToolTip_SetDelay(PyObject *self, PyObject *args, PyObject *kwargs) {
4720 PyObject *resultobj;
4721 long arg1 ;
4722 PyObject * obj0 = 0 ;
4723 char *kwnames[] = {
4724 (char *) "milliseconds", NULL
4725 };
4726
4727 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_SetDelay",kwnames,&obj0)) goto fail;
4728 arg1 = (long) SWIG_AsLong(obj0);
4729 if (PyErr_Occurred()) SWIG_fail;
4730 {
4731 PyThreadState* __tstate = wxPyBeginAllowThreads();
4732 wxToolTip::SetDelay(arg1);
4733
4734 wxPyEndAllowThreads(__tstate);
4735 if (PyErr_Occurred()) SWIG_fail;
4736 }
4737 Py_INCREF(Py_None); resultobj = Py_None;
4738 return resultobj;
4739 fail:
4740 return NULL;
4741 }
4742
4743
4744 static PyObject * ToolTip_swigregister(PyObject *self, PyObject *args) {
4745 PyObject *obj;
4746 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4747 SWIG_TypeClientData(SWIGTYPE_p_wxToolTip, obj);
4748 Py_INCREF(obj);
4749 return Py_BuildValue((char *)"");
4750 }
4751 static PyObject *_wrap_new_Caret(PyObject *self, PyObject *args, PyObject *kwargs) {
4752 PyObject *resultobj;
4753 wxWindow *arg1 = (wxWindow *) 0 ;
4754 wxSize *arg2 = 0 ;
4755 wxCaret *result;
4756 wxSize temp2 ;
4757 PyObject * obj0 = 0 ;
4758 PyObject * obj1 = 0 ;
4759 char *kwnames[] = {
4760 (char *) "window",(char *) "size", NULL
4761 };
4762
4763 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_Caret",kwnames,&obj0,&obj1)) goto fail;
4764 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
4765 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4766 {
4767 arg2 = &temp2;
4768 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
4769 }
4770 {
4771 if (!wxPyCheckForApp()) SWIG_fail;
4772 PyThreadState* __tstate = wxPyBeginAllowThreads();
4773 result = (wxCaret *)new wxCaret(arg1,(wxSize const &)*arg2);
4774
4775 wxPyEndAllowThreads(__tstate);
4776 if (PyErr_Occurred()) SWIG_fail;
4777 }
4778 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCaret, 1);
4779 return resultobj;
4780 fail:
4781 return NULL;
4782 }
4783
4784
4785 static PyObject *_wrap_delete_Caret(PyObject *self, PyObject *args, PyObject *kwargs) {
4786 PyObject *resultobj;
4787 wxCaret *arg1 = (wxCaret *) 0 ;
4788 PyObject * obj0 = 0 ;
4789 char *kwnames[] = {
4790 (char *) "self", NULL
4791 };
4792
4793 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Caret",kwnames,&obj0)) goto fail;
4794 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4795 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4796 {
4797 PyThreadState* __tstate = wxPyBeginAllowThreads();
4798 delete arg1;
4799
4800 wxPyEndAllowThreads(__tstate);
4801 if (PyErr_Occurred()) SWIG_fail;
4802 }
4803 Py_INCREF(Py_None); resultobj = Py_None;
4804 return resultobj;
4805 fail:
4806 return NULL;
4807 }
4808
4809
4810 static PyObject *_wrap_Caret_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
4811 PyObject *resultobj;
4812 wxCaret *arg1 = (wxCaret *) 0 ;
4813 bool result;
4814 PyObject * obj0 = 0 ;
4815 char *kwnames[] = {
4816 (char *) "self", NULL
4817 };
4818
4819 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_IsOk",kwnames,&obj0)) goto fail;
4820 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4821 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4822 {
4823 PyThreadState* __tstate = wxPyBeginAllowThreads();
4824 result = (bool)(arg1)->IsOk();
4825
4826 wxPyEndAllowThreads(__tstate);
4827 if (PyErr_Occurred()) SWIG_fail;
4828 }
4829 {
4830 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4831 }
4832 return resultobj;
4833 fail:
4834 return NULL;
4835 }
4836
4837
4838 static PyObject *_wrap_Caret_IsVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
4839 PyObject *resultobj;
4840 wxCaret *arg1 = (wxCaret *) 0 ;
4841 bool result;
4842 PyObject * obj0 = 0 ;
4843 char *kwnames[] = {
4844 (char *) "self", NULL
4845 };
4846
4847 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_IsVisible",kwnames,&obj0)) goto fail;
4848 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4849 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4850 {
4851 PyThreadState* __tstate = wxPyBeginAllowThreads();
4852 result = (bool)(arg1)->IsVisible();
4853
4854 wxPyEndAllowThreads(__tstate);
4855 if (PyErr_Occurred()) SWIG_fail;
4856 }
4857 {
4858 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4859 }
4860 return resultobj;
4861 fail:
4862 return NULL;
4863 }
4864
4865
4866 static PyObject *_wrap_Caret_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
4867 PyObject *resultobj;
4868 wxCaret *arg1 = (wxCaret *) 0 ;
4869 wxPoint result;
4870 PyObject * obj0 = 0 ;
4871 char *kwnames[] = {
4872 (char *) "self", NULL
4873 };
4874
4875 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetPosition",kwnames,&obj0)) goto fail;
4876 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4877 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4878 {
4879 PyThreadState* __tstate = wxPyBeginAllowThreads();
4880 result = (arg1)->GetPosition();
4881
4882 wxPyEndAllowThreads(__tstate);
4883 if (PyErr_Occurred()) SWIG_fail;
4884 }
4885 {
4886 wxPoint * resultptr;
4887 resultptr = new wxPoint((wxPoint &) result);
4888 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
4889 }
4890 return resultobj;
4891 fail:
4892 return NULL;
4893 }
4894
4895
4896 static PyObject *_wrap_Caret_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
4897 PyObject *resultobj;
4898 wxCaret *arg1 = (wxCaret *) 0 ;
4899 int *arg2 = (int *) 0 ;
4900 int *arg3 = (int *) 0 ;
4901 int temp2 ;
4902 int temp3 ;
4903 PyObject * obj0 = 0 ;
4904 char *kwnames[] = {
4905 (char *) "self", NULL
4906 };
4907
4908 arg2 = &temp2;
4909 arg3 = &temp3;
4910 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetPositionTuple",kwnames,&obj0)) goto fail;
4911 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4912 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4913 {
4914 PyThreadState* __tstate = wxPyBeginAllowThreads();
4915 (arg1)->GetPosition(arg2,arg3);
4916
4917 wxPyEndAllowThreads(__tstate);
4918 if (PyErr_Occurred()) SWIG_fail;
4919 }
4920 Py_INCREF(Py_None); resultobj = Py_None;
4921 {
4922 PyObject *o = PyInt_FromLong((long) (*arg2));
4923 resultobj = t_output_helper(resultobj,o);
4924 }
4925 {
4926 PyObject *o = PyInt_FromLong((long) (*arg3));
4927 resultobj = t_output_helper(resultobj,o);
4928 }
4929 return resultobj;
4930 fail:
4931 return NULL;
4932 }
4933
4934
4935 static PyObject *_wrap_Caret_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
4936 PyObject *resultobj;
4937 wxCaret *arg1 = (wxCaret *) 0 ;
4938 wxSize result;
4939 PyObject * obj0 = 0 ;
4940 char *kwnames[] = {
4941 (char *) "self", NULL
4942 };
4943
4944 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetSize",kwnames,&obj0)) goto fail;
4945 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4946 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4947 {
4948 PyThreadState* __tstate = wxPyBeginAllowThreads();
4949 result = (arg1)->GetSize();
4950
4951 wxPyEndAllowThreads(__tstate);
4952 if (PyErr_Occurred()) SWIG_fail;
4953 }
4954 {
4955 wxSize * resultptr;
4956 resultptr = new wxSize((wxSize &) result);
4957 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
4958 }
4959 return resultobj;
4960 fail:
4961 return NULL;
4962 }
4963
4964
4965 static PyObject *_wrap_Caret_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
4966 PyObject *resultobj;
4967 wxCaret *arg1 = (wxCaret *) 0 ;
4968 int *arg2 = (int *) 0 ;
4969 int *arg3 = (int *) 0 ;
4970 int temp2 ;
4971 int temp3 ;
4972 PyObject * obj0 = 0 ;
4973 char *kwnames[] = {
4974 (char *) "self", NULL
4975 };
4976
4977 arg2 = &temp2;
4978 arg3 = &temp3;
4979 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetSizeTuple",kwnames,&obj0)) goto fail;
4980 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4981 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4982 {
4983 PyThreadState* __tstate = wxPyBeginAllowThreads();
4984 (arg1)->GetSize(arg2,arg3);
4985
4986 wxPyEndAllowThreads(__tstate);
4987 if (PyErr_Occurred()) SWIG_fail;
4988 }
4989 Py_INCREF(Py_None); resultobj = Py_None;
4990 {
4991 PyObject *o = PyInt_FromLong((long) (*arg2));
4992 resultobj = t_output_helper(resultobj,o);
4993 }
4994 {
4995 PyObject *o = PyInt_FromLong((long) (*arg3));
4996 resultobj = t_output_helper(resultobj,o);
4997 }
4998 return resultobj;
4999 fail:
5000 return NULL;
5001 }
5002
5003
5004 static PyObject *_wrap_Caret_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
5005 PyObject *resultobj;
5006 wxCaret *arg1 = (wxCaret *) 0 ;
5007 wxWindow *result;
5008 PyObject * obj0 = 0 ;
5009 char *kwnames[] = {
5010 (char *) "self", NULL
5011 };
5012
5013 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetWindow",kwnames,&obj0)) goto fail;
5014 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
5015 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5016 {
5017 PyThreadState* __tstate = wxPyBeginAllowThreads();
5018 result = (wxWindow *)(arg1)->GetWindow();
5019
5020 wxPyEndAllowThreads(__tstate);
5021 if (PyErr_Occurred()) SWIG_fail;
5022 }
5023 {
5024 resultobj = wxPyMake_wxObject(result, 0);
5025 }
5026 return resultobj;
5027 fail:
5028 return NULL;
5029 }
5030
5031
5032 static PyObject *_wrap_Caret_MoveXY(PyObject *self, PyObject *args, PyObject *kwargs) {
5033 PyObject *resultobj;
5034 wxCaret *arg1 = (wxCaret *) 0 ;
5035 int arg2 ;
5036 int arg3 ;
5037 PyObject * obj0 = 0 ;
5038 PyObject * obj1 = 0 ;
5039 PyObject * obj2 = 0 ;
5040 char *kwnames[] = {
5041 (char *) "self",(char *) "x",(char *) "y", NULL
5042 };
5043
5044 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Caret_MoveXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
5045 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
5046 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5047 arg2 = (int) SWIG_AsInt(obj1);
5048 if (PyErr_Occurred()) SWIG_fail;
5049 arg3 = (int) SWIG_AsInt(obj2);
5050 if (PyErr_Occurred()) SWIG_fail;
5051 {
5052 PyThreadState* __tstate = wxPyBeginAllowThreads();
5053 (arg1)->Move(arg2,arg3);
5054
5055 wxPyEndAllowThreads(__tstate);
5056 if (PyErr_Occurred()) SWIG_fail;
5057 }
5058 Py_INCREF(Py_None); resultobj = Py_None;
5059 return resultobj;
5060 fail:
5061 return NULL;
5062 }
5063
5064
5065 static PyObject *_wrap_Caret_Move(PyObject *self, PyObject *args, PyObject *kwargs) {
5066 PyObject *resultobj;
5067 wxCaret *arg1 = (wxCaret *) 0 ;
5068 wxPoint *arg2 = 0 ;
5069 wxPoint temp2 ;
5070 PyObject * obj0 = 0 ;
5071 PyObject * obj1 = 0 ;
5072 char *kwnames[] = {
5073 (char *) "self",(char *) "pt", NULL
5074 };
5075
5076 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Caret_Move",kwnames,&obj0,&obj1)) goto fail;
5077 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
5078 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5079 {
5080 arg2 = &temp2;
5081 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
5082 }
5083 {
5084 PyThreadState* __tstate = wxPyBeginAllowThreads();
5085 (arg1)->Move((wxPoint const &)*arg2);
5086
5087 wxPyEndAllowThreads(__tstate);
5088 if (PyErr_Occurred()) SWIG_fail;
5089 }
5090 Py_INCREF(Py_None); resultobj = Py_None;
5091 return resultobj;
5092 fail:
5093 return NULL;
5094 }
5095
5096
5097 static PyObject *_wrap_Caret_SetSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) {
5098 PyObject *resultobj;
5099 wxCaret *arg1 = (wxCaret *) 0 ;
5100 int arg2 ;
5101 int arg3 ;
5102 PyObject * obj0 = 0 ;
5103 PyObject * obj1 = 0 ;
5104 PyObject * obj2 = 0 ;
5105 char *kwnames[] = {
5106 (char *) "self",(char *) "width",(char *) "height", NULL
5107 };
5108
5109 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Caret_SetSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail;
5110 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
5111 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5112 arg2 = (int) SWIG_AsInt(obj1);
5113 if (PyErr_Occurred()) SWIG_fail;
5114 arg3 = (int) SWIG_AsInt(obj2);
5115 if (PyErr_Occurred()) SWIG_fail;
5116 {
5117 PyThreadState* __tstate = wxPyBeginAllowThreads();
5118 (arg1)->SetSize(arg2,arg3);
5119
5120 wxPyEndAllowThreads(__tstate);
5121 if (PyErr_Occurred()) SWIG_fail;
5122 }
5123 Py_INCREF(Py_None); resultobj = Py_None;
5124 return resultobj;
5125 fail:
5126 return NULL;
5127 }
5128
5129
5130 static PyObject *_wrap_Caret_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
5131 PyObject *resultobj;
5132 wxCaret *arg1 = (wxCaret *) 0 ;
5133 wxSize *arg2 = 0 ;
5134 wxSize temp2 ;
5135 PyObject * obj0 = 0 ;
5136 PyObject * obj1 = 0 ;
5137 char *kwnames[] = {
5138 (char *) "self",(char *) "size", NULL
5139 };
5140
5141 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Caret_SetSize",kwnames,&obj0,&obj1)) goto fail;
5142 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
5143 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5144 {
5145 arg2 = &temp2;
5146 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
5147 }
5148 {
5149 PyThreadState* __tstate = wxPyBeginAllowThreads();
5150 (arg1)->SetSize((wxSize const &)*arg2);
5151
5152 wxPyEndAllowThreads(__tstate);
5153 if (PyErr_Occurred()) SWIG_fail;
5154 }
5155 Py_INCREF(Py_None); resultobj = Py_None;
5156 return resultobj;
5157 fail:
5158 return NULL;
5159 }
5160
5161
5162 static PyObject *_wrap_Caret_Show(PyObject *self, PyObject *args, PyObject *kwargs) {
5163 PyObject *resultobj;
5164 wxCaret *arg1 = (wxCaret *) 0 ;
5165 int arg2 = (int) True ;
5166 PyObject * obj0 = 0 ;
5167 PyObject * obj1 = 0 ;
5168 char *kwnames[] = {
5169 (char *) "self",(char *) "show", NULL
5170 };
5171
5172 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Caret_Show",kwnames,&obj0,&obj1)) goto fail;
5173 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
5174 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5175 if (obj1) {
5176 arg2 = (int) SWIG_AsInt(obj1);
5177 if (PyErr_Occurred()) SWIG_fail;
5178 }
5179 {
5180 PyThreadState* __tstate = wxPyBeginAllowThreads();
5181 (arg1)->Show(arg2);
5182
5183 wxPyEndAllowThreads(__tstate);
5184 if (PyErr_Occurred()) SWIG_fail;
5185 }
5186 Py_INCREF(Py_None); resultobj = Py_None;
5187 return resultobj;
5188 fail:
5189 return NULL;
5190 }
5191
5192
5193 static PyObject *_wrap_Caret_Hide(PyObject *self, PyObject *args, PyObject *kwargs) {
5194 PyObject *resultobj;
5195 wxCaret *arg1 = (wxCaret *) 0 ;
5196 PyObject * obj0 = 0 ;
5197 char *kwnames[] = {
5198 (char *) "self", NULL
5199 };
5200
5201 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_Hide",kwnames,&obj0)) goto fail;
5202 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
5203 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5204 {
5205 PyThreadState* __tstate = wxPyBeginAllowThreads();
5206 (arg1)->Hide();
5207
5208 wxPyEndAllowThreads(__tstate);
5209 if (PyErr_Occurred()) SWIG_fail;
5210 }
5211 Py_INCREF(Py_None); resultobj = Py_None;
5212 return resultobj;
5213 fail:
5214 return NULL;
5215 }
5216
5217
5218 static PyObject * Caret_swigregister(PyObject *self, PyObject *args) {
5219 PyObject *obj;
5220 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5221 SWIG_TypeClientData(SWIGTYPE_p_wxCaret, obj);
5222 Py_INCREF(obj);
5223 return Py_BuildValue((char *)"");
5224 }
5225 static PyObject *_wrap_Caret_GetBlinkTime(PyObject *self, PyObject *args, PyObject *kwargs) {
5226 PyObject *resultobj;
5227 int result;
5228 char *kwnames[] = {
5229 NULL
5230 };
5231
5232 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Caret_GetBlinkTime",kwnames)) goto fail;
5233 {
5234 PyThreadState* __tstate = wxPyBeginAllowThreads();
5235 result = (int)wxCaret_GetBlinkTime();
5236
5237 wxPyEndAllowThreads(__tstate);
5238 if (PyErr_Occurred()) SWIG_fail;
5239 }
5240 resultobj = SWIG_FromInt((int)result);
5241 return resultobj;
5242 fail:
5243 return NULL;
5244 }
5245
5246
5247 static PyObject *_wrap_Caret_SetBlinkTime(PyObject *self, PyObject *args, PyObject *kwargs) {
5248 PyObject *resultobj;
5249 int arg1 ;
5250 PyObject * obj0 = 0 ;
5251 char *kwnames[] = {
5252 (char *) "milliseconds", NULL
5253 };
5254
5255 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_SetBlinkTime",kwnames,&obj0)) goto fail;
5256 arg1 = (int) SWIG_AsInt(obj0);
5257 if (PyErr_Occurred()) SWIG_fail;
5258 {
5259 PyThreadState* __tstate = wxPyBeginAllowThreads();
5260 wxCaret_SetBlinkTime(arg1);
5261
5262 wxPyEndAllowThreads(__tstate);
5263 if (PyErr_Occurred()) SWIG_fail;
5264 }
5265 Py_INCREF(Py_None); resultobj = Py_None;
5266 return resultobj;
5267 fail:
5268 return NULL;
5269 }
5270
5271
5272 static PyObject *_wrap_new_BusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
5273 PyObject *resultobj;
5274 wxCursor *arg1 = (wxCursor *) wxHOURGLASS_CURSOR ;
5275 wxBusyCursor *result;
5276 PyObject * obj0 = 0 ;
5277 char *kwnames[] = {
5278 (char *) "cursor", NULL
5279 };
5280
5281 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BusyCursor",kwnames,&obj0)) goto fail;
5282 if (obj0) {
5283 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
5284 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5285 }
5286 {
5287 if (!wxPyCheckForApp()) SWIG_fail;
5288 PyThreadState* __tstate = wxPyBeginAllowThreads();
5289 result = (wxBusyCursor *)new wxBusyCursor(arg1);
5290
5291 wxPyEndAllowThreads(__tstate);
5292 if (PyErr_Occurred()) SWIG_fail;
5293 }
5294 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBusyCursor, 1);
5295 return resultobj;
5296 fail:
5297 return NULL;
5298 }
5299
5300
5301 static PyObject *_wrap_delete_BusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
5302 PyObject *resultobj;
5303 wxBusyCursor *arg1 = (wxBusyCursor *) 0 ;
5304 PyObject * obj0 = 0 ;
5305 char *kwnames[] = {
5306 (char *) "self", NULL
5307 };
5308
5309 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BusyCursor",kwnames,&obj0)) goto fail;
5310 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBusyCursor,
5311 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5312 {
5313 PyThreadState* __tstate = wxPyBeginAllowThreads();
5314 delete arg1;
5315
5316 wxPyEndAllowThreads(__tstate);
5317 if (PyErr_Occurred()) SWIG_fail;
5318 }
5319 Py_INCREF(Py_None); resultobj = Py_None;
5320 return resultobj;
5321 fail:
5322 return NULL;
5323 }
5324
5325
5326 static PyObject * BusyCursor_swigregister(PyObject *self, PyObject *args) {
5327 PyObject *obj;
5328 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5329 SWIG_TypeClientData(SWIGTYPE_p_wxBusyCursor, obj);
5330 Py_INCREF(obj);
5331 return Py_BuildValue((char *)"");
5332 }
5333 static PyObject *_wrap_new_WindowDisabler(PyObject *self, PyObject *args, PyObject *kwargs) {
5334 PyObject *resultobj;
5335 wxWindow *arg1 = (wxWindow *) NULL ;
5336 wxWindowDisabler *result;
5337 PyObject * obj0 = 0 ;
5338 char *kwnames[] = {
5339 (char *) "winToSkip", NULL
5340 };
5341
5342 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_WindowDisabler",kwnames,&obj0)) goto fail;
5343 if (obj0) {
5344 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
5345 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5346 }
5347 {
5348 if (!wxPyCheckForApp()) SWIG_fail;
5349 PyThreadState* __tstate = wxPyBeginAllowThreads();
5350 result = (wxWindowDisabler *)new wxWindowDisabler(arg1);
5351
5352 wxPyEndAllowThreads(__tstate);
5353 if (PyErr_Occurred()) SWIG_fail;
5354 }
5355 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowDisabler, 1);
5356 return resultobj;
5357 fail:
5358 return NULL;
5359 }
5360
5361
5362 static PyObject *_wrap_delete_WindowDisabler(PyObject *self, PyObject *args, PyObject *kwargs) {
5363 PyObject *resultobj;
5364 wxWindowDisabler *arg1 = (wxWindowDisabler *) 0 ;
5365 PyObject * obj0 = 0 ;
5366 char *kwnames[] = {
5367 (char *) "self", NULL
5368 };
5369
5370 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_WindowDisabler",kwnames,&obj0)) goto fail;
5371 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindowDisabler,
5372 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5373 {
5374 PyThreadState* __tstate = wxPyBeginAllowThreads();
5375 delete arg1;
5376
5377 wxPyEndAllowThreads(__tstate);
5378 if (PyErr_Occurred()) SWIG_fail;
5379 }
5380 Py_INCREF(Py_None); resultobj = Py_None;
5381 return resultobj;
5382 fail:
5383 return NULL;
5384 }
5385
5386
5387 static PyObject * WindowDisabler_swigregister(PyObject *self, PyObject *args) {
5388 PyObject *obj;
5389 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5390 SWIG_TypeClientData(SWIGTYPE_p_wxWindowDisabler, obj);
5391 Py_INCREF(obj);
5392 return Py_BuildValue((char *)"");
5393 }
5394 static PyObject *_wrap_new_BusyInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
5395 PyObject *resultobj;
5396 wxString *arg1 = 0 ;
5397 wxBusyInfo *result;
5398 bool temp1 = False ;
5399 PyObject * obj0 = 0 ;
5400 char *kwnames[] = {
5401 (char *) "message", NULL
5402 };
5403
5404 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BusyInfo",kwnames,&obj0)) goto fail;
5405 {
5406 arg1 = wxString_in_helper(obj0);
5407 if (arg1 == NULL) SWIG_fail;
5408 temp1 = True;
5409 }
5410 {
5411 if (!wxPyCheckForApp()) SWIG_fail;
5412 PyThreadState* __tstate = wxPyBeginAllowThreads();
5413 result = (wxBusyInfo *)new wxBusyInfo((wxString const &)*arg1);
5414
5415 wxPyEndAllowThreads(__tstate);
5416 if (PyErr_Occurred()) SWIG_fail;
5417 }
5418 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBusyInfo, 1);
5419 {
5420 if (temp1)
5421 delete arg1;
5422 }
5423 return resultobj;
5424 fail:
5425 {
5426 if (temp1)
5427 delete arg1;
5428 }
5429 return NULL;
5430 }
5431
5432
5433 static PyObject *_wrap_delete_BusyInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
5434 PyObject *resultobj;
5435 wxBusyInfo *arg1 = (wxBusyInfo *) 0 ;
5436 PyObject * obj0 = 0 ;
5437 char *kwnames[] = {
5438 (char *) "self", NULL
5439 };
5440
5441 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BusyInfo",kwnames,&obj0)) goto fail;
5442 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBusyInfo,
5443 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5444 {
5445 PyThreadState* __tstate = wxPyBeginAllowThreads();
5446 delete arg1;
5447
5448 wxPyEndAllowThreads(__tstate);
5449 if (PyErr_Occurred()) SWIG_fail;
5450 }
5451 Py_INCREF(Py_None); resultobj = Py_None;
5452 return resultobj;
5453 fail:
5454 return NULL;
5455 }
5456
5457
5458 static PyObject * BusyInfo_swigregister(PyObject *self, PyObject *args) {
5459 PyObject *obj;
5460 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5461 SWIG_TypeClientData(SWIGTYPE_p_wxBusyInfo, obj);
5462 Py_INCREF(obj);
5463 return Py_BuildValue((char *)"");
5464 }
5465 static PyObject *_wrap_new_StopWatch(PyObject *self, PyObject *args, PyObject *kwargs) {
5466 PyObject *resultobj;
5467 wxStopWatch *result;
5468 char *kwnames[] = {
5469 NULL
5470 };
5471
5472 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_StopWatch",kwnames)) goto fail;
5473 {
5474 PyThreadState* __tstate = wxPyBeginAllowThreads();
5475 result = (wxStopWatch *)new wxStopWatch();
5476
5477 wxPyEndAllowThreads(__tstate);
5478 if (PyErr_Occurred()) SWIG_fail;
5479 }
5480 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStopWatch, 1);
5481 return resultobj;
5482 fail:
5483 return NULL;
5484 }
5485
5486
5487 static PyObject *_wrap_StopWatch_Start(PyObject *self, PyObject *args, PyObject *kwargs) {
5488 PyObject *resultobj;
5489 wxStopWatch *arg1 = (wxStopWatch *) 0 ;
5490 long arg2 = (long) 0 ;
5491 PyObject * obj0 = 0 ;
5492 PyObject * obj1 = 0 ;
5493 char *kwnames[] = {
5494 (char *) "self",(char *) "t0", NULL
5495 };
5496
5497 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:StopWatch_Start",kwnames,&obj0,&obj1)) goto fail;
5498 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch,
5499 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5500 if (obj1) {
5501 arg2 = (long) SWIG_AsLong(obj1);
5502 if (PyErr_Occurred()) SWIG_fail;
5503 }
5504 {
5505 PyThreadState* __tstate = wxPyBeginAllowThreads();
5506 (arg1)->Start(arg2);
5507
5508 wxPyEndAllowThreads(__tstate);
5509 if (PyErr_Occurred()) SWIG_fail;
5510 }
5511 Py_INCREF(Py_None); resultobj = Py_None;
5512 return resultobj;
5513 fail:
5514 return NULL;
5515 }
5516
5517
5518 static PyObject *_wrap_StopWatch_Pause(PyObject *self, PyObject *args, PyObject *kwargs) {
5519 PyObject *resultobj;
5520 wxStopWatch *arg1 = (wxStopWatch *) 0 ;
5521 PyObject * obj0 = 0 ;
5522 char *kwnames[] = {
5523 (char *) "self", NULL
5524 };
5525
5526 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Pause",kwnames,&obj0)) goto fail;
5527 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch,
5528 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5529 {
5530 PyThreadState* __tstate = wxPyBeginAllowThreads();
5531 (arg1)->Pause();
5532
5533 wxPyEndAllowThreads(__tstate);
5534 if (PyErr_Occurred()) SWIG_fail;
5535 }
5536 Py_INCREF(Py_None); resultobj = Py_None;
5537 return resultobj;
5538 fail:
5539 return NULL;
5540 }
5541
5542
5543 static PyObject *_wrap_StopWatch_Resume(PyObject *self, PyObject *args, PyObject *kwargs) {
5544 PyObject *resultobj;
5545 wxStopWatch *arg1 = (wxStopWatch *) 0 ;
5546 PyObject * obj0 = 0 ;
5547 char *kwnames[] = {
5548 (char *) "self", NULL
5549 };
5550
5551 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Resume",kwnames,&obj0)) goto fail;
5552 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch,
5553 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5554 {
5555 PyThreadState* __tstate = wxPyBeginAllowThreads();
5556 (arg1)->Resume();
5557
5558 wxPyEndAllowThreads(__tstate);
5559 if (PyErr_Occurred()) SWIG_fail;
5560 }
5561 Py_INCREF(Py_None); resultobj = Py_None;
5562 return resultobj;
5563 fail:
5564 return NULL;
5565 }
5566
5567
5568 static PyObject *_wrap_StopWatch_Time(PyObject *self, PyObject *args, PyObject *kwargs) {
5569 PyObject *resultobj;
5570 wxStopWatch *arg1 = (wxStopWatch *) 0 ;
5571 long result;
5572 PyObject * obj0 = 0 ;
5573 char *kwnames[] = {
5574 (char *) "self", NULL
5575 };
5576
5577 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Time",kwnames,&obj0)) goto fail;
5578 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch,
5579 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5580 {
5581 PyThreadState* __tstate = wxPyBeginAllowThreads();
5582 result = (long)((wxStopWatch const *)arg1)->Time();
5583
5584 wxPyEndAllowThreads(__tstate);
5585 if (PyErr_Occurred()) SWIG_fail;
5586 }
5587 resultobj = SWIG_FromLong((long)result);
5588 return resultobj;
5589 fail:
5590 return NULL;
5591 }
5592
5593
5594 static PyObject * StopWatch_swigregister(PyObject *self, PyObject *args) {
5595 PyObject *obj;
5596 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5597 SWIG_TypeClientData(SWIGTYPE_p_wxStopWatch, obj);
5598 Py_INCREF(obj);
5599 return Py_BuildValue((char *)"");
5600 }
5601 static PyObject *_wrap_new_FileHistory(PyObject *self, PyObject *args, PyObject *kwargs) {
5602 PyObject *resultobj;
5603 int arg1 = (int) 9 ;
5604 int arg2 = (int) wxID_FILE1 ;
5605 wxFileHistory *result;
5606 PyObject * obj0 = 0 ;
5607 PyObject * obj1 = 0 ;
5608 char *kwnames[] = {
5609 (char *) "maxFiles",(char *) "idBase", NULL
5610 };
5611
5612 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_FileHistory",kwnames,&obj0,&obj1)) goto fail;
5613 if (obj0) {
5614 arg1 = (int) SWIG_AsInt(obj0);
5615 if (PyErr_Occurred()) SWIG_fail;
5616 }
5617 if (obj1) {
5618 arg2 = (int) SWIG_AsInt(obj1);
5619 if (PyErr_Occurred()) SWIG_fail;
5620 }
5621 {
5622 PyThreadState* __tstate = wxPyBeginAllowThreads();
5623 result = (wxFileHistory *)new wxFileHistory(arg1,arg2);
5624
5625 wxPyEndAllowThreads(__tstate);
5626 if (PyErr_Occurred()) SWIG_fail;
5627 }
5628 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileHistory, 1);
5629 return resultobj;
5630 fail:
5631 return NULL;
5632 }
5633
5634
5635 static PyObject *_wrap_delete_FileHistory(PyObject *self, PyObject *args, PyObject *kwargs) {
5636 PyObject *resultobj;
5637 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5638 PyObject * obj0 = 0 ;
5639 char *kwnames[] = {
5640 (char *) "self", NULL
5641 };
5642
5643 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileHistory",kwnames,&obj0)) goto fail;
5644 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5645 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5646 {
5647 PyThreadState* __tstate = wxPyBeginAllowThreads();
5648 delete arg1;
5649
5650 wxPyEndAllowThreads(__tstate);
5651 if (PyErr_Occurred()) SWIG_fail;
5652 }
5653 Py_INCREF(Py_None); resultobj = Py_None;
5654 return resultobj;
5655 fail:
5656 return NULL;
5657 }
5658
5659
5660 static PyObject *_wrap_FileHistory_AddFileToHistory(PyObject *self, PyObject *args, PyObject *kwargs) {
5661 PyObject *resultobj;
5662 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5663 wxString *arg2 = 0 ;
5664 bool temp2 = False ;
5665 PyObject * obj0 = 0 ;
5666 PyObject * obj1 = 0 ;
5667 char *kwnames[] = {
5668 (char *) "self",(char *) "file", NULL
5669 };
5670
5671 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_AddFileToHistory",kwnames,&obj0,&obj1)) goto fail;
5672 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5673 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5674 {
5675 arg2 = wxString_in_helper(obj1);
5676 if (arg2 == NULL) SWIG_fail;
5677 temp2 = True;
5678 }
5679 {
5680 PyThreadState* __tstate = wxPyBeginAllowThreads();
5681 (arg1)->AddFileToHistory((wxString const &)*arg2);
5682
5683 wxPyEndAllowThreads(__tstate);
5684 if (PyErr_Occurred()) SWIG_fail;
5685 }
5686 Py_INCREF(Py_None); resultobj = Py_None;
5687 {
5688 if (temp2)
5689 delete arg2;
5690 }
5691 return resultobj;
5692 fail:
5693 {
5694 if (temp2)
5695 delete arg2;
5696 }
5697 return NULL;
5698 }
5699
5700
5701 static PyObject *_wrap_FileHistory_RemoveFileFromHistory(PyObject *self, PyObject *args, PyObject *kwargs) {
5702 PyObject *resultobj;
5703 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5704 int arg2 ;
5705 PyObject * obj0 = 0 ;
5706 PyObject * obj1 = 0 ;
5707 char *kwnames[] = {
5708 (char *) "self",(char *) "i", NULL
5709 };
5710
5711 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_RemoveFileFromHistory",kwnames,&obj0,&obj1)) goto fail;
5712 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5713 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5714 arg2 = (int) SWIG_AsInt(obj1);
5715 if (PyErr_Occurred()) SWIG_fail;
5716 {
5717 PyThreadState* __tstate = wxPyBeginAllowThreads();
5718 (arg1)->RemoveFileFromHistory(arg2);
5719
5720 wxPyEndAllowThreads(__tstate);
5721 if (PyErr_Occurred()) SWIG_fail;
5722 }
5723 Py_INCREF(Py_None); resultobj = Py_None;
5724 return resultobj;
5725 fail:
5726 return NULL;
5727 }
5728
5729
5730 static PyObject *_wrap_FileHistory_GetMaxFiles(PyObject *self, PyObject *args, PyObject *kwargs) {
5731 PyObject *resultobj;
5732 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5733 int result;
5734 PyObject * obj0 = 0 ;
5735 char *kwnames[] = {
5736 (char *) "self", NULL
5737 };
5738
5739 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_GetMaxFiles",kwnames,&obj0)) goto fail;
5740 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5741 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5742 {
5743 PyThreadState* __tstate = wxPyBeginAllowThreads();
5744 result = (int)((wxFileHistory const *)arg1)->GetMaxFiles();
5745
5746 wxPyEndAllowThreads(__tstate);
5747 if (PyErr_Occurred()) SWIG_fail;
5748 }
5749 resultobj = SWIG_FromInt((int)result);
5750 return resultobj;
5751 fail:
5752 return NULL;
5753 }
5754
5755
5756 static PyObject *_wrap_FileHistory_UseMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
5757 PyObject *resultobj;
5758 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5759 wxMenu *arg2 = (wxMenu *) 0 ;
5760 PyObject * obj0 = 0 ;
5761 PyObject * obj1 = 0 ;
5762 char *kwnames[] = {
5763 (char *) "self",(char *) "menu", NULL
5764 };
5765
5766 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_UseMenu",kwnames,&obj0,&obj1)) goto fail;
5767 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5768 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5769 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu,
5770 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5771 {
5772 PyThreadState* __tstate = wxPyBeginAllowThreads();
5773 (arg1)->UseMenu(arg2);
5774
5775 wxPyEndAllowThreads(__tstate);
5776 if (PyErr_Occurred()) SWIG_fail;
5777 }
5778 Py_INCREF(Py_None); resultobj = Py_None;
5779 return resultobj;
5780 fail:
5781 return NULL;
5782 }
5783
5784
5785 static PyObject *_wrap_FileHistory_RemoveMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
5786 PyObject *resultobj;
5787 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5788 wxMenu *arg2 = (wxMenu *) 0 ;
5789 PyObject * obj0 = 0 ;
5790 PyObject * obj1 = 0 ;
5791 char *kwnames[] = {
5792 (char *) "self",(char *) "menu", NULL
5793 };
5794
5795 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_RemoveMenu",kwnames,&obj0,&obj1)) goto fail;
5796 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5797 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5798 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu,
5799 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5800 {
5801 PyThreadState* __tstate = wxPyBeginAllowThreads();
5802 (arg1)->RemoveMenu(arg2);
5803
5804 wxPyEndAllowThreads(__tstate);
5805 if (PyErr_Occurred()) SWIG_fail;
5806 }
5807 Py_INCREF(Py_None); resultobj = Py_None;
5808 return resultobj;
5809 fail:
5810 return NULL;
5811 }
5812
5813
5814 static PyObject *_wrap_FileHistory_Load(PyObject *self, PyObject *args, PyObject *kwargs) {
5815 PyObject *resultobj;
5816 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5817 wxConfigBase *arg2 = 0 ;
5818 PyObject * obj0 = 0 ;
5819 PyObject * obj1 = 0 ;
5820 char *kwnames[] = {
5821 (char *) "self",(char *) "config", NULL
5822 };
5823
5824 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_Load",kwnames,&obj0,&obj1)) goto fail;
5825 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5826 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5827 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxConfigBase,
5828 SWIG_POINTER_EXCEPTION | 0)) == -1)
5829 SWIG_fail;
5830 if (arg2 == NULL) {
5831 PyErr_SetString(PyExc_TypeError,"null reference");
5832 SWIG_fail;
5833 }
5834 {
5835 PyThreadState* __tstate = wxPyBeginAllowThreads();
5836 (arg1)->Load(*arg2);
5837
5838 wxPyEndAllowThreads(__tstate);
5839 if (PyErr_Occurred()) SWIG_fail;
5840 }
5841 Py_INCREF(Py_None); resultobj = Py_None;
5842 return resultobj;
5843 fail:
5844 return NULL;
5845 }
5846
5847
5848 static PyObject *_wrap_FileHistory_Save(PyObject *self, PyObject *args, PyObject *kwargs) {
5849 PyObject *resultobj;
5850 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5851 wxConfigBase *arg2 = 0 ;
5852 PyObject * obj0 = 0 ;
5853 PyObject * obj1 = 0 ;
5854 char *kwnames[] = {
5855 (char *) "self",(char *) "config", NULL
5856 };
5857
5858 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_Save",kwnames,&obj0,&obj1)) goto fail;
5859 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5860 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5861 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxConfigBase,
5862 SWIG_POINTER_EXCEPTION | 0)) == -1)
5863 SWIG_fail;
5864 if (arg2 == NULL) {
5865 PyErr_SetString(PyExc_TypeError,"null reference");
5866 SWIG_fail;
5867 }
5868 {
5869 PyThreadState* __tstate = wxPyBeginAllowThreads();
5870 (arg1)->Save(*arg2);
5871
5872 wxPyEndAllowThreads(__tstate);
5873 if (PyErr_Occurred()) SWIG_fail;
5874 }
5875 Py_INCREF(Py_None); resultobj = Py_None;
5876 return resultobj;
5877 fail:
5878 return NULL;
5879 }
5880
5881
5882 static PyObject *_wrap_FileHistory_AddFilesToMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
5883 PyObject *resultobj;
5884 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5885 PyObject * obj0 = 0 ;
5886 char *kwnames[] = {
5887 (char *) "self", NULL
5888 };
5889
5890 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_AddFilesToMenu",kwnames,&obj0)) goto fail;
5891 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5892 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5893 {
5894 PyThreadState* __tstate = wxPyBeginAllowThreads();
5895 (arg1)->AddFilesToMenu();
5896
5897 wxPyEndAllowThreads(__tstate);
5898 if (PyErr_Occurred()) SWIG_fail;
5899 }
5900 Py_INCREF(Py_None); resultobj = Py_None;
5901 return resultobj;
5902 fail:
5903 return NULL;
5904 }
5905
5906
5907 static PyObject *_wrap_FileHistory_AddFilesToThisMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
5908 PyObject *resultobj;
5909 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5910 wxMenu *arg2 = (wxMenu *) 0 ;
5911 PyObject * obj0 = 0 ;
5912 PyObject * obj1 = 0 ;
5913 char *kwnames[] = {
5914 (char *) "self",(char *) "menu", NULL
5915 };
5916
5917 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_AddFilesToThisMenu",kwnames,&obj0,&obj1)) goto fail;
5918 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5919 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5920 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu,
5921 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5922 {
5923 PyThreadState* __tstate = wxPyBeginAllowThreads();
5924 (arg1)->AddFilesToMenu(arg2);
5925
5926 wxPyEndAllowThreads(__tstate);
5927 if (PyErr_Occurred()) SWIG_fail;
5928 }
5929 Py_INCREF(Py_None); resultobj = Py_None;
5930 return resultobj;
5931 fail:
5932 return NULL;
5933 }
5934
5935
5936 static PyObject *_wrap_FileHistory_GetHistoryFile(PyObject *self, PyObject *args, PyObject *kwargs) {
5937 PyObject *resultobj;
5938 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5939 int arg2 ;
5940 wxString result;
5941 PyObject * obj0 = 0 ;
5942 PyObject * obj1 = 0 ;
5943 char *kwnames[] = {
5944 (char *) "self",(char *) "i", NULL
5945 };
5946
5947 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_GetHistoryFile",kwnames,&obj0,&obj1)) goto fail;
5948 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5949 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5950 arg2 = (int) SWIG_AsInt(obj1);
5951 if (PyErr_Occurred()) SWIG_fail;
5952 {
5953 PyThreadState* __tstate = wxPyBeginAllowThreads();
5954 result = ((wxFileHistory const *)arg1)->GetHistoryFile(arg2);
5955
5956 wxPyEndAllowThreads(__tstate);
5957 if (PyErr_Occurred()) SWIG_fail;
5958 }
5959 {
5960 #if wxUSE_UNICODE
5961 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5962 #else
5963 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5964 #endif
5965 }
5966 return resultobj;
5967 fail:
5968 return NULL;
5969 }
5970
5971
5972 static PyObject *_wrap_FileHistory_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
5973 PyObject *resultobj;
5974 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5975 int result;
5976 PyObject * obj0 = 0 ;
5977 char *kwnames[] = {
5978 (char *) "self", NULL
5979 };
5980
5981 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_GetCount",kwnames,&obj0)) goto fail;
5982 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5983 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5984 {
5985 PyThreadState* __tstate = wxPyBeginAllowThreads();
5986 result = (int)((wxFileHistory const *)arg1)->GetCount();
5987
5988 wxPyEndAllowThreads(__tstate);
5989 if (PyErr_Occurred()) SWIG_fail;
5990 }
5991 resultobj = SWIG_FromInt((int)result);
5992 return resultobj;
5993 fail:
5994 return NULL;
5995 }
5996
5997
5998 static PyObject * FileHistory_swigregister(PyObject *self, PyObject *args) {
5999 PyObject *obj;
6000 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6001 SWIG_TypeClientData(SWIGTYPE_p_wxFileHistory, obj);
6002 Py_INCREF(obj);
6003 return Py_BuildValue((char *)"");
6004 }
6005 static PyObject *_wrap_new_SingleInstanceChecker(PyObject *self, PyObject *args, PyObject *kwargs) {
6006 PyObject *resultobj;
6007 wxString *arg1 = 0 ;
6008 wxString const &arg2_defvalue = wxPyEmptyString ;
6009 wxString *arg2 = (wxString *) &arg2_defvalue ;
6010 wxSingleInstanceChecker *result;
6011 bool temp1 = False ;
6012 bool temp2 = False ;
6013 PyObject * obj0 = 0 ;
6014 PyObject * obj1 = 0 ;
6015 char *kwnames[] = {
6016 (char *) "name",(char *) "path", NULL
6017 };
6018
6019 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_SingleInstanceChecker",kwnames,&obj0,&obj1)) goto fail;
6020 {
6021 arg1 = wxString_in_helper(obj0);
6022 if (arg1 == NULL) SWIG_fail;
6023 temp1 = True;
6024 }
6025 if (obj1) {
6026 {
6027 arg2 = wxString_in_helper(obj1);
6028 if (arg2 == NULL) SWIG_fail;
6029 temp2 = True;
6030 }
6031 }
6032 {
6033 PyThreadState* __tstate = wxPyBeginAllowThreads();
6034 result = (wxSingleInstanceChecker *)new wxSingleInstanceChecker((wxString const &)*arg1,(wxString const &)*arg2);
6035
6036 wxPyEndAllowThreads(__tstate);
6037 if (PyErr_Occurred()) SWIG_fail;
6038 }
6039 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSingleInstanceChecker, 1);
6040 {
6041 if (temp1)
6042 delete arg1;
6043 }
6044 {
6045 if (temp2)
6046 delete arg2;
6047 }
6048 return resultobj;
6049 fail:
6050 {
6051 if (temp1)
6052 delete arg1;
6053 }
6054 {
6055 if (temp2)
6056 delete arg2;
6057 }
6058 return NULL;
6059 }
6060
6061
6062 static PyObject *_wrap_new_PreSingleInstanceChecker(PyObject *self, PyObject *args, PyObject *kwargs) {
6063 PyObject *resultobj;
6064 wxSingleInstanceChecker *result;
6065 char *kwnames[] = {
6066 NULL
6067 };
6068
6069 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSingleInstanceChecker",kwnames)) goto fail;
6070 {
6071 PyThreadState* __tstate = wxPyBeginAllowThreads();
6072 result = (wxSingleInstanceChecker *)new wxSingleInstanceChecker();
6073
6074 wxPyEndAllowThreads(__tstate);
6075 if (PyErr_Occurred()) SWIG_fail;
6076 }
6077 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSingleInstanceChecker, 1);
6078 return resultobj;
6079 fail:
6080 return NULL;
6081 }
6082
6083
6084 static PyObject *_wrap_delete_SingleInstanceChecker(PyObject *self, PyObject *args, PyObject *kwargs) {
6085 PyObject *resultobj;
6086 wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ;
6087 PyObject * obj0 = 0 ;
6088 char *kwnames[] = {
6089 (char *) "self", NULL
6090 };
6091
6092 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_SingleInstanceChecker",kwnames,&obj0)) goto fail;
6093 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSingleInstanceChecker,
6094 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6095 {
6096 PyThreadState* __tstate = wxPyBeginAllowThreads();
6097 delete arg1;
6098
6099 wxPyEndAllowThreads(__tstate);
6100 if (PyErr_Occurred()) SWIG_fail;
6101 }
6102 Py_INCREF(Py_None); resultobj = Py_None;
6103 return resultobj;
6104 fail:
6105 return NULL;
6106 }
6107
6108
6109 static PyObject *_wrap_SingleInstanceChecker_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
6110 PyObject *resultobj;
6111 wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ;
6112 wxString *arg2 = 0 ;
6113 wxString const &arg3_defvalue = wxPyEmptyString ;
6114 wxString *arg3 = (wxString *) &arg3_defvalue ;
6115 bool result;
6116 bool temp2 = False ;
6117 bool temp3 = False ;
6118 PyObject * obj0 = 0 ;
6119 PyObject * obj1 = 0 ;
6120 PyObject * obj2 = 0 ;
6121 char *kwnames[] = {
6122 (char *) "self",(char *) "name",(char *) "path", NULL
6123 };
6124
6125 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:SingleInstanceChecker_Create",kwnames,&obj0,&obj1,&obj2)) goto fail;
6126 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSingleInstanceChecker,
6127 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6128 {
6129 arg2 = wxString_in_helper(obj1);
6130 if (arg2 == NULL) SWIG_fail;
6131 temp2 = True;
6132 }
6133 if (obj2) {
6134 {
6135 arg3 = wxString_in_helper(obj2);
6136 if (arg3 == NULL) SWIG_fail;
6137 temp3 = True;
6138 }
6139 }
6140 {
6141 PyThreadState* __tstate = wxPyBeginAllowThreads();
6142 result = (bool)(arg1)->Create((wxString const &)*arg2,(wxString const &)*arg3);
6143
6144 wxPyEndAllowThreads(__tstate);
6145 if (PyErr_Occurred()) SWIG_fail;
6146 }
6147 {
6148 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6149 }
6150 {
6151 if (temp2)
6152 delete arg2;
6153 }
6154 {
6155 if (temp3)
6156 delete arg3;
6157 }
6158 return resultobj;
6159 fail:
6160 {
6161 if (temp2)
6162 delete arg2;
6163 }
6164 {
6165 if (temp3)
6166 delete arg3;
6167 }
6168 return NULL;
6169 }
6170
6171
6172 static PyObject *_wrap_SingleInstanceChecker_IsAnotherRunning(PyObject *self, PyObject *args, PyObject *kwargs) {
6173 PyObject *resultobj;
6174 wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ;
6175 bool result;
6176 PyObject * obj0 = 0 ;
6177 char *kwnames[] = {
6178 (char *) "self", NULL
6179 };
6180
6181 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SingleInstanceChecker_IsAnotherRunning",kwnames,&obj0)) goto fail;
6182 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSingleInstanceChecker,
6183 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6184 {
6185 PyThreadState* __tstate = wxPyBeginAllowThreads();
6186 result = (bool)((wxSingleInstanceChecker const *)arg1)->IsAnotherRunning();
6187
6188 wxPyEndAllowThreads(__tstate);
6189 if (PyErr_Occurred()) SWIG_fail;
6190 }
6191 {
6192 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6193 }
6194 return resultobj;
6195 fail:
6196 return NULL;
6197 }
6198
6199
6200 static PyObject * SingleInstanceChecker_swigregister(PyObject *self, PyObject *args) {
6201 PyObject *obj;
6202 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6203 SWIG_TypeClientData(SWIGTYPE_p_wxSingleInstanceChecker, obj);
6204 Py_INCREF(obj);
6205 return Py_BuildValue((char *)"");
6206 }
6207 static PyObject *_wrap_DrawWindowOnDC(PyObject *self, PyObject *args, PyObject *kwargs) {
6208 PyObject *resultobj;
6209 wxWindow *arg1 = (wxWindow *) 0 ;
6210 wxDC *arg2 = 0 ;
6211 int arg3 ;
6212 PyObject * obj0 = 0 ;
6213 PyObject * obj1 = 0 ;
6214 PyObject * obj2 = 0 ;
6215 char *kwnames[] = {
6216 (char *) "window",(char *) "dc",(char *) "method", NULL
6217 };
6218
6219 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DrawWindowOnDC",kwnames,&obj0,&obj1,&obj2)) goto fail;
6220 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
6221 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6222 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC,
6223 SWIG_POINTER_EXCEPTION | 0)) == -1)
6224 SWIG_fail;
6225 if (arg2 == NULL) {
6226 PyErr_SetString(PyExc_TypeError,"null reference");
6227 SWIG_fail;
6228 }
6229 arg3 = (int) SWIG_AsInt(obj2);
6230 if (PyErr_Occurred()) SWIG_fail;
6231 {
6232 PyThreadState* __tstate = wxPyBeginAllowThreads();
6233 wxDrawWindowOnDC(arg1,(wxDC const &)*arg2,arg3);
6234
6235 wxPyEndAllowThreads(__tstate);
6236 if (PyErr_Occurred()) SWIG_fail;
6237 }
6238 Py_INCREF(Py_None); resultobj = Py_None;
6239 return resultobj;
6240 fail:
6241 return NULL;
6242 }
6243
6244
6245 static PyObject *_wrap_delete_TipProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
6246 PyObject *resultobj;
6247 wxTipProvider *arg1 = (wxTipProvider *) 0 ;
6248 PyObject * obj0 = 0 ;
6249 char *kwnames[] = {
6250 (char *) "self", NULL
6251 };
6252
6253 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TipProvider",kwnames,&obj0)) goto fail;
6254 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider,
6255 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6256 {
6257 PyThreadState* __tstate = wxPyBeginAllowThreads();
6258 delete arg1;
6259
6260 wxPyEndAllowThreads(__tstate);
6261 if (PyErr_Occurred()) SWIG_fail;
6262 }
6263 Py_INCREF(Py_None); resultobj = Py_None;
6264 return resultobj;
6265 fail:
6266 return NULL;
6267 }
6268
6269
6270 static PyObject *_wrap_TipProvider_GetTip(PyObject *self, PyObject *args, PyObject *kwargs) {
6271 PyObject *resultobj;
6272 wxTipProvider *arg1 = (wxTipProvider *) 0 ;
6273 wxString result;
6274 PyObject * obj0 = 0 ;
6275 char *kwnames[] = {
6276 (char *) "self", NULL
6277 };
6278
6279 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TipProvider_GetTip",kwnames,&obj0)) goto fail;
6280 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider,
6281 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6282 {
6283 PyThreadState* __tstate = wxPyBeginAllowThreads();
6284 result = (arg1)->GetTip();
6285
6286 wxPyEndAllowThreads(__tstate);
6287 if (PyErr_Occurred()) SWIG_fail;
6288 }
6289 {
6290 #if wxUSE_UNICODE
6291 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6292 #else
6293 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6294 #endif
6295 }
6296 return resultobj;
6297 fail:
6298 return NULL;
6299 }
6300
6301
6302 static PyObject *_wrap_TipProvider_GetCurrentTip(PyObject *self, PyObject *args, PyObject *kwargs) {
6303 PyObject *resultobj;
6304 wxTipProvider *arg1 = (wxTipProvider *) 0 ;
6305 size_t result;
6306 PyObject * obj0 = 0 ;
6307 char *kwnames[] = {
6308 (char *) "self", NULL
6309 };
6310
6311 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TipProvider_GetCurrentTip",kwnames,&obj0)) goto fail;
6312 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider,
6313 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6314 {
6315 PyThreadState* __tstate = wxPyBeginAllowThreads();
6316 result = (size_t)(arg1)->GetCurrentTip();
6317
6318 wxPyEndAllowThreads(__tstate);
6319 if (PyErr_Occurred()) SWIG_fail;
6320 }
6321 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
6322 return resultobj;
6323 fail:
6324 return NULL;
6325 }
6326
6327
6328 static PyObject *_wrap_TipProvider_PreprocessTip(PyObject *self, PyObject *args, PyObject *kwargs) {
6329 PyObject *resultobj;
6330 wxTipProvider *arg1 = (wxTipProvider *) 0 ;
6331 wxString *arg2 = 0 ;
6332 wxString result;
6333 bool temp2 = False ;
6334 PyObject * obj0 = 0 ;
6335 PyObject * obj1 = 0 ;
6336 char *kwnames[] = {
6337 (char *) "self",(char *) "tip", NULL
6338 };
6339
6340 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TipProvider_PreprocessTip",kwnames,&obj0,&obj1)) goto fail;
6341 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider,
6342 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6343 {
6344 arg2 = wxString_in_helper(obj1);
6345 if (arg2 == NULL) SWIG_fail;
6346 temp2 = True;
6347 }
6348 {
6349 PyThreadState* __tstate = wxPyBeginAllowThreads();
6350 result = (arg1)->PreprocessTip((wxString const &)*arg2);
6351
6352 wxPyEndAllowThreads(__tstate);
6353 if (PyErr_Occurred()) SWIG_fail;
6354 }
6355 {
6356 #if wxUSE_UNICODE
6357 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6358 #else
6359 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6360 #endif
6361 }
6362 {
6363 if (temp2)
6364 delete arg2;
6365 }
6366 return resultobj;
6367 fail:
6368 {
6369 if (temp2)
6370 delete arg2;
6371 }
6372 return NULL;
6373 }
6374
6375
6376 static PyObject * TipProvider_swigregister(PyObject *self, PyObject *args) {
6377 PyObject *obj;
6378 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6379 SWIG_TypeClientData(SWIGTYPE_p_wxTipProvider, obj);
6380 Py_INCREF(obj);
6381 return Py_BuildValue((char *)"");
6382 }
6383 static PyObject *_wrap_new_PyTipProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
6384 PyObject *resultobj;
6385 size_t arg1 ;
6386 wxPyTipProvider *result;
6387 PyObject * obj0 = 0 ;
6388 char *kwnames[] = {
6389 (char *) "currentTip", NULL
6390 };
6391
6392 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PyTipProvider",kwnames,&obj0)) goto fail;
6393 arg1 = (size_t) SWIG_AsUnsignedLong(obj0);
6394 if (PyErr_Occurred()) SWIG_fail;
6395 {
6396 PyThreadState* __tstate = wxPyBeginAllowThreads();
6397 result = (wxPyTipProvider *)new wxPyTipProvider(arg1);
6398
6399 wxPyEndAllowThreads(__tstate);
6400 if (PyErr_Occurred()) SWIG_fail;
6401 }
6402 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTipProvider, 1);
6403 return resultobj;
6404 fail:
6405 return NULL;
6406 }
6407
6408
6409 static PyObject *_wrap_PyTipProvider__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6410 PyObject *resultobj;
6411 wxPyTipProvider *arg1 = (wxPyTipProvider *) 0 ;
6412 PyObject *arg2 = (PyObject *) 0 ;
6413 PyObject *arg3 = (PyObject *) 0 ;
6414 PyObject * obj0 = 0 ;
6415 PyObject * obj1 = 0 ;
6416 PyObject * obj2 = 0 ;
6417 char *kwnames[] = {
6418 (char *) "self",(char *) "self",(char *) "_class", NULL
6419 };
6420
6421 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyTipProvider__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
6422 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTipProvider,
6423 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6424 arg2 = obj1;
6425 arg3 = obj2;
6426 {
6427 PyThreadState* __tstate = wxPyBeginAllowThreads();
6428 (arg1)->_setCallbackInfo(arg2,arg3);
6429
6430 wxPyEndAllowThreads(__tstate);
6431 if (PyErr_Occurred()) SWIG_fail;
6432 }
6433 Py_INCREF(Py_None); resultobj = Py_None;
6434 return resultobj;
6435 fail:
6436 return NULL;
6437 }
6438
6439
6440 static PyObject * PyTipProvider_swigregister(PyObject *self, PyObject *args) {
6441 PyObject *obj;
6442 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6443 SWIG_TypeClientData(SWIGTYPE_p_wxPyTipProvider, obj);
6444 Py_INCREF(obj);
6445 return Py_BuildValue((char *)"");
6446 }
6447 static PyObject *_wrap_ShowTip(PyObject *self, PyObject *args, PyObject *kwargs) {
6448 PyObject *resultobj;
6449 wxWindow *arg1 = (wxWindow *) 0 ;
6450 wxTipProvider *arg2 = (wxTipProvider *) 0 ;
6451 bool arg3 = (bool) True ;
6452 bool result;
6453 PyObject * obj0 = 0 ;
6454 PyObject * obj1 = 0 ;
6455 PyObject * obj2 = 0 ;
6456 char *kwnames[] = {
6457 (char *) "parent",(char *) "tipProvider",(char *) "showAtStartup", NULL
6458 };
6459
6460 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ShowTip",kwnames,&obj0,&obj1,&obj2)) goto fail;
6461 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
6462 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6463 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTipProvider,
6464 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6465 if (obj2) {
6466 arg3 = (bool) SWIG_AsBool(obj2);
6467 if (PyErr_Occurred()) SWIG_fail;
6468 }
6469 {
6470 if (!wxPyCheckForApp()) SWIG_fail;
6471 PyThreadState* __tstate = wxPyBeginAllowThreads();
6472 result = (bool)wxShowTip(arg1,arg2,arg3);
6473
6474 wxPyEndAllowThreads(__tstate);
6475 if (PyErr_Occurred()) SWIG_fail;
6476 }
6477 {
6478 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6479 }
6480 return resultobj;
6481 fail:
6482 return NULL;
6483 }
6484
6485
6486 static PyObject *_wrap_CreateFileTipProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
6487 PyObject *resultobj;
6488 wxString *arg1 = 0 ;
6489 size_t arg2 ;
6490 wxTipProvider *result;
6491 bool temp1 = False ;
6492 PyObject * obj0 = 0 ;
6493 PyObject * obj1 = 0 ;
6494 char *kwnames[] = {
6495 (char *) "filename",(char *) "currentTip", NULL
6496 };
6497
6498 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CreateFileTipProvider",kwnames,&obj0,&obj1)) goto fail;
6499 {
6500 arg1 = wxString_in_helper(obj0);
6501 if (arg1 == NULL) SWIG_fail;
6502 temp1 = True;
6503 }
6504 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
6505 if (PyErr_Occurred()) SWIG_fail;
6506 {
6507 if (!wxPyCheckForApp()) SWIG_fail;
6508 PyThreadState* __tstate = wxPyBeginAllowThreads();
6509 result = (wxTipProvider *)wxCreateFileTipProvider((wxString const &)*arg1,arg2);
6510
6511 wxPyEndAllowThreads(__tstate);
6512 if (PyErr_Occurred()) SWIG_fail;
6513 }
6514 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTipProvider, 1);
6515 {
6516 if (temp1)
6517 delete arg1;
6518 }
6519 return resultobj;
6520 fail:
6521 {
6522 if (temp1)
6523 delete arg1;
6524 }
6525 return NULL;
6526 }
6527
6528
6529 static PyObject *_wrap_new_Timer(PyObject *self, PyObject *args, PyObject *kwargs) {
6530 PyObject *resultobj;
6531 wxEvtHandler *arg1 = (wxEvtHandler *) NULL ;
6532 int arg2 = (int) -1 ;
6533 wxPyTimer *result;
6534 PyObject * obj0 = 0 ;
6535 PyObject * obj1 = 0 ;
6536 char *kwnames[] = {
6537 (char *) "owner",(char *) "id", NULL
6538 };
6539
6540 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Timer",kwnames,&obj0,&obj1)) goto fail;
6541 if (obj0) {
6542 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler,
6543 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6544 }
6545 if (obj1) {
6546 arg2 = (int) SWIG_AsInt(obj1);
6547 if (PyErr_Occurred()) SWIG_fail;
6548 }
6549 {
6550 if (!wxPyCheckForApp()) SWIG_fail;
6551 PyThreadState* __tstate = wxPyBeginAllowThreads();
6552 result = (wxPyTimer *)new wxPyTimer(arg1,arg2);
6553
6554 wxPyEndAllowThreads(__tstate);
6555 if (PyErr_Occurred()) SWIG_fail;
6556 }
6557 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTimer, 1);
6558 return resultobj;
6559 fail:
6560 return NULL;
6561 }
6562
6563
6564 static PyObject *_wrap_delete_Timer(PyObject *self, PyObject *args, PyObject *kwargs) {
6565 PyObject *resultobj;
6566 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6567 PyObject * obj0 = 0 ;
6568 char *kwnames[] = {
6569 (char *) "self", NULL
6570 };
6571
6572 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Timer",kwnames,&obj0)) goto fail;
6573 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6574 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6575 {
6576 PyThreadState* __tstate = wxPyBeginAllowThreads();
6577 delete arg1;
6578
6579 wxPyEndAllowThreads(__tstate);
6580 if (PyErr_Occurred()) SWIG_fail;
6581 }
6582 Py_INCREF(Py_None); resultobj = Py_None;
6583 return resultobj;
6584 fail:
6585 return NULL;
6586 }
6587
6588
6589 static PyObject *_wrap_Timer__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6590 PyObject *resultobj;
6591 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6592 PyObject *arg2 = (PyObject *) 0 ;
6593 PyObject *arg3 = (PyObject *) 0 ;
6594 int arg4 = (int) 1 ;
6595 PyObject * obj0 = 0 ;
6596 PyObject * obj1 = 0 ;
6597 PyObject * obj2 = 0 ;
6598 PyObject * obj3 = 0 ;
6599 char *kwnames[] = {
6600 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
6601 };
6602
6603 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Timer__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
6604 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6605 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6606 arg2 = obj1;
6607 arg3 = obj2;
6608 if (obj3) {
6609 arg4 = (int) SWIG_AsInt(obj3);
6610 if (PyErr_Occurred()) SWIG_fail;
6611 }
6612 {
6613 PyThreadState* __tstate = wxPyBeginAllowThreads();
6614 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
6615
6616 wxPyEndAllowThreads(__tstate);
6617 if (PyErr_Occurred()) SWIG_fail;
6618 }
6619 Py_INCREF(Py_None); resultobj = Py_None;
6620 return resultobj;
6621 fail:
6622 return NULL;
6623 }
6624
6625
6626 static PyObject *_wrap_Timer_SetOwner(PyObject *self, PyObject *args, PyObject *kwargs) {
6627 PyObject *resultobj;
6628 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6629 wxEvtHandler *arg2 = (wxEvtHandler *) 0 ;
6630 int arg3 = (int) -1 ;
6631 PyObject * obj0 = 0 ;
6632 PyObject * obj1 = 0 ;
6633 PyObject * obj2 = 0 ;
6634 char *kwnames[] = {
6635 (char *) "self",(char *) "owner",(char *) "id", NULL
6636 };
6637
6638 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Timer_SetOwner",kwnames,&obj0,&obj1,&obj2)) goto fail;
6639 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6640 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6641 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler,
6642 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6643 if (obj2) {
6644 arg3 = (int) SWIG_AsInt(obj2);
6645 if (PyErr_Occurred()) SWIG_fail;
6646 }
6647 {
6648 PyThreadState* __tstate = wxPyBeginAllowThreads();
6649 (arg1)->SetOwner(arg2,arg3);
6650
6651 wxPyEndAllowThreads(__tstate);
6652 if (PyErr_Occurred()) SWIG_fail;
6653 }
6654 Py_INCREF(Py_None); resultobj = Py_None;
6655 return resultobj;
6656 fail:
6657 return NULL;
6658 }
6659
6660
6661 static PyObject *_wrap_Timer_GetOwner(PyObject *self, PyObject *args, PyObject *kwargs) {
6662 PyObject *resultobj;
6663 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6664 wxEvtHandler *result;
6665 PyObject * obj0 = 0 ;
6666 char *kwnames[] = {
6667 (char *) "self", NULL
6668 };
6669
6670 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_GetOwner",kwnames,&obj0)) goto fail;
6671 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6672 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6673 {
6674 PyThreadState* __tstate = wxPyBeginAllowThreads();
6675 result = (wxEvtHandler *)(arg1)->GetOwner();
6676
6677 wxPyEndAllowThreads(__tstate);
6678 if (PyErr_Occurred()) SWIG_fail;
6679 }
6680 {
6681 resultobj = wxPyMake_wxObject(result, 0);
6682 }
6683 return resultobj;
6684 fail:
6685 return NULL;
6686 }
6687
6688
6689 static PyObject *_wrap_Timer_Start(PyObject *self, PyObject *args, PyObject *kwargs) {
6690 PyObject *resultobj;
6691 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6692 int arg2 = (int) -1 ;
6693 bool arg3 = (bool) False ;
6694 bool result;
6695 PyObject * obj0 = 0 ;
6696 PyObject * obj1 = 0 ;
6697 PyObject * obj2 = 0 ;
6698 char *kwnames[] = {
6699 (char *) "self",(char *) "milliseconds",(char *) "oneShot", NULL
6700 };
6701
6702 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Timer_Start",kwnames,&obj0,&obj1,&obj2)) goto fail;
6703 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6704 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6705 if (obj1) {
6706 arg2 = (int) SWIG_AsInt(obj1);
6707 if (PyErr_Occurred()) SWIG_fail;
6708 }
6709 if (obj2) {
6710 arg3 = (bool) SWIG_AsBool(obj2);
6711 if (PyErr_Occurred()) SWIG_fail;
6712 }
6713 {
6714 PyThreadState* __tstate = wxPyBeginAllowThreads();
6715 result = (bool)(arg1)->Start(arg2,arg3);
6716
6717 wxPyEndAllowThreads(__tstate);
6718 if (PyErr_Occurred()) SWIG_fail;
6719 }
6720 {
6721 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6722 }
6723 return resultobj;
6724 fail:
6725 return NULL;
6726 }
6727
6728
6729 static PyObject *_wrap_Timer_Stop(PyObject *self, PyObject *args, PyObject *kwargs) {
6730 PyObject *resultobj;
6731 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6732 PyObject * obj0 = 0 ;
6733 char *kwnames[] = {
6734 (char *) "self", NULL
6735 };
6736
6737 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_Stop",kwnames,&obj0)) goto fail;
6738 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6739 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6740 {
6741 PyThreadState* __tstate = wxPyBeginAllowThreads();
6742 (arg1)->Stop();
6743
6744 wxPyEndAllowThreads(__tstate);
6745 if (PyErr_Occurred()) SWIG_fail;
6746 }
6747 Py_INCREF(Py_None); resultobj = Py_None;
6748 return resultobj;
6749 fail:
6750 return NULL;
6751 }
6752
6753
6754 static PyObject *_wrap_Timer_IsRunning(PyObject *self, PyObject *args, PyObject *kwargs) {
6755 PyObject *resultobj;
6756 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6757 bool result;
6758 PyObject * obj0 = 0 ;
6759 char *kwnames[] = {
6760 (char *) "self", NULL
6761 };
6762
6763 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_IsRunning",kwnames,&obj0)) goto fail;
6764 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6765 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6766 {
6767 PyThreadState* __tstate = wxPyBeginAllowThreads();
6768 result = (bool)((wxPyTimer const *)arg1)->IsRunning();
6769
6770 wxPyEndAllowThreads(__tstate);
6771 if (PyErr_Occurred()) SWIG_fail;
6772 }
6773 {
6774 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6775 }
6776 return resultobj;
6777 fail:
6778 return NULL;
6779 }
6780
6781
6782 static PyObject *_wrap_Timer_GetInterval(PyObject *self, PyObject *args, PyObject *kwargs) {
6783 PyObject *resultobj;
6784 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6785 int result;
6786 PyObject * obj0 = 0 ;
6787 char *kwnames[] = {
6788 (char *) "self", NULL
6789 };
6790
6791 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_GetInterval",kwnames,&obj0)) goto fail;
6792 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6793 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6794 {
6795 PyThreadState* __tstate = wxPyBeginAllowThreads();
6796 result = (int)((wxPyTimer const *)arg1)->GetInterval();
6797
6798 wxPyEndAllowThreads(__tstate);
6799 if (PyErr_Occurred()) SWIG_fail;
6800 }
6801 resultobj = SWIG_FromInt((int)result);
6802 return resultobj;
6803 fail:
6804 return NULL;
6805 }
6806
6807
6808 static PyObject *_wrap_Timer_IsOneShot(PyObject *self, PyObject *args, PyObject *kwargs) {
6809 PyObject *resultobj;
6810 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6811 bool result;
6812 PyObject * obj0 = 0 ;
6813 char *kwnames[] = {
6814 (char *) "self", NULL
6815 };
6816
6817 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_IsOneShot",kwnames,&obj0)) goto fail;
6818 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6819 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6820 {
6821 PyThreadState* __tstate = wxPyBeginAllowThreads();
6822 result = (bool)((wxPyTimer const *)arg1)->IsOneShot();
6823
6824 wxPyEndAllowThreads(__tstate);
6825 if (PyErr_Occurred()) SWIG_fail;
6826 }
6827 {
6828 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6829 }
6830 return resultobj;
6831 fail:
6832 return NULL;
6833 }
6834
6835
6836 static PyObject *_wrap_Timer_GetId(PyObject *self, PyObject *args, PyObject *kwargs) {
6837 PyObject *resultobj;
6838 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6839 int result;
6840 PyObject * obj0 = 0 ;
6841 char *kwnames[] = {
6842 (char *) "self", NULL
6843 };
6844
6845 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_GetId",kwnames,&obj0)) goto fail;
6846 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6847 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6848 {
6849 PyThreadState* __tstate = wxPyBeginAllowThreads();
6850 result = (int)((wxPyTimer const *)arg1)->GetId();
6851
6852 wxPyEndAllowThreads(__tstate);
6853 if (PyErr_Occurred()) SWIG_fail;
6854 }
6855 resultobj = SWIG_FromInt((int)result);
6856 return resultobj;
6857 fail:
6858 return NULL;
6859 }
6860
6861
6862 static PyObject * Timer_swigregister(PyObject *self, PyObject *args) {
6863 PyObject *obj;
6864 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6865 SWIG_TypeClientData(SWIGTYPE_p_wxPyTimer, obj);
6866 Py_INCREF(obj);
6867 return Py_BuildValue((char *)"");
6868 }
6869 static PyObject *_wrap_new_TimerEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
6870 PyObject *resultobj;
6871 int arg1 = (int) 0 ;
6872 int arg2 = (int) 0 ;
6873 wxTimerEvent *result;
6874 PyObject * obj0 = 0 ;
6875 PyObject * obj1 = 0 ;
6876 char *kwnames[] = {
6877 (char *) "timerid",(char *) "interval", NULL
6878 };
6879
6880 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_TimerEvent",kwnames,&obj0,&obj1)) goto fail;
6881 if (obj0) {
6882 arg1 = (int) SWIG_AsInt(obj0);
6883 if (PyErr_Occurred()) SWIG_fail;
6884 }
6885 if (obj1) {
6886 arg2 = (int) SWIG_AsInt(obj1);
6887 if (PyErr_Occurred()) SWIG_fail;
6888 }
6889 {
6890 PyThreadState* __tstate = wxPyBeginAllowThreads();
6891 result = (wxTimerEvent *)new wxTimerEvent(arg1,arg2);
6892
6893 wxPyEndAllowThreads(__tstate);
6894 if (PyErr_Occurred()) SWIG_fail;
6895 }
6896 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimerEvent, 1);
6897 return resultobj;
6898 fail:
6899 return NULL;
6900 }
6901
6902
6903 static PyObject *_wrap_TimerEvent_GetInterval(PyObject *self, PyObject *args, PyObject *kwargs) {
6904 PyObject *resultobj;
6905 wxTimerEvent *arg1 = (wxTimerEvent *) 0 ;
6906 int result;
6907 PyObject * obj0 = 0 ;
6908 char *kwnames[] = {
6909 (char *) "self", NULL
6910 };
6911
6912 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimerEvent_GetInterval",kwnames,&obj0)) goto fail;
6913 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimerEvent,
6914 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6915 {
6916 PyThreadState* __tstate = wxPyBeginAllowThreads();
6917 result = (int)((wxTimerEvent const *)arg1)->GetInterval();
6918
6919 wxPyEndAllowThreads(__tstate);
6920 if (PyErr_Occurred()) SWIG_fail;
6921 }
6922 resultobj = SWIG_FromInt((int)result);
6923 return resultobj;
6924 fail:
6925 return NULL;
6926 }
6927
6928
6929 static PyObject * TimerEvent_swigregister(PyObject *self, PyObject *args) {
6930 PyObject *obj;
6931 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6932 SWIG_TypeClientData(SWIGTYPE_p_wxTimerEvent, obj);
6933 Py_INCREF(obj);
6934 return Py_BuildValue((char *)"");
6935 }
6936 static PyObject *_wrap_new_TimerRunner__SWIG_0(PyObject *self, PyObject *args) {
6937 PyObject *resultobj;
6938 wxTimer *arg1 = 0 ;
6939 wxTimerRunner *result;
6940 PyObject * obj0 = 0 ;
6941
6942 if(!PyArg_ParseTuple(args,(char *)"O:new_TimerRunner",&obj0)) goto fail;
6943 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimer,
6944 SWIG_POINTER_EXCEPTION | 0)) == -1)
6945 SWIG_fail;
6946 if (arg1 == NULL) {
6947 PyErr_SetString(PyExc_TypeError,"null reference");
6948 SWIG_fail;
6949 }
6950 {
6951 if (!wxPyCheckForApp()) SWIG_fail;
6952 PyThreadState* __tstate = wxPyBeginAllowThreads();
6953 result = (wxTimerRunner *)new wxTimerRunner(*arg1);
6954
6955 wxPyEndAllowThreads(__tstate);
6956 if (PyErr_Occurred()) SWIG_fail;
6957 }
6958 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimerRunner, 1);
6959 return resultobj;
6960 fail:
6961 return NULL;
6962 }
6963
6964
6965 static PyObject *_wrap_new_TimerRunner__SWIG_1(PyObject *self, PyObject *args) {
6966 PyObject *resultobj;
6967 wxTimer *arg1 = 0 ;
6968 int arg2 ;
6969 bool arg3 = (bool) False ;
6970 wxTimerRunner *result;
6971 PyObject * obj0 = 0 ;
6972 PyObject * obj1 = 0 ;
6973 PyObject * obj2 = 0 ;
6974
6975 if(!PyArg_ParseTuple(args,(char *)"OO|O:new_TimerRunner",&obj0,&obj1,&obj2)) goto fail;
6976 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimer,
6977 SWIG_POINTER_EXCEPTION | 0)) == -1)
6978 SWIG_fail;
6979 if (arg1 == NULL) {
6980 PyErr_SetString(PyExc_TypeError,"null reference");
6981 SWIG_fail;
6982 }
6983 arg2 = (int) SWIG_AsInt(obj1);
6984 if (PyErr_Occurred()) SWIG_fail;
6985 if (obj2) {
6986 arg3 = (bool) SWIG_AsBool(obj2);
6987 if (PyErr_Occurred()) SWIG_fail;
6988 }
6989 {
6990 if (!wxPyCheckForApp()) SWIG_fail;
6991 PyThreadState* __tstate = wxPyBeginAllowThreads();
6992 result = (wxTimerRunner *)new wxTimerRunner(*arg1,arg2,arg3);
6993
6994 wxPyEndAllowThreads(__tstate);
6995 if (PyErr_Occurred()) SWIG_fail;
6996 }
6997 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimerRunner, 1);
6998 return resultobj;
6999 fail:
7000 return NULL;
7001 }
7002
7003
7004 static PyObject *_wrap_new_TimerRunner(PyObject *self, PyObject *args) {
7005 int argc;
7006 PyObject *argv[4];
7007 int ii;
7008
7009 argc = PyObject_Length(args);
7010 for (ii = 0; (ii < argc) && (ii < 3); ii++) {
7011 argv[ii] = PyTuple_GetItem(args,ii);
7012 }
7013 if (argc == 1) {
7014 int _v;
7015 {
7016 void *ptr;
7017 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxTimer, 0) == -1) {
7018 _v = 0;
7019 PyErr_Clear();
7020 } else {
7021 _v = 1;
7022 }
7023 }
7024 if (_v) {
7025 return _wrap_new_TimerRunner__SWIG_0(self,args);
7026 }
7027 }
7028 if ((argc >= 2) && (argc <= 3)) {
7029 int _v;
7030 {
7031 void *ptr;
7032 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxTimer, 0) == -1) {
7033 _v = 0;
7034 PyErr_Clear();
7035 } else {
7036 _v = 1;
7037 }
7038 }
7039 if (_v) {
7040 _v = SWIG_CheckInt(argv[1]);
7041 if (_v) {
7042 if (argc <= 2) {
7043 return _wrap_new_TimerRunner__SWIG_1(self,args);
7044 }
7045 _v = SWIG_CheckBool(argv[2]);
7046 if (_v) {
7047 return _wrap_new_TimerRunner__SWIG_1(self,args);
7048 }
7049 }
7050 }
7051 }
7052
7053 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_TimerRunner'");
7054 return NULL;
7055 }
7056
7057
7058 static PyObject *_wrap_delete_TimerRunner(PyObject *self, PyObject *args, PyObject *kwargs) {
7059 PyObject *resultobj;
7060 wxTimerRunner *arg1 = (wxTimerRunner *) 0 ;
7061 PyObject * obj0 = 0 ;
7062 char *kwnames[] = {
7063 (char *) "self", NULL
7064 };
7065
7066 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TimerRunner",kwnames,&obj0)) goto fail;
7067 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimerRunner,
7068 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7069 {
7070 PyThreadState* __tstate = wxPyBeginAllowThreads();
7071 delete arg1;
7072
7073 wxPyEndAllowThreads(__tstate);
7074 if (PyErr_Occurred()) SWIG_fail;
7075 }
7076 Py_INCREF(Py_None); resultobj = Py_None;
7077 return resultobj;
7078 fail:
7079 return NULL;
7080 }
7081
7082
7083 static PyObject *_wrap_TimerRunner_Start(PyObject *self, PyObject *args, PyObject *kwargs) {
7084 PyObject *resultobj;
7085 wxTimerRunner *arg1 = (wxTimerRunner *) 0 ;
7086 int arg2 ;
7087 bool arg3 = (bool) False ;
7088 PyObject * obj0 = 0 ;
7089 PyObject * obj1 = 0 ;
7090 PyObject * obj2 = 0 ;
7091 char *kwnames[] = {
7092 (char *) "self",(char *) "milli",(char *) "oneShot", NULL
7093 };
7094
7095 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TimerRunner_Start",kwnames,&obj0,&obj1,&obj2)) goto fail;
7096 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimerRunner,
7097 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7098 arg2 = (int) SWIG_AsInt(obj1);
7099 if (PyErr_Occurred()) SWIG_fail;
7100 if (obj2) {
7101 arg3 = (bool) SWIG_AsBool(obj2);
7102 if (PyErr_Occurred()) SWIG_fail;
7103 }
7104 {
7105 PyThreadState* __tstate = wxPyBeginAllowThreads();
7106 (arg1)->Start(arg2,arg3);
7107
7108 wxPyEndAllowThreads(__tstate);
7109 if (PyErr_Occurred()) SWIG_fail;
7110 }
7111 Py_INCREF(Py_None); resultobj = Py_None;
7112 return resultobj;
7113 fail:
7114 return NULL;
7115 }
7116
7117
7118 static PyObject * TimerRunner_swigregister(PyObject *self, PyObject *args) {
7119 PyObject *obj;
7120 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7121 SWIG_TypeClientData(SWIGTYPE_p_wxTimerRunner, obj);
7122 Py_INCREF(obj);
7123 return Py_BuildValue((char *)"");
7124 }
7125 static PyObject *_wrap_new_Log(PyObject *self, PyObject *args, PyObject *kwargs) {
7126 PyObject *resultobj;
7127 wxLog *result;
7128 char *kwnames[] = {
7129 NULL
7130 };
7131
7132 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Log",kwnames)) goto fail;
7133 {
7134 PyThreadState* __tstate = wxPyBeginAllowThreads();
7135 result = (wxLog *)new wxLog();
7136
7137 wxPyEndAllowThreads(__tstate);
7138 if (PyErr_Occurred()) SWIG_fail;
7139 }
7140 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 1);
7141 return resultobj;
7142 fail:
7143 return NULL;
7144 }
7145
7146
7147 static PyObject *_wrap_Log_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
7148 PyObject *resultobj;
7149 bool result;
7150 char *kwnames[] = {
7151 NULL
7152 };
7153
7154 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_IsEnabled",kwnames)) goto fail;
7155 {
7156 PyThreadState* __tstate = wxPyBeginAllowThreads();
7157 result = (bool)wxLog::IsEnabled();
7158
7159 wxPyEndAllowThreads(__tstate);
7160 if (PyErr_Occurred()) SWIG_fail;
7161 }
7162 {
7163 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7164 }
7165 return resultobj;
7166 fail:
7167 return NULL;
7168 }
7169
7170
7171 static PyObject *_wrap_Log_EnableLogging(PyObject *self, PyObject *args, PyObject *kwargs) {
7172 PyObject *resultobj;
7173 bool arg1 = (bool) True ;
7174 bool result;
7175 PyObject * obj0 = 0 ;
7176 char *kwnames[] = {
7177 (char *) "doIt", NULL
7178 };
7179
7180 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Log_EnableLogging",kwnames,&obj0)) goto fail;
7181 if (obj0) {
7182 arg1 = (bool) SWIG_AsBool(obj0);
7183 if (PyErr_Occurred()) SWIG_fail;
7184 }
7185 {
7186 PyThreadState* __tstate = wxPyBeginAllowThreads();
7187 result = (bool)wxLog::EnableLogging(arg1);
7188
7189 wxPyEndAllowThreads(__tstate);
7190 if (PyErr_Occurred()) SWIG_fail;
7191 }
7192 {
7193 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7194 }
7195 return resultobj;
7196 fail:
7197 return NULL;
7198 }
7199
7200
7201 static PyObject *_wrap_Log_OnLog(PyObject *self, PyObject *args, PyObject *kwargs) {
7202 PyObject *resultobj;
7203 wxLogLevel arg1 ;
7204 wxChar *arg2 = (wxChar *) 0 ;
7205 time_t arg3 ;
7206 PyObject * obj0 = 0 ;
7207 PyObject * obj1 = 0 ;
7208 PyObject * obj2 = 0 ;
7209 char *kwnames[] = {
7210 (char *) "level",(char *) "szString",(char *) "t", NULL
7211 };
7212
7213 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Log_OnLog",kwnames,&obj0,&obj1,&obj2)) goto fail;
7214 arg1 = (wxLogLevel) SWIG_AsUnsignedLong(obj0);
7215 if (PyErr_Occurred()) SWIG_fail;
7216 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxChar,
7217 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7218 arg3 = (time_t) SWIG_AsUnsignedInt(obj2);
7219 if (PyErr_Occurred()) SWIG_fail;
7220 {
7221 PyThreadState* __tstate = wxPyBeginAllowThreads();
7222 wxLog::OnLog(arg1,(wxChar const *)arg2,arg3);
7223
7224 wxPyEndAllowThreads(__tstate);
7225 if (PyErr_Occurred()) SWIG_fail;
7226 }
7227 Py_INCREF(Py_None); resultobj = Py_None;
7228 return resultobj;
7229 fail:
7230 return NULL;
7231 }
7232
7233
7234 static PyObject *_wrap_Log_Flush(PyObject *self, PyObject *args, PyObject *kwargs) {
7235 PyObject *resultobj;
7236 wxLog *arg1 = (wxLog *) 0 ;
7237 PyObject * obj0 = 0 ;
7238 char *kwnames[] = {
7239 (char *) "self", NULL
7240 };
7241
7242 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_Flush",kwnames,&obj0)) goto fail;
7243 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog,
7244 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7245 {
7246 PyThreadState* __tstate = wxPyBeginAllowThreads();
7247 (arg1)->Flush();
7248
7249 wxPyEndAllowThreads(__tstate);
7250 if (PyErr_Occurred()) SWIG_fail;
7251 }
7252 Py_INCREF(Py_None); resultobj = Py_None;
7253 return resultobj;
7254 fail:
7255 return NULL;
7256 }
7257
7258
7259 static PyObject *_wrap_Log_FlushActive(PyObject *self, PyObject *args, PyObject *kwargs) {
7260 PyObject *resultobj;
7261 char *kwnames[] = {
7262 NULL
7263 };
7264
7265 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_FlushActive",kwnames)) goto fail;
7266 {
7267 PyThreadState* __tstate = wxPyBeginAllowThreads();
7268 wxLog::FlushActive();
7269
7270 wxPyEndAllowThreads(__tstate);
7271 if (PyErr_Occurred()) SWIG_fail;
7272 }
7273 Py_INCREF(Py_None); resultobj = Py_None;
7274 return resultobj;
7275 fail:
7276 return NULL;
7277 }
7278
7279
7280 static PyObject *_wrap_Log_GetActiveTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
7281 PyObject *resultobj;
7282 wxLog *result;
7283 char *kwnames[] = {
7284 NULL
7285 };
7286
7287 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetActiveTarget",kwnames)) goto fail;
7288 {
7289 PyThreadState* __tstate = wxPyBeginAllowThreads();
7290 result = (wxLog *)wxLog::GetActiveTarget();
7291
7292 wxPyEndAllowThreads(__tstate);
7293 if (PyErr_Occurred()) SWIG_fail;
7294 }
7295 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0);
7296 return resultobj;
7297 fail:
7298 return NULL;
7299 }
7300
7301
7302 static PyObject *_wrap_Log_SetActiveTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
7303 PyObject *resultobj;
7304 wxLog *arg1 = (wxLog *) 0 ;
7305 wxLog *result;
7306 PyObject * obj0 = 0 ;
7307 char *kwnames[] = {
7308 (char *) "pLogger", NULL
7309 };
7310
7311 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetActiveTarget",kwnames,&obj0)) goto fail;
7312 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog,
7313 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7314 {
7315 PyThreadState* __tstate = wxPyBeginAllowThreads();
7316 result = (wxLog *)wxLog::SetActiveTarget(arg1);
7317
7318 wxPyEndAllowThreads(__tstate);
7319 if (PyErr_Occurred()) SWIG_fail;
7320 }
7321 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0);
7322 return resultobj;
7323 fail:
7324 return NULL;
7325 }
7326
7327
7328 static PyObject *_wrap_Log_Suspend(PyObject *self, PyObject *args, PyObject *kwargs) {
7329 PyObject *resultobj;
7330 char *kwnames[] = {
7331 NULL
7332 };
7333
7334 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_Suspend",kwnames)) goto fail;
7335 {
7336 PyThreadState* __tstate = wxPyBeginAllowThreads();
7337 wxLog::Suspend();
7338
7339 wxPyEndAllowThreads(__tstate);
7340 if (PyErr_Occurred()) SWIG_fail;
7341 }
7342 Py_INCREF(Py_None); resultobj = Py_None;
7343 return resultobj;
7344 fail:
7345 return NULL;
7346 }
7347
7348
7349 static PyObject *_wrap_Log_Resume(PyObject *self, PyObject *args, PyObject *kwargs) {
7350 PyObject *resultobj;
7351 char *kwnames[] = {
7352 NULL
7353 };
7354
7355 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_Resume",kwnames)) goto fail;
7356 {
7357 PyThreadState* __tstate = wxPyBeginAllowThreads();
7358 wxLog::Resume();
7359
7360 wxPyEndAllowThreads(__tstate);
7361 if (PyErr_Occurred()) SWIG_fail;
7362 }
7363 Py_INCREF(Py_None); resultobj = Py_None;
7364 return resultobj;
7365 fail:
7366 return NULL;
7367 }
7368
7369
7370 static PyObject *_wrap_Log_SetVerbose(PyObject *self, PyObject *args, PyObject *kwargs) {
7371 PyObject *resultobj;
7372 bool arg1 = (bool) True ;
7373 PyObject * obj0 = 0 ;
7374 char *kwnames[] = {
7375 (char *) "bVerbose", NULL
7376 };
7377
7378 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Log_SetVerbose",kwnames,&obj0)) goto fail;
7379 if (obj0) {
7380 arg1 = (bool) SWIG_AsBool(obj0);
7381 if (PyErr_Occurred()) SWIG_fail;
7382 }
7383 {
7384 PyThreadState* __tstate = wxPyBeginAllowThreads();
7385 wxLog::SetVerbose(arg1);
7386
7387 wxPyEndAllowThreads(__tstate);
7388 if (PyErr_Occurred()) SWIG_fail;
7389 }
7390 Py_INCREF(Py_None); resultobj = Py_None;
7391 return resultobj;
7392 fail:
7393 return NULL;
7394 }
7395
7396
7397 static PyObject *_wrap_Log_SetLogLevel(PyObject *self, PyObject *args, PyObject *kwargs) {
7398 PyObject *resultobj;
7399 wxLogLevel arg1 ;
7400 PyObject * obj0 = 0 ;
7401 char *kwnames[] = {
7402 (char *) "logLevel", NULL
7403 };
7404
7405 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetLogLevel",kwnames,&obj0)) goto fail;
7406 arg1 = (wxLogLevel) SWIG_AsUnsignedLong(obj0);
7407 if (PyErr_Occurred()) SWIG_fail;
7408 {
7409 PyThreadState* __tstate = wxPyBeginAllowThreads();
7410 wxLog::SetLogLevel(arg1);
7411
7412 wxPyEndAllowThreads(__tstate);
7413 if (PyErr_Occurred()) SWIG_fail;
7414 }
7415 Py_INCREF(Py_None); resultobj = Py_None;
7416 return resultobj;
7417 fail:
7418 return NULL;
7419 }
7420
7421
7422 static PyObject *_wrap_Log_DontCreateOnDemand(PyObject *self, PyObject *args, PyObject *kwargs) {
7423 PyObject *resultobj;
7424 char *kwnames[] = {
7425 NULL
7426 };
7427
7428 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_DontCreateOnDemand",kwnames)) goto fail;
7429 {
7430 PyThreadState* __tstate = wxPyBeginAllowThreads();
7431 wxLog::DontCreateOnDemand();
7432
7433 wxPyEndAllowThreads(__tstate);
7434 if (PyErr_Occurred()) SWIG_fail;
7435 }
7436 Py_INCREF(Py_None); resultobj = Py_None;
7437 return resultobj;
7438 fail:
7439 return NULL;
7440 }
7441
7442
7443 static PyObject *_wrap_Log_SetTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) {
7444 PyObject *resultobj;
7445 wxTraceMask arg1 ;
7446 PyObject * obj0 = 0 ;
7447 char *kwnames[] = {
7448 (char *) "ulMask", NULL
7449 };
7450
7451 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetTraceMask",kwnames,&obj0)) goto fail;
7452 arg1 = (wxTraceMask) SWIG_AsUnsignedLong(obj0);
7453 if (PyErr_Occurred()) SWIG_fail;
7454 {
7455 PyThreadState* __tstate = wxPyBeginAllowThreads();
7456 wxLog::SetTraceMask(arg1);
7457
7458 wxPyEndAllowThreads(__tstate);
7459 if (PyErr_Occurred()) SWIG_fail;
7460 }
7461 Py_INCREF(Py_None); resultobj = Py_None;
7462 return resultobj;
7463 fail:
7464 return NULL;
7465 }
7466
7467
7468 static PyObject *_wrap_Log_AddTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) {
7469 PyObject *resultobj;
7470 wxString *arg1 = 0 ;
7471 bool temp1 = False ;
7472 PyObject * obj0 = 0 ;
7473 char *kwnames[] = {
7474 (char *) "str", NULL
7475 };
7476
7477 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_AddTraceMask",kwnames,&obj0)) goto fail;
7478 {
7479 arg1 = wxString_in_helper(obj0);
7480 if (arg1 == NULL) SWIG_fail;
7481 temp1 = True;
7482 }
7483 {
7484 PyThreadState* __tstate = wxPyBeginAllowThreads();
7485 wxLog::AddTraceMask((wxString const &)*arg1);
7486
7487 wxPyEndAllowThreads(__tstate);
7488 if (PyErr_Occurred()) SWIG_fail;
7489 }
7490 Py_INCREF(Py_None); resultobj = Py_None;
7491 {
7492 if (temp1)
7493 delete arg1;
7494 }
7495 return resultobj;
7496 fail:
7497 {
7498 if (temp1)
7499 delete arg1;
7500 }
7501 return NULL;
7502 }
7503
7504
7505 static PyObject *_wrap_Log_RemoveTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) {
7506 PyObject *resultobj;
7507 wxString *arg1 = 0 ;
7508 bool temp1 = False ;
7509 PyObject * obj0 = 0 ;
7510 char *kwnames[] = {
7511 (char *) "str", NULL
7512 };
7513
7514 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_RemoveTraceMask",kwnames,&obj0)) goto fail;
7515 {
7516 arg1 = wxString_in_helper(obj0);
7517 if (arg1 == NULL) SWIG_fail;
7518 temp1 = True;
7519 }
7520 {
7521 PyThreadState* __tstate = wxPyBeginAllowThreads();
7522 wxLog::RemoveTraceMask((wxString const &)*arg1);
7523
7524 wxPyEndAllowThreads(__tstate);
7525 if (PyErr_Occurred()) SWIG_fail;
7526 }
7527 Py_INCREF(Py_None); resultobj = Py_None;
7528 {
7529 if (temp1)
7530 delete arg1;
7531 }
7532 return resultobj;
7533 fail:
7534 {
7535 if (temp1)
7536 delete arg1;
7537 }
7538 return NULL;
7539 }
7540
7541
7542 static PyObject *_wrap_Log_ClearTraceMasks(PyObject *self, PyObject *args, PyObject *kwargs) {
7543 PyObject *resultobj;
7544 char *kwnames[] = {
7545 NULL
7546 };
7547
7548 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_ClearTraceMasks",kwnames)) goto fail;
7549 {
7550 PyThreadState* __tstate = wxPyBeginAllowThreads();
7551 wxLog::ClearTraceMasks();
7552
7553 wxPyEndAllowThreads(__tstate);
7554 if (PyErr_Occurred()) SWIG_fail;
7555 }
7556 Py_INCREF(Py_None); resultobj = Py_None;
7557 return resultobj;
7558 fail:
7559 return NULL;
7560 }
7561
7562
7563 static PyObject *_wrap_Log_GetTraceMasks(PyObject *self, PyObject *args, PyObject *kwargs) {
7564 PyObject *resultobj;
7565 wxArrayString *result;
7566 char *kwnames[] = {
7567 NULL
7568 };
7569
7570 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTraceMasks",kwnames)) goto fail;
7571 {
7572 PyThreadState* __tstate = wxPyBeginAllowThreads();
7573 {
7574 wxArrayString const &_result_ref = wxLog::GetTraceMasks();
7575 result = (wxArrayString *) &_result_ref;
7576 }
7577
7578 wxPyEndAllowThreads(__tstate);
7579 if (PyErr_Occurred()) SWIG_fail;
7580 }
7581 {
7582 resultobj = wxArrayString2PyList_helper(*result);
7583 }
7584 return resultobj;
7585 fail:
7586 return NULL;
7587 }
7588
7589
7590 static PyObject *_wrap_Log_SetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) {
7591 PyObject *resultobj;
7592 wxChar *arg1 = (wxChar *) 0 ;
7593 PyObject * obj0 = 0 ;
7594 char *kwnames[] = {
7595 (char *) "ts", NULL
7596 };
7597
7598 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetTimestamp",kwnames,&obj0)) goto fail;
7599 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChar,
7600 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7601 {
7602 PyThreadState* __tstate = wxPyBeginAllowThreads();
7603 wxLog::SetTimestamp((wxChar const *)arg1);
7604
7605 wxPyEndAllowThreads(__tstate);
7606 if (PyErr_Occurred()) SWIG_fail;
7607 }
7608 Py_INCREF(Py_None); resultobj = Py_None;
7609 return resultobj;
7610 fail:
7611 return NULL;
7612 }
7613
7614
7615 static PyObject *_wrap_Log_GetVerbose(PyObject *self, PyObject *args, PyObject *kwargs) {
7616 PyObject *resultobj;
7617 bool result;
7618 char *kwnames[] = {
7619 NULL
7620 };
7621
7622 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetVerbose",kwnames)) goto fail;
7623 {
7624 PyThreadState* __tstate = wxPyBeginAllowThreads();
7625 result = (bool)wxLog::GetVerbose();
7626
7627 wxPyEndAllowThreads(__tstate);
7628 if (PyErr_Occurred()) SWIG_fail;
7629 }
7630 {
7631 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7632 }
7633 return resultobj;
7634 fail:
7635 return NULL;
7636 }
7637
7638
7639 static PyObject *_wrap_Log_GetTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) {
7640 PyObject *resultobj;
7641 wxTraceMask result;
7642 char *kwnames[] = {
7643 NULL
7644 };
7645
7646 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTraceMask",kwnames)) goto fail;
7647 {
7648 PyThreadState* __tstate = wxPyBeginAllowThreads();
7649 result = (wxTraceMask)wxLog::GetTraceMask();
7650
7651 wxPyEndAllowThreads(__tstate);
7652 if (PyErr_Occurred()) SWIG_fail;
7653 }
7654 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
7655 return resultobj;
7656 fail:
7657 return NULL;
7658 }
7659
7660
7661 static PyObject *_wrap_Log_IsAllowedTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) {
7662 PyObject *resultobj;
7663 wxChar *arg1 = (wxChar *) 0 ;
7664 bool result;
7665 PyObject * obj0 = 0 ;
7666 char *kwnames[] = {
7667 (char *) "mask", NULL
7668 };
7669
7670 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_IsAllowedTraceMask",kwnames,&obj0)) goto fail;
7671 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChar,
7672 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7673 {
7674 PyThreadState* __tstate = wxPyBeginAllowThreads();
7675 result = (bool)wxLog::IsAllowedTraceMask((wxChar const *)arg1);
7676
7677 wxPyEndAllowThreads(__tstate);
7678 if (PyErr_Occurred()) SWIG_fail;
7679 }
7680 {
7681 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7682 }
7683 return resultobj;
7684 fail:
7685 return NULL;
7686 }
7687
7688
7689 static PyObject *_wrap_Log_GetLogLevel(PyObject *self, PyObject *args, PyObject *kwargs) {
7690 PyObject *resultobj;
7691 wxLogLevel result;
7692 char *kwnames[] = {
7693 NULL
7694 };
7695
7696 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetLogLevel",kwnames)) goto fail;
7697 {
7698 PyThreadState* __tstate = wxPyBeginAllowThreads();
7699 result = (wxLogLevel)wxLog::GetLogLevel();
7700
7701 wxPyEndAllowThreads(__tstate);
7702 if (PyErr_Occurred()) SWIG_fail;
7703 }
7704 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
7705 return resultobj;
7706 fail:
7707 return NULL;
7708 }
7709
7710
7711 static PyObject *_wrap_Log_GetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) {
7712 PyObject *resultobj;
7713 wxChar *result;
7714 char *kwnames[] = {
7715 NULL
7716 };
7717
7718 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTimestamp",kwnames)) goto fail;
7719 {
7720 PyThreadState* __tstate = wxPyBeginAllowThreads();
7721 result = (wxChar *)wxLog::GetTimestamp();
7722
7723 wxPyEndAllowThreads(__tstate);
7724 if (PyErr_Occurred()) SWIG_fail;
7725 }
7726 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChar, 0);
7727 return resultobj;
7728 fail:
7729 return NULL;
7730 }
7731
7732
7733 static PyObject *_wrap_Log_TimeStamp(PyObject *self, PyObject *args, PyObject *kwargs) {
7734 PyObject *resultobj;
7735 wxString result;
7736 char *kwnames[] = {
7737 NULL
7738 };
7739
7740 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_TimeStamp",kwnames)) goto fail;
7741 {
7742 PyThreadState* __tstate = wxPyBeginAllowThreads();
7743 result = Log_TimeStamp();
7744
7745 wxPyEndAllowThreads(__tstate);
7746 if (PyErr_Occurred()) SWIG_fail;
7747 }
7748 {
7749 #if wxUSE_UNICODE
7750 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7751 #else
7752 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7753 #endif
7754 }
7755 return resultobj;
7756 fail:
7757 return NULL;
7758 }
7759
7760
7761 static PyObject *_wrap_Log_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
7762 PyObject *resultobj;
7763 wxLog *arg1 = (wxLog *) 0 ;
7764 PyObject * obj0 = 0 ;
7765 char *kwnames[] = {
7766 (char *) "self", NULL
7767 };
7768
7769 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_Destroy",kwnames,&obj0)) goto fail;
7770 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog,
7771 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7772 {
7773 PyThreadState* __tstate = wxPyBeginAllowThreads();
7774 wxLog_Destroy(arg1);
7775
7776 wxPyEndAllowThreads(__tstate);
7777 if (PyErr_Occurred()) SWIG_fail;
7778 }
7779 Py_INCREF(Py_None); resultobj = Py_None;
7780 return resultobj;
7781 fail:
7782 return NULL;
7783 }
7784
7785
7786 static PyObject * Log_swigregister(PyObject *self, PyObject *args) {
7787 PyObject *obj;
7788 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7789 SWIG_TypeClientData(SWIGTYPE_p_wxLog, obj);
7790 Py_INCREF(obj);
7791 return Py_BuildValue((char *)"");
7792 }
7793 static PyObject *_wrap_new_LogStderr(PyObject *self, PyObject *args, PyObject *kwargs) {
7794 PyObject *resultobj;
7795 wxLogStderr *result;
7796 char *kwnames[] = {
7797 NULL
7798 };
7799
7800 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogStderr",kwnames)) goto fail;
7801 {
7802 PyThreadState* __tstate = wxPyBeginAllowThreads();
7803 result = (wxLogStderr *)new wxLogStderr();
7804
7805 wxPyEndAllowThreads(__tstate);
7806 if (PyErr_Occurred()) SWIG_fail;
7807 }
7808 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogStderr, 1);
7809 return resultobj;
7810 fail:
7811 return NULL;
7812 }
7813
7814
7815 static PyObject * LogStderr_swigregister(PyObject *self, PyObject *args) {
7816 PyObject *obj;
7817 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7818 SWIG_TypeClientData(SWIGTYPE_p_wxLogStderr, obj);
7819 Py_INCREF(obj);
7820 return Py_BuildValue((char *)"");
7821 }
7822 static PyObject *_wrap_new_LogTextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
7823 PyObject *resultobj;
7824 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
7825 wxLogTextCtrl *result;
7826 PyObject * obj0 = 0 ;
7827 char *kwnames[] = {
7828 (char *) "pTextCtrl", NULL
7829 };
7830
7831 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_LogTextCtrl",kwnames,&obj0)) goto fail;
7832 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
7833 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7834 {
7835 PyThreadState* __tstate = wxPyBeginAllowThreads();
7836 result = (wxLogTextCtrl *)new wxLogTextCtrl(arg1);
7837
7838 wxPyEndAllowThreads(__tstate);
7839 if (PyErr_Occurred()) SWIG_fail;
7840 }
7841 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogTextCtrl, 1);
7842 return resultobj;
7843 fail:
7844 return NULL;
7845 }
7846
7847
7848 static PyObject * LogTextCtrl_swigregister(PyObject *self, PyObject *args) {
7849 PyObject *obj;
7850 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7851 SWIG_TypeClientData(SWIGTYPE_p_wxLogTextCtrl, obj);
7852 Py_INCREF(obj);
7853 return Py_BuildValue((char *)"");
7854 }
7855 static PyObject *_wrap_new_LogGui(PyObject *self, PyObject *args, PyObject *kwargs) {
7856 PyObject *resultobj;
7857 wxLogGui *result;
7858 char *kwnames[] = {
7859 NULL
7860 };
7861
7862 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogGui",kwnames)) goto fail;
7863 {
7864 PyThreadState* __tstate = wxPyBeginAllowThreads();
7865 result = (wxLogGui *)new wxLogGui();
7866
7867 wxPyEndAllowThreads(__tstate);
7868 if (PyErr_Occurred()) SWIG_fail;
7869 }
7870 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogGui, 1);
7871 return resultobj;
7872 fail:
7873 return NULL;
7874 }
7875
7876
7877 static PyObject * LogGui_swigregister(PyObject *self, PyObject *args) {
7878 PyObject *obj;
7879 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7880 SWIG_TypeClientData(SWIGTYPE_p_wxLogGui, obj);
7881 Py_INCREF(obj);
7882 return Py_BuildValue((char *)"");
7883 }
7884 static PyObject *_wrap_new_LogWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
7885 PyObject *resultobj;
7886 wxFrame *arg1 = (wxFrame *) 0 ;
7887 wxString *arg2 = 0 ;
7888 bool arg3 = (bool) True ;
7889 bool arg4 = (bool) True ;
7890 wxLogWindow *result;
7891 bool temp2 = False ;
7892 PyObject * obj0 = 0 ;
7893 PyObject * obj1 = 0 ;
7894 PyObject * obj2 = 0 ;
7895 PyObject * obj3 = 0 ;
7896 char *kwnames[] = {
7897 (char *) "pParent",(char *) "szTitle",(char *) "bShow",(char *) "bPassToOld", NULL
7898 };
7899
7900 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_LogWindow",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
7901 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame,
7902 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7903 {
7904 arg2 = wxString_in_helper(obj1);
7905 if (arg2 == NULL) SWIG_fail;
7906 temp2 = True;
7907 }
7908 if (obj2) {
7909 arg3 = (bool) SWIG_AsBool(obj2);
7910 if (PyErr_Occurred()) SWIG_fail;
7911 }
7912 if (obj3) {
7913 arg4 = (bool) SWIG_AsBool(obj3);
7914 if (PyErr_Occurred()) SWIG_fail;
7915 }
7916 {
7917 PyThreadState* __tstate = wxPyBeginAllowThreads();
7918 result = (wxLogWindow *)new wxLogWindow(arg1,(wxString const &)*arg2,arg3,arg4);
7919
7920 wxPyEndAllowThreads(__tstate);
7921 if (PyErr_Occurred()) SWIG_fail;
7922 }
7923 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogWindow, 1);
7924 {
7925 if (temp2)
7926 delete arg2;
7927 }
7928 return resultobj;
7929 fail:
7930 {
7931 if (temp2)
7932 delete arg2;
7933 }
7934 return NULL;
7935 }
7936
7937
7938 static PyObject *_wrap_LogWindow_Show(PyObject *self, PyObject *args, PyObject *kwargs) {
7939 PyObject *resultobj;
7940 wxLogWindow *arg1 = (wxLogWindow *) 0 ;
7941 bool arg2 = (bool) True ;
7942 PyObject * obj0 = 0 ;
7943 PyObject * obj1 = 0 ;
7944 char *kwnames[] = {
7945 (char *) "self",(char *) "bShow", NULL
7946 };
7947
7948 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:LogWindow_Show",kwnames,&obj0,&obj1)) goto fail;
7949 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow,
7950 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7951 if (obj1) {
7952 arg2 = (bool) SWIG_AsBool(obj1);
7953 if (PyErr_Occurred()) SWIG_fail;
7954 }
7955 {
7956 PyThreadState* __tstate = wxPyBeginAllowThreads();
7957 (arg1)->Show(arg2);
7958
7959 wxPyEndAllowThreads(__tstate);
7960 if (PyErr_Occurred()) SWIG_fail;
7961 }
7962 Py_INCREF(Py_None); resultobj = Py_None;
7963 return resultobj;
7964 fail:
7965 return NULL;
7966 }
7967
7968
7969 static PyObject *_wrap_LogWindow_GetFrame(PyObject *self, PyObject *args, PyObject *kwargs) {
7970 PyObject *resultobj;
7971 wxLogWindow *arg1 = (wxLogWindow *) 0 ;
7972 wxFrame *result;
7973 PyObject * obj0 = 0 ;
7974 char *kwnames[] = {
7975 (char *) "self", NULL
7976 };
7977
7978 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_GetFrame",kwnames,&obj0)) goto fail;
7979 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow,
7980 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7981 {
7982 PyThreadState* __tstate = wxPyBeginAllowThreads();
7983 result = (wxFrame *)((wxLogWindow const *)arg1)->GetFrame();
7984
7985 wxPyEndAllowThreads(__tstate);
7986 if (PyErr_Occurred()) SWIG_fail;
7987 }
7988 {
7989 resultobj = wxPyMake_wxObject(result, 0);
7990 }
7991 return resultobj;
7992 fail:
7993 return NULL;
7994 }
7995
7996
7997 static PyObject *_wrap_LogWindow_GetOldLog(PyObject *self, PyObject *args, PyObject *kwargs) {
7998 PyObject *resultobj;
7999 wxLogWindow *arg1 = (wxLogWindow *) 0 ;
8000 wxLog *result;
8001 PyObject * obj0 = 0 ;
8002 char *kwnames[] = {
8003 (char *) "self", NULL
8004 };
8005
8006 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_GetOldLog",kwnames,&obj0)) goto fail;
8007 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow,
8008 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8009 {
8010 PyThreadState* __tstate = wxPyBeginAllowThreads();
8011 result = (wxLog *)((wxLogWindow const *)arg1)->GetOldLog();
8012
8013 wxPyEndAllowThreads(__tstate);
8014 if (PyErr_Occurred()) SWIG_fail;
8015 }
8016 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0);
8017 return resultobj;
8018 fail:
8019 return NULL;
8020 }
8021
8022
8023 static PyObject *_wrap_LogWindow_IsPassingMessages(PyObject *self, PyObject *args, PyObject *kwargs) {
8024 PyObject *resultobj;
8025 wxLogWindow *arg1 = (wxLogWindow *) 0 ;
8026 bool result;
8027 PyObject * obj0 = 0 ;
8028 char *kwnames[] = {
8029 (char *) "self", NULL
8030 };
8031
8032 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_IsPassingMessages",kwnames,&obj0)) goto fail;
8033 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow,
8034 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8035 {
8036 PyThreadState* __tstate = wxPyBeginAllowThreads();
8037 result = (bool)((wxLogWindow const *)arg1)->IsPassingMessages();
8038
8039 wxPyEndAllowThreads(__tstate);
8040 if (PyErr_Occurred()) SWIG_fail;
8041 }
8042 {
8043 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8044 }
8045 return resultobj;
8046 fail:
8047 return NULL;
8048 }
8049
8050
8051 static PyObject *_wrap_LogWindow_PassMessages(PyObject *self, PyObject *args, PyObject *kwargs) {
8052 PyObject *resultobj;
8053 wxLogWindow *arg1 = (wxLogWindow *) 0 ;
8054 bool arg2 ;
8055 PyObject * obj0 = 0 ;
8056 PyObject * obj1 = 0 ;
8057 char *kwnames[] = {
8058 (char *) "self",(char *) "bDoPass", NULL
8059 };
8060
8061 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogWindow_PassMessages",kwnames,&obj0,&obj1)) goto fail;
8062 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow,
8063 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8064 arg2 = (bool) SWIG_AsBool(obj1);
8065 if (PyErr_Occurred()) SWIG_fail;
8066 {
8067 PyThreadState* __tstate = wxPyBeginAllowThreads();
8068 (arg1)->PassMessages(arg2);
8069
8070 wxPyEndAllowThreads(__tstate);
8071 if (PyErr_Occurred()) SWIG_fail;
8072 }
8073 Py_INCREF(Py_None); resultobj = Py_None;
8074 return resultobj;
8075 fail:
8076 return NULL;
8077 }
8078
8079
8080 static PyObject * LogWindow_swigregister(PyObject *self, PyObject *args) {
8081 PyObject *obj;
8082 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8083 SWIG_TypeClientData(SWIGTYPE_p_wxLogWindow, obj);
8084 Py_INCREF(obj);
8085 return Py_BuildValue((char *)"");
8086 }
8087 static PyObject *_wrap_new_LogChain(PyObject *self, PyObject *args, PyObject *kwargs) {
8088 PyObject *resultobj;
8089 wxLog *arg1 = (wxLog *) 0 ;
8090 wxLogChain *result;
8091 PyObject * obj0 = 0 ;
8092 char *kwnames[] = {
8093 (char *) "logger", NULL
8094 };
8095
8096 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_LogChain",kwnames,&obj0)) goto fail;
8097 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog,
8098 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8099 {
8100 PyThreadState* __tstate = wxPyBeginAllowThreads();
8101 result = (wxLogChain *)new wxLogChain(arg1);
8102
8103 wxPyEndAllowThreads(__tstate);
8104 if (PyErr_Occurred()) SWIG_fail;
8105 }
8106 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogChain, 1);
8107 return resultobj;
8108 fail:
8109 return NULL;
8110 }
8111
8112
8113 static PyObject *_wrap_LogChain_SetLog(PyObject *self, PyObject *args, PyObject *kwargs) {
8114 PyObject *resultobj;
8115 wxLogChain *arg1 = (wxLogChain *) 0 ;
8116 wxLog *arg2 = (wxLog *) 0 ;
8117 PyObject * obj0 = 0 ;
8118 PyObject * obj1 = 0 ;
8119 char *kwnames[] = {
8120 (char *) "self",(char *) "logger", NULL
8121 };
8122
8123 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogChain_SetLog",kwnames,&obj0,&obj1)) goto fail;
8124 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain,
8125 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8126 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxLog,
8127 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8128 {
8129 PyThreadState* __tstate = wxPyBeginAllowThreads();
8130 (arg1)->SetLog(arg2);
8131
8132 wxPyEndAllowThreads(__tstate);
8133 if (PyErr_Occurred()) SWIG_fail;
8134 }
8135 Py_INCREF(Py_None); resultobj = Py_None;
8136 return resultobj;
8137 fail:
8138 return NULL;
8139 }
8140
8141
8142 static PyObject *_wrap_LogChain_PassMessages(PyObject *self, PyObject *args, PyObject *kwargs) {
8143 PyObject *resultobj;
8144 wxLogChain *arg1 = (wxLogChain *) 0 ;
8145 bool arg2 ;
8146 PyObject * obj0 = 0 ;
8147 PyObject * obj1 = 0 ;
8148 char *kwnames[] = {
8149 (char *) "self",(char *) "bDoPass", NULL
8150 };
8151
8152 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogChain_PassMessages",kwnames,&obj0,&obj1)) goto fail;
8153 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain,
8154 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8155 arg2 = (bool) SWIG_AsBool(obj1);
8156 if (PyErr_Occurred()) SWIG_fail;
8157 {
8158 PyThreadState* __tstate = wxPyBeginAllowThreads();
8159 (arg1)->PassMessages(arg2);
8160
8161 wxPyEndAllowThreads(__tstate);
8162 if (PyErr_Occurred()) SWIG_fail;
8163 }
8164 Py_INCREF(Py_None); resultobj = Py_None;
8165 return resultobj;
8166 fail:
8167 return NULL;
8168 }
8169
8170
8171 static PyObject *_wrap_LogChain_IsPassingMessages(PyObject *self, PyObject *args, PyObject *kwargs) {
8172 PyObject *resultobj;
8173 wxLogChain *arg1 = (wxLogChain *) 0 ;
8174 bool result;
8175 PyObject * obj0 = 0 ;
8176 char *kwnames[] = {
8177 (char *) "self", NULL
8178 };
8179
8180 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogChain_IsPassingMessages",kwnames,&obj0)) goto fail;
8181 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain,
8182 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8183 {
8184 PyThreadState* __tstate = wxPyBeginAllowThreads();
8185 result = (bool)(arg1)->IsPassingMessages();
8186
8187 wxPyEndAllowThreads(__tstate);
8188 if (PyErr_Occurred()) SWIG_fail;
8189 }
8190 {
8191 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8192 }
8193 return resultobj;
8194 fail:
8195 return NULL;
8196 }
8197
8198
8199 static PyObject *_wrap_LogChain_GetOldLog(PyObject *self, PyObject *args, PyObject *kwargs) {
8200 PyObject *resultobj;
8201 wxLogChain *arg1 = (wxLogChain *) 0 ;
8202 wxLog *result;
8203 PyObject * obj0 = 0 ;
8204 char *kwnames[] = {
8205 (char *) "self", NULL
8206 };
8207
8208 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogChain_GetOldLog",kwnames,&obj0)) goto fail;
8209 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain,
8210 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8211 {
8212 PyThreadState* __tstate = wxPyBeginAllowThreads();
8213 result = (wxLog *)(arg1)->GetOldLog();
8214
8215 wxPyEndAllowThreads(__tstate);
8216 if (PyErr_Occurred()) SWIG_fail;
8217 }
8218 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0);
8219 return resultobj;
8220 fail:
8221 return NULL;
8222 }
8223
8224
8225 static PyObject * LogChain_swigregister(PyObject *self, PyObject *args) {
8226 PyObject *obj;
8227 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8228 SWIG_TypeClientData(SWIGTYPE_p_wxLogChain, obj);
8229 Py_INCREF(obj);
8230 return Py_BuildValue((char *)"");
8231 }
8232 static PyObject *_wrap_SysErrorCode(PyObject *self, PyObject *args, PyObject *kwargs) {
8233 PyObject *resultobj;
8234 unsigned long result;
8235 char *kwnames[] = {
8236 NULL
8237 };
8238
8239 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":SysErrorCode",kwnames)) goto fail;
8240 {
8241 PyThreadState* __tstate = wxPyBeginAllowThreads();
8242 result = (unsigned long)wxSysErrorCode();
8243
8244 wxPyEndAllowThreads(__tstate);
8245 if (PyErr_Occurred()) SWIG_fail;
8246 }
8247 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
8248 return resultobj;
8249 fail:
8250 return NULL;
8251 }
8252
8253
8254 static PyObject *_wrap_SysErrorMsg(PyObject *self, PyObject *args, PyObject *kwargs) {
8255 PyObject *resultobj;
8256 unsigned long arg1 = (unsigned long) 0 ;
8257 wxString result;
8258 PyObject * obj0 = 0 ;
8259 char *kwnames[] = {
8260 (char *) "nErrCode", NULL
8261 };
8262
8263 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SysErrorMsg",kwnames,&obj0)) goto fail;
8264 if (obj0) {
8265 arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0);
8266 if (PyErr_Occurred()) SWIG_fail;
8267 }
8268 {
8269 PyThreadState* __tstate = wxPyBeginAllowThreads();
8270 result = wxSysErrorMsg(arg1);
8271
8272 wxPyEndAllowThreads(__tstate);
8273 if (PyErr_Occurred()) SWIG_fail;
8274 }
8275 {
8276 #if wxUSE_UNICODE
8277 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8278 #else
8279 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8280 #endif
8281 }
8282 return resultobj;
8283 fail:
8284 return NULL;
8285 }
8286
8287
8288 static PyObject *_wrap_LogFatalError(PyObject *self, PyObject *args, PyObject *kwargs) {
8289 PyObject *resultobj;
8290 wxString *arg1 = 0 ;
8291 bool temp1 = False ;
8292 PyObject * obj0 = 0 ;
8293 char *kwnames[] = {
8294 (char *) "msg", NULL
8295 };
8296
8297 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogFatalError",kwnames,&obj0)) goto fail;
8298 {
8299 arg1 = wxString_in_helper(obj0);
8300 if (arg1 == NULL) SWIG_fail;
8301 temp1 = True;
8302 }
8303 {
8304 PyThreadState* __tstate = wxPyBeginAllowThreads();
8305 wxLogFatalError((wxString const &)*arg1);
8306
8307 wxPyEndAllowThreads(__tstate);
8308 if (PyErr_Occurred()) SWIG_fail;
8309 }
8310 Py_INCREF(Py_None); resultobj = Py_None;
8311 {
8312 if (temp1)
8313 delete arg1;
8314 }
8315 return resultobj;
8316 fail:
8317 {
8318 if (temp1)
8319 delete arg1;
8320 }
8321 return NULL;
8322 }
8323
8324
8325 static PyObject *_wrap_LogError(PyObject *self, PyObject *args, PyObject *kwargs) {
8326 PyObject *resultobj;
8327 wxString *arg1 = 0 ;
8328 bool temp1 = False ;
8329 PyObject * obj0 = 0 ;
8330 char *kwnames[] = {
8331 (char *) "msg", NULL
8332 };
8333
8334 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogError",kwnames,&obj0)) goto fail;
8335 {
8336 arg1 = wxString_in_helper(obj0);
8337 if (arg1 == NULL) SWIG_fail;
8338 temp1 = True;
8339 }
8340 {
8341 PyThreadState* __tstate = wxPyBeginAllowThreads();
8342 wxLogError((wxString const &)*arg1);
8343
8344 wxPyEndAllowThreads(__tstate);
8345 if (PyErr_Occurred()) SWIG_fail;
8346 }
8347 Py_INCREF(Py_None); resultobj = Py_None;
8348 {
8349 if (temp1)
8350 delete arg1;
8351 }
8352 return resultobj;
8353 fail:
8354 {
8355 if (temp1)
8356 delete arg1;
8357 }
8358 return NULL;
8359 }
8360
8361
8362 static PyObject *_wrap_LogWarning(PyObject *self, PyObject *args, PyObject *kwargs) {
8363 PyObject *resultobj;
8364 wxString *arg1 = 0 ;
8365 bool temp1 = False ;
8366 PyObject * obj0 = 0 ;
8367 char *kwnames[] = {
8368 (char *) "msg", NULL
8369 };
8370
8371 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWarning",kwnames,&obj0)) goto fail;
8372 {
8373 arg1 = wxString_in_helper(obj0);
8374 if (arg1 == NULL) SWIG_fail;
8375 temp1 = True;
8376 }
8377 {
8378 PyThreadState* __tstate = wxPyBeginAllowThreads();
8379 wxLogWarning((wxString const &)*arg1);
8380
8381 wxPyEndAllowThreads(__tstate);
8382 if (PyErr_Occurred()) SWIG_fail;
8383 }
8384 Py_INCREF(Py_None); resultobj = Py_None;
8385 {
8386 if (temp1)
8387 delete arg1;
8388 }
8389 return resultobj;
8390 fail:
8391 {
8392 if (temp1)
8393 delete arg1;
8394 }
8395 return NULL;
8396 }
8397
8398
8399 static PyObject *_wrap_LogMessage(PyObject *self, PyObject *args, PyObject *kwargs) {
8400 PyObject *resultobj;
8401 wxString *arg1 = 0 ;
8402 bool temp1 = False ;
8403 PyObject * obj0 = 0 ;
8404 char *kwnames[] = {
8405 (char *) "msg", NULL
8406 };
8407
8408 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogMessage",kwnames,&obj0)) goto fail;
8409 {
8410 arg1 = wxString_in_helper(obj0);
8411 if (arg1 == NULL) SWIG_fail;
8412 temp1 = True;
8413 }
8414 {
8415 PyThreadState* __tstate = wxPyBeginAllowThreads();
8416 wxLogMessage((wxString const &)*arg1);
8417
8418 wxPyEndAllowThreads(__tstate);
8419 if (PyErr_Occurred()) SWIG_fail;
8420 }
8421 Py_INCREF(Py_None); resultobj = Py_None;
8422 {
8423 if (temp1)
8424 delete arg1;
8425 }
8426 return resultobj;
8427 fail:
8428 {
8429 if (temp1)
8430 delete arg1;
8431 }
8432 return NULL;
8433 }
8434
8435
8436 static PyObject *_wrap_LogInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8437 PyObject *resultobj;
8438 wxString *arg1 = 0 ;
8439 bool temp1 = False ;
8440 PyObject * obj0 = 0 ;
8441 char *kwnames[] = {
8442 (char *) "msg", NULL
8443 };
8444
8445 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogInfo",kwnames,&obj0)) goto fail;
8446 {
8447 arg1 = wxString_in_helper(obj0);
8448 if (arg1 == NULL) SWIG_fail;
8449 temp1 = True;
8450 }
8451 {
8452 PyThreadState* __tstate = wxPyBeginAllowThreads();
8453 wxLogInfo((wxString const &)*arg1);
8454
8455 wxPyEndAllowThreads(__tstate);
8456 if (PyErr_Occurred()) SWIG_fail;
8457 }
8458 Py_INCREF(Py_None); resultobj = Py_None;
8459 {
8460 if (temp1)
8461 delete arg1;
8462 }
8463 return resultobj;
8464 fail:
8465 {
8466 if (temp1)
8467 delete arg1;
8468 }
8469 return NULL;
8470 }
8471
8472
8473 static PyObject *_wrap_LogDebug(PyObject *self, PyObject *args, PyObject *kwargs) {
8474 PyObject *resultobj;
8475 wxString *arg1 = 0 ;
8476 bool temp1 = False ;
8477 PyObject * obj0 = 0 ;
8478 char *kwnames[] = {
8479 (char *) "msg", NULL
8480 };
8481
8482 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogDebug",kwnames,&obj0)) goto fail;
8483 {
8484 arg1 = wxString_in_helper(obj0);
8485 if (arg1 == NULL) SWIG_fail;
8486 temp1 = True;
8487 }
8488 {
8489 PyThreadState* __tstate = wxPyBeginAllowThreads();
8490 wxLogDebug((wxString const &)*arg1);
8491
8492 wxPyEndAllowThreads(__tstate);
8493 if (PyErr_Occurred()) SWIG_fail;
8494 }
8495 Py_INCREF(Py_None); resultobj = Py_None;
8496 {
8497 if (temp1)
8498 delete arg1;
8499 }
8500 return resultobj;
8501 fail:
8502 {
8503 if (temp1)
8504 delete arg1;
8505 }
8506 return NULL;
8507 }
8508
8509
8510 static PyObject *_wrap_LogVerbose(PyObject *self, PyObject *args, PyObject *kwargs) {
8511 PyObject *resultobj;
8512 wxString *arg1 = 0 ;
8513 bool temp1 = False ;
8514 PyObject * obj0 = 0 ;
8515 char *kwnames[] = {
8516 (char *) "msg", NULL
8517 };
8518
8519 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogVerbose",kwnames,&obj0)) goto fail;
8520 {
8521 arg1 = wxString_in_helper(obj0);
8522 if (arg1 == NULL) SWIG_fail;
8523 temp1 = True;
8524 }
8525 {
8526 PyThreadState* __tstate = wxPyBeginAllowThreads();
8527 wxLogVerbose((wxString const &)*arg1);
8528
8529 wxPyEndAllowThreads(__tstate);
8530 if (PyErr_Occurred()) SWIG_fail;
8531 }
8532 Py_INCREF(Py_None); resultobj = Py_None;
8533 {
8534 if (temp1)
8535 delete arg1;
8536 }
8537 return resultobj;
8538 fail:
8539 {
8540 if (temp1)
8541 delete arg1;
8542 }
8543 return NULL;
8544 }
8545
8546
8547 static PyObject *_wrap_LogStatus(PyObject *self, PyObject *args, PyObject *kwargs) {
8548 PyObject *resultobj;
8549 wxString *arg1 = 0 ;
8550 bool temp1 = False ;
8551 PyObject * obj0 = 0 ;
8552 char *kwnames[] = {
8553 (char *) "msg", NULL
8554 };
8555
8556 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogStatus",kwnames,&obj0)) goto fail;
8557 {
8558 arg1 = wxString_in_helper(obj0);
8559 if (arg1 == NULL) SWIG_fail;
8560 temp1 = True;
8561 }
8562 {
8563 PyThreadState* __tstate = wxPyBeginAllowThreads();
8564 wxLogStatus((wxString const &)*arg1);
8565
8566 wxPyEndAllowThreads(__tstate);
8567 if (PyErr_Occurred()) SWIG_fail;
8568 }
8569 Py_INCREF(Py_None); resultobj = Py_None;
8570 {
8571 if (temp1)
8572 delete arg1;
8573 }
8574 return resultobj;
8575 fail:
8576 {
8577 if (temp1)
8578 delete arg1;
8579 }
8580 return NULL;
8581 }
8582
8583
8584 static PyObject *_wrap_LogStatusFrame(PyObject *self, PyObject *args, PyObject *kwargs) {
8585 PyObject *resultobj;
8586 wxFrame *arg1 = (wxFrame *) 0 ;
8587 wxString *arg2 = 0 ;
8588 bool temp2 = False ;
8589 PyObject * obj0 = 0 ;
8590 PyObject * obj1 = 0 ;
8591 char *kwnames[] = {
8592 (char *) "pFrame",(char *) "msg", NULL
8593 };
8594
8595 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogStatusFrame",kwnames,&obj0,&obj1)) goto fail;
8596 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame,
8597 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8598 {
8599 arg2 = wxString_in_helper(obj1);
8600 if (arg2 == NULL) SWIG_fail;
8601 temp2 = True;
8602 }
8603 {
8604 PyThreadState* __tstate = wxPyBeginAllowThreads();
8605 wxLogStatus(arg1,(wxString const &)*arg2);
8606
8607 wxPyEndAllowThreads(__tstate);
8608 if (PyErr_Occurred()) SWIG_fail;
8609 }
8610 Py_INCREF(Py_None); resultobj = Py_None;
8611 {
8612 if (temp2)
8613 delete arg2;
8614 }
8615 return resultobj;
8616 fail:
8617 {
8618 if (temp2)
8619 delete arg2;
8620 }
8621 return NULL;
8622 }
8623
8624
8625 static PyObject *_wrap_LogSysError(PyObject *self, PyObject *args, PyObject *kwargs) {
8626 PyObject *resultobj;
8627 wxString *arg1 = 0 ;
8628 bool temp1 = False ;
8629 PyObject * obj0 = 0 ;
8630 char *kwnames[] = {
8631 (char *) "msg", NULL
8632 };
8633
8634 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogSysError",kwnames,&obj0)) goto fail;
8635 {
8636 arg1 = wxString_in_helper(obj0);
8637 if (arg1 == NULL) SWIG_fail;
8638 temp1 = True;
8639 }
8640 {
8641 PyThreadState* __tstate = wxPyBeginAllowThreads();
8642 wxLogSysError((wxString const &)*arg1);
8643
8644 wxPyEndAllowThreads(__tstate);
8645 if (PyErr_Occurred()) SWIG_fail;
8646 }
8647 Py_INCREF(Py_None); resultobj = Py_None;
8648 {
8649 if (temp1)
8650 delete arg1;
8651 }
8652 return resultobj;
8653 fail:
8654 {
8655 if (temp1)
8656 delete arg1;
8657 }
8658 return NULL;
8659 }
8660
8661
8662 static PyObject *_wrap_LogTrace__SWIG_0(PyObject *self, PyObject *args) {
8663 PyObject *resultobj;
8664 unsigned long arg1 ;
8665 wxString *arg2 = 0 ;
8666 bool temp2 = False ;
8667 PyObject * obj0 = 0 ;
8668 PyObject * obj1 = 0 ;
8669
8670 if(!PyArg_ParseTuple(args,(char *)"OO:LogTrace",&obj0,&obj1)) goto fail;
8671 arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0);
8672 if (PyErr_Occurred()) SWIG_fail;
8673 {
8674 arg2 = wxString_in_helper(obj1);
8675 if (arg2 == NULL) SWIG_fail;
8676 temp2 = True;
8677 }
8678 {
8679 PyThreadState* __tstate = wxPyBeginAllowThreads();
8680 wxLogTrace(arg1,(wxString const &)*arg2);
8681
8682 wxPyEndAllowThreads(__tstate);
8683 if (PyErr_Occurred()) SWIG_fail;
8684 }
8685 Py_INCREF(Py_None); resultobj = Py_None;
8686 {
8687 if (temp2)
8688 delete arg2;
8689 }
8690 return resultobj;
8691 fail:
8692 {
8693 if (temp2)
8694 delete arg2;
8695 }
8696 return NULL;
8697 }
8698
8699
8700 static PyObject *_wrap_LogTrace__SWIG_1(PyObject *self, PyObject *args) {
8701 PyObject *resultobj;
8702 wxString *arg1 = 0 ;
8703 wxString *arg2 = 0 ;
8704 bool temp1 = False ;
8705 bool temp2 = False ;
8706 PyObject * obj0 = 0 ;
8707 PyObject * obj1 = 0 ;
8708
8709 if(!PyArg_ParseTuple(args,(char *)"OO:LogTrace",&obj0,&obj1)) goto fail;
8710 {
8711 arg1 = wxString_in_helper(obj0);
8712 if (arg1 == NULL) SWIG_fail;
8713 temp1 = True;
8714 }
8715 {
8716 arg2 = wxString_in_helper(obj1);
8717 if (arg2 == NULL) SWIG_fail;
8718 temp2 = True;
8719 }
8720 {
8721 PyThreadState* __tstate = wxPyBeginAllowThreads();
8722 wxLogTrace((wxString const &)*arg1,(wxString const &)*arg2);
8723
8724 wxPyEndAllowThreads(__tstate);
8725 if (PyErr_Occurred()) SWIG_fail;
8726 }
8727 Py_INCREF(Py_None); resultobj = Py_None;
8728 {
8729 if (temp1)
8730 delete arg1;
8731 }
8732 {
8733 if (temp2)
8734 delete arg2;
8735 }
8736 return resultobj;
8737 fail:
8738 {
8739 if (temp1)
8740 delete arg1;
8741 }
8742 {
8743 if (temp2)
8744 delete arg2;
8745 }
8746 return NULL;
8747 }
8748
8749
8750 static PyObject *_wrap_LogTrace(PyObject *self, PyObject *args) {
8751 int argc;
8752 PyObject *argv[3];
8753 int ii;
8754
8755 argc = PyObject_Length(args);
8756 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
8757 argv[ii] = PyTuple_GetItem(args,ii);
8758 }
8759 if (argc == 2) {
8760 int _v;
8761 {
8762 _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]);
8763 }
8764 if (_v) {
8765 {
8766 _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]);
8767 }
8768 if (_v) {
8769 return _wrap_LogTrace__SWIG_1(self,args);
8770 }
8771 }
8772 }
8773 if (argc == 2) {
8774 int _v;
8775 _v = SWIG_CheckUnsignedLong(argv[0]);
8776 if (_v) {
8777 {
8778 _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]);
8779 }
8780 if (_v) {
8781 return _wrap_LogTrace__SWIG_0(self,args);
8782 }
8783 }
8784 }
8785
8786 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'LogTrace'");
8787 return NULL;
8788 }
8789
8790
8791 static PyObject *_wrap_LogGeneric(PyObject *self, PyObject *args, PyObject *kwargs) {
8792 PyObject *resultobj;
8793 unsigned long arg1 ;
8794 wxString *arg2 = 0 ;
8795 bool temp2 = False ;
8796 PyObject * obj0 = 0 ;
8797 PyObject * obj1 = 0 ;
8798 char *kwnames[] = {
8799 (char *) "level",(char *) "msg", NULL
8800 };
8801
8802 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogGeneric",kwnames,&obj0,&obj1)) goto fail;
8803 arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0);
8804 if (PyErr_Occurred()) SWIG_fail;
8805 {
8806 arg2 = wxString_in_helper(obj1);
8807 if (arg2 == NULL) SWIG_fail;
8808 temp2 = True;
8809 }
8810 {
8811 PyThreadState* __tstate = wxPyBeginAllowThreads();
8812 wxLogGeneric(arg1,(wxString const &)*arg2);
8813
8814 wxPyEndAllowThreads(__tstate);
8815 if (PyErr_Occurred()) SWIG_fail;
8816 }
8817 Py_INCREF(Py_None); resultobj = Py_None;
8818 {
8819 if (temp2)
8820 delete arg2;
8821 }
8822 return resultobj;
8823 fail:
8824 {
8825 if (temp2)
8826 delete arg2;
8827 }
8828 return NULL;
8829 }
8830
8831
8832 static PyObject *_wrap_SafeShowMessage(PyObject *self, PyObject *args, PyObject *kwargs) {
8833 PyObject *resultobj;
8834 wxString *arg1 = 0 ;
8835 wxString *arg2 = 0 ;
8836 bool temp1 = False ;
8837 bool temp2 = False ;
8838 PyObject * obj0 = 0 ;
8839 PyObject * obj1 = 0 ;
8840 char *kwnames[] = {
8841 (char *) "title",(char *) "text", NULL
8842 };
8843
8844 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SafeShowMessage",kwnames,&obj0,&obj1)) goto fail;
8845 {
8846 arg1 = wxString_in_helper(obj0);
8847 if (arg1 == NULL) SWIG_fail;
8848 temp1 = True;
8849 }
8850 {
8851 arg2 = wxString_in_helper(obj1);
8852 if (arg2 == NULL) SWIG_fail;
8853 temp2 = True;
8854 }
8855 {
8856 PyThreadState* __tstate = wxPyBeginAllowThreads();
8857 wxSafeShowMessage((wxString const &)*arg1,(wxString const &)*arg2);
8858
8859 wxPyEndAllowThreads(__tstate);
8860 if (PyErr_Occurred()) SWIG_fail;
8861 }
8862 Py_INCREF(Py_None); resultobj = Py_None;
8863 {
8864 if (temp1)
8865 delete arg1;
8866 }
8867 {
8868 if (temp2)
8869 delete arg2;
8870 }
8871 return resultobj;
8872 fail:
8873 {
8874 if (temp1)
8875 delete arg1;
8876 }
8877 {
8878 if (temp2)
8879 delete arg2;
8880 }
8881 return NULL;
8882 }
8883
8884
8885 static PyObject *_wrap_new_LogNull(PyObject *self, PyObject *args, PyObject *kwargs) {
8886 PyObject *resultobj;
8887 wxLogNull *result;
8888 char *kwnames[] = {
8889 NULL
8890 };
8891
8892 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogNull",kwnames)) goto fail;
8893 {
8894 PyThreadState* __tstate = wxPyBeginAllowThreads();
8895 result = (wxLogNull *)new wxLogNull();
8896
8897 wxPyEndAllowThreads(__tstate);
8898 if (PyErr_Occurred()) SWIG_fail;
8899 }
8900 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogNull, 1);
8901 return resultobj;
8902 fail:
8903 return NULL;
8904 }
8905
8906
8907 static PyObject *_wrap_delete_LogNull(PyObject *self, PyObject *args, PyObject *kwargs) {
8908 PyObject *resultobj;
8909 wxLogNull *arg1 = (wxLogNull *) 0 ;
8910 PyObject * obj0 = 0 ;
8911 char *kwnames[] = {
8912 (char *) "self", NULL
8913 };
8914
8915 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_LogNull",kwnames,&obj0)) goto fail;
8916 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogNull,
8917 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8918 {
8919 PyThreadState* __tstate = wxPyBeginAllowThreads();
8920 delete arg1;
8921
8922 wxPyEndAllowThreads(__tstate);
8923 if (PyErr_Occurred()) SWIG_fail;
8924 }
8925 Py_INCREF(Py_None); resultobj = Py_None;
8926 return resultobj;
8927 fail:
8928 return NULL;
8929 }
8930
8931
8932 static PyObject * LogNull_swigregister(PyObject *self, PyObject *args) {
8933 PyObject *obj;
8934 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8935 SWIG_TypeClientData(SWIGTYPE_p_wxLogNull, obj);
8936 Py_INCREF(obj);
8937 return Py_BuildValue((char *)"");
8938 }
8939 static PyObject *_wrap_new_PyLog(PyObject *self, PyObject *args, PyObject *kwargs) {
8940 PyObject *resultobj;
8941 wxPyLog *result;
8942 char *kwnames[] = {
8943 NULL
8944 };
8945
8946 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyLog",kwnames)) goto fail;
8947 {
8948 PyThreadState* __tstate = wxPyBeginAllowThreads();
8949 result = (wxPyLog *)new wxPyLog();
8950
8951 wxPyEndAllowThreads(__tstate);
8952 if (PyErr_Occurred()) SWIG_fail;
8953 }
8954 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyLog, 1);
8955 return resultobj;
8956 fail:
8957 return NULL;
8958 }
8959
8960
8961 static PyObject *_wrap_PyLog__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8962 PyObject *resultobj;
8963 wxPyLog *arg1 = (wxPyLog *) 0 ;
8964 PyObject *arg2 = (PyObject *) 0 ;
8965 PyObject *arg3 = (PyObject *) 0 ;
8966 PyObject * obj0 = 0 ;
8967 PyObject * obj1 = 0 ;
8968 PyObject * obj2 = 0 ;
8969 char *kwnames[] = {
8970 (char *) "self",(char *) "self",(char *) "_class", NULL
8971 };
8972
8973 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLog__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
8974 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLog,
8975 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8976 arg2 = obj1;
8977 arg3 = obj2;
8978 {
8979 PyThreadState* __tstate = wxPyBeginAllowThreads();
8980 (arg1)->_setCallbackInfo(arg2,arg3);
8981
8982 wxPyEndAllowThreads(__tstate);
8983 if (PyErr_Occurred()) SWIG_fail;
8984 }
8985 Py_INCREF(Py_None); resultobj = Py_None;
8986 return resultobj;
8987 fail:
8988 return NULL;
8989 }
8990
8991
8992 static PyObject * PyLog_swigregister(PyObject *self, PyObject *args) {
8993 PyObject *obj;
8994 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8995 SWIG_TypeClientData(SWIGTYPE_p_wxPyLog, obj);
8996 Py_INCREF(obj);
8997 return Py_BuildValue((char *)"");
8998 }
8999 static PyObject *_wrap_Process_Kill(PyObject *self, PyObject *args, PyObject *kwargs) {
9000 PyObject *resultobj;
9001 int arg1 ;
9002 int arg2 = (int) wxSIGTERM ;
9003 int result;
9004 PyObject * obj0 = 0 ;
9005 PyObject * obj1 = 0 ;
9006 char *kwnames[] = {
9007 (char *) "pid",(char *) "sig", NULL
9008 };
9009
9010 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Process_Kill",kwnames,&obj0,&obj1)) goto fail;
9011 arg1 = (int) SWIG_AsInt(obj0);
9012 if (PyErr_Occurred()) SWIG_fail;
9013 if (obj1) {
9014 arg2 = (wxSignal) SWIG_AsInt(obj1);
9015 if (PyErr_Occurred()) SWIG_fail;
9016 }
9017 {
9018 PyThreadState* __tstate = wxPyBeginAllowThreads();
9019 result = (int)wxPyProcess::Kill(arg1,(wxSignal )arg2);
9020
9021 wxPyEndAllowThreads(__tstate);
9022 if (PyErr_Occurred()) SWIG_fail;
9023 }
9024 resultobj = SWIG_FromInt((int)result);
9025 return resultobj;
9026 fail:
9027 return NULL;
9028 }
9029
9030
9031 static PyObject *_wrap_Process_Exists(PyObject *self, PyObject *args, PyObject *kwargs) {
9032 PyObject *resultobj;
9033 int arg1 ;
9034 bool result;
9035 PyObject * obj0 = 0 ;
9036 char *kwnames[] = {
9037 (char *) "pid", NULL
9038 };
9039
9040 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Exists",kwnames,&obj0)) goto fail;
9041 arg1 = (int) SWIG_AsInt(obj0);
9042 if (PyErr_Occurred()) SWIG_fail;
9043 {
9044 PyThreadState* __tstate = wxPyBeginAllowThreads();
9045 result = (bool)wxPyProcess::Exists(arg1);
9046
9047 wxPyEndAllowThreads(__tstate);
9048 if (PyErr_Occurred()) SWIG_fail;
9049 }
9050 {
9051 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9052 }
9053 return resultobj;
9054 fail:
9055 return NULL;
9056 }
9057
9058
9059 static PyObject *_wrap_Process_Open(PyObject *self, PyObject *args, PyObject *kwargs) {
9060 PyObject *resultobj;
9061 wxString *arg1 = 0 ;
9062 int arg2 = (int) wxEXEC_ASYNC ;
9063 wxPyProcess *result;
9064 bool temp1 = False ;
9065 PyObject * obj0 = 0 ;
9066 PyObject * obj1 = 0 ;
9067 char *kwnames[] = {
9068 (char *) "cmd",(char *) "flags", NULL
9069 };
9070
9071 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Process_Open",kwnames,&obj0,&obj1)) goto fail;
9072 {
9073 arg1 = wxString_in_helper(obj0);
9074 if (arg1 == NULL) SWIG_fail;
9075 temp1 = True;
9076 }
9077 if (obj1) {
9078 arg2 = (int) SWIG_AsInt(obj1);
9079 if (PyErr_Occurred()) SWIG_fail;
9080 }
9081 {
9082 PyThreadState* __tstate = wxPyBeginAllowThreads();
9083 result = (wxPyProcess *)wxPyProcess::Open((wxString const &)*arg1,arg2);
9084
9085 wxPyEndAllowThreads(__tstate);
9086 if (PyErr_Occurred()) SWIG_fail;
9087 }
9088 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyProcess, 0);
9089 {
9090 if (temp1)
9091 delete arg1;
9092 }
9093 return resultobj;
9094 fail:
9095 {
9096 if (temp1)
9097 delete arg1;
9098 }
9099 return NULL;
9100 }
9101
9102
9103 static PyObject *_wrap_new_Process(PyObject *self, PyObject *args, PyObject *kwargs) {
9104 PyObject *resultobj;
9105 wxEvtHandler *arg1 = (wxEvtHandler *) NULL ;
9106 int arg2 = (int) -1 ;
9107 wxPyProcess *result;
9108 PyObject * obj0 = 0 ;
9109 PyObject * obj1 = 0 ;
9110 char *kwnames[] = {
9111 (char *) "parent",(char *) "id", NULL
9112 };
9113
9114 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Process",kwnames,&obj0,&obj1)) goto fail;
9115 if (obj0) {
9116 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler,
9117 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9118 }
9119 if (obj1) {
9120 arg2 = (int) SWIG_AsInt(obj1);
9121 if (PyErr_Occurred()) SWIG_fail;
9122 }
9123 {
9124 PyThreadState* __tstate = wxPyBeginAllowThreads();
9125 result = (wxPyProcess *)new wxPyProcess(arg1,arg2);
9126
9127 wxPyEndAllowThreads(__tstate);
9128 if (PyErr_Occurred()) SWIG_fail;
9129 }
9130 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyProcess, 1);
9131 return resultobj;
9132 fail:
9133 return NULL;
9134 }
9135
9136
9137 static PyObject *_wrap_Process__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
9138 PyObject *resultobj;
9139 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9140 PyObject *arg2 = (PyObject *) 0 ;
9141 PyObject *arg3 = (PyObject *) 0 ;
9142 PyObject * obj0 = 0 ;
9143 PyObject * obj1 = 0 ;
9144 PyObject * obj2 = 0 ;
9145 char *kwnames[] = {
9146 (char *) "self",(char *) "self",(char *) "_class", NULL
9147 };
9148
9149 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Process__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
9150 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9151 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9152 arg2 = obj1;
9153 arg3 = obj2;
9154 {
9155 PyThreadState* __tstate = wxPyBeginAllowThreads();
9156 (arg1)->_setCallbackInfo(arg2,arg3);
9157
9158 wxPyEndAllowThreads(__tstate);
9159 if (PyErr_Occurred()) SWIG_fail;
9160 }
9161 Py_INCREF(Py_None); resultobj = Py_None;
9162 return resultobj;
9163 fail:
9164 return NULL;
9165 }
9166
9167
9168 static PyObject *_wrap_Process_base_OnTerminate(PyObject *self, PyObject *args, PyObject *kwargs) {
9169 PyObject *resultobj;
9170 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9171 int arg2 ;
9172 int arg3 ;
9173 PyObject * obj0 = 0 ;
9174 PyObject * obj1 = 0 ;
9175 PyObject * obj2 = 0 ;
9176 char *kwnames[] = {
9177 (char *) "self",(char *) "pid",(char *) "status", NULL
9178 };
9179
9180 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Process_base_OnTerminate",kwnames,&obj0,&obj1,&obj2)) goto fail;
9181 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9182 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9183 arg2 = (int) SWIG_AsInt(obj1);
9184 if (PyErr_Occurred()) SWIG_fail;
9185 arg3 = (int) SWIG_AsInt(obj2);
9186 if (PyErr_Occurred()) SWIG_fail;
9187 {
9188 PyThreadState* __tstate = wxPyBeginAllowThreads();
9189 (arg1)->base_OnTerminate(arg2,arg3);
9190
9191 wxPyEndAllowThreads(__tstate);
9192 if (PyErr_Occurred()) SWIG_fail;
9193 }
9194 Py_INCREF(Py_None); resultobj = Py_None;
9195 return resultobj;
9196 fail:
9197 return NULL;
9198 }
9199
9200
9201 static PyObject *_wrap_Process_Redirect(PyObject *self, PyObject *args, PyObject *kwargs) {
9202 PyObject *resultobj;
9203 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9204 PyObject * obj0 = 0 ;
9205 char *kwnames[] = {
9206 (char *) "self", NULL
9207 };
9208
9209 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Redirect",kwnames,&obj0)) goto fail;
9210 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9211 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9212 {
9213 PyThreadState* __tstate = wxPyBeginAllowThreads();
9214 (arg1)->Redirect();
9215
9216 wxPyEndAllowThreads(__tstate);
9217 if (PyErr_Occurred()) SWIG_fail;
9218 }
9219 Py_INCREF(Py_None); resultobj = Py_None;
9220 return resultobj;
9221 fail:
9222 return NULL;
9223 }
9224
9225
9226 static PyObject *_wrap_Process_IsRedirected(PyObject *self, PyObject *args, PyObject *kwargs) {
9227 PyObject *resultobj;
9228 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9229 bool result;
9230 PyObject * obj0 = 0 ;
9231 char *kwnames[] = {
9232 (char *) "self", NULL
9233 };
9234
9235 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsRedirected",kwnames,&obj0)) goto fail;
9236 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9237 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9238 {
9239 PyThreadState* __tstate = wxPyBeginAllowThreads();
9240 result = (bool)(arg1)->IsRedirected();
9241
9242 wxPyEndAllowThreads(__tstate);
9243 if (PyErr_Occurred()) SWIG_fail;
9244 }
9245 {
9246 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9247 }
9248 return resultobj;
9249 fail:
9250 return NULL;
9251 }
9252
9253
9254 static PyObject *_wrap_Process_Detach(PyObject *self, PyObject *args, PyObject *kwargs) {
9255 PyObject *resultobj;
9256 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9257 PyObject * obj0 = 0 ;
9258 char *kwnames[] = {
9259 (char *) "self", NULL
9260 };
9261
9262 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Detach",kwnames,&obj0)) goto fail;
9263 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9264 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9265 {
9266 PyThreadState* __tstate = wxPyBeginAllowThreads();
9267 (arg1)->Detach();
9268
9269 wxPyEndAllowThreads(__tstate);
9270 if (PyErr_Occurred()) SWIG_fail;
9271 }
9272 Py_INCREF(Py_None); resultobj = Py_None;
9273 return resultobj;
9274 fail:
9275 return NULL;
9276 }
9277
9278
9279 static PyObject *_wrap_Process_GetInputStream(PyObject *self, PyObject *args, PyObject *kwargs) {
9280 PyObject *resultobj;
9281 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9282 wxInputStream *result;
9283 PyObject * obj0 = 0 ;
9284 char *kwnames[] = {
9285 (char *) "self", NULL
9286 };
9287
9288 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetInputStream",kwnames,&obj0)) goto fail;
9289 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9290 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9291 {
9292 PyThreadState* __tstate = wxPyBeginAllowThreads();
9293 result = (wxInputStream *)(arg1)->GetInputStream();
9294
9295 wxPyEndAllowThreads(__tstate);
9296 if (PyErr_Occurred()) SWIG_fail;
9297 }
9298 {
9299 wxPyInputStream * _ptr = NULL;
9300
9301 if (result) {
9302 _ptr = new wxPyInputStream(result);
9303 }
9304 resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), True);
9305 }
9306 return resultobj;
9307 fail:
9308 return NULL;
9309 }
9310
9311
9312 static PyObject *_wrap_Process_GetErrorStream(PyObject *self, PyObject *args, PyObject *kwargs) {
9313 PyObject *resultobj;
9314 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9315 wxInputStream *result;
9316 PyObject * obj0 = 0 ;
9317 char *kwnames[] = {
9318 (char *) "self", NULL
9319 };
9320
9321 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetErrorStream",kwnames,&obj0)) goto fail;
9322 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9323 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9324 {
9325 PyThreadState* __tstate = wxPyBeginAllowThreads();
9326 result = (wxInputStream *)(arg1)->GetErrorStream();
9327
9328 wxPyEndAllowThreads(__tstate);
9329 if (PyErr_Occurred()) SWIG_fail;
9330 }
9331 {
9332 wxPyInputStream * _ptr = NULL;
9333
9334 if (result) {
9335 _ptr = new wxPyInputStream(result);
9336 }
9337 resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), True);
9338 }
9339 return resultobj;
9340 fail:
9341 return NULL;
9342 }
9343
9344
9345 static PyObject *_wrap_Process_GetOutputStream(PyObject *self, PyObject *args, PyObject *kwargs) {
9346 PyObject *resultobj;
9347 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9348 wxOutputStream *result;
9349 PyObject * obj0 = 0 ;
9350 char *kwnames[] = {
9351 (char *) "self", NULL
9352 };
9353
9354 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetOutputStream",kwnames,&obj0)) goto fail;
9355 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9356 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9357 {
9358 PyThreadState* __tstate = wxPyBeginAllowThreads();
9359 result = (wxOutputStream *)(arg1)->GetOutputStream();
9360
9361 wxPyEndAllowThreads(__tstate);
9362 if (PyErr_Occurred()) SWIG_fail;
9363 }
9364 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxOutputStream, 0);
9365 return resultobj;
9366 fail:
9367 return NULL;
9368 }
9369
9370
9371 static PyObject *_wrap_Process_CloseOutput(PyObject *self, PyObject *args, PyObject *kwargs) {
9372 PyObject *resultobj;
9373 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9374 PyObject * obj0 = 0 ;
9375 char *kwnames[] = {
9376 (char *) "self", NULL
9377 };
9378
9379 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_CloseOutput",kwnames,&obj0)) goto fail;
9380 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9381 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9382 {
9383 PyThreadState* __tstate = wxPyBeginAllowThreads();
9384 (arg1)->CloseOutput();
9385
9386 wxPyEndAllowThreads(__tstate);
9387 if (PyErr_Occurred()) SWIG_fail;
9388 }
9389 Py_INCREF(Py_None); resultobj = Py_None;
9390 return resultobj;
9391 fail:
9392 return NULL;
9393 }
9394
9395
9396 static PyObject *_wrap_Process_IsInputOpened(PyObject *self, PyObject *args, PyObject *kwargs) {
9397 PyObject *resultobj;
9398 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9399 bool result;
9400 PyObject * obj0 = 0 ;
9401 char *kwnames[] = {
9402 (char *) "self", NULL
9403 };
9404
9405 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsInputOpened",kwnames,&obj0)) goto fail;
9406 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9407 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9408 {
9409 PyThreadState* __tstate = wxPyBeginAllowThreads();
9410 result = (bool)((wxPyProcess const *)arg1)->IsInputOpened();
9411
9412 wxPyEndAllowThreads(__tstate);
9413 if (PyErr_Occurred()) SWIG_fail;
9414 }
9415 {
9416 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9417 }
9418 return resultobj;
9419 fail:
9420 return NULL;
9421 }
9422
9423
9424 static PyObject *_wrap_Process_IsInputAvailable(PyObject *self, PyObject *args, PyObject *kwargs) {
9425 PyObject *resultobj;
9426 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9427 bool result;
9428 PyObject * obj0 = 0 ;
9429 char *kwnames[] = {
9430 (char *) "self", NULL
9431 };
9432
9433 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsInputAvailable",kwnames,&obj0)) goto fail;
9434 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9435 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9436 {
9437 PyThreadState* __tstate = wxPyBeginAllowThreads();
9438 result = (bool)((wxPyProcess const *)arg1)->IsInputAvailable();
9439
9440 wxPyEndAllowThreads(__tstate);
9441 if (PyErr_Occurred()) SWIG_fail;
9442 }
9443 {
9444 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9445 }
9446 return resultobj;
9447 fail:
9448 return NULL;
9449 }
9450
9451
9452 static PyObject *_wrap_Process_IsErrorAvailable(PyObject *self, PyObject *args, PyObject *kwargs) {
9453 PyObject *resultobj;
9454 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9455 bool result;
9456 PyObject * obj0 = 0 ;
9457 char *kwnames[] = {
9458 (char *) "self", NULL
9459 };
9460
9461 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsErrorAvailable",kwnames,&obj0)) goto fail;
9462 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9463 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9464 {
9465 PyThreadState* __tstate = wxPyBeginAllowThreads();
9466 result = (bool)((wxPyProcess const *)arg1)->IsErrorAvailable();
9467
9468 wxPyEndAllowThreads(__tstate);
9469 if (PyErr_Occurred()) SWIG_fail;
9470 }
9471 {
9472 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9473 }
9474 return resultobj;
9475 fail:
9476 return NULL;
9477 }
9478
9479
9480 static PyObject * Process_swigregister(PyObject *self, PyObject *args) {
9481 PyObject *obj;
9482 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9483 SWIG_TypeClientData(SWIGTYPE_p_wxPyProcess, obj);
9484 Py_INCREF(obj);
9485 return Py_BuildValue((char *)"");
9486 }
9487 static PyObject *_wrap_new_ProcessEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
9488 PyObject *resultobj;
9489 int arg1 = (int) 0 ;
9490 int arg2 = (int) 0 ;
9491 int arg3 = (int) 0 ;
9492 wxProcessEvent *result;
9493 PyObject * obj0 = 0 ;
9494 PyObject * obj1 = 0 ;
9495 PyObject * obj2 = 0 ;
9496 char *kwnames[] = {
9497 (char *) "id",(char *) "pid",(char *) "exitcode", NULL
9498 };
9499
9500 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ProcessEvent",kwnames,&obj0,&obj1,&obj2)) goto fail;
9501 if (obj0) {
9502 arg1 = (int) SWIG_AsInt(obj0);
9503 if (PyErr_Occurred()) SWIG_fail;
9504 }
9505 if (obj1) {
9506 arg2 = (int) SWIG_AsInt(obj1);
9507 if (PyErr_Occurred()) SWIG_fail;
9508 }
9509 if (obj2) {
9510 arg3 = (int) SWIG_AsInt(obj2);
9511 if (PyErr_Occurred()) SWIG_fail;
9512 }
9513 {
9514 PyThreadState* __tstate = wxPyBeginAllowThreads();
9515 result = (wxProcessEvent *)new wxProcessEvent(arg1,arg2,arg3);
9516
9517 wxPyEndAllowThreads(__tstate);
9518 if (PyErr_Occurred()) SWIG_fail;
9519 }
9520 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxProcessEvent, 1);
9521 return resultobj;
9522 fail:
9523 return NULL;
9524 }
9525
9526
9527 static PyObject *_wrap_ProcessEvent_GetPid(PyObject *self, PyObject *args, PyObject *kwargs) {
9528 PyObject *resultobj;
9529 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
9530 int result;
9531 PyObject * obj0 = 0 ;
9532 char *kwnames[] = {
9533 (char *) "self", NULL
9534 };
9535
9536 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_GetPid",kwnames,&obj0)) goto fail;
9537 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent,
9538 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9539 {
9540 PyThreadState* __tstate = wxPyBeginAllowThreads();
9541 result = (int)(arg1)->GetPid();
9542
9543 wxPyEndAllowThreads(__tstate);
9544 if (PyErr_Occurred()) SWIG_fail;
9545 }
9546 resultobj = SWIG_FromInt((int)result);
9547 return resultobj;
9548 fail:
9549 return NULL;
9550 }
9551
9552
9553 static PyObject *_wrap_ProcessEvent_GetExitCode(PyObject *self, PyObject *args, PyObject *kwargs) {
9554 PyObject *resultobj;
9555 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
9556 int result;
9557 PyObject * obj0 = 0 ;
9558 char *kwnames[] = {
9559 (char *) "self", NULL
9560 };
9561
9562 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_GetExitCode",kwnames,&obj0)) goto fail;
9563 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent,
9564 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9565 {
9566 PyThreadState* __tstate = wxPyBeginAllowThreads();
9567 result = (int)(arg1)->GetExitCode();
9568
9569 wxPyEndAllowThreads(__tstate);
9570 if (PyErr_Occurred()) SWIG_fail;
9571 }
9572 resultobj = SWIG_FromInt((int)result);
9573 return resultobj;
9574 fail:
9575 return NULL;
9576 }
9577
9578
9579 static PyObject *_wrap_ProcessEvent_m_pid_set(PyObject *self, PyObject *args, PyObject *kwargs) {
9580 PyObject *resultobj;
9581 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
9582 int arg2 ;
9583 PyObject * obj0 = 0 ;
9584 PyObject * obj1 = 0 ;
9585 char *kwnames[] = {
9586 (char *) "self",(char *) "m_pid", NULL
9587 };
9588
9589 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ProcessEvent_m_pid_set",kwnames,&obj0,&obj1)) goto fail;
9590 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent,
9591 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9592 arg2 = (int) SWIG_AsInt(obj1);
9593 if (PyErr_Occurred()) SWIG_fail;
9594 if (arg1) (arg1)->m_pid = arg2;
9595
9596 Py_INCREF(Py_None); resultobj = Py_None;
9597 return resultobj;
9598 fail:
9599 return NULL;
9600 }
9601
9602
9603 static PyObject *_wrap_ProcessEvent_m_pid_get(PyObject *self, PyObject *args, PyObject *kwargs) {
9604 PyObject *resultobj;
9605 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
9606 int result;
9607 PyObject * obj0 = 0 ;
9608 char *kwnames[] = {
9609 (char *) "self", NULL
9610 };
9611
9612 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_m_pid_get",kwnames,&obj0)) goto fail;
9613 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent,
9614 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9615 result = (int) ((arg1)->m_pid);
9616
9617 resultobj = SWIG_FromInt((int)result);
9618 return resultobj;
9619 fail:
9620 return NULL;
9621 }
9622
9623
9624 static PyObject *_wrap_ProcessEvent_m_exitcode_set(PyObject *self, PyObject *args, PyObject *kwargs) {
9625 PyObject *resultobj;
9626 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
9627 int arg2 ;
9628 PyObject * obj0 = 0 ;
9629 PyObject * obj1 = 0 ;
9630 char *kwnames[] = {
9631 (char *) "self",(char *) "m_exitcode", NULL
9632 };
9633
9634 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ProcessEvent_m_exitcode_set",kwnames,&obj0,&obj1)) goto fail;
9635 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent,
9636 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9637 arg2 = (int) SWIG_AsInt(obj1);
9638 if (PyErr_Occurred()) SWIG_fail;
9639 if (arg1) (arg1)->m_exitcode = arg2;
9640
9641 Py_INCREF(Py_None); resultobj = Py_None;
9642 return resultobj;
9643 fail:
9644 return NULL;
9645 }
9646
9647
9648 static PyObject *_wrap_ProcessEvent_m_exitcode_get(PyObject *self, PyObject *args, PyObject *kwargs) {
9649 PyObject *resultobj;
9650 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
9651 int result;
9652 PyObject * obj0 = 0 ;
9653 char *kwnames[] = {
9654 (char *) "self", NULL
9655 };
9656
9657 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_m_exitcode_get",kwnames,&obj0)) goto fail;
9658 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent,
9659 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9660 result = (int) ((arg1)->m_exitcode);
9661
9662 resultobj = SWIG_FromInt((int)result);
9663 return resultobj;
9664 fail:
9665 return NULL;
9666 }
9667
9668
9669 static PyObject * ProcessEvent_swigregister(PyObject *self, PyObject *args) {
9670 PyObject *obj;
9671 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9672 SWIG_TypeClientData(SWIGTYPE_p_wxProcessEvent, obj);
9673 Py_INCREF(obj);
9674 return Py_BuildValue((char *)"");
9675 }
9676 static PyObject *_wrap_Execute(PyObject *self, PyObject *args, PyObject *kwargs) {
9677 PyObject *resultobj;
9678 wxString *arg1 = 0 ;
9679 int arg2 = (int) wxEXEC_ASYNC ;
9680 wxPyProcess *arg3 = (wxPyProcess *) NULL ;
9681 long result;
9682 bool temp1 = False ;
9683 PyObject * obj0 = 0 ;
9684 PyObject * obj1 = 0 ;
9685 PyObject * obj2 = 0 ;
9686 char *kwnames[] = {
9687 (char *) "command",(char *) "flags",(char *) "process", NULL
9688 };
9689
9690 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Execute",kwnames,&obj0,&obj1,&obj2)) goto fail;
9691 {
9692 arg1 = wxString_in_helper(obj0);
9693 if (arg1 == NULL) SWIG_fail;
9694 temp1 = True;
9695 }
9696 if (obj1) {
9697 arg2 = (int) SWIG_AsInt(obj1);
9698 if (PyErr_Occurred()) SWIG_fail;
9699 }
9700 if (obj2) {
9701 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPyProcess,
9702 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9703 }
9704 {
9705 if (!wxPyCheckForApp()) SWIG_fail;
9706 PyThreadState* __tstate = wxPyBeginAllowThreads();
9707 result = (long)wxExecute((wxString const &)*arg1,arg2,arg3);
9708
9709 wxPyEndAllowThreads(__tstate);
9710 if (PyErr_Occurred()) SWIG_fail;
9711 }
9712 resultobj = SWIG_FromLong((long)result);
9713 {
9714 if (temp1)
9715 delete arg1;
9716 }
9717 return resultobj;
9718 fail:
9719 {
9720 if (temp1)
9721 delete arg1;
9722 }
9723 return NULL;
9724 }
9725
9726
9727 static PyObject *_wrap_new_Joystick(PyObject *self, PyObject *args, PyObject *kwargs) {
9728 PyObject *resultobj;
9729 int arg1 = (int) wxJOYSTICK1 ;
9730 wxJoystick *result;
9731 PyObject * obj0 = 0 ;
9732 char *kwnames[] = {
9733 (char *) "joystick", NULL
9734 };
9735
9736 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Joystick",kwnames,&obj0)) goto fail;
9737 if (obj0) {
9738 arg1 = (int) SWIG_AsInt(obj0);
9739 if (PyErr_Occurred()) SWIG_fail;
9740 }
9741 {
9742 if (!wxPyCheckForApp()) SWIG_fail;
9743 PyThreadState* __tstate = wxPyBeginAllowThreads();
9744 result = (wxJoystick *)new wxJoystick(arg1);
9745
9746 wxPyEndAllowThreads(__tstate);
9747 if (PyErr_Occurred()) SWIG_fail;
9748 }
9749 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxJoystick, 1);
9750 return resultobj;
9751 fail:
9752 return NULL;
9753 }
9754
9755
9756 static PyObject *_wrap_delete_Joystick(PyObject *self, PyObject *args, PyObject *kwargs) {
9757 PyObject *resultobj;
9758 wxJoystick *arg1 = (wxJoystick *) 0 ;
9759 PyObject * obj0 = 0 ;
9760 char *kwnames[] = {
9761 (char *) "self", NULL
9762 };
9763
9764 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Joystick",kwnames,&obj0)) goto fail;
9765 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9766 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9767 {
9768 PyThreadState* __tstate = wxPyBeginAllowThreads();
9769 delete arg1;
9770
9771 wxPyEndAllowThreads(__tstate);
9772 if (PyErr_Occurred()) SWIG_fail;
9773 }
9774 Py_INCREF(Py_None); resultobj = Py_None;
9775 return resultobj;
9776 fail:
9777 return NULL;
9778 }
9779
9780
9781 static PyObject *_wrap_Joystick_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
9782 PyObject *resultobj;
9783 wxJoystick *arg1 = (wxJoystick *) 0 ;
9784 wxPoint result;
9785 PyObject * obj0 = 0 ;
9786 char *kwnames[] = {
9787 (char *) "self", NULL
9788 };
9789
9790 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPosition",kwnames,&obj0)) goto fail;
9791 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9792 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9793 {
9794 PyThreadState* __tstate = wxPyBeginAllowThreads();
9795 result = (arg1)->GetPosition();
9796
9797 wxPyEndAllowThreads(__tstate);
9798 if (PyErr_Occurred()) SWIG_fail;
9799 }
9800 {
9801 wxPoint * resultptr;
9802 resultptr = new wxPoint((wxPoint &) result);
9803 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
9804 }
9805 return resultobj;
9806 fail:
9807 return NULL;
9808 }
9809
9810
9811 static PyObject *_wrap_Joystick_GetZPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
9812 PyObject *resultobj;
9813 wxJoystick *arg1 = (wxJoystick *) 0 ;
9814 int result;
9815 PyObject * obj0 = 0 ;
9816 char *kwnames[] = {
9817 (char *) "self", NULL
9818 };
9819
9820 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZPosition",kwnames,&obj0)) goto fail;
9821 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9822 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9823 {
9824 PyThreadState* __tstate = wxPyBeginAllowThreads();
9825 result = (int)(arg1)->GetZPosition();
9826
9827 wxPyEndAllowThreads(__tstate);
9828 if (PyErr_Occurred()) SWIG_fail;
9829 }
9830 resultobj = SWIG_FromInt((int)result);
9831 return resultobj;
9832 fail:
9833 return NULL;
9834 }
9835
9836
9837 static PyObject *_wrap_Joystick_GetButtonState(PyObject *self, PyObject *args, PyObject *kwargs) {
9838 PyObject *resultobj;
9839 wxJoystick *arg1 = (wxJoystick *) 0 ;
9840 int result;
9841 PyObject * obj0 = 0 ;
9842 char *kwnames[] = {
9843 (char *) "self", NULL
9844 };
9845
9846 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetButtonState",kwnames,&obj0)) goto fail;
9847 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9848 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9849 {
9850 PyThreadState* __tstate = wxPyBeginAllowThreads();
9851 result = (int)(arg1)->GetButtonState();
9852
9853 wxPyEndAllowThreads(__tstate);
9854 if (PyErr_Occurred()) SWIG_fail;
9855 }
9856 resultobj = SWIG_FromInt((int)result);
9857 return resultobj;
9858 fail:
9859 return NULL;
9860 }
9861
9862
9863 static PyObject *_wrap_Joystick_GetPOVPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
9864 PyObject *resultobj;
9865 wxJoystick *arg1 = (wxJoystick *) 0 ;
9866 int result;
9867 PyObject * obj0 = 0 ;
9868 char *kwnames[] = {
9869 (char *) "self", NULL
9870 };
9871
9872 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPOVPosition",kwnames,&obj0)) goto fail;
9873 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9874 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9875 {
9876 PyThreadState* __tstate = wxPyBeginAllowThreads();
9877 result = (int)(arg1)->GetPOVPosition();
9878
9879 wxPyEndAllowThreads(__tstate);
9880 if (PyErr_Occurred()) SWIG_fail;
9881 }
9882 resultobj = SWIG_FromInt((int)result);
9883 return resultobj;
9884 fail:
9885 return NULL;
9886 }
9887
9888
9889 static PyObject *_wrap_Joystick_GetPOVCTSPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
9890 PyObject *resultobj;
9891 wxJoystick *arg1 = (wxJoystick *) 0 ;
9892 int result;
9893 PyObject * obj0 = 0 ;
9894 char *kwnames[] = {
9895 (char *) "self", NULL
9896 };
9897
9898 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPOVCTSPosition",kwnames,&obj0)) goto fail;
9899 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9900 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9901 {
9902 PyThreadState* __tstate = wxPyBeginAllowThreads();
9903 result = (int)(arg1)->GetPOVCTSPosition();
9904
9905 wxPyEndAllowThreads(__tstate);
9906 if (PyErr_Occurred()) SWIG_fail;
9907 }
9908 resultobj = SWIG_FromInt((int)result);
9909 return resultobj;
9910 fail:
9911 return NULL;
9912 }
9913
9914
9915 static PyObject *_wrap_Joystick_GetRudderPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
9916 PyObject *resultobj;
9917 wxJoystick *arg1 = (wxJoystick *) 0 ;
9918 int result;
9919 PyObject * obj0 = 0 ;
9920 char *kwnames[] = {
9921 (char *) "self", NULL
9922 };
9923
9924 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderPosition",kwnames,&obj0)) goto fail;
9925 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9926 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9927 {
9928 PyThreadState* __tstate = wxPyBeginAllowThreads();
9929 result = (int)(arg1)->GetRudderPosition();
9930
9931 wxPyEndAllowThreads(__tstate);
9932 if (PyErr_Occurred()) SWIG_fail;
9933 }
9934 resultobj = SWIG_FromInt((int)result);
9935 return resultobj;
9936 fail:
9937 return NULL;
9938 }
9939
9940
9941 static PyObject *_wrap_Joystick_GetUPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
9942 PyObject *resultobj;
9943 wxJoystick *arg1 = (wxJoystick *) 0 ;
9944 int result;
9945 PyObject * obj0 = 0 ;
9946 char *kwnames[] = {
9947 (char *) "self", NULL
9948 };
9949
9950 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUPosition",kwnames,&obj0)) goto fail;
9951 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9952 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9953 {
9954 PyThreadState* __tstate = wxPyBeginAllowThreads();
9955 result = (int)(arg1)->GetUPosition();
9956
9957 wxPyEndAllowThreads(__tstate);
9958 if (PyErr_Occurred()) SWIG_fail;
9959 }
9960 resultobj = SWIG_FromInt((int)result);
9961 return resultobj;
9962 fail:
9963 return NULL;
9964 }
9965
9966
9967 static PyObject *_wrap_Joystick_GetVPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
9968 PyObject *resultobj;
9969 wxJoystick *arg1 = (wxJoystick *) 0 ;
9970 int result;
9971 PyObject * obj0 = 0 ;
9972 char *kwnames[] = {
9973 (char *) "self", NULL
9974 };
9975
9976 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVPosition",kwnames,&obj0)) goto fail;
9977 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9978 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9979 {
9980 PyThreadState* __tstate = wxPyBeginAllowThreads();
9981 result = (int)(arg1)->GetVPosition();
9982
9983 wxPyEndAllowThreads(__tstate);
9984 if (PyErr_Occurred()) SWIG_fail;
9985 }
9986 resultobj = SWIG_FromInt((int)result);
9987 return resultobj;
9988 fail:
9989 return NULL;
9990 }
9991
9992
9993 static PyObject *_wrap_Joystick_GetMovementThreshold(PyObject *self, PyObject *args, PyObject *kwargs) {
9994 PyObject *resultobj;
9995 wxJoystick *arg1 = (wxJoystick *) 0 ;
9996 int result;
9997 PyObject * obj0 = 0 ;
9998 char *kwnames[] = {
9999 (char *) "self", NULL
10000 };
10001
10002 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMovementThreshold",kwnames,&obj0)) goto fail;
10003 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10004 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10005 {
10006 PyThreadState* __tstate = wxPyBeginAllowThreads();
10007 result = (int)(arg1)->GetMovementThreshold();
10008
10009 wxPyEndAllowThreads(__tstate);
10010 if (PyErr_Occurred()) SWIG_fail;
10011 }
10012 resultobj = SWIG_FromInt((int)result);
10013 return resultobj;
10014 fail:
10015 return NULL;
10016 }
10017
10018
10019 static PyObject *_wrap_Joystick_SetMovementThreshold(PyObject *self, PyObject *args, PyObject *kwargs) {
10020 PyObject *resultobj;
10021 wxJoystick *arg1 = (wxJoystick *) 0 ;
10022 int arg2 ;
10023 PyObject * obj0 = 0 ;
10024 PyObject * obj1 = 0 ;
10025 char *kwnames[] = {
10026 (char *) "self",(char *) "threshold", NULL
10027 };
10028
10029 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Joystick_SetMovementThreshold",kwnames,&obj0,&obj1)) goto fail;
10030 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10031 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10032 arg2 = (int) SWIG_AsInt(obj1);
10033 if (PyErr_Occurred()) SWIG_fail;
10034 {
10035 PyThreadState* __tstate = wxPyBeginAllowThreads();
10036 (arg1)->SetMovementThreshold(arg2);
10037
10038 wxPyEndAllowThreads(__tstate);
10039 if (PyErr_Occurred()) SWIG_fail;
10040 }
10041 Py_INCREF(Py_None); resultobj = Py_None;
10042 return resultobj;
10043 fail:
10044 return NULL;
10045 }
10046
10047
10048 static PyObject *_wrap_Joystick_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
10049 PyObject *resultobj;
10050 wxJoystick *arg1 = (wxJoystick *) 0 ;
10051 bool result;
10052 PyObject * obj0 = 0 ;
10053 char *kwnames[] = {
10054 (char *) "self", NULL
10055 };
10056
10057 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_IsOk",kwnames,&obj0)) goto fail;
10058 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10059 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10060 {
10061 PyThreadState* __tstate = wxPyBeginAllowThreads();
10062 result = (bool)(arg1)->IsOk();
10063
10064 wxPyEndAllowThreads(__tstate);
10065 if (PyErr_Occurred()) SWIG_fail;
10066 }
10067 {
10068 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10069 }
10070 return resultobj;
10071 fail:
10072 return NULL;
10073 }
10074
10075
10076 static PyObject *_wrap_Joystick_GetNumberJoysticks(PyObject *self, PyObject *args, PyObject *kwargs) {
10077 PyObject *resultobj;
10078 wxJoystick *arg1 = (wxJoystick *) 0 ;
10079 int result;
10080 PyObject * obj0 = 0 ;
10081 char *kwnames[] = {
10082 (char *) "self", NULL
10083 };
10084
10085 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberJoysticks",kwnames,&obj0)) goto fail;
10086 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10087 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10088 {
10089 PyThreadState* __tstate = wxPyBeginAllowThreads();
10090 result = (int)(arg1)->GetNumberJoysticks();
10091
10092 wxPyEndAllowThreads(__tstate);
10093 if (PyErr_Occurred()) SWIG_fail;
10094 }
10095 resultobj = SWIG_FromInt((int)result);
10096 return resultobj;
10097 fail:
10098 return NULL;
10099 }
10100
10101
10102 static PyObject *_wrap_Joystick_GetManufacturerId(PyObject *self, PyObject *args, PyObject *kwargs) {
10103 PyObject *resultobj;
10104 wxJoystick *arg1 = (wxJoystick *) 0 ;
10105 int result;
10106 PyObject * obj0 = 0 ;
10107 char *kwnames[] = {
10108 (char *) "self", NULL
10109 };
10110
10111 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetManufacturerId",kwnames,&obj0)) goto fail;
10112 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10113 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10114 {
10115 PyThreadState* __tstate = wxPyBeginAllowThreads();
10116 result = (int)(arg1)->GetManufacturerId();
10117
10118 wxPyEndAllowThreads(__tstate);
10119 if (PyErr_Occurred()) SWIG_fail;
10120 }
10121 resultobj = SWIG_FromInt((int)result);
10122 return resultobj;
10123 fail:
10124 return NULL;
10125 }
10126
10127
10128 static PyObject *_wrap_Joystick_GetProductId(PyObject *self, PyObject *args, PyObject *kwargs) {
10129 PyObject *resultobj;
10130 wxJoystick *arg1 = (wxJoystick *) 0 ;
10131 int result;
10132 PyObject * obj0 = 0 ;
10133 char *kwnames[] = {
10134 (char *) "self", NULL
10135 };
10136
10137 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetProductId",kwnames,&obj0)) goto fail;
10138 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10139 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10140 {
10141 PyThreadState* __tstate = wxPyBeginAllowThreads();
10142 result = (int)(arg1)->GetProductId();
10143
10144 wxPyEndAllowThreads(__tstate);
10145 if (PyErr_Occurred()) SWIG_fail;
10146 }
10147 resultobj = SWIG_FromInt((int)result);
10148 return resultobj;
10149 fail:
10150 return NULL;
10151 }
10152
10153
10154 static PyObject *_wrap_Joystick_GetProductName(PyObject *self, PyObject *args, PyObject *kwargs) {
10155 PyObject *resultobj;
10156 wxJoystick *arg1 = (wxJoystick *) 0 ;
10157 wxString result;
10158 PyObject * obj0 = 0 ;
10159 char *kwnames[] = {
10160 (char *) "self", NULL
10161 };
10162
10163 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetProductName",kwnames,&obj0)) goto fail;
10164 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10165 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10166 {
10167 PyThreadState* __tstate = wxPyBeginAllowThreads();
10168 result = (arg1)->GetProductName();
10169
10170 wxPyEndAllowThreads(__tstate);
10171 if (PyErr_Occurred()) SWIG_fail;
10172 }
10173 {
10174 #if wxUSE_UNICODE
10175 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10176 #else
10177 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10178 #endif
10179 }
10180 return resultobj;
10181 fail:
10182 return NULL;
10183 }
10184
10185
10186 static PyObject *_wrap_Joystick_GetXMin(PyObject *self, PyObject *args, PyObject *kwargs) {
10187 PyObject *resultobj;
10188 wxJoystick *arg1 = (wxJoystick *) 0 ;
10189 int result;
10190 PyObject * obj0 = 0 ;
10191 char *kwnames[] = {
10192 (char *) "self", NULL
10193 };
10194
10195 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetXMin",kwnames,&obj0)) goto fail;
10196 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10197 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10198 {
10199 PyThreadState* __tstate = wxPyBeginAllowThreads();
10200 result = (int)(arg1)->GetXMin();
10201
10202 wxPyEndAllowThreads(__tstate);
10203 if (PyErr_Occurred()) SWIG_fail;
10204 }
10205 resultobj = SWIG_FromInt((int)result);
10206 return resultobj;
10207 fail:
10208 return NULL;
10209 }
10210
10211
10212 static PyObject *_wrap_Joystick_GetYMin(PyObject *self, PyObject *args, PyObject *kwargs) {
10213 PyObject *resultobj;
10214 wxJoystick *arg1 = (wxJoystick *) 0 ;
10215 int result;
10216 PyObject * obj0 = 0 ;
10217 char *kwnames[] = {
10218 (char *) "self", NULL
10219 };
10220
10221 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetYMin",kwnames,&obj0)) goto fail;
10222 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10223 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10224 {
10225 PyThreadState* __tstate = wxPyBeginAllowThreads();
10226 result = (int)(arg1)->GetYMin();
10227
10228 wxPyEndAllowThreads(__tstate);
10229 if (PyErr_Occurred()) SWIG_fail;
10230 }
10231 resultobj = SWIG_FromInt((int)result);
10232 return resultobj;
10233 fail:
10234 return NULL;
10235 }
10236
10237
10238 static PyObject *_wrap_Joystick_GetZMin(PyObject *self, PyObject *args, PyObject *kwargs) {
10239 PyObject *resultobj;
10240 wxJoystick *arg1 = (wxJoystick *) 0 ;
10241 int result;
10242 PyObject * obj0 = 0 ;
10243 char *kwnames[] = {
10244 (char *) "self", NULL
10245 };
10246
10247 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZMin",kwnames,&obj0)) goto fail;
10248 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10249 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10250 {
10251 PyThreadState* __tstate = wxPyBeginAllowThreads();
10252 result = (int)(arg1)->GetZMin();
10253
10254 wxPyEndAllowThreads(__tstate);
10255 if (PyErr_Occurred()) SWIG_fail;
10256 }
10257 resultobj = SWIG_FromInt((int)result);
10258 return resultobj;
10259 fail:
10260 return NULL;
10261 }
10262
10263
10264 static PyObject *_wrap_Joystick_GetXMax(PyObject *self, PyObject *args, PyObject *kwargs) {
10265 PyObject *resultobj;
10266 wxJoystick *arg1 = (wxJoystick *) 0 ;
10267 int result;
10268 PyObject * obj0 = 0 ;
10269 char *kwnames[] = {
10270 (char *) "self", NULL
10271 };
10272
10273 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetXMax",kwnames,&obj0)) goto fail;
10274 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10275 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10276 {
10277 PyThreadState* __tstate = wxPyBeginAllowThreads();
10278 result = (int)(arg1)->GetXMax();
10279
10280 wxPyEndAllowThreads(__tstate);
10281 if (PyErr_Occurred()) SWIG_fail;
10282 }
10283 resultobj = SWIG_FromInt((int)result);
10284 return resultobj;
10285 fail:
10286 return NULL;
10287 }
10288
10289
10290 static PyObject *_wrap_Joystick_GetYMax(PyObject *self, PyObject *args, PyObject *kwargs) {
10291 PyObject *resultobj;
10292 wxJoystick *arg1 = (wxJoystick *) 0 ;
10293 int result;
10294 PyObject * obj0 = 0 ;
10295 char *kwnames[] = {
10296 (char *) "self", NULL
10297 };
10298
10299 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetYMax",kwnames,&obj0)) goto fail;
10300 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10301 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10302 {
10303 PyThreadState* __tstate = wxPyBeginAllowThreads();
10304 result = (int)(arg1)->GetYMax();
10305
10306 wxPyEndAllowThreads(__tstate);
10307 if (PyErr_Occurred()) SWIG_fail;
10308 }
10309 resultobj = SWIG_FromInt((int)result);
10310 return resultobj;
10311 fail:
10312 return NULL;
10313 }
10314
10315
10316 static PyObject *_wrap_Joystick_GetZMax(PyObject *self, PyObject *args, PyObject *kwargs) {
10317 PyObject *resultobj;
10318 wxJoystick *arg1 = (wxJoystick *) 0 ;
10319 int result;
10320 PyObject * obj0 = 0 ;
10321 char *kwnames[] = {
10322 (char *) "self", NULL
10323 };
10324
10325 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZMax",kwnames,&obj0)) goto fail;
10326 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10327 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10328 {
10329 PyThreadState* __tstate = wxPyBeginAllowThreads();
10330 result = (int)(arg1)->GetZMax();
10331
10332 wxPyEndAllowThreads(__tstate);
10333 if (PyErr_Occurred()) SWIG_fail;
10334 }
10335 resultobj = SWIG_FromInt((int)result);
10336 return resultobj;
10337 fail:
10338 return NULL;
10339 }
10340
10341
10342 static PyObject *_wrap_Joystick_GetNumberButtons(PyObject *self, PyObject *args, PyObject *kwargs) {
10343 PyObject *resultobj;
10344 wxJoystick *arg1 = (wxJoystick *) 0 ;
10345 int result;
10346 PyObject * obj0 = 0 ;
10347 char *kwnames[] = {
10348 (char *) "self", NULL
10349 };
10350
10351 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberButtons",kwnames,&obj0)) goto fail;
10352 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10353 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10354 {
10355 PyThreadState* __tstate = wxPyBeginAllowThreads();
10356 result = (int)(arg1)->GetNumberButtons();
10357
10358 wxPyEndAllowThreads(__tstate);
10359 if (PyErr_Occurred()) SWIG_fail;
10360 }
10361 resultobj = SWIG_FromInt((int)result);
10362 return resultobj;
10363 fail:
10364 return NULL;
10365 }
10366
10367
10368 static PyObject *_wrap_Joystick_GetNumberAxes(PyObject *self, PyObject *args, PyObject *kwargs) {
10369 PyObject *resultobj;
10370 wxJoystick *arg1 = (wxJoystick *) 0 ;
10371 int result;
10372 PyObject * obj0 = 0 ;
10373 char *kwnames[] = {
10374 (char *) "self", NULL
10375 };
10376
10377 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberAxes",kwnames,&obj0)) goto fail;
10378 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10379 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10380 {
10381 PyThreadState* __tstate = wxPyBeginAllowThreads();
10382 result = (int)(arg1)->GetNumberAxes();
10383
10384 wxPyEndAllowThreads(__tstate);
10385 if (PyErr_Occurred()) SWIG_fail;
10386 }
10387 resultobj = SWIG_FromInt((int)result);
10388 return resultobj;
10389 fail:
10390 return NULL;
10391 }
10392
10393
10394 static PyObject *_wrap_Joystick_GetMaxButtons(PyObject *self, PyObject *args, PyObject *kwargs) {
10395 PyObject *resultobj;
10396 wxJoystick *arg1 = (wxJoystick *) 0 ;
10397 int result;
10398 PyObject * obj0 = 0 ;
10399 char *kwnames[] = {
10400 (char *) "self", NULL
10401 };
10402
10403 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMaxButtons",kwnames,&obj0)) goto fail;
10404 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10405 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10406 {
10407 PyThreadState* __tstate = wxPyBeginAllowThreads();
10408 result = (int)(arg1)->GetMaxButtons();
10409
10410 wxPyEndAllowThreads(__tstate);
10411 if (PyErr_Occurred()) SWIG_fail;
10412 }
10413 resultobj = SWIG_FromInt((int)result);
10414 return resultobj;
10415 fail:
10416 return NULL;
10417 }
10418
10419
10420 static PyObject *_wrap_Joystick_GetMaxAxes(PyObject *self, PyObject *args, PyObject *kwargs) {
10421 PyObject *resultobj;
10422 wxJoystick *arg1 = (wxJoystick *) 0 ;
10423 int result;
10424 PyObject * obj0 = 0 ;
10425 char *kwnames[] = {
10426 (char *) "self", NULL
10427 };
10428
10429 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMaxAxes",kwnames,&obj0)) goto fail;
10430 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10431 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10432 {
10433 PyThreadState* __tstate = wxPyBeginAllowThreads();
10434 result = (int)(arg1)->GetMaxAxes();
10435
10436 wxPyEndAllowThreads(__tstate);
10437 if (PyErr_Occurred()) SWIG_fail;
10438 }
10439 resultobj = SWIG_FromInt((int)result);
10440 return resultobj;
10441 fail:
10442 return NULL;
10443 }
10444
10445
10446 static PyObject *_wrap_Joystick_GetPollingMin(PyObject *self, PyObject *args, PyObject *kwargs) {
10447 PyObject *resultobj;
10448 wxJoystick *arg1 = (wxJoystick *) 0 ;
10449 int result;
10450 PyObject * obj0 = 0 ;
10451 char *kwnames[] = {
10452 (char *) "self", NULL
10453 };
10454
10455 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPollingMin",kwnames,&obj0)) goto fail;
10456 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10457 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10458 {
10459 PyThreadState* __tstate = wxPyBeginAllowThreads();
10460 result = (int)(arg1)->GetPollingMin();
10461
10462 wxPyEndAllowThreads(__tstate);
10463 if (PyErr_Occurred()) SWIG_fail;
10464 }
10465 resultobj = SWIG_FromInt((int)result);
10466 return resultobj;
10467 fail:
10468 return NULL;
10469 }
10470
10471
10472 static PyObject *_wrap_Joystick_GetPollingMax(PyObject *self, PyObject *args, PyObject *kwargs) {
10473 PyObject *resultobj;
10474 wxJoystick *arg1 = (wxJoystick *) 0 ;
10475 int result;
10476 PyObject * obj0 = 0 ;
10477 char *kwnames[] = {
10478 (char *) "self", NULL
10479 };
10480
10481 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPollingMax",kwnames,&obj0)) goto fail;
10482 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10483 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10484 {
10485 PyThreadState* __tstate = wxPyBeginAllowThreads();
10486 result = (int)(arg1)->GetPollingMax();
10487
10488 wxPyEndAllowThreads(__tstate);
10489 if (PyErr_Occurred()) SWIG_fail;
10490 }
10491 resultobj = SWIG_FromInt((int)result);
10492 return resultobj;
10493 fail:
10494 return NULL;
10495 }
10496
10497
10498 static PyObject *_wrap_Joystick_GetRudderMin(PyObject *self, PyObject *args, PyObject *kwargs) {
10499 PyObject *resultobj;
10500 wxJoystick *arg1 = (wxJoystick *) 0 ;
10501 int result;
10502 PyObject * obj0 = 0 ;
10503 char *kwnames[] = {
10504 (char *) "self", NULL
10505 };
10506
10507 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderMin",kwnames,&obj0)) goto fail;
10508 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10509 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10510 {
10511 PyThreadState* __tstate = wxPyBeginAllowThreads();
10512 result = (int)(arg1)->GetRudderMin();
10513
10514 wxPyEndAllowThreads(__tstate);
10515 if (PyErr_Occurred()) SWIG_fail;
10516 }
10517 resultobj = SWIG_FromInt((int)result);
10518 return resultobj;
10519 fail:
10520 return NULL;
10521 }
10522
10523
10524 static PyObject *_wrap_Joystick_GetRudderMax(PyObject *self, PyObject *args, PyObject *kwargs) {
10525 PyObject *resultobj;
10526 wxJoystick *arg1 = (wxJoystick *) 0 ;
10527 int result;
10528 PyObject * obj0 = 0 ;
10529 char *kwnames[] = {
10530 (char *) "self", NULL
10531 };
10532
10533 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderMax",kwnames,&obj0)) goto fail;
10534 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10535 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10536 {
10537 PyThreadState* __tstate = wxPyBeginAllowThreads();
10538 result = (int)(arg1)->GetRudderMax();
10539
10540 wxPyEndAllowThreads(__tstate);
10541 if (PyErr_Occurred()) SWIG_fail;
10542 }
10543 resultobj = SWIG_FromInt((int)result);
10544 return resultobj;
10545 fail:
10546 return NULL;
10547 }
10548
10549
10550 static PyObject *_wrap_Joystick_GetUMin(PyObject *self, PyObject *args, PyObject *kwargs) {
10551 PyObject *resultobj;
10552 wxJoystick *arg1 = (wxJoystick *) 0 ;
10553 int result;
10554 PyObject * obj0 = 0 ;
10555 char *kwnames[] = {
10556 (char *) "self", NULL
10557 };
10558
10559 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUMin",kwnames,&obj0)) goto fail;
10560 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10561 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10562 {
10563 PyThreadState* __tstate = wxPyBeginAllowThreads();
10564 result = (int)(arg1)->GetUMin();
10565
10566 wxPyEndAllowThreads(__tstate);
10567 if (PyErr_Occurred()) SWIG_fail;
10568 }
10569 resultobj = SWIG_FromInt((int)result);
10570 return resultobj;
10571 fail:
10572 return NULL;
10573 }
10574
10575
10576 static PyObject *_wrap_Joystick_GetUMax(PyObject *self, PyObject *args, PyObject *kwargs) {
10577 PyObject *resultobj;
10578 wxJoystick *arg1 = (wxJoystick *) 0 ;
10579 int result;
10580 PyObject * obj0 = 0 ;
10581 char *kwnames[] = {
10582 (char *) "self", NULL
10583 };
10584
10585 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUMax",kwnames,&obj0)) goto fail;
10586 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10587 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10588 {
10589 PyThreadState* __tstate = wxPyBeginAllowThreads();
10590 result = (int)(arg1)->GetUMax();
10591
10592 wxPyEndAllowThreads(__tstate);
10593 if (PyErr_Occurred()) SWIG_fail;
10594 }
10595 resultobj = SWIG_FromInt((int)result);
10596 return resultobj;
10597 fail:
10598 return NULL;
10599 }
10600
10601
10602 static PyObject *_wrap_Joystick_GetVMin(PyObject *self, PyObject *args, PyObject *kwargs) {
10603 PyObject *resultobj;
10604 wxJoystick *arg1 = (wxJoystick *) 0 ;
10605 int result;
10606 PyObject * obj0 = 0 ;
10607 char *kwnames[] = {
10608 (char *) "self", NULL
10609 };
10610
10611 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVMin",kwnames,&obj0)) goto fail;
10612 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10613 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10614 {
10615 PyThreadState* __tstate = wxPyBeginAllowThreads();
10616 result = (int)(arg1)->GetVMin();
10617
10618 wxPyEndAllowThreads(__tstate);
10619 if (PyErr_Occurred()) SWIG_fail;
10620 }
10621 resultobj = SWIG_FromInt((int)result);
10622 return resultobj;
10623 fail:
10624 return NULL;
10625 }
10626
10627
10628 static PyObject *_wrap_Joystick_GetVMax(PyObject *self, PyObject *args, PyObject *kwargs) {
10629 PyObject *resultobj;
10630 wxJoystick *arg1 = (wxJoystick *) 0 ;
10631 int result;
10632 PyObject * obj0 = 0 ;
10633 char *kwnames[] = {
10634 (char *) "self", NULL
10635 };
10636
10637 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVMax",kwnames,&obj0)) goto fail;
10638 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10639 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10640 {
10641 PyThreadState* __tstate = wxPyBeginAllowThreads();
10642 result = (int)(arg1)->GetVMax();
10643
10644 wxPyEndAllowThreads(__tstate);
10645 if (PyErr_Occurred()) SWIG_fail;
10646 }
10647 resultobj = SWIG_FromInt((int)result);
10648 return resultobj;
10649 fail:
10650 return NULL;
10651 }
10652
10653
10654 static PyObject *_wrap_Joystick_HasRudder(PyObject *self, PyObject *args, PyObject *kwargs) {
10655 PyObject *resultobj;
10656 wxJoystick *arg1 = (wxJoystick *) 0 ;
10657 bool result;
10658 PyObject * obj0 = 0 ;
10659 char *kwnames[] = {
10660 (char *) "self", NULL
10661 };
10662
10663 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasRudder",kwnames,&obj0)) goto fail;
10664 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10665 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10666 {
10667 PyThreadState* __tstate = wxPyBeginAllowThreads();
10668 result = (bool)(arg1)->HasRudder();
10669
10670 wxPyEndAllowThreads(__tstate);
10671 if (PyErr_Occurred()) SWIG_fail;
10672 }
10673 {
10674 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10675 }
10676 return resultobj;
10677 fail:
10678 return NULL;
10679 }
10680
10681
10682 static PyObject *_wrap_Joystick_HasZ(PyObject *self, PyObject *args, PyObject *kwargs) {
10683 PyObject *resultobj;
10684 wxJoystick *arg1 = (wxJoystick *) 0 ;
10685 bool result;
10686 PyObject * obj0 = 0 ;
10687 char *kwnames[] = {
10688 (char *) "self", NULL
10689 };
10690
10691 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasZ",kwnames,&obj0)) goto fail;
10692 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10693 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10694 {
10695 PyThreadState* __tstate = wxPyBeginAllowThreads();
10696 result = (bool)(arg1)->HasZ();
10697
10698 wxPyEndAllowThreads(__tstate);
10699 if (PyErr_Occurred()) SWIG_fail;
10700 }
10701 {
10702 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10703 }
10704 return resultobj;
10705 fail:
10706 return NULL;
10707 }
10708
10709
10710 static PyObject *_wrap_Joystick_HasU(PyObject *self, PyObject *args, PyObject *kwargs) {
10711 PyObject *resultobj;
10712 wxJoystick *arg1 = (wxJoystick *) 0 ;
10713 bool result;
10714 PyObject * obj0 = 0 ;
10715 char *kwnames[] = {
10716 (char *) "self", NULL
10717 };
10718
10719 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasU",kwnames,&obj0)) goto fail;
10720 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10721 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10722 {
10723 PyThreadState* __tstate = wxPyBeginAllowThreads();
10724 result = (bool)(arg1)->HasU();
10725
10726 wxPyEndAllowThreads(__tstate);
10727 if (PyErr_Occurred()) SWIG_fail;
10728 }
10729 {
10730 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10731 }
10732 return resultobj;
10733 fail:
10734 return NULL;
10735 }
10736
10737
10738 static PyObject *_wrap_Joystick_HasV(PyObject *self, PyObject *args, PyObject *kwargs) {
10739 PyObject *resultobj;
10740 wxJoystick *arg1 = (wxJoystick *) 0 ;
10741 bool result;
10742 PyObject * obj0 = 0 ;
10743 char *kwnames[] = {
10744 (char *) "self", NULL
10745 };
10746
10747 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasV",kwnames,&obj0)) goto fail;
10748 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10749 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10750 {
10751 PyThreadState* __tstate = wxPyBeginAllowThreads();
10752 result = (bool)(arg1)->HasV();
10753
10754 wxPyEndAllowThreads(__tstate);
10755 if (PyErr_Occurred()) SWIG_fail;
10756 }
10757 {
10758 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10759 }
10760 return resultobj;
10761 fail:
10762 return NULL;
10763 }
10764
10765
10766 static PyObject *_wrap_Joystick_HasPOV(PyObject *self, PyObject *args, PyObject *kwargs) {
10767 PyObject *resultobj;
10768 wxJoystick *arg1 = (wxJoystick *) 0 ;
10769 bool result;
10770 PyObject * obj0 = 0 ;
10771 char *kwnames[] = {
10772 (char *) "self", NULL
10773 };
10774
10775 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOV",kwnames,&obj0)) goto fail;
10776 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10777 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10778 {
10779 PyThreadState* __tstate = wxPyBeginAllowThreads();
10780 result = (bool)(arg1)->HasPOV();
10781
10782 wxPyEndAllowThreads(__tstate);
10783 if (PyErr_Occurred()) SWIG_fail;
10784 }
10785 {
10786 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10787 }
10788 return resultobj;
10789 fail:
10790 return NULL;
10791 }
10792
10793
10794 static PyObject *_wrap_Joystick_HasPOV4Dir(PyObject *self, PyObject *args, PyObject *kwargs) {
10795 PyObject *resultobj;
10796 wxJoystick *arg1 = (wxJoystick *) 0 ;
10797 bool result;
10798 PyObject * obj0 = 0 ;
10799 char *kwnames[] = {
10800 (char *) "self", NULL
10801 };
10802
10803 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOV4Dir",kwnames,&obj0)) goto fail;
10804 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10805 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10806 {
10807 PyThreadState* __tstate = wxPyBeginAllowThreads();
10808 result = (bool)(arg1)->HasPOV4Dir();
10809
10810 wxPyEndAllowThreads(__tstate);
10811 if (PyErr_Occurred()) SWIG_fail;
10812 }
10813 {
10814 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10815 }
10816 return resultobj;
10817 fail:
10818 return NULL;
10819 }
10820
10821
10822 static PyObject *_wrap_Joystick_HasPOVCTS(PyObject *self, PyObject *args, PyObject *kwargs) {
10823 PyObject *resultobj;
10824 wxJoystick *arg1 = (wxJoystick *) 0 ;
10825 bool result;
10826 PyObject * obj0 = 0 ;
10827 char *kwnames[] = {
10828 (char *) "self", NULL
10829 };
10830
10831 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOVCTS",kwnames,&obj0)) goto fail;
10832 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10833 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10834 {
10835 PyThreadState* __tstate = wxPyBeginAllowThreads();
10836 result = (bool)(arg1)->HasPOVCTS();
10837
10838 wxPyEndAllowThreads(__tstate);
10839 if (PyErr_Occurred()) SWIG_fail;
10840 }
10841 {
10842 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10843 }
10844 return resultobj;
10845 fail:
10846 return NULL;
10847 }
10848
10849
10850 static PyObject *_wrap_Joystick_SetCapture(PyObject *self, PyObject *args, PyObject *kwargs) {
10851 PyObject *resultobj;
10852 wxJoystick *arg1 = (wxJoystick *) 0 ;
10853 wxWindow *arg2 = (wxWindow *) 0 ;
10854 int arg3 = (int) 0 ;
10855 bool result;
10856 PyObject * obj0 = 0 ;
10857 PyObject * obj1 = 0 ;
10858 PyObject * obj2 = 0 ;
10859 char *kwnames[] = {
10860 (char *) "self",(char *) "win",(char *) "pollingFreq", NULL
10861 };
10862
10863 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Joystick_SetCapture",kwnames,&obj0,&obj1,&obj2)) goto fail;
10864 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10865 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10866 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
10867 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10868 if (obj2) {
10869 arg3 = (int) SWIG_AsInt(obj2);
10870 if (PyErr_Occurred()) SWIG_fail;
10871 }
10872 {
10873 PyThreadState* __tstate = wxPyBeginAllowThreads();
10874 result = (bool)(arg1)->SetCapture(arg2,arg3);
10875
10876 wxPyEndAllowThreads(__tstate);
10877 if (PyErr_Occurred()) SWIG_fail;
10878 }
10879 {
10880 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10881 }
10882 return resultobj;
10883 fail:
10884 return NULL;
10885 }
10886
10887
10888 static PyObject *_wrap_Joystick_ReleaseCapture(PyObject *self, PyObject *args, PyObject *kwargs) {
10889 PyObject *resultobj;
10890 wxJoystick *arg1 = (wxJoystick *) 0 ;
10891 bool result;
10892 PyObject * obj0 = 0 ;
10893 char *kwnames[] = {
10894 (char *) "self", NULL
10895 };
10896
10897 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_ReleaseCapture",kwnames,&obj0)) goto fail;
10898 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10899 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10900 {
10901 PyThreadState* __tstate = wxPyBeginAllowThreads();
10902 result = (bool)(arg1)->ReleaseCapture();
10903
10904 wxPyEndAllowThreads(__tstate);
10905 if (PyErr_Occurred()) SWIG_fail;
10906 }
10907 {
10908 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10909 }
10910 return resultobj;
10911 fail:
10912 return NULL;
10913 }
10914
10915
10916 static PyObject * Joystick_swigregister(PyObject *self, PyObject *args) {
10917 PyObject *obj;
10918 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10919 SWIG_TypeClientData(SWIGTYPE_p_wxJoystick, obj);
10920 Py_INCREF(obj);
10921 return Py_BuildValue((char *)"");
10922 }
10923 static PyObject *_wrap_JoystickEvent_m_pos_set(PyObject *self, PyObject *args, PyObject *kwargs) {
10924 PyObject *resultobj;
10925 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10926 wxPoint *arg2 = (wxPoint *) 0 ;
10927 PyObject * obj0 = 0 ;
10928 PyObject * obj1 = 0 ;
10929 char *kwnames[] = {
10930 (char *) "self",(char *) "m_pos", NULL
10931 };
10932
10933 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_pos_set",kwnames,&obj0,&obj1)) goto fail;
10934 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10935 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10936 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPoint,
10937 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10938 if (arg1) (arg1)->m_pos = *arg2;
10939
10940 Py_INCREF(Py_None); resultobj = Py_None;
10941 return resultobj;
10942 fail:
10943 return NULL;
10944 }
10945
10946
10947 static PyObject *_wrap_JoystickEvent_m_pos_get(PyObject *self, PyObject *args, PyObject *kwargs) {
10948 PyObject *resultobj;
10949 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10950 wxPoint *result;
10951 PyObject * obj0 = 0 ;
10952 char *kwnames[] = {
10953 (char *) "self", NULL
10954 };
10955
10956 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_pos_get",kwnames,&obj0)) goto fail;
10957 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10958 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10959 result = (wxPoint *)& ((arg1)->m_pos);
10960
10961 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0);
10962 return resultobj;
10963 fail:
10964 return NULL;
10965 }
10966
10967
10968 static PyObject *_wrap_JoystickEvent_m_zPosition_set(PyObject *self, PyObject *args, PyObject *kwargs) {
10969 PyObject *resultobj;
10970 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10971 int arg2 ;
10972 PyObject * obj0 = 0 ;
10973 PyObject * obj1 = 0 ;
10974 char *kwnames[] = {
10975 (char *) "self",(char *) "m_zPosition", NULL
10976 };
10977
10978 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_zPosition_set",kwnames,&obj0,&obj1)) goto fail;
10979 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10980 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10981 arg2 = (int) SWIG_AsInt(obj1);
10982 if (PyErr_Occurred()) SWIG_fail;
10983 if (arg1) (arg1)->m_zPosition = arg2;
10984
10985 Py_INCREF(Py_None); resultobj = Py_None;
10986 return resultobj;
10987 fail:
10988 return NULL;
10989 }
10990
10991
10992 static PyObject *_wrap_JoystickEvent_m_zPosition_get(PyObject *self, PyObject *args, PyObject *kwargs) {
10993 PyObject *resultobj;
10994 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10995 int result;
10996 PyObject * obj0 = 0 ;
10997 char *kwnames[] = {
10998 (char *) "self", NULL
10999 };
11000
11001 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_zPosition_get",kwnames,&obj0)) goto fail;
11002 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11003 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11004 result = (int) ((arg1)->m_zPosition);
11005
11006 resultobj = SWIG_FromInt((int)result);
11007 return resultobj;
11008 fail:
11009 return NULL;
11010 }
11011
11012
11013 static PyObject *_wrap_JoystickEvent_m_buttonChange_set(PyObject *self, PyObject *args, PyObject *kwargs) {
11014 PyObject *resultobj;
11015 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11016 int arg2 ;
11017 PyObject * obj0 = 0 ;
11018 PyObject * obj1 = 0 ;
11019 char *kwnames[] = {
11020 (char *) "self",(char *) "m_buttonChange", NULL
11021 };
11022
11023 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_buttonChange_set",kwnames,&obj0,&obj1)) goto fail;
11024 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11025 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11026 arg2 = (int) SWIG_AsInt(obj1);
11027 if (PyErr_Occurred()) SWIG_fail;
11028 if (arg1) (arg1)->m_buttonChange = arg2;
11029
11030 Py_INCREF(Py_None); resultobj = Py_None;
11031 return resultobj;
11032 fail:
11033 return NULL;
11034 }
11035
11036
11037 static PyObject *_wrap_JoystickEvent_m_buttonChange_get(PyObject *self, PyObject *args, PyObject *kwargs) {
11038 PyObject *resultobj;
11039 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11040 int result;
11041 PyObject * obj0 = 0 ;
11042 char *kwnames[] = {
11043 (char *) "self", NULL
11044 };
11045
11046 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_buttonChange_get",kwnames,&obj0)) goto fail;
11047 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11048 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11049 result = (int) ((arg1)->m_buttonChange);
11050
11051 resultobj = SWIG_FromInt((int)result);
11052 return resultobj;
11053 fail:
11054 return NULL;
11055 }
11056
11057
11058 static PyObject *_wrap_JoystickEvent_m_buttonState_set(PyObject *self, PyObject *args, PyObject *kwargs) {
11059 PyObject *resultobj;
11060 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11061 int arg2 ;
11062 PyObject * obj0 = 0 ;
11063 PyObject * obj1 = 0 ;
11064 char *kwnames[] = {
11065 (char *) "self",(char *) "m_buttonState", NULL
11066 };
11067
11068 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_buttonState_set",kwnames,&obj0,&obj1)) goto fail;
11069 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11070 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11071 arg2 = (int) SWIG_AsInt(obj1);
11072 if (PyErr_Occurred()) SWIG_fail;
11073 if (arg1) (arg1)->m_buttonState = arg2;
11074
11075 Py_INCREF(Py_None); resultobj = Py_None;
11076 return resultobj;
11077 fail:
11078 return NULL;
11079 }
11080
11081
11082 static PyObject *_wrap_JoystickEvent_m_buttonState_get(PyObject *self, PyObject *args, PyObject *kwargs) {
11083 PyObject *resultobj;
11084 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11085 int result;
11086 PyObject * obj0 = 0 ;
11087 char *kwnames[] = {
11088 (char *) "self", NULL
11089 };
11090
11091 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_buttonState_get",kwnames,&obj0)) goto fail;
11092 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11093 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11094 result = (int) ((arg1)->m_buttonState);
11095
11096 resultobj = SWIG_FromInt((int)result);
11097 return resultobj;
11098 fail:
11099 return NULL;
11100 }
11101
11102
11103 static PyObject *_wrap_JoystickEvent_m_joyStick_set(PyObject *self, PyObject *args, PyObject *kwargs) {
11104 PyObject *resultobj;
11105 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11106 int arg2 ;
11107 PyObject * obj0 = 0 ;
11108 PyObject * obj1 = 0 ;
11109 char *kwnames[] = {
11110 (char *) "self",(char *) "m_joyStick", NULL
11111 };
11112
11113 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_joyStick_set",kwnames,&obj0,&obj1)) goto fail;
11114 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11115 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11116 arg2 = (int) SWIG_AsInt(obj1);
11117 if (PyErr_Occurred()) SWIG_fail;
11118 if (arg1) (arg1)->m_joyStick = arg2;
11119
11120 Py_INCREF(Py_None); resultobj = Py_None;
11121 return resultobj;
11122 fail:
11123 return NULL;
11124 }
11125
11126
11127 static PyObject *_wrap_JoystickEvent_m_joyStick_get(PyObject *self, PyObject *args, PyObject *kwargs) {
11128 PyObject *resultobj;
11129 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11130 int result;
11131 PyObject * obj0 = 0 ;
11132 char *kwnames[] = {
11133 (char *) "self", NULL
11134 };
11135
11136 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_joyStick_get",kwnames,&obj0)) goto fail;
11137 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11138 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11139 result = (int) ((arg1)->m_joyStick);
11140
11141 resultobj = SWIG_FromInt((int)result);
11142 return resultobj;
11143 fail:
11144 return NULL;
11145 }
11146
11147
11148 static PyObject *_wrap_new_JoystickEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
11149 PyObject *resultobj;
11150 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
11151 int arg2 = (int) 0 ;
11152 int arg3 = (int) wxJOYSTICK1 ;
11153 int arg4 = (int) 0 ;
11154 wxJoystickEvent *result;
11155 PyObject * obj0 = 0 ;
11156 PyObject * obj1 = 0 ;
11157 PyObject * obj2 = 0 ;
11158 PyObject * obj3 = 0 ;
11159 char *kwnames[] = {
11160 (char *) "type",(char *) "state",(char *) "joystick",(char *) "change", NULL
11161 };
11162
11163 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_JoystickEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11164 if (obj0) {
11165 arg1 = (wxEventType) SWIG_AsInt(obj0);
11166 if (PyErr_Occurred()) SWIG_fail;
11167 }
11168 if (obj1) {
11169 arg2 = (int) SWIG_AsInt(obj1);
11170 if (PyErr_Occurred()) SWIG_fail;
11171 }
11172 if (obj2) {
11173 arg3 = (int) SWIG_AsInt(obj2);
11174 if (PyErr_Occurred()) SWIG_fail;
11175 }
11176 if (obj3) {
11177 arg4 = (int) SWIG_AsInt(obj3);
11178 if (PyErr_Occurred()) SWIG_fail;
11179 }
11180 {
11181 PyThreadState* __tstate = wxPyBeginAllowThreads();
11182 result = (wxJoystickEvent *)new wxJoystickEvent(arg1,arg2,arg3,arg4);
11183
11184 wxPyEndAllowThreads(__tstate);
11185 if (PyErr_Occurred()) SWIG_fail;
11186 }
11187 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxJoystickEvent, 1);
11188 return resultobj;
11189 fail:
11190 return NULL;
11191 }
11192
11193
11194 static PyObject *_wrap_JoystickEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
11195 PyObject *resultobj;
11196 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11197 wxPoint result;
11198 PyObject * obj0 = 0 ;
11199 char *kwnames[] = {
11200 (char *) "self", NULL
11201 };
11202
11203 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetPosition",kwnames,&obj0)) goto fail;
11204 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11205 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11206 {
11207 PyThreadState* __tstate = wxPyBeginAllowThreads();
11208 result = ((wxJoystickEvent const *)arg1)->GetPosition();
11209
11210 wxPyEndAllowThreads(__tstate);
11211 if (PyErr_Occurred()) SWIG_fail;
11212 }
11213 {
11214 wxPoint * resultptr;
11215 resultptr = new wxPoint((wxPoint &) result);
11216 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
11217 }
11218 return resultobj;
11219 fail:
11220 return NULL;
11221 }
11222
11223
11224 static PyObject *_wrap_JoystickEvent_GetZPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
11225 PyObject *resultobj;
11226 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11227 int result;
11228 PyObject * obj0 = 0 ;
11229 char *kwnames[] = {
11230 (char *) "self", NULL
11231 };
11232
11233 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetZPosition",kwnames,&obj0)) goto fail;
11234 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11235 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11236 {
11237 PyThreadState* __tstate = wxPyBeginAllowThreads();
11238 result = (int)((wxJoystickEvent const *)arg1)->GetZPosition();
11239
11240 wxPyEndAllowThreads(__tstate);
11241 if (PyErr_Occurred()) SWIG_fail;
11242 }
11243 resultobj = SWIG_FromInt((int)result);
11244 return resultobj;
11245 fail:
11246 return NULL;
11247 }
11248
11249
11250 static PyObject *_wrap_JoystickEvent_GetButtonState(PyObject *self, PyObject *args, PyObject *kwargs) {
11251 PyObject *resultobj;
11252 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11253 int result;
11254 PyObject * obj0 = 0 ;
11255 char *kwnames[] = {
11256 (char *) "self", NULL
11257 };
11258
11259 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetButtonState",kwnames,&obj0)) goto fail;
11260 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11261 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11262 {
11263 PyThreadState* __tstate = wxPyBeginAllowThreads();
11264 result = (int)((wxJoystickEvent const *)arg1)->GetButtonState();
11265
11266 wxPyEndAllowThreads(__tstate);
11267 if (PyErr_Occurred()) SWIG_fail;
11268 }
11269 resultobj = SWIG_FromInt((int)result);
11270 return resultobj;
11271 fail:
11272 return NULL;
11273 }
11274
11275
11276 static PyObject *_wrap_JoystickEvent_GetButtonChange(PyObject *self, PyObject *args, PyObject *kwargs) {
11277 PyObject *resultobj;
11278 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11279 int result;
11280 PyObject * obj0 = 0 ;
11281 char *kwnames[] = {
11282 (char *) "self", NULL
11283 };
11284
11285 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetButtonChange",kwnames,&obj0)) goto fail;
11286 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11287 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11288 {
11289 PyThreadState* __tstate = wxPyBeginAllowThreads();
11290 result = (int)((wxJoystickEvent const *)arg1)->GetButtonChange();
11291
11292 wxPyEndAllowThreads(__tstate);
11293 if (PyErr_Occurred()) SWIG_fail;
11294 }
11295 resultobj = SWIG_FromInt((int)result);
11296 return resultobj;
11297 fail:
11298 return NULL;
11299 }
11300
11301
11302 static PyObject *_wrap_JoystickEvent_GetJoystick(PyObject *self, PyObject *args, PyObject *kwargs) {
11303 PyObject *resultobj;
11304 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11305 int result;
11306 PyObject * obj0 = 0 ;
11307 char *kwnames[] = {
11308 (char *) "self", NULL
11309 };
11310
11311 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetJoystick",kwnames,&obj0)) goto fail;
11312 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11313 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11314 {
11315 PyThreadState* __tstate = wxPyBeginAllowThreads();
11316 result = (int)((wxJoystickEvent const *)arg1)->GetJoystick();
11317
11318 wxPyEndAllowThreads(__tstate);
11319 if (PyErr_Occurred()) SWIG_fail;
11320 }
11321 resultobj = SWIG_FromInt((int)result);
11322 return resultobj;
11323 fail:
11324 return NULL;
11325 }
11326
11327
11328 static PyObject *_wrap_JoystickEvent_SetJoystick(PyObject *self, PyObject *args, PyObject *kwargs) {
11329 PyObject *resultobj;
11330 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11331 int arg2 ;
11332 PyObject * obj0 = 0 ;
11333 PyObject * obj1 = 0 ;
11334 char *kwnames[] = {
11335 (char *) "self",(char *) "stick", NULL
11336 };
11337
11338 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetJoystick",kwnames,&obj0,&obj1)) goto fail;
11339 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11340 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11341 arg2 = (int) SWIG_AsInt(obj1);
11342 if (PyErr_Occurred()) SWIG_fail;
11343 {
11344 PyThreadState* __tstate = wxPyBeginAllowThreads();
11345 (arg1)->SetJoystick(arg2);
11346
11347 wxPyEndAllowThreads(__tstate);
11348 if (PyErr_Occurred()) SWIG_fail;
11349 }
11350 Py_INCREF(Py_None); resultobj = Py_None;
11351 return resultobj;
11352 fail:
11353 return NULL;
11354 }
11355
11356
11357 static PyObject *_wrap_JoystickEvent_SetButtonState(PyObject *self, PyObject *args, PyObject *kwargs) {
11358 PyObject *resultobj;
11359 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11360 int arg2 ;
11361 PyObject * obj0 = 0 ;
11362 PyObject * obj1 = 0 ;
11363 char *kwnames[] = {
11364 (char *) "self",(char *) "state", NULL
11365 };
11366
11367 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetButtonState",kwnames,&obj0,&obj1)) goto fail;
11368 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11369 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11370 arg2 = (int) SWIG_AsInt(obj1);
11371 if (PyErr_Occurred()) SWIG_fail;
11372 {
11373 PyThreadState* __tstate = wxPyBeginAllowThreads();
11374 (arg1)->SetButtonState(arg2);
11375
11376 wxPyEndAllowThreads(__tstate);
11377 if (PyErr_Occurred()) SWIG_fail;
11378 }
11379 Py_INCREF(Py_None); resultobj = Py_None;
11380 return resultobj;
11381 fail:
11382 return NULL;
11383 }
11384
11385
11386 static PyObject *_wrap_JoystickEvent_SetButtonChange(PyObject *self, PyObject *args, PyObject *kwargs) {
11387 PyObject *resultobj;
11388 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11389 int arg2 ;
11390 PyObject * obj0 = 0 ;
11391 PyObject * obj1 = 0 ;
11392 char *kwnames[] = {
11393 (char *) "self",(char *) "change", NULL
11394 };
11395
11396 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetButtonChange",kwnames,&obj0,&obj1)) goto fail;
11397 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11398 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11399 arg2 = (int) SWIG_AsInt(obj1);
11400 if (PyErr_Occurred()) SWIG_fail;
11401 {
11402 PyThreadState* __tstate = wxPyBeginAllowThreads();
11403 (arg1)->SetButtonChange(arg2);
11404
11405 wxPyEndAllowThreads(__tstate);
11406 if (PyErr_Occurred()) SWIG_fail;
11407 }
11408 Py_INCREF(Py_None); resultobj = Py_None;
11409 return resultobj;
11410 fail:
11411 return NULL;
11412 }
11413
11414
11415 static PyObject *_wrap_JoystickEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
11416 PyObject *resultobj;
11417 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11418 wxPoint *arg2 = 0 ;
11419 wxPoint temp2 ;
11420 PyObject * obj0 = 0 ;
11421 PyObject * obj1 = 0 ;
11422 char *kwnames[] = {
11423 (char *) "self",(char *) "pos", NULL
11424 };
11425
11426 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail;
11427 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11428 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11429 {
11430 arg2 = &temp2;
11431 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11432 }
11433 {
11434 PyThreadState* __tstate = wxPyBeginAllowThreads();
11435 (arg1)->SetPosition((wxPoint const &)*arg2);
11436
11437 wxPyEndAllowThreads(__tstate);
11438 if (PyErr_Occurred()) SWIG_fail;
11439 }
11440 Py_INCREF(Py_None); resultobj = Py_None;
11441 return resultobj;
11442 fail:
11443 return NULL;
11444 }
11445
11446
11447 static PyObject *_wrap_JoystickEvent_SetZPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
11448 PyObject *resultobj;
11449 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11450 int arg2 ;
11451 PyObject * obj0 = 0 ;
11452 PyObject * obj1 = 0 ;
11453 char *kwnames[] = {
11454 (char *) "self",(char *) "zPos", NULL
11455 };
11456
11457 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetZPosition",kwnames,&obj0,&obj1)) goto fail;
11458 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11459 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11460 arg2 = (int) SWIG_AsInt(obj1);
11461 if (PyErr_Occurred()) SWIG_fail;
11462 {
11463 PyThreadState* __tstate = wxPyBeginAllowThreads();
11464 (arg1)->SetZPosition(arg2);
11465
11466 wxPyEndAllowThreads(__tstate);
11467 if (PyErr_Occurred()) SWIG_fail;
11468 }
11469 Py_INCREF(Py_None); resultobj = Py_None;
11470 return resultobj;
11471 fail:
11472 return NULL;
11473 }
11474
11475
11476 static PyObject *_wrap_JoystickEvent_IsButton(PyObject *self, PyObject *args, PyObject *kwargs) {
11477 PyObject *resultobj;
11478 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11479 bool result;
11480 PyObject * obj0 = 0 ;
11481 char *kwnames[] = {
11482 (char *) "self", NULL
11483 };
11484
11485 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsButton",kwnames,&obj0)) goto fail;
11486 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11487 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11488 {
11489 PyThreadState* __tstate = wxPyBeginAllowThreads();
11490 result = (bool)((wxJoystickEvent const *)arg1)->IsButton();
11491
11492 wxPyEndAllowThreads(__tstate);
11493 if (PyErr_Occurred()) SWIG_fail;
11494 }
11495 {
11496 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11497 }
11498 return resultobj;
11499 fail:
11500 return NULL;
11501 }
11502
11503
11504 static PyObject *_wrap_JoystickEvent_IsMove(PyObject *self, PyObject *args, PyObject *kwargs) {
11505 PyObject *resultobj;
11506 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11507 bool result;
11508 PyObject * obj0 = 0 ;
11509 char *kwnames[] = {
11510 (char *) "self", NULL
11511 };
11512
11513 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsMove",kwnames,&obj0)) goto fail;
11514 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11515 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11516 {
11517 PyThreadState* __tstate = wxPyBeginAllowThreads();
11518 result = (bool)((wxJoystickEvent const *)arg1)->IsMove();
11519
11520 wxPyEndAllowThreads(__tstate);
11521 if (PyErr_Occurred()) SWIG_fail;
11522 }
11523 {
11524 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11525 }
11526 return resultobj;
11527 fail:
11528 return NULL;
11529 }
11530
11531
11532 static PyObject *_wrap_JoystickEvent_IsZMove(PyObject *self, PyObject *args, PyObject *kwargs) {
11533 PyObject *resultobj;
11534 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11535 bool result;
11536 PyObject * obj0 = 0 ;
11537 char *kwnames[] = {
11538 (char *) "self", NULL
11539 };
11540
11541 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsZMove",kwnames,&obj0)) goto fail;
11542 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11543 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11544 {
11545 PyThreadState* __tstate = wxPyBeginAllowThreads();
11546 result = (bool)((wxJoystickEvent const *)arg1)->IsZMove();
11547
11548 wxPyEndAllowThreads(__tstate);
11549 if (PyErr_Occurred()) SWIG_fail;
11550 }
11551 {
11552 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11553 }
11554 return resultobj;
11555 fail:
11556 return NULL;
11557 }
11558
11559
11560 static PyObject *_wrap_JoystickEvent_ButtonDown(PyObject *self, PyObject *args, PyObject *kwargs) {
11561 PyObject *resultobj;
11562 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11563 int arg2 = (int) wxJOY_BUTTON_ANY ;
11564 bool result;
11565 PyObject * obj0 = 0 ;
11566 PyObject * obj1 = 0 ;
11567 char *kwnames[] = {
11568 (char *) "self",(char *) "but", NULL
11569 };
11570
11571 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonDown",kwnames,&obj0,&obj1)) goto fail;
11572 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11573 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11574 if (obj1) {
11575 arg2 = (int) SWIG_AsInt(obj1);
11576 if (PyErr_Occurred()) SWIG_fail;
11577 }
11578 {
11579 PyThreadState* __tstate = wxPyBeginAllowThreads();
11580 result = (bool)((wxJoystickEvent const *)arg1)->ButtonDown(arg2);
11581
11582 wxPyEndAllowThreads(__tstate);
11583 if (PyErr_Occurred()) SWIG_fail;
11584 }
11585 {
11586 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11587 }
11588 return resultobj;
11589 fail:
11590 return NULL;
11591 }
11592
11593
11594 static PyObject *_wrap_JoystickEvent_ButtonUp(PyObject *self, PyObject *args, PyObject *kwargs) {
11595 PyObject *resultobj;
11596 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11597 int arg2 = (int) wxJOY_BUTTON_ANY ;
11598 bool result;
11599 PyObject * obj0 = 0 ;
11600 PyObject * obj1 = 0 ;
11601 char *kwnames[] = {
11602 (char *) "self",(char *) "but", NULL
11603 };
11604
11605 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonUp",kwnames,&obj0,&obj1)) goto fail;
11606 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11607 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11608 if (obj1) {
11609 arg2 = (int) SWIG_AsInt(obj1);
11610 if (PyErr_Occurred()) SWIG_fail;
11611 }
11612 {
11613 PyThreadState* __tstate = wxPyBeginAllowThreads();
11614 result = (bool)((wxJoystickEvent const *)arg1)->ButtonUp(arg2);
11615
11616 wxPyEndAllowThreads(__tstate);
11617 if (PyErr_Occurred()) SWIG_fail;
11618 }
11619 {
11620 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11621 }
11622 return resultobj;
11623 fail:
11624 return NULL;
11625 }
11626
11627
11628 static PyObject *_wrap_JoystickEvent_ButtonIsDown(PyObject *self, PyObject *args, PyObject *kwargs) {
11629 PyObject *resultobj;
11630 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11631 int arg2 = (int) wxJOY_BUTTON_ANY ;
11632 bool result;
11633 PyObject * obj0 = 0 ;
11634 PyObject * obj1 = 0 ;
11635 char *kwnames[] = {
11636 (char *) "self",(char *) "but", NULL
11637 };
11638
11639 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonIsDown",kwnames,&obj0,&obj1)) goto fail;
11640 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11641 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11642 if (obj1) {
11643 arg2 = (int) SWIG_AsInt(obj1);
11644 if (PyErr_Occurred()) SWIG_fail;
11645 }
11646 {
11647 PyThreadState* __tstate = wxPyBeginAllowThreads();
11648 result = (bool)((wxJoystickEvent const *)arg1)->ButtonIsDown(arg2);
11649
11650 wxPyEndAllowThreads(__tstate);
11651 if (PyErr_Occurred()) SWIG_fail;
11652 }
11653 {
11654 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11655 }
11656 return resultobj;
11657 fail:
11658 return NULL;
11659 }
11660
11661
11662 static PyObject * JoystickEvent_swigregister(PyObject *self, PyObject *args) {
11663 PyObject *obj;
11664 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11665 SWIG_TypeClientData(SWIGTYPE_p_wxJoystickEvent, obj);
11666 Py_INCREF(obj);
11667 return Py_BuildValue((char *)"");
11668 }
11669 static PyObject *_wrap_new_Sound(PyObject *self, PyObject *args, PyObject *kwargs) {
11670 PyObject *resultobj;
11671 wxString const &arg1_defvalue = wxPyEmptyString ;
11672 wxString *arg1 = (wxString *) &arg1_defvalue ;
11673 wxSound *result;
11674 bool temp1 = False ;
11675 PyObject * obj0 = 0 ;
11676 char *kwnames[] = {
11677 (char *) "fileName", NULL
11678 };
11679
11680 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Sound",kwnames,&obj0)) goto fail;
11681 if (obj0) {
11682 {
11683 arg1 = wxString_in_helper(obj0);
11684 if (arg1 == NULL) SWIG_fail;
11685 temp1 = True;
11686 }
11687 }
11688 {
11689 if (!wxPyCheckForApp()) SWIG_fail;
11690 PyThreadState* __tstate = wxPyBeginAllowThreads();
11691 result = (wxSound *)new_wxSound((wxString const &)*arg1);
11692
11693 wxPyEndAllowThreads(__tstate);
11694 if (PyErr_Occurred()) SWIG_fail;
11695 }
11696 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSound, 1);
11697 {
11698 if (temp1)
11699 delete arg1;
11700 }
11701 return resultobj;
11702 fail:
11703 {
11704 if (temp1)
11705 delete arg1;
11706 }
11707 return NULL;
11708 }
11709
11710
11711 static PyObject *_wrap_new_SoundFromData(PyObject *self, PyObject *args, PyObject *kwargs) {
11712 PyObject *resultobj;
11713 PyObject *arg1 = (PyObject *) 0 ;
11714 wxSound *result;
11715 PyObject * obj0 = 0 ;
11716 char *kwnames[] = {
11717 (char *) "data", NULL
11718 };
11719
11720 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_SoundFromData",kwnames,&obj0)) goto fail;
11721 arg1 = obj0;
11722 {
11723 if (!wxPyCheckForApp()) SWIG_fail;
11724 PyThreadState* __tstate = wxPyBeginAllowThreads();
11725 result = (wxSound *)new_wxSound(arg1);
11726
11727 wxPyEndAllowThreads(__tstate);
11728 if (PyErr_Occurred()) SWIG_fail;
11729 }
11730 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSound, 1);
11731 return resultobj;
11732 fail:
11733 return NULL;
11734 }
11735
11736
11737 static PyObject *_wrap_delete_Sound(PyObject *self, PyObject *args, PyObject *kwargs) {
11738 PyObject *resultobj;
11739 wxSound *arg1 = (wxSound *) 0 ;
11740 PyObject * obj0 = 0 ;
11741 char *kwnames[] = {
11742 (char *) "self", NULL
11743 };
11744
11745 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Sound",kwnames,&obj0)) goto fail;
11746 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound,
11747 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11748 {
11749 PyThreadState* __tstate = wxPyBeginAllowThreads();
11750 delete arg1;
11751
11752 wxPyEndAllowThreads(__tstate);
11753 if (PyErr_Occurred()) SWIG_fail;
11754 }
11755 Py_INCREF(Py_None); resultobj = Py_None;
11756 return resultobj;
11757 fail:
11758 return NULL;
11759 }
11760
11761
11762 static PyObject *_wrap_Sound_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
11763 PyObject *resultobj;
11764 wxSound *arg1 = (wxSound *) 0 ;
11765 wxString *arg2 = 0 ;
11766 bool result;
11767 bool temp2 = False ;
11768 PyObject * obj0 = 0 ;
11769 PyObject * obj1 = 0 ;
11770 char *kwnames[] = {
11771 (char *) "self",(char *) "fileName", NULL
11772 };
11773
11774 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sound_Create",kwnames,&obj0,&obj1)) goto fail;
11775 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound,
11776 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11777 {
11778 arg2 = wxString_in_helper(obj1);
11779 if (arg2 == NULL) SWIG_fail;
11780 temp2 = True;
11781 }
11782 {
11783 PyThreadState* __tstate = wxPyBeginAllowThreads();
11784 result = (bool)(arg1)->Create((wxString const &)*arg2);
11785
11786 wxPyEndAllowThreads(__tstate);
11787 if (PyErr_Occurred()) SWIG_fail;
11788 }
11789 {
11790 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11791 }
11792 {
11793 if (temp2)
11794 delete arg2;
11795 }
11796 return resultobj;
11797 fail:
11798 {
11799 if (temp2)
11800 delete arg2;
11801 }
11802 return NULL;
11803 }
11804
11805
11806 static PyObject *_wrap_Sound_CreateFromData(PyObject *self, PyObject *args, PyObject *kwargs) {
11807 PyObject *resultobj;
11808 wxSound *arg1 = (wxSound *) 0 ;
11809 PyObject *arg2 = (PyObject *) 0 ;
11810 bool result;
11811 PyObject * obj0 = 0 ;
11812 PyObject * obj1 = 0 ;
11813 char *kwnames[] = {
11814 (char *) "self",(char *) "data", NULL
11815 };
11816
11817 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sound_CreateFromData",kwnames,&obj0,&obj1)) goto fail;
11818 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound,
11819 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11820 arg2 = obj1;
11821 {
11822 PyThreadState* __tstate = wxPyBeginAllowThreads();
11823 result = (bool)wxSound_CreateFromData(arg1,arg2);
11824
11825 wxPyEndAllowThreads(__tstate);
11826 if (PyErr_Occurred()) SWIG_fail;
11827 }
11828 {
11829 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11830 }
11831 return resultobj;
11832 fail:
11833 return NULL;
11834 }
11835
11836
11837 static PyObject *_wrap_Sound_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
11838 PyObject *resultobj;
11839 wxSound *arg1 = (wxSound *) 0 ;
11840 bool result;
11841 PyObject * obj0 = 0 ;
11842 char *kwnames[] = {
11843 (char *) "self", NULL
11844 };
11845
11846 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sound_IsOk",kwnames,&obj0)) goto fail;
11847 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound,
11848 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11849 {
11850 PyThreadState* __tstate = wxPyBeginAllowThreads();
11851 result = (bool)(arg1)->IsOk();
11852
11853 wxPyEndAllowThreads(__tstate);
11854 if (PyErr_Occurred()) SWIG_fail;
11855 }
11856 {
11857 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11858 }
11859 return resultobj;
11860 fail:
11861 return NULL;
11862 }
11863
11864
11865 static PyObject *_wrap_Sound_Play(PyObject *self, PyObject *args, PyObject *kwargs) {
11866 PyObject *resultobj;
11867 wxSound *arg1 = (wxSound *) 0 ;
11868 unsigned int arg2 = (unsigned int) wxSOUND_ASYNC ;
11869 bool result;
11870 PyObject * obj0 = 0 ;
11871 PyObject * obj1 = 0 ;
11872 char *kwnames[] = {
11873 (char *) "self",(char *) "flags", NULL
11874 };
11875
11876 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Sound_Play",kwnames,&obj0,&obj1)) goto fail;
11877 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound,
11878 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11879 if (obj1) {
11880 arg2 = (unsigned int) SWIG_AsUnsignedInt(obj1);
11881 if (PyErr_Occurred()) SWIG_fail;
11882 }
11883 {
11884 if (!wxPyCheckForApp()) SWIG_fail;
11885 PyThreadState* __tstate = wxPyBeginAllowThreads();
11886 result = (bool)((wxSound const *)arg1)->Play(arg2);
11887
11888 wxPyEndAllowThreads(__tstate);
11889 if (PyErr_Occurred()) SWIG_fail;
11890 }
11891 {
11892 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11893 }
11894 return resultobj;
11895 fail:
11896 return NULL;
11897 }
11898
11899
11900 static PyObject *_wrap_Sound_PlaySound(PyObject *self, PyObject *args, PyObject *kwargs) {
11901 PyObject *resultobj;
11902 wxString *arg1 = 0 ;
11903 unsigned int arg2 = (unsigned int) wxSOUND_ASYNC ;
11904 bool result;
11905 bool temp1 = False ;
11906 PyObject * obj0 = 0 ;
11907 PyObject * obj1 = 0 ;
11908 char *kwnames[] = {
11909 (char *) "filename",(char *) "flags", NULL
11910 };
11911
11912 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Sound_PlaySound",kwnames,&obj0,&obj1)) goto fail;
11913 {
11914 arg1 = wxString_in_helper(obj0);
11915 if (arg1 == NULL) SWIG_fail;
11916 temp1 = True;
11917 }
11918 if (obj1) {
11919 arg2 = (unsigned int) SWIG_AsUnsignedInt(obj1);
11920 if (PyErr_Occurred()) SWIG_fail;
11921 }
11922 {
11923 if (!wxPyCheckForApp()) SWIG_fail;
11924 PyThreadState* __tstate = wxPyBeginAllowThreads();
11925 result = (bool)wxSound::Play((wxString const &)*arg1,arg2);
11926
11927 wxPyEndAllowThreads(__tstate);
11928 if (PyErr_Occurred()) SWIG_fail;
11929 }
11930 {
11931 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11932 }
11933 {
11934 if (temp1)
11935 delete arg1;
11936 }
11937 return resultobj;
11938 fail:
11939 {
11940 if (temp1)
11941 delete arg1;
11942 }
11943 return NULL;
11944 }
11945
11946
11947 static PyObject *_wrap_Sound_Stop(PyObject *self, PyObject *args, PyObject *kwargs) {
11948 PyObject *resultobj;
11949 char *kwnames[] = {
11950 NULL
11951 };
11952
11953 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Sound_Stop",kwnames)) goto fail;
11954 {
11955 if (!wxPyCheckForApp()) SWIG_fail;
11956 PyThreadState* __tstate = wxPyBeginAllowThreads();
11957 wxSound::Stop();
11958
11959 wxPyEndAllowThreads(__tstate);
11960 if (PyErr_Occurred()) SWIG_fail;
11961 }
11962 Py_INCREF(Py_None); resultobj = Py_None;
11963 return resultobj;
11964 fail:
11965 return NULL;
11966 }
11967
11968
11969 static PyObject * Sound_swigregister(PyObject *self, PyObject *args) {
11970 PyObject *obj;
11971 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11972 SWIG_TypeClientData(SWIGTYPE_p_wxSound, obj);
11973 Py_INCREF(obj);
11974 return Py_BuildValue((char *)"");
11975 }
11976 static PyObject *_wrap_new_FileTypeInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
11977 PyObject *resultobj;
11978 wxString *arg1 = 0 ;
11979 wxString *arg2 = 0 ;
11980 wxString *arg3 = 0 ;
11981 wxString *arg4 = 0 ;
11982 wxFileTypeInfo *result;
11983 bool temp1 = False ;
11984 bool temp2 = False ;
11985 bool temp3 = False ;
11986 bool temp4 = False ;
11987 PyObject * obj0 = 0 ;
11988 PyObject * obj1 = 0 ;
11989 PyObject * obj2 = 0 ;
11990 PyObject * obj3 = 0 ;
11991 char *kwnames[] = {
11992 (char *) "mimeType",(char *) "openCmd",(char *) "printCmd",(char *) "desc", NULL
11993 };
11994
11995 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_FileTypeInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11996 {
11997 arg1 = wxString_in_helper(obj0);
11998 if (arg1 == NULL) SWIG_fail;
11999 temp1 = True;
12000 }
12001 {
12002 arg2 = wxString_in_helper(obj1);
12003 if (arg2 == NULL) SWIG_fail;
12004 temp2 = True;
12005 }
12006 {
12007 arg3 = wxString_in_helper(obj2);
12008 if (arg3 == NULL) SWIG_fail;
12009 temp3 = True;
12010 }
12011 {
12012 arg4 = wxString_in_helper(obj3);
12013 if (arg4 == NULL) SWIG_fail;
12014 temp4 = True;
12015 }
12016 {
12017 PyThreadState* __tstate = wxPyBeginAllowThreads();
12018 result = (wxFileTypeInfo *)new wxFileTypeInfo((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4);
12019
12020 wxPyEndAllowThreads(__tstate);
12021 if (PyErr_Occurred()) SWIG_fail;
12022 }
12023 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileTypeInfo, 1);
12024 {
12025 if (temp1)
12026 delete arg1;
12027 }
12028 {
12029 if (temp2)
12030 delete arg2;
12031 }
12032 {
12033 if (temp3)
12034 delete arg3;
12035 }
12036 {
12037 if (temp4)
12038 delete arg4;
12039 }
12040 return resultobj;
12041 fail:
12042 {
12043 if (temp1)
12044 delete arg1;
12045 }
12046 {
12047 if (temp2)
12048 delete arg2;
12049 }
12050 {
12051 if (temp3)
12052 delete arg3;
12053 }
12054 {
12055 if (temp4)
12056 delete arg4;
12057 }
12058 return NULL;
12059 }
12060
12061
12062 static PyObject *_wrap_new_FileTypeInfoSequence(PyObject *self, PyObject *args, PyObject *kwargs) {
12063 PyObject *resultobj;
12064 wxArrayString *arg1 = 0 ;
12065 wxFileTypeInfo *result;
12066 bool temp1 = False ;
12067 PyObject * obj0 = 0 ;
12068 char *kwnames[] = {
12069 (char *) "sArray", NULL
12070 };
12071
12072 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FileTypeInfoSequence",kwnames,&obj0)) goto fail;
12073 {
12074 if (! PySequence_Check(obj0)) {
12075 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
12076 SWIG_fail;
12077 }
12078 arg1 = new wxArrayString;
12079 temp1 = True;
12080 int i, len=PySequence_Length(obj0);
12081 for (i=0; i<len; i++) {
12082 PyObject* item = PySequence_GetItem(obj0, i);
12083 #if wxUSE_UNICODE
12084 PyObject* str = PyObject_Unicode(item);
12085 #else
12086 PyObject* str = PyObject_Str(item);
12087 #endif
12088 if (PyErr_Occurred()) SWIG_fail;
12089 arg1->Add(Py2wxString(str));
12090 Py_DECREF(item);
12091 Py_DECREF(str);
12092 }
12093 }
12094 {
12095 PyThreadState* __tstate = wxPyBeginAllowThreads();
12096 result = (wxFileTypeInfo *)new wxFileTypeInfo((wxArrayString const &)*arg1);
12097
12098 wxPyEndAllowThreads(__tstate);
12099 if (PyErr_Occurred()) SWIG_fail;
12100 }
12101 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileTypeInfo, 1);
12102 {
12103 if (temp1) delete arg1;
12104 }
12105 return resultobj;
12106 fail:
12107 {
12108 if (temp1) delete arg1;
12109 }
12110 return NULL;
12111 }
12112
12113
12114 static PyObject *_wrap_new_NullFileTypeInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
12115 PyObject *resultobj;
12116 wxFileTypeInfo *result;
12117 char *kwnames[] = {
12118 NULL
12119 };
12120
12121 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NullFileTypeInfo",kwnames)) goto fail;
12122 {
12123 PyThreadState* __tstate = wxPyBeginAllowThreads();
12124 result = (wxFileTypeInfo *)new wxFileTypeInfo();
12125
12126 wxPyEndAllowThreads(__tstate);
12127 if (PyErr_Occurred()) SWIG_fail;
12128 }
12129 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileTypeInfo, 1);
12130 return resultobj;
12131 fail:
12132 return NULL;
12133 }
12134
12135
12136 static PyObject *_wrap_FileTypeInfo_IsValid(PyObject *self, PyObject *args, PyObject *kwargs) {
12137 PyObject *resultobj;
12138 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12139 bool result;
12140 PyObject * obj0 = 0 ;
12141 char *kwnames[] = {
12142 (char *) "self", NULL
12143 };
12144
12145 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_IsValid",kwnames,&obj0)) goto fail;
12146 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12147 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12148 {
12149 PyThreadState* __tstate = wxPyBeginAllowThreads();
12150 result = (bool)((wxFileTypeInfo const *)arg1)->IsValid();
12151
12152 wxPyEndAllowThreads(__tstate);
12153 if (PyErr_Occurred()) SWIG_fail;
12154 }
12155 {
12156 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12157 }
12158 return resultobj;
12159 fail:
12160 return NULL;
12161 }
12162
12163
12164 static PyObject *_wrap_FileTypeInfo_SetIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
12165 PyObject *resultobj;
12166 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12167 wxString *arg2 = 0 ;
12168 int arg3 = (int) 0 ;
12169 bool temp2 = False ;
12170 PyObject * obj0 = 0 ;
12171 PyObject * obj1 = 0 ;
12172 PyObject * obj2 = 0 ;
12173 char *kwnames[] = {
12174 (char *) "self",(char *) "iconFile",(char *) "iconIndex", NULL
12175 };
12176
12177 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileTypeInfo_SetIcon",kwnames,&obj0,&obj1,&obj2)) goto fail;
12178 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12179 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12180 {
12181 arg2 = wxString_in_helper(obj1);
12182 if (arg2 == NULL) SWIG_fail;
12183 temp2 = True;
12184 }
12185 if (obj2) {
12186 arg3 = (int) SWIG_AsInt(obj2);
12187 if (PyErr_Occurred()) SWIG_fail;
12188 }
12189 {
12190 PyThreadState* __tstate = wxPyBeginAllowThreads();
12191 (arg1)->SetIcon((wxString const &)*arg2,arg3);
12192
12193 wxPyEndAllowThreads(__tstate);
12194 if (PyErr_Occurred()) SWIG_fail;
12195 }
12196 Py_INCREF(Py_None); resultobj = Py_None;
12197 {
12198 if (temp2)
12199 delete arg2;
12200 }
12201 return resultobj;
12202 fail:
12203 {
12204 if (temp2)
12205 delete arg2;
12206 }
12207 return NULL;
12208 }
12209
12210
12211 static PyObject *_wrap_FileTypeInfo_SetShortDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
12212 PyObject *resultobj;
12213 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12214 wxString *arg2 = 0 ;
12215 bool temp2 = False ;
12216 PyObject * obj0 = 0 ;
12217 PyObject * obj1 = 0 ;
12218 char *kwnames[] = {
12219 (char *) "self",(char *) "shortDesc", NULL
12220 };
12221
12222 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileTypeInfo_SetShortDesc",kwnames,&obj0,&obj1)) goto fail;
12223 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12224 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12225 {
12226 arg2 = wxString_in_helper(obj1);
12227 if (arg2 == NULL) SWIG_fail;
12228 temp2 = True;
12229 }
12230 {
12231 PyThreadState* __tstate = wxPyBeginAllowThreads();
12232 (arg1)->SetShortDesc((wxString const &)*arg2);
12233
12234 wxPyEndAllowThreads(__tstate);
12235 if (PyErr_Occurred()) SWIG_fail;
12236 }
12237 Py_INCREF(Py_None); resultobj = Py_None;
12238 {
12239 if (temp2)
12240 delete arg2;
12241 }
12242 return resultobj;
12243 fail:
12244 {
12245 if (temp2)
12246 delete arg2;
12247 }
12248 return NULL;
12249 }
12250
12251
12252 static PyObject *_wrap_FileTypeInfo_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) {
12253 PyObject *resultobj;
12254 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12255 wxString *result;
12256 PyObject * obj0 = 0 ;
12257 char *kwnames[] = {
12258 (char *) "self", NULL
12259 };
12260
12261 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetMimeType",kwnames,&obj0)) goto fail;
12262 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12263 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12264 {
12265 PyThreadState* __tstate = wxPyBeginAllowThreads();
12266 {
12267 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetMimeType();
12268 result = (wxString *) &_result_ref;
12269 }
12270
12271 wxPyEndAllowThreads(__tstate);
12272 if (PyErr_Occurred()) SWIG_fail;
12273 }
12274 {
12275 #if wxUSE_UNICODE
12276 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12277 #else
12278 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12279 #endif
12280 }
12281 return resultobj;
12282 fail:
12283 return NULL;
12284 }
12285
12286
12287 static PyObject *_wrap_FileTypeInfo_GetOpenCommand(PyObject *self, PyObject *args, PyObject *kwargs) {
12288 PyObject *resultobj;
12289 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12290 wxString *result;
12291 PyObject * obj0 = 0 ;
12292 char *kwnames[] = {
12293 (char *) "self", NULL
12294 };
12295
12296 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetOpenCommand",kwnames,&obj0)) goto fail;
12297 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12298 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12299 {
12300 PyThreadState* __tstate = wxPyBeginAllowThreads();
12301 {
12302 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetOpenCommand();
12303 result = (wxString *) &_result_ref;
12304 }
12305
12306 wxPyEndAllowThreads(__tstate);
12307 if (PyErr_Occurred()) SWIG_fail;
12308 }
12309 {
12310 #if wxUSE_UNICODE
12311 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12312 #else
12313 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12314 #endif
12315 }
12316 return resultobj;
12317 fail:
12318 return NULL;
12319 }
12320
12321
12322 static PyObject *_wrap_FileTypeInfo_GetPrintCommand(PyObject *self, PyObject *args, PyObject *kwargs) {
12323 PyObject *resultobj;
12324 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12325 wxString *result;
12326 PyObject * obj0 = 0 ;
12327 char *kwnames[] = {
12328 (char *) "self", NULL
12329 };
12330
12331 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetPrintCommand",kwnames,&obj0)) goto fail;
12332 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12333 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12334 {
12335 PyThreadState* __tstate = wxPyBeginAllowThreads();
12336 {
12337 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetPrintCommand();
12338 result = (wxString *) &_result_ref;
12339 }
12340
12341 wxPyEndAllowThreads(__tstate);
12342 if (PyErr_Occurred()) SWIG_fail;
12343 }
12344 {
12345 #if wxUSE_UNICODE
12346 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12347 #else
12348 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12349 #endif
12350 }
12351 return resultobj;
12352 fail:
12353 return NULL;
12354 }
12355
12356
12357 static PyObject *_wrap_FileTypeInfo_GetShortDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
12358 PyObject *resultobj;
12359 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12360 wxString *result;
12361 PyObject * obj0 = 0 ;
12362 char *kwnames[] = {
12363 (char *) "self", NULL
12364 };
12365
12366 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetShortDesc",kwnames,&obj0)) goto fail;
12367 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12368 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12369 {
12370 PyThreadState* __tstate = wxPyBeginAllowThreads();
12371 {
12372 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetShortDesc();
12373 result = (wxString *) &_result_ref;
12374 }
12375
12376 wxPyEndAllowThreads(__tstate);
12377 if (PyErr_Occurred()) SWIG_fail;
12378 }
12379 {
12380 #if wxUSE_UNICODE
12381 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12382 #else
12383 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12384 #endif
12385 }
12386 return resultobj;
12387 fail:
12388 return NULL;
12389 }
12390
12391
12392 static PyObject *_wrap_FileTypeInfo_GetDescription(PyObject *self, PyObject *args, PyObject *kwargs) {
12393 PyObject *resultobj;
12394 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12395 wxString *result;
12396 PyObject * obj0 = 0 ;
12397 char *kwnames[] = {
12398 (char *) "self", NULL
12399 };
12400
12401 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetDescription",kwnames,&obj0)) goto fail;
12402 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12403 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12404 {
12405 PyThreadState* __tstate = wxPyBeginAllowThreads();
12406 {
12407 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetDescription();
12408 result = (wxString *) &_result_ref;
12409 }
12410
12411 wxPyEndAllowThreads(__tstate);
12412 if (PyErr_Occurred()) SWIG_fail;
12413 }
12414 {
12415 #if wxUSE_UNICODE
12416 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12417 #else
12418 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12419 #endif
12420 }
12421 return resultobj;
12422 fail:
12423 return NULL;
12424 }
12425
12426
12427 static PyObject *_wrap_FileTypeInfo_GetExtensions(PyObject *self, PyObject *args, PyObject *kwargs) {
12428 PyObject *resultobj;
12429 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12430 wxArrayString *result;
12431 PyObject * obj0 = 0 ;
12432 char *kwnames[] = {
12433 (char *) "self", NULL
12434 };
12435
12436 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetExtensions",kwnames,&obj0)) goto fail;
12437 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12438 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12439 {
12440 PyThreadState* __tstate = wxPyBeginAllowThreads();
12441 {
12442 wxArrayString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetExtensions();
12443 result = (wxArrayString *) &_result_ref;
12444 }
12445
12446 wxPyEndAllowThreads(__tstate);
12447 if (PyErr_Occurred()) SWIG_fail;
12448 }
12449 {
12450 resultobj = wxArrayString2PyList_helper(*result);
12451 }
12452 return resultobj;
12453 fail:
12454 return NULL;
12455 }
12456
12457
12458 static PyObject *_wrap_FileTypeInfo_GetExtensionsCount(PyObject *self, PyObject *args, PyObject *kwargs) {
12459 PyObject *resultobj;
12460 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12461 int result;
12462 PyObject * obj0 = 0 ;
12463 char *kwnames[] = {
12464 (char *) "self", NULL
12465 };
12466
12467 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetExtensionsCount",kwnames,&obj0)) goto fail;
12468 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12469 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12470 {
12471 PyThreadState* __tstate = wxPyBeginAllowThreads();
12472 result = (int)((wxFileTypeInfo const *)arg1)->GetExtensionsCount();
12473
12474 wxPyEndAllowThreads(__tstate);
12475 if (PyErr_Occurred()) SWIG_fail;
12476 }
12477 resultobj = SWIG_FromInt((int)result);
12478 return resultobj;
12479 fail:
12480 return NULL;
12481 }
12482
12483
12484 static PyObject *_wrap_FileTypeInfo_GetIconFile(PyObject *self, PyObject *args, PyObject *kwargs) {
12485 PyObject *resultobj;
12486 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12487 wxString *result;
12488 PyObject * obj0 = 0 ;
12489 char *kwnames[] = {
12490 (char *) "self", NULL
12491 };
12492
12493 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetIconFile",kwnames,&obj0)) goto fail;
12494 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12495 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12496 {
12497 PyThreadState* __tstate = wxPyBeginAllowThreads();
12498 {
12499 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetIconFile();
12500 result = (wxString *) &_result_ref;
12501 }
12502
12503 wxPyEndAllowThreads(__tstate);
12504 if (PyErr_Occurred()) SWIG_fail;
12505 }
12506 {
12507 #if wxUSE_UNICODE
12508 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12509 #else
12510 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12511 #endif
12512 }
12513 return resultobj;
12514 fail:
12515 return NULL;
12516 }
12517
12518
12519 static PyObject *_wrap_FileTypeInfo_GetIconIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
12520 PyObject *resultobj;
12521 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12522 int result;
12523 PyObject * obj0 = 0 ;
12524 char *kwnames[] = {
12525 (char *) "self", NULL
12526 };
12527
12528 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetIconIndex",kwnames,&obj0)) goto fail;
12529 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12530 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12531 {
12532 PyThreadState* __tstate = wxPyBeginAllowThreads();
12533 result = (int)((wxFileTypeInfo const *)arg1)->GetIconIndex();
12534
12535 wxPyEndAllowThreads(__tstate);
12536 if (PyErr_Occurred()) SWIG_fail;
12537 }
12538 resultobj = SWIG_FromInt((int)result);
12539 return resultobj;
12540 fail:
12541 return NULL;
12542 }
12543
12544
12545 static PyObject * FileTypeInfo_swigregister(PyObject *self, PyObject *args) {
12546 PyObject *obj;
12547 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
12548 SWIG_TypeClientData(SWIGTYPE_p_wxFileTypeInfo, obj);
12549 Py_INCREF(obj);
12550 return Py_BuildValue((char *)"");
12551 }
12552 static PyObject *_wrap_new_FileType(PyObject *self, PyObject *args, PyObject *kwargs) {
12553 PyObject *resultobj;
12554 wxFileTypeInfo *arg1 = 0 ;
12555 wxFileType *result;
12556 PyObject * obj0 = 0 ;
12557 char *kwnames[] = {
12558 (char *) "ftInfo", NULL
12559 };
12560
12561 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FileType",kwnames,&obj0)) goto fail;
12562 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12563 SWIG_POINTER_EXCEPTION | 0)) == -1)
12564 SWIG_fail;
12565 if (arg1 == NULL) {
12566 PyErr_SetString(PyExc_TypeError,"null reference");
12567 SWIG_fail;
12568 }
12569 {
12570 PyThreadState* __tstate = wxPyBeginAllowThreads();
12571 result = (wxFileType *)new wxFileType((wxFileTypeInfo const &)*arg1);
12572
12573 wxPyEndAllowThreads(__tstate);
12574 if (PyErr_Occurred()) SWIG_fail;
12575 }
12576 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1);
12577 return resultobj;
12578 fail:
12579 return NULL;
12580 }
12581
12582
12583 static PyObject *_wrap_delete_FileType(PyObject *self, PyObject *args, PyObject *kwargs) {
12584 PyObject *resultobj;
12585 wxFileType *arg1 = (wxFileType *) 0 ;
12586 PyObject * obj0 = 0 ;
12587 char *kwnames[] = {
12588 (char *) "self", NULL
12589 };
12590
12591 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileType",kwnames,&obj0)) goto fail;
12592 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12593 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12594 {
12595 PyThreadState* __tstate = wxPyBeginAllowThreads();
12596 delete arg1;
12597
12598 wxPyEndAllowThreads(__tstate);
12599 if (PyErr_Occurred()) SWIG_fail;
12600 }
12601 Py_INCREF(Py_None); resultobj = Py_None;
12602 return resultobj;
12603 fail:
12604 return NULL;
12605 }
12606
12607
12608 static PyObject *_wrap_FileType_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) {
12609 PyObject *resultobj;
12610 wxFileType *arg1 = (wxFileType *) 0 ;
12611 PyObject *result;
12612 PyObject * obj0 = 0 ;
12613 char *kwnames[] = {
12614 (char *) "self", NULL
12615 };
12616
12617 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetMimeType",kwnames,&obj0)) goto fail;
12618 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12619 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12620 {
12621 PyThreadState* __tstate = wxPyBeginAllowThreads();
12622 result = (PyObject *)wxFileType_GetMimeType(arg1);
12623
12624 wxPyEndAllowThreads(__tstate);
12625 if (PyErr_Occurred()) SWIG_fail;
12626 }
12627 resultobj = result;
12628 return resultobj;
12629 fail:
12630 return NULL;
12631 }
12632
12633
12634 static PyObject *_wrap_FileType_GetMimeTypes(PyObject *self, PyObject *args, PyObject *kwargs) {
12635 PyObject *resultobj;
12636 wxFileType *arg1 = (wxFileType *) 0 ;
12637 PyObject *result;
12638 PyObject * obj0 = 0 ;
12639 char *kwnames[] = {
12640 (char *) "self", NULL
12641 };
12642
12643 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetMimeTypes",kwnames,&obj0)) goto fail;
12644 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12645 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12646 {
12647 PyThreadState* __tstate = wxPyBeginAllowThreads();
12648 result = (PyObject *)wxFileType_GetMimeTypes(arg1);
12649
12650 wxPyEndAllowThreads(__tstate);
12651 if (PyErr_Occurred()) SWIG_fail;
12652 }
12653 resultobj = result;
12654 return resultobj;
12655 fail:
12656 return NULL;
12657 }
12658
12659
12660 static PyObject *_wrap_FileType_GetExtensions(PyObject *self, PyObject *args, PyObject *kwargs) {
12661 PyObject *resultobj;
12662 wxFileType *arg1 = (wxFileType *) 0 ;
12663 PyObject *result;
12664 PyObject * obj0 = 0 ;
12665 char *kwnames[] = {
12666 (char *) "self", NULL
12667 };
12668
12669 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetExtensions",kwnames,&obj0)) goto fail;
12670 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12671 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12672 {
12673 PyThreadState* __tstate = wxPyBeginAllowThreads();
12674 result = (PyObject *)wxFileType_GetExtensions(arg1);
12675
12676 wxPyEndAllowThreads(__tstate);
12677 if (PyErr_Occurred()) SWIG_fail;
12678 }
12679 resultobj = result;
12680 return resultobj;
12681 fail:
12682 return NULL;
12683 }
12684
12685
12686 static PyObject *_wrap_FileType_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
12687 PyObject *resultobj;
12688 wxFileType *arg1 = (wxFileType *) 0 ;
12689 wxIcon *result;
12690 PyObject * obj0 = 0 ;
12691 char *kwnames[] = {
12692 (char *) "self", NULL
12693 };
12694
12695 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetIcon",kwnames,&obj0)) goto fail;
12696 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12697 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12698 {
12699 PyThreadState* __tstate = wxPyBeginAllowThreads();
12700 result = (wxIcon *)wxFileType_GetIcon(arg1);
12701
12702 wxPyEndAllowThreads(__tstate);
12703 if (PyErr_Occurred()) SWIG_fail;
12704 }
12705 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
12706 return resultobj;
12707 fail:
12708 return NULL;
12709 }
12710
12711
12712 static PyObject *_wrap_FileType_GetIconInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
12713 PyObject *resultobj;
12714 wxFileType *arg1 = (wxFileType *) 0 ;
12715 PyObject *result;
12716 PyObject * obj0 = 0 ;
12717 char *kwnames[] = {
12718 (char *) "self", NULL
12719 };
12720
12721 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetIconInfo",kwnames,&obj0)) goto fail;
12722 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12723 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12724 {
12725 PyThreadState* __tstate = wxPyBeginAllowThreads();
12726 result = (PyObject *)wxFileType_GetIconInfo(arg1);
12727
12728 wxPyEndAllowThreads(__tstate);
12729 if (PyErr_Occurred()) SWIG_fail;
12730 }
12731 resultobj = result;
12732 return resultobj;
12733 fail:
12734 return NULL;
12735 }
12736
12737
12738 static PyObject *_wrap_FileType_GetDescription(PyObject *self, PyObject *args, PyObject *kwargs) {
12739 PyObject *resultobj;
12740 wxFileType *arg1 = (wxFileType *) 0 ;
12741 PyObject *result;
12742 PyObject * obj0 = 0 ;
12743 char *kwnames[] = {
12744 (char *) "self", NULL
12745 };
12746
12747 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetDescription",kwnames,&obj0)) goto fail;
12748 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12749 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12750 {
12751 PyThreadState* __tstate = wxPyBeginAllowThreads();
12752 result = (PyObject *)wxFileType_GetDescription(arg1);
12753
12754 wxPyEndAllowThreads(__tstate);
12755 if (PyErr_Occurred()) SWIG_fail;
12756 }
12757 resultobj = result;
12758 return resultobj;
12759 fail:
12760 return NULL;
12761 }
12762
12763
12764 static PyObject *_wrap_FileType_GetOpenCommand(PyObject *self, PyObject *args, PyObject *kwargs) {
12765 PyObject *resultobj;
12766 wxFileType *arg1 = (wxFileType *) 0 ;
12767 wxString *arg2 = 0 ;
12768 wxString const &arg3_defvalue = wxPyEmptyString ;
12769 wxString *arg3 = (wxString *) &arg3_defvalue ;
12770 PyObject *result;
12771 bool temp2 = False ;
12772 bool temp3 = False ;
12773 PyObject * obj0 = 0 ;
12774 PyObject * obj1 = 0 ;
12775 PyObject * obj2 = 0 ;
12776 char *kwnames[] = {
12777 (char *) "self",(char *) "filename",(char *) "mimetype", NULL
12778 };
12779
12780 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetOpenCommand",kwnames,&obj0,&obj1,&obj2)) goto fail;
12781 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12782 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12783 {
12784 arg2 = wxString_in_helper(obj1);
12785 if (arg2 == NULL) SWIG_fail;
12786 temp2 = True;
12787 }
12788 if (obj2) {
12789 {
12790 arg3 = wxString_in_helper(obj2);
12791 if (arg3 == NULL) SWIG_fail;
12792 temp3 = True;
12793 }
12794 }
12795 {
12796 PyThreadState* __tstate = wxPyBeginAllowThreads();
12797 result = (PyObject *)wxFileType_GetOpenCommand(arg1,(wxString const &)*arg2,(wxString const &)*arg3);
12798
12799 wxPyEndAllowThreads(__tstate);
12800 if (PyErr_Occurred()) SWIG_fail;
12801 }
12802 resultobj = result;
12803 {
12804 if (temp2)
12805 delete arg2;
12806 }
12807 {
12808 if (temp3)
12809 delete arg3;
12810 }
12811 return resultobj;
12812 fail:
12813 {
12814 if (temp2)
12815 delete arg2;
12816 }
12817 {
12818 if (temp3)
12819 delete arg3;
12820 }
12821 return NULL;
12822 }
12823
12824
12825 static PyObject *_wrap_FileType_GetPrintCommand(PyObject *self, PyObject *args, PyObject *kwargs) {
12826 PyObject *resultobj;
12827 wxFileType *arg1 = (wxFileType *) 0 ;
12828 wxString *arg2 = 0 ;
12829 wxString const &arg3_defvalue = wxPyEmptyString ;
12830 wxString *arg3 = (wxString *) &arg3_defvalue ;
12831 PyObject *result;
12832 bool temp2 = False ;
12833 bool temp3 = False ;
12834 PyObject * obj0 = 0 ;
12835 PyObject * obj1 = 0 ;
12836 PyObject * obj2 = 0 ;
12837 char *kwnames[] = {
12838 (char *) "self",(char *) "filename",(char *) "mimetype", NULL
12839 };
12840
12841 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetPrintCommand",kwnames,&obj0,&obj1,&obj2)) goto fail;
12842 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12843 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12844 {
12845 arg2 = wxString_in_helper(obj1);
12846 if (arg2 == NULL) SWIG_fail;
12847 temp2 = True;
12848 }
12849 if (obj2) {
12850 {
12851 arg3 = wxString_in_helper(obj2);
12852 if (arg3 == NULL) SWIG_fail;
12853 temp3 = True;
12854 }
12855 }
12856 {
12857 PyThreadState* __tstate = wxPyBeginAllowThreads();
12858 result = (PyObject *)wxFileType_GetPrintCommand(arg1,(wxString const &)*arg2,(wxString const &)*arg3);
12859
12860 wxPyEndAllowThreads(__tstate);
12861 if (PyErr_Occurred()) SWIG_fail;
12862 }
12863 resultobj = result;
12864 {
12865 if (temp2)
12866 delete arg2;
12867 }
12868 {
12869 if (temp3)
12870 delete arg3;
12871 }
12872 return resultobj;
12873 fail:
12874 {
12875 if (temp2)
12876 delete arg2;
12877 }
12878 {
12879 if (temp3)
12880 delete arg3;
12881 }
12882 return NULL;
12883 }
12884
12885
12886 static PyObject *_wrap_FileType_GetAllCommands(PyObject *self, PyObject *args, PyObject *kwargs) {
12887 PyObject *resultobj;
12888 wxFileType *arg1 = (wxFileType *) 0 ;
12889 wxString *arg2 = 0 ;
12890 wxString const &arg3_defvalue = wxPyEmptyString ;
12891 wxString *arg3 = (wxString *) &arg3_defvalue ;
12892 PyObject *result;
12893 bool temp2 = False ;
12894 bool temp3 = False ;
12895 PyObject * obj0 = 0 ;
12896 PyObject * obj1 = 0 ;
12897 PyObject * obj2 = 0 ;
12898 char *kwnames[] = {
12899 (char *) "self",(char *) "filename",(char *) "mimetype", NULL
12900 };
12901
12902 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetAllCommands",kwnames,&obj0,&obj1,&obj2)) goto fail;
12903 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12904 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12905 {
12906 arg2 = wxString_in_helper(obj1);
12907 if (arg2 == NULL) SWIG_fail;
12908 temp2 = True;
12909 }
12910 if (obj2) {
12911 {
12912 arg3 = wxString_in_helper(obj2);
12913 if (arg3 == NULL) SWIG_fail;
12914 temp3 = True;
12915 }
12916 }
12917 {
12918 PyThreadState* __tstate = wxPyBeginAllowThreads();
12919 result = (PyObject *)wxFileType_GetAllCommands(arg1,(wxString const &)*arg2,(wxString const &)*arg3);
12920
12921 wxPyEndAllowThreads(__tstate);
12922 if (PyErr_Occurred()) SWIG_fail;
12923 }
12924 resultobj = result;
12925 {
12926 if (temp2)
12927 delete arg2;
12928 }
12929 {
12930 if (temp3)
12931 delete arg3;
12932 }
12933 return resultobj;
12934 fail:
12935 {
12936 if (temp2)
12937 delete arg2;
12938 }
12939 {
12940 if (temp3)
12941 delete arg3;
12942 }
12943 return NULL;
12944 }
12945
12946
12947 static PyObject *_wrap_FileType_SetCommand(PyObject *self, PyObject *args, PyObject *kwargs) {
12948 PyObject *resultobj;
12949 wxFileType *arg1 = (wxFileType *) 0 ;
12950 wxString *arg2 = 0 ;
12951 wxString *arg3 = 0 ;
12952 bool arg4 = (bool) True ;
12953 bool result;
12954 bool temp2 = False ;
12955 bool temp3 = False ;
12956 PyObject * obj0 = 0 ;
12957 PyObject * obj1 = 0 ;
12958 PyObject * obj2 = 0 ;
12959 PyObject * obj3 = 0 ;
12960 char *kwnames[] = {
12961 (char *) "self",(char *) "cmd",(char *) "verb",(char *) "overwriteprompt", NULL
12962 };
12963
12964 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:FileType_SetCommand",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12965 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12966 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12967 {
12968 arg2 = wxString_in_helper(obj1);
12969 if (arg2 == NULL) SWIG_fail;
12970 temp2 = True;
12971 }
12972 {
12973 arg3 = wxString_in_helper(obj2);
12974 if (arg3 == NULL) SWIG_fail;
12975 temp3 = True;
12976 }
12977 if (obj3) {
12978 arg4 = (bool) SWIG_AsBool(obj3);
12979 if (PyErr_Occurred()) SWIG_fail;
12980 }
12981 {
12982 PyThreadState* __tstate = wxPyBeginAllowThreads();
12983 result = (bool)(arg1)->SetCommand((wxString const &)*arg2,(wxString const &)*arg3,arg4);
12984
12985 wxPyEndAllowThreads(__tstate);
12986 if (PyErr_Occurred()) SWIG_fail;
12987 }
12988 {
12989 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12990 }
12991 {
12992 if (temp2)
12993 delete arg2;
12994 }
12995 {
12996 if (temp3)
12997 delete arg3;
12998 }
12999 return resultobj;
13000 fail:
13001 {
13002 if (temp2)
13003 delete arg2;
13004 }
13005 {
13006 if (temp3)
13007 delete arg3;
13008 }
13009 return NULL;
13010 }
13011
13012
13013 static PyObject *_wrap_FileType_SetDefaultIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
13014 PyObject *resultobj;
13015 wxFileType *arg1 = (wxFileType *) 0 ;
13016 wxString const &arg2_defvalue = wxPyEmptyString ;
13017 wxString *arg2 = (wxString *) &arg2_defvalue ;
13018 int arg3 = (int) 0 ;
13019 bool result;
13020 bool temp2 = False ;
13021 PyObject * obj0 = 0 ;
13022 PyObject * obj1 = 0 ;
13023 PyObject * obj2 = 0 ;
13024 char *kwnames[] = {
13025 (char *) "self",(char *) "cmd",(char *) "index", NULL
13026 };
13027
13028 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FileType_SetDefaultIcon",kwnames,&obj0,&obj1,&obj2)) goto fail;
13029 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
13030 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13031 if (obj1) {
13032 {
13033 arg2 = wxString_in_helper(obj1);
13034 if (arg2 == NULL) SWIG_fail;
13035 temp2 = True;
13036 }
13037 }
13038 if (obj2) {
13039 arg3 = (int) SWIG_AsInt(obj2);
13040 if (PyErr_Occurred()) SWIG_fail;
13041 }
13042 {
13043 PyThreadState* __tstate = wxPyBeginAllowThreads();
13044 result = (bool)(arg1)->SetDefaultIcon((wxString const &)*arg2,arg3);
13045
13046 wxPyEndAllowThreads(__tstate);
13047 if (PyErr_Occurred()) SWIG_fail;
13048 }
13049 {
13050 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13051 }
13052 {
13053 if (temp2)
13054 delete arg2;
13055 }
13056 return resultobj;
13057 fail:
13058 {
13059 if (temp2)
13060 delete arg2;
13061 }
13062 return NULL;
13063 }
13064
13065
13066 static PyObject *_wrap_FileType_Unassociate(PyObject *self, PyObject *args, PyObject *kwargs) {
13067 PyObject *resultobj;
13068 wxFileType *arg1 = (wxFileType *) 0 ;
13069 bool result;
13070 PyObject * obj0 = 0 ;
13071 char *kwnames[] = {
13072 (char *) "self", NULL
13073 };
13074
13075 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_Unassociate",kwnames,&obj0)) goto fail;
13076 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
13077 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13078 {
13079 PyThreadState* __tstate = wxPyBeginAllowThreads();
13080 result = (bool)(arg1)->Unassociate();
13081
13082 wxPyEndAllowThreads(__tstate);
13083 if (PyErr_Occurred()) SWIG_fail;
13084 }
13085 {
13086 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13087 }
13088 return resultobj;
13089 fail:
13090 return NULL;
13091 }
13092
13093
13094 static PyObject *_wrap_FileType_ExpandCommand(PyObject *self, PyObject *args, PyObject *kwargs) {
13095 PyObject *resultobj;
13096 wxString *arg1 = 0 ;
13097 wxString *arg2 = 0 ;
13098 wxString const &arg3_defvalue = wxPyEmptyString ;
13099 wxString *arg3 = (wxString *) &arg3_defvalue ;
13100 wxString result;
13101 bool temp1 = False ;
13102 bool temp2 = False ;
13103 bool temp3 = False ;
13104 PyObject * obj0 = 0 ;
13105 PyObject * obj1 = 0 ;
13106 PyObject * obj2 = 0 ;
13107 char *kwnames[] = {
13108 (char *) "command",(char *) "filename",(char *) "mimetype", NULL
13109 };
13110
13111 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_ExpandCommand",kwnames,&obj0,&obj1,&obj2)) goto fail;
13112 {
13113 arg1 = wxString_in_helper(obj0);
13114 if (arg1 == NULL) SWIG_fail;
13115 temp1 = True;
13116 }
13117 {
13118 arg2 = wxString_in_helper(obj1);
13119 if (arg2 == NULL) SWIG_fail;
13120 temp2 = True;
13121 }
13122 if (obj2) {
13123 {
13124 arg3 = wxString_in_helper(obj2);
13125 if (arg3 == NULL) SWIG_fail;
13126 temp3 = True;
13127 }
13128 }
13129 {
13130 PyThreadState* __tstate = wxPyBeginAllowThreads();
13131 result = FileType_ExpandCommand((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3);
13132
13133 wxPyEndAllowThreads(__tstate);
13134 if (PyErr_Occurred()) SWIG_fail;
13135 }
13136 {
13137 #if wxUSE_UNICODE
13138 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13139 #else
13140 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13141 #endif
13142 }
13143 {
13144 if (temp1)
13145 delete arg1;
13146 }
13147 {
13148 if (temp2)
13149 delete arg2;
13150 }
13151 {
13152 if (temp3)
13153 delete arg3;
13154 }
13155 return resultobj;
13156 fail:
13157 {
13158 if (temp1)
13159 delete arg1;
13160 }
13161 {
13162 if (temp2)
13163 delete arg2;
13164 }
13165 {
13166 if (temp3)
13167 delete arg3;
13168 }
13169 return NULL;
13170 }
13171
13172
13173 static PyObject * FileType_swigregister(PyObject *self, PyObject *args) {
13174 PyObject *obj;
13175 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13176 SWIG_TypeClientData(SWIGTYPE_p_wxFileType, obj);
13177 Py_INCREF(obj);
13178 return Py_BuildValue((char *)"");
13179 }
13180 static int _wrap_TheMimeTypesManager_set(PyObject *_val) {
13181 PyErr_SetString(PyExc_TypeError,"Variable TheMimeTypesManager is read-only.");
13182 return 1;
13183 }
13184
13185
13186 static PyObject *_wrap_TheMimeTypesManager_get() {
13187 PyObject *pyobj;
13188
13189 pyobj = SWIG_NewPointerObj((void *)(wxTheMimeTypesManager), SWIGTYPE_p_wxMimeTypesManager, 0);
13190 return pyobj;
13191 }
13192
13193
13194 static PyObject *_wrap_MimeTypesManager_IsOfType(PyObject *self, PyObject *args, PyObject *kwargs) {
13195 PyObject *resultobj;
13196 wxString *arg1 = 0 ;
13197 wxString *arg2 = 0 ;
13198 bool result;
13199 bool temp1 = False ;
13200 bool temp2 = False ;
13201 PyObject * obj0 = 0 ;
13202 PyObject * obj1 = 0 ;
13203 char *kwnames[] = {
13204 (char *) "mimeType",(char *) "wildcard", NULL
13205 };
13206
13207 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_IsOfType",kwnames,&obj0,&obj1)) goto fail;
13208 {
13209 arg1 = wxString_in_helper(obj0);
13210 if (arg1 == NULL) SWIG_fail;
13211 temp1 = True;
13212 }
13213 {
13214 arg2 = wxString_in_helper(obj1);
13215 if (arg2 == NULL) SWIG_fail;
13216 temp2 = True;
13217 }
13218 {
13219 PyThreadState* __tstate = wxPyBeginAllowThreads();
13220 result = (bool)wxMimeTypesManager::IsOfType((wxString const &)*arg1,(wxString const &)*arg2);
13221
13222 wxPyEndAllowThreads(__tstate);
13223 if (PyErr_Occurred()) SWIG_fail;
13224 }
13225 {
13226 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13227 }
13228 {
13229 if (temp1)
13230 delete arg1;
13231 }
13232 {
13233 if (temp2)
13234 delete arg2;
13235 }
13236 return resultobj;
13237 fail:
13238 {
13239 if (temp1)
13240 delete arg1;
13241 }
13242 {
13243 if (temp2)
13244 delete arg2;
13245 }
13246 return NULL;
13247 }
13248
13249
13250 static PyObject *_wrap_new_MimeTypesManager(PyObject *self, PyObject *args, PyObject *kwargs) {
13251 PyObject *resultobj;
13252 wxMimeTypesManager *result;
13253 char *kwnames[] = {
13254 NULL
13255 };
13256
13257 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MimeTypesManager",kwnames)) goto fail;
13258 {
13259 PyThreadState* __tstate = wxPyBeginAllowThreads();
13260 result = (wxMimeTypesManager *)new wxMimeTypesManager();
13261
13262 wxPyEndAllowThreads(__tstate);
13263 if (PyErr_Occurred()) SWIG_fail;
13264 }
13265 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMimeTypesManager, 1);
13266 return resultobj;
13267 fail:
13268 return NULL;
13269 }
13270
13271
13272 static PyObject *_wrap_MimeTypesManager_Initialize(PyObject *self, PyObject *args, PyObject *kwargs) {
13273 PyObject *resultobj;
13274 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13275 int arg2 = (int) wxMAILCAP_ALL ;
13276 wxString const &arg3_defvalue = wxPyEmptyString ;
13277 wxString *arg3 = (wxString *) &arg3_defvalue ;
13278 bool temp3 = False ;
13279 PyObject * obj0 = 0 ;
13280 PyObject * obj1 = 0 ;
13281 PyObject * obj2 = 0 ;
13282 char *kwnames[] = {
13283 (char *) "self",(char *) "mailcapStyle",(char *) "extraDir", NULL
13284 };
13285
13286 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MimeTypesManager_Initialize",kwnames,&obj0,&obj1,&obj2)) goto fail;
13287 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13288 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13289 if (obj1) {
13290 arg2 = (int) SWIG_AsInt(obj1);
13291 if (PyErr_Occurred()) SWIG_fail;
13292 }
13293 if (obj2) {
13294 {
13295 arg3 = wxString_in_helper(obj2);
13296 if (arg3 == NULL) SWIG_fail;
13297 temp3 = True;
13298 }
13299 }
13300 {
13301 PyThreadState* __tstate = wxPyBeginAllowThreads();
13302 (arg1)->Initialize(arg2,(wxString const &)*arg3);
13303
13304 wxPyEndAllowThreads(__tstate);
13305 if (PyErr_Occurred()) SWIG_fail;
13306 }
13307 Py_INCREF(Py_None); resultobj = Py_None;
13308 {
13309 if (temp3)
13310 delete arg3;
13311 }
13312 return resultobj;
13313 fail:
13314 {
13315 if (temp3)
13316 delete arg3;
13317 }
13318 return NULL;
13319 }
13320
13321
13322 static PyObject *_wrap_MimeTypesManager_ClearData(PyObject *self, PyObject *args, PyObject *kwargs) {
13323 PyObject *resultobj;
13324 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13325 PyObject * obj0 = 0 ;
13326 char *kwnames[] = {
13327 (char *) "self", NULL
13328 };
13329
13330 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MimeTypesManager_ClearData",kwnames,&obj0)) goto fail;
13331 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13332 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13333 {
13334 PyThreadState* __tstate = wxPyBeginAllowThreads();
13335 (arg1)->ClearData();
13336
13337 wxPyEndAllowThreads(__tstate);
13338 if (PyErr_Occurred()) SWIG_fail;
13339 }
13340 Py_INCREF(Py_None); resultobj = Py_None;
13341 return resultobj;
13342 fail:
13343 return NULL;
13344 }
13345
13346
13347 static PyObject *_wrap_MimeTypesManager_GetFileTypeFromExtension(PyObject *self, PyObject *args, PyObject *kwargs) {
13348 PyObject *resultobj;
13349 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13350 wxString *arg2 = 0 ;
13351 wxFileType *result;
13352 bool temp2 = False ;
13353 PyObject * obj0 = 0 ;
13354 PyObject * obj1 = 0 ;
13355 char *kwnames[] = {
13356 (char *) "self",(char *) "ext", NULL
13357 };
13358
13359 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_GetFileTypeFromExtension",kwnames,&obj0,&obj1)) goto fail;
13360 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13361 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13362 {
13363 arg2 = wxString_in_helper(obj1);
13364 if (arg2 == NULL) SWIG_fail;
13365 temp2 = True;
13366 }
13367 {
13368 PyThreadState* __tstate = wxPyBeginAllowThreads();
13369 result = (wxFileType *)(arg1)->GetFileTypeFromExtension((wxString const &)*arg2);
13370
13371 wxPyEndAllowThreads(__tstate);
13372 if (PyErr_Occurred()) SWIG_fail;
13373 }
13374 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1);
13375 {
13376 if (temp2)
13377 delete arg2;
13378 }
13379 return resultobj;
13380 fail:
13381 {
13382 if (temp2)
13383 delete arg2;
13384 }
13385 return NULL;
13386 }
13387
13388
13389 static PyObject *_wrap_MimeTypesManager_GetFileTypeFromMimeType(PyObject *self, PyObject *args, PyObject *kwargs) {
13390 PyObject *resultobj;
13391 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13392 wxString *arg2 = 0 ;
13393 wxFileType *result;
13394 bool temp2 = False ;
13395 PyObject * obj0 = 0 ;
13396 PyObject * obj1 = 0 ;
13397 char *kwnames[] = {
13398 (char *) "self",(char *) "mimeType", NULL
13399 };
13400
13401 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_GetFileTypeFromMimeType",kwnames,&obj0,&obj1)) goto fail;
13402 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13403 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13404 {
13405 arg2 = wxString_in_helper(obj1);
13406 if (arg2 == NULL) SWIG_fail;
13407 temp2 = True;
13408 }
13409 {
13410 PyThreadState* __tstate = wxPyBeginAllowThreads();
13411 result = (wxFileType *)(arg1)->GetFileTypeFromMimeType((wxString const &)*arg2);
13412
13413 wxPyEndAllowThreads(__tstate);
13414 if (PyErr_Occurred()) SWIG_fail;
13415 }
13416 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1);
13417 {
13418 if (temp2)
13419 delete arg2;
13420 }
13421 return resultobj;
13422 fail:
13423 {
13424 if (temp2)
13425 delete arg2;
13426 }
13427 return NULL;
13428 }
13429
13430
13431 static PyObject *_wrap_MimeTypesManager_ReadMailcap(PyObject *self, PyObject *args, PyObject *kwargs) {
13432 PyObject *resultobj;
13433 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13434 wxString *arg2 = 0 ;
13435 bool arg3 = (bool) False ;
13436 bool result;
13437 bool temp2 = False ;
13438 PyObject * obj0 = 0 ;
13439 PyObject * obj1 = 0 ;
13440 PyObject * obj2 = 0 ;
13441 char *kwnames[] = {
13442 (char *) "self",(char *) "filename",(char *) "fallback", NULL
13443 };
13444
13445 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:MimeTypesManager_ReadMailcap",kwnames,&obj0,&obj1,&obj2)) goto fail;
13446 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13447 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13448 {
13449 arg2 = wxString_in_helper(obj1);
13450 if (arg2 == NULL) SWIG_fail;
13451 temp2 = True;
13452 }
13453 if (obj2) {
13454 arg3 = (bool) SWIG_AsBool(obj2);
13455 if (PyErr_Occurred()) SWIG_fail;
13456 }
13457 {
13458 PyThreadState* __tstate = wxPyBeginAllowThreads();
13459 result = (bool)(arg1)->ReadMailcap((wxString const &)*arg2,arg3);
13460
13461 wxPyEndAllowThreads(__tstate);
13462 if (PyErr_Occurred()) SWIG_fail;
13463 }
13464 {
13465 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13466 }
13467 {
13468 if (temp2)
13469 delete arg2;
13470 }
13471 return resultobj;
13472 fail:
13473 {
13474 if (temp2)
13475 delete arg2;
13476 }
13477 return NULL;
13478 }
13479
13480
13481 static PyObject *_wrap_MimeTypesManager_ReadMimeTypes(PyObject *self, PyObject *args, PyObject *kwargs) {
13482 PyObject *resultobj;
13483 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13484 wxString *arg2 = 0 ;
13485 bool result;
13486 bool temp2 = False ;
13487 PyObject * obj0 = 0 ;
13488 PyObject * obj1 = 0 ;
13489 char *kwnames[] = {
13490 (char *) "self",(char *) "filename", NULL
13491 };
13492
13493 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_ReadMimeTypes",kwnames,&obj0,&obj1)) goto fail;
13494 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13495 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13496 {
13497 arg2 = wxString_in_helper(obj1);
13498 if (arg2 == NULL) SWIG_fail;
13499 temp2 = True;
13500 }
13501 {
13502 PyThreadState* __tstate = wxPyBeginAllowThreads();
13503 result = (bool)(arg1)->ReadMimeTypes((wxString const &)*arg2);
13504
13505 wxPyEndAllowThreads(__tstate);
13506 if (PyErr_Occurred()) SWIG_fail;
13507 }
13508 {
13509 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13510 }
13511 {
13512 if (temp2)
13513 delete arg2;
13514 }
13515 return resultobj;
13516 fail:
13517 {
13518 if (temp2)
13519 delete arg2;
13520 }
13521 return NULL;
13522 }
13523
13524
13525 static PyObject *_wrap_MimeTypesManager_EnumAllFileTypes(PyObject *self, PyObject *args, PyObject *kwargs) {
13526 PyObject *resultobj;
13527 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13528 PyObject *result;
13529 PyObject * obj0 = 0 ;
13530 char *kwnames[] = {
13531 (char *) "self", NULL
13532 };
13533
13534 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MimeTypesManager_EnumAllFileTypes",kwnames,&obj0)) goto fail;
13535 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13536 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13537 {
13538 PyThreadState* __tstate = wxPyBeginAllowThreads();
13539 result = (PyObject *)wxMimeTypesManager_EnumAllFileTypes(arg1);
13540
13541 wxPyEndAllowThreads(__tstate);
13542 if (PyErr_Occurred()) SWIG_fail;
13543 }
13544 resultobj = result;
13545 return resultobj;
13546 fail:
13547 return NULL;
13548 }
13549
13550
13551 static PyObject *_wrap_MimeTypesManager_AddFallback(PyObject *self, PyObject *args, PyObject *kwargs) {
13552 PyObject *resultobj;
13553 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13554 wxFileTypeInfo *arg2 = 0 ;
13555 PyObject * obj0 = 0 ;
13556 PyObject * obj1 = 0 ;
13557 char *kwnames[] = {
13558 (char *) "self",(char *) "ft", NULL
13559 };
13560
13561 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_AddFallback",kwnames,&obj0,&obj1)) goto fail;
13562 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13563 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13564 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileTypeInfo,
13565 SWIG_POINTER_EXCEPTION | 0)) == -1)
13566 SWIG_fail;
13567 if (arg2 == NULL) {
13568 PyErr_SetString(PyExc_TypeError,"null reference");
13569 SWIG_fail;
13570 }
13571 {
13572 PyThreadState* __tstate = wxPyBeginAllowThreads();
13573 (arg1)->AddFallback((wxFileTypeInfo const &)*arg2);
13574
13575 wxPyEndAllowThreads(__tstate);
13576 if (PyErr_Occurred()) SWIG_fail;
13577 }
13578 Py_INCREF(Py_None); resultobj = Py_None;
13579 return resultobj;
13580 fail:
13581 return NULL;
13582 }
13583
13584
13585 static PyObject *_wrap_MimeTypesManager_Associate(PyObject *self, PyObject *args, PyObject *kwargs) {
13586 PyObject *resultobj;
13587 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13588 wxFileTypeInfo *arg2 = 0 ;
13589 wxFileType *result;
13590 PyObject * obj0 = 0 ;
13591 PyObject * obj1 = 0 ;
13592 char *kwnames[] = {
13593 (char *) "self",(char *) "ftInfo", NULL
13594 };
13595
13596 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_Associate",kwnames,&obj0,&obj1)) goto fail;
13597 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13598 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13599 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileTypeInfo,
13600 SWIG_POINTER_EXCEPTION | 0)) == -1)
13601 SWIG_fail;
13602 if (arg2 == NULL) {
13603 PyErr_SetString(PyExc_TypeError,"null reference");
13604 SWIG_fail;
13605 }
13606 {
13607 PyThreadState* __tstate = wxPyBeginAllowThreads();
13608 result = (wxFileType *)(arg1)->Associate((wxFileTypeInfo const &)*arg2);
13609
13610 wxPyEndAllowThreads(__tstate);
13611 if (PyErr_Occurred()) SWIG_fail;
13612 }
13613 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1);
13614 return resultobj;
13615 fail:
13616 return NULL;
13617 }
13618
13619
13620 static PyObject *_wrap_MimeTypesManager_Unassociate(PyObject *self, PyObject *args, PyObject *kwargs) {
13621 PyObject *resultobj;
13622 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13623 wxFileType *arg2 = (wxFileType *) 0 ;
13624 bool result;
13625 PyObject * obj0 = 0 ;
13626 PyObject * obj1 = 0 ;
13627 char *kwnames[] = {
13628 (char *) "self",(char *) "ft", NULL
13629 };
13630
13631 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_Unassociate",kwnames,&obj0,&obj1)) goto fail;
13632 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13633 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13634 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileType,
13635 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13636 {
13637 PyThreadState* __tstate = wxPyBeginAllowThreads();
13638 result = (bool)(arg1)->Unassociate(arg2);
13639
13640 wxPyEndAllowThreads(__tstate);
13641 if (PyErr_Occurred()) SWIG_fail;
13642 }
13643 {
13644 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13645 }
13646 return resultobj;
13647 fail:
13648 return NULL;
13649 }
13650
13651
13652 static PyObject *_wrap_delete_MimeTypesManager(PyObject *self, PyObject *args, PyObject *kwargs) {
13653 PyObject *resultobj;
13654 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13655 PyObject * obj0 = 0 ;
13656 char *kwnames[] = {
13657 (char *) "self", NULL
13658 };
13659
13660 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MimeTypesManager",kwnames,&obj0)) goto fail;
13661 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13662 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13663 {
13664 PyThreadState* __tstate = wxPyBeginAllowThreads();
13665 delete arg1;
13666
13667 wxPyEndAllowThreads(__tstate);
13668 if (PyErr_Occurred()) SWIG_fail;
13669 }
13670 Py_INCREF(Py_None); resultobj = Py_None;
13671 return resultobj;
13672 fail:
13673 return NULL;
13674 }
13675
13676
13677 static PyObject * MimeTypesManager_swigregister(PyObject *self, PyObject *args) {
13678 PyObject *obj;
13679 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13680 SWIG_TypeClientData(SWIGTYPE_p_wxMimeTypesManager, obj);
13681 Py_INCREF(obj);
13682 return Py_BuildValue((char *)"");
13683 }
13684 static int _wrap_ART_TOOLBAR_set(PyObject *_val) {
13685 PyErr_SetString(PyExc_TypeError,"Variable ART_TOOLBAR is read-only.");
13686 return 1;
13687 }
13688
13689
13690 static PyObject *_wrap_ART_TOOLBAR_get() {
13691 PyObject *pyobj;
13692
13693 {
13694 #if wxUSE_UNICODE
13695 pyobj = PyUnicode_FromWideChar((&wxPyART_TOOLBAR)->c_str(), (&wxPyART_TOOLBAR)->Len());
13696 #else
13697 pyobj = PyString_FromStringAndSize((&wxPyART_TOOLBAR)->c_str(), (&wxPyART_TOOLBAR)->Len());
13698 #endif
13699 }
13700 return pyobj;
13701 }
13702
13703
13704 static int _wrap_ART_MENU_set(PyObject *_val) {
13705 PyErr_SetString(PyExc_TypeError,"Variable ART_MENU is read-only.");
13706 return 1;
13707 }
13708
13709
13710 static PyObject *_wrap_ART_MENU_get() {
13711 PyObject *pyobj;
13712
13713 {
13714 #if wxUSE_UNICODE
13715 pyobj = PyUnicode_FromWideChar((&wxPyART_MENU)->c_str(), (&wxPyART_MENU)->Len());
13716 #else
13717 pyobj = PyString_FromStringAndSize((&wxPyART_MENU)->c_str(), (&wxPyART_MENU)->Len());
13718 #endif
13719 }
13720 return pyobj;
13721 }
13722
13723
13724 static int _wrap_ART_FRAME_ICON_set(PyObject *_val) {
13725 PyErr_SetString(PyExc_TypeError,"Variable ART_FRAME_ICON is read-only.");
13726 return 1;
13727 }
13728
13729
13730 static PyObject *_wrap_ART_FRAME_ICON_get() {
13731 PyObject *pyobj;
13732
13733 {
13734 #if wxUSE_UNICODE
13735 pyobj = PyUnicode_FromWideChar((&wxPyART_FRAME_ICON)->c_str(), (&wxPyART_FRAME_ICON)->Len());
13736 #else
13737 pyobj = PyString_FromStringAndSize((&wxPyART_FRAME_ICON)->c_str(), (&wxPyART_FRAME_ICON)->Len());
13738 #endif
13739 }
13740 return pyobj;
13741 }
13742
13743
13744 static int _wrap_ART_CMN_DIALOG_set(PyObject *_val) {
13745 PyErr_SetString(PyExc_TypeError,"Variable ART_CMN_DIALOG is read-only.");
13746 return 1;
13747 }
13748
13749
13750 static PyObject *_wrap_ART_CMN_DIALOG_get() {
13751 PyObject *pyobj;
13752
13753 {
13754 #if wxUSE_UNICODE
13755 pyobj = PyUnicode_FromWideChar((&wxPyART_CMN_DIALOG)->c_str(), (&wxPyART_CMN_DIALOG)->Len());
13756 #else
13757 pyobj = PyString_FromStringAndSize((&wxPyART_CMN_DIALOG)->c_str(), (&wxPyART_CMN_DIALOG)->Len());
13758 #endif
13759 }
13760 return pyobj;
13761 }
13762
13763
13764 static int _wrap_ART_HELP_BROWSER_set(PyObject *_val) {
13765 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_BROWSER is read-only.");
13766 return 1;
13767 }
13768
13769
13770 static PyObject *_wrap_ART_HELP_BROWSER_get() {
13771 PyObject *pyobj;
13772
13773 {
13774 #if wxUSE_UNICODE
13775 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_BROWSER)->c_str(), (&wxPyART_HELP_BROWSER)->Len());
13776 #else
13777 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_BROWSER)->c_str(), (&wxPyART_HELP_BROWSER)->Len());
13778 #endif
13779 }
13780 return pyobj;
13781 }
13782
13783
13784 static int _wrap_ART_MESSAGE_BOX_set(PyObject *_val) {
13785 PyErr_SetString(PyExc_TypeError,"Variable ART_MESSAGE_BOX is read-only.");
13786 return 1;
13787 }
13788
13789
13790 static PyObject *_wrap_ART_MESSAGE_BOX_get() {
13791 PyObject *pyobj;
13792
13793 {
13794 #if wxUSE_UNICODE
13795 pyobj = PyUnicode_FromWideChar((&wxPyART_MESSAGE_BOX)->c_str(), (&wxPyART_MESSAGE_BOX)->Len());
13796 #else
13797 pyobj = PyString_FromStringAndSize((&wxPyART_MESSAGE_BOX)->c_str(), (&wxPyART_MESSAGE_BOX)->Len());
13798 #endif
13799 }
13800 return pyobj;
13801 }
13802
13803
13804 static int _wrap_ART_BUTTON_set(PyObject *_val) {
13805 PyErr_SetString(PyExc_TypeError,"Variable ART_BUTTON is read-only.");
13806 return 1;
13807 }
13808
13809
13810 static PyObject *_wrap_ART_BUTTON_get() {
13811 PyObject *pyobj;
13812
13813 {
13814 #if wxUSE_UNICODE
13815 pyobj = PyUnicode_FromWideChar((&wxPyART_BUTTON)->c_str(), (&wxPyART_BUTTON)->Len());
13816 #else
13817 pyobj = PyString_FromStringAndSize((&wxPyART_BUTTON)->c_str(), (&wxPyART_BUTTON)->Len());
13818 #endif
13819 }
13820 return pyobj;
13821 }
13822
13823
13824 static int _wrap_ART_OTHER_set(PyObject *_val) {
13825 PyErr_SetString(PyExc_TypeError,"Variable ART_OTHER is read-only.");
13826 return 1;
13827 }
13828
13829
13830 static PyObject *_wrap_ART_OTHER_get() {
13831 PyObject *pyobj;
13832
13833 {
13834 #if wxUSE_UNICODE
13835 pyobj = PyUnicode_FromWideChar((&wxPyART_OTHER)->c_str(), (&wxPyART_OTHER)->Len());
13836 #else
13837 pyobj = PyString_FromStringAndSize((&wxPyART_OTHER)->c_str(), (&wxPyART_OTHER)->Len());
13838 #endif
13839 }
13840 return pyobj;
13841 }
13842
13843
13844 static int _wrap_ART_ADD_BOOKMARK_set(PyObject *_val) {
13845 PyErr_SetString(PyExc_TypeError,"Variable ART_ADD_BOOKMARK is read-only.");
13846 return 1;
13847 }
13848
13849
13850 static PyObject *_wrap_ART_ADD_BOOKMARK_get() {
13851 PyObject *pyobj;
13852
13853 {
13854 #if wxUSE_UNICODE
13855 pyobj = PyUnicode_FromWideChar((&wxPyART_ADD_BOOKMARK)->c_str(), (&wxPyART_ADD_BOOKMARK)->Len());
13856 #else
13857 pyobj = PyString_FromStringAndSize((&wxPyART_ADD_BOOKMARK)->c_str(), (&wxPyART_ADD_BOOKMARK)->Len());
13858 #endif
13859 }
13860 return pyobj;
13861 }
13862
13863
13864 static int _wrap_ART_DEL_BOOKMARK_set(PyObject *_val) {
13865 PyErr_SetString(PyExc_TypeError,"Variable ART_DEL_BOOKMARK is read-only.");
13866 return 1;
13867 }
13868
13869
13870 static PyObject *_wrap_ART_DEL_BOOKMARK_get() {
13871 PyObject *pyobj;
13872
13873 {
13874 #if wxUSE_UNICODE
13875 pyobj = PyUnicode_FromWideChar((&wxPyART_DEL_BOOKMARK)->c_str(), (&wxPyART_DEL_BOOKMARK)->Len());
13876 #else
13877 pyobj = PyString_FromStringAndSize((&wxPyART_DEL_BOOKMARK)->c_str(), (&wxPyART_DEL_BOOKMARK)->Len());
13878 #endif
13879 }
13880 return pyobj;
13881 }
13882
13883
13884 static int _wrap_ART_HELP_SIDE_PANEL_set(PyObject *_val) {
13885 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_SIDE_PANEL is read-only.");
13886 return 1;
13887 }
13888
13889
13890 static PyObject *_wrap_ART_HELP_SIDE_PANEL_get() {
13891 PyObject *pyobj;
13892
13893 {
13894 #if wxUSE_UNICODE
13895 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_SIDE_PANEL)->c_str(), (&wxPyART_HELP_SIDE_PANEL)->Len());
13896 #else
13897 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_SIDE_PANEL)->c_str(), (&wxPyART_HELP_SIDE_PANEL)->Len());
13898 #endif
13899 }
13900 return pyobj;
13901 }
13902
13903
13904 static int _wrap_ART_HELP_SETTINGS_set(PyObject *_val) {
13905 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_SETTINGS is read-only.");
13906 return 1;
13907 }
13908
13909
13910 static PyObject *_wrap_ART_HELP_SETTINGS_get() {
13911 PyObject *pyobj;
13912
13913 {
13914 #if wxUSE_UNICODE
13915 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_SETTINGS)->c_str(), (&wxPyART_HELP_SETTINGS)->Len());
13916 #else
13917 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_SETTINGS)->c_str(), (&wxPyART_HELP_SETTINGS)->Len());
13918 #endif
13919 }
13920 return pyobj;
13921 }
13922
13923
13924 static int _wrap_ART_HELP_BOOK_set(PyObject *_val) {
13925 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_BOOK is read-only.");
13926 return 1;
13927 }
13928
13929
13930 static PyObject *_wrap_ART_HELP_BOOK_get() {
13931 PyObject *pyobj;
13932
13933 {
13934 #if wxUSE_UNICODE
13935 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_BOOK)->c_str(), (&wxPyART_HELP_BOOK)->Len());
13936 #else
13937 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_BOOK)->c_str(), (&wxPyART_HELP_BOOK)->Len());
13938 #endif
13939 }
13940 return pyobj;
13941 }
13942
13943
13944 static int _wrap_ART_HELP_FOLDER_set(PyObject *_val) {
13945 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_FOLDER is read-only.");
13946 return 1;
13947 }
13948
13949
13950 static PyObject *_wrap_ART_HELP_FOLDER_get() {
13951 PyObject *pyobj;
13952
13953 {
13954 #if wxUSE_UNICODE
13955 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_FOLDER)->c_str(), (&wxPyART_HELP_FOLDER)->Len());
13956 #else
13957 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_FOLDER)->c_str(), (&wxPyART_HELP_FOLDER)->Len());
13958 #endif
13959 }
13960 return pyobj;
13961 }
13962
13963
13964 static int _wrap_ART_HELP_PAGE_set(PyObject *_val) {
13965 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_PAGE is read-only.");
13966 return 1;
13967 }
13968
13969
13970 static PyObject *_wrap_ART_HELP_PAGE_get() {
13971 PyObject *pyobj;
13972
13973 {
13974 #if wxUSE_UNICODE
13975 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_PAGE)->c_str(), (&wxPyART_HELP_PAGE)->Len());
13976 #else
13977 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_PAGE)->c_str(), (&wxPyART_HELP_PAGE)->Len());
13978 #endif
13979 }
13980 return pyobj;
13981 }
13982
13983
13984 static int _wrap_ART_GO_BACK_set(PyObject *_val) {
13985 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_BACK is read-only.");
13986 return 1;
13987 }
13988
13989
13990 static PyObject *_wrap_ART_GO_BACK_get() {
13991 PyObject *pyobj;
13992
13993 {
13994 #if wxUSE_UNICODE
13995 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_BACK)->c_str(), (&wxPyART_GO_BACK)->Len());
13996 #else
13997 pyobj = PyString_FromStringAndSize((&wxPyART_GO_BACK)->c_str(), (&wxPyART_GO_BACK)->Len());
13998 #endif
13999 }
14000 return pyobj;
14001 }
14002
14003
14004 static int _wrap_ART_GO_FORWARD_set(PyObject *_val) {
14005 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_FORWARD is read-only.");
14006 return 1;
14007 }
14008
14009
14010 static PyObject *_wrap_ART_GO_FORWARD_get() {
14011 PyObject *pyobj;
14012
14013 {
14014 #if wxUSE_UNICODE
14015 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_FORWARD)->c_str(), (&wxPyART_GO_FORWARD)->Len());
14016 #else
14017 pyobj = PyString_FromStringAndSize((&wxPyART_GO_FORWARD)->c_str(), (&wxPyART_GO_FORWARD)->Len());
14018 #endif
14019 }
14020 return pyobj;
14021 }
14022
14023
14024 static int _wrap_ART_GO_UP_set(PyObject *_val) {
14025 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_UP is read-only.");
14026 return 1;
14027 }
14028
14029
14030 static PyObject *_wrap_ART_GO_UP_get() {
14031 PyObject *pyobj;
14032
14033 {
14034 #if wxUSE_UNICODE
14035 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_UP)->c_str(), (&wxPyART_GO_UP)->Len());
14036 #else
14037 pyobj = PyString_FromStringAndSize((&wxPyART_GO_UP)->c_str(), (&wxPyART_GO_UP)->Len());
14038 #endif
14039 }
14040 return pyobj;
14041 }
14042
14043
14044 static int _wrap_ART_GO_DOWN_set(PyObject *_val) {
14045 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_DOWN is read-only.");
14046 return 1;
14047 }
14048
14049
14050 static PyObject *_wrap_ART_GO_DOWN_get() {
14051 PyObject *pyobj;
14052
14053 {
14054 #if wxUSE_UNICODE
14055 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_DOWN)->c_str(), (&wxPyART_GO_DOWN)->Len());
14056 #else
14057 pyobj = PyString_FromStringAndSize((&wxPyART_GO_DOWN)->c_str(), (&wxPyART_GO_DOWN)->Len());
14058 #endif
14059 }
14060 return pyobj;
14061 }
14062
14063
14064 static int _wrap_ART_GO_TO_PARENT_set(PyObject *_val) {
14065 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_TO_PARENT is read-only.");
14066 return 1;
14067 }
14068
14069
14070 static PyObject *_wrap_ART_GO_TO_PARENT_get() {
14071 PyObject *pyobj;
14072
14073 {
14074 #if wxUSE_UNICODE
14075 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_TO_PARENT)->c_str(), (&wxPyART_GO_TO_PARENT)->Len());
14076 #else
14077 pyobj = PyString_FromStringAndSize((&wxPyART_GO_TO_PARENT)->c_str(), (&wxPyART_GO_TO_PARENT)->Len());
14078 #endif
14079 }
14080 return pyobj;
14081 }
14082
14083
14084 static int _wrap_ART_GO_HOME_set(PyObject *_val) {
14085 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_HOME is read-only.");
14086 return 1;
14087 }
14088
14089
14090 static PyObject *_wrap_ART_GO_HOME_get() {
14091 PyObject *pyobj;
14092
14093 {
14094 #if wxUSE_UNICODE
14095 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_HOME)->c_str(), (&wxPyART_GO_HOME)->Len());
14096 #else
14097 pyobj = PyString_FromStringAndSize((&wxPyART_GO_HOME)->c_str(), (&wxPyART_GO_HOME)->Len());
14098 #endif
14099 }
14100 return pyobj;
14101 }
14102
14103
14104 static int _wrap_ART_FILE_OPEN_set(PyObject *_val) {
14105 PyErr_SetString(PyExc_TypeError,"Variable ART_FILE_OPEN is read-only.");
14106 return 1;
14107 }
14108
14109
14110 static PyObject *_wrap_ART_FILE_OPEN_get() {
14111 PyObject *pyobj;
14112
14113 {
14114 #if wxUSE_UNICODE
14115 pyobj = PyUnicode_FromWideChar((&wxPyART_FILE_OPEN)->c_str(), (&wxPyART_FILE_OPEN)->Len());
14116 #else
14117 pyobj = PyString_FromStringAndSize((&wxPyART_FILE_OPEN)->c_str(), (&wxPyART_FILE_OPEN)->Len());
14118 #endif
14119 }
14120 return pyobj;
14121 }
14122
14123
14124 static int _wrap_ART_PRINT_set(PyObject *_val) {
14125 PyErr_SetString(PyExc_TypeError,"Variable ART_PRINT is read-only.");
14126 return 1;
14127 }
14128
14129
14130 static PyObject *_wrap_ART_PRINT_get() {
14131 PyObject *pyobj;
14132
14133 {
14134 #if wxUSE_UNICODE
14135 pyobj = PyUnicode_FromWideChar((&wxPyART_PRINT)->c_str(), (&wxPyART_PRINT)->Len());
14136 #else
14137 pyobj = PyString_FromStringAndSize((&wxPyART_PRINT)->c_str(), (&wxPyART_PRINT)->Len());
14138 #endif
14139 }
14140 return pyobj;
14141 }
14142
14143
14144 static int _wrap_ART_HELP_set(PyObject *_val) {
14145 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP is read-only.");
14146 return 1;
14147 }
14148
14149
14150 static PyObject *_wrap_ART_HELP_get() {
14151 PyObject *pyobj;
14152
14153 {
14154 #if wxUSE_UNICODE
14155 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP)->c_str(), (&wxPyART_HELP)->Len());
14156 #else
14157 pyobj = PyString_FromStringAndSize((&wxPyART_HELP)->c_str(), (&wxPyART_HELP)->Len());
14158 #endif
14159 }
14160 return pyobj;
14161 }
14162
14163
14164 static int _wrap_ART_TIP_set(PyObject *_val) {
14165 PyErr_SetString(PyExc_TypeError,"Variable ART_TIP is read-only.");
14166 return 1;
14167 }
14168
14169
14170 static PyObject *_wrap_ART_TIP_get() {
14171 PyObject *pyobj;
14172
14173 {
14174 #if wxUSE_UNICODE
14175 pyobj = PyUnicode_FromWideChar((&wxPyART_TIP)->c_str(), (&wxPyART_TIP)->Len());
14176 #else
14177 pyobj = PyString_FromStringAndSize((&wxPyART_TIP)->c_str(), (&wxPyART_TIP)->Len());
14178 #endif
14179 }
14180 return pyobj;
14181 }
14182
14183
14184 static int _wrap_ART_REPORT_VIEW_set(PyObject *_val) {
14185 PyErr_SetString(PyExc_TypeError,"Variable ART_REPORT_VIEW is read-only.");
14186 return 1;
14187 }
14188
14189
14190 static PyObject *_wrap_ART_REPORT_VIEW_get() {
14191 PyObject *pyobj;
14192
14193 {
14194 #if wxUSE_UNICODE
14195 pyobj = PyUnicode_FromWideChar((&wxPyART_REPORT_VIEW)->c_str(), (&wxPyART_REPORT_VIEW)->Len());
14196 #else
14197 pyobj = PyString_FromStringAndSize((&wxPyART_REPORT_VIEW)->c_str(), (&wxPyART_REPORT_VIEW)->Len());
14198 #endif
14199 }
14200 return pyobj;
14201 }
14202
14203
14204 static int _wrap_ART_LIST_VIEW_set(PyObject *_val) {
14205 PyErr_SetString(PyExc_TypeError,"Variable ART_LIST_VIEW is read-only.");
14206 return 1;
14207 }
14208
14209
14210 static PyObject *_wrap_ART_LIST_VIEW_get() {
14211 PyObject *pyobj;
14212
14213 {
14214 #if wxUSE_UNICODE
14215 pyobj = PyUnicode_FromWideChar((&wxPyART_LIST_VIEW)->c_str(), (&wxPyART_LIST_VIEW)->Len());
14216 #else
14217 pyobj = PyString_FromStringAndSize((&wxPyART_LIST_VIEW)->c_str(), (&wxPyART_LIST_VIEW)->Len());
14218 #endif
14219 }
14220 return pyobj;
14221 }
14222
14223
14224 static int _wrap_ART_NEW_DIR_set(PyObject *_val) {
14225 PyErr_SetString(PyExc_TypeError,"Variable ART_NEW_DIR is read-only.");
14226 return 1;
14227 }
14228
14229
14230 static PyObject *_wrap_ART_NEW_DIR_get() {
14231 PyObject *pyobj;
14232
14233 {
14234 #if wxUSE_UNICODE
14235 pyobj = PyUnicode_FromWideChar((&wxPyART_NEW_DIR)->c_str(), (&wxPyART_NEW_DIR)->Len());
14236 #else
14237 pyobj = PyString_FromStringAndSize((&wxPyART_NEW_DIR)->c_str(), (&wxPyART_NEW_DIR)->Len());
14238 #endif
14239 }
14240 return pyobj;
14241 }
14242
14243
14244 static int _wrap_ART_FOLDER_set(PyObject *_val) {
14245 PyErr_SetString(PyExc_TypeError,"Variable ART_FOLDER is read-only.");
14246 return 1;
14247 }
14248
14249
14250 static PyObject *_wrap_ART_FOLDER_get() {
14251 PyObject *pyobj;
14252
14253 {
14254 #if wxUSE_UNICODE
14255 pyobj = PyUnicode_FromWideChar((&wxPyART_FOLDER)->c_str(), (&wxPyART_FOLDER)->Len());
14256 #else
14257 pyobj = PyString_FromStringAndSize((&wxPyART_FOLDER)->c_str(), (&wxPyART_FOLDER)->Len());
14258 #endif
14259 }
14260 return pyobj;
14261 }
14262
14263
14264 static int _wrap_ART_GO_DIR_UP_set(PyObject *_val) {
14265 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_DIR_UP is read-only.");
14266 return 1;
14267 }
14268
14269
14270 static PyObject *_wrap_ART_GO_DIR_UP_get() {
14271 PyObject *pyobj;
14272
14273 {
14274 #if wxUSE_UNICODE
14275 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_DIR_UP)->c_str(), (&wxPyART_GO_DIR_UP)->Len());
14276 #else
14277 pyobj = PyString_FromStringAndSize((&wxPyART_GO_DIR_UP)->c_str(), (&wxPyART_GO_DIR_UP)->Len());
14278 #endif
14279 }
14280 return pyobj;
14281 }
14282
14283
14284 static int _wrap_ART_EXECUTABLE_FILE_set(PyObject *_val) {
14285 PyErr_SetString(PyExc_TypeError,"Variable ART_EXECUTABLE_FILE is read-only.");
14286 return 1;
14287 }
14288
14289
14290 static PyObject *_wrap_ART_EXECUTABLE_FILE_get() {
14291 PyObject *pyobj;
14292
14293 {
14294 #if wxUSE_UNICODE
14295 pyobj = PyUnicode_FromWideChar((&wxPyART_EXECUTABLE_FILE)->c_str(), (&wxPyART_EXECUTABLE_FILE)->Len());
14296 #else
14297 pyobj = PyString_FromStringAndSize((&wxPyART_EXECUTABLE_FILE)->c_str(), (&wxPyART_EXECUTABLE_FILE)->Len());
14298 #endif
14299 }
14300 return pyobj;
14301 }
14302
14303
14304 static int _wrap_ART_NORMAL_FILE_set(PyObject *_val) {
14305 PyErr_SetString(PyExc_TypeError,"Variable ART_NORMAL_FILE is read-only.");
14306 return 1;
14307 }
14308
14309
14310 static PyObject *_wrap_ART_NORMAL_FILE_get() {
14311 PyObject *pyobj;
14312
14313 {
14314 #if wxUSE_UNICODE
14315 pyobj = PyUnicode_FromWideChar((&wxPyART_NORMAL_FILE)->c_str(), (&wxPyART_NORMAL_FILE)->Len());
14316 #else
14317 pyobj = PyString_FromStringAndSize((&wxPyART_NORMAL_FILE)->c_str(), (&wxPyART_NORMAL_FILE)->Len());
14318 #endif
14319 }
14320 return pyobj;
14321 }
14322
14323
14324 static int _wrap_ART_TICK_MARK_set(PyObject *_val) {
14325 PyErr_SetString(PyExc_TypeError,"Variable ART_TICK_MARK is read-only.");
14326 return 1;
14327 }
14328
14329
14330 static PyObject *_wrap_ART_TICK_MARK_get() {
14331 PyObject *pyobj;
14332
14333 {
14334 #if wxUSE_UNICODE
14335 pyobj = PyUnicode_FromWideChar((&wxPyART_TICK_MARK)->c_str(), (&wxPyART_TICK_MARK)->Len());
14336 #else
14337 pyobj = PyString_FromStringAndSize((&wxPyART_TICK_MARK)->c_str(), (&wxPyART_TICK_MARK)->Len());
14338 #endif
14339 }
14340 return pyobj;
14341 }
14342
14343
14344 static int _wrap_ART_CROSS_MARK_set(PyObject *_val) {
14345 PyErr_SetString(PyExc_TypeError,"Variable ART_CROSS_MARK is read-only.");
14346 return 1;
14347 }
14348
14349
14350 static PyObject *_wrap_ART_CROSS_MARK_get() {
14351 PyObject *pyobj;
14352
14353 {
14354 #if wxUSE_UNICODE
14355 pyobj = PyUnicode_FromWideChar((&wxPyART_CROSS_MARK)->c_str(), (&wxPyART_CROSS_MARK)->Len());
14356 #else
14357 pyobj = PyString_FromStringAndSize((&wxPyART_CROSS_MARK)->c_str(), (&wxPyART_CROSS_MARK)->Len());
14358 #endif
14359 }
14360 return pyobj;
14361 }
14362
14363
14364 static int _wrap_ART_ERROR_set(PyObject *_val) {
14365 PyErr_SetString(PyExc_TypeError,"Variable ART_ERROR is read-only.");
14366 return 1;
14367 }
14368
14369
14370 static PyObject *_wrap_ART_ERROR_get() {
14371 PyObject *pyobj;
14372
14373 {
14374 #if wxUSE_UNICODE
14375 pyobj = PyUnicode_FromWideChar((&wxPyART_ERROR)->c_str(), (&wxPyART_ERROR)->Len());
14376 #else
14377 pyobj = PyString_FromStringAndSize((&wxPyART_ERROR)->c_str(), (&wxPyART_ERROR)->Len());
14378 #endif
14379 }
14380 return pyobj;
14381 }
14382
14383
14384 static int _wrap_ART_QUESTION_set(PyObject *_val) {
14385 PyErr_SetString(PyExc_TypeError,"Variable ART_QUESTION is read-only.");
14386 return 1;
14387 }
14388
14389
14390 static PyObject *_wrap_ART_QUESTION_get() {
14391 PyObject *pyobj;
14392
14393 {
14394 #if wxUSE_UNICODE
14395 pyobj = PyUnicode_FromWideChar((&wxPyART_QUESTION)->c_str(), (&wxPyART_QUESTION)->Len());
14396 #else
14397 pyobj = PyString_FromStringAndSize((&wxPyART_QUESTION)->c_str(), (&wxPyART_QUESTION)->Len());
14398 #endif
14399 }
14400 return pyobj;
14401 }
14402
14403
14404 static int _wrap_ART_WARNING_set(PyObject *_val) {
14405 PyErr_SetString(PyExc_TypeError,"Variable ART_WARNING is read-only.");
14406 return 1;
14407 }
14408
14409
14410 static PyObject *_wrap_ART_WARNING_get() {
14411 PyObject *pyobj;
14412
14413 {
14414 #if wxUSE_UNICODE
14415 pyobj = PyUnicode_FromWideChar((&wxPyART_WARNING)->c_str(), (&wxPyART_WARNING)->Len());
14416 #else
14417 pyobj = PyString_FromStringAndSize((&wxPyART_WARNING)->c_str(), (&wxPyART_WARNING)->Len());
14418 #endif
14419 }
14420 return pyobj;
14421 }
14422
14423
14424 static int _wrap_ART_INFORMATION_set(PyObject *_val) {
14425 PyErr_SetString(PyExc_TypeError,"Variable ART_INFORMATION is read-only.");
14426 return 1;
14427 }
14428
14429
14430 static PyObject *_wrap_ART_INFORMATION_get() {
14431 PyObject *pyobj;
14432
14433 {
14434 #if wxUSE_UNICODE
14435 pyobj = PyUnicode_FromWideChar((&wxPyART_INFORMATION)->c_str(), (&wxPyART_INFORMATION)->Len());
14436 #else
14437 pyobj = PyString_FromStringAndSize((&wxPyART_INFORMATION)->c_str(), (&wxPyART_INFORMATION)->Len());
14438 #endif
14439 }
14440 return pyobj;
14441 }
14442
14443
14444 static int _wrap_ART_MISSING_IMAGE_set(PyObject *_val) {
14445 PyErr_SetString(PyExc_TypeError,"Variable ART_MISSING_IMAGE is read-only.");
14446 return 1;
14447 }
14448
14449
14450 static PyObject *_wrap_ART_MISSING_IMAGE_get() {
14451 PyObject *pyobj;
14452
14453 {
14454 #if wxUSE_UNICODE
14455 pyobj = PyUnicode_FromWideChar((&wxPyART_MISSING_IMAGE)->c_str(), (&wxPyART_MISSING_IMAGE)->Len());
14456 #else
14457 pyobj = PyString_FromStringAndSize((&wxPyART_MISSING_IMAGE)->c_str(), (&wxPyART_MISSING_IMAGE)->Len());
14458 #endif
14459 }
14460 return pyobj;
14461 }
14462
14463
14464 static PyObject *_wrap_new_ArtProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
14465 PyObject *resultobj;
14466 wxPyArtProvider *result;
14467 char *kwnames[] = {
14468 NULL
14469 };
14470
14471 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ArtProvider",kwnames)) goto fail;
14472 {
14473 if (!wxPyCheckForApp()) SWIG_fail;
14474 PyThreadState* __tstate = wxPyBeginAllowThreads();
14475 result = (wxPyArtProvider *)new wxPyArtProvider();
14476
14477 wxPyEndAllowThreads(__tstate);
14478 if (PyErr_Occurred()) SWIG_fail;
14479 }
14480 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyArtProvider, 1);
14481 return resultobj;
14482 fail:
14483 return NULL;
14484 }
14485
14486
14487 static PyObject *_wrap_ArtProvider__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
14488 PyObject *resultobj;
14489 wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ;
14490 PyObject *arg2 = (PyObject *) 0 ;
14491 PyObject *arg3 = (PyObject *) 0 ;
14492 PyObject * obj0 = 0 ;
14493 PyObject * obj1 = 0 ;
14494 PyObject * obj2 = 0 ;
14495 char *kwnames[] = {
14496 (char *) "self",(char *) "self",(char *) "_class", NULL
14497 };
14498
14499 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ArtProvider__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
14500 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider,
14501 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14502 arg2 = obj1;
14503 arg3 = obj2;
14504 {
14505 PyThreadState* __tstate = wxPyBeginAllowThreads();
14506 (arg1)->_setCallbackInfo(arg2,arg3);
14507
14508 wxPyEndAllowThreads(__tstate);
14509 if (PyErr_Occurred()) SWIG_fail;
14510 }
14511 Py_INCREF(Py_None); resultobj = Py_None;
14512 return resultobj;
14513 fail:
14514 return NULL;
14515 }
14516
14517
14518 static PyObject *_wrap_ArtProvider_PushProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
14519 PyObject *resultobj;
14520 wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ;
14521 PyObject * obj0 = 0 ;
14522 char *kwnames[] = {
14523 (char *) "provider", NULL
14524 };
14525
14526 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_PushProvider",kwnames,&obj0)) goto fail;
14527 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider,
14528 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14529 {
14530 PyThreadState* __tstate = wxPyBeginAllowThreads();
14531 wxPyArtProvider::PushProvider(arg1);
14532
14533 wxPyEndAllowThreads(__tstate);
14534 if (PyErr_Occurred()) SWIG_fail;
14535 }
14536 Py_INCREF(Py_None); resultobj = Py_None;
14537 return resultobj;
14538 fail:
14539 return NULL;
14540 }
14541
14542
14543 static PyObject *_wrap_ArtProvider_PopProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
14544 PyObject *resultobj;
14545 bool result;
14546 char *kwnames[] = {
14547 NULL
14548 };
14549
14550 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ArtProvider_PopProvider",kwnames)) goto fail;
14551 {
14552 PyThreadState* __tstate = wxPyBeginAllowThreads();
14553 result = (bool)wxPyArtProvider::PopProvider();
14554
14555 wxPyEndAllowThreads(__tstate);
14556 if (PyErr_Occurred()) SWIG_fail;
14557 }
14558 {
14559 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14560 }
14561 return resultobj;
14562 fail:
14563 return NULL;
14564 }
14565
14566
14567 static PyObject *_wrap_ArtProvider_RemoveProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
14568 PyObject *resultobj;
14569 wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ;
14570 bool result;
14571 PyObject * obj0 = 0 ;
14572 char *kwnames[] = {
14573 (char *) "provider", NULL
14574 };
14575
14576 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_RemoveProvider",kwnames,&obj0)) goto fail;
14577 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider,
14578 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14579 {
14580 PyThreadState* __tstate = wxPyBeginAllowThreads();
14581 result = (bool)wxPyArtProvider::RemoveProvider(arg1);
14582
14583 wxPyEndAllowThreads(__tstate);
14584 if (PyErr_Occurred()) SWIG_fail;
14585 }
14586 {
14587 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14588 }
14589 return resultobj;
14590 fail:
14591 return NULL;
14592 }
14593
14594
14595 static PyObject *_wrap_ArtProvider_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
14596 PyObject *resultobj;
14597 wxString *arg1 = 0 ;
14598 wxString const &arg2_defvalue = wxPyART_OTHER ;
14599 wxString *arg2 = (wxString *) &arg2_defvalue ;
14600 wxSize const &arg3_defvalue = wxDefaultSize ;
14601 wxSize *arg3 = (wxSize *) &arg3_defvalue ;
14602 wxBitmap result;
14603 bool temp1 = False ;
14604 bool temp2 = False ;
14605 wxSize temp3 ;
14606 PyObject * obj0 = 0 ;
14607 PyObject * obj1 = 0 ;
14608 PyObject * obj2 = 0 ;
14609 char *kwnames[] = {
14610 (char *) "id",(char *) "client",(char *) "size", NULL
14611 };
14612
14613 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:ArtProvider_GetBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail;
14614 {
14615 arg1 = wxString_in_helper(obj0);
14616 if (arg1 == NULL) SWIG_fail;
14617 temp1 = True;
14618 }
14619 if (obj1) {
14620 {
14621 arg2 = wxString_in_helper(obj1);
14622 if (arg2 == NULL) SWIG_fail;
14623 temp2 = True;
14624 }
14625 }
14626 if (obj2) {
14627 {
14628 arg3 = &temp3;
14629 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
14630 }
14631 }
14632 {
14633 if (!wxPyCheckForApp()) SWIG_fail;
14634 PyThreadState* __tstate = wxPyBeginAllowThreads();
14635 result = wxPyArtProvider::GetBitmap((wxString const &)*arg1,(wxString const &)*arg2,(wxSize const &)*arg3);
14636
14637 wxPyEndAllowThreads(__tstate);
14638 if (PyErr_Occurred()) SWIG_fail;
14639 }
14640 {
14641 wxBitmap * resultptr;
14642 resultptr = new wxBitmap((wxBitmap &) result);
14643 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
14644 }
14645 {
14646 if (temp1)
14647 delete arg1;
14648 }
14649 {
14650 if (temp2)
14651 delete arg2;
14652 }
14653 return resultobj;
14654 fail:
14655 {
14656 if (temp1)
14657 delete arg1;
14658 }
14659 {
14660 if (temp2)
14661 delete arg2;
14662 }
14663 return NULL;
14664 }
14665
14666
14667 static PyObject *_wrap_ArtProvider_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
14668 PyObject *resultobj;
14669 wxString *arg1 = 0 ;
14670 wxString const &arg2_defvalue = wxPyART_OTHER ;
14671 wxString *arg2 = (wxString *) &arg2_defvalue ;
14672 wxSize const &arg3_defvalue = wxDefaultSize ;
14673 wxSize *arg3 = (wxSize *) &arg3_defvalue ;
14674 wxIcon result;
14675 bool temp1 = False ;
14676 bool temp2 = False ;
14677 wxSize temp3 ;
14678 PyObject * obj0 = 0 ;
14679 PyObject * obj1 = 0 ;
14680 PyObject * obj2 = 0 ;
14681 char *kwnames[] = {
14682 (char *) "id",(char *) "client",(char *) "size", NULL
14683 };
14684
14685 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:ArtProvider_GetIcon",kwnames,&obj0,&obj1,&obj2)) goto fail;
14686 {
14687 arg1 = wxString_in_helper(obj0);
14688 if (arg1 == NULL) SWIG_fail;
14689 temp1 = True;
14690 }
14691 if (obj1) {
14692 {
14693 arg2 = wxString_in_helper(obj1);
14694 if (arg2 == NULL) SWIG_fail;
14695 temp2 = True;
14696 }
14697 }
14698 if (obj2) {
14699 {
14700 arg3 = &temp3;
14701 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
14702 }
14703 }
14704 {
14705 if (!wxPyCheckForApp()) SWIG_fail;
14706 PyThreadState* __tstate = wxPyBeginAllowThreads();
14707 result = wxPyArtProvider::GetIcon((wxString const &)*arg1,(wxString const &)*arg2,(wxSize const &)*arg3);
14708
14709 wxPyEndAllowThreads(__tstate);
14710 if (PyErr_Occurred()) SWIG_fail;
14711 }
14712 {
14713 wxIcon * resultptr;
14714 resultptr = new wxIcon((wxIcon &) result);
14715 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxIcon, 1);
14716 }
14717 {
14718 if (temp1)
14719 delete arg1;
14720 }
14721 {
14722 if (temp2)
14723 delete arg2;
14724 }
14725 return resultobj;
14726 fail:
14727 {
14728 if (temp1)
14729 delete arg1;
14730 }
14731 {
14732 if (temp2)
14733 delete arg2;
14734 }
14735 return NULL;
14736 }
14737
14738
14739 static PyObject *_wrap_ArtProvider_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
14740 PyObject *resultobj;
14741 wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ;
14742 PyObject * obj0 = 0 ;
14743 char *kwnames[] = {
14744 (char *) "self", NULL
14745 };
14746
14747 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_Destroy",kwnames,&obj0)) goto fail;
14748 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider,
14749 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14750 {
14751 PyThreadState* __tstate = wxPyBeginAllowThreads();
14752 wxPyArtProvider_Destroy(arg1);
14753
14754 wxPyEndAllowThreads(__tstate);
14755 if (PyErr_Occurred()) SWIG_fail;
14756 }
14757 Py_INCREF(Py_None); resultobj = Py_None;
14758 return resultobj;
14759 fail:
14760 return NULL;
14761 }
14762
14763
14764 static PyObject * ArtProvider_swigregister(PyObject *self, PyObject *args) {
14765 PyObject *obj;
14766 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14767 SWIG_TypeClientData(SWIGTYPE_p_wxPyArtProvider, obj);
14768 Py_INCREF(obj);
14769 return Py_BuildValue((char *)"");
14770 }
14771 static PyObject *_wrap_delete_ConfigBase(PyObject *self, PyObject *args, PyObject *kwargs) {
14772 PyObject *resultobj;
14773 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14774 PyObject * obj0 = 0 ;
14775 char *kwnames[] = {
14776 (char *) "self", NULL
14777 };
14778
14779 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ConfigBase",kwnames,&obj0)) goto fail;
14780 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14781 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14782 {
14783 PyThreadState* __tstate = wxPyBeginAllowThreads();
14784 delete arg1;
14785
14786 wxPyEndAllowThreads(__tstate);
14787 if (PyErr_Occurred()) SWIG_fail;
14788 }
14789 Py_INCREF(Py_None); resultobj = Py_None;
14790 return resultobj;
14791 fail:
14792 return NULL;
14793 }
14794
14795
14796 static PyObject *_wrap_ConfigBase_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
14797 PyObject *resultobj;
14798 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14799 wxConfigBase *result;
14800 PyObject * obj0 = 0 ;
14801 char *kwnames[] = {
14802 (char *) "config", NULL
14803 };
14804
14805 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_Set",kwnames,&obj0)) goto fail;
14806 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14807 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14808 {
14809 PyThreadState* __tstate = wxPyBeginAllowThreads();
14810 result = (wxConfigBase *)wxConfigBase::Set(arg1);
14811
14812 wxPyEndAllowThreads(__tstate);
14813 if (PyErr_Occurred()) SWIG_fail;
14814 }
14815 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigBase, 0);
14816 return resultobj;
14817 fail:
14818 return NULL;
14819 }
14820
14821
14822 static PyObject *_wrap_ConfigBase_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
14823 PyObject *resultobj;
14824 bool arg1 = (bool) True ;
14825 wxConfigBase *result;
14826 PyObject * obj0 = 0 ;
14827 char *kwnames[] = {
14828 (char *) "createOnDemand", NULL
14829 };
14830
14831 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ConfigBase_Get",kwnames,&obj0)) goto fail;
14832 if (obj0) {
14833 arg1 = (bool) SWIG_AsBool(obj0);
14834 if (PyErr_Occurred()) SWIG_fail;
14835 }
14836 {
14837 PyThreadState* __tstate = wxPyBeginAllowThreads();
14838 result = (wxConfigBase *)wxConfigBase::Get(arg1);
14839
14840 wxPyEndAllowThreads(__tstate);
14841 if (PyErr_Occurred()) SWIG_fail;
14842 }
14843 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigBase, 0);
14844 return resultobj;
14845 fail:
14846 return NULL;
14847 }
14848
14849
14850 static PyObject *_wrap_ConfigBase_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
14851 PyObject *resultobj;
14852 wxConfigBase *result;
14853 char *kwnames[] = {
14854 NULL
14855 };
14856
14857 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ConfigBase_Create",kwnames)) goto fail;
14858 {
14859 PyThreadState* __tstate = wxPyBeginAllowThreads();
14860 result = (wxConfigBase *)wxConfigBase::Create();
14861
14862 wxPyEndAllowThreads(__tstate);
14863 if (PyErr_Occurred()) SWIG_fail;
14864 }
14865 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigBase, 0);
14866 return resultobj;
14867 fail:
14868 return NULL;
14869 }
14870
14871
14872 static PyObject *_wrap_ConfigBase_DontCreateOnDemand(PyObject *self, PyObject *args, PyObject *kwargs) {
14873 PyObject *resultobj;
14874 char *kwnames[] = {
14875 NULL
14876 };
14877
14878 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ConfigBase_DontCreateOnDemand",kwnames)) goto fail;
14879 {
14880 PyThreadState* __tstate = wxPyBeginAllowThreads();
14881 wxConfigBase::DontCreateOnDemand();
14882
14883 wxPyEndAllowThreads(__tstate);
14884 if (PyErr_Occurred()) SWIG_fail;
14885 }
14886 Py_INCREF(Py_None); resultobj = Py_None;
14887 return resultobj;
14888 fail:
14889 return NULL;
14890 }
14891
14892
14893 static PyObject *_wrap_ConfigBase_SetPath(PyObject *self, PyObject *args, PyObject *kwargs) {
14894 PyObject *resultobj;
14895 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14896 wxString *arg2 = 0 ;
14897 bool temp2 = False ;
14898 PyObject * obj0 = 0 ;
14899 PyObject * obj1 = 0 ;
14900 char *kwnames[] = {
14901 (char *) "self",(char *) "path", NULL
14902 };
14903
14904 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetPath",kwnames,&obj0,&obj1)) goto fail;
14905 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14906 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14907 {
14908 arg2 = wxString_in_helper(obj1);
14909 if (arg2 == NULL) SWIG_fail;
14910 temp2 = True;
14911 }
14912 {
14913 PyThreadState* __tstate = wxPyBeginAllowThreads();
14914 (arg1)->SetPath((wxString const &)*arg2);
14915
14916 wxPyEndAllowThreads(__tstate);
14917 if (PyErr_Occurred()) SWIG_fail;
14918 }
14919 Py_INCREF(Py_None); resultobj = Py_None;
14920 {
14921 if (temp2)
14922 delete arg2;
14923 }
14924 return resultobj;
14925 fail:
14926 {
14927 if (temp2)
14928 delete arg2;
14929 }
14930 return NULL;
14931 }
14932
14933
14934 static PyObject *_wrap_ConfigBase_GetPath(PyObject *self, PyObject *args, PyObject *kwargs) {
14935 PyObject *resultobj;
14936 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14937 wxString *result;
14938 PyObject * obj0 = 0 ;
14939 char *kwnames[] = {
14940 (char *) "self", NULL
14941 };
14942
14943 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetPath",kwnames,&obj0)) goto fail;
14944 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14945 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14946 {
14947 PyThreadState* __tstate = wxPyBeginAllowThreads();
14948 {
14949 wxString const &_result_ref = ((wxConfigBase const *)arg1)->GetPath();
14950 result = (wxString *) &_result_ref;
14951 }
14952
14953 wxPyEndAllowThreads(__tstate);
14954 if (PyErr_Occurred()) SWIG_fail;
14955 }
14956 {
14957 #if wxUSE_UNICODE
14958 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
14959 #else
14960 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
14961 #endif
14962 }
14963 return resultobj;
14964 fail:
14965 return NULL;
14966 }
14967
14968
14969 static PyObject *_wrap_ConfigBase_GetFirstGroup(PyObject *self, PyObject *args, PyObject *kwargs) {
14970 PyObject *resultobj;
14971 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14972 PyObject *result;
14973 PyObject * obj0 = 0 ;
14974 char *kwnames[] = {
14975 (char *) "self", NULL
14976 };
14977
14978 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetFirstGroup",kwnames,&obj0)) goto fail;
14979 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14980 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14981 {
14982 PyThreadState* __tstate = wxPyBeginAllowThreads();
14983 result = (PyObject *)wxConfigBase_GetFirstGroup(arg1);
14984
14985 wxPyEndAllowThreads(__tstate);
14986 if (PyErr_Occurred()) SWIG_fail;
14987 }
14988 resultobj = result;
14989 return resultobj;
14990 fail:
14991 return NULL;
14992 }
14993
14994
14995 static PyObject *_wrap_ConfigBase_GetNextGroup(PyObject *self, PyObject *args, PyObject *kwargs) {
14996 PyObject *resultobj;
14997 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14998 long arg2 ;
14999 PyObject *result;
15000 PyObject * obj0 = 0 ;
15001 PyObject * obj1 = 0 ;
15002 char *kwnames[] = {
15003 (char *) "self",(char *) "index", NULL
15004 };
15005
15006 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetNextGroup",kwnames,&obj0,&obj1)) goto fail;
15007 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15008 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15009 arg2 = (long) SWIG_AsLong(obj1);
15010 if (PyErr_Occurred()) SWIG_fail;
15011 {
15012 PyThreadState* __tstate = wxPyBeginAllowThreads();
15013 result = (PyObject *)wxConfigBase_GetNextGroup(arg1,arg2);
15014
15015 wxPyEndAllowThreads(__tstate);
15016 if (PyErr_Occurred()) SWIG_fail;
15017 }
15018 resultobj = result;
15019 return resultobj;
15020 fail:
15021 return NULL;
15022 }
15023
15024
15025 static PyObject *_wrap_ConfigBase_GetFirstEntry(PyObject *self, PyObject *args, PyObject *kwargs) {
15026 PyObject *resultobj;
15027 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15028 PyObject *result;
15029 PyObject * obj0 = 0 ;
15030 char *kwnames[] = {
15031 (char *) "self", NULL
15032 };
15033
15034 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetFirstEntry",kwnames,&obj0)) goto fail;
15035 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15036 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15037 {
15038 PyThreadState* __tstate = wxPyBeginAllowThreads();
15039 result = (PyObject *)wxConfigBase_GetFirstEntry(arg1);
15040
15041 wxPyEndAllowThreads(__tstate);
15042 if (PyErr_Occurred()) SWIG_fail;
15043 }
15044 resultobj = result;
15045 return resultobj;
15046 fail:
15047 return NULL;
15048 }
15049
15050
15051 static PyObject *_wrap_ConfigBase_GetNextEntry(PyObject *self, PyObject *args, PyObject *kwargs) {
15052 PyObject *resultobj;
15053 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15054 long arg2 ;
15055 PyObject *result;
15056 PyObject * obj0 = 0 ;
15057 PyObject * obj1 = 0 ;
15058 char *kwnames[] = {
15059 (char *) "self",(char *) "index", NULL
15060 };
15061
15062 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetNextEntry",kwnames,&obj0,&obj1)) goto fail;
15063 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15064 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15065 arg2 = (long) SWIG_AsLong(obj1);
15066 if (PyErr_Occurred()) SWIG_fail;
15067 {
15068 PyThreadState* __tstate = wxPyBeginAllowThreads();
15069 result = (PyObject *)wxConfigBase_GetNextEntry(arg1,arg2);
15070
15071 wxPyEndAllowThreads(__tstate);
15072 if (PyErr_Occurred()) SWIG_fail;
15073 }
15074 resultobj = result;
15075 return resultobj;
15076 fail:
15077 return NULL;
15078 }
15079
15080
15081 static PyObject *_wrap_ConfigBase_GetNumberOfEntries(PyObject *self, PyObject *args, PyObject *kwargs) {
15082 PyObject *resultobj;
15083 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15084 bool arg2 = (bool) False ;
15085 size_t result;
15086 PyObject * obj0 = 0 ;
15087 PyObject * obj1 = 0 ;
15088 char *kwnames[] = {
15089 (char *) "self",(char *) "recursive", NULL
15090 };
15091
15092 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_GetNumberOfEntries",kwnames,&obj0,&obj1)) goto fail;
15093 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15094 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15095 if (obj1) {
15096 arg2 = (bool) SWIG_AsBool(obj1);
15097 if (PyErr_Occurred()) SWIG_fail;
15098 }
15099 {
15100 PyThreadState* __tstate = wxPyBeginAllowThreads();
15101 result = (size_t)((wxConfigBase const *)arg1)->GetNumberOfEntries(arg2);
15102
15103 wxPyEndAllowThreads(__tstate);
15104 if (PyErr_Occurred()) SWIG_fail;
15105 }
15106 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
15107 return resultobj;
15108 fail:
15109 return NULL;
15110 }
15111
15112
15113 static PyObject *_wrap_ConfigBase_GetNumberOfGroups(PyObject *self, PyObject *args, PyObject *kwargs) {
15114 PyObject *resultobj;
15115 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15116 bool arg2 = (bool) False ;
15117 size_t result;
15118 PyObject * obj0 = 0 ;
15119 PyObject * obj1 = 0 ;
15120 char *kwnames[] = {
15121 (char *) "self",(char *) "recursive", NULL
15122 };
15123
15124 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_GetNumberOfGroups",kwnames,&obj0,&obj1)) goto fail;
15125 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15126 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15127 if (obj1) {
15128 arg2 = (bool) SWIG_AsBool(obj1);
15129 if (PyErr_Occurred()) SWIG_fail;
15130 }
15131 {
15132 PyThreadState* __tstate = wxPyBeginAllowThreads();
15133 result = (size_t)((wxConfigBase const *)arg1)->GetNumberOfGroups(arg2);
15134
15135 wxPyEndAllowThreads(__tstate);
15136 if (PyErr_Occurred()) SWIG_fail;
15137 }
15138 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
15139 return resultobj;
15140 fail:
15141 return NULL;
15142 }
15143
15144
15145 static PyObject *_wrap_ConfigBase_HasGroup(PyObject *self, PyObject *args, PyObject *kwargs) {
15146 PyObject *resultobj;
15147 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15148 wxString *arg2 = 0 ;
15149 bool result;
15150 bool temp2 = False ;
15151 PyObject * obj0 = 0 ;
15152 PyObject * obj1 = 0 ;
15153 char *kwnames[] = {
15154 (char *) "self",(char *) "name", NULL
15155 };
15156
15157 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_HasGroup",kwnames,&obj0,&obj1)) goto fail;
15158 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15159 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15160 {
15161 arg2 = wxString_in_helper(obj1);
15162 if (arg2 == NULL) SWIG_fail;
15163 temp2 = True;
15164 }
15165 {
15166 PyThreadState* __tstate = wxPyBeginAllowThreads();
15167 result = (bool)((wxConfigBase const *)arg1)->HasGroup((wxString const &)*arg2);
15168
15169 wxPyEndAllowThreads(__tstate);
15170 if (PyErr_Occurred()) SWIG_fail;
15171 }
15172 {
15173 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15174 }
15175 {
15176 if (temp2)
15177 delete arg2;
15178 }
15179 return resultobj;
15180 fail:
15181 {
15182 if (temp2)
15183 delete arg2;
15184 }
15185 return NULL;
15186 }
15187
15188
15189 static PyObject *_wrap_ConfigBase_HasEntry(PyObject *self, PyObject *args, PyObject *kwargs) {
15190 PyObject *resultobj;
15191 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15192 wxString *arg2 = 0 ;
15193 bool result;
15194 bool temp2 = False ;
15195 PyObject * obj0 = 0 ;
15196 PyObject * obj1 = 0 ;
15197 char *kwnames[] = {
15198 (char *) "self",(char *) "name", NULL
15199 };
15200
15201 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_HasEntry",kwnames,&obj0,&obj1)) goto fail;
15202 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15203 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15204 {
15205 arg2 = wxString_in_helper(obj1);
15206 if (arg2 == NULL) SWIG_fail;
15207 temp2 = True;
15208 }
15209 {
15210 PyThreadState* __tstate = wxPyBeginAllowThreads();
15211 result = (bool)((wxConfigBase const *)arg1)->HasEntry((wxString const &)*arg2);
15212
15213 wxPyEndAllowThreads(__tstate);
15214 if (PyErr_Occurred()) SWIG_fail;
15215 }
15216 {
15217 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15218 }
15219 {
15220 if (temp2)
15221 delete arg2;
15222 }
15223 return resultobj;
15224 fail:
15225 {
15226 if (temp2)
15227 delete arg2;
15228 }
15229 return NULL;
15230 }
15231
15232
15233 static PyObject *_wrap_ConfigBase_Exists(PyObject *self, PyObject *args, PyObject *kwargs) {
15234 PyObject *resultobj;
15235 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15236 wxString *arg2 = 0 ;
15237 bool result;
15238 bool temp2 = False ;
15239 PyObject * obj0 = 0 ;
15240 PyObject * obj1 = 0 ;
15241 char *kwnames[] = {
15242 (char *) "self",(char *) "name", NULL
15243 };
15244
15245 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_Exists",kwnames,&obj0,&obj1)) goto fail;
15246 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15247 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15248 {
15249 arg2 = wxString_in_helper(obj1);
15250 if (arg2 == NULL) SWIG_fail;
15251 temp2 = True;
15252 }
15253 {
15254 PyThreadState* __tstate = wxPyBeginAllowThreads();
15255 result = (bool)((wxConfigBase const *)arg1)->Exists((wxString const &)*arg2);
15256
15257 wxPyEndAllowThreads(__tstate);
15258 if (PyErr_Occurred()) SWIG_fail;
15259 }
15260 {
15261 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15262 }
15263 {
15264 if (temp2)
15265 delete arg2;
15266 }
15267 return resultobj;
15268 fail:
15269 {
15270 if (temp2)
15271 delete arg2;
15272 }
15273 return NULL;
15274 }
15275
15276
15277 static PyObject *_wrap_ConfigBase_GetEntryType(PyObject *self, PyObject *args, PyObject *kwargs) {
15278 PyObject *resultobj;
15279 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15280 wxString *arg2 = 0 ;
15281 int result;
15282 bool temp2 = False ;
15283 PyObject * obj0 = 0 ;
15284 PyObject * obj1 = 0 ;
15285 char *kwnames[] = {
15286 (char *) "self",(char *) "name", NULL
15287 };
15288
15289 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetEntryType",kwnames,&obj0,&obj1)) goto fail;
15290 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15291 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15292 {
15293 arg2 = wxString_in_helper(obj1);
15294 if (arg2 == NULL) SWIG_fail;
15295 temp2 = True;
15296 }
15297 {
15298 PyThreadState* __tstate = wxPyBeginAllowThreads();
15299 result = (int)((wxConfigBase const *)arg1)->GetEntryType((wxString const &)*arg2);
15300
15301 wxPyEndAllowThreads(__tstate);
15302 if (PyErr_Occurred()) SWIG_fail;
15303 }
15304 resultobj = SWIG_FromInt((int)result);
15305 {
15306 if (temp2)
15307 delete arg2;
15308 }
15309 return resultobj;
15310 fail:
15311 {
15312 if (temp2)
15313 delete arg2;
15314 }
15315 return NULL;
15316 }
15317
15318
15319 static PyObject *_wrap_ConfigBase_Read(PyObject *self, PyObject *args, PyObject *kwargs) {
15320 PyObject *resultobj;
15321 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15322 wxString *arg2 = 0 ;
15323 wxString const &arg3_defvalue = wxPyEmptyString ;
15324 wxString *arg3 = (wxString *) &arg3_defvalue ;
15325 wxString result;
15326 bool temp2 = False ;
15327 bool temp3 = False ;
15328 PyObject * obj0 = 0 ;
15329 PyObject * obj1 = 0 ;
15330 PyObject * obj2 = 0 ;
15331 char *kwnames[] = {
15332 (char *) "self",(char *) "key",(char *) "defaultVal", NULL
15333 };
15334
15335 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_Read",kwnames,&obj0,&obj1,&obj2)) goto fail;
15336 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15337 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15338 {
15339 arg2 = wxString_in_helper(obj1);
15340 if (arg2 == NULL) SWIG_fail;
15341 temp2 = True;
15342 }
15343 if (obj2) {
15344 {
15345 arg3 = wxString_in_helper(obj2);
15346 if (arg3 == NULL) SWIG_fail;
15347 temp3 = True;
15348 }
15349 }
15350 {
15351 PyThreadState* __tstate = wxPyBeginAllowThreads();
15352 result = (arg1)->Read((wxString const &)*arg2,(wxString const &)*arg3);
15353
15354 wxPyEndAllowThreads(__tstate);
15355 if (PyErr_Occurred()) SWIG_fail;
15356 }
15357 {
15358 #if wxUSE_UNICODE
15359 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15360 #else
15361 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15362 #endif
15363 }
15364 {
15365 if (temp2)
15366 delete arg2;
15367 }
15368 {
15369 if (temp3)
15370 delete arg3;
15371 }
15372 return resultobj;
15373 fail:
15374 {
15375 if (temp2)
15376 delete arg2;
15377 }
15378 {
15379 if (temp3)
15380 delete arg3;
15381 }
15382 return NULL;
15383 }
15384
15385
15386 static PyObject *_wrap_ConfigBase_ReadInt(PyObject *self, PyObject *args, PyObject *kwargs) {
15387 PyObject *resultobj;
15388 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15389 wxString *arg2 = 0 ;
15390 long arg3 = (long) 0 ;
15391 long result;
15392 bool temp2 = False ;
15393 PyObject * obj0 = 0 ;
15394 PyObject * obj1 = 0 ;
15395 PyObject * obj2 = 0 ;
15396 char *kwnames[] = {
15397 (char *) "self",(char *) "key",(char *) "defaultVal", NULL
15398 };
15399
15400 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadInt",kwnames,&obj0,&obj1,&obj2)) goto fail;
15401 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15402 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15403 {
15404 arg2 = wxString_in_helper(obj1);
15405 if (arg2 == NULL) SWIG_fail;
15406 temp2 = True;
15407 }
15408 if (obj2) {
15409 arg3 = (long) SWIG_AsLong(obj2);
15410 if (PyErr_Occurred()) SWIG_fail;
15411 }
15412 {
15413 PyThreadState* __tstate = wxPyBeginAllowThreads();
15414 result = (long)wxConfigBase_ReadInt(arg1,(wxString const &)*arg2,arg3);
15415
15416 wxPyEndAllowThreads(__tstate);
15417 if (PyErr_Occurred()) SWIG_fail;
15418 }
15419 resultobj = SWIG_FromLong((long)result);
15420 {
15421 if (temp2)
15422 delete arg2;
15423 }
15424 return resultobj;
15425 fail:
15426 {
15427 if (temp2)
15428 delete arg2;
15429 }
15430 return NULL;
15431 }
15432
15433
15434 static PyObject *_wrap_ConfigBase_ReadFloat(PyObject *self, PyObject *args, PyObject *kwargs) {
15435 PyObject *resultobj;
15436 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15437 wxString *arg2 = 0 ;
15438 double arg3 = (double) 0.0 ;
15439 double result;
15440 bool temp2 = False ;
15441 PyObject * obj0 = 0 ;
15442 PyObject * obj1 = 0 ;
15443 PyObject * obj2 = 0 ;
15444 char *kwnames[] = {
15445 (char *) "self",(char *) "key",(char *) "defaultVal", NULL
15446 };
15447
15448 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadFloat",kwnames,&obj0,&obj1,&obj2)) goto fail;
15449 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15450 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15451 {
15452 arg2 = wxString_in_helper(obj1);
15453 if (arg2 == NULL) SWIG_fail;
15454 temp2 = True;
15455 }
15456 if (obj2) {
15457 arg3 = (double) SWIG_AsDouble(obj2);
15458 if (PyErr_Occurred()) SWIG_fail;
15459 }
15460 {
15461 PyThreadState* __tstate = wxPyBeginAllowThreads();
15462 result = (double)wxConfigBase_ReadFloat(arg1,(wxString const &)*arg2,arg3);
15463
15464 wxPyEndAllowThreads(__tstate);
15465 if (PyErr_Occurred()) SWIG_fail;
15466 }
15467 resultobj = SWIG_FromDouble((double)result);
15468 {
15469 if (temp2)
15470 delete arg2;
15471 }
15472 return resultobj;
15473 fail:
15474 {
15475 if (temp2)
15476 delete arg2;
15477 }
15478 return NULL;
15479 }
15480
15481
15482 static PyObject *_wrap_ConfigBase_ReadBool(PyObject *self, PyObject *args, PyObject *kwargs) {
15483 PyObject *resultobj;
15484 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15485 wxString *arg2 = 0 ;
15486 bool arg3 = (bool) False ;
15487 bool result;
15488 bool temp2 = False ;
15489 PyObject * obj0 = 0 ;
15490 PyObject * obj1 = 0 ;
15491 PyObject * obj2 = 0 ;
15492 char *kwnames[] = {
15493 (char *) "self",(char *) "key",(char *) "defaultVal", NULL
15494 };
15495
15496 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadBool",kwnames,&obj0,&obj1,&obj2)) goto fail;
15497 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15498 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15499 {
15500 arg2 = wxString_in_helper(obj1);
15501 if (arg2 == NULL) SWIG_fail;
15502 temp2 = True;
15503 }
15504 if (obj2) {
15505 arg3 = (bool) SWIG_AsBool(obj2);
15506 if (PyErr_Occurred()) SWIG_fail;
15507 }
15508 {
15509 PyThreadState* __tstate = wxPyBeginAllowThreads();
15510 result = (bool)wxConfigBase_ReadBool(arg1,(wxString const &)*arg2,arg3);
15511
15512 wxPyEndAllowThreads(__tstate);
15513 if (PyErr_Occurred()) SWIG_fail;
15514 }
15515 {
15516 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15517 }
15518 {
15519 if (temp2)
15520 delete arg2;
15521 }
15522 return resultobj;
15523 fail:
15524 {
15525 if (temp2)
15526 delete arg2;
15527 }
15528 return NULL;
15529 }
15530
15531
15532 static PyObject *_wrap_ConfigBase_Write(PyObject *self, PyObject *args, PyObject *kwargs) {
15533 PyObject *resultobj;
15534 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15535 wxString *arg2 = 0 ;
15536 wxString *arg3 = 0 ;
15537 bool result;
15538 bool temp2 = False ;
15539 bool temp3 = False ;
15540 PyObject * obj0 = 0 ;
15541 PyObject * obj1 = 0 ;
15542 PyObject * obj2 = 0 ;
15543 char *kwnames[] = {
15544 (char *) "self",(char *) "key",(char *) "value", NULL
15545 };
15546
15547 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_Write",kwnames,&obj0,&obj1,&obj2)) goto fail;
15548 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15549 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15550 {
15551 arg2 = wxString_in_helper(obj1);
15552 if (arg2 == NULL) SWIG_fail;
15553 temp2 = True;
15554 }
15555 {
15556 arg3 = wxString_in_helper(obj2);
15557 if (arg3 == NULL) SWIG_fail;
15558 temp3 = True;
15559 }
15560 {
15561 PyThreadState* __tstate = wxPyBeginAllowThreads();
15562 result = (bool)(arg1)->Write((wxString const &)*arg2,(wxString const &)*arg3);
15563
15564 wxPyEndAllowThreads(__tstate);
15565 if (PyErr_Occurred()) SWIG_fail;
15566 }
15567 {
15568 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15569 }
15570 {
15571 if (temp2)
15572 delete arg2;
15573 }
15574 {
15575 if (temp3)
15576 delete arg3;
15577 }
15578 return resultobj;
15579 fail:
15580 {
15581 if (temp2)
15582 delete arg2;
15583 }
15584 {
15585 if (temp3)
15586 delete arg3;
15587 }
15588 return NULL;
15589 }
15590
15591
15592 static PyObject *_wrap_ConfigBase_WriteInt(PyObject *self, PyObject *args, PyObject *kwargs) {
15593 PyObject *resultobj;
15594 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15595 wxString *arg2 = 0 ;
15596 long arg3 ;
15597 bool result;
15598 bool temp2 = False ;
15599 PyObject * obj0 = 0 ;
15600 PyObject * obj1 = 0 ;
15601 PyObject * obj2 = 0 ;
15602 char *kwnames[] = {
15603 (char *) "self",(char *) "key",(char *) "value", NULL
15604 };
15605
15606 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteInt",kwnames,&obj0,&obj1,&obj2)) goto fail;
15607 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15608 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15609 {
15610 arg2 = wxString_in_helper(obj1);
15611 if (arg2 == NULL) SWIG_fail;
15612 temp2 = True;
15613 }
15614 arg3 = (long) SWIG_AsLong(obj2);
15615 if (PyErr_Occurred()) SWIG_fail;
15616 {
15617 PyThreadState* __tstate = wxPyBeginAllowThreads();
15618 result = (bool)(arg1)->Write((wxString const &)*arg2,arg3);
15619
15620 wxPyEndAllowThreads(__tstate);
15621 if (PyErr_Occurred()) SWIG_fail;
15622 }
15623 {
15624 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15625 }
15626 {
15627 if (temp2)
15628 delete arg2;
15629 }
15630 return resultobj;
15631 fail:
15632 {
15633 if (temp2)
15634 delete arg2;
15635 }
15636 return NULL;
15637 }
15638
15639
15640 static PyObject *_wrap_ConfigBase_WriteFloat(PyObject *self, PyObject *args, PyObject *kwargs) {
15641 PyObject *resultobj;
15642 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15643 wxString *arg2 = 0 ;
15644 double arg3 ;
15645 bool result;
15646 bool temp2 = False ;
15647 PyObject * obj0 = 0 ;
15648 PyObject * obj1 = 0 ;
15649 PyObject * obj2 = 0 ;
15650 char *kwnames[] = {
15651 (char *) "self",(char *) "key",(char *) "value", NULL
15652 };
15653
15654 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteFloat",kwnames,&obj0,&obj1,&obj2)) goto fail;
15655 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15656 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15657 {
15658 arg2 = wxString_in_helper(obj1);
15659 if (arg2 == NULL) SWIG_fail;
15660 temp2 = True;
15661 }
15662 arg3 = (double) SWIG_AsDouble(obj2);
15663 if (PyErr_Occurred()) SWIG_fail;
15664 {
15665 PyThreadState* __tstate = wxPyBeginAllowThreads();
15666 result = (bool)(arg1)->Write((wxString const &)*arg2,arg3);
15667
15668 wxPyEndAllowThreads(__tstate);
15669 if (PyErr_Occurred()) SWIG_fail;
15670 }
15671 {
15672 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15673 }
15674 {
15675 if (temp2)
15676 delete arg2;
15677 }
15678 return resultobj;
15679 fail:
15680 {
15681 if (temp2)
15682 delete arg2;
15683 }
15684 return NULL;
15685 }
15686
15687
15688 static PyObject *_wrap_ConfigBase_WriteBool(PyObject *self, PyObject *args, PyObject *kwargs) {
15689 PyObject *resultobj;
15690 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15691 wxString *arg2 = 0 ;
15692 bool arg3 ;
15693 bool result;
15694 bool temp2 = False ;
15695 PyObject * obj0 = 0 ;
15696 PyObject * obj1 = 0 ;
15697 PyObject * obj2 = 0 ;
15698 char *kwnames[] = {
15699 (char *) "self",(char *) "key",(char *) "value", NULL
15700 };
15701
15702 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteBool",kwnames,&obj0,&obj1,&obj2)) goto fail;
15703 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15704 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15705 {
15706 arg2 = wxString_in_helper(obj1);
15707 if (arg2 == NULL) SWIG_fail;
15708 temp2 = True;
15709 }
15710 arg3 = (bool) SWIG_AsBool(obj2);
15711 if (PyErr_Occurred()) SWIG_fail;
15712 {
15713 PyThreadState* __tstate = wxPyBeginAllowThreads();
15714 result = (bool)(arg1)->Write((wxString const &)*arg2,arg3);
15715
15716 wxPyEndAllowThreads(__tstate);
15717 if (PyErr_Occurred()) SWIG_fail;
15718 }
15719 {
15720 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15721 }
15722 {
15723 if (temp2)
15724 delete arg2;
15725 }
15726 return resultobj;
15727 fail:
15728 {
15729 if (temp2)
15730 delete arg2;
15731 }
15732 return NULL;
15733 }
15734
15735
15736 static PyObject *_wrap_ConfigBase_Flush(PyObject *self, PyObject *args, PyObject *kwargs) {
15737 PyObject *resultobj;
15738 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15739 bool arg2 = (bool) False ;
15740 bool result;
15741 PyObject * obj0 = 0 ;
15742 PyObject * obj1 = 0 ;
15743 char *kwnames[] = {
15744 (char *) "self",(char *) "currentOnly", NULL
15745 };
15746
15747 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_Flush",kwnames,&obj0,&obj1)) goto fail;
15748 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15749 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15750 if (obj1) {
15751 arg2 = (bool) SWIG_AsBool(obj1);
15752 if (PyErr_Occurred()) SWIG_fail;
15753 }
15754 {
15755 PyThreadState* __tstate = wxPyBeginAllowThreads();
15756 result = (bool)(arg1)->Flush(arg2);
15757
15758 wxPyEndAllowThreads(__tstate);
15759 if (PyErr_Occurred()) SWIG_fail;
15760 }
15761 {
15762 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15763 }
15764 return resultobj;
15765 fail:
15766 return NULL;
15767 }
15768
15769
15770 static PyObject *_wrap_ConfigBase_RenameEntry(PyObject *self, PyObject *args, PyObject *kwargs) {
15771 PyObject *resultobj;
15772 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15773 wxString *arg2 = 0 ;
15774 wxString *arg3 = 0 ;
15775 bool result;
15776 bool temp2 = False ;
15777 bool temp3 = False ;
15778 PyObject * obj0 = 0 ;
15779 PyObject * obj1 = 0 ;
15780 PyObject * obj2 = 0 ;
15781 char *kwnames[] = {
15782 (char *) "self",(char *) "oldName",(char *) "newName", NULL
15783 };
15784
15785 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_RenameEntry",kwnames,&obj0,&obj1,&obj2)) goto fail;
15786 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15787 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15788 {
15789 arg2 = wxString_in_helper(obj1);
15790 if (arg2 == NULL) SWIG_fail;
15791 temp2 = True;
15792 }
15793 {
15794 arg3 = wxString_in_helper(obj2);
15795 if (arg3 == NULL) SWIG_fail;
15796 temp3 = True;
15797 }
15798 {
15799 PyThreadState* __tstate = wxPyBeginAllowThreads();
15800 result = (bool)(arg1)->RenameEntry((wxString const &)*arg2,(wxString const &)*arg3);
15801
15802 wxPyEndAllowThreads(__tstate);
15803 if (PyErr_Occurred()) SWIG_fail;
15804 }
15805 {
15806 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15807 }
15808 {
15809 if (temp2)
15810 delete arg2;
15811 }
15812 {
15813 if (temp3)
15814 delete arg3;
15815 }
15816 return resultobj;
15817 fail:
15818 {
15819 if (temp2)
15820 delete arg2;
15821 }
15822 {
15823 if (temp3)
15824 delete arg3;
15825 }
15826 return NULL;
15827 }
15828
15829
15830 static PyObject *_wrap_ConfigBase_RenameGroup(PyObject *self, PyObject *args, PyObject *kwargs) {
15831 PyObject *resultobj;
15832 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15833 wxString *arg2 = 0 ;
15834 wxString *arg3 = 0 ;
15835 bool result;
15836 bool temp2 = False ;
15837 bool temp3 = False ;
15838 PyObject * obj0 = 0 ;
15839 PyObject * obj1 = 0 ;
15840 PyObject * obj2 = 0 ;
15841 char *kwnames[] = {
15842 (char *) "self",(char *) "oldName",(char *) "newName", NULL
15843 };
15844
15845 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_RenameGroup",kwnames,&obj0,&obj1,&obj2)) goto fail;
15846 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15847 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15848 {
15849 arg2 = wxString_in_helper(obj1);
15850 if (arg2 == NULL) SWIG_fail;
15851 temp2 = True;
15852 }
15853 {
15854 arg3 = wxString_in_helper(obj2);
15855 if (arg3 == NULL) SWIG_fail;
15856 temp3 = True;
15857 }
15858 {
15859 PyThreadState* __tstate = wxPyBeginAllowThreads();
15860 result = (bool)(arg1)->RenameGroup((wxString const &)*arg2,(wxString const &)*arg3);
15861
15862 wxPyEndAllowThreads(__tstate);
15863 if (PyErr_Occurred()) SWIG_fail;
15864 }
15865 {
15866 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15867 }
15868 {
15869 if (temp2)
15870 delete arg2;
15871 }
15872 {
15873 if (temp3)
15874 delete arg3;
15875 }
15876 return resultobj;
15877 fail:
15878 {
15879 if (temp2)
15880 delete arg2;
15881 }
15882 {
15883 if (temp3)
15884 delete arg3;
15885 }
15886 return NULL;
15887 }
15888
15889
15890 static PyObject *_wrap_ConfigBase_DeleteEntry(PyObject *self, PyObject *args, PyObject *kwargs) {
15891 PyObject *resultobj;
15892 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15893 wxString *arg2 = 0 ;
15894 bool arg3 = (bool) True ;
15895 bool result;
15896 bool temp2 = False ;
15897 PyObject * obj0 = 0 ;
15898 PyObject * obj1 = 0 ;
15899 PyObject * obj2 = 0 ;
15900 char *kwnames[] = {
15901 (char *) "self",(char *) "key",(char *) "deleteGroupIfEmpty", NULL
15902 };
15903
15904 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_DeleteEntry",kwnames,&obj0,&obj1,&obj2)) goto fail;
15905 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15906 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15907 {
15908 arg2 = wxString_in_helper(obj1);
15909 if (arg2 == NULL) SWIG_fail;
15910 temp2 = True;
15911 }
15912 if (obj2) {
15913 arg3 = (bool) SWIG_AsBool(obj2);
15914 if (PyErr_Occurred()) SWIG_fail;
15915 }
15916 {
15917 PyThreadState* __tstate = wxPyBeginAllowThreads();
15918 result = (bool)(arg1)->DeleteEntry((wxString const &)*arg2,arg3);
15919
15920 wxPyEndAllowThreads(__tstate);
15921 if (PyErr_Occurred()) SWIG_fail;
15922 }
15923 {
15924 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15925 }
15926 {
15927 if (temp2)
15928 delete arg2;
15929 }
15930 return resultobj;
15931 fail:
15932 {
15933 if (temp2)
15934 delete arg2;
15935 }
15936 return NULL;
15937 }
15938
15939
15940 static PyObject *_wrap_ConfigBase_DeleteGroup(PyObject *self, PyObject *args, PyObject *kwargs) {
15941 PyObject *resultobj;
15942 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15943 wxString *arg2 = 0 ;
15944 bool result;
15945 bool temp2 = False ;
15946 PyObject * obj0 = 0 ;
15947 PyObject * obj1 = 0 ;
15948 char *kwnames[] = {
15949 (char *) "self",(char *) "key", NULL
15950 };
15951
15952 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_DeleteGroup",kwnames,&obj0,&obj1)) goto fail;
15953 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15954 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15955 {
15956 arg2 = wxString_in_helper(obj1);
15957 if (arg2 == NULL) SWIG_fail;
15958 temp2 = True;
15959 }
15960 {
15961 PyThreadState* __tstate = wxPyBeginAllowThreads();
15962 result = (bool)(arg1)->DeleteGroup((wxString const &)*arg2);
15963
15964 wxPyEndAllowThreads(__tstate);
15965 if (PyErr_Occurred()) SWIG_fail;
15966 }
15967 {
15968 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15969 }
15970 {
15971 if (temp2)
15972 delete arg2;
15973 }
15974 return resultobj;
15975 fail:
15976 {
15977 if (temp2)
15978 delete arg2;
15979 }
15980 return NULL;
15981 }
15982
15983
15984 static PyObject *_wrap_ConfigBase_DeleteAll(PyObject *self, PyObject *args, PyObject *kwargs) {
15985 PyObject *resultobj;
15986 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15987 bool result;
15988 PyObject * obj0 = 0 ;
15989 char *kwnames[] = {
15990 (char *) "self", NULL
15991 };
15992
15993 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_DeleteAll",kwnames,&obj0)) goto fail;
15994 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15995 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15996 {
15997 PyThreadState* __tstate = wxPyBeginAllowThreads();
15998 result = (bool)(arg1)->DeleteAll();
15999
16000 wxPyEndAllowThreads(__tstate);
16001 if (PyErr_Occurred()) SWIG_fail;
16002 }
16003 {
16004 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16005 }
16006 return resultobj;
16007 fail:
16008 return NULL;
16009 }
16010
16011
16012 static PyObject *_wrap_ConfigBase_SetExpandEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) {
16013 PyObject *resultobj;
16014 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16015 bool arg2 = (bool) True ;
16016 PyObject * obj0 = 0 ;
16017 PyObject * obj1 = 0 ;
16018 char *kwnames[] = {
16019 (char *) "self",(char *) "doIt", NULL
16020 };
16021
16022 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_SetExpandEnvVars",kwnames,&obj0,&obj1)) goto fail;
16023 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16024 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16025 if (obj1) {
16026 arg2 = (bool) SWIG_AsBool(obj1);
16027 if (PyErr_Occurred()) SWIG_fail;
16028 }
16029 {
16030 PyThreadState* __tstate = wxPyBeginAllowThreads();
16031 (arg1)->SetExpandEnvVars(arg2);
16032
16033 wxPyEndAllowThreads(__tstate);
16034 if (PyErr_Occurred()) SWIG_fail;
16035 }
16036 Py_INCREF(Py_None); resultobj = Py_None;
16037 return resultobj;
16038 fail:
16039 return NULL;
16040 }
16041
16042
16043 static PyObject *_wrap_ConfigBase_IsExpandingEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) {
16044 PyObject *resultobj;
16045 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16046 bool result;
16047 PyObject * obj0 = 0 ;
16048 char *kwnames[] = {
16049 (char *) "self", NULL
16050 };
16051
16052 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_IsExpandingEnvVars",kwnames,&obj0)) goto fail;
16053 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16054 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16055 {
16056 PyThreadState* __tstate = wxPyBeginAllowThreads();
16057 result = (bool)((wxConfigBase const *)arg1)->IsExpandingEnvVars();
16058
16059 wxPyEndAllowThreads(__tstate);
16060 if (PyErr_Occurred()) SWIG_fail;
16061 }
16062 {
16063 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16064 }
16065 return resultobj;
16066 fail:
16067 return NULL;
16068 }
16069
16070
16071 static PyObject *_wrap_ConfigBase_SetRecordDefaults(PyObject *self, PyObject *args, PyObject *kwargs) {
16072 PyObject *resultobj;
16073 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16074 bool arg2 = (bool) True ;
16075 PyObject * obj0 = 0 ;
16076 PyObject * obj1 = 0 ;
16077 char *kwnames[] = {
16078 (char *) "self",(char *) "doIt", NULL
16079 };
16080
16081 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_SetRecordDefaults",kwnames,&obj0,&obj1)) goto fail;
16082 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16083 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16084 if (obj1) {
16085 arg2 = (bool) SWIG_AsBool(obj1);
16086 if (PyErr_Occurred()) SWIG_fail;
16087 }
16088 {
16089 PyThreadState* __tstate = wxPyBeginAllowThreads();
16090 (arg1)->SetRecordDefaults(arg2);
16091
16092 wxPyEndAllowThreads(__tstate);
16093 if (PyErr_Occurred()) SWIG_fail;
16094 }
16095 Py_INCREF(Py_None); resultobj = Py_None;
16096 return resultobj;
16097 fail:
16098 return NULL;
16099 }
16100
16101
16102 static PyObject *_wrap_ConfigBase_IsRecordingDefaults(PyObject *self, PyObject *args, PyObject *kwargs) {
16103 PyObject *resultobj;
16104 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16105 bool result;
16106 PyObject * obj0 = 0 ;
16107 char *kwnames[] = {
16108 (char *) "self", NULL
16109 };
16110
16111 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_IsRecordingDefaults",kwnames,&obj0)) goto fail;
16112 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16113 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16114 {
16115 PyThreadState* __tstate = wxPyBeginAllowThreads();
16116 result = (bool)((wxConfigBase const *)arg1)->IsRecordingDefaults();
16117
16118 wxPyEndAllowThreads(__tstate);
16119 if (PyErr_Occurred()) SWIG_fail;
16120 }
16121 {
16122 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16123 }
16124 return resultobj;
16125 fail:
16126 return NULL;
16127 }
16128
16129
16130 static PyObject *_wrap_ConfigBase_ExpandEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) {
16131 PyObject *resultobj;
16132 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16133 wxString *arg2 = 0 ;
16134 wxString result;
16135 bool temp2 = False ;
16136 PyObject * obj0 = 0 ;
16137 PyObject * obj1 = 0 ;
16138 char *kwnames[] = {
16139 (char *) "self",(char *) "str", NULL
16140 };
16141
16142 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_ExpandEnvVars",kwnames,&obj0,&obj1)) goto fail;
16143 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16144 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16145 {
16146 arg2 = wxString_in_helper(obj1);
16147 if (arg2 == NULL) SWIG_fail;
16148 temp2 = True;
16149 }
16150 {
16151 PyThreadState* __tstate = wxPyBeginAllowThreads();
16152 result = ((wxConfigBase const *)arg1)->ExpandEnvVars((wxString const &)*arg2);
16153
16154 wxPyEndAllowThreads(__tstate);
16155 if (PyErr_Occurred()) SWIG_fail;
16156 }
16157 {
16158 #if wxUSE_UNICODE
16159 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16160 #else
16161 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16162 #endif
16163 }
16164 {
16165 if (temp2)
16166 delete arg2;
16167 }
16168 return resultobj;
16169 fail:
16170 {
16171 if (temp2)
16172 delete arg2;
16173 }
16174 return NULL;
16175 }
16176
16177
16178 static PyObject *_wrap_ConfigBase_GetAppName(PyObject *self, PyObject *args, PyObject *kwargs) {
16179 PyObject *resultobj;
16180 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16181 wxString result;
16182 PyObject * obj0 = 0 ;
16183 char *kwnames[] = {
16184 (char *) "self", NULL
16185 };
16186
16187 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetAppName",kwnames,&obj0)) goto fail;
16188 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16189 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16190 {
16191 PyThreadState* __tstate = wxPyBeginAllowThreads();
16192 result = ((wxConfigBase const *)arg1)->GetAppName();
16193
16194 wxPyEndAllowThreads(__tstate);
16195 if (PyErr_Occurred()) SWIG_fail;
16196 }
16197 {
16198 #if wxUSE_UNICODE
16199 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16200 #else
16201 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16202 #endif
16203 }
16204 return resultobj;
16205 fail:
16206 return NULL;
16207 }
16208
16209
16210 static PyObject *_wrap_ConfigBase_GetVendorName(PyObject *self, PyObject *args, PyObject *kwargs) {
16211 PyObject *resultobj;
16212 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16213 wxString result;
16214 PyObject * obj0 = 0 ;
16215 char *kwnames[] = {
16216 (char *) "self", NULL
16217 };
16218
16219 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetVendorName",kwnames,&obj0)) goto fail;
16220 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16221 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16222 {
16223 PyThreadState* __tstate = wxPyBeginAllowThreads();
16224 result = ((wxConfigBase const *)arg1)->GetVendorName();
16225
16226 wxPyEndAllowThreads(__tstate);
16227 if (PyErr_Occurred()) SWIG_fail;
16228 }
16229 {
16230 #if wxUSE_UNICODE
16231 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16232 #else
16233 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16234 #endif
16235 }
16236 return resultobj;
16237 fail:
16238 return NULL;
16239 }
16240
16241
16242 static PyObject *_wrap_ConfigBase_SetAppName(PyObject *self, PyObject *args, PyObject *kwargs) {
16243 PyObject *resultobj;
16244 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16245 wxString *arg2 = 0 ;
16246 bool temp2 = False ;
16247 PyObject * obj0 = 0 ;
16248 PyObject * obj1 = 0 ;
16249 char *kwnames[] = {
16250 (char *) "self",(char *) "appName", NULL
16251 };
16252
16253 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetAppName",kwnames,&obj0,&obj1)) goto fail;
16254 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16255 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16256 {
16257 arg2 = wxString_in_helper(obj1);
16258 if (arg2 == NULL) SWIG_fail;
16259 temp2 = True;
16260 }
16261 {
16262 PyThreadState* __tstate = wxPyBeginAllowThreads();
16263 (arg1)->SetAppName((wxString const &)*arg2);
16264
16265 wxPyEndAllowThreads(__tstate);
16266 if (PyErr_Occurred()) SWIG_fail;
16267 }
16268 Py_INCREF(Py_None); resultobj = Py_None;
16269 {
16270 if (temp2)
16271 delete arg2;
16272 }
16273 return resultobj;
16274 fail:
16275 {
16276 if (temp2)
16277 delete arg2;
16278 }
16279 return NULL;
16280 }
16281
16282
16283 static PyObject *_wrap_ConfigBase_SetVendorName(PyObject *self, PyObject *args, PyObject *kwargs) {
16284 PyObject *resultobj;
16285 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16286 wxString *arg2 = 0 ;
16287 bool temp2 = False ;
16288 PyObject * obj0 = 0 ;
16289 PyObject * obj1 = 0 ;
16290 char *kwnames[] = {
16291 (char *) "self",(char *) "vendorName", NULL
16292 };
16293
16294 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetVendorName",kwnames,&obj0,&obj1)) goto fail;
16295 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16296 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16297 {
16298 arg2 = wxString_in_helper(obj1);
16299 if (arg2 == NULL) SWIG_fail;
16300 temp2 = True;
16301 }
16302 {
16303 PyThreadState* __tstate = wxPyBeginAllowThreads();
16304 (arg1)->SetVendorName((wxString const &)*arg2);
16305
16306 wxPyEndAllowThreads(__tstate);
16307 if (PyErr_Occurred()) SWIG_fail;
16308 }
16309 Py_INCREF(Py_None); resultobj = Py_None;
16310 {
16311 if (temp2)
16312 delete arg2;
16313 }
16314 return resultobj;
16315 fail:
16316 {
16317 if (temp2)
16318 delete arg2;
16319 }
16320 return NULL;
16321 }
16322
16323
16324 static PyObject *_wrap_ConfigBase_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
16325 PyObject *resultobj;
16326 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16327 long arg2 ;
16328 PyObject * obj0 = 0 ;
16329 PyObject * obj1 = 0 ;
16330 char *kwnames[] = {
16331 (char *) "self",(char *) "style", NULL
16332 };
16333
16334 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetStyle",kwnames,&obj0,&obj1)) goto fail;
16335 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16336 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16337 arg2 = (long) SWIG_AsLong(obj1);
16338 if (PyErr_Occurred()) SWIG_fail;
16339 {
16340 PyThreadState* __tstate = wxPyBeginAllowThreads();
16341 (arg1)->SetStyle(arg2);
16342
16343 wxPyEndAllowThreads(__tstate);
16344 if (PyErr_Occurred()) SWIG_fail;
16345 }
16346 Py_INCREF(Py_None); resultobj = Py_None;
16347 return resultobj;
16348 fail:
16349 return NULL;
16350 }
16351
16352
16353 static PyObject *_wrap_ConfigBase_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
16354 PyObject *resultobj;
16355 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16356 long result;
16357 PyObject * obj0 = 0 ;
16358 char *kwnames[] = {
16359 (char *) "self", NULL
16360 };
16361
16362 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetStyle",kwnames,&obj0)) goto fail;
16363 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16364 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16365 {
16366 PyThreadState* __tstate = wxPyBeginAllowThreads();
16367 result = (long)((wxConfigBase const *)arg1)->GetStyle();
16368
16369 wxPyEndAllowThreads(__tstate);
16370 if (PyErr_Occurred()) SWIG_fail;
16371 }
16372 resultobj = SWIG_FromLong((long)result);
16373 return resultobj;
16374 fail:
16375 return NULL;
16376 }
16377
16378
16379 static PyObject * ConfigBase_swigregister(PyObject *self, PyObject *args) {
16380 PyObject *obj;
16381 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16382 SWIG_TypeClientData(SWIGTYPE_p_wxConfigBase, obj);
16383 Py_INCREF(obj);
16384 return Py_BuildValue((char *)"");
16385 }
16386 static PyObject *_wrap_new_Config(PyObject *self, PyObject *args, PyObject *kwargs) {
16387 PyObject *resultobj;
16388 wxString const &arg1_defvalue = wxPyEmptyString ;
16389 wxString *arg1 = (wxString *) &arg1_defvalue ;
16390 wxString const &arg2_defvalue = wxPyEmptyString ;
16391 wxString *arg2 = (wxString *) &arg2_defvalue ;
16392 wxString const &arg3_defvalue = wxPyEmptyString ;
16393 wxString *arg3 = (wxString *) &arg3_defvalue ;
16394 wxString const &arg4_defvalue = wxPyEmptyString ;
16395 wxString *arg4 = (wxString *) &arg4_defvalue ;
16396 long arg5 = (long) wxCONFIG_USE_LOCAL_FILE|wxCONFIG_USE_GLOBAL_FILE ;
16397 wxConfig *result;
16398 bool temp1 = False ;
16399 bool temp2 = False ;
16400 bool temp3 = False ;
16401 bool temp4 = False ;
16402 PyObject * obj0 = 0 ;
16403 PyObject * obj1 = 0 ;
16404 PyObject * obj2 = 0 ;
16405 PyObject * obj3 = 0 ;
16406 PyObject * obj4 = 0 ;
16407 char *kwnames[] = {
16408 (char *) "appName",(char *) "vendorName",(char *) "localFilename",(char *) "globalFilename",(char *) "style", NULL
16409 };
16410
16411 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:new_Config",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
16412 if (obj0) {
16413 {
16414 arg1 = wxString_in_helper(obj0);
16415 if (arg1 == NULL) SWIG_fail;
16416 temp1 = True;
16417 }
16418 }
16419 if (obj1) {
16420 {
16421 arg2 = wxString_in_helper(obj1);
16422 if (arg2 == NULL) SWIG_fail;
16423 temp2 = True;
16424 }
16425 }
16426 if (obj2) {
16427 {
16428 arg3 = wxString_in_helper(obj2);
16429 if (arg3 == NULL) SWIG_fail;
16430 temp3 = True;
16431 }
16432 }
16433 if (obj3) {
16434 {
16435 arg4 = wxString_in_helper(obj3);
16436 if (arg4 == NULL) SWIG_fail;
16437 temp4 = True;
16438 }
16439 }
16440 if (obj4) {
16441 arg5 = (long) SWIG_AsLong(obj4);
16442 if (PyErr_Occurred()) SWIG_fail;
16443 }
16444 {
16445 PyThreadState* __tstate = wxPyBeginAllowThreads();
16446 result = (wxConfig *)new wxConfig((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5);
16447
16448 wxPyEndAllowThreads(__tstate);
16449 if (PyErr_Occurred()) SWIG_fail;
16450 }
16451 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfig, 1);
16452 {
16453 if (temp1)
16454 delete arg1;
16455 }
16456 {
16457 if (temp2)
16458 delete arg2;
16459 }
16460 {
16461 if (temp3)
16462 delete arg3;
16463 }
16464 {
16465 if (temp4)
16466 delete arg4;
16467 }
16468 return resultobj;
16469 fail:
16470 {
16471 if (temp1)
16472 delete arg1;
16473 }
16474 {
16475 if (temp2)
16476 delete arg2;
16477 }
16478 {
16479 if (temp3)
16480 delete arg3;
16481 }
16482 {
16483 if (temp4)
16484 delete arg4;
16485 }
16486 return NULL;
16487 }
16488
16489
16490 static PyObject *_wrap_delete_Config(PyObject *self, PyObject *args, PyObject *kwargs) {
16491 PyObject *resultobj;
16492 wxConfig *arg1 = (wxConfig *) 0 ;
16493 PyObject * obj0 = 0 ;
16494 char *kwnames[] = {
16495 (char *) "self", NULL
16496 };
16497
16498 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Config",kwnames,&obj0)) goto fail;
16499 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfig,
16500 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16501 {
16502 PyThreadState* __tstate = wxPyBeginAllowThreads();
16503 delete arg1;
16504
16505 wxPyEndAllowThreads(__tstate);
16506 if (PyErr_Occurred()) SWIG_fail;
16507 }
16508 Py_INCREF(Py_None); resultobj = Py_None;
16509 return resultobj;
16510 fail:
16511 return NULL;
16512 }
16513
16514
16515 static PyObject * Config_swigregister(PyObject *self, PyObject *args) {
16516 PyObject *obj;
16517 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16518 SWIG_TypeClientData(SWIGTYPE_p_wxConfig, obj);
16519 Py_INCREF(obj);
16520 return Py_BuildValue((char *)"");
16521 }
16522 static PyObject *_wrap_new_FileConfig(PyObject *self, PyObject *args, PyObject *kwargs) {
16523 PyObject *resultobj;
16524 wxString const &arg1_defvalue = wxPyEmptyString ;
16525 wxString *arg1 = (wxString *) &arg1_defvalue ;
16526 wxString const &arg2_defvalue = wxPyEmptyString ;
16527 wxString *arg2 = (wxString *) &arg2_defvalue ;
16528 wxString const &arg3_defvalue = wxPyEmptyString ;
16529 wxString *arg3 = (wxString *) &arg3_defvalue ;
16530 wxString const &arg4_defvalue = wxPyEmptyString ;
16531 wxString *arg4 = (wxString *) &arg4_defvalue ;
16532 long arg5 = (long) wxCONFIG_USE_LOCAL_FILE|wxCONFIG_USE_GLOBAL_FILE ;
16533 wxFileConfig *result;
16534 bool temp1 = False ;
16535 bool temp2 = False ;
16536 bool temp3 = False ;
16537 bool temp4 = False ;
16538 PyObject * obj0 = 0 ;
16539 PyObject * obj1 = 0 ;
16540 PyObject * obj2 = 0 ;
16541 PyObject * obj3 = 0 ;
16542 PyObject * obj4 = 0 ;
16543 char *kwnames[] = {
16544 (char *) "appName",(char *) "vendorName",(char *) "localFilename",(char *) "globalFilename",(char *) "style", NULL
16545 };
16546
16547 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:new_FileConfig",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
16548 if (obj0) {
16549 {
16550 arg1 = wxString_in_helper(obj0);
16551 if (arg1 == NULL) SWIG_fail;
16552 temp1 = True;
16553 }
16554 }
16555 if (obj1) {
16556 {
16557 arg2 = wxString_in_helper(obj1);
16558 if (arg2 == NULL) SWIG_fail;
16559 temp2 = True;
16560 }
16561 }
16562 if (obj2) {
16563 {
16564 arg3 = wxString_in_helper(obj2);
16565 if (arg3 == NULL) SWIG_fail;
16566 temp3 = True;
16567 }
16568 }
16569 if (obj3) {
16570 {
16571 arg4 = wxString_in_helper(obj3);
16572 if (arg4 == NULL) SWIG_fail;
16573 temp4 = True;
16574 }
16575 }
16576 if (obj4) {
16577 arg5 = (long) SWIG_AsLong(obj4);
16578 if (PyErr_Occurred()) SWIG_fail;
16579 }
16580 {
16581 PyThreadState* __tstate = wxPyBeginAllowThreads();
16582 result = (wxFileConfig *)new wxFileConfig((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5);
16583
16584 wxPyEndAllowThreads(__tstate);
16585 if (PyErr_Occurred()) SWIG_fail;
16586 }
16587 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileConfig, 1);
16588 {
16589 if (temp1)
16590 delete arg1;
16591 }
16592 {
16593 if (temp2)
16594 delete arg2;
16595 }
16596 {
16597 if (temp3)
16598 delete arg3;
16599 }
16600 {
16601 if (temp4)
16602 delete arg4;
16603 }
16604 return resultobj;
16605 fail:
16606 {
16607 if (temp1)
16608 delete arg1;
16609 }
16610 {
16611 if (temp2)
16612 delete arg2;
16613 }
16614 {
16615 if (temp3)
16616 delete arg3;
16617 }
16618 {
16619 if (temp4)
16620 delete arg4;
16621 }
16622 return NULL;
16623 }
16624
16625
16626 static PyObject *_wrap_delete_FileConfig(PyObject *self, PyObject *args, PyObject *kwargs) {
16627 PyObject *resultobj;
16628 wxFileConfig *arg1 = (wxFileConfig *) 0 ;
16629 PyObject * obj0 = 0 ;
16630 char *kwnames[] = {
16631 (char *) "self", NULL
16632 };
16633
16634 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileConfig",kwnames,&obj0)) goto fail;
16635 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileConfig,
16636 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16637 {
16638 PyThreadState* __tstate = wxPyBeginAllowThreads();
16639 delete arg1;
16640
16641 wxPyEndAllowThreads(__tstate);
16642 if (PyErr_Occurred()) SWIG_fail;
16643 }
16644 Py_INCREF(Py_None); resultobj = Py_None;
16645 return resultobj;
16646 fail:
16647 return NULL;
16648 }
16649
16650
16651 static PyObject * FileConfig_swigregister(PyObject *self, PyObject *args) {
16652 PyObject *obj;
16653 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16654 SWIG_TypeClientData(SWIGTYPE_p_wxFileConfig, obj);
16655 Py_INCREF(obj);
16656 return Py_BuildValue((char *)"");
16657 }
16658 static PyObject *_wrap_new_ConfigPathChanger(PyObject *self, PyObject *args, PyObject *kwargs) {
16659 PyObject *resultobj;
16660 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16661 wxString *arg2 = 0 ;
16662 wxConfigPathChanger *result;
16663 bool temp2 = False ;
16664 PyObject * obj0 = 0 ;
16665 PyObject * obj1 = 0 ;
16666 char *kwnames[] = {
16667 (char *) "config",(char *) "entry", NULL
16668 };
16669
16670 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_ConfigPathChanger",kwnames,&obj0,&obj1)) goto fail;
16671 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16672 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16673 {
16674 arg2 = wxString_in_helper(obj1);
16675 if (arg2 == NULL) SWIG_fail;
16676 temp2 = True;
16677 }
16678 {
16679 PyThreadState* __tstate = wxPyBeginAllowThreads();
16680 result = (wxConfigPathChanger *)new wxConfigPathChanger((wxConfigBase const *)arg1,(wxString const &)*arg2);
16681
16682 wxPyEndAllowThreads(__tstate);
16683 if (PyErr_Occurred()) SWIG_fail;
16684 }
16685 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigPathChanger, 1);
16686 {
16687 if (temp2)
16688 delete arg2;
16689 }
16690 return resultobj;
16691 fail:
16692 {
16693 if (temp2)
16694 delete arg2;
16695 }
16696 return NULL;
16697 }
16698
16699
16700 static PyObject *_wrap_delete_ConfigPathChanger(PyObject *self, PyObject *args, PyObject *kwargs) {
16701 PyObject *resultobj;
16702 wxConfigPathChanger *arg1 = (wxConfigPathChanger *) 0 ;
16703 PyObject * obj0 = 0 ;
16704 char *kwnames[] = {
16705 (char *) "self", NULL
16706 };
16707
16708 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ConfigPathChanger",kwnames,&obj0)) goto fail;
16709 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigPathChanger,
16710 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16711 {
16712 PyThreadState* __tstate = wxPyBeginAllowThreads();
16713 delete arg1;
16714
16715 wxPyEndAllowThreads(__tstate);
16716 if (PyErr_Occurred()) SWIG_fail;
16717 }
16718 Py_INCREF(Py_None); resultobj = Py_None;
16719 return resultobj;
16720 fail:
16721 return NULL;
16722 }
16723
16724
16725 static PyObject *_wrap_ConfigPathChanger_Name(PyObject *self, PyObject *args, PyObject *kwargs) {
16726 PyObject *resultobj;
16727 wxConfigPathChanger *arg1 = (wxConfigPathChanger *) 0 ;
16728 wxString *result;
16729 PyObject * obj0 = 0 ;
16730 char *kwnames[] = {
16731 (char *) "self", NULL
16732 };
16733
16734 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigPathChanger_Name",kwnames,&obj0)) goto fail;
16735 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigPathChanger,
16736 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16737 {
16738 PyThreadState* __tstate = wxPyBeginAllowThreads();
16739 {
16740 wxString const &_result_ref = ((wxConfigPathChanger const *)arg1)->Name();
16741 result = (wxString *) &_result_ref;
16742 }
16743
16744 wxPyEndAllowThreads(__tstate);
16745 if (PyErr_Occurred()) SWIG_fail;
16746 }
16747 {
16748 #if wxUSE_UNICODE
16749 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
16750 #else
16751 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
16752 #endif
16753 }
16754 return resultobj;
16755 fail:
16756 return NULL;
16757 }
16758
16759
16760 static PyObject * ConfigPathChanger_swigregister(PyObject *self, PyObject *args) {
16761 PyObject *obj;
16762 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16763 SWIG_TypeClientData(SWIGTYPE_p_wxConfigPathChanger, obj);
16764 Py_INCREF(obj);
16765 return Py_BuildValue((char *)"");
16766 }
16767 static PyObject *_wrap_ExpandEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) {
16768 PyObject *resultobj;
16769 wxString *arg1 = 0 ;
16770 wxString result;
16771 bool temp1 = False ;
16772 PyObject * obj0 = 0 ;
16773 char *kwnames[] = {
16774 (char *) "sz", NULL
16775 };
16776
16777 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ExpandEnvVars",kwnames,&obj0)) goto fail;
16778 {
16779 arg1 = wxString_in_helper(obj0);
16780 if (arg1 == NULL) SWIG_fail;
16781 temp1 = True;
16782 }
16783 {
16784 PyThreadState* __tstate = wxPyBeginAllowThreads();
16785 result = wxExpandEnvVars((wxString const &)*arg1);
16786
16787 wxPyEndAllowThreads(__tstate);
16788 if (PyErr_Occurred()) SWIG_fail;
16789 }
16790 {
16791 #if wxUSE_UNICODE
16792 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16793 #else
16794 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16795 #endif
16796 }
16797 {
16798 if (temp1)
16799 delete arg1;
16800 }
16801 return resultobj;
16802 fail:
16803 {
16804 if (temp1)
16805 delete arg1;
16806 }
16807 return NULL;
16808 }
16809
16810
16811 static int _wrap_DateFormatStr_set(PyObject *_val) {
16812 PyErr_SetString(PyExc_TypeError,"Variable DateFormatStr is read-only.");
16813 return 1;
16814 }
16815
16816
16817 static PyObject *_wrap_DateFormatStr_get() {
16818 PyObject *pyobj;
16819
16820 {
16821 #if wxUSE_UNICODE
16822 pyobj = PyUnicode_FromWideChar((&wxPyDateFormatStr)->c_str(), (&wxPyDateFormatStr)->Len());
16823 #else
16824 pyobj = PyString_FromStringAndSize((&wxPyDateFormatStr)->c_str(), (&wxPyDateFormatStr)->Len());
16825 #endif
16826 }
16827 return pyobj;
16828 }
16829
16830
16831 static int _wrap_TimeSpanFormatStr_set(PyObject *_val) {
16832 PyErr_SetString(PyExc_TypeError,"Variable TimeSpanFormatStr is read-only.");
16833 return 1;
16834 }
16835
16836
16837 static PyObject *_wrap_TimeSpanFormatStr_get() {
16838 PyObject *pyobj;
16839
16840 {
16841 #if wxUSE_UNICODE
16842 pyobj = PyUnicode_FromWideChar((&wxPyTimeSpanFormatStr)->c_str(), (&wxPyTimeSpanFormatStr)->Len());
16843 #else
16844 pyobj = PyString_FromStringAndSize((&wxPyTimeSpanFormatStr)->c_str(), (&wxPyTimeSpanFormatStr)->Len());
16845 #endif
16846 }
16847 return pyobj;
16848 }
16849
16850
16851 static PyObject *_wrap_DateTime_SetCountry(PyObject *self, PyObject *args, PyObject *kwargs) {
16852 PyObject *resultobj;
16853 int arg1 ;
16854 PyObject * obj0 = 0 ;
16855 char *kwnames[] = {
16856 (char *) "country", NULL
16857 };
16858
16859 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_SetCountry",kwnames,&obj0)) goto fail;
16860 arg1 = (wxDateTime::Country) SWIG_AsInt(obj0);
16861 if (PyErr_Occurred()) SWIG_fail;
16862 {
16863 PyThreadState* __tstate = wxPyBeginAllowThreads();
16864 wxDateTime::SetCountry((wxDateTime::Country )arg1);
16865
16866 wxPyEndAllowThreads(__tstate);
16867 if (PyErr_Occurred()) SWIG_fail;
16868 }
16869 Py_INCREF(Py_None); resultobj = Py_None;
16870 return resultobj;
16871 fail:
16872 return NULL;
16873 }
16874
16875
16876 static PyObject *_wrap_DateTime_GetCountry(PyObject *self, PyObject *args, PyObject *kwargs) {
16877 PyObject *resultobj;
16878 int result;
16879 char *kwnames[] = {
16880 NULL
16881 };
16882
16883 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_GetCountry",kwnames)) goto fail;
16884 {
16885 PyThreadState* __tstate = wxPyBeginAllowThreads();
16886 result = (int)wxDateTime::GetCountry();
16887
16888 wxPyEndAllowThreads(__tstate);
16889 if (PyErr_Occurred()) SWIG_fail;
16890 }
16891 resultobj = SWIG_FromInt((int)result);
16892 return resultobj;
16893 fail:
16894 return NULL;
16895 }
16896
16897
16898 static PyObject *_wrap_DateTime_IsWestEuropeanCountry(PyObject *self, PyObject *args, PyObject *kwargs) {
16899 PyObject *resultobj;
16900 int arg1 = (int) wxDateTime::Country_Default ;
16901 bool result;
16902 PyObject * obj0 = 0 ;
16903 char *kwnames[] = {
16904 (char *) "country", NULL
16905 };
16906
16907 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_IsWestEuropeanCountry",kwnames,&obj0)) goto fail;
16908 if (obj0) {
16909 arg1 = (wxDateTime::Country) SWIG_AsInt(obj0);
16910 if (PyErr_Occurred()) SWIG_fail;
16911 }
16912 {
16913 PyThreadState* __tstate = wxPyBeginAllowThreads();
16914 result = (bool)wxDateTime::IsWestEuropeanCountry((wxDateTime::Country )arg1);
16915
16916 wxPyEndAllowThreads(__tstate);
16917 if (PyErr_Occurred()) SWIG_fail;
16918 }
16919 {
16920 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16921 }
16922 return resultobj;
16923 fail:
16924 return NULL;
16925 }
16926
16927
16928 static PyObject *_wrap_DateTime_GetCurrentYear(PyObject *self, PyObject *args, PyObject *kwargs) {
16929 PyObject *resultobj;
16930 int arg1 = (int) wxDateTime::Gregorian ;
16931 int result;
16932 PyObject * obj0 = 0 ;
16933 char *kwnames[] = {
16934 (char *) "cal", NULL
16935 };
16936
16937 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCurrentYear",kwnames,&obj0)) goto fail;
16938 if (obj0) {
16939 arg1 = (wxDateTime::Calendar) SWIG_AsInt(obj0);
16940 if (PyErr_Occurred()) SWIG_fail;
16941 }
16942 {
16943 PyThreadState* __tstate = wxPyBeginAllowThreads();
16944 result = (int)wxDateTime::GetCurrentYear((wxDateTime::Calendar )arg1);
16945
16946 wxPyEndAllowThreads(__tstate);
16947 if (PyErr_Occurred()) SWIG_fail;
16948 }
16949 resultobj = SWIG_FromInt((int)result);
16950 return resultobj;
16951 fail:
16952 return NULL;
16953 }
16954
16955
16956 static PyObject *_wrap_DateTime_ConvertYearToBC(PyObject *self, PyObject *args, PyObject *kwargs) {
16957 PyObject *resultobj;
16958 int arg1 ;
16959 int result;
16960 PyObject * obj0 = 0 ;
16961 char *kwnames[] = {
16962 (char *) "year", NULL
16963 };
16964
16965 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_ConvertYearToBC",kwnames,&obj0)) goto fail;
16966 arg1 = (int) SWIG_AsInt(obj0);
16967 if (PyErr_Occurred()) SWIG_fail;
16968 {
16969 PyThreadState* __tstate = wxPyBeginAllowThreads();
16970 result = (int)wxDateTime::ConvertYearToBC(arg1);
16971
16972 wxPyEndAllowThreads(__tstate);
16973 if (PyErr_Occurred()) SWIG_fail;
16974 }
16975 resultobj = SWIG_FromInt((int)result);
16976 return resultobj;
16977 fail:
16978 return NULL;
16979 }
16980
16981
16982 static PyObject *_wrap_DateTime_GetCurrentMonth(PyObject *self, PyObject *args, PyObject *kwargs) {
16983 PyObject *resultobj;
16984 int arg1 = (int) wxDateTime::Gregorian ;
16985 int result;
16986 PyObject * obj0 = 0 ;
16987 char *kwnames[] = {
16988 (char *) "cal", NULL
16989 };
16990
16991 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCurrentMonth",kwnames,&obj0)) goto fail;
16992 if (obj0) {
16993 arg1 = (wxDateTime::Calendar) SWIG_AsInt(obj0);
16994 if (PyErr_Occurred()) SWIG_fail;
16995 }
16996 {
16997 PyThreadState* __tstate = wxPyBeginAllowThreads();
16998 result = (int)wxDateTime::GetCurrentMonth((wxDateTime::Calendar )arg1);
16999
17000 wxPyEndAllowThreads(__tstate);
17001 if (PyErr_Occurred()) SWIG_fail;
17002 }
17003 resultobj = SWIG_FromInt((int)result);
17004 return resultobj;
17005 fail:
17006 return NULL;
17007 }
17008
17009
17010 static PyObject *_wrap_DateTime_IsLeapYear(PyObject *self, PyObject *args, PyObject *kwargs) {
17011 PyObject *resultobj;
17012 int arg1 = (int) wxDateTime::Inv_Year ;
17013 int arg2 = (int) wxDateTime::Gregorian ;
17014 bool result;
17015 PyObject * obj0 = 0 ;
17016 PyObject * obj1 = 0 ;
17017 char *kwnames[] = {
17018 (char *) "year",(char *) "cal", NULL
17019 };
17020
17021 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_IsLeapYear",kwnames,&obj0,&obj1)) goto fail;
17022 if (obj0) {
17023 arg1 = (int) SWIG_AsInt(obj0);
17024 if (PyErr_Occurred()) SWIG_fail;
17025 }
17026 if (obj1) {
17027 arg2 = (wxDateTime::Calendar) SWIG_AsInt(obj1);
17028 if (PyErr_Occurred()) SWIG_fail;
17029 }
17030 {
17031 PyThreadState* __tstate = wxPyBeginAllowThreads();
17032 result = (bool)wxDateTime::IsLeapYear(arg1,(wxDateTime::Calendar )arg2);
17033
17034 wxPyEndAllowThreads(__tstate);
17035 if (PyErr_Occurred()) SWIG_fail;
17036 }
17037 {
17038 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17039 }
17040 return resultobj;
17041 fail:
17042 return NULL;
17043 }
17044
17045
17046 static PyObject *_wrap_DateTime_GetCentury(PyObject *self, PyObject *args, PyObject *kwargs) {
17047 PyObject *resultobj;
17048 int arg1 = (int) wxDateTime::Inv_Year ;
17049 int result;
17050 PyObject * obj0 = 0 ;
17051 char *kwnames[] = {
17052 (char *) "year", NULL
17053 };
17054
17055 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCentury",kwnames,&obj0)) goto fail;
17056 if (obj0) {
17057 arg1 = (int) SWIG_AsInt(obj0);
17058 if (PyErr_Occurred()) SWIG_fail;
17059 }
17060 {
17061 PyThreadState* __tstate = wxPyBeginAllowThreads();
17062 result = (int)wxDateTime::GetCentury(arg1);
17063
17064 wxPyEndAllowThreads(__tstate);
17065 if (PyErr_Occurred()) SWIG_fail;
17066 }
17067 resultobj = SWIG_FromInt((int)result);
17068 return resultobj;
17069 fail:
17070 return NULL;
17071 }
17072
17073
17074 static PyObject *_wrap_DateTime_GetNumberOfDaysinYear(PyObject *self, PyObject *args, PyObject *kwargs) {
17075 PyObject *resultobj;
17076 int arg1 ;
17077 int arg2 = (int) wxDateTime::Gregorian ;
17078 int result;
17079 PyObject * obj0 = 0 ;
17080 PyObject * obj1 = 0 ;
17081 char *kwnames[] = {
17082 (char *) "year",(char *) "cal", NULL
17083 };
17084
17085 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetNumberOfDaysinYear",kwnames,&obj0,&obj1)) goto fail;
17086 arg1 = (int) SWIG_AsInt(obj0);
17087 if (PyErr_Occurred()) SWIG_fail;
17088 if (obj1) {
17089 arg2 = (wxDateTime::Calendar) SWIG_AsInt(obj1);
17090 if (PyErr_Occurred()) SWIG_fail;
17091 }
17092 {
17093 PyThreadState* __tstate = wxPyBeginAllowThreads();
17094 result = (int)wxDateTime::GetNumberOfDays(arg1,(wxDateTime::Calendar )arg2);
17095
17096 wxPyEndAllowThreads(__tstate);
17097 if (PyErr_Occurred()) SWIG_fail;
17098 }
17099 resultobj = SWIG_FromInt((int)result);
17100 return resultobj;
17101 fail:
17102 return NULL;
17103 }
17104
17105
17106 static PyObject *_wrap_DateTime_GetNumberOfDaysInMonth(PyObject *self, PyObject *args, PyObject *kwargs) {
17107 PyObject *resultobj;
17108 int arg1 ;
17109 int arg2 = (int) wxDateTime::Inv_Year ;
17110 int arg3 = (int) wxDateTime::Gregorian ;
17111 int result;
17112 PyObject * obj0 = 0 ;
17113 PyObject * obj1 = 0 ;
17114 PyObject * obj2 = 0 ;
17115 char *kwnames[] = {
17116 (char *) "month",(char *) "year",(char *) "cal", NULL
17117 };
17118
17119 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetNumberOfDaysInMonth",kwnames,&obj0,&obj1,&obj2)) goto fail;
17120 arg1 = (wxDateTime::Month) SWIG_AsInt(obj0);
17121 if (PyErr_Occurred()) SWIG_fail;
17122 if (obj1) {
17123 arg2 = (int) SWIG_AsInt(obj1);
17124 if (PyErr_Occurred()) SWIG_fail;
17125 }
17126 if (obj2) {
17127 arg3 = (wxDateTime::Calendar) SWIG_AsInt(obj2);
17128 if (PyErr_Occurred()) SWIG_fail;
17129 }
17130 {
17131 PyThreadState* __tstate = wxPyBeginAllowThreads();
17132 result = (int)wxDateTime::GetNumberOfDays((wxDateTime::Month )arg1,arg2,(wxDateTime::Calendar )arg3);
17133
17134 wxPyEndAllowThreads(__tstate);
17135 if (PyErr_Occurred()) SWIG_fail;
17136 }
17137 resultobj = SWIG_FromInt((int)result);
17138 return resultobj;
17139 fail:
17140 return NULL;
17141 }
17142
17143
17144 static PyObject *_wrap_DateTime_GetMonthName(PyObject *self, PyObject *args, PyObject *kwargs) {
17145 PyObject *resultobj;
17146 int arg1 ;
17147 int arg2 = (int) wxDateTime::Name_Full ;
17148 wxString result;
17149 PyObject * obj0 = 0 ;
17150 PyObject * obj1 = 0 ;
17151 char *kwnames[] = {
17152 (char *) "month",(char *) "flags", NULL
17153 };
17154
17155 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMonthName",kwnames,&obj0,&obj1)) goto fail;
17156 arg1 = (wxDateTime::Month) SWIG_AsInt(obj0);
17157 if (PyErr_Occurred()) SWIG_fail;
17158 if (obj1) {
17159 arg2 = (wxDateTime::NameFlags) SWIG_AsInt(obj1);
17160 if (PyErr_Occurred()) SWIG_fail;
17161 }
17162 {
17163 PyThreadState* __tstate = wxPyBeginAllowThreads();
17164 result = wxDateTime::GetMonthName((wxDateTime::Month )arg1,(wxDateTime::NameFlags )arg2);
17165
17166 wxPyEndAllowThreads(__tstate);
17167 if (PyErr_Occurred()) SWIG_fail;
17168 }
17169 {
17170 #if wxUSE_UNICODE
17171 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17172 #else
17173 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17174 #endif
17175 }
17176 return resultobj;
17177 fail:
17178 return NULL;
17179 }
17180
17181
17182 static PyObject *_wrap_DateTime_GetWeekDayName(PyObject *self, PyObject *args, PyObject *kwargs) {
17183 PyObject *resultobj;
17184 int arg1 ;
17185 int arg2 = (int) wxDateTime::Name_Full ;
17186 wxString result;
17187 PyObject * obj0 = 0 ;
17188 PyObject * obj1 = 0 ;
17189 char *kwnames[] = {
17190 (char *) "weekday",(char *) "flags", NULL
17191 };
17192
17193 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetWeekDayName",kwnames,&obj0,&obj1)) goto fail;
17194 arg1 = (wxDateTime::WeekDay) SWIG_AsInt(obj0);
17195 if (PyErr_Occurred()) SWIG_fail;
17196 if (obj1) {
17197 arg2 = (wxDateTime::NameFlags) SWIG_AsInt(obj1);
17198 if (PyErr_Occurred()) SWIG_fail;
17199 }
17200 {
17201 PyThreadState* __tstate = wxPyBeginAllowThreads();
17202 result = wxDateTime::GetWeekDayName((wxDateTime::WeekDay )arg1,(wxDateTime::NameFlags )arg2);
17203
17204 wxPyEndAllowThreads(__tstate);
17205 if (PyErr_Occurred()) SWIG_fail;
17206 }
17207 {
17208 #if wxUSE_UNICODE
17209 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17210 #else
17211 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17212 #endif
17213 }
17214 return resultobj;
17215 fail:
17216 return NULL;
17217 }
17218
17219
17220 static PyObject *_wrap_DateTime_GetAmPmStrings(PyObject *self, PyObject *args, PyObject *kwargs) {
17221 PyObject *resultobj;
17222 wxString *arg1 = (wxString *) 0 ;
17223 wxString *arg2 = (wxString *) 0 ;
17224 bool temp1 = False ;
17225 bool temp2 = False ;
17226 PyObject * obj0 = 0 ;
17227 PyObject * obj1 = 0 ;
17228 char *kwnames[] = {
17229 (char *) "OUTPUT",(char *) "OUTPUT", NULL
17230 };
17231
17232 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetAmPmStrings",kwnames,&obj0,&obj1)) goto fail;
17233 {
17234 arg1 = wxString_in_helper(obj0);
17235 if (arg1 == NULL) SWIG_fail;
17236 temp1 = True;
17237 }
17238 {
17239 arg2 = wxString_in_helper(obj1);
17240 if (arg2 == NULL) SWIG_fail;
17241 temp2 = True;
17242 }
17243 {
17244 PyThreadState* __tstate = wxPyBeginAllowThreads();
17245 wxDateTime::GetAmPmStrings(arg1,arg2);
17246
17247 wxPyEndAllowThreads(__tstate);
17248 if (PyErr_Occurred()) SWIG_fail;
17249 }
17250 Py_INCREF(Py_None); resultobj = Py_None;
17251 {
17252 if (temp1)
17253 delete arg1;
17254 }
17255 {
17256 if (temp2)
17257 delete arg2;
17258 }
17259 return resultobj;
17260 fail:
17261 {
17262 if (temp1)
17263 delete arg1;
17264 }
17265 {
17266 if (temp2)
17267 delete arg2;
17268 }
17269 return NULL;
17270 }
17271
17272
17273 static PyObject *_wrap_DateTime_IsDSTApplicable(PyObject *self, PyObject *args, PyObject *kwargs) {
17274 PyObject *resultobj;
17275 int arg1 = (int) wxDateTime::Inv_Year ;
17276 int arg2 = (int) wxDateTime::Country_Default ;
17277 bool result;
17278 PyObject * obj0 = 0 ;
17279 PyObject * obj1 = 0 ;
17280 char *kwnames[] = {
17281 (char *) "year",(char *) "country", NULL
17282 };
17283
17284 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_IsDSTApplicable",kwnames,&obj0,&obj1)) goto fail;
17285 if (obj0) {
17286 arg1 = (int) SWIG_AsInt(obj0);
17287 if (PyErr_Occurred()) SWIG_fail;
17288 }
17289 if (obj1) {
17290 arg2 = (wxDateTime::Country) SWIG_AsInt(obj1);
17291 if (PyErr_Occurred()) SWIG_fail;
17292 }
17293 {
17294 PyThreadState* __tstate = wxPyBeginAllowThreads();
17295 result = (bool)wxDateTime::IsDSTApplicable(arg1,(wxDateTime::Country )arg2);
17296
17297 wxPyEndAllowThreads(__tstate);
17298 if (PyErr_Occurred()) SWIG_fail;
17299 }
17300 {
17301 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17302 }
17303 return resultobj;
17304 fail:
17305 return NULL;
17306 }
17307
17308
17309 static PyObject *_wrap_DateTime_GetBeginDST(PyObject *self, PyObject *args, PyObject *kwargs) {
17310 PyObject *resultobj;
17311 int arg1 = (int) wxDateTime::Inv_Year ;
17312 int arg2 = (int) wxDateTime::Country_Default ;
17313 wxDateTime result;
17314 PyObject * obj0 = 0 ;
17315 PyObject * obj1 = 0 ;
17316 char *kwnames[] = {
17317 (char *) "year",(char *) "country", NULL
17318 };
17319
17320 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_GetBeginDST",kwnames,&obj0,&obj1)) goto fail;
17321 if (obj0) {
17322 arg1 = (int) SWIG_AsInt(obj0);
17323 if (PyErr_Occurred()) SWIG_fail;
17324 }
17325 if (obj1) {
17326 arg2 = (wxDateTime::Country) SWIG_AsInt(obj1);
17327 if (PyErr_Occurred()) SWIG_fail;
17328 }
17329 {
17330 PyThreadState* __tstate = wxPyBeginAllowThreads();
17331 result = wxDateTime::GetBeginDST(arg1,(wxDateTime::Country )arg2);
17332
17333 wxPyEndAllowThreads(__tstate);
17334 if (PyErr_Occurred()) SWIG_fail;
17335 }
17336 {
17337 wxDateTime * resultptr;
17338 resultptr = new wxDateTime((wxDateTime &) result);
17339 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
17340 }
17341 return resultobj;
17342 fail:
17343 return NULL;
17344 }
17345
17346
17347 static PyObject *_wrap_DateTime_GetEndDST(PyObject *self, PyObject *args, PyObject *kwargs) {
17348 PyObject *resultobj;
17349 int arg1 = (int) wxDateTime::Inv_Year ;
17350 int arg2 = (int) wxDateTime::Country_Default ;
17351 wxDateTime result;
17352 PyObject * obj0 = 0 ;
17353 PyObject * obj1 = 0 ;
17354 char *kwnames[] = {
17355 (char *) "year",(char *) "country", NULL
17356 };
17357
17358 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_GetEndDST",kwnames,&obj0,&obj1)) goto fail;
17359 if (obj0) {
17360 arg1 = (int) SWIG_AsInt(obj0);
17361 if (PyErr_Occurred()) SWIG_fail;
17362 }
17363 if (obj1) {
17364 arg2 = (wxDateTime::Country) SWIG_AsInt(obj1);
17365 if (PyErr_Occurred()) SWIG_fail;
17366 }
17367 {
17368 PyThreadState* __tstate = wxPyBeginAllowThreads();
17369 result = wxDateTime::GetEndDST(arg1,(wxDateTime::Country )arg2);
17370
17371 wxPyEndAllowThreads(__tstate);
17372 if (PyErr_Occurred()) SWIG_fail;
17373 }
17374 {
17375 wxDateTime * resultptr;
17376 resultptr = new wxDateTime((wxDateTime &) result);
17377 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
17378 }
17379 return resultobj;
17380 fail:
17381 return NULL;
17382 }
17383
17384
17385 static PyObject *_wrap_DateTime_Now(PyObject *self, PyObject *args, PyObject *kwargs) {
17386 PyObject *resultobj;
17387 wxDateTime result;
17388 char *kwnames[] = {
17389 NULL
17390 };
17391
17392 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_Now",kwnames)) goto fail;
17393 {
17394 PyThreadState* __tstate = wxPyBeginAllowThreads();
17395 result = wxDateTime::Now();
17396
17397 wxPyEndAllowThreads(__tstate);
17398 if (PyErr_Occurred()) SWIG_fail;
17399 }
17400 {
17401 wxDateTime * resultptr;
17402 resultptr = new wxDateTime((wxDateTime &) result);
17403 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
17404 }
17405 return resultobj;
17406 fail:
17407 return NULL;
17408 }
17409
17410
17411 static PyObject *_wrap_DateTime_UNow(PyObject *self, PyObject *args, PyObject *kwargs) {
17412 PyObject *resultobj;
17413 wxDateTime result;
17414 char *kwnames[] = {
17415 NULL
17416 };
17417
17418 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_UNow",kwnames)) goto fail;
17419 {
17420 PyThreadState* __tstate = wxPyBeginAllowThreads();
17421 result = wxDateTime::UNow();
17422
17423 wxPyEndAllowThreads(__tstate);
17424 if (PyErr_Occurred()) SWIG_fail;
17425 }
17426 {
17427 wxDateTime * resultptr;
17428 resultptr = new wxDateTime((wxDateTime &) result);
17429 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
17430 }
17431 return resultobj;
17432 fail:
17433 return NULL;
17434 }
17435
17436
17437 static PyObject *_wrap_DateTime_Today(PyObject *self, PyObject *args, PyObject *kwargs) {
17438 PyObject *resultobj;
17439 wxDateTime result;
17440 char *kwnames[] = {
17441 NULL
17442 };
17443
17444 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_Today",kwnames)) goto fail;
17445 {
17446 PyThreadState* __tstate = wxPyBeginAllowThreads();
17447 result = wxDateTime::Today();
17448
17449 wxPyEndAllowThreads(__tstate);
17450 if (PyErr_Occurred()) SWIG_fail;
17451 }
17452 {
17453 wxDateTime * resultptr;
17454 resultptr = new wxDateTime((wxDateTime &) result);
17455 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
17456 }
17457 return resultobj;
17458 fail:
17459 return NULL;
17460 }
17461
17462
17463 static PyObject *_wrap_new_DateTime(PyObject *self, PyObject *args, PyObject *kwargs) {
17464 PyObject *resultobj;
17465 wxDateTime *result;
17466 char *kwnames[] = {
17467 NULL
17468 };
17469
17470 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DateTime",kwnames)) goto fail;
17471 {
17472 PyThreadState* __tstate = wxPyBeginAllowThreads();
17473 result = (wxDateTime *)new wxDateTime();
17474
17475 wxPyEndAllowThreads(__tstate);
17476 if (PyErr_Occurred()) SWIG_fail;
17477 }
17478 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
17479 return resultobj;
17480 fail:
17481 return NULL;
17482 }
17483
17484
17485 static PyObject *_wrap_new_DateTimeFromTimeT(PyObject *self, PyObject *args, PyObject *kwargs) {
17486 PyObject *resultobj;
17487 time_t arg1 ;
17488 wxDateTime *result;
17489 PyObject * obj0 = 0 ;
17490 char *kwnames[] = {
17491 (char *) "timet", NULL
17492 };
17493
17494 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DateTimeFromTimeT",kwnames,&obj0)) goto fail;
17495 arg1 = (time_t) SWIG_AsUnsignedInt(obj0);
17496 if (PyErr_Occurred()) SWIG_fail;
17497 {
17498 PyThreadState* __tstate = wxPyBeginAllowThreads();
17499 result = (wxDateTime *)new wxDateTime(arg1);
17500
17501 wxPyEndAllowThreads(__tstate);
17502 if (PyErr_Occurred()) SWIG_fail;
17503 }
17504 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
17505 return resultobj;
17506 fail:
17507 return NULL;
17508 }
17509
17510
17511 static PyObject *_wrap_new_DateTimeFromJDN(PyObject *self, PyObject *args, PyObject *kwargs) {
17512 PyObject *resultobj;
17513 double arg1 ;
17514 wxDateTime *result;
17515 PyObject * obj0 = 0 ;
17516 char *kwnames[] = {
17517 (char *) "jdn", NULL
17518 };
17519
17520 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DateTimeFromJDN",kwnames,&obj0)) goto fail;
17521 arg1 = (double) SWIG_AsDouble(obj0);
17522 if (PyErr_Occurred()) SWIG_fail;
17523 {
17524 PyThreadState* __tstate = wxPyBeginAllowThreads();
17525 result = (wxDateTime *)new wxDateTime(arg1);
17526
17527 wxPyEndAllowThreads(__tstate);
17528 if (PyErr_Occurred()) SWIG_fail;
17529 }
17530 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
17531 return resultobj;
17532 fail:
17533 return NULL;
17534 }
17535
17536
17537 static PyObject *_wrap_new_DateTimeFromHMS(PyObject *self, PyObject *args, PyObject *kwargs) {
17538 PyObject *resultobj;
17539 int arg1 ;
17540 int arg2 = (int) 0 ;
17541 int arg3 = (int) 0 ;
17542 int arg4 = (int) 0 ;
17543 wxDateTime *result;
17544 PyObject * obj0 = 0 ;
17545 PyObject * obj1 = 0 ;
17546 PyObject * obj2 = 0 ;
17547 PyObject * obj3 = 0 ;
17548 char *kwnames[] = {
17549 (char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL
17550 };
17551
17552 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:new_DateTimeFromHMS",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
17553 arg1 = (int) SWIG_AsInt(obj0);
17554 if (PyErr_Occurred()) SWIG_fail;
17555 if (obj1) {
17556 arg2 = (int) SWIG_AsInt(obj1);
17557 if (PyErr_Occurred()) SWIG_fail;
17558 }
17559 if (obj2) {
17560 arg3 = (int) SWIG_AsInt(obj2);
17561 if (PyErr_Occurred()) SWIG_fail;
17562 }
17563 if (obj3) {
17564 arg4 = (int) SWIG_AsInt(obj3);
17565 if (PyErr_Occurred()) SWIG_fail;
17566 }
17567 {
17568 PyThreadState* __tstate = wxPyBeginAllowThreads();
17569 result = (wxDateTime *)new wxDateTime(arg1,arg2,arg3,arg4);
17570
17571 wxPyEndAllowThreads(__tstate);
17572 if (PyErr_Occurred()) SWIG_fail;
17573 }
17574 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
17575 return resultobj;
17576 fail:
17577 return NULL;
17578 }
17579
17580
17581 static PyObject *_wrap_new_DateTimeFromDMY(PyObject *self, PyObject *args, PyObject *kwargs) {
17582 PyObject *resultobj;
17583 int arg1 ;
17584 int arg2 = (int) wxDateTime::Inv_Month ;
17585 int arg3 = (int) wxDateTime::Inv_Year ;
17586 int arg4 = (int) 0 ;
17587 int arg5 = (int) 0 ;
17588 int arg6 = (int) 0 ;
17589 int arg7 = (int) 0 ;
17590 wxDateTime *result;
17591 PyObject * obj0 = 0 ;
17592 PyObject * obj1 = 0 ;
17593 PyObject * obj2 = 0 ;
17594 PyObject * obj3 = 0 ;
17595 PyObject * obj4 = 0 ;
17596 PyObject * obj5 = 0 ;
17597 PyObject * obj6 = 0 ;
17598 char *kwnames[] = {
17599 (char *) "day",(char *) "month",(char *) "year",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL
17600 };
17601
17602 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_DateTimeFromDMY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
17603 arg1 = (int) SWIG_AsInt(obj0);
17604 if (PyErr_Occurred()) SWIG_fail;
17605 if (obj1) {
17606 arg2 = (wxDateTime::Month) SWIG_AsInt(obj1);
17607 if (PyErr_Occurred()) SWIG_fail;
17608 }
17609 if (obj2) {
17610 arg3 = (int) SWIG_AsInt(obj2);
17611 if (PyErr_Occurred()) SWIG_fail;
17612 }
17613 if (obj3) {
17614 arg4 = (int) SWIG_AsInt(obj3);
17615 if (PyErr_Occurred()) SWIG_fail;
17616 }
17617 if (obj4) {
17618 arg5 = (int) SWIG_AsInt(obj4);
17619 if (PyErr_Occurred()) SWIG_fail;
17620 }
17621 if (obj5) {
17622 arg6 = (int) SWIG_AsInt(obj5);
17623 if (PyErr_Occurred()) SWIG_fail;
17624 }
17625 if (obj6) {
17626 arg7 = (int) SWIG_AsInt(obj6);
17627 if (PyErr_Occurred()) SWIG_fail;
17628 }
17629 {
17630 PyThreadState* __tstate = wxPyBeginAllowThreads();
17631 result = (wxDateTime *)new wxDateTime(arg1,(wxDateTime::Month )arg2,arg3,arg4,arg5,arg6,arg7);
17632
17633 wxPyEndAllowThreads(__tstate);
17634 if (PyErr_Occurred()) SWIG_fail;
17635 }
17636 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
17637 return resultobj;
17638 fail:
17639 return NULL;
17640 }
17641
17642
17643 static PyObject *_wrap_delete_DateTime(PyObject *self, PyObject *args, PyObject *kwargs) {
17644 PyObject *resultobj;
17645 wxDateTime *arg1 = (wxDateTime *) 0 ;
17646 PyObject * obj0 = 0 ;
17647 char *kwnames[] = {
17648 (char *) "self", NULL
17649 };
17650
17651 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DateTime",kwnames,&obj0)) goto fail;
17652 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17653 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17654 {
17655 PyThreadState* __tstate = wxPyBeginAllowThreads();
17656 delete arg1;
17657
17658 wxPyEndAllowThreads(__tstate);
17659 if (PyErr_Occurred()) SWIG_fail;
17660 }
17661 Py_INCREF(Py_None); resultobj = Py_None;
17662 return resultobj;
17663 fail:
17664 return NULL;
17665 }
17666
17667
17668 static PyObject *_wrap_DateTime_SetToCurrent(PyObject *self, PyObject *args, PyObject *kwargs) {
17669 PyObject *resultobj;
17670 wxDateTime *arg1 = (wxDateTime *) 0 ;
17671 wxDateTime *result;
17672 PyObject * obj0 = 0 ;
17673 char *kwnames[] = {
17674 (char *) "self", NULL
17675 };
17676
17677 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_SetToCurrent",kwnames,&obj0)) goto fail;
17678 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17679 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17680 {
17681 PyThreadState* __tstate = wxPyBeginAllowThreads();
17682 {
17683 wxDateTime &_result_ref = (arg1)->SetToCurrent();
17684 result = (wxDateTime *) &_result_ref;
17685 }
17686
17687 wxPyEndAllowThreads(__tstate);
17688 if (PyErr_Occurred()) SWIG_fail;
17689 }
17690 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17691 return resultobj;
17692 fail:
17693 return NULL;
17694 }
17695
17696
17697 static PyObject *_wrap_DateTime_SetTimeT(PyObject *self, PyObject *args, PyObject *kwargs) {
17698 PyObject *resultobj;
17699 wxDateTime *arg1 = (wxDateTime *) 0 ;
17700 time_t arg2 ;
17701 wxDateTime *result;
17702 PyObject * obj0 = 0 ;
17703 PyObject * obj1 = 0 ;
17704 char *kwnames[] = {
17705 (char *) "self",(char *) "timet", NULL
17706 };
17707
17708 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetTimeT",kwnames,&obj0,&obj1)) goto fail;
17709 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17710 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17711 arg2 = (time_t) SWIG_AsUnsignedInt(obj1);
17712 if (PyErr_Occurred()) SWIG_fail;
17713 {
17714 PyThreadState* __tstate = wxPyBeginAllowThreads();
17715 {
17716 wxDateTime &_result_ref = (arg1)->Set(arg2);
17717 result = (wxDateTime *) &_result_ref;
17718 }
17719
17720 wxPyEndAllowThreads(__tstate);
17721 if (PyErr_Occurred()) SWIG_fail;
17722 }
17723 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17724 return resultobj;
17725 fail:
17726 return NULL;
17727 }
17728
17729
17730 static PyObject *_wrap_DateTime_SetJDN(PyObject *self, PyObject *args, PyObject *kwargs) {
17731 PyObject *resultobj;
17732 wxDateTime *arg1 = (wxDateTime *) 0 ;
17733 double arg2 ;
17734 wxDateTime *result;
17735 PyObject * obj0 = 0 ;
17736 PyObject * obj1 = 0 ;
17737 char *kwnames[] = {
17738 (char *) "self",(char *) "jdn", NULL
17739 };
17740
17741 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetJDN",kwnames,&obj0,&obj1)) goto fail;
17742 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17743 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17744 arg2 = (double) SWIG_AsDouble(obj1);
17745 if (PyErr_Occurred()) SWIG_fail;
17746 {
17747 PyThreadState* __tstate = wxPyBeginAllowThreads();
17748 {
17749 wxDateTime &_result_ref = (arg1)->Set(arg2);
17750 result = (wxDateTime *) &_result_ref;
17751 }
17752
17753 wxPyEndAllowThreads(__tstate);
17754 if (PyErr_Occurred()) SWIG_fail;
17755 }
17756 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17757 return resultobj;
17758 fail:
17759 return NULL;
17760 }
17761
17762
17763 static PyObject *_wrap_DateTime_SetHMS(PyObject *self, PyObject *args, PyObject *kwargs) {
17764 PyObject *resultobj;
17765 wxDateTime *arg1 = (wxDateTime *) 0 ;
17766 int arg2 ;
17767 int arg3 = (int) 0 ;
17768 int arg4 = (int) 0 ;
17769 int arg5 = (int) 0 ;
17770 wxDateTime *result;
17771 PyObject * obj0 = 0 ;
17772 PyObject * obj1 = 0 ;
17773 PyObject * obj2 = 0 ;
17774 PyObject * obj3 = 0 ;
17775 PyObject * obj4 = 0 ;
17776 char *kwnames[] = {
17777 (char *) "self",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL
17778 };
17779
17780 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DateTime_SetHMS",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
17781 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17782 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17783 arg2 = (int) SWIG_AsInt(obj1);
17784 if (PyErr_Occurred()) SWIG_fail;
17785 if (obj2) {
17786 arg3 = (int) SWIG_AsInt(obj2);
17787 if (PyErr_Occurred()) SWIG_fail;
17788 }
17789 if (obj3) {
17790 arg4 = (int) SWIG_AsInt(obj3);
17791 if (PyErr_Occurred()) SWIG_fail;
17792 }
17793 if (obj4) {
17794 arg5 = (int) SWIG_AsInt(obj4);
17795 if (PyErr_Occurred()) SWIG_fail;
17796 }
17797 {
17798 PyThreadState* __tstate = wxPyBeginAllowThreads();
17799 {
17800 wxDateTime &_result_ref = (arg1)->Set(arg2,arg3,arg4,arg5);
17801 result = (wxDateTime *) &_result_ref;
17802 }
17803
17804 wxPyEndAllowThreads(__tstate);
17805 if (PyErr_Occurred()) SWIG_fail;
17806 }
17807 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17808 return resultobj;
17809 fail:
17810 return NULL;
17811 }
17812
17813
17814 static PyObject *_wrap_DateTime_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
17815 PyObject *resultobj;
17816 wxDateTime *arg1 = (wxDateTime *) 0 ;
17817 int arg2 ;
17818 int arg3 = (int) wxDateTime::Inv_Month ;
17819 int arg4 = (int) wxDateTime::Inv_Year ;
17820 int arg5 = (int) 0 ;
17821 int arg6 = (int) 0 ;
17822 int arg7 = (int) 0 ;
17823 int arg8 = (int) 0 ;
17824 wxDateTime *result;
17825 PyObject * obj0 = 0 ;
17826 PyObject * obj1 = 0 ;
17827 PyObject * obj2 = 0 ;
17828 PyObject * obj3 = 0 ;
17829 PyObject * obj4 = 0 ;
17830 PyObject * obj5 = 0 ;
17831 PyObject * obj6 = 0 ;
17832 PyObject * obj7 = 0 ;
17833 char *kwnames[] = {
17834 (char *) "self",(char *) "day",(char *) "month",(char *) "year",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL
17835 };
17836
17837 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:DateTime_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
17838 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17839 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17840 arg2 = (int) SWIG_AsInt(obj1);
17841 if (PyErr_Occurred()) SWIG_fail;
17842 if (obj2) {
17843 arg3 = (wxDateTime::Month) SWIG_AsInt(obj2);
17844 if (PyErr_Occurred()) SWIG_fail;
17845 }
17846 if (obj3) {
17847 arg4 = (int) SWIG_AsInt(obj3);
17848 if (PyErr_Occurred()) SWIG_fail;
17849 }
17850 if (obj4) {
17851 arg5 = (int) SWIG_AsInt(obj4);
17852 if (PyErr_Occurred()) SWIG_fail;
17853 }
17854 if (obj5) {
17855 arg6 = (int) SWIG_AsInt(obj5);
17856 if (PyErr_Occurred()) SWIG_fail;
17857 }
17858 if (obj6) {
17859 arg7 = (int) SWIG_AsInt(obj6);
17860 if (PyErr_Occurred()) SWIG_fail;
17861 }
17862 if (obj7) {
17863 arg8 = (int) SWIG_AsInt(obj7);
17864 if (PyErr_Occurred()) SWIG_fail;
17865 }
17866 {
17867 PyThreadState* __tstate = wxPyBeginAllowThreads();
17868 {
17869 wxDateTime &_result_ref = (arg1)->Set(arg2,(wxDateTime::Month )arg3,arg4,arg5,arg6,arg7,arg8);
17870 result = (wxDateTime *) &_result_ref;
17871 }
17872
17873 wxPyEndAllowThreads(__tstate);
17874 if (PyErr_Occurred()) SWIG_fail;
17875 }
17876 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17877 return resultobj;
17878 fail:
17879 return NULL;
17880 }
17881
17882
17883 static PyObject *_wrap_DateTime_ResetTime(PyObject *self, PyObject *args, PyObject *kwargs) {
17884 PyObject *resultobj;
17885 wxDateTime *arg1 = (wxDateTime *) 0 ;
17886 wxDateTime *result;
17887 PyObject * obj0 = 0 ;
17888 char *kwnames[] = {
17889 (char *) "self", NULL
17890 };
17891
17892 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_ResetTime",kwnames,&obj0)) goto fail;
17893 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17894 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17895 {
17896 PyThreadState* __tstate = wxPyBeginAllowThreads();
17897 {
17898 wxDateTime &_result_ref = (arg1)->ResetTime();
17899 result = (wxDateTime *) &_result_ref;
17900 }
17901
17902 wxPyEndAllowThreads(__tstate);
17903 if (PyErr_Occurred()) SWIG_fail;
17904 }
17905 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17906 return resultobj;
17907 fail:
17908 return NULL;
17909 }
17910
17911
17912 static PyObject *_wrap_DateTime_SetYear(PyObject *self, PyObject *args, PyObject *kwargs) {
17913 PyObject *resultobj;
17914 wxDateTime *arg1 = (wxDateTime *) 0 ;
17915 int arg2 ;
17916 wxDateTime *result;
17917 PyObject * obj0 = 0 ;
17918 PyObject * obj1 = 0 ;
17919 char *kwnames[] = {
17920 (char *) "self",(char *) "year", NULL
17921 };
17922
17923 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetYear",kwnames,&obj0,&obj1)) goto fail;
17924 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17925 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17926 arg2 = (int) SWIG_AsInt(obj1);
17927 if (PyErr_Occurred()) SWIG_fail;
17928 {
17929 PyThreadState* __tstate = wxPyBeginAllowThreads();
17930 {
17931 wxDateTime &_result_ref = (arg1)->SetYear(arg2);
17932 result = (wxDateTime *) &_result_ref;
17933 }
17934
17935 wxPyEndAllowThreads(__tstate);
17936 if (PyErr_Occurred()) SWIG_fail;
17937 }
17938 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17939 return resultobj;
17940 fail:
17941 return NULL;
17942 }
17943
17944
17945 static PyObject *_wrap_DateTime_SetMonth(PyObject *self, PyObject *args, PyObject *kwargs) {
17946 PyObject *resultobj;
17947 wxDateTime *arg1 = (wxDateTime *) 0 ;
17948 int arg2 ;
17949 wxDateTime *result;
17950 PyObject * obj0 = 0 ;
17951 PyObject * obj1 = 0 ;
17952 char *kwnames[] = {
17953 (char *) "self",(char *) "month", NULL
17954 };
17955
17956 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMonth",kwnames,&obj0,&obj1)) goto fail;
17957 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17958 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17959 arg2 = (wxDateTime::Month) SWIG_AsInt(obj1);
17960 if (PyErr_Occurred()) SWIG_fail;
17961 {
17962 PyThreadState* __tstate = wxPyBeginAllowThreads();
17963 {
17964 wxDateTime &_result_ref = (arg1)->SetMonth((wxDateTime::Month )arg2);
17965 result = (wxDateTime *) &_result_ref;
17966 }
17967
17968 wxPyEndAllowThreads(__tstate);
17969 if (PyErr_Occurred()) SWIG_fail;
17970 }
17971 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17972 return resultobj;
17973 fail:
17974 return NULL;
17975 }
17976
17977
17978 static PyObject *_wrap_DateTime_SetDay(PyObject *self, PyObject *args, PyObject *kwargs) {
17979 PyObject *resultobj;
17980 wxDateTime *arg1 = (wxDateTime *) 0 ;
17981 int arg2 ;
17982 wxDateTime *result;
17983 PyObject * obj0 = 0 ;
17984 PyObject * obj1 = 0 ;
17985 char *kwnames[] = {
17986 (char *) "self",(char *) "day", NULL
17987 };
17988
17989 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetDay",kwnames,&obj0,&obj1)) goto fail;
17990 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17991 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17992 arg2 = (int) SWIG_AsInt(obj1);
17993 if (PyErr_Occurred()) SWIG_fail;
17994 {
17995 PyThreadState* __tstate = wxPyBeginAllowThreads();
17996 {
17997 wxDateTime &_result_ref = (arg1)->SetDay(arg2);
17998 result = (wxDateTime *) &_result_ref;
17999 }
18000
18001 wxPyEndAllowThreads(__tstate);
18002 if (PyErr_Occurred()) SWIG_fail;
18003 }
18004 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18005 return resultobj;
18006 fail:
18007 return NULL;
18008 }
18009
18010
18011 static PyObject *_wrap_DateTime_SetHour(PyObject *self, PyObject *args, PyObject *kwargs) {
18012 PyObject *resultobj;
18013 wxDateTime *arg1 = (wxDateTime *) 0 ;
18014 int arg2 ;
18015 wxDateTime *result;
18016 PyObject * obj0 = 0 ;
18017 PyObject * obj1 = 0 ;
18018 char *kwnames[] = {
18019 (char *) "self",(char *) "hour", NULL
18020 };
18021
18022 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetHour",kwnames,&obj0,&obj1)) goto fail;
18023 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18024 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18025 arg2 = (int) SWIG_AsInt(obj1);
18026 if (PyErr_Occurred()) SWIG_fail;
18027 {
18028 PyThreadState* __tstate = wxPyBeginAllowThreads();
18029 {
18030 wxDateTime &_result_ref = (arg1)->SetHour(arg2);
18031 result = (wxDateTime *) &_result_ref;
18032 }
18033
18034 wxPyEndAllowThreads(__tstate);
18035 if (PyErr_Occurred()) SWIG_fail;
18036 }
18037 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18038 return resultobj;
18039 fail:
18040 return NULL;
18041 }
18042
18043
18044 static PyObject *_wrap_DateTime_SetMinute(PyObject *self, PyObject *args, PyObject *kwargs) {
18045 PyObject *resultobj;
18046 wxDateTime *arg1 = (wxDateTime *) 0 ;
18047 int arg2 ;
18048 wxDateTime *result;
18049 PyObject * obj0 = 0 ;
18050 PyObject * obj1 = 0 ;
18051 char *kwnames[] = {
18052 (char *) "self",(char *) "minute", NULL
18053 };
18054
18055 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMinute",kwnames,&obj0,&obj1)) goto fail;
18056 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18057 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18058 arg2 = (int) SWIG_AsInt(obj1);
18059 if (PyErr_Occurred()) SWIG_fail;
18060 {
18061 PyThreadState* __tstate = wxPyBeginAllowThreads();
18062 {
18063 wxDateTime &_result_ref = (arg1)->SetMinute(arg2);
18064 result = (wxDateTime *) &_result_ref;
18065 }
18066
18067 wxPyEndAllowThreads(__tstate);
18068 if (PyErr_Occurred()) SWIG_fail;
18069 }
18070 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18071 return resultobj;
18072 fail:
18073 return NULL;
18074 }
18075
18076
18077 static PyObject *_wrap_DateTime_SetSecond(PyObject *self, PyObject *args, PyObject *kwargs) {
18078 PyObject *resultobj;
18079 wxDateTime *arg1 = (wxDateTime *) 0 ;
18080 int arg2 ;
18081 wxDateTime *result;
18082 PyObject * obj0 = 0 ;
18083 PyObject * obj1 = 0 ;
18084 char *kwnames[] = {
18085 (char *) "self",(char *) "second", NULL
18086 };
18087
18088 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetSecond",kwnames,&obj0,&obj1)) goto fail;
18089 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18090 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18091 arg2 = (int) SWIG_AsInt(obj1);
18092 if (PyErr_Occurred()) SWIG_fail;
18093 {
18094 PyThreadState* __tstate = wxPyBeginAllowThreads();
18095 {
18096 wxDateTime &_result_ref = (arg1)->SetSecond(arg2);
18097 result = (wxDateTime *) &_result_ref;
18098 }
18099
18100 wxPyEndAllowThreads(__tstate);
18101 if (PyErr_Occurred()) SWIG_fail;
18102 }
18103 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18104 return resultobj;
18105 fail:
18106 return NULL;
18107 }
18108
18109
18110 static PyObject *_wrap_DateTime_SetMillisecond(PyObject *self, PyObject *args, PyObject *kwargs) {
18111 PyObject *resultobj;
18112 wxDateTime *arg1 = (wxDateTime *) 0 ;
18113 int arg2 ;
18114 wxDateTime *result;
18115 PyObject * obj0 = 0 ;
18116 PyObject * obj1 = 0 ;
18117 char *kwnames[] = {
18118 (char *) "self",(char *) "millisecond", NULL
18119 };
18120
18121 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMillisecond",kwnames,&obj0,&obj1)) goto fail;
18122 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18123 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18124 arg2 = (int) SWIG_AsInt(obj1);
18125 if (PyErr_Occurred()) SWIG_fail;
18126 {
18127 PyThreadState* __tstate = wxPyBeginAllowThreads();
18128 {
18129 wxDateTime &_result_ref = (arg1)->SetMillisecond(arg2);
18130 result = (wxDateTime *) &_result_ref;
18131 }
18132
18133 wxPyEndAllowThreads(__tstate);
18134 if (PyErr_Occurred()) SWIG_fail;
18135 }
18136 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18137 return resultobj;
18138 fail:
18139 return NULL;
18140 }
18141
18142
18143 static PyObject *_wrap_DateTime_SetToWeekDayInSameWeek(PyObject *self, PyObject *args, PyObject *kwargs) {
18144 PyObject *resultobj;
18145 wxDateTime *arg1 = (wxDateTime *) 0 ;
18146 int arg2 ;
18147 int arg3 = (int) wxDateTime::Monday_First ;
18148 wxDateTime *result;
18149 PyObject * obj0 = 0 ;
18150 PyObject * obj1 = 0 ;
18151 PyObject * obj2 = 0 ;
18152 char *kwnames[] = {
18153 (char *) "self",(char *) "weekday",(char *) "flags", NULL
18154 };
18155
18156 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_SetToWeekDayInSameWeek",kwnames,&obj0,&obj1,&obj2)) goto fail;
18157 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18158 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18159 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
18160 if (PyErr_Occurred()) SWIG_fail;
18161 if (obj2) {
18162 arg3 = (wxDateTime::WeekFlags) SWIG_AsInt(obj2);
18163 if (PyErr_Occurred()) SWIG_fail;
18164 }
18165 {
18166 PyThreadState* __tstate = wxPyBeginAllowThreads();
18167 {
18168 wxDateTime &_result_ref = (arg1)->SetToWeekDayInSameWeek((wxDateTime::WeekDay )arg2,(wxDateTime::WeekFlags )arg3);
18169 result = (wxDateTime *) &_result_ref;
18170 }
18171
18172 wxPyEndAllowThreads(__tstate);
18173 if (PyErr_Occurred()) SWIG_fail;
18174 }
18175 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18176 return resultobj;
18177 fail:
18178 return NULL;
18179 }
18180
18181
18182 static PyObject *_wrap_DateTime_GetWeekDayInSameWeek(PyObject *self, PyObject *args, PyObject *kwargs) {
18183 PyObject *resultobj;
18184 wxDateTime *arg1 = (wxDateTime *) 0 ;
18185 int arg2 ;
18186 int arg3 = (int) wxDateTime::Monday_First ;
18187 wxDateTime result;
18188 PyObject * obj0 = 0 ;
18189 PyObject * obj1 = 0 ;
18190 PyObject * obj2 = 0 ;
18191 char *kwnames[] = {
18192 (char *) "self",(char *) "weekday",(char *) "flags", NULL
18193 };
18194
18195 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_GetWeekDayInSameWeek",kwnames,&obj0,&obj1,&obj2)) goto fail;
18196 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18197 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18198 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
18199 if (PyErr_Occurred()) SWIG_fail;
18200 if (obj2) {
18201 arg3 = (wxDateTime::WeekFlags) SWIG_AsInt(obj2);
18202 if (PyErr_Occurred()) SWIG_fail;
18203 }
18204 {
18205 PyThreadState* __tstate = wxPyBeginAllowThreads();
18206 result = (arg1)->GetWeekDayInSameWeek((wxDateTime::WeekDay )arg2,(wxDateTime::WeekFlags )arg3);
18207
18208 wxPyEndAllowThreads(__tstate);
18209 if (PyErr_Occurred()) SWIG_fail;
18210 }
18211 {
18212 wxDateTime * resultptr;
18213 resultptr = new wxDateTime((wxDateTime &) result);
18214 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18215 }
18216 return resultobj;
18217 fail:
18218 return NULL;
18219 }
18220
18221
18222 static PyObject *_wrap_DateTime_SetToNextWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18223 PyObject *resultobj;
18224 wxDateTime *arg1 = (wxDateTime *) 0 ;
18225 int arg2 ;
18226 wxDateTime *result;
18227 PyObject * obj0 = 0 ;
18228 PyObject * obj1 = 0 ;
18229 char *kwnames[] = {
18230 (char *) "self",(char *) "weekday", NULL
18231 };
18232
18233 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToNextWeekDay",kwnames,&obj0,&obj1)) goto fail;
18234 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18235 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18236 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
18237 if (PyErr_Occurred()) SWIG_fail;
18238 {
18239 PyThreadState* __tstate = wxPyBeginAllowThreads();
18240 {
18241 wxDateTime &_result_ref = (arg1)->SetToNextWeekDay((wxDateTime::WeekDay )arg2);
18242 result = (wxDateTime *) &_result_ref;
18243 }
18244
18245 wxPyEndAllowThreads(__tstate);
18246 if (PyErr_Occurred()) SWIG_fail;
18247 }
18248 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18249 return resultobj;
18250 fail:
18251 return NULL;
18252 }
18253
18254
18255 static PyObject *_wrap_DateTime_GetNextWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18256 PyObject *resultobj;
18257 wxDateTime *arg1 = (wxDateTime *) 0 ;
18258 int arg2 ;
18259 wxDateTime result;
18260 PyObject * obj0 = 0 ;
18261 PyObject * obj1 = 0 ;
18262 char *kwnames[] = {
18263 (char *) "self",(char *) "weekday", NULL
18264 };
18265
18266 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetNextWeekDay",kwnames,&obj0,&obj1)) goto fail;
18267 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18268 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18269 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
18270 if (PyErr_Occurred()) SWIG_fail;
18271 {
18272 PyThreadState* __tstate = wxPyBeginAllowThreads();
18273 result = (arg1)->GetNextWeekDay((wxDateTime::WeekDay )arg2);
18274
18275 wxPyEndAllowThreads(__tstate);
18276 if (PyErr_Occurred()) SWIG_fail;
18277 }
18278 {
18279 wxDateTime * resultptr;
18280 resultptr = new wxDateTime((wxDateTime &) result);
18281 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18282 }
18283 return resultobj;
18284 fail:
18285 return NULL;
18286 }
18287
18288
18289 static PyObject *_wrap_DateTime_SetToPrevWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18290 PyObject *resultobj;
18291 wxDateTime *arg1 = (wxDateTime *) 0 ;
18292 int arg2 ;
18293 wxDateTime *result;
18294 PyObject * obj0 = 0 ;
18295 PyObject * obj1 = 0 ;
18296 char *kwnames[] = {
18297 (char *) "self",(char *) "weekday", NULL
18298 };
18299
18300 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToPrevWeekDay",kwnames,&obj0,&obj1)) goto fail;
18301 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18302 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18303 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
18304 if (PyErr_Occurred()) SWIG_fail;
18305 {
18306 PyThreadState* __tstate = wxPyBeginAllowThreads();
18307 {
18308 wxDateTime &_result_ref = (arg1)->SetToPrevWeekDay((wxDateTime::WeekDay )arg2);
18309 result = (wxDateTime *) &_result_ref;
18310 }
18311
18312 wxPyEndAllowThreads(__tstate);
18313 if (PyErr_Occurred()) SWIG_fail;
18314 }
18315 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18316 return resultobj;
18317 fail:
18318 return NULL;
18319 }
18320
18321
18322 static PyObject *_wrap_DateTime_GetPrevWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18323 PyObject *resultobj;
18324 wxDateTime *arg1 = (wxDateTime *) 0 ;
18325 int arg2 ;
18326 wxDateTime result;
18327 PyObject * obj0 = 0 ;
18328 PyObject * obj1 = 0 ;
18329 char *kwnames[] = {
18330 (char *) "self",(char *) "weekday", NULL
18331 };
18332
18333 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetPrevWeekDay",kwnames,&obj0,&obj1)) goto fail;
18334 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18335 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18336 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
18337 if (PyErr_Occurred()) SWIG_fail;
18338 {
18339 PyThreadState* __tstate = wxPyBeginAllowThreads();
18340 result = (arg1)->GetPrevWeekDay((wxDateTime::WeekDay )arg2);
18341
18342 wxPyEndAllowThreads(__tstate);
18343 if (PyErr_Occurred()) SWIG_fail;
18344 }
18345 {
18346 wxDateTime * resultptr;
18347 resultptr = new wxDateTime((wxDateTime &) result);
18348 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18349 }
18350 return resultobj;
18351 fail:
18352 return NULL;
18353 }
18354
18355
18356 static PyObject *_wrap_DateTime_SetToWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18357 PyObject *resultobj;
18358 wxDateTime *arg1 = (wxDateTime *) 0 ;
18359 int arg2 ;
18360 int arg3 = (int) 1 ;
18361 int arg4 = (int) wxDateTime::Inv_Month ;
18362 int arg5 = (int) wxDateTime::Inv_Year ;
18363 bool result;
18364 PyObject * obj0 = 0 ;
18365 PyObject * obj1 = 0 ;
18366 PyObject * obj2 = 0 ;
18367 PyObject * obj3 = 0 ;
18368 PyObject * obj4 = 0 ;
18369 char *kwnames[] = {
18370 (char *) "self",(char *) "weekday",(char *) "n",(char *) "month",(char *) "year", NULL
18371 };
18372
18373 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DateTime_SetToWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
18374 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18375 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18376 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
18377 if (PyErr_Occurred()) SWIG_fail;
18378 if (obj2) {
18379 arg3 = (int) SWIG_AsInt(obj2);
18380 if (PyErr_Occurred()) SWIG_fail;
18381 }
18382 if (obj3) {
18383 arg4 = (wxDateTime::Month) SWIG_AsInt(obj3);
18384 if (PyErr_Occurred()) SWIG_fail;
18385 }
18386 if (obj4) {
18387 arg5 = (int) SWIG_AsInt(obj4);
18388 if (PyErr_Occurred()) SWIG_fail;
18389 }
18390 {
18391 PyThreadState* __tstate = wxPyBeginAllowThreads();
18392 result = (bool)(arg1)->SetToWeekDay((wxDateTime::WeekDay )arg2,arg3,(wxDateTime::Month )arg4,arg5);
18393
18394 wxPyEndAllowThreads(__tstate);
18395 if (PyErr_Occurred()) SWIG_fail;
18396 }
18397 {
18398 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18399 }
18400 return resultobj;
18401 fail:
18402 return NULL;
18403 }
18404
18405
18406 static PyObject *_wrap_DateTime_SetToLastWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18407 PyObject *resultobj;
18408 wxDateTime *arg1 = (wxDateTime *) 0 ;
18409 int arg2 ;
18410 int arg3 = (int) wxDateTime::Inv_Month ;
18411 int arg4 = (int) wxDateTime::Inv_Year ;
18412 bool result;
18413 PyObject * obj0 = 0 ;
18414 PyObject * obj1 = 0 ;
18415 PyObject * obj2 = 0 ;
18416 PyObject * obj3 = 0 ;
18417 char *kwnames[] = {
18418 (char *) "self",(char *) "weekday",(char *) "month",(char *) "year", NULL
18419 };
18420
18421 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_SetToLastWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18422 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18423 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18424 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
18425 if (PyErr_Occurred()) SWIG_fail;
18426 if (obj2) {
18427 arg3 = (wxDateTime::Month) SWIG_AsInt(obj2);
18428 if (PyErr_Occurred()) SWIG_fail;
18429 }
18430 if (obj3) {
18431 arg4 = (int) SWIG_AsInt(obj3);
18432 if (PyErr_Occurred()) SWIG_fail;
18433 }
18434 {
18435 PyThreadState* __tstate = wxPyBeginAllowThreads();
18436 result = (bool)(arg1)->SetToLastWeekDay((wxDateTime::WeekDay )arg2,(wxDateTime::Month )arg3,arg4);
18437
18438 wxPyEndAllowThreads(__tstate);
18439 if (PyErr_Occurred()) SWIG_fail;
18440 }
18441 {
18442 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18443 }
18444 return resultobj;
18445 fail:
18446 return NULL;
18447 }
18448
18449
18450 static PyObject *_wrap_DateTime_GetLastWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18451 PyObject *resultobj;
18452 wxDateTime *arg1 = (wxDateTime *) 0 ;
18453 int arg2 ;
18454 int arg3 = (int) wxDateTime::Inv_Month ;
18455 int arg4 = (int) wxDateTime::Inv_Year ;
18456 wxDateTime result;
18457 PyObject * obj0 = 0 ;
18458 PyObject * obj1 = 0 ;
18459 PyObject * obj2 = 0 ;
18460 PyObject * obj3 = 0 ;
18461 char *kwnames[] = {
18462 (char *) "self",(char *) "weekday",(char *) "month",(char *) "year", NULL
18463 };
18464
18465 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_GetLastWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18466 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18467 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18468 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
18469 if (PyErr_Occurred()) SWIG_fail;
18470 if (obj2) {
18471 arg3 = (wxDateTime::Month) SWIG_AsInt(obj2);
18472 if (PyErr_Occurred()) SWIG_fail;
18473 }
18474 if (obj3) {
18475 arg4 = (int) SWIG_AsInt(obj3);
18476 if (PyErr_Occurred()) SWIG_fail;
18477 }
18478 {
18479 PyThreadState* __tstate = wxPyBeginAllowThreads();
18480 result = (arg1)->GetLastWeekDay((wxDateTime::WeekDay )arg2,(wxDateTime::Month )arg3,arg4);
18481
18482 wxPyEndAllowThreads(__tstate);
18483 if (PyErr_Occurred()) SWIG_fail;
18484 }
18485 {
18486 wxDateTime * resultptr;
18487 resultptr = new wxDateTime((wxDateTime &) result);
18488 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18489 }
18490 return resultobj;
18491 fail:
18492 return NULL;
18493 }
18494
18495
18496 static PyObject *_wrap_DateTime_SetToTheWeek(PyObject *self, PyObject *args, PyObject *kwargs) {
18497 PyObject *resultobj;
18498 wxDateTime *arg1 = (wxDateTime *) 0 ;
18499 int arg2 ;
18500 int arg3 = (int) wxDateTime::Mon ;
18501 int arg4 = (int) wxDateTime::Monday_First ;
18502 bool result;
18503 PyObject * obj0 = 0 ;
18504 PyObject * obj1 = 0 ;
18505 PyObject * obj2 = 0 ;
18506 PyObject * obj3 = 0 ;
18507 char *kwnames[] = {
18508 (char *) "self",(char *) "numWeek",(char *) "weekday",(char *) "flags", NULL
18509 };
18510
18511 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_SetToTheWeek",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18512 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18513 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18514 arg2 = (int) SWIG_AsInt(obj1);
18515 if (PyErr_Occurred()) SWIG_fail;
18516 if (obj2) {
18517 arg3 = (wxDateTime::WeekDay) SWIG_AsInt(obj2);
18518 if (PyErr_Occurred()) SWIG_fail;
18519 }
18520 if (obj3) {
18521 arg4 = (wxDateTime::WeekFlags) SWIG_AsInt(obj3);
18522 if (PyErr_Occurred()) SWIG_fail;
18523 }
18524 {
18525 PyThreadState* __tstate = wxPyBeginAllowThreads();
18526 result = (bool)(arg1)->SetToTheWeek(arg2,(wxDateTime::WeekDay )arg3,(wxDateTime::WeekFlags )arg4);
18527
18528 wxPyEndAllowThreads(__tstate);
18529 if (PyErr_Occurred()) SWIG_fail;
18530 }
18531 {
18532 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18533 }
18534 return resultobj;
18535 fail:
18536 return NULL;
18537 }
18538
18539
18540 static PyObject *_wrap_DateTime_GetWeek(PyObject *self, PyObject *args, PyObject *kwargs) {
18541 PyObject *resultobj;
18542 wxDateTime *arg1 = (wxDateTime *) 0 ;
18543 int arg2 ;
18544 int arg3 = (int) wxDateTime::Mon ;
18545 int arg4 = (int) wxDateTime::Monday_First ;
18546 wxDateTime result;
18547 PyObject * obj0 = 0 ;
18548 PyObject * obj1 = 0 ;
18549 PyObject * obj2 = 0 ;
18550 PyObject * obj3 = 0 ;
18551 char *kwnames[] = {
18552 (char *) "self",(char *) "numWeek",(char *) "weekday",(char *) "flags", NULL
18553 };
18554
18555 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_GetWeek",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18556 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18557 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18558 arg2 = (int) SWIG_AsInt(obj1);
18559 if (PyErr_Occurred()) SWIG_fail;
18560 if (obj2) {
18561 arg3 = (wxDateTime::WeekDay) SWIG_AsInt(obj2);
18562 if (PyErr_Occurred()) SWIG_fail;
18563 }
18564 if (obj3) {
18565 arg4 = (wxDateTime::WeekFlags) SWIG_AsInt(obj3);
18566 if (PyErr_Occurred()) SWIG_fail;
18567 }
18568 {
18569 PyThreadState* __tstate = wxPyBeginAllowThreads();
18570 result = (arg1)->GetWeek(arg2,(wxDateTime::WeekDay )arg3,(wxDateTime::WeekFlags )arg4);
18571
18572 wxPyEndAllowThreads(__tstate);
18573 if (PyErr_Occurred()) SWIG_fail;
18574 }
18575 {
18576 wxDateTime * resultptr;
18577 resultptr = new wxDateTime((wxDateTime &) result);
18578 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18579 }
18580 return resultobj;
18581 fail:
18582 return NULL;
18583 }
18584
18585
18586 static PyObject *_wrap_DateTime_SetToLastMonthDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18587 PyObject *resultobj;
18588 wxDateTime *arg1 = (wxDateTime *) 0 ;
18589 int arg2 = (int) wxDateTime::Inv_Month ;
18590 int arg3 = (int) wxDateTime::Inv_Year ;
18591 wxDateTime *result;
18592 PyObject * obj0 = 0 ;
18593 PyObject * obj1 = 0 ;
18594 PyObject * obj2 = 0 ;
18595 char *kwnames[] = {
18596 (char *) "self",(char *) "month",(char *) "year", NULL
18597 };
18598
18599 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_SetToLastMonthDay",kwnames,&obj0,&obj1,&obj2)) goto fail;
18600 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18601 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18602 if (obj1) {
18603 arg2 = (wxDateTime::Month) SWIG_AsInt(obj1);
18604 if (PyErr_Occurred()) SWIG_fail;
18605 }
18606 if (obj2) {
18607 arg3 = (int) SWIG_AsInt(obj2);
18608 if (PyErr_Occurred()) SWIG_fail;
18609 }
18610 {
18611 PyThreadState* __tstate = wxPyBeginAllowThreads();
18612 {
18613 wxDateTime &_result_ref = (arg1)->SetToLastMonthDay((wxDateTime::Month )arg2,arg3);
18614 result = (wxDateTime *) &_result_ref;
18615 }
18616
18617 wxPyEndAllowThreads(__tstate);
18618 if (PyErr_Occurred()) SWIG_fail;
18619 }
18620 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18621 return resultobj;
18622 fail:
18623 return NULL;
18624 }
18625
18626
18627 static PyObject *_wrap_DateTime_GetLastMonthDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18628 PyObject *resultobj;
18629 wxDateTime *arg1 = (wxDateTime *) 0 ;
18630 int arg2 = (int) wxDateTime::Inv_Month ;
18631 int arg3 = (int) wxDateTime::Inv_Year ;
18632 wxDateTime result;
18633 PyObject * obj0 = 0 ;
18634 PyObject * obj1 = 0 ;
18635 PyObject * obj2 = 0 ;
18636 char *kwnames[] = {
18637 (char *) "self",(char *) "month",(char *) "year", NULL
18638 };
18639
18640 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetLastMonthDay",kwnames,&obj0,&obj1,&obj2)) goto fail;
18641 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18642 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18643 if (obj1) {
18644 arg2 = (wxDateTime::Month) SWIG_AsInt(obj1);
18645 if (PyErr_Occurred()) SWIG_fail;
18646 }
18647 if (obj2) {
18648 arg3 = (int) SWIG_AsInt(obj2);
18649 if (PyErr_Occurred()) SWIG_fail;
18650 }
18651 {
18652 PyThreadState* __tstate = wxPyBeginAllowThreads();
18653 result = (arg1)->GetLastMonthDay((wxDateTime::Month )arg2,arg3);
18654
18655 wxPyEndAllowThreads(__tstate);
18656 if (PyErr_Occurred()) SWIG_fail;
18657 }
18658 {
18659 wxDateTime * resultptr;
18660 resultptr = new wxDateTime((wxDateTime &) result);
18661 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18662 }
18663 return resultobj;
18664 fail:
18665 return NULL;
18666 }
18667
18668
18669 static PyObject *_wrap_DateTime_SetToYearDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18670 PyObject *resultobj;
18671 wxDateTime *arg1 = (wxDateTime *) 0 ;
18672 int arg2 ;
18673 wxDateTime *result;
18674 PyObject * obj0 = 0 ;
18675 PyObject * obj1 = 0 ;
18676 char *kwnames[] = {
18677 (char *) "self",(char *) "yday", NULL
18678 };
18679
18680 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToYearDay",kwnames,&obj0,&obj1)) goto fail;
18681 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18682 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18683 arg2 = (int) SWIG_AsInt(obj1);
18684 if (PyErr_Occurred()) SWIG_fail;
18685 {
18686 PyThreadState* __tstate = wxPyBeginAllowThreads();
18687 {
18688 wxDateTime &_result_ref = (arg1)->SetToYearDay(arg2);
18689 result = (wxDateTime *) &_result_ref;
18690 }
18691
18692 wxPyEndAllowThreads(__tstate);
18693 if (PyErr_Occurred()) SWIG_fail;
18694 }
18695 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18696 return resultobj;
18697 fail:
18698 return NULL;
18699 }
18700
18701
18702 static PyObject *_wrap_DateTime_GetYearDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18703 PyObject *resultobj;
18704 wxDateTime *arg1 = (wxDateTime *) 0 ;
18705 int arg2 ;
18706 wxDateTime result;
18707 PyObject * obj0 = 0 ;
18708 PyObject * obj1 = 0 ;
18709 char *kwnames[] = {
18710 (char *) "self",(char *) "yday", NULL
18711 };
18712
18713 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetYearDay",kwnames,&obj0,&obj1)) goto fail;
18714 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18715 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18716 arg2 = (int) SWIG_AsInt(obj1);
18717 if (PyErr_Occurred()) SWIG_fail;
18718 {
18719 PyThreadState* __tstate = wxPyBeginAllowThreads();
18720 result = (arg1)->GetYearDay(arg2);
18721
18722 wxPyEndAllowThreads(__tstate);
18723 if (PyErr_Occurred()) SWIG_fail;
18724 }
18725 {
18726 wxDateTime * resultptr;
18727 resultptr = new wxDateTime((wxDateTime &) result);
18728 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18729 }
18730 return resultobj;
18731 fail:
18732 return NULL;
18733 }
18734
18735
18736 static PyObject *_wrap_DateTime_GetJulianDayNumber(PyObject *self, PyObject *args, PyObject *kwargs) {
18737 PyObject *resultobj;
18738 wxDateTime *arg1 = (wxDateTime *) 0 ;
18739 double result;
18740 PyObject * obj0 = 0 ;
18741 char *kwnames[] = {
18742 (char *) "self", NULL
18743 };
18744
18745 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetJulianDayNumber",kwnames,&obj0)) goto fail;
18746 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18747 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18748 {
18749 PyThreadState* __tstate = wxPyBeginAllowThreads();
18750 result = (double)(arg1)->GetJulianDayNumber();
18751
18752 wxPyEndAllowThreads(__tstate);
18753 if (PyErr_Occurred()) SWIG_fail;
18754 }
18755 resultobj = SWIG_FromDouble((double)result);
18756 return resultobj;
18757 fail:
18758 return NULL;
18759 }
18760
18761
18762 static PyObject *_wrap_DateTime_GetJDN(PyObject *self, PyObject *args, PyObject *kwargs) {
18763 PyObject *resultobj;
18764 wxDateTime *arg1 = (wxDateTime *) 0 ;
18765 double result;
18766 PyObject * obj0 = 0 ;
18767 char *kwnames[] = {
18768 (char *) "self", NULL
18769 };
18770
18771 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetJDN",kwnames,&obj0)) goto fail;
18772 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18773 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18774 {
18775 PyThreadState* __tstate = wxPyBeginAllowThreads();
18776 result = (double)(arg1)->GetJDN();
18777
18778 wxPyEndAllowThreads(__tstate);
18779 if (PyErr_Occurred()) SWIG_fail;
18780 }
18781 resultobj = SWIG_FromDouble((double)result);
18782 return resultobj;
18783 fail:
18784 return NULL;
18785 }
18786
18787
18788 static PyObject *_wrap_DateTime_GetModifiedJulianDayNumber(PyObject *self, PyObject *args, PyObject *kwargs) {
18789 PyObject *resultobj;
18790 wxDateTime *arg1 = (wxDateTime *) 0 ;
18791 double result;
18792 PyObject * obj0 = 0 ;
18793 char *kwnames[] = {
18794 (char *) "self", NULL
18795 };
18796
18797 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetModifiedJulianDayNumber",kwnames,&obj0)) goto fail;
18798 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18799 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18800 {
18801 PyThreadState* __tstate = wxPyBeginAllowThreads();
18802 result = (double)((wxDateTime const *)arg1)->GetModifiedJulianDayNumber();
18803
18804 wxPyEndAllowThreads(__tstate);
18805 if (PyErr_Occurred()) SWIG_fail;
18806 }
18807 resultobj = SWIG_FromDouble((double)result);
18808 return resultobj;
18809 fail:
18810 return NULL;
18811 }
18812
18813
18814 static PyObject *_wrap_DateTime_GetMJD(PyObject *self, PyObject *args, PyObject *kwargs) {
18815 PyObject *resultobj;
18816 wxDateTime *arg1 = (wxDateTime *) 0 ;
18817 double result;
18818 PyObject * obj0 = 0 ;
18819 char *kwnames[] = {
18820 (char *) "self", NULL
18821 };
18822
18823 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetMJD",kwnames,&obj0)) goto fail;
18824 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18825 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18826 {
18827 PyThreadState* __tstate = wxPyBeginAllowThreads();
18828 result = (double)(arg1)->GetMJD();
18829
18830 wxPyEndAllowThreads(__tstate);
18831 if (PyErr_Occurred()) SWIG_fail;
18832 }
18833 resultobj = SWIG_FromDouble((double)result);
18834 return resultobj;
18835 fail:
18836 return NULL;
18837 }
18838
18839
18840 static PyObject *_wrap_DateTime_GetRataDie(PyObject *self, PyObject *args, PyObject *kwargs) {
18841 PyObject *resultobj;
18842 wxDateTime *arg1 = (wxDateTime *) 0 ;
18843 double result;
18844 PyObject * obj0 = 0 ;
18845 char *kwnames[] = {
18846 (char *) "self", NULL
18847 };
18848
18849 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetRataDie",kwnames,&obj0)) goto fail;
18850 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18851 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18852 {
18853 PyThreadState* __tstate = wxPyBeginAllowThreads();
18854 result = (double)(arg1)->GetRataDie();
18855
18856 wxPyEndAllowThreads(__tstate);
18857 if (PyErr_Occurred()) SWIG_fail;
18858 }
18859 resultobj = SWIG_FromDouble((double)result);
18860 return resultobj;
18861 fail:
18862 return NULL;
18863 }
18864
18865
18866 static PyObject *_wrap_DateTime_ToTimezone(PyObject *self, PyObject *args, PyObject *kwargs) {
18867 PyObject *resultobj;
18868 wxDateTime *arg1 = (wxDateTime *) 0 ;
18869 wxDateTime::TimeZone *arg2 = 0 ;
18870 bool arg3 = (bool) False ;
18871 wxDateTime result;
18872 bool temp2 = False ;
18873 PyObject * obj0 = 0 ;
18874 PyObject * obj1 = 0 ;
18875 PyObject * obj2 = 0 ;
18876 char *kwnames[] = {
18877 (char *) "self",(char *) "tz",(char *) "noDST", NULL
18878 };
18879
18880 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_ToTimezone",kwnames,&obj0,&obj1,&obj2)) goto fail;
18881 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18882 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18883 {
18884 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
18885 temp2 = True;
18886 }
18887 if (obj2) {
18888 arg3 = (bool) SWIG_AsBool(obj2);
18889 if (PyErr_Occurred()) SWIG_fail;
18890 }
18891 {
18892 PyThreadState* __tstate = wxPyBeginAllowThreads();
18893 result = (arg1)->ToTimezone((wxDateTime::TimeZone const &)*arg2,arg3);
18894
18895 wxPyEndAllowThreads(__tstate);
18896 if (PyErr_Occurred()) SWIG_fail;
18897 }
18898 {
18899 wxDateTime * resultptr;
18900 resultptr = new wxDateTime((wxDateTime &) result);
18901 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18902 }
18903 {
18904 if (temp2) delete arg2;
18905 }
18906 return resultobj;
18907 fail:
18908 {
18909 if (temp2) delete arg2;
18910 }
18911 return NULL;
18912 }
18913
18914
18915 static PyObject *_wrap_DateTime_MakeTimezone(PyObject *self, PyObject *args, PyObject *kwargs) {
18916 PyObject *resultobj;
18917 wxDateTime *arg1 = (wxDateTime *) 0 ;
18918 wxDateTime::TimeZone *arg2 = 0 ;
18919 bool arg3 = (bool) False ;
18920 wxDateTime *result;
18921 bool temp2 = False ;
18922 PyObject * obj0 = 0 ;
18923 PyObject * obj1 = 0 ;
18924 PyObject * obj2 = 0 ;
18925 char *kwnames[] = {
18926 (char *) "self",(char *) "tz",(char *) "noDST", NULL
18927 };
18928
18929 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_MakeTimezone",kwnames,&obj0,&obj1,&obj2)) goto fail;
18930 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18931 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18932 {
18933 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
18934 temp2 = True;
18935 }
18936 if (obj2) {
18937 arg3 = (bool) SWIG_AsBool(obj2);
18938 if (PyErr_Occurred()) SWIG_fail;
18939 }
18940 {
18941 PyThreadState* __tstate = wxPyBeginAllowThreads();
18942 {
18943 wxDateTime &_result_ref = (arg1)->MakeTimezone((wxDateTime::TimeZone const &)*arg2,arg3);
18944 result = (wxDateTime *) &_result_ref;
18945 }
18946
18947 wxPyEndAllowThreads(__tstate);
18948 if (PyErr_Occurred()) SWIG_fail;
18949 }
18950 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18951 {
18952 if (temp2) delete arg2;
18953 }
18954 return resultobj;
18955 fail:
18956 {
18957 if (temp2) delete arg2;
18958 }
18959 return NULL;
18960 }
18961
18962
18963 static PyObject *_wrap_DateTime_ToGMT(PyObject *self, PyObject *args, PyObject *kwargs) {
18964 PyObject *resultobj;
18965 wxDateTime *arg1 = (wxDateTime *) 0 ;
18966 bool arg2 = (bool) False ;
18967 wxDateTime result;
18968 PyObject * obj0 = 0 ;
18969 PyObject * obj1 = 0 ;
18970 char *kwnames[] = {
18971 (char *) "self",(char *) "noDST", NULL
18972 };
18973
18974 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_ToGMT",kwnames,&obj0,&obj1)) goto fail;
18975 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18976 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18977 if (obj1) {
18978 arg2 = (bool) SWIG_AsBool(obj1);
18979 if (PyErr_Occurred()) SWIG_fail;
18980 }
18981 {
18982 PyThreadState* __tstate = wxPyBeginAllowThreads();
18983 result = (arg1)->ToGMT(arg2);
18984
18985 wxPyEndAllowThreads(__tstate);
18986 if (PyErr_Occurred()) SWIG_fail;
18987 }
18988 {
18989 wxDateTime * resultptr;
18990 resultptr = new wxDateTime((wxDateTime &) result);
18991 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18992 }
18993 return resultobj;
18994 fail:
18995 return NULL;
18996 }
18997
18998
18999 static PyObject *_wrap_DateTime_MakeGMT(PyObject *self, PyObject *args, PyObject *kwargs) {
19000 PyObject *resultobj;
19001 wxDateTime *arg1 = (wxDateTime *) 0 ;
19002 bool arg2 = (bool) False ;
19003 wxDateTime *result;
19004 PyObject * obj0 = 0 ;
19005 PyObject * obj1 = 0 ;
19006 char *kwnames[] = {
19007 (char *) "self",(char *) "noDST", NULL
19008 };
19009
19010 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_MakeGMT",kwnames,&obj0,&obj1)) goto fail;
19011 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19012 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19013 if (obj1) {
19014 arg2 = (bool) SWIG_AsBool(obj1);
19015 if (PyErr_Occurred()) SWIG_fail;
19016 }
19017 {
19018 PyThreadState* __tstate = wxPyBeginAllowThreads();
19019 {
19020 wxDateTime &_result_ref = (arg1)->MakeGMT(arg2);
19021 result = (wxDateTime *) &_result_ref;
19022 }
19023
19024 wxPyEndAllowThreads(__tstate);
19025 if (PyErr_Occurred()) SWIG_fail;
19026 }
19027 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
19028 return resultobj;
19029 fail:
19030 return NULL;
19031 }
19032
19033
19034 static PyObject *_wrap_DateTime_IsDST(PyObject *self, PyObject *args, PyObject *kwargs) {
19035 PyObject *resultobj;
19036 wxDateTime *arg1 = (wxDateTime *) 0 ;
19037 int arg2 = (int) wxDateTime::Country_Default ;
19038 int result;
19039 PyObject * obj0 = 0 ;
19040 PyObject * obj1 = 0 ;
19041 char *kwnames[] = {
19042 (char *) "self",(char *) "country", NULL
19043 };
19044
19045 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_IsDST",kwnames,&obj0,&obj1)) goto fail;
19046 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19047 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19048 if (obj1) {
19049 arg2 = (wxDateTime::Country) SWIG_AsInt(obj1);
19050 if (PyErr_Occurred()) SWIG_fail;
19051 }
19052 {
19053 PyThreadState* __tstate = wxPyBeginAllowThreads();
19054 result = (int)(arg1)->IsDST((wxDateTime::Country )arg2);
19055
19056 wxPyEndAllowThreads(__tstate);
19057 if (PyErr_Occurred()) SWIG_fail;
19058 }
19059 resultobj = SWIG_FromInt((int)result);
19060 return resultobj;
19061 fail:
19062 return NULL;
19063 }
19064
19065
19066 static PyObject *_wrap_DateTime_IsValid(PyObject *self, PyObject *args, PyObject *kwargs) {
19067 PyObject *resultobj;
19068 wxDateTime *arg1 = (wxDateTime *) 0 ;
19069 bool result;
19070 PyObject * obj0 = 0 ;
19071 char *kwnames[] = {
19072 (char *) "self", NULL
19073 };
19074
19075 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_IsValid",kwnames,&obj0)) goto fail;
19076 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19077 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19078 {
19079 PyThreadState* __tstate = wxPyBeginAllowThreads();
19080 result = (bool)((wxDateTime const *)arg1)->IsValid();
19081
19082 wxPyEndAllowThreads(__tstate);
19083 if (PyErr_Occurred()) SWIG_fail;
19084 }
19085 {
19086 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19087 }
19088 return resultobj;
19089 fail:
19090 return NULL;
19091 }
19092
19093
19094 static PyObject *_wrap_DateTime_GetTicks(PyObject *self, PyObject *args, PyObject *kwargs) {
19095 PyObject *resultobj;
19096 wxDateTime *arg1 = (wxDateTime *) 0 ;
19097 time_t result;
19098 PyObject * obj0 = 0 ;
19099 char *kwnames[] = {
19100 (char *) "self", NULL
19101 };
19102
19103 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetTicks",kwnames,&obj0)) goto fail;
19104 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19105 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19106 {
19107 PyThreadState* __tstate = wxPyBeginAllowThreads();
19108 result = (time_t)((wxDateTime const *)arg1)->GetTicks();
19109
19110 wxPyEndAllowThreads(__tstate);
19111 if (PyErr_Occurred()) SWIG_fail;
19112 }
19113 resultobj = SWIG_FromUnsignedInt((unsigned int)result);
19114 return resultobj;
19115 fail:
19116 return NULL;
19117 }
19118
19119
19120 static PyObject *_wrap_DateTime_GetYear(PyObject *self, PyObject *args, PyObject *kwargs) {
19121 PyObject *resultobj;
19122 wxDateTime *arg1 = (wxDateTime *) 0 ;
19123 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19124 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19125 int result;
19126 bool temp2 = False ;
19127 PyObject * obj0 = 0 ;
19128 PyObject * obj1 = 0 ;
19129 char *kwnames[] = {
19130 (char *) "self",(char *) "tz", NULL
19131 };
19132
19133 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetYear",kwnames,&obj0,&obj1)) goto fail;
19134 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19135 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19136 if (obj1) {
19137 {
19138 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19139 temp2 = True;
19140 }
19141 }
19142 {
19143 PyThreadState* __tstate = wxPyBeginAllowThreads();
19144 result = (int)((wxDateTime const *)arg1)->GetYear((wxDateTime::TimeZone const &)*arg2);
19145
19146 wxPyEndAllowThreads(__tstate);
19147 if (PyErr_Occurred()) SWIG_fail;
19148 }
19149 resultobj = SWIG_FromInt((int)result);
19150 {
19151 if (temp2) delete arg2;
19152 }
19153 return resultobj;
19154 fail:
19155 {
19156 if (temp2) delete arg2;
19157 }
19158 return NULL;
19159 }
19160
19161
19162 static PyObject *_wrap_DateTime_GetMonth(PyObject *self, PyObject *args, PyObject *kwargs) {
19163 PyObject *resultobj;
19164 wxDateTime *arg1 = (wxDateTime *) 0 ;
19165 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19166 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19167 int result;
19168 bool temp2 = False ;
19169 PyObject * obj0 = 0 ;
19170 PyObject * obj1 = 0 ;
19171 char *kwnames[] = {
19172 (char *) "self",(char *) "tz", NULL
19173 };
19174
19175 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMonth",kwnames,&obj0,&obj1)) goto fail;
19176 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19177 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19178 if (obj1) {
19179 {
19180 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19181 temp2 = True;
19182 }
19183 }
19184 {
19185 PyThreadState* __tstate = wxPyBeginAllowThreads();
19186 result = (int)((wxDateTime const *)arg1)->GetMonth((wxDateTime::TimeZone const &)*arg2);
19187
19188 wxPyEndAllowThreads(__tstate);
19189 if (PyErr_Occurred()) SWIG_fail;
19190 }
19191 resultobj = SWIG_FromInt((int)result);
19192 {
19193 if (temp2) delete arg2;
19194 }
19195 return resultobj;
19196 fail:
19197 {
19198 if (temp2) delete arg2;
19199 }
19200 return NULL;
19201 }
19202
19203
19204 static PyObject *_wrap_DateTime_GetDay(PyObject *self, PyObject *args, PyObject *kwargs) {
19205 PyObject *resultobj;
19206 wxDateTime *arg1 = (wxDateTime *) 0 ;
19207 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19208 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19209 int result;
19210 bool temp2 = False ;
19211 PyObject * obj0 = 0 ;
19212 PyObject * obj1 = 0 ;
19213 char *kwnames[] = {
19214 (char *) "self",(char *) "tz", NULL
19215 };
19216
19217 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetDay",kwnames,&obj0,&obj1)) goto fail;
19218 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19219 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19220 if (obj1) {
19221 {
19222 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19223 temp2 = True;
19224 }
19225 }
19226 {
19227 PyThreadState* __tstate = wxPyBeginAllowThreads();
19228 result = (int)((wxDateTime const *)arg1)->GetDay((wxDateTime::TimeZone const &)*arg2);
19229
19230 wxPyEndAllowThreads(__tstate);
19231 if (PyErr_Occurred()) SWIG_fail;
19232 }
19233 resultobj = SWIG_FromInt((int)result);
19234 {
19235 if (temp2) delete arg2;
19236 }
19237 return resultobj;
19238 fail:
19239 {
19240 if (temp2) delete arg2;
19241 }
19242 return NULL;
19243 }
19244
19245
19246 static PyObject *_wrap_DateTime_GetWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
19247 PyObject *resultobj;
19248 wxDateTime *arg1 = (wxDateTime *) 0 ;
19249 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19250 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19251 int result;
19252 bool temp2 = False ;
19253 PyObject * obj0 = 0 ;
19254 PyObject * obj1 = 0 ;
19255 char *kwnames[] = {
19256 (char *) "self",(char *) "tz", NULL
19257 };
19258
19259 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetWeekDay",kwnames,&obj0,&obj1)) goto fail;
19260 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19261 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19262 if (obj1) {
19263 {
19264 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19265 temp2 = True;
19266 }
19267 }
19268 {
19269 PyThreadState* __tstate = wxPyBeginAllowThreads();
19270 result = (int)((wxDateTime const *)arg1)->GetWeekDay((wxDateTime::TimeZone const &)*arg2);
19271
19272 wxPyEndAllowThreads(__tstate);
19273 if (PyErr_Occurred()) SWIG_fail;
19274 }
19275 resultobj = SWIG_FromInt((int)result);
19276 {
19277 if (temp2) delete arg2;
19278 }
19279 return resultobj;
19280 fail:
19281 {
19282 if (temp2) delete arg2;
19283 }
19284 return NULL;
19285 }
19286
19287
19288 static PyObject *_wrap_DateTime_GetHour(PyObject *self, PyObject *args, PyObject *kwargs) {
19289 PyObject *resultobj;
19290 wxDateTime *arg1 = (wxDateTime *) 0 ;
19291 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19292 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19293 int result;
19294 bool temp2 = False ;
19295 PyObject * obj0 = 0 ;
19296 PyObject * obj1 = 0 ;
19297 char *kwnames[] = {
19298 (char *) "self",(char *) "tz", NULL
19299 };
19300
19301 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetHour",kwnames,&obj0,&obj1)) goto fail;
19302 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19303 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19304 if (obj1) {
19305 {
19306 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19307 temp2 = True;
19308 }
19309 }
19310 {
19311 PyThreadState* __tstate = wxPyBeginAllowThreads();
19312 result = (int)((wxDateTime const *)arg1)->GetHour((wxDateTime::TimeZone const &)*arg2);
19313
19314 wxPyEndAllowThreads(__tstate);
19315 if (PyErr_Occurred()) SWIG_fail;
19316 }
19317 resultobj = SWIG_FromInt((int)result);
19318 {
19319 if (temp2) delete arg2;
19320 }
19321 return resultobj;
19322 fail:
19323 {
19324 if (temp2) delete arg2;
19325 }
19326 return NULL;
19327 }
19328
19329
19330 static PyObject *_wrap_DateTime_GetMinute(PyObject *self, PyObject *args, PyObject *kwargs) {
19331 PyObject *resultobj;
19332 wxDateTime *arg1 = (wxDateTime *) 0 ;
19333 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19334 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19335 int result;
19336 bool temp2 = False ;
19337 PyObject * obj0 = 0 ;
19338 PyObject * obj1 = 0 ;
19339 char *kwnames[] = {
19340 (char *) "self",(char *) "tz", NULL
19341 };
19342
19343 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMinute",kwnames,&obj0,&obj1)) goto fail;
19344 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19345 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19346 if (obj1) {
19347 {
19348 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19349 temp2 = True;
19350 }
19351 }
19352 {
19353 PyThreadState* __tstate = wxPyBeginAllowThreads();
19354 result = (int)((wxDateTime const *)arg1)->GetMinute((wxDateTime::TimeZone const &)*arg2);
19355
19356 wxPyEndAllowThreads(__tstate);
19357 if (PyErr_Occurred()) SWIG_fail;
19358 }
19359 resultobj = SWIG_FromInt((int)result);
19360 {
19361 if (temp2) delete arg2;
19362 }
19363 return resultobj;
19364 fail:
19365 {
19366 if (temp2) delete arg2;
19367 }
19368 return NULL;
19369 }
19370
19371
19372 static PyObject *_wrap_DateTime_GetSecond(PyObject *self, PyObject *args, PyObject *kwargs) {
19373 PyObject *resultobj;
19374 wxDateTime *arg1 = (wxDateTime *) 0 ;
19375 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19376 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19377 int result;
19378 bool temp2 = False ;
19379 PyObject * obj0 = 0 ;
19380 PyObject * obj1 = 0 ;
19381 char *kwnames[] = {
19382 (char *) "self",(char *) "tz", NULL
19383 };
19384
19385 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetSecond",kwnames,&obj0,&obj1)) goto fail;
19386 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19387 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19388 if (obj1) {
19389 {
19390 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19391 temp2 = True;
19392 }
19393 }
19394 {
19395 PyThreadState* __tstate = wxPyBeginAllowThreads();
19396 result = (int)((wxDateTime const *)arg1)->GetSecond((wxDateTime::TimeZone const &)*arg2);
19397
19398 wxPyEndAllowThreads(__tstate);
19399 if (PyErr_Occurred()) SWIG_fail;
19400 }
19401 resultobj = SWIG_FromInt((int)result);
19402 {
19403 if (temp2) delete arg2;
19404 }
19405 return resultobj;
19406 fail:
19407 {
19408 if (temp2) delete arg2;
19409 }
19410 return NULL;
19411 }
19412
19413
19414 static PyObject *_wrap_DateTime_GetMillisecond(PyObject *self, PyObject *args, PyObject *kwargs) {
19415 PyObject *resultobj;
19416 wxDateTime *arg1 = (wxDateTime *) 0 ;
19417 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19418 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19419 int result;
19420 bool temp2 = False ;
19421 PyObject * obj0 = 0 ;
19422 PyObject * obj1 = 0 ;
19423 char *kwnames[] = {
19424 (char *) "self",(char *) "tz", NULL
19425 };
19426
19427 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMillisecond",kwnames,&obj0,&obj1)) goto fail;
19428 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19429 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19430 if (obj1) {
19431 {
19432 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19433 temp2 = True;
19434 }
19435 }
19436 {
19437 PyThreadState* __tstate = wxPyBeginAllowThreads();
19438 result = (int)((wxDateTime const *)arg1)->GetMillisecond((wxDateTime::TimeZone const &)*arg2);
19439
19440 wxPyEndAllowThreads(__tstate);
19441 if (PyErr_Occurred()) SWIG_fail;
19442 }
19443 resultobj = SWIG_FromInt((int)result);
19444 {
19445 if (temp2) delete arg2;
19446 }
19447 return resultobj;
19448 fail:
19449 {
19450 if (temp2) delete arg2;
19451 }
19452 return NULL;
19453 }
19454
19455
19456 static PyObject *_wrap_DateTime_GetDayOfYear(PyObject *self, PyObject *args, PyObject *kwargs) {
19457 PyObject *resultobj;
19458 wxDateTime *arg1 = (wxDateTime *) 0 ;
19459 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19460 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19461 int result;
19462 bool temp2 = False ;
19463 PyObject * obj0 = 0 ;
19464 PyObject * obj1 = 0 ;
19465 char *kwnames[] = {
19466 (char *) "self",(char *) "tz", NULL
19467 };
19468
19469 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetDayOfYear",kwnames,&obj0,&obj1)) goto fail;
19470 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19471 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19472 if (obj1) {
19473 {
19474 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19475 temp2 = True;
19476 }
19477 }
19478 {
19479 PyThreadState* __tstate = wxPyBeginAllowThreads();
19480 result = (int)((wxDateTime const *)arg1)->GetDayOfYear((wxDateTime::TimeZone const &)*arg2);
19481
19482 wxPyEndAllowThreads(__tstate);
19483 if (PyErr_Occurred()) SWIG_fail;
19484 }
19485 resultobj = SWIG_FromInt((int)result);
19486 {
19487 if (temp2) delete arg2;
19488 }
19489 return resultobj;
19490 fail:
19491 {
19492 if (temp2) delete arg2;
19493 }
19494 return NULL;
19495 }
19496
19497
19498 static PyObject *_wrap_DateTime_GetWeekOfYear(PyObject *self, PyObject *args, PyObject *kwargs) {
19499 PyObject *resultobj;
19500 wxDateTime *arg1 = (wxDateTime *) 0 ;
19501 int arg2 = (int) wxDateTime::Monday_First ;
19502 wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ;
19503 wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ;
19504 int result;
19505 bool temp3 = False ;
19506 PyObject * obj0 = 0 ;
19507 PyObject * obj1 = 0 ;
19508 PyObject * obj2 = 0 ;
19509 char *kwnames[] = {
19510 (char *) "self",(char *) "flags",(char *) "tz", NULL
19511 };
19512
19513 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetWeekOfYear",kwnames,&obj0,&obj1,&obj2)) goto fail;
19514 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19515 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19516 if (obj1) {
19517 arg2 = (wxDateTime::WeekFlags) SWIG_AsInt(obj1);
19518 if (PyErr_Occurred()) SWIG_fail;
19519 }
19520 if (obj2) {
19521 {
19522 arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2));
19523 temp3 = True;
19524 }
19525 }
19526 {
19527 PyThreadState* __tstate = wxPyBeginAllowThreads();
19528 result = (int)((wxDateTime const *)arg1)->GetWeekOfYear((wxDateTime::WeekFlags )arg2,(wxDateTime::TimeZone const &)*arg3);
19529
19530 wxPyEndAllowThreads(__tstate);
19531 if (PyErr_Occurred()) SWIG_fail;
19532 }
19533 resultobj = SWIG_FromInt((int)result);
19534 {
19535 if (temp3) delete arg3;
19536 }
19537 return resultobj;
19538 fail:
19539 {
19540 if (temp3) delete arg3;
19541 }
19542 return NULL;
19543 }
19544
19545
19546 static PyObject *_wrap_DateTime_GetWeekOfMonth(PyObject *self, PyObject *args, PyObject *kwargs) {
19547 PyObject *resultobj;
19548 wxDateTime *arg1 = (wxDateTime *) 0 ;
19549 int arg2 = (int) wxDateTime::Monday_First ;
19550 wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ;
19551 wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ;
19552 int result;
19553 bool temp3 = False ;
19554 PyObject * obj0 = 0 ;
19555 PyObject * obj1 = 0 ;
19556 PyObject * obj2 = 0 ;
19557 char *kwnames[] = {
19558 (char *) "self",(char *) "flags",(char *) "tz", NULL
19559 };
19560
19561 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetWeekOfMonth",kwnames,&obj0,&obj1,&obj2)) goto fail;
19562 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19563 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19564 if (obj1) {
19565 arg2 = (wxDateTime::WeekFlags) SWIG_AsInt(obj1);
19566 if (PyErr_Occurred()) SWIG_fail;
19567 }
19568 if (obj2) {
19569 {
19570 arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2));
19571 temp3 = True;
19572 }
19573 }
19574 {
19575 PyThreadState* __tstate = wxPyBeginAllowThreads();
19576 result = (int)((wxDateTime const *)arg1)->GetWeekOfMonth((wxDateTime::WeekFlags )arg2,(wxDateTime::TimeZone const &)*arg3);
19577
19578 wxPyEndAllowThreads(__tstate);
19579 if (PyErr_Occurred()) SWIG_fail;
19580 }
19581 resultobj = SWIG_FromInt((int)result);
19582 {
19583 if (temp3) delete arg3;
19584 }
19585 return resultobj;
19586 fail:
19587 {
19588 if (temp3) delete arg3;
19589 }
19590 return NULL;
19591 }
19592
19593
19594 static PyObject *_wrap_DateTime_IsWorkDay(PyObject *self, PyObject *args, PyObject *kwargs) {
19595 PyObject *resultobj;
19596 wxDateTime *arg1 = (wxDateTime *) 0 ;
19597 int arg2 = (int) wxDateTime::Country_Default ;
19598 bool result;
19599 PyObject * obj0 = 0 ;
19600 PyObject * obj1 = 0 ;
19601 char *kwnames[] = {
19602 (char *) "self",(char *) "country", NULL
19603 };
19604
19605 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_IsWorkDay",kwnames,&obj0,&obj1)) goto fail;
19606 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19607 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19608 if (obj1) {
19609 arg2 = (wxDateTime::Country) SWIG_AsInt(obj1);
19610 if (PyErr_Occurred()) SWIG_fail;
19611 }
19612 {
19613 PyThreadState* __tstate = wxPyBeginAllowThreads();
19614 result = (bool)((wxDateTime const *)arg1)->IsWorkDay((wxDateTime::Country )arg2);
19615
19616 wxPyEndAllowThreads(__tstate);
19617 if (PyErr_Occurred()) SWIG_fail;
19618 }
19619 {
19620 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19621 }
19622 return resultobj;
19623 fail:
19624 return NULL;
19625 }
19626
19627
19628 static PyObject *_wrap_DateTime_IsEqualTo(PyObject *self, PyObject *args, PyObject *kwargs) {
19629 PyObject *resultobj;
19630 wxDateTime *arg1 = (wxDateTime *) 0 ;
19631 wxDateTime *arg2 = 0 ;
19632 bool result;
19633 PyObject * obj0 = 0 ;
19634 PyObject * obj1 = 0 ;
19635 char *kwnames[] = {
19636 (char *) "self",(char *) "datetime", NULL
19637 };
19638
19639 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsEqualTo",kwnames,&obj0,&obj1)) goto fail;
19640 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19641 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19642 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19643 SWIG_POINTER_EXCEPTION | 0)) == -1)
19644 SWIG_fail;
19645 if (arg2 == NULL) {
19646 PyErr_SetString(PyExc_TypeError,"null reference");
19647 SWIG_fail;
19648 }
19649 {
19650 PyThreadState* __tstate = wxPyBeginAllowThreads();
19651 result = (bool)((wxDateTime const *)arg1)->IsEqualTo((wxDateTime const &)*arg2);
19652
19653 wxPyEndAllowThreads(__tstate);
19654 if (PyErr_Occurred()) SWIG_fail;
19655 }
19656 {
19657 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19658 }
19659 return resultobj;
19660 fail:
19661 return NULL;
19662 }
19663
19664
19665 static PyObject *_wrap_DateTime_IsEarlierThan(PyObject *self, PyObject *args, PyObject *kwargs) {
19666 PyObject *resultobj;
19667 wxDateTime *arg1 = (wxDateTime *) 0 ;
19668 wxDateTime *arg2 = 0 ;
19669 bool result;
19670 PyObject * obj0 = 0 ;
19671 PyObject * obj1 = 0 ;
19672 char *kwnames[] = {
19673 (char *) "self",(char *) "datetime", NULL
19674 };
19675
19676 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsEarlierThan",kwnames,&obj0,&obj1)) goto fail;
19677 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19678 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19679 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19680 SWIG_POINTER_EXCEPTION | 0)) == -1)
19681 SWIG_fail;
19682 if (arg2 == NULL) {
19683 PyErr_SetString(PyExc_TypeError,"null reference");
19684 SWIG_fail;
19685 }
19686 {
19687 PyThreadState* __tstate = wxPyBeginAllowThreads();
19688 result = (bool)((wxDateTime const *)arg1)->IsEarlierThan((wxDateTime const &)*arg2);
19689
19690 wxPyEndAllowThreads(__tstate);
19691 if (PyErr_Occurred()) SWIG_fail;
19692 }
19693 {
19694 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19695 }
19696 return resultobj;
19697 fail:
19698 return NULL;
19699 }
19700
19701
19702 static PyObject *_wrap_DateTime_IsLaterThan(PyObject *self, PyObject *args, PyObject *kwargs) {
19703 PyObject *resultobj;
19704 wxDateTime *arg1 = (wxDateTime *) 0 ;
19705 wxDateTime *arg2 = 0 ;
19706 bool result;
19707 PyObject * obj0 = 0 ;
19708 PyObject * obj1 = 0 ;
19709 char *kwnames[] = {
19710 (char *) "self",(char *) "datetime", NULL
19711 };
19712
19713 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsLaterThan",kwnames,&obj0,&obj1)) goto fail;
19714 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19715 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19716 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19717 SWIG_POINTER_EXCEPTION | 0)) == -1)
19718 SWIG_fail;
19719 if (arg2 == NULL) {
19720 PyErr_SetString(PyExc_TypeError,"null reference");
19721 SWIG_fail;
19722 }
19723 {
19724 PyThreadState* __tstate = wxPyBeginAllowThreads();
19725 result = (bool)((wxDateTime const *)arg1)->IsLaterThan((wxDateTime const &)*arg2);
19726
19727 wxPyEndAllowThreads(__tstate);
19728 if (PyErr_Occurred()) SWIG_fail;
19729 }
19730 {
19731 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19732 }
19733 return resultobj;
19734 fail:
19735 return NULL;
19736 }
19737
19738
19739 static PyObject *_wrap_DateTime_IsStrictlyBetween(PyObject *self, PyObject *args, PyObject *kwargs) {
19740 PyObject *resultobj;
19741 wxDateTime *arg1 = (wxDateTime *) 0 ;
19742 wxDateTime *arg2 = 0 ;
19743 wxDateTime *arg3 = 0 ;
19744 bool result;
19745 PyObject * obj0 = 0 ;
19746 PyObject * obj1 = 0 ;
19747 PyObject * obj2 = 0 ;
19748 char *kwnames[] = {
19749 (char *) "self",(char *) "t1",(char *) "t2", NULL
19750 };
19751
19752 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsStrictlyBetween",kwnames,&obj0,&obj1,&obj2)) goto fail;
19753 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19754 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19755 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19756 SWIG_POINTER_EXCEPTION | 0)) == -1)
19757 SWIG_fail;
19758 if (arg2 == NULL) {
19759 PyErr_SetString(PyExc_TypeError,"null reference");
19760 SWIG_fail;
19761 }
19762 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDateTime,
19763 SWIG_POINTER_EXCEPTION | 0)) == -1)
19764 SWIG_fail;
19765 if (arg3 == NULL) {
19766 PyErr_SetString(PyExc_TypeError,"null reference");
19767 SWIG_fail;
19768 }
19769 {
19770 PyThreadState* __tstate = wxPyBeginAllowThreads();
19771 result = (bool)((wxDateTime const *)arg1)->IsStrictlyBetween((wxDateTime const &)*arg2,(wxDateTime const &)*arg3);
19772
19773 wxPyEndAllowThreads(__tstate);
19774 if (PyErr_Occurred()) SWIG_fail;
19775 }
19776 {
19777 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19778 }
19779 return resultobj;
19780 fail:
19781 return NULL;
19782 }
19783
19784
19785 static PyObject *_wrap_DateTime_IsBetween(PyObject *self, PyObject *args, PyObject *kwargs) {
19786 PyObject *resultobj;
19787 wxDateTime *arg1 = (wxDateTime *) 0 ;
19788 wxDateTime *arg2 = 0 ;
19789 wxDateTime *arg3 = 0 ;
19790 bool result;
19791 PyObject * obj0 = 0 ;
19792 PyObject * obj1 = 0 ;
19793 PyObject * obj2 = 0 ;
19794 char *kwnames[] = {
19795 (char *) "self",(char *) "t1",(char *) "t2", NULL
19796 };
19797
19798 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsBetween",kwnames,&obj0,&obj1,&obj2)) goto fail;
19799 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19800 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19801 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19802 SWIG_POINTER_EXCEPTION | 0)) == -1)
19803 SWIG_fail;
19804 if (arg2 == NULL) {
19805 PyErr_SetString(PyExc_TypeError,"null reference");
19806 SWIG_fail;
19807 }
19808 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDateTime,
19809 SWIG_POINTER_EXCEPTION | 0)) == -1)
19810 SWIG_fail;
19811 if (arg3 == NULL) {
19812 PyErr_SetString(PyExc_TypeError,"null reference");
19813 SWIG_fail;
19814 }
19815 {
19816 PyThreadState* __tstate = wxPyBeginAllowThreads();
19817 result = (bool)((wxDateTime const *)arg1)->IsBetween((wxDateTime const &)*arg2,(wxDateTime const &)*arg3);
19818
19819 wxPyEndAllowThreads(__tstate);
19820 if (PyErr_Occurred()) SWIG_fail;
19821 }
19822 {
19823 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19824 }
19825 return resultobj;
19826 fail:
19827 return NULL;
19828 }
19829
19830
19831 static PyObject *_wrap_DateTime_IsSameDate(PyObject *self, PyObject *args, PyObject *kwargs) {
19832 PyObject *resultobj;
19833 wxDateTime *arg1 = (wxDateTime *) 0 ;
19834 wxDateTime *arg2 = 0 ;
19835 bool result;
19836 PyObject * obj0 = 0 ;
19837 PyObject * obj1 = 0 ;
19838 char *kwnames[] = {
19839 (char *) "self",(char *) "dt", NULL
19840 };
19841
19842 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsSameDate",kwnames,&obj0,&obj1)) goto fail;
19843 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19844 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19845 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19846 SWIG_POINTER_EXCEPTION | 0)) == -1)
19847 SWIG_fail;
19848 if (arg2 == NULL) {
19849 PyErr_SetString(PyExc_TypeError,"null reference");
19850 SWIG_fail;
19851 }
19852 {
19853 PyThreadState* __tstate = wxPyBeginAllowThreads();
19854 result = (bool)((wxDateTime const *)arg1)->IsSameDate((wxDateTime const &)*arg2);
19855
19856 wxPyEndAllowThreads(__tstate);
19857 if (PyErr_Occurred()) SWIG_fail;
19858 }
19859 {
19860 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19861 }
19862 return resultobj;
19863 fail:
19864 return NULL;
19865 }
19866
19867
19868 static PyObject *_wrap_DateTime_IsSameTime(PyObject *self, PyObject *args, PyObject *kwargs) {
19869 PyObject *resultobj;
19870 wxDateTime *arg1 = (wxDateTime *) 0 ;
19871 wxDateTime *arg2 = 0 ;
19872 bool result;
19873 PyObject * obj0 = 0 ;
19874 PyObject * obj1 = 0 ;
19875 char *kwnames[] = {
19876 (char *) "self",(char *) "dt", NULL
19877 };
19878
19879 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsSameTime",kwnames,&obj0,&obj1)) goto fail;
19880 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19881 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19882 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19883 SWIG_POINTER_EXCEPTION | 0)) == -1)
19884 SWIG_fail;
19885 if (arg2 == NULL) {
19886 PyErr_SetString(PyExc_TypeError,"null reference");
19887 SWIG_fail;
19888 }
19889 {
19890 PyThreadState* __tstate = wxPyBeginAllowThreads();
19891 result = (bool)((wxDateTime const *)arg1)->IsSameTime((wxDateTime const &)*arg2);
19892
19893 wxPyEndAllowThreads(__tstate);
19894 if (PyErr_Occurred()) SWIG_fail;
19895 }
19896 {
19897 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19898 }
19899 return resultobj;
19900 fail:
19901 return NULL;
19902 }
19903
19904
19905 static PyObject *_wrap_DateTime_IsEqualUpTo(PyObject *self, PyObject *args, PyObject *kwargs) {
19906 PyObject *resultobj;
19907 wxDateTime *arg1 = (wxDateTime *) 0 ;
19908 wxDateTime *arg2 = 0 ;
19909 wxTimeSpan *arg3 = 0 ;
19910 bool result;
19911 PyObject * obj0 = 0 ;
19912 PyObject * obj1 = 0 ;
19913 PyObject * obj2 = 0 ;
19914 char *kwnames[] = {
19915 (char *) "self",(char *) "dt",(char *) "ts", NULL
19916 };
19917
19918 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsEqualUpTo",kwnames,&obj0,&obj1,&obj2)) goto fail;
19919 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19920 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19921 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19922 SWIG_POINTER_EXCEPTION | 0)) == -1)
19923 SWIG_fail;
19924 if (arg2 == NULL) {
19925 PyErr_SetString(PyExc_TypeError,"null reference");
19926 SWIG_fail;
19927 }
19928 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxTimeSpan,
19929 SWIG_POINTER_EXCEPTION | 0)) == -1)
19930 SWIG_fail;
19931 if (arg3 == NULL) {
19932 PyErr_SetString(PyExc_TypeError,"null reference");
19933 SWIG_fail;
19934 }
19935 {
19936 PyThreadState* __tstate = wxPyBeginAllowThreads();
19937 result = (bool)((wxDateTime const *)arg1)->IsEqualUpTo((wxDateTime const &)*arg2,(wxTimeSpan const &)*arg3);
19938
19939 wxPyEndAllowThreads(__tstate);
19940 if (PyErr_Occurred()) SWIG_fail;
19941 }
19942 {
19943 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19944 }
19945 return resultobj;
19946 fail:
19947 return NULL;
19948 }
19949
19950
19951 static PyObject *_wrap_DateTime_AddTS(PyObject *self, PyObject *args, PyObject *kwargs) {
19952 PyObject *resultobj;
19953 wxDateTime *arg1 = (wxDateTime *) 0 ;
19954 wxTimeSpan *arg2 = 0 ;
19955 wxDateTime *result;
19956 PyObject * obj0 = 0 ;
19957 PyObject * obj1 = 0 ;
19958 char *kwnames[] = {
19959 (char *) "self",(char *) "diff", NULL
19960 };
19961
19962 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_AddTS",kwnames,&obj0,&obj1)) goto fail;
19963 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19964 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19965 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
19966 SWIG_POINTER_EXCEPTION | 0)) == -1)
19967 SWIG_fail;
19968 if (arg2 == NULL) {
19969 PyErr_SetString(PyExc_TypeError,"null reference");
19970 SWIG_fail;
19971 }
19972 {
19973 PyThreadState* __tstate = wxPyBeginAllowThreads();
19974 {
19975 wxDateTime &_result_ref = (arg1)->Add((wxTimeSpan const &)*arg2);
19976 result = (wxDateTime *) &_result_ref;
19977 }
19978
19979 wxPyEndAllowThreads(__tstate);
19980 if (PyErr_Occurred()) SWIG_fail;
19981 }
19982 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
19983 return resultobj;
19984 fail:
19985 return NULL;
19986 }
19987
19988
19989 static PyObject *_wrap_DateTime_AddDS(PyObject *self, PyObject *args, PyObject *kwargs) {
19990 PyObject *resultobj;
19991 wxDateTime *arg1 = (wxDateTime *) 0 ;
19992 wxDateSpan *arg2 = 0 ;
19993 wxDateTime *result;
19994 PyObject * obj0 = 0 ;
19995 PyObject * obj1 = 0 ;
19996 char *kwnames[] = {
19997 (char *) "self",(char *) "diff", NULL
19998 };
19999
20000 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_AddDS",kwnames,&obj0,&obj1)) goto fail;
20001 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20002 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20003 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
20004 SWIG_POINTER_EXCEPTION | 0)) == -1)
20005 SWIG_fail;
20006 if (arg2 == NULL) {
20007 PyErr_SetString(PyExc_TypeError,"null reference");
20008 SWIG_fail;
20009 }
20010 {
20011 PyThreadState* __tstate = wxPyBeginAllowThreads();
20012 {
20013 wxDateTime &_result_ref = (arg1)->Add((wxDateSpan const &)*arg2);
20014 result = (wxDateTime *) &_result_ref;
20015 }
20016
20017 wxPyEndAllowThreads(__tstate);
20018 if (PyErr_Occurred()) SWIG_fail;
20019 }
20020 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
20021 return resultobj;
20022 fail:
20023 return NULL;
20024 }
20025
20026
20027 static PyObject *_wrap_DateTime_SubtractTS(PyObject *self, PyObject *args, PyObject *kwargs) {
20028 PyObject *resultobj;
20029 wxDateTime *arg1 = (wxDateTime *) 0 ;
20030 wxTimeSpan *arg2 = 0 ;
20031 wxDateTime *result;
20032 PyObject * obj0 = 0 ;
20033 PyObject * obj1 = 0 ;
20034 char *kwnames[] = {
20035 (char *) "self",(char *) "diff", NULL
20036 };
20037
20038 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SubtractTS",kwnames,&obj0,&obj1)) goto fail;
20039 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20040 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20041 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
20042 SWIG_POINTER_EXCEPTION | 0)) == -1)
20043 SWIG_fail;
20044 if (arg2 == NULL) {
20045 PyErr_SetString(PyExc_TypeError,"null reference");
20046 SWIG_fail;
20047 }
20048 {
20049 PyThreadState* __tstate = wxPyBeginAllowThreads();
20050 {
20051 wxDateTime &_result_ref = (arg1)->Subtract((wxTimeSpan const &)*arg2);
20052 result = (wxDateTime *) &_result_ref;
20053 }
20054
20055 wxPyEndAllowThreads(__tstate);
20056 if (PyErr_Occurred()) SWIG_fail;
20057 }
20058 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
20059 return resultobj;
20060 fail:
20061 return NULL;
20062 }
20063
20064
20065 static PyObject *_wrap_DateTime_SubtractDS(PyObject *self, PyObject *args, PyObject *kwargs) {
20066 PyObject *resultobj;
20067 wxDateTime *arg1 = (wxDateTime *) 0 ;
20068 wxDateSpan *arg2 = 0 ;
20069 wxDateTime *result;
20070 PyObject * obj0 = 0 ;
20071 PyObject * obj1 = 0 ;
20072 char *kwnames[] = {
20073 (char *) "self",(char *) "diff", NULL
20074 };
20075
20076 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SubtractDS",kwnames,&obj0,&obj1)) goto fail;
20077 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20078 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20079 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
20080 SWIG_POINTER_EXCEPTION | 0)) == -1)
20081 SWIG_fail;
20082 if (arg2 == NULL) {
20083 PyErr_SetString(PyExc_TypeError,"null reference");
20084 SWIG_fail;
20085 }
20086 {
20087 PyThreadState* __tstate = wxPyBeginAllowThreads();
20088 {
20089 wxDateTime &_result_ref = (arg1)->Subtract((wxDateSpan const &)*arg2);
20090 result = (wxDateTime *) &_result_ref;
20091 }
20092
20093 wxPyEndAllowThreads(__tstate);
20094 if (PyErr_Occurred()) SWIG_fail;
20095 }
20096 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
20097 return resultobj;
20098 fail:
20099 return NULL;
20100 }
20101
20102
20103 static PyObject *_wrap_DateTime_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) {
20104 PyObject *resultobj;
20105 wxDateTime *arg1 = (wxDateTime *) 0 ;
20106 wxDateTime *arg2 = 0 ;
20107 wxTimeSpan result;
20108 PyObject * obj0 = 0 ;
20109 PyObject * obj1 = 0 ;
20110 char *kwnames[] = {
20111 (char *) "self",(char *) "dt", NULL
20112 };
20113
20114 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_Subtract",kwnames,&obj0,&obj1)) goto fail;
20115 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20116 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20117 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20118 SWIG_POINTER_EXCEPTION | 0)) == -1)
20119 SWIG_fail;
20120 if (arg2 == NULL) {
20121 PyErr_SetString(PyExc_TypeError,"null reference");
20122 SWIG_fail;
20123 }
20124 {
20125 PyThreadState* __tstate = wxPyBeginAllowThreads();
20126 result = ((wxDateTime const *)arg1)->Subtract((wxDateTime const &)*arg2);
20127
20128 wxPyEndAllowThreads(__tstate);
20129 if (PyErr_Occurred()) SWIG_fail;
20130 }
20131 {
20132 wxTimeSpan * resultptr;
20133 resultptr = new wxTimeSpan((wxTimeSpan &) result);
20134 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
20135 }
20136 return resultobj;
20137 fail:
20138 return NULL;
20139 }
20140
20141
20142 static PyObject *_wrap_DateTime___iadd____SWIG_0(PyObject *self, PyObject *args) {
20143 PyObject *resultobj;
20144 wxDateTime *arg1 = (wxDateTime *) 0 ;
20145 wxTimeSpan *arg2 = 0 ;
20146 wxDateTime *result;
20147 PyObject * obj0 = 0 ;
20148 PyObject * obj1 = 0 ;
20149
20150 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___iadd__",&obj0,&obj1)) goto fail;
20151 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20152 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20153 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
20154 SWIG_POINTER_EXCEPTION | 0)) == -1)
20155 SWIG_fail;
20156 if (arg2 == NULL) {
20157 PyErr_SetString(PyExc_TypeError,"null reference");
20158 SWIG_fail;
20159 }
20160 {
20161 PyThreadState* __tstate = wxPyBeginAllowThreads();
20162 {
20163 wxDateTime &_result_ref = (arg1)->operator +=((wxTimeSpan const &)*arg2);
20164 result = (wxDateTime *) &_result_ref;
20165 }
20166
20167 wxPyEndAllowThreads(__tstate);
20168 if (PyErr_Occurred()) SWIG_fail;
20169 }
20170 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
20171 return resultobj;
20172 fail:
20173 return NULL;
20174 }
20175
20176
20177 static PyObject *_wrap_DateTime___iadd____SWIG_1(PyObject *self, PyObject *args) {
20178 PyObject *resultobj;
20179 wxDateTime *arg1 = (wxDateTime *) 0 ;
20180 wxDateSpan *arg2 = 0 ;
20181 wxDateTime *result;
20182 PyObject * obj0 = 0 ;
20183 PyObject * obj1 = 0 ;
20184
20185 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___iadd__",&obj0,&obj1)) goto fail;
20186 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20187 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20188 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
20189 SWIG_POINTER_EXCEPTION | 0)) == -1)
20190 SWIG_fail;
20191 if (arg2 == NULL) {
20192 PyErr_SetString(PyExc_TypeError,"null reference");
20193 SWIG_fail;
20194 }
20195 {
20196 PyThreadState* __tstate = wxPyBeginAllowThreads();
20197 {
20198 wxDateTime &_result_ref = (arg1)->operator +=((wxDateSpan const &)*arg2);
20199 result = (wxDateTime *) &_result_ref;
20200 }
20201
20202 wxPyEndAllowThreads(__tstate);
20203 if (PyErr_Occurred()) SWIG_fail;
20204 }
20205 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
20206 return resultobj;
20207 fail:
20208 return NULL;
20209 }
20210
20211
20212 static PyObject *_wrap_DateTime___iadd__(PyObject *self, PyObject *args) {
20213 int argc;
20214 PyObject *argv[3];
20215 int ii;
20216
20217 argc = PyObject_Length(args);
20218 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
20219 argv[ii] = PyTuple_GetItem(args,ii);
20220 }
20221 if (argc == 2) {
20222 int _v;
20223 {
20224 void *ptr;
20225 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20226 _v = 0;
20227 PyErr_Clear();
20228 } else {
20229 _v = 1;
20230 }
20231 }
20232 if (_v) {
20233 {
20234 void *ptr;
20235 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) {
20236 _v = 0;
20237 PyErr_Clear();
20238 } else {
20239 _v = 1;
20240 }
20241 }
20242 if (_v) {
20243 return _wrap_DateTime___iadd____SWIG_0(self,args);
20244 }
20245 }
20246 }
20247 if (argc == 2) {
20248 int _v;
20249 {
20250 void *ptr;
20251 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20252 _v = 0;
20253 PyErr_Clear();
20254 } else {
20255 _v = 1;
20256 }
20257 }
20258 if (_v) {
20259 {
20260 void *ptr;
20261 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) {
20262 _v = 0;
20263 PyErr_Clear();
20264 } else {
20265 _v = 1;
20266 }
20267 }
20268 if (_v) {
20269 return _wrap_DateTime___iadd____SWIG_1(self,args);
20270 }
20271 }
20272 }
20273
20274 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___iadd__'");
20275 return NULL;
20276 }
20277
20278
20279 static PyObject *_wrap_DateTime___isub____SWIG_0(PyObject *self, PyObject *args) {
20280 PyObject *resultobj;
20281 wxDateTime *arg1 = (wxDateTime *) 0 ;
20282 wxTimeSpan *arg2 = 0 ;
20283 wxDateTime *result;
20284 PyObject * obj0 = 0 ;
20285 PyObject * obj1 = 0 ;
20286
20287 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___isub__",&obj0,&obj1)) goto fail;
20288 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20289 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20290 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
20291 SWIG_POINTER_EXCEPTION | 0)) == -1)
20292 SWIG_fail;
20293 if (arg2 == NULL) {
20294 PyErr_SetString(PyExc_TypeError,"null reference");
20295 SWIG_fail;
20296 }
20297 {
20298 PyThreadState* __tstate = wxPyBeginAllowThreads();
20299 {
20300 wxDateTime &_result_ref = (arg1)->operator -=((wxTimeSpan const &)*arg2);
20301 result = (wxDateTime *) &_result_ref;
20302 }
20303
20304 wxPyEndAllowThreads(__tstate);
20305 if (PyErr_Occurred()) SWIG_fail;
20306 }
20307 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
20308 return resultobj;
20309 fail:
20310 return NULL;
20311 }
20312
20313
20314 static PyObject *_wrap_DateTime___isub____SWIG_1(PyObject *self, PyObject *args) {
20315 PyObject *resultobj;
20316 wxDateTime *arg1 = (wxDateTime *) 0 ;
20317 wxDateSpan *arg2 = 0 ;
20318 wxDateTime *result;
20319 PyObject * obj0 = 0 ;
20320 PyObject * obj1 = 0 ;
20321
20322 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___isub__",&obj0,&obj1)) goto fail;
20323 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20324 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20325 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
20326 SWIG_POINTER_EXCEPTION | 0)) == -1)
20327 SWIG_fail;
20328 if (arg2 == NULL) {
20329 PyErr_SetString(PyExc_TypeError,"null reference");
20330 SWIG_fail;
20331 }
20332 {
20333 PyThreadState* __tstate = wxPyBeginAllowThreads();
20334 {
20335 wxDateTime &_result_ref = (arg1)->operator -=((wxDateSpan const &)*arg2);
20336 result = (wxDateTime *) &_result_ref;
20337 }
20338
20339 wxPyEndAllowThreads(__tstate);
20340 if (PyErr_Occurred()) SWIG_fail;
20341 }
20342 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
20343 return resultobj;
20344 fail:
20345 return NULL;
20346 }
20347
20348
20349 static PyObject *_wrap_DateTime___isub__(PyObject *self, PyObject *args) {
20350 int argc;
20351 PyObject *argv[3];
20352 int ii;
20353
20354 argc = PyObject_Length(args);
20355 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
20356 argv[ii] = PyTuple_GetItem(args,ii);
20357 }
20358 if (argc == 2) {
20359 int _v;
20360 {
20361 void *ptr;
20362 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20363 _v = 0;
20364 PyErr_Clear();
20365 } else {
20366 _v = 1;
20367 }
20368 }
20369 if (_v) {
20370 {
20371 void *ptr;
20372 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) {
20373 _v = 0;
20374 PyErr_Clear();
20375 } else {
20376 _v = 1;
20377 }
20378 }
20379 if (_v) {
20380 return _wrap_DateTime___isub____SWIG_0(self,args);
20381 }
20382 }
20383 }
20384 if (argc == 2) {
20385 int _v;
20386 {
20387 void *ptr;
20388 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20389 _v = 0;
20390 PyErr_Clear();
20391 } else {
20392 _v = 1;
20393 }
20394 }
20395 if (_v) {
20396 {
20397 void *ptr;
20398 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) {
20399 _v = 0;
20400 PyErr_Clear();
20401 } else {
20402 _v = 1;
20403 }
20404 }
20405 if (_v) {
20406 return _wrap_DateTime___isub____SWIG_1(self,args);
20407 }
20408 }
20409 }
20410
20411 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___isub__'");
20412 return NULL;
20413 }
20414
20415
20416 static PyObject *_wrap_DateTime___add____SWIG_0(PyObject *self, PyObject *args) {
20417 PyObject *resultobj;
20418 wxDateTime *arg1 = (wxDateTime *) 0 ;
20419 wxTimeSpan *arg2 = 0 ;
20420 wxDateTime result;
20421 PyObject * obj0 = 0 ;
20422 PyObject * obj1 = 0 ;
20423
20424 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___add__",&obj0,&obj1)) goto fail;
20425 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20426 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20427 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
20428 SWIG_POINTER_EXCEPTION | 0)) == -1)
20429 SWIG_fail;
20430 if (arg2 == NULL) {
20431 PyErr_SetString(PyExc_TypeError,"null reference");
20432 SWIG_fail;
20433 }
20434 {
20435 PyThreadState* __tstate = wxPyBeginAllowThreads();
20436 result = wxDateTime___add____SWIG_0(arg1,(wxTimeSpan const &)*arg2);
20437
20438 wxPyEndAllowThreads(__tstate);
20439 if (PyErr_Occurred()) SWIG_fail;
20440 }
20441 {
20442 wxDateTime * resultptr;
20443 resultptr = new wxDateTime((wxDateTime &) result);
20444 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
20445 }
20446 return resultobj;
20447 fail:
20448 return NULL;
20449 }
20450
20451
20452 static PyObject *_wrap_DateTime___add____SWIG_1(PyObject *self, PyObject *args) {
20453 PyObject *resultobj;
20454 wxDateTime *arg1 = (wxDateTime *) 0 ;
20455 wxDateSpan *arg2 = 0 ;
20456 wxDateTime result;
20457 PyObject * obj0 = 0 ;
20458 PyObject * obj1 = 0 ;
20459
20460 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___add__",&obj0,&obj1)) goto fail;
20461 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20462 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20463 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
20464 SWIG_POINTER_EXCEPTION | 0)) == -1)
20465 SWIG_fail;
20466 if (arg2 == NULL) {
20467 PyErr_SetString(PyExc_TypeError,"null reference");
20468 SWIG_fail;
20469 }
20470 {
20471 PyThreadState* __tstate = wxPyBeginAllowThreads();
20472 result = wxDateTime___add____SWIG_1(arg1,(wxDateSpan const &)*arg2);
20473
20474 wxPyEndAllowThreads(__tstate);
20475 if (PyErr_Occurred()) SWIG_fail;
20476 }
20477 {
20478 wxDateTime * resultptr;
20479 resultptr = new wxDateTime((wxDateTime &) result);
20480 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
20481 }
20482 return resultobj;
20483 fail:
20484 return NULL;
20485 }
20486
20487
20488 static PyObject *_wrap_DateTime___add__(PyObject *self, PyObject *args) {
20489 int argc;
20490 PyObject *argv[3];
20491 int ii;
20492
20493 argc = PyObject_Length(args);
20494 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
20495 argv[ii] = PyTuple_GetItem(args,ii);
20496 }
20497 if (argc == 2) {
20498 int _v;
20499 {
20500 void *ptr;
20501 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20502 _v = 0;
20503 PyErr_Clear();
20504 } else {
20505 _v = 1;
20506 }
20507 }
20508 if (_v) {
20509 {
20510 void *ptr;
20511 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) {
20512 _v = 0;
20513 PyErr_Clear();
20514 } else {
20515 _v = 1;
20516 }
20517 }
20518 if (_v) {
20519 return _wrap_DateTime___add____SWIG_0(self,args);
20520 }
20521 }
20522 }
20523 if (argc == 2) {
20524 int _v;
20525 {
20526 void *ptr;
20527 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20528 _v = 0;
20529 PyErr_Clear();
20530 } else {
20531 _v = 1;
20532 }
20533 }
20534 if (_v) {
20535 {
20536 void *ptr;
20537 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) {
20538 _v = 0;
20539 PyErr_Clear();
20540 } else {
20541 _v = 1;
20542 }
20543 }
20544 if (_v) {
20545 return _wrap_DateTime___add____SWIG_1(self,args);
20546 }
20547 }
20548 }
20549
20550 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___add__'");
20551 return NULL;
20552 }
20553
20554
20555 static PyObject *_wrap_DateTime___sub____SWIG_0(PyObject *self, PyObject *args) {
20556 PyObject *resultobj;
20557 wxDateTime *arg1 = (wxDateTime *) 0 ;
20558 wxDateTime *arg2 = 0 ;
20559 wxTimeSpan result;
20560 PyObject * obj0 = 0 ;
20561 PyObject * obj1 = 0 ;
20562
20563 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail;
20564 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20565 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20566 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20567 SWIG_POINTER_EXCEPTION | 0)) == -1)
20568 SWIG_fail;
20569 if (arg2 == NULL) {
20570 PyErr_SetString(PyExc_TypeError,"null reference");
20571 SWIG_fail;
20572 }
20573 {
20574 PyThreadState* __tstate = wxPyBeginAllowThreads();
20575 result = wxDateTime___sub____SWIG_0(arg1,(wxDateTime const &)*arg2);
20576
20577 wxPyEndAllowThreads(__tstate);
20578 if (PyErr_Occurred()) SWIG_fail;
20579 }
20580 {
20581 wxTimeSpan * resultptr;
20582 resultptr = new wxTimeSpan((wxTimeSpan &) result);
20583 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
20584 }
20585 return resultobj;
20586 fail:
20587 return NULL;
20588 }
20589
20590
20591 static PyObject *_wrap_DateTime___sub____SWIG_1(PyObject *self, PyObject *args) {
20592 PyObject *resultobj;
20593 wxDateTime *arg1 = (wxDateTime *) 0 ;
20594 wxTimeSpan *arg2 = 0 ;
20595 wxDateTime result;
20596 PyObject * obj0 = 0 ;
20597 PyObject * obj1 = 0 ;
20598
20599 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail;
20600 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20601 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20602 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
20603 SWIG_POINTER_EXCEPTION | 0)) == -1)
20604 SWIG_fail;
20605 if (arg2 == NULL) {
20606 PyErr_SetString(PyExc_TypeError,"null reference");
20607 SWIG_fail;
20608 }
20609 {
20610 PyThreadState* __tstate = wxPyBeginAllowThreads();
20611 result = wxDateTime___sub____SWIG_1(arg1,(wxTimeSpan const &)*arg2);
20612
20613 wxPyEndAllowThreads(__tstate);
20614 if (PyErr_Occurred()) SWIG_fail;
20615 }
20616 {
20617 wxDateTime * resultptr;
20618 resultptr = new wxDateTime((wxDateTime &) result);
20619 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
20620 }
20621 return resultobj;
20622 fail:
20623 return NULL;
20624 }
20625
20626
20627 static PyObject *_wrap_DateTime___sub____SWIG_2(PyObject *self, PyObject *args) {
20628 PyObject *resultobj;
20629 wxDateTime *arg1 = (wxDateTime *) 0 ;
20630 wxDateSpan *arg2 = 0 ;
20631 wxDateTime result;
20632 PyObject * obj0 = 0 ;
20633 PyObject * obj1 = 0 ;
20634
20635 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail;
20636 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20637 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20638 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
20639 SWIG_POINTER_EXCEPTION | 0)) == -1)
20640 SWIG_fail;
20641 if (arg2 == NULL) {
20642 PyErr_SetString(PyExc_TypeError,"null reference");
20643 SWIG_fail;
20644 }
20645 {
20646 PyThreadState* __tstate = wxPyBeginAllowThreads();
20647 result = wxDateTime___sub____SWIG_2(arg1,(wxDateSpan const &)*arg2);
20648
20649 wxPyEndAllowThreads(__tstate);
20650 if (PyErr_Occurred()) SWIG_fail;
20651 }
20652 {
20653 wxDateTime * resultptr;
20654 resultptr = new wxDateTime((wxDateTime &) result);
20655 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
20656 }
20657 return resultobj;
20658 fail:
20659 return NULL;
20660 }
20661
20662
20663 static PyObject *_wrap_DateTime___sub__(PyObject *self, PyObject *args) {
20664 int argc;
20665 PyObject *argv[3];
20666 int ii;
20667
20668 argc = PyObject_Length(args);
20669 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
20670 argv[ii] = PyTuple_GetItem(args,ii);
20671 }
20672 if (argc == 2) {
20673 int _v;
20674 {
20675 void *ptr;
20676 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20677 _v = 0;
20678 PyErr_Clear();
20679 } else {
20680 _v = 1;
20681 }
20682 }
20683 if (_v) {
20684 {
20685 void *ptr;
20686 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20687 _v = 0;
20688 PyErr_Clear();
20689 } else {
20690 _v = 1;
20691 }
20692 }
20693 if (_v) {
20694 return _wrap_DateTime___sub____SWIG_0(self,args);
20695 }
20696 }
20697 }
20698 if (argc == 2) {
20699 int _v;
20700 {
20701 void *ptr;
20702 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20703 _v = 0;
20704 PyErr_Clear();
20705 } else {
20706 _v = 1;
20707 }
20708 }
20709 if (_v) {
20710 {
20711 void *ptr;
20712 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) {
20713 _v = 0;
20714 PyErr_Clear();
20715 } else {
20716 _v = 1;
20717 }
20718 }
20719 if (_v) {
20720 return _wrap_DateTime___sub____SWIG_1(self,args);
20721 }
20722 }
20723 }
20724 if (argc == 2) {
20725 int _v;
20726 {
20727 void *ptr;
20728 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20729 _v = 0;
20730 PyErr_Clear();
20731 } else {
20732 _v = 1;
20733 }
20734 }
20735 if (_v) {
20736 {
20737 void *ptr;
20738 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) {
20739 _v = 0;
20740 PyErr_Clear();
20741 } else {
20742 _v = 1;
20743 }
20744 }
20745 if (_v) {
20746 return _wrap_DateTime___sub____SWIG_2(self,args);
20747 }
20748 }
20749 }
20750
20751 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___sub__'");
20752 return NULL;
20753 }
20754
20755
20756 static PyObject *_wrap_DateTime___lt__(PyObject *self, PyObject *args) {
20757 PyObject *resultobj;
20758 wxDateTime *arg1 = (wxDateTime *) 0 ;
20759 wxDateTime *arg2 = (wxDateTime *) 0 ;
20760 bool result;
20761 PyObject * obj0 = 0 ;
20762 PyObject * obj1 = 0 ;
20763
20764 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___lt__",&obj0,&obj1)) goto fail;
20765 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20766 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20767 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20768 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20769 {
20770 PyThreadState* __tstate = wxPyBeginAllowThreads();
20771 result = (bool)wxDateTime___lt__(arg1,(wxDateTime const *)arg2);
20772
20773 wxPyEndAllowThreads(__tstate);
20774 if (PyErr_Occurred()) SWIG_fail;
20775 }
20776 {
20777 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20778 }
20779 return resultobj;
20780 fail:
20781 return NULL;
20782 }
20783
20784
20785 static PyObject *_wrap_DateTime___le__(PyObject *self, PyObject *args) {
20786 PyObject *resultobj;
20787 wxDateTime *arg1 = (wxDateTime *) 0 ;
20788 wxDateTime *arg2 = (wxDateTime *) 0 ;
20789 bool result;
20790 PyObject * obj0 = 0 ;
20791 PyObject * obj1 = 0 ;
20792
20793 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___le__",&obj0,&obj1)) goto fail;
20794 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20795 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20796 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20797 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20798 {
20799 PyThreadState* __tstate = wxPyBeginAllowThreads();
20800 result = (bool)wxDateTime___le__(arg1,(wxDateTime const *)arg2);
20801
20802 wxPyEndAllowThreads(__tstate);
20803 if (PyErr_Occurred()) SWIG_fail;
20804 }
20805 {
20806 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20807 }
20808 return resultobj;
20809 fail:
20810 return NULL;
20811 }
20812
20813
20814 static PyObject *_wrap_DateTime___gt__(PyObject *self, PyObject *args) {
20815 PyObject *resultobj;
20816 wxDateTime *arg1 = (wxDateTime *) 0 ;
20817 wxDateTime *arg2 = (wxDateTime *) 0 ;
20818 bool result;
20819 PyObject * obj0 = 0 ;
20820 PyObject * obj1 = 0 ;
20821
20822 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___gt__",&obj0,&obj1)) goto fail;
20823 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20824 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20825 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20826 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20827 {
20828 PyThreadState* __tstate = wxPyBeginAllowThreads();
20829 result = (bool)wxDateTime___gt__(arg1,(wxDateTime const *)arg2);
20830
20831 wxPyEndAllowThreads(__tstate);
20832 if (PyErr_Occurred()) SWIG_fail;
20833 }
20834 {
20835 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20836 }
20837 return resultobj;
20838 fail:
20839 return NULL;
20840 }
20841
20842
20843 static PyObject *_wrap_DateTime___ge__(PyObject *self, PyObject *args) {
20844 PyObject *resultobj;
20845 wxDateTime *arg1 = (wxDateTime *) 0 ;
20846 wxDateTime *arg2 = (wxDateTime *) 0 ;
20847 bool result;
20848 PyObject * obj0 = 0 ;
20849 PyObject * obj1 = 0 ;
20850
20851 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___ge__",&obj0,&obj1)) goto fail;
20852 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20853 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20854 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20855 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20856 {
20857 PyThreadState* __tstate = wxPyBeginAllowThreads();
20858 result = (bool)wxDateTime___ge__(arg1,(wxDateTime const *)arg2);
20859
20860 wxPyEndAllowThreads(__tstate);
20861 if (PyErr_Occurred()) SWIG_fail;
20862 }
20863 {
20864 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20865 }
20866 return resultobj;
20867 fail:
20868 return NULL;
20869 }
20870
20871
20872 static PyObject *_wrap_DateTime___eq__(PyObject *self, PyObject *args) {
20873 PyObject *resultobj;
20874 wxDateTime *arg1 = (wxDateTime *) 0 ;
20875 wxDateTime *arg2 = (wxDateTime *) 0 ;
20876 bool result;
20877 PyObject * obj0 = 0 ;
20878 PyObject * obj1 = 0 ;
20879
20880 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___eq__",&obj0,&obj1)) goto fail;
20881 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20882 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20883 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20884 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20885 {
20886 PyThreadState* __tstate = wxPyBeginAllowThreads();
20887 result = (bool)wxDateTime___eq__(arg1,(wxDateTime const *)arg2);
20888
20889 wxPyEndAllowThreads(__tstate);
20890 if (PyErr_Occurred()) SWIG_fail;
20891 }
20892 {
20893 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20894 }
20895 return resultobj;
20896 fail:
20897 return NULL;
20898 }
20899
20900
20901 static PyObject *_wrap_DateTime___ne__(PyObject *self, PyObject *args) {
20902 PyObject *resultobj;
20903 wxDateTime *arg1 = (wxDateTime *) 0 ;
20904 wxDateTime *arg2 = (wxDateTime *) 0 ;
20905 bool result;
20906 PyObject * obj0 = 0 ;
20907 PyObject * obj1 = 0 ;
20908
20909 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___ne__",&obj0,&obj1)) goto fail;
20910 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20911 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20912 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20913 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20914 {
20915 PyThreadState* __tstate = wxPyBeginAllowThreads();
20916 result = (bool)wxDateTime___ne__(arg1,(wxDateTime const *)arg2);
20917
20918 wxPyEndAllowThreads(__tstate);
20919 if (PyErr_Occurred()) SWIG_fail;
20920 }
20921 {
20922 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20923 }
20924 return resultobj;
20925 fail:
20926 return NULL;
20927 }
20928
20929
20930 static PyObject *_wrap_DateTime_ParseRfc822Date(PyObject *self, PyObject *args, PyObject *kwargs) {
20931 PyObject *resultobj;
20932 wxDateTime *arg1 = (wxDateTime *) 0 ;
20933 wxString *arg2 = 0 ;
20934 int result;
20935 bool temp2 = False ;
20936 PyObject * obj0 = 0 ;
20937 PyObject * obj1 = 0 ;
20938 char *kwnames[] = {
20939 (char *) "self",(char *) "date", NULL
20940 };
20941
20942 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseRfc822Date",kwnames,&obj0,&obj1)) goto fail;
20943 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20944 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20945 {
20946 arg2 = wxString_in_helper(obj1);
20947 if (arg2 == NULL) SWIG_fail;
20948 temp2 = True;
20949 }
20950 {
20951 PyThreadState* __tstate = wxPyBeginAllowThreads();
20952 result = (int)wxDateTime_ParseRfc822Date(arg1,(wxString const &)*arg2);
20953
20954 wxPyEndAllowThreads(__tstate);
20955 if (PyErr_Occurred()) SWIG_fail;
20956 }
20957 resultobj = SWIG_FromInt((int)result);
20958 {
20959 if (temp2)
20960 delete arg2;
20961 }
20962 return resultobj;
20963 fail:
20964 {
20965 if (temp2)
20966 delete arg2;
20967 }
20968 return NULL;
20969 }
20970
20971
20972 static PyObject *_wrap_DateTime_ParseFormat(PyObject *self, PyObject *args, PyObject *kwargs) {
20973 PyObject *resultobj;
20974 wxDateTime *arg1 = (wxDateTime *) 0 ;
20975 wxString *arg2 = 0 ;
20976 wxString const &arg3_defvalue = wxPyDateFormatStr ;
20977 wxString *arg3 = (wxString *) &arg3_defvalue ;
20978 wxDateTime const &arg4_defvalue = wxDefaultDateTime ;
20979 wxDateTime *arg4 = (wxDateTime *) &arg4_defvalue ;
20980 int result;
20981 bool temp2 = False ;
20982 bool temp3 = False ;
20983 PyObject * obj0 = 0 ;
20984 PyObject * obj1 = 0 ;
20985 PyObject * obj2 = 0 ;
20986 PyObject * obj3 = 0 ;
20987 char *kwnames[] = {
20988 (char *) "self",(char *) "date",(char *) "format",(char *) "dateDef", NULL
20989 };
20990
20991 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_ParseFormat",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
20992 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20993 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20994 {
20995 arg2 = wxString_in_helper(obj1);
20996 if (arg2 == NULL) SWIG_fail;
20997 temp2 = True;
20998 }
20999 if (obj2) {
21000 {
21001 arg3 = wxString_in_helper(obj2);
21002 if (arg3 == NULL) SWIG_fail;
21003 temp3 = True;
21004 }
21005 }
21006 if (obj3) {
21007 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxDateTime,
21008 SWIG_POINTER_EXCEPTION | 0)) == -1)
21009 SWIG_fail;
21010 if (arg4 == NULL) {
21011 PyErr_SetString(PyExc_TypeError,"null reference");
21012 SWIG_fail;
21013 }
21014 }
21015 {
21016 PyThreadState* __tstate = wxPyBeginAllowThreads();
21017 result = (int)wxDateTime_ParseFormat(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxDateTime const &)*arg4);
21018
21019 wxPyEndAllowThreads(__tstate);
21020 if (PyErr_Occurred()) SWIG_fail;
21021 }
21022 resultobj = SWIG_FromInt((int)result);
21023 {
21024 if (temp2)
21025 delete arg2;
21026 }
21027 {
21028 if (temp3)
21029 delete arg3;
21030 }
21031 return resultobj;
21032 fail:
21033 {
21034 if (temp2)
21035 delete arg2;
21036 }
21037 {
21038 if (temp3)
21039 delete arg3;
21040 }
21041 return NULL;
21042 }
21043
21044
21045 static PyObject *_wrap_DateTime_ParseDateTime(PyObject *self, PyObject *args, PyObject *kwargs) {
21046 PyObject *resultobj;
21047 wxDateTime *arg1 = (wxDateTime *) 0 ;
21048 wxString *arg2 = 0 ;
21049 int result;
21050 bool temp2 = False ;
21051 PyObject * obj0 = 0 ;
21052 PyObject * obj1 = 0 ;
21053 char *kwnames[] = {
21054 (char *) "self",(char *) "datetime", NULL
21055 };
21056
21057 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseDateTime",kwnames,&obj0,&obj1)) goto fail;
21058 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21059 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21060 {
21061 arg2 = wxString_in_helper(obj1);
21062 if (arg2 == NULL) SWIG_fail;
21063 temp2 = True;
21064 }
21065 {
21066 PyThreadState* __tstate = wxPyBeginAllowThreads();
21067 result = (int)wxDateTime_ParseDateTime(arg1,(wxString const &)*arg2);
21068
21069 wxPyEndAllowThreads(__tstate);
21070 if (PyErr_Occurred()) SWIG_fail;
21071 }
21072 resultobj = SWIG_FromInt((int)result);
21073 {
21074 if (temp2)
21075 delete arg2;
21076 }
21077 return resultobj;
21078 fail:
21079 {
21080 if (temp2)
21081 delete arg2;
21082 }
21083 return NULL;
21084 }
21085
21086
21087 static PyObject *_wrap_DateTime_ParseDate(PyObject *self, PyObject *args, PyObject *kwargs) {
21088 PyObject *resultobj;
21089 wxDateTime *arg1 = (wxDateTime *) 0 ;
21090 wxString *arg2 = 0 ;
21091 int result;
21092 bool temp2 = False ;
21093 PyObject * obj0 = 0 ;
21094 PyObject * obj1 = 0 ;
21095 char *kwnames[] = {
21096 (char *) "self",(char *) "date", NULL
21097 };
21098
21099 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseDate",kwnames,&obj0,&obj1)) goto fail;
21100 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21101 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21102 {
21103 arg2 = wxString_in_helper(obj1);
21104 if (arg2 == NULL) SWIG_fail;
21105 temp2 = True;
21106 }
21107 {
21108 PyThreadState* __tstate = wxPyBeginAllowThreads();
21109 result = (int)wxDateTime_ParseDate(arg1,(wxString const &)*arg2);
21110
21111 wxPyEndAllowThreads(__tstate);
21112 if (PyErr_Occurred()) SWIG_fail;
21113 }
21114 resultobj = SWIG_FromInt((int)result);
21115 {
21116 if (temp2)
21117 delete arg2;
21118 }
21119 return resultobj;
21120 fail:
21121 {
21122 if (temp2)
21123 delete arg2;
21124 }
21125 return NULL;
21126 }
21127
21128
21129 static PyObject *_wrap_DateTime_ParseTime(PyObject *self, PyObject *args, PyObject *kwargs) {
21130 PyObject *resultobj;
21131 wxDateTime *arg1 = (wxDateTime *) 0 ;
21132 wxString *arg2 = 0 ;
21133 int result;
21134 bool temp2 = False ;
21135 PyObject * obj0 = 0 ;
21136 PyObject * obj1 = 0 ;
21137 char *kwnames[] = {
21138 (char *) "self",(char *) "time", NULL
21139 };
21140
21141 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseTime",kwnames,&obj0,&obj1)) goto fail;
21142 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21143 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21144 {
21145 arg2 = wxString_in_helper(obj1);
21146 if (arg2 == NULL) SWIG_fail;
21147 temp2 = True;
21148 }
21149 {
21150 PyThreadState* __tstate = wxPyBeginAllowThreads();
21151 result = (int)wxDateTime_ParseTime(arg1,(wxString const &)*arg2);
21152
21153 wxPyEndAllowThreads(__tstate);
21154 if (PyErr_Occurred()) SWIG_fail;
21155 }
21156 resultobj = SWIG_FromInt((int)result);
21157 {
21158 if (temp2)
21159 delete arg2;
21160 }
21161 return resultobj;
21162 fail:
21163 {
21164 if (temp2)
21165 delete arg2;
21166 }
21167 return NULL;
21168 }
21169
21170
21171 static PyObject *_wrap_DateTime_Format(PyObject *self, PyObject *args, PyObject *kwargs) {
21172 PyObject *resultobj;
21173 wxDateTime *arg1 = (wxDateTime *) 0 ;
21174 wxString const &arg2_defvalue = wxPyDateFormatStr ;
21175 wxString *arg2 = (wxString *) &arg2_defvalue ;
21176 wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ;
21177 wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ;
21178 wxString result;
21179 bool temp2 = False ;
21180 bool temp3 = False ;
21181 PyObject * obj0 = 0 ;
21182 PyObject * obj1 = 0 ;
21183 PyObject * obj2 = 0 ;
21184 char *kwnames[] = {
21185 (char *) "self",(char *) "format",(char *) "tz", NULL
21186 };
21187
21188 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_Format",kwnames,&obj0,&obj1,&obj2)) goto fail;
21189 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21190 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21191 if (obj1) {
21192 {
21193 arg2 = wxString_in_helper(obj1);
21194 if (arg2 == NULL) SWIG_fail;
21195 temp2 = True;
21196 }
21197 }
21198 if (obj2) {
21199 {
21200 arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2));
21201 temp3 = True;
21202 }
21203 }
21204 {
21205 PyThreadState* __tstate = wxPyBeginAllowThreads();
21206 result = ((wxDateTime const *)arg1)->Format((wxString const &)*arg2,(wxDateTime::TimeZone const &)*arg3);
21207
21208 wxPyEndAllowThreads(__tstate);
21209 if (PyErr_Occurred()) SWIG_fail;
21210 }
21211 {
21212 #if wxUSE_UNICODE
21213 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
21214 #else
21215 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
21216 #endif
21217 }
21218 {
21219 if (temp2)
21220 delete arg2;
21221 }
21222 {
21223 if (temp3) delete arg3;
21224 }
21225 return resultobj;
21226 fail:
21227 {
21228 if (temp2)
21229 delete arg2;
21230 }
21231 {
21232 if (temp3) delete arg3;
21233 }
21234 return NULL;
21235 }
21236
21237
21238 static PyObject *_wrap_DateTime_FormatDate(PyObject *self, PyObject *args, PyObject *kwargs) {
21239 PyObject *resultobj;
21240 wxDateTime *arg1 = (wxDateTime *) 0 ;
21241 wxString result;
21242 PyObject * obj0 = 0 ;
21243 char *kwnames[] = {
21244 (char *) "self", NULL
21245 };
21246
21247 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatDate",kwnames,&obj0)) goto fail;
21248 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21249 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21250 {
21251 PyThreadState* __tstate = wxPyBeginAllowThreads();
21252 result = ((wxDateTime const *)arg1)->FormatDate();
21253
21254 wxPyEndAllowThreads(__tstate);
21255 if (PyErr_Occurred()) SWIG_fail;
21256 }
21257 {
21258 #if wxUSE_UNICODE
21259 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
21260 #else
21261 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
21262 #endif
21263 }
21264 return resultobj;
21265 fail:
21266 return NULL;
21267 }
21268
21269
21270 static PyObject *_wrap_DateTime_FormatTime(PyObject *self, PyObject *args, PyObject *kwargs) {
21271 PyObject *resultobj;
21272 wxDateTime *arg1 = (wxDateTime *) 0 ;
21273 wxString result;
21274 PyObject * obj0 = 0 ;
21275 char *kwnames[] = {
21276 (char *) "self", NULL
21277 };
21278
21279 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatTime",kwnames,&obj0)) goto fail;
21280 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21281 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21282 {
21283 PyThreadState* __tstate = wxPyBeginAllowThreads();
21284 result = ((wxDateTime const *)arg1)->FormatTime();
21285
21286 wxPyEndAllowThreads(__tstate);
21287 if (PyErr_Occurred()) SWIG_fail;
21288 }
21289 {
21290 #if wxUSE_UNICODE
21291 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
21292 #else
21293 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
21294 #endif
21295 }
21296 return resultobj;
21297 fail:
21298 return NULL;
21299 }
21300
21301
21302 static PyObject *_wrap_DateTime_FormatISODate(PyObject *self, PyObject *args, PyObject *kwargs) {
21303 PyObject *resultobj;
21304 wxDateTime *arg1 = (wxDateTime *) 0 ;
21305 wxString result;
21306 PyObject * obj0 = 0 ;
21307 char *kwnames[] = {
21308 (char *) "self", NULL
21309 };
21310
21311 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatISODate",kwnames,&obj0)) goto fail;
21312 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21313 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21314 {
21315 PyThreadState* __tstate = wxPyBeginAllowThreads();
21316 result = ((wxDateTime const *)arg1)->FormatISODate();
21317
21318 wxPyEndAllowThreads(__tstate);
21319 if (PyErr_Occurred()) SWIG_fail;
21320 }
21321 {
21322 #if wxUSE_UNICODE
21323 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
21324 #else
21325 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
21326 #endif
21327 }
21328 return resultobj;
21329 fail:
21330 return NULL;
21331 }
21332
21333
21334 static PyObject *_wrap_DateTime_FormatISOTime(PyObject *self, PyObject *args, PyObject *kwargs) {
21335 PyObject *resultobj;
21336 wxDateTime *arg1 = (wxDateTime *) 0 ;
21337 wxString result;
21338 PyObject * obj0 = 0 ;
21339 char *kwnames[] = {
21340 (char *) "self", NULL
21341 };
21342
21343 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatISOTime",kwnames,&obj0)) goto fail;
21344 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21345 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21346 {
21347 PyThreadState* __tstate = wxPyBeginAllowThreads();
21348 result = ((wxDateTime const *)arg1)->FormatISOTime();
21349
21350 wxPyEndAllowThreads(__tstate);
21351 if (PyErr_Occurred()) SWIG_fail;
21352 }
21353 {
21354 #if wxUSE_UNICODE
21355 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
21356 #else
21357 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
21358 #endif
21359 }
21360 return resultobj;
21361 fail:
21362 return NULL;
21363 }
21364
21365
21366 static PyObject * DateTime_swigregister(PyObject *self, PyObject *args) {
21367 PyObject *obj;
21368 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
21369 SWIG_TypeClientData(SWIGTYPE_p_wxDateTime, obj);
21370 Py_INCREF(obj);
21371 return Py_BuildValue((char *)"");
21372 }
21373 static PyObject *_wrap_TimeSpan_Seconds(PyObject *self, PyObject *args, PyObject *kwargs) {
21374 PyObject *resultobj;
21375 long arg1 ;
21376 wxTimeSpan result;
21377 PyObject * obj0 = 0 ;
21378 char *kwnames[] = {
21379 (char *) "sec", NULL
21380 };
21381
21382 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Seconds",kwnames,&obj0)) goto fail;
21383 arg1 = (long) SWIG_AsLong(obj0);
21384 if (PyErr_Occurred()) SWIG_fail;
21385 {
21386 PyThreadState* __tstate = wxPyBeginAllowThreads();
21387 result = wxTimeSpan::Seconds(arg1);
21388
21389 wxPyEndAllowThreads(__tstate);
21390 if (PyErr_Occurred()) SWIG_fail;
21391 }
21392 {
21393 wxTimeSpan * resultptr;
21394 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21395 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21396 }
21397 return resultobj;
21398 fail:
21399 return NULL;
21400 }
21401
21402
21403 static PyObject *_wrap_TimeSpan_Second(PyObject *self, PyObject *args, PyObject *kwargs) {
21404 PyObject *resultobj;
21405 wxTimeSpan result;
21406 char *kwnames[] = {
21407 NULL
21408 };
21409
21410 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Second",kwnames)) goto fail;
21411 {
21412 PyThreadState* __tstate = wxPyBeginAllowThreads();
21413 result = wxTimeSpan::Second();
21414
21415 wxPyEndAllowThreads(__tstate);
21416 if (PyErr_Occurred()) SWIG_fail;
21417 }
21418 {
21419 wxTimeSpan * resultptr;
21420 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21421 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21422 }
21423 return resultobj;
21424 fail:
21425 return NULL;
21426 }
21427
21428
21429 static PyObject *_wrap_TimeSpan_Minutes(PyObject *self, PyObject *args, PyObject *kwargs) {
21430 PyObject *resultobj;
21431 long arg1 ;
21432 wxTimeSpan result;
21433 PyObject * obj0 = 0 ;
21434 char *kwnames[] = {
21435 (char *) "min", NULL
21436 };
21437
21438 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Minutes",kwnames,&obj0)) goto fail;
21439 arg1 = (long) SWIG_AsLong(obj0);
21440 if (PyErr_Occurred()) SWIG_fail;
21441 {
21442 PyThreadState* __tstate = wxPyBeginAllowThreads();
21443 result = wxTimeSpan::Minutes(arg1);
21444
21445 wxPyEndAllowThreads(__tstate);
21446 if (PyErr_Occurred()) SWIG_fail;
21447 }
21448 {
21449 wxTimeSpan * resultptr;
21450 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21451 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21452 }
21453 return resultobj;
21454 fail:
21455 return NULL;
21456 }
21457
21458
21459 static PyObject *_wrap_TimeSpan_Minute(PyObject *self, PyObject *args, PyObject *kwargs) {
21460 PyObject *resultobj;
21461 wxTimeSpan result;
21462 char *kwnames[] = {
21463 NULL
21464 };
21465
21466 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Minute",kwnames)) goto fail;
21467 {
21468 PyThreadState* __tstate = wxPyBeginAllowThreads();
21469 result = wxTimeSpan::Minute();
21470
21471 wxPyEndAllowThreads(__tstate);
21472 if (PyErr_Occurred()) SWIG_fail;
21473 }
21474 {
21475 wxTimeSpan * resultptr;
21476 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21477 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21478 }
21479 return resultobj;
21480 fail:
21481 return NULL;
21482 }
21483
21484
21485 static PyObject *_wrap_TimeSpan_Hours(PyObject *self, PyObject *args, PyObject *kwargs) {
21486 PyObject *resultobj;
21487 long arg1 ;
21488 wxTimeSpan result;
21489 PyObject * obj0 = 0 ;
21490 char *kwnames[] = {
21491 (char *) "hours", NULL
21492 };
21493
21494 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Hours",kwnames,&obj0)) goto fail;
21495 arg1 = (long) SWIG_AsLong(obj0);
21496 if (PyErr_Occurred()) SWIG_fail;
21497 {
21498 PyThreadState* __tstate = wxPyBeginAllowThreads();
21499 result = wxTimeSpan::Hours(arg1);
21500
21501 wxPyEndAllowThreads(__tstate);
21502 if (PyErr_Occurred()) SWIG_fail;
21503 }
21504 {
21505 wxTimeSpan * resultptr;
21506 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21507 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21508 }
21509 return resultobj;
21510 fail:
21511 return NULL;
21512 }
21513
21514
21515 static PyObject *_wrap_TimeSpan_Hour(PyObject *self, PyObject *args, PyObject *kwargs) {
21516 PyObject *resultobj;
21517 wxTimeSpan result;
21518 char *kwnames[] = {
21519 NULL
21520 };
21521
21522 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Hour",kwnames)) goto fail;
21523 {
21524 PyThreadState* __tstate = wxPyBeginAllowThreads();
21525 result = wxTimeSpan::Hour();
21526
21527 wxPyEndAllowThreads(__tstate);
21528 if (PyErr_Occurred()) SWIG_fail;
21529 }
21530 {
21531 wxTimeSpan * resultptr;
21532 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21533 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21534 }
21535 return resultobj;
21536 fail:
21537 return NULL;
21538 }
21539
21540
21541 static PyObject *_wrap_TimeSpan_Days(PyObject *self, PyObject *args, PyObject *kwargs) {
21542 PyObject *resultobj;
21543 long arg1 ;
21544 wxTimeSpan result;
21545 PyObject * obj0 = 0 ;
21546 char *kwnames[] = {
21547 (char *) "days", NULL
21548 };
21549
21550 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Days",kwnames,&obj0)) goto fail;
21551 arg1 = (long) SWIG_AsLong(obj0);
21552 if (PyErr_Occurred()) SWIG_fail;
21553 {
21554 PyThreadState* __tstate = wxPyBeginAllowThreads();
21555 result = wxTimeSpan::Days(arg1);
21556
21557 wxPyEndAllowThreads(__tstate);
21558 if (PyErr_Occurred()) SWIG_fail;
21559 }
21560 {
21561 wxTimeSpan * resultptr;
21562 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21563 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21564 }
21565 return resultobj;
21566 fail:
21567 return NULL;
21568 }
21569
21570
21571 static PyObject *_wrap_TimeSpan_Day(PyObject *self, PyObject *args, PyObject *kwargs) {
21572 PyObject *resultobj;
21573 wxTimeSpan result;
21574 char *kwnames[] = {
21575 NULL
21576 };
21577
21578 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Day",kwnames)) goto fail;
21579 {
21580 PyThreadState* __tstate = wxPyBeginAllowThreads();
21581 result = wxTimeSpan::Day();
21582
21583 wxPyEndAllowThreads(__tstate);
21584 if (PyErr_Occurred()) SWIG_fail;
21585 }
21586 {
21587 wxTimeSpan * resultptr;
21588 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21589 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21590 }
21591 return resultobj;
21592 fail:
21593 return NULL;
21594 }
21595
21596
21597 static PyObject *_wrap_TimeSpan_Weeks(PyObject *self, PyObject *args, PyObject *kwargs) {
21598 PyObject *resultobj;
21599 long arg1 ;
21600 wxTimeSpan result;
21601 PyObject * obj0 = 0 ;
21602 char *kwnames[] = {
21603 (char *) "days", NULL
21604 };
21605
21606 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Weeks",kwnames,&obj0)) goto fail;
21607 arg1 = (long) SWIG_AsLong(obj0);
21608 if (PyErr_Occurred()) SWIG_fail;
21609 {
21610 PyThreadState* __tstate = wxPyBeginAllowThreads();
21611 result = wxTimeSpan::Weeks(arg1);
21612
21613 wxPyEndAllowThreads(__tstate);
21614 if (PyErr_Occurred()) SWIG_fail;
21615 }
21616 {
21617 wxTimeSpan * resultptr;
21618 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21619 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21620 }
21621 return resultobj;
21622 fail:
21623 return NULL;
21624 }
21625
21626
21627 static PyObject *_wrap_TimeSpan_Week(PyObject *self, PyObject *args, PyObject *kwargs) {
21628 PyObject *resultobj;
21629 wxTimeSpan result;
21630 char *kwnames[] = {
21631 NULL
21632 };
21633
21634 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Week",kwnames)) goto fail;
21635 {
21636 PyThreadState* __tstate = wxPyBeginAllowThreads();
21637 result = wxTimeSpan::Week();
21638
21639 wxPyEndAllowThreads(__tstate);
21640 if (PyErr_Occurred()) SWIG_fail;
21641 }
21642 {
21643 wxTimeSpan * resultptr;
21644 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21645 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21646 }
21647 return resultobj;
21648 fail:
21649 return NULL;
21650 }
21651
21652
21653 static PyObject *_wrap_new_TimeSpan(PyObject *self, PyObject *args, PyObject *kwargs) {
21654 PyObject *resultobj;
21655 long arg1 = (long) 0 ;
21656 long arg2 = (long) 0 ;
21657 long arg3 = (long) 0 ;
21658 long arg4 = (long) 0 ;
21659 wxTimeSpan *result;
21660 PyObject * obj0 = 0 ;
21661 PyObject * obj1 = 0 ;
21662 PyObject * obj2 = 0 ;
21663 PyObject * obj3 = 0 ;
21664 char *kwnames[] = {
21665 (char *) "hours",(char *) "minutes",(char *) "seconds",(char *) "milliseconds", NULL
21666 };
21667
21668 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TimeSpan",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
21669 if (obj0) {
21670 arg1 = (long) SWIG_AsLong(obj0);
21671 if (PyErr_Occurred()) SWIG_fail;
21672 }
21673 if (obj1) {
21674 arg2 = (long) SWIG_AsLong(obj1);
21675 if (PyErr_Occurred()) SWIG_fail;
21676 }
21677 if (obj2) {
21678 arg3 = (long) SWIG_AsLong(obj2);
21679 if (PyErr_Occurred()) SWIG_fail;
21680 }
21681 if (obj3) {
21682 arg4 = (long) SWIG_AsLong(obj3);
21683 if (PyErr_Occurred()) SWIG_fail;
21684 }
21685 {
21686 PyThreadState* __tstate = wxPyBeginAllowThreads();
21687 result = (wxTimeSpan *)new wxTimeSpan(arg1,arg2,arg3,arg4);
21688
21689 wxPyEndAllowThreads(__tstate);
21690 if (PyErr_Occurred()) SWIG_fail;
21691 }
21692 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 1);
21693 return resultobj;
21694 fail:
21695 return NULL;
21696 }
21697
21698
21699 static PyObject *_wrap_delete_TimeSpan(PyObject *self, PyObject *args, PyObject *kwargs) {
21700 PyObject *resultobj;
21701 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21702 PyObject * obj0 = 0 ;
21703 char *kwnames[] = {
21704 (char *) "self", NULL
21705 };
21706
21707 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TimeSpan",kwnames,&obj0)) goto fail;
21708 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21709 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21710 {
21711 PyThreadState* __tstate = wxPyBeginAllowThreads();
21712 delete arg1;
21713
21714 wxPyEndAllowThreads(__tstate);
21715 if (PyErr_Occurred()) SWIG_fail;
21716 }
21717 Py_INCREF(Py_None); resultobj = Py_None;
21718 return resultobj;
21719 fail:
21720 return NULL;
21721 }
21722
21723
21724 static PyObject *_wrap_TimeSpan_Add(PyObject *self, PyObject *args, PyObject *kwargs) {
21725 PyObject *resultobj;
21726 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21727 wxTimeSpan *arg2 = 0 ;
21728 wxTimeSpan *result;
21729 PyObject * obj0 = 0 ;
21730 PyObject * obj1 = 0 ;
21731 char *kwnames[] = {
21732 (char *) "self",(char *) "diff", NULL
21733 };
21734
21735 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Add",kwnames,&obj0,&obj1)) goto fail;
21736 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21737 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21738 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
21739 SWIG_POINTER_EXCEPTION | 0)) == -1)
21740 SWIG_fail;
21741 if (arg2 == NULL) {
21742 PyErr_SetString(PyExc_TypeError,"null reference");
21743 SWIG_fail;
21744 }
21745 {
21746 PyThreadState* __tstate = wxPyBeginAllowThreads();
21747 {
21748 wxTimeSpan &_result_ref = (arg1)->Add((wxTimeSpan const &)*arg2);
21749 result = (wxTimeSpan *) &_result_ref;
21750 }
21751
21752 wxPyEndAllowThreads(__tstate);
21753 if (PyErr_Occurred()) SWIG_fail;
21754 }
21755 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
21756 return resultobj;
21757 fail:
21758 return NULL;
21759 }
21760
21761
21762 static PyObject *_wrap_TimeSpan_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) {
21763 PyObject *resultobj;
21764 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21765 wxTimeSpan *arg2 = 0 ;
21766 wxTimeSpan *result;
21767 PyObject * obj0 = 0 ;
21768 PyObject * obj1 = 0 ;
21769 char *kwnames[] = {
21770 (char *) "self",(char *) "diff", NULL
21771 };
21772
21773 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Subtract",kwnames,&obj0,&obj1)) goto fail;
21774 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21775 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21776 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
21777 SWIG_POINTER_EXCEPTION | 0)) == -1)
21778 SWIG_fail;
21779 if (arg2 == NULL) {
21780 PyErr_SetString(PyExc_TypeError,"null reference");
21781 SWIG_fail;
21782 }
21783 {
21784 PyThreadState* __tstate = wxPyBeginAllowThreads();
21785 {
21786 wxTimeSpan &_result_ref = (arg1)->Subtract((wxTimeSpan const &)*arg2);
21787 result = (wxTimeSpan *) &_result_ref;
21788 }
21789
21790 wxPyEndAllowThreads(__tstate);
21791 if (PyErr_Occurred()) SWIG_fail;
21792 }
21793 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
21794 return resultobj;
21795 fail:
21796 return NULL;
21797 }
21798
21799
21800 static PyObject *_wrap_TimeSpan_Multiply(PyObject *self, PyObject *args, PyObject *kwargs) {
21801 PyObject *resultobj;
21802 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21803 int arg2 ;
21804 wxTimeSpan *result;
21805 PyObject * obj0 = 0 ;
21806 PyObject * obj1 = 0 ;
21807 char *kwnames[] = {
21808 (char *) "self",(char *) "n", NULL
21809 };
21810
21811 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Multiply",kwnames,&obj0,&obj1)) goto fail;
21812 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21813 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21814 arg2 = (int) SWIG_AsInt(obj1);
21815 if (PyErr_Occurred()) SWIG_fail;
21816 {
21817 PyThreadState* __tstate = wxPyBeginAllowThreads();
21818 {
21819 wxTimeSpan &_result_ref = (arg1)->Multiply(arg2);
21820 result = (wxTimeSpan *) &_result_ref;
21821 }
21822
21823 wxPyEndAllowThreads(__tstate);
21824 if (PyErr_Occurred()) SWIG_fail;
21825 }
21826 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
21827 return resultobj;
21828 fail:
21829 return NULL;
21830 }
21831
21832
21833 static PyObject *_wrap_TimeSpan_Neg(PyObject *self, PyObject *args, PyObject *kwargs) {
21834 PyObject *resultobj;
21835 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21836 wxTimeSpan *result;
21837 PyObject * obj0 = 0 ;
21838 char *kwnames[] = {
21839 (char *) "self", NULL
21840 };
21841
21842 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Neg",kwnames,&obj0)) goto fail;
21843 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21844 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21845 {
21846 PyThreadState* __tstate = wxPyBeginAllowThreads();
21847 {
21848 wxTimeSpan &_result_ref = (arg1)->Neg();
21849 result = (wxTimeSpan *) &_result_ref;
21850 }
21851
21852 wxPyEndAllowThreads(__tstate);
21853 if (PyErr_Occurred()) SWIG_fail;
21854 }
21855 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
21856 return resultobj;
21857 fail:
21858 return NULL;
21859 }
21860
21861
21862 static PyObject *_wrap_TimeSpan_Abs(PyObject *self, PyObject *args, PyObject *kwargs) {
21863 PyObject *resultobj;
21864 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21865 wxTimeSpan result;
21866 PyObject * obj0 = 0 ;
21867 char *kwnames[] = {
21868 (char *) "self", NULL
21869 };
21870
21871 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Abs",kwnames,&obj0)) goto fail;
21872 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21873 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21874 {
21875 PyThreadState* __tstate = wxPyBeginAllowThreads();
21876 result = ((wxTimeSpan const *)arg1)->Abs();
21877
21878 wxPyEndAllowThreads(__tstate);
21879 if (PyErr_Occurred()) SWIG_fail;
21880 }
21881 {
21882 wxTimeSpan * resultptr;
21883 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21884 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21885 }
21886 return resultobj;
21887 fail:
21888 return NULL;
21889 }
21890
21891
21892 static PyObject *_wrap_TimeSpan___iadd__(PyObject *self, PyObject *args, PyObject *kwargs) {
21893 PyObject *resultobj;
21894 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21895 wxTimeSpan *arg2 = 0 ;
21896 wxTimeSpan *result;
21897 PyObject * obj0 = 0 ;
21898 PyObject * obj1 = 0 ;
21899 char *kwnames[] = {
21900 (char *) "self",(char *) "diff", NULL
21901 };
21902
21903 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___iadd__",kwnames,&obj0,&obj1)) goto fail;
21904 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21905 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21906 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
21907 SWIG_POINTER_EXCEPTION | 0)) == -1)
21908 SWIG_fail;
21909 if (arg2 == NULL) {
21910 PyErr_SetString(PyExc_TypeError,"null reference");
21911 SWIG_fail;
21912 }
21913 {
21914 PyThreadState* __tstate = wxPyBeginAllowThreads();
21915 {
21916 wxTimeSpan &_result_ref = (arg1)->operator +=((wxTimeSpan const &)*arg2);
21917 result = (wxTimeSpan *) &_result_ref;
21918 }
21919
21920 wxPyEndAllowThreads(__tstate);
21921 if (PyErr_Occurred()) SWIG_fail;
21922 }
21923 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
21924 return resultobj;
21925 fail:
21926 return NULL;
21927 }
21928
21929
21930 static PyObject *_wrap_TimeSpan___isub__(PyObject *self, PyObject *args, PyObject *kwargs) {
21931 PyObject *resultobj;
21932 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21933 wxTimeSpan *arg2 = 0 ;
21934 wxTimeSpan *result;
21935 PyObject * obj0 = 0 ;
21936 PyObject * obj1 = 0 ;
21937 char *kwnames[] = {
21938 (char *) "self",(char *) "diff", NULL
21939 };
21940
21941 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___isub__",kwnames,&obj0,&obj1)) goto fail;
21942 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21943 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21944 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
21945 SWIG_POINTER_EXCEPTION | 0)) == -1)
21946 SWIG_fail;
21947 if (arg2 == NULL) {
21948 PyErr_SetString(PyExc_TypeError,"null reference");
21949 SWIG_fail;
21950 }
21951 {
21952 PyThreadState* __tstate = wxPyBeginAllowThreads();
21953 {
21954 wxTimeSpan &_result_ref = (arg1)->operator -=((wxTimeSpan const &)*arg2);
21955 result = (wxTimeSpan *) &_result_ref;
21956 }
21957
21958 wxPyEndAllowThreads(__tstate);
21959 if (PyErr_Occurred()) SWIG_fail;
21960 }
21961 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
21962 return resultobj;
21963 fail:
21964 return NULL;
21965 }
21966
21967
21968 static PyObject *_wrap_TimeSpan___imul__(PyObject *self, PyObject *args, PyObject *kwargs) {
21969 PyObject *resultobj;
21970 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21971 int arg2 ;
21972 wxTimeSpan *result;
21973 PyObject * obj0 = 0 ;
21974 PyObject * obj1 = 0 ;
21975 char *kwnames[] = {
21976 (char *) "self",(char *) "n", NULL
21977 };
21978
21979 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___imul__",kwnames,&obj0,&obj1)) goto fail;
21980 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21981 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21982 arg2 = (int) SWIG_AsInt(obj1);
21983 if (PyErr_Occurred()) SWIG_fail;
21984 {
21985 PyThreadState* __tstate = wxPyBeginAllowThreads();
21986 {
21987 wxTimeSpan &_result_ref = (arg1)->operator *=(arg2);
21988 result = (wxTimeSpan *) &_result_ref;
21989 }
21990
21991 wxPyEndAllowThreads(__tstate);
21992 if (PyErr_Occurred()) SWIG_fail;
21993 }
21994 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
21995 return resultobj;
21996 fail:
21997 return NULL;
21998 }
21999
22000
22001 static PyObject *_wrap_TimeSpan___neg__(PyObject *self, PyObject *args, PyObject *kwargs) {
22002 PyObject *resultobj;
22003 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22004 wxTimeSpan *result;
22005 PyObject * obj0 = 0 ;
22006 char *kwnames[] = {
22007 (char *) "self", NULL
22008 };
22009
22010 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan___neg__",kwnames,&obj0)) goto fail;
22011 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22012 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22013 {
22014 PyThreadState* __tstate = wxPyBeginAllowThreads();
22015 {
22016 wxTimeSpan &_result_ref = (arg1)->operator -();
22017 result = (wxTimeSpan *) &_result_ref;
22018 }
22019
22020 wxPyEndAllowThreads(__tstate);
22021 if (PyErr_Occurred()) SWIG_fail;
22022 }
22023 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
22024 return resultobj;
22025 fail:
22026 return NULL;
22027 }
22028
22029
22030 static PyObject *_wrap_TimeSpan___add__(PyObject *self, PyObject *args, PyObject *kwargs) {
22031 PyObject *resultobj;
22032 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22033 wxTimeSpan *arg2 = 0 ;
22034 wxTimeSpan result;
22035 PyObject * obj0 = 0 ;
22036 PyObject * obj1 = 0 ;
22037 char *kwnames[] = {
22038 (char *) "self",(char *) "other", NULL
22039 };
22040
22041 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___add__",kwnames,&obj0,&obj1)) goto fail;
22042 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22043 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22044 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22045 SWIG_POINTER_EXCEPTION | 0)) == -1)
22046 SWIG_fail;
22047 if (arg2 == NULL) {
22048 PyErr_SetString(PyExc_TypeError,"null reference");
22049 SWIG_fail;
22050 }
22051 {
22052 PyThreadState* __tstate = wxPyBeginAllowThreads();
22053 result = wxTimeSpan___add__(arg1,(wxTimeSpan const &)*arg2);
22054
22055 wxPyEndAllowThreads(__tstate);
22056 if (PyErr_Occurred()) SWIG_fail;
22057 }
22058 {
22059 wxTimeSpan * resultptr;
22060 resultptr = new wxTimeSpan((wxTimeSpan &) result);
22061 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
22062 }
22063 return resultobj;
22064 fail:
22065 return NULL;
22066 }
22067
22068
22069 static PyObject *_wrap_TimeSpan___sub__(PyObject *self, PyObject *args, PyObject *kwargs) {
22070 PyObject *resultobj;
22071 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22072 wxTimeSpan *arg2 = 0 ;
22073 wxTimeSpan result;
22074 PyObject * obj0 = 0 ;
22075 PyObject * obj1 = 0 ;
22076 char *kwnames[] = {
22077 (char *) "self",(char *) "other", NULL
22078 };
22079
22080 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___sub__",kwnames,&obj0,&obj1)) goto fail;
22081 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22082 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22083 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22084 SWIG_POINTER_EXCEPTION | 0)) == -1)
22085 SWIG_fail;
22086 if (arg2 == NULL) {
22087 PyErr_SetString(PyExc_TypeError,"null reference");
22088 SWIG_fail;
22089 }
22090 {
22091 PyThreadState* __tstate = wxPyBeginAllowThreads();
22092 result = wxTimeSpan___sub__(arg1,(wxTimeSpan const &)*arg2);
22093
22094 wxPyEndAllowThreads(__tstate);
22095 if (PyErr_Occurred()) SWIG_fail;
22096 }
22097 {
22098 wxTimeSpan * resultptr;
22099 resultptr = new wxTimeSpan((wxTimeSpan &) result);
22100 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
22101 }
22102 return resultobj;
22103 fail:
22104 return NULL;
22105 }
22106
22107
22108 static PyObject *_wrap_TimeSpan___mul__(PyObject *self, PyObject *args, PyObject *kwargs) {
22109 PyObject *resultobj;
22110 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22111 int arg2 ;
22112 wxTimeSpan result;
22113 PyObject * obj0 = 0 ;
22114 PyObject * obj1 = 0 ;
22115 char *kwnames[] = {
22116 (char *) "self",(char *) "n", NULL
22117 };
22118
22119 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___mul__",kwnames,&obj0,&obj1)) goto fail;
22120 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22121 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22122 arg2 = (int) SWIG_AsInt(obj1);
22123 if (PyErr_Occurred()) SWIG_fail;
22124 {
22125 PyThreadState* __tstate = wxPyBeginAllowThreads();
22126 result = wxTimeSpan___mul__(arg1,arg2);
22127
22128 wxPyEndAllowThreads(__tstate);
22129 if (PyErr_Occurred()) SWIG_fail;
22130 }
22131 {
22132 wxTimeSpan * resultptr;
22133 resultptr = new wxTimeSpan((wxTimeSpan &) result);
22134 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
22135 }
22136 return resultobj;
22137 fail:
22138 return NULL;
22139 }
22140
22141
22142 static PyObject *_wrap_TimeSpan___rmul__(PyObject *self, PyObject *args, PyObject *kwargs) {
22143 PyObject *resultobj;
22144 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22145 int arg2 ;
22146 wxTimeSpan result;
22147 PyObject * obj0 = 0 ;
22148 PyObject * obj1 = 0 ;
22149 char *kwnames[] = {
22150 (char *) "self",(char *) "n", NULL
22151 };
22152
22153 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___rmul__",kwnames,&obj0,&obj1)) goto fail;
22154 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22155 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22156 arg2 = (int) SWIG_AsInt(obj1);
22157 if (PyErr_Occurred()) SWIG_fail;
22158 {
22159 PyThreadState* __tstate = wxPyBeginAllowThreads();
22160 result = wxTimeSpan___rmul__(arg1,arg2);
22161
22162 wxPyEndAllowThreads(__tstate);
22163 if (PyErr_Occurred()) SWIG_fail;
22164 }
22165 {
22166 wxTimeSpan * resultptr;
22167 resultptr = new wxTimeSpan((wxTimeSpan &) result);
22168 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
22169 }
22170 return resultobj;
22171 fail:
22172 return NULL;
22173 }
22174
22175
22176 static PyObject *_wrap_TimeSpan___lt__(PyObject *self, PyObject *args, PyObject *kwargs) {
22177 PyObject *resultobj;
22178 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22179 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
22180 bool result;
22181 PyObject * obj0 = 0 ;
22182 PyObject * obj1 = 0 ;
22183 char *kwnames[] = {
22184 (char *) "self",(char *) "other", NULL
22185 };
22186
22187 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___lt__",kwnames,&obj0,&obj1)) goto fail;
22188 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22189 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22190 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22191 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22192 {
22193 PyThreadState* __tstate = wxPyBeginAllowThreads();
22194 result = (bool)wxTimeSpan___lt__(arg1,(wxTimeSpan const *)arg2);
22195
22196 wxPyEndAllowThreads(__tstate);
22197 if (PyErr_Occurred()) SWIG_fail;
22198 }
22199 {
22200 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22201 }
22202 return resultobj;
22203 fail:
22204 return NULL;
22205 }
22206
22207
22208 static PyObject *_wrap_TimeSpan___le__(PyObject *self, PyObject *args, PyObject *kwargs) {
22209 PyObject *resultobj;
22210 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22211 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
22212 bool result;
22213 PyObject * obj0 = 0 ;
22214 PyObject * obj1 = 0 ;
22215 char *kwnames[] = {
22216 (char *) "self",(char *) "other", NULL
22217 };
22218
22219 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___le__",kwnames,&obj0,&obj1)) goto fail;
22220 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22221 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22222 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22223 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22224 {
22225 PyThreadState* __tstate = wxPyBeginAllowThreads();
22226 result = (bool)wxTimeSpan___le__(arg1,(wxTimeSpan const *)arg2);
22227
22228 wxPyEndAllowThreads(__tstate);
22229 if (PyErr_Occurred()) SWIG_fail;
22230 }
22231 {
22232 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22233 }
22234 return resultobj;
22235 fail:
22236 return NULL;
22237 }
22238
22239
22240 static PyObject *_wrap_TimeSpan___gt__(PyObject *self, PyObject *args, PyObject *kwargs) {
22241 PyObject *resultobj;
22242 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22243 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
22244 bool result;
22245 PyObject * obj0 = 0 ;
22246 PyObject * obj1 = 0 ;
22247 char *kwnames[] = {
22248 (char *) "self",(char *) "other", NULL
22249 };
22250
22251 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___gt__",kwnames,&obj0,&obj1)) goto fail;
22252 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22253 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22254 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22255 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22256 {
22257 PyThreadState* __tstate = wxPyBeginAllowThreads();
22258 result = (bool)wxTimeSpan___gt__(arg1,(wxTimeSpan const *)arg2);
22259
22260 wxPyEndAllowThreads(__tstate);
22261 if (PyErr_Occurred()) SWIG_fail;
22262 }
22263 {
22264 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22265 }
22266 return resultobj;
22267 fail:
22268 return NULL;
22269 }
22270
22271
22272 static PyObject *_wrap_TimeSpan___ge__(PyObject *self, PyObject *args, PyObject *kwargs) {
22273 PyObject *resultobj;
22274 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22275 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
22276 bool result;
22277 PyObject * obj0 = 0 ;
22278 PyObject * obj1 = 0 ;
22279 char *kwnames[] = {
22280 (char *) "self",(char *) "other", NULL
22281 };
22282
22283 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___ge__",kwnames,&obj0,&obj1)) goto fail;
22284 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22285 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22286 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22287 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22288 {
22289 PyThreadState* __tstate = wxPyBeginAllowThreads();
22290 result = (bool)wxTimeSpan___ge__(arg1,(wxTimeSpan const *)arg2);
22291
22292 wxPyEndAllowThreads(__tstate);
22293 if (PyErr_Occurred()) SWIG_fail;
22294 }
22295 {
22296 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22297 }
22298 return resultobj;
22299 fail:
22300 return NULL;
22301 }
22302
22303
22304 static PyObject *_wrap_TimeSpan___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
22305 PyObject *resultobj;
22306 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22307 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
22308 bool result;
22309 PyObject * obj0 = 0 ;
22310 PyObject * obj1 = 0 ;
22311 char *kwnames[] = {
22312 (char *) "self",(char *) "other", NULL
22313 };
22314
22315 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___eq__",kwnames,&obj0,&obj1)) goto fail;
22316 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22317 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22318 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22319 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22320 {
22321 PyThreadState* __tstate = wxPyBeginAllowThreads();
22322 result = (bool)wxTimeSpan___eq__(arg1,(wxTimeSpan const *)arg2);
22323
22324 wxPyEndAllowThreads(__tstate);
22325 if (PyErr_Occurred()) SWIG_fail;
22326 }
22327 {
22328 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22329 }
22330 return resultobj;
22331 fail:
22332 return NULL;
22333 }
22334
22335
22336 static PyObject *_wrap_TimeSpan___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
22337 PyObject *resultobj;
22338 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22339 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
22340 bool result;
22341 PyObject * obj0 = 0 ;
22342 PyObject * obj1 = 0 ;
22343 char *kwnames[] = {
22344 (char *) "self",(char *) "other", NULL
22345 };
22346
22347 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___ne__",kwnames,&obj0,&obj1)) goto fail;
22348 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22349 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22350 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22351 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22352 {
22353 PyThreadState* __tstate = wxPyBeginAllowThreads();
22354 result = (bool)wxTimeSpan___ne__(arg1,(wxTimeSpan const *)arg2);
22355
22356 wxPyEndAllowThreads(__tstate);
22357 if (PyErr_Occurred()) SWIG_fail;
22358 }
22359 {
22360 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22361 }
22362 return resultobj;
22363 fail:
22364 return NULL;
22365 }
22366
22367
22368 static PyObject *_wrap_TimeSpan_IsNull(PyObject *self, PyObject *args, PyObject *kwargs) {
22369 PyObject *resultobj;
22370 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22371 bool result;
22372 PyObject * obj0 = 0 ;
22373 char *kwnames[] = {
22374 (char *) "self", NULL
22375 };
22376
22377 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsNull",kwnames,&obj0)) goto fail;
22378 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22379 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22380 {
22381 PyThreadState* __tstate = wxPyBeginAllowThreads();
22382 result = (bool)((wxTimeSpan const *)arg1)->IsNull();
22383
22384 wxPyEndAllowThreads(__tstate);
22385 if (PyErr_Occurred()) SWIG_fail;
22386 }
22387 {
22388 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22389 }
22390 return resultobj;
22391 fail:
22392 return NULL;
22393 }
22394
22395
22396 static PyObject *_wrap_TimeSpan_IsPositive(PyObject *self, PyObject *args, PyObject *kwargs) {
22397 PyObject *resultobj;
22398 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22399 bool result;
22400 PyObject * obj0 = 0 ;
22401 char *kwnames[] = {
22402 (char *) "self", NULL
22403 };
22404
22405 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsPositive",kwnames,&obj0)) goto fail;
22406 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22407 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22408 {
22409 PyThreadState* __tstate = wxPyBeginAllowThreads();
22410 result = (bool)((wxTimeSpan const *)arg1)->IsPositive();
22411
22412 wxPyEndAllowThreads(__tstate);
22413 if (PyErr_Occurred()) SWIG_fail;
22414 }
22415 {
22416 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22417 }
22418 return resultobj;
22419 fail:
22420 return NULL;
22421 }
22422
22423
22424 static PyObject *_wrap_TimeSpan_IsNegative(PyObject *self, PyObject *args, PyObject *kwargs) {
22425 PyObject *resultobj;
22426 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22427 bool result;
22428 PyObject * obj0 = 0 ;
22429 char *kwnames[] = {
22430 (char *) "self", NULL
22431 };
22432
22433 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsNegative",kwnames,&obj0)) goto fail;
22434 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22435 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22436 {
22437 PyThreadState* __tstate = wxPyBeginAllowThreads();
22438 result = (bool)((wxTimeSpan const *)arg1)->IsNegative();
22439
22440 wxPyEndAllowThreads(__tstate);
22441 if (PyErr_Occurred()) SWIG_fail;
22442 }
22443 {
22444 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22445 }
22446 return resultobj;
22447 fail:
22448 return NULL;
22449 }
22450
22451
22452 static PyObject *_wrap_TimeSpan_IsEqualTo(PyObject *self, PyObject *args, PyObject *kwargs) {
22453 PyObject *resultobj;
22454 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22455 wxTimeSpan *arg2 = 0 ;
22456 bool result;
22457 PyObject * obj0 = 0 ;
22458 PyObject * obj1 = 0 ;
22459 char *kwnames[] = {
22460 (char *) "self",(char *) "ts", NULL
22461 };
22462
22463 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsEqualTo",kwnames,&obj0,&obj1)) goto fail;
22464 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22465 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22466 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22467 SWIG_POINTER_EXCEPTION | 0)) == -1)
22468 SWIG_fail;
22469 if (arg2 == NULL) {
22470 PyErr_SetString(PyExc_TypeError,"null reference");
22471 SWIG_fail;
22472 }
22473 {
22474 PyThreadState* __tstate = wxPyBeginAllowThreads();
22475 result = (bool)((wxTimeSpan const *)arg1)->IsEqualTo((wxTimeSpan const &)*arg2);
22476
22477 wxPyEndAllowThreads(__tstate);
22478 if (PyErr_Occurred()) SWIG_fail;
22479 }
22480 {
22481 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22482 }
22483 return resultobj;
22484 fail:
22485 return NULL;
22486 }
22487
22488
22489 static PyObject *_wrap_TimeSpan_IsLongerThan(PyObject *self, PyObject *args, PyObject *kwargs) {
22490 PyObject *resultobj;
22491 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22492 wxTimeSpan *arg2 = 0 ;
22493 bool result;
22494 PyObject * obj0 = 0 ;
22495 PyObject * obj1 = 0 ;
22496 char *kwnames[] = {
22497 (char *) "self",(char *) "ts", NULL
22498 };
22499
22500 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsLongerThan",kwnames,&obj0,&obj1)) goto fail;
22501 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22502 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22503 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22504 SWIG_POINTER_EXCEPTION | 0)) == -1)
22505 SWIG_fail;
22506 if (arg2 == NULL) {
22507 PyErr_SetString(PyExc_TypeError,"null reference");
22508 SWIG_fail;
22509 }
22510 {
22511 PyThreadState* __tstate = wxPyBeginAllowThreads();
22512 result = (bool)((wxTimeSpan const *)arg1)->IsLongerThan((wxTimeSpan const &)*arg2);
22513
22514 wxPyEndAllowThreads(__tstate);
22515 if (PyErr_Occurred()) SWIG_fail;
22516 }
22517 {
22518 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22519 }
22520 return resultobj;
22521 fail:
22522 return NULL;
22523 }
22524
22525
22526 static PyObject *_wrap_TimeSpan_IsShorterThan(PyObject *self, PyObject *args, PyObject *kwargs) {
22527 PyObject *resultobj;
22528 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22529 wxTimeSpan *arg2 = 0 ;
22530 bool result;
22531 PyObject * obj0 = 0 ;
22532 PyObject * obj1 = 0 ;
22533 char *kwnames[] = {
22534 (char *) "self",(char *) "t", NULL
22535 };
22536
22537 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsShorterThan",kwnames,&obj0,&obj1)) goto fail;
22538 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22539 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22540 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22541 SWIG_POINTER_EXCEPTION | 0)) == -1)
22542 SWIG_fail;
22543 if (arg2 == NULL) {
22544 PyErr_SetString(PyExc_TypeError,"null reference");
22545 SWIG_fail;
22546 }
22547 {
22548 PyThreadState* __tstate = wxPyBeginAllowThreads();
22549 result = (bool)((wxTimeSpan const *)arg1)->IsShorterThan((wxTimeSpan const &)*arg2);
22550
22551 wxPyEndAllowThreads(__tstate);
22552 if (PyErr_Occurred()) SWIG_fail;
22553 }
22554 {
22555 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22556 }
22557 return resultobj;
22558 fail:
22559 return NULL;
22560 }
22561
22562
22563 static PyObject *_wrap_TimeSpan_GetWeeks(PyObject *self, PyObject *args, PyObject *kwargs) {
22564 PyObject *resultobj;
22565 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22566 int result;
22567 PyObject * obj0 = 0 ;
22568 char *kwnames[] = {
22569 (char *) "self", NULL
22570 };
22571
22572 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetWeeks",kwnames,&obj0)) goto fail;
22573 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22574 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22575 {
22576 PyThreadState* __tstate = wxPyBeginAllowThreads();
22577 result = (int)((wxTimeSpan const *)arg1)->GetWeeks();
22578
22579 wxPyEndAllowThreads(__tstate);
22580 if (PyErr_Occurred()) SWIG_fail;
22581 }
22582 resultobj = SWIG_FromInt((int)result);
22583 return resultobj;
22584 fail:
22585 return NULL;
22586 }
22587
22588
22589 static PyObject *_wrap_TimeSpan_GetDays(PyObject *self, PyObject *args, PyObject *kwargs) {
22590 PyObject *resultobj;
22591 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22592 int result;
22593 PyObject * obj0 = 0 ;
22594 char *kwnames[] = {
22595 (char *) "self", NULL
22596 };
22597
22598 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetDays",kwnames,&obj0)) goto fail;
22599 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22600 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22601 {
22602 PyThreadState* __tstate = wxPyBeginAllowThreads();
22603 result = (int)((wxTimeSpan const *)arg1)->GetDays();
22604
22605 wxPyEndAllowThreads(__tstate);
22606 if (PyErr_Occurred()) SWIG_fail;
22607 }
22608 resultobj = SWIG_FromInt((int)result);
22609 return resultobj;
22610 fail:
22611 return NULL;
22612 }
22613
22614
22615 static PyObject *_wrap_TimeSpan_GetHours(PyObject *self, PyObject *args, PyObject *kwargs) {
22616 PyObject *resultobj;
22617 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22618 int result;
22619 PyObject * obj0 = 0 ;
22620 char *kwnames[] = {
22621 (char *) "self", NULL
22622 };
22623
22624 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetHours",kwnames,&obj0)) goto fail;
22625 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22626 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22627 {
22628 PyThreadState* __tstate = wxPyBeginAllowThreads();
22629 result = (int)((wxTimeSpan const *)arg1)->GetHours();
22630
22631 wxPyEndAllowThreads(__tstate);
22632 if (PyErr_Occurred()) SWIG_fail;
22633 }
22634 resultobj = SWIG_FromInt((int)result);
22635 return resultobj;
22636 fail:
22637 return NULL;
22638 }
22639
22640
22641 static PyObject *_wrap_TimeSpan_GetMinutes(PyObject *self, PyObject *args, PyObject *kwargs) {
22642 PyObject *resultobj;
22643 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22644 int result;
22645 PyObject * obj0 = 0 ;
22646 char *kwnames[] = {
22647 (char *) "self", NULL
22648 };
22649
22650 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetMinutes",kwnames,&obj0)) goto fail;
22651 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22652 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22653 {
22654 PyThreadState* __tstate = wxPyBeginAllowThreads();
22655 result = (int)((wxTimeSpan const *)arg1)->GetMinutes();
22656
22657 wxPyEndAllowThreads(__tstate);
22658 if (PyErr_Occurred()) SWIG_fail;
22659 }
22660 resultobj = SWIG_FromInt((int)result);
22661 return resultobj;
22662 fail:
22663 return NULL;
22664 }
22665
22666
22667 static PyObject *_wrap_TimeSpan_GetSeconds(PyObject *self, PyObject *args, PyObject *kwargs) {
22668 PyObject *resultobj;
22669 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22670 wxLongLong result;
22671 PyObject * obj0 = 0 ;
22672 char *kwnames[] = {
22673 (char *) "self", NULL
22674 };
22675
22676 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetSeconds",kwnames,&obj0)) goto fail;
22677 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22678 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22679 {
22680 PyThreadState* __tstate = wxPyBeginAllowThreads();
22681 result = ((wxTimeSpan const *)arg1)->GetSeconds();
22682
22683 wxPyEndAllowThreads(__tstate);
22684 if (PyErr_Occurred()) SWIG_fail;
22685 }
22686 {
22687 PyObject *hi, *lo, *shifter, *shifted;
22688 hi = PyLong_FromLong( (&result)->GetHi() );
22689 lo = PyLong_FromLong( (&result)->GetLo() );
22690 shifter = PyLong_FromLong(32);
22691 shifted = PyNumber_Lshift(hi, shifter);
22692 resultobj = PyNumber_Or(shifted, lo);
22693 Py_DECREF(hi);
22694 Py_DECREF(lo);
22695 Py_DECREF(shifter);
22696 Py_DECREF(shifted);
22697 }
22698 return resultobj;
22699 fail:
22700 return NULL;
22701 }
22702
22703
22704 static PyObject *_wrap_TimeSpan_GetMilliseconds(PyObject *self, PyObject *args, PyObject *kwargs) {
22705 PyObject *resultobj;
22706 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22707 wxLongLong result;
22708 PyObject * obj0 = 0 ;
22709 char *kwnames[] = {
22710 (char *) "self", NULL
22711 };
22712
22713 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetMilliseconds",kwnames,&obj0)) goto fail;
22714 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22715 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22716 {
22717 PyThreadState* __tstate = wxPyBeginAllowThreads();
22718 result = ((wxTimeSpan const *)arg1)->GetMilliseconds();
22719
22720 wxPyEndAllowThreads(__tstate);
22721 if (PyErr_Occurred()) SWIG_fail;
22722 }
22723 {
22724 PyObject *hi, *lo, *shifter, *shifted;
22725 hi = PyLong_FromLong( (&result)->GetHi() );
22726 lo = PyLong_FromLong( (&result)->GetLo() );
22727 shifter = PyLong_FromLong(32);
22728 shifted = PyNumber_Lshift(hi, shifter);
22729 resultobj = PyNumber_Or(shifted, lo);
22730 Py_DECREF(hi);
22731 Py_DECREF(lo);
22732 Py_DECREF(shifter);
22733 Py_DECREF(shifted);
22734 }
22735 return resultobj;
22736 fail:
22737 return NULL;
22738 }
22739
22740
22741 static PyObject *_wrap_TimeSpan_Format(PyObject *self, PyObject *args, PyObject *kwargs) {
22742 PyObject *resultobj;
22743 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22744 wxString const &arg2_defvalue = wxPyTimeSpanFormatStr ;
22745 wxString *arg2 = (wxString *) &arg2_defvalue ;
22746 wxString result;
22747 bool temp2 = False ;
22748 PyObject * obj0 = 0 ;
22749 PyObject * obj1 = 0 ;
22750 char *kwnames[] = {
22751 (char *) "self",(char *) "format", NULL
22752 };
22753
22754 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TimeSpan_Format",kwnames,&obj0,&obj1)) goto fail;
22755 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22756 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22757 if (obj1) {
22758 {
22759 arg2 = wxString_in_helper(obj1);
22760 if (arg2 == NULL) SWIG_fail;
22761 temp2 = True;
22762 }
22763 }
22764 {
22765 PyThreadState* __tstate = wxPyBeginAllowThreads();
22766 result = ((wxTimeSpan const *)arg1)->Format((wxString const &)*arg2);
22767
22768 wxPyEndAllowThreads(__tstate);
22769 if (PyErr_Occurred()) SWIG_fail;
22770 }
22771 {
22772 #if wxUSE_UNICODE
22773 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
22774 #else
22775 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
22776 #endif
22777 }
22778 {
22779 if (temp2)
22780 delete arg2;
22781 }
22782 return resultobj;
22783 fail:
22784 {
22785 if (temp2)
22786 delete arg2;
22787 }
22788 return NULL;
22789 }
22790
22791
22792 static PyObject * TimeSpan_swigregister(PyObject *self, PyObject *args) {
22793 PyObject *obj;
22794 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
22795 SWIG_TypeClientData(SWIGTYPE_p_wxTimeSpan, obj);
22796 Py_INCREF(obj);
22797 return Py_BuildValue((char *)"");
22798 }
22799 static PyObject *_wrap_new_DateSpan(PyObject *self, PyObject *args, PyObject *kwargs) {
22800 PyObject *resultobj;
22801 int arg1 = (int) 0 ;
22802 int arg2 = (int) 0 ;
22803 int arg3 = (int) 0 ;
22804 int arg4 = (int) 0 ;
22805 wxDateSpan *result;
22806 PyObject * obj0 = 0 ;
22807 PyObject * obj1 = 0 ;
22808 PyObject * obj2 = 0 ;
22809 PyObject * obj3 = 0 ;
22810 char *kwnames[] = {
22811 (char *) "years",(char *) "months",(char *) "weeks",(char *) "days", NULL
22812 };
22813
22814 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_DateSpan",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
22815 if (obj0) {
22816 arg1 = (int) SWIG_AsInt(obj0);
22817 if (PyErr_Occurred()) SWIG_fail;
22818 }
22819 if (obj1) {
22820 arg2 = (int) SWIG_AsInt(obj1);
22821 if (PyErr_Occurred()) SWIG_fail;
22822 }
22823 if (obj2) {
22824 arg3 = (int) SWIG_AsInt(obj2);
22825 if (PyErr_Occurred()) SWIG_fail;
22826 }
22827 if (obj3) {
22828 arg4 = (int) SWIG_AsInt(obj3);
22829 if (PyErr_Occurred()) SWIG_fail;
22830 }
22831 {
22832 PyThreadState* __tstate = wxPyBeginAllowThreads();
22833 result = (wxDateSpan *)new wxDateSpan(arg1,arg2,arg3,arg4);
22834
22835 wxPyEndAllowThreads(__tstate);
22836 if (PyErr_Occurred()) SWIG_fail;
22837 }
22838 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 1);
22839 return resultobj;
22840 fail:
22841 return NULL;
22842 }
22843
22844
22845 static PyObject *_wrap_delete_DateSpan(PyObject *self, PyObject *args, PyObject *kwargs) {
22846 PyObject *resultobj;
22847 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
22848 PyObject * obj0 = 0 ;
22849 char *kwnames[] = {
22850 (char *) "self", NULL
22851 };
22852
22853 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DateSpan",kwnames,&obj0)) goto fail;
22854 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
22855 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22856 {
22857 PyThreadState* __tstate = wxPyBeginAllowThreads();
22858 delete arg1;
22859
22860 wxPyEndAllowThreads(__tstate);
22861 if (PyErr_Occurred()) SWIG_fail;
22862 }
22863 Py_INCREF(Py_None); resultobj = Py_None;
22864 return resultobj;
22865 fail:
22866 return NULL;
22867 }
22868
22869
22870 static PyObject *_wrap_DateSpan_Days(PyObject *self, PyObject *args, PyObject *kwargs) {
22871 PyObject *resultobj;
22872 int arg1 ;
22873 wxDateSpan result;
22874 PyObject * obj0 = 0 ;
22875 char *kwnames[] = {
22876 (char *) "days", NULL
22877 };
22878
22879 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Days",kwnames,&obj0)) goto fail;
22880 arg1 = (int) SWIG_AsInt(obj0);
22881 if (PyErr_Occurred()) SWIG_fail;
22882 {
22883 PyThreadState* __tstate = wxPyBeginAllowThreads();
22884 result = wxDateSpan::Days(arg1);
22885
22886 wxPyEndAllowThreads(__tstate);
22887 if (PyErr_Occurred()) SWIG_fail;
22888 }
22889 {
22890 wxDateSpan * resultptr;
22891 resultptr = new wxDateSpan((wxDateSpan &) result);
22892 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
22893 }
22894 return resultobj;
22895 fail:
22896 return NULL;
22897 }
22898
22899
22900 static PyObject *_wrap_DateSpan_Day(PyObject *self, PyObject *args, PyObject *kwargs) {
22901 PyObject *resultobj;
22902 wxDateSpan result;
22903 char *kwnames[] = {
22904 NULL
22905 };
22906
22907 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Day",kwnames)) goto fail;
22908 {
22909 PyThreadState* __tstate = wxPyBeginAllowThreads();
22910 result = wxDateSpan::Day();
22911
22912 wxPyEndAllowThreads(__tstate);
22913 if (PyErr_Occurred()) SWIG_fail;
22914 }
22915 {
22916 wxDateSpan * resultptr;
22917 resultptr = new wxDateSpan((wxDateSpan &) result);
22918 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
22919 }
22920 return resultobj;
22921 fail:
22922 return NULL;
22923 }
22924
22925
22926 static PyObject *_wrap_DateSpan_Weeks(PyObject *self, PyObject *args, PyObject *kwargs) {
22927 PyObject *resultobj;
22928 int arg1 ;
22929 wxDateSpan result;
22930 PyObject * obj0 = 0 ;
22931 char *kwnames[] = {
22932 (char *) "weeks", NULL
22933 };
22934
22935 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Weeks",kwnames,&obj0)) goto fail;
22936 arg1 = (int) SWIG_AsInt(obj0);
22937 if (PyErr_Occurred()) SWIG_fail;
22938 {
22939 PyThreadState* __tstate = wxPyBeginAllowThreads();
22940 result = wxDateSpan::Weeks(arg1);
22941
22942 wxPyEndAllowThreads(__tstate);
22943 if (PyErr_Occurred()) SWIG_fail;
22944 }
22945 {
22946 wxDateSpan * resultptr;
22947 resultptr = new wxDateSpan((wxDateSpan &) result);
22948 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
22949 }
22950 return resultobj;
22951 fail:
22952 return NULL;
22953 }
22954
22955
22956 static PyObject *_wrap_DateSpan_Week(PyObject *self, PyObject *args, PyObject *kwargs) {
22957 PyObject *resultobj;
22958 wxDateSpan result;
22959 char *kwnames[] = {
22960 NULL
22961 };
22962
22963 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Week",kwnames)) goto fail;
22964 {
22965 PyThreadState* __tstate = wxPyBeginAllowThreads();
22966 result = wxDateSpan::Week();
22967
22968 wxPyEndAllowThreads(__tstate);
22969 if (PyErr_Occurred()) SWIG_fail;
22970 }
22971 {
22972 wxDateSpan * resultptr;
22973 resultptr = new wxDateSpan((wxDateSpan &) result);
22974 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
22975 }
22976 return resultobj;
22977 fail:
22978 return NULL;
22979 }
22980
22981
22982 static PyObject *_wrap_DateSpan_Months(PyObject *self, PyObject *args, PyObject *kwargs) {
22983 PyObject *resultobj;
22984 int arg1 ;
22985 wxDateSpan result;
22986 PyObject * obj0 = 0 ;
22987 char *kwnames[] = {
22988 (char *) "mon", NULL
22989 };
22990
22991 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Months",kwnames,&obj0)) goto fail;
22992 arg1 = (int) SWIG_AsInt(obj0);
22993 if (PyErr_Occurred()) SWIG_fail;
22994 {
22995 PyThreadState* __tstate = wxPyBeginAllowThreads();
22996 result = wxDateSpan::Months(arg1);
22997
22998 wxPyEndAllowThreads(__tstate);
22999 if (PyErr_Occurred()) SWIG_fail;
23000 }
23001 {
23002 wxDateSpan * resultptr;
23003 resultptr = new wxDateSpan((wxDateSpan &) result);
23004 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
23005 }
23006 return resultobj;
23007 fail:
23008 return NULL;
23009 }
23010
23011
23012 static PyObject *_wrap_DateSpan_Month(PyObject *self, PyObject *args, PyObject *kwargs) {
23013 PyObject *resultobj;
23014 wxDateSpan result;
23015 char *kwnames[] = {
23016 NULL
23017 };
23018
23019 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Month",kwnames)) goto fail;
23020 {
23021 PyThreadState* __tstate = wxPyBeginAllowThreads();
23022 result = wxDateSpan::Month();
23023
23024 wxPyEndAllowThreads(__tstate);
23025 if (PyErr_Occurred()) SWIG_fail;
23026 }
23027 {
23028 wxDateSpan * resultptr;
23029 resultptr = new wxDateSpan((wxDateSpan &) result);
23030 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
23031 }
23032 return resultobj;
23033 fail:
23034 return NULL;
23035 }
23036
23037
23038 static PyObject *_wrap_DateSpan_Years(PyObject *self, PyObject *args, PyObject *kwargs) {
23039 PyObject *resultobj;
23040 int arg1 ;
23041 wxDateSpan result;
23042 PyObject * obj0 = 0 ;
23043 char *kwnames[] = {
23044 (char *) "years", NULL
23045 };
23046
23047 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Years",kwnames,&obj0)) goto fail;
23048 arg1 = (int) SWIG_AsInt(obj0);
23049 if (PyErr_Occurred()) SWIG_fail;
23050 {
23051 PyThreadState* __tstate = wxPyBeginAllowThreads();
23052 result = wxDateSpan::Years(arg1);
23053
23054 wxPyEndAllowThreads(__tstate);
23055 if (PyErr_Occurred()) SWIG_fail;
23056 }
23057 {
23058 wxDateSpan * resultptr;
23059 resultptr = new wxDateSpan((wxDateSpan &) result);
23060 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
23061 }
23062 return resultobj;
23063 fail:
23064 return NULL;
23065 }
23066
23067
23068 static PyObject *_wrap_DateSpan_Year(PyObject *self, PyObject *args, PyObject *kwargs) {
23069 PyObject *resultobj;
23070 wxDateSpan result;
23071 char *kwnames[] = {
23072 NULL
23073 };
23074
23075 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Year",kwnames)) goto fail;
23076 {
23077 PyThreadState* __tstate = wxPyBeginAllowThreads();
23078 result = wxDateSpan::Year();
23079
23080 wxPyEndAllowThreads(__tstate);
23081 if (PyErr_Occurred()) SWIG_fail;
23082 }
23083 {
23084 wxDateSpan * resultptr;
23085 resultptr = new wxDateSpan((wxDateSpan &) result);
23086 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
23087 }
23088 return resultobj;
23089 fail:
23090 return NULL;
23091 }
23092
23093
23094 static PyObject *_wrap_DateSpan_SetYears(PyObject *self, PyObject *args, PyObject *kwargs) {
23095 PyObject *resultobj;
23096 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23097 int arg2 ;
23098 wxDateSpan *result;
23099 PyObject * obj0 = 0 ;
23100 PyObject * obj1 = 0 ;
23101 char *kwnames[] = {
23102 (char *) "self",(char *) "n", NULL
23103 };
23104
23105 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetYears",kwnames,&obj0,&obj1)) goto fail;
23106 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23107 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23108 arg2 = (int) SWIG_AsInt(obj1);
23109 if (PyErr_Occurred()) SWIG_fail;
23110 {
23111 PyThreadState* __tstate = wxPyBeginAllowThreads();
23112 {
23113 wxDateSpan &_result_ref = (arg1)->SetYears(arg2);
23114 result = (wxDateSpan *) &_result_ref;
23115 }
23116
23117 wxPyEndAllowThreads(__tstate);
23118 if (PyErr_Occurred()) SWIG_fail;
23119 }
23120 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23121 return resultobj;
23122 fail:
23123 return NULL;
23124 }
23125
23126
23127 static PyObject *_wrap_DateSpan_SetMonths(PyObject *self, PyObject *args, PyObject *kwargs) {
23128 PyObject *resultobj;
23129 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23130 int arg2 ;
23131 wxDateSpan *result;
23132 PyObject * obj0 = 0 ;
23133 PyObject * obj1 = 0 ;
23134 char *kwnames[] = {
23135 (char *) "self",(char *) "n", NULL
23136 };
23137
23138 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetMonths",kwnames,&obj0,&obj1)) goto fail;
23139 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23140 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23141 arg2 = (int) SWIG_AsInt(obj1);
23142 if (PyErr_Occurred()) SWIG_fail;
23143 {
23144 PyThreadState* __tstate = wxPyBeginAllowThreads();
23145 {
23146 wxDateSpan &_result_ref = (arg1)->SetMonths(arg2);
23147 result = (wxDateSpan *) &_result_ref;
23148 }
23149
23150 wxPyEndAllowThreads(__tstate);
23151 if (PyErr_Occurred()) SWIG_fail;
23152 }
23153 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23154 return resultobj;
23155 fail:
23156 return NULL;
23157 }
23158
23159
23160 static PyObject *_wrap_DateSpan_SetWeeks(PyObject *self, PyObject *args, PyObject *kwargs) {
23161 PyObject *resultobj;
23162 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23163 int arg2 ;
23164 wxDateSpan *result;
23165 PyObject * obj0 = 0 ;
23166 PyObject * obj1 = 0 ;
23167 char *kwnames[] = {
23168 (char *) "self",(char *) "n", NULL
23169 };
23170
23171 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetWeeks",kwnames,&obj0,&obj1)) goto fail;
23172 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23173 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23174 arg2 = (int) SWIG_AsInt(obj1);
23175 if (PyErr_Occurred()) SWIG_fail;
23176 {
23177 PyThreadState* __tstate = wxPyBeginAllowThreads();
23178 {
23179 wxDateSpan &_result_ref = (arg1)->SetWeeks(arg2);
23180 result = (wxDateSpan *) &_result_ref;
23181 }
23182
23183 wxPyEndAllowThreads(__tstate);
23184 if (PyErr_Occurred()) SWIG_fail;
23185 }
23186 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23187 return resultobj;
23188 fail:
23189 return NULL;
23190 }
23191
23192
23193 static PyObject *_wrap_DateSpan_SetDays(PyObject *self, PyObject *args, PyObject *kwargs) {
23194 PyObject *resultobj;
23195 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23196 int arg2 ;
23197 wxDateSpan *result;
23198 PyObject * obj0 = 0 ;
23199 PyObject * obj1 = 0 ;
23200 char *kwnames[] = {
23201 (char *) "self",(char *) "n", NULL
23202 };
23203
23204 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetDays",kwnames,&obj0,&obj1)) goto fail;
23205 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23206 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23207 arg2 = (int) SWIG_AsInt(obj1);
23208 if (PyErr_Occurred()) SWIG_fail;
23209 {
23210 PyThreadState* __tstate = wxPyBeginAllowThreads();
23211 {
23212 wxDateSpan &_result_ref = (arg1)->SetDays(arg2);
23213 result = (wxDateSpan *) &_result_ref;
23214 }
23215
23216 wxPyEndAllowThreads(__tstate);
23217 if (PyErr_Occurred()) SWIG_fail;
23218 }
23219 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23220 return resultobj;
23221 fail:
23222 return NULL;
23223 }
23224
23225
23226 static PyObject *_wrap_DateSpan_GetYears(PyObject *self, PyObject *args, PyObject *kwargs) {
23227 PyObject *resultobj;
23228 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23229 int result;
23230 PyObject * obj0 = 0 ;
23231 char *kwnames[] = {
23232 (char *) "self", NULL
23233 };
23234
23235 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetYears",kwnames,&obj0)) goto fail;
23236 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23237 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23238 {
23239 PyThreadState* __tstate = wxPyBeginAllowThreads();
23240 result = (int)((wxDateSpan const *)arg1)->GetYears();
23241
23242 wxPyEndAllowThreads(__tstate);
23243 if (PyErr_Occurred()) SWIG_fail;
23244 }
23245 resultobj = SWIG_FromInt((int)result);
23246 return resultobj;
23247 fail:
23248 return NULL;
23249 }
23250
23251
23252 static PyObject *_wrap_DateSpan_GetMonths(PyObject *self, PyObject *args, PyObject *kwargs) {
23253 PyObject *resultobj;
23254 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23255 int result;
23256 PyObject * obj0 = 0 ;
23257 char *kwnames[] = {
23258 (char *) "self", NULL
23259 };
23260
23261 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetMonths",kwnames,&obj0)) goto fail;
23262 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23263 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23264 {
23265 PyThreadState* __tstate = wxPyBeginAllowThreads();
23266 result = (int)((wxDateSpan const *)arg1)->GetMonths();
23267
23268 wxPyEndAllowThreads(__tstate);
23269 if (PyErr_Occurred()) SWIG_fail;
23270 }
23271 resultobj = SWIG_FromInt((int)result);
23272 return resultobj;
23273 fail:
23274 return NULL;
23275 }
23276
23277
23278 static PyObject *_wrap_DateSpan_GetWeeks(PyObject *self, PyObject *args, PyObject *kwargs) {
23279 PyObject *resultobj;
23280 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23281 int result;
23282 PyObject * obj0 = 0 ;
23283 char *kwnames[] = {
23284 (char *) "self", NULL
23285 };
23286
23287 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetWeeks",kwnames,&obj0)) goto fail;
23288 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23289 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23290 {
23291 PyThreadState* __tstate = wxPyBeginAllowThreads();
23292 result = (int)((wxDateSpan const *)arg1)->GetWeeks();
23293
23294 wxPyEndAllowThreads(__tstate);
23295 if (PyErr_Occurred()) SWIG_fail;
23296 }
23297 resultobj = SWIG_FromInt((int)result);
23298 return resultobj;
23299 fail:
23300 return NULL;
23301 }
23302
23303
23304 static PyObject *_wrap_DateSpan_GetDays(PyObject *self, PyObject *args, PyObject *kwargs) {
23305 PyObject *resultobj;
23306 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23307 int result;
23308 PyObject * obj0 = 0 ;
23309 char *kwnames[] = {
23310 (char *) "self", NULL
23311 };
23312
23313 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetDays",kwnames,&obj0)) goto fail;
23314 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23315 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23316 {
23317 PyThreadState* __tstate = wxPyBeginAllowThreads();
23318 result = (int)((wxDateSpan const *)arg1)->GetDays();
23319
23320 wxPyEndAllowThreads(__tstate);
23321 if (PyErr_Occurred()) SWIG_fail;
23322 }
23323 resultobj = SWIG_FromInt((int)result);
23324 return resultobj;
23325 fail:
23326 return NULL;
23327 }
23328
23329
23330 static PyObject *_wrap_DateSpan_GetTotalDays(PyObject *self, PyObject *args, PyObject *kwargs) {
23331 PyObject *resultobj;
23332 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23333 int result;
23334 PyObject * obj0 = 0 ;
23335 char *kwnames[] = {
23336 (char *) "self", NULL
23337 };
23338
23339 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetTotalDays",kwnames,&obj0)) goto fail;
23340 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23341 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23342 {
23343 PyThreadState* __tstate = wxPyBeginAllowThreads();
23344 result = (int)((wxDateSpan const *)arg1)->GetTotalDays();
23345
23346 wxPyEndAllowThreads(__tstate);
23347 if (PyErr_Occurred()) SWIG_fail;
23348 }
23349 resultobj = SWIG_FromInt((int)result);
23350 return resultobj;
23351 fail:
23352 return NULL;
23353 }
23354
23355
23356 static PyObject *_wrap_DateSpan_Add(PyObject *self, PyObject *args, PyObject *kwargs) {
23357 PyObject *resultobj;
23358 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23359 wxDateSpan *arg2 = 0 ;
23360 wxDateSpan *result;
23361 PyObject * obj0 = 0 ;
23362 PyObject * obj1 = 0 ;
23363 char *kwnames[] = {
23364 (char *) "self",(char *) "other", NULL
23365 };
23366
23367 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Add",kwnames,&obj0,&obj1)) goto fail;
23368 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23369 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23370 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23371 SWIG_POINTER_EXCEPTION | 0)) == -1)
23372 SWIG_fail;
23373 if (arg2 == NULL) {
23374 PyErr_SetString(PyExc_TypeError,"null reference");
23375 SWIG_fail;
23376 }
23377 {
23378 PyThreadState* __tstate = wxPyBeginAllowThreads();
23379 {
23380 wxDateSpan &_result_ref = (arg1)->Add((wxDateSpan const &)*arg2);
23381 result = (wxDateSpan *) &_result_ref;
23382 }
23383
23384 wxPyEndAllowThreads(__tstate);
23385 if (PyErr_Occurred()) SWIG_fail;
23386 }
23387 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23388 return resultobj;
23389 fail:
23390 return NULL;
23391 }
23392
23393
23394 static PyObject *_wrap_DateSpan_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) {
23395 PyObject *resultobj;
23396 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23397 wxDateSpan *arg2 = 0 ;
23398 wxDateSpan *result;
23399 PyObject * obj0 = 0 ;
23400 PyObject * obj1 = 0 ;
23401 char *kwnames[] = {
23402 (char *) "self",(char *) "other", NULL
23403 };
23404
23405 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Subtract",kwnames,&obj0,&obj1)) goto fail;
23406 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23407 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23408 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23409 SWIG_POINTER_EXCEPTION | 0)) == -1)
23410 SWIG_fail;
23411 if (arg2 == NULL) {
23412 PyErr_SetString(PyExc_TypeError,"null reference");
23413 SWIG_fail;
23414 }
23415 {
23416 PyThreadState* __tstate = wxPyBeginAllowThreads();
23417 {
23418 wxDateSpan &_result_ref = (arg1)->Subtract((wxDateSpan const &)*arg2);
23419 result = (wxDateSpan *) &_result_ref;
23420 }
23421
23422 wxPyEndAllowThreads(__tstate);
23423 if (PyErr_Occurred()) SWIG_fail;
23424 }
23425 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23426 return resultobj;
23427 fail:
23428 return NULL;
23429 }
23430
23431
23432 static PyObject *_wrap_DateSpan_Neg(PyObject *self, PyObject *args, PyObject *kwargs) {
23433 PyObject *resultobj;
23434 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23435 wxDateSpan *result;
23436 PyObject * obj0 = 0 ;
23437 char *kwnames[] = {
23438 (char *) "self", NULL
23439 };
23440
23441 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Neg",kwnames,&obj0)) goto fail;
23442 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23443 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23444 {
23445 PyThreadState* __tstate = wxPyBeginAllowThreads();
23446 {
23447 wxDateSpan &_result_ref = (arg1)->Neg();
23448 result = (wxDateSpan *) &_result_ref;
23449 }
23450
23451 wxPyEndAllowThreads(__tstate);
23452 if (PyErr_Occurred()) SWIG_fail;
23453 }
23454 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23455 return resultobj;
23456 fail:
23457 return NULL;
23458 }
23459
23460
23461 static PyObject *_wrap_DateSpan_Multiply(PyObject *self, PyObject *args, PyObject *kwargs) {
23462 PyObject *resultobj;
23463 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23464 int arg2 ;
23465 wxDateSpan *result;
23466 PyObject * obj0 = 0 ;
23467 PyObject * obj1 = 0 ;
23468 char *kwnames[] = {
23469 (char *) "self",(char *) "factor", NULL
23470 };
23471
23472 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Multiply",kwnames,&obj0,&obj1)) goto fail;
23473 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23474 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23475 arg2 = (int) SWIG_AsInt(obj1);
23476 if (PyErr_Occurred()) SWIG_fail;
23477 {
23478 PyThreadState* __tstate = wxPyBeginAllowThreads();
23479 {
23480 wxDateSpan &_result_ref = (arg1)->Multiply(arg2);
23481 result = (wxDateSpan *) &_result_ref;
23482 }
23483
23484 wxPyEndAllowThreads(__tstate);
23485 if (PyErr_Occurred()) SWIG_fail;
23486 }
23487 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23488 return resultobj;
23489 fail:
23490 return NULL;
23491 }
23492
23493
23494 static PyObject *_wrap_DateSpan___iadd__(PyObject *self, PyObject *args, PyObject *kwargs) {
23495 PyObject *resultobj;
23496 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23497 wxDateSpan *arg2 = 0 ;
23498 wxDateSpan *result;
23499 PyObject * obj0 = 0 ;
23500 PyObject * obj1 = 0 ;
23501 char *kwnames[] = {
23502 (char *) "self",(char *) "other", NULL
23503 };
23504
23505 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___iadd__",kwnames,&obj0,&obj1)) goto fail;
23506 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23507 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23508 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23509 SWIG_POINTER_EXCEPTION | 0)) == -1)
23510 SWIG_fail;
23511 if (arg2 == NULL) {
23512 PyErr_SetString(PyExc_TypeError,"null reference");
23513 SWIG_fail;
23514 }
23515 {
23516 PyThreadState* __tstate = wxPyBeginAllowThreads();
23517 {
23518 wxDateSpan &_result_ref = (arg1)->operator +=((wxDateSpan const &)*arg2);
23519 result = (wxDateSpan *) &_result_ref;
23520 }
23521
23522 wxPyEndAllowThreads(__tstate);
23523 if (PyErr_Occurred()) SWIG_fail;
23524 }
23525 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23526 return resultobj;
23527 fail:
23528 return NULL;
23529 }
23530
23531
23532 static PyObject *_wrap_DateSpan___isub__(PyObject *self, PyObject *args, PyObject *kwargs) {
23533 PyObject *resultobj;
23534 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23535 wxDateSpan *arg2 = 0 ;
23536 wxDateSpan *result;
23537 PyObject * obj0 = 0 ;
23538 PyObject * obj1 = 0 ;
23539 char *kwnames[] = {
23540 (char *) "self",(char *) "other", NULL
23541 };
23542
23543 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___isub__",kwnames,&obj0,&obj1)) goto fail;
23544 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23545 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23546 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23547 SWIG_POINTER_EXCEPTION | 0)) == -1)
23548 SWIG_fail;
23549 if (arg2 == NULL) {
23550 PyErr_SetString(PyExc_TypeError,"null reference");
23551 SWIG_fail;
23552 }
23553 {
23554 PyThreadState* __tstate = wxPyBeginAllowThreads();
23555 {
23556 wxDateSpan &_result_ref = (arg1)->operator -=((wxDateSpan const &)*arg2);
23557 result = (wxDateSpan *) &_result_ref;
23558 }
23559
23560 wxPyEndAllowThreads(__tstate);
23561 if (PyErr_Occurred()) SWIG_fail;
23562 }
23563 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23564 return resultobj;
23565 fail:
23566 return NULL;
23567 }
23568
23569
23570 static PyObject *_wrap_DateSpan___neg__(PyObject *self, PyObject *args, PyObject *kwargs) {
23571 PyObject *resultobj;
23572 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23573 wxDateSpan *result;
23574 PyObject * obj0 = 0 ;
23575 char *kwnames[] = {
23576 (char *) "self", NULL
23577 };
23578
23579 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan___neg__",kwnames,&obj0)) goto fail;
23580 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23581 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23582 {
23583 PyThreadState* __tstate = wxPyBeginAllowThreads();
23584 {
23585 wxDateSpan &_result_ref = (arg1)->operator -();
23586 result = (wxDateSpan *) &_result_ref;
23587 }
23588
23589 wxPyEndAllowThreads(__tstate);
23590 if (PyErr_Occurred()) SWIG_fail;
23591 }
23592 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23593 return resultobj;
23594 fail:
23595 return NULL;
23596 }
23597
23598
23599 static PyObject *_wrap_DateSpan___imul__(PyObject *self, PyObject *args, PyObject *kwargs) {
23600 PyObject *resultobj;
23601 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23602 int arg2 ;
23603 wxDateSpan *result;
23604 PyObject * obj0 = 0 ;
23605 PyObject * obj1 = 0 ;
23606 char *kwnames[] = {
23607 (char *) "self",(char *) "factor", NULL
23608 };
23609
23610 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___imul__",kwnames,&obj0,&obj1)) goto fail;
23611 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23612 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23613 arg2 = (int) SWIG_AsInt(obj1);
23614 if (PyErr_Occurred()) SWIG_fail;
23615 {
23616 PyThreadState* __tstate = wxPyBeginAllowThreads();
23617 {
23618 wxDateSpan &_result_ref = (arg1)->operator *=(arg2);
23619 result = (wxDateSpan *) &_result_ref;
23620 }
23621
23622 wxPyEndAllowThreads(__tstate);
23623 if (PyErr_Occurred()) SWIG_fail;
23624 }
23625 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23626 return resultobj;
23627 fail:
23628 return NULL;
23629 }
23630
23631
23632 static PyObject *_wrap_DateSpan___add__(PyObject *self, PyObject *args, PyObject *kwargs) {
23633 PyObject *resultobj;
23634 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23635 wxDateSpan *arg2 = 0 ;
23636 wxDateSpan result;
23637 PyObject * obj0 = 0 ;
23638 PyObject * obj1 = 0 ;
23639 char *kwnames[] = {
23640 (char *) "self",(char *) "other", NULL
23641 };
23642
23643 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___add__",kwnames,&obj0,&obj1)) goto fail;
23644 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23645 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23646 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23647 SWIG_POINTER_EXCEPTION | 0)) == -1)
23648 SWIG_fail;
23649 if (arg2 == NULL) {
23650 PyErr_SetString(PyExc_TypeError,"null reference");
23651 SWIG_fail;
23652 }
23653 {
23654 PyThreadState* __tstate = wxPyBeginAllowThreads();
23655 result = wxDateSpan___add__(arg1,(wxDateSpan const &)*arg2);
23656
23657 wxPyEndAllowThreads(__tstate);
23658 if (PyErr_Occurred()) SWIG_fail;
23659 }
23660 {
23661 wxDateSpan * resultptr;
23662 resultptr = new wxDateSpan((wxDateSpan &) result);
23663 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
23664 }
23665 return resultobj;
23666 fail:
23667 return NULL;
23668 }
23669
23670
23671 static PyObject *_wrap_DateSpan___sub__(PyObject *self, PyObject *args, PyObject *kwargs) {
23672 PyObject *resultobj;
23673 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23674 wxDateSpan *arg2 = 0 ;
23675 wxDateSpan result;
23676 PyObject * obj0 = 0 ;
23677 PyObject * obj1 = 0 ;
23678 char *kwnames[] = {
23679 (char *) "self",(char *) "other", NULL
23680 };
23681
23682 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___sub__",kwnames,&obj0,&obj1)) goto fail;
23683 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23684 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23685 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23686 SWIG_POINTER_EXCEPTION | 0)) == -1)
23687 SWIG_fail;
23688 if (arg2 == NULL) {
23689 PyErr_SetString(PyExc_TypeError,"null reference");
23690 SWIG_fail;
23691 }
23692 {
23693 PyThreadState* __tstate = wxPyBeginAllowThreads();
23694 result = wxDateSpan___sub__(arg1,(wxDateSpan const &)*arg2);
23695
23696 wxPyEndAllowThreads(__tstate);
23697 if (PyErr_Occurred()) SWIG_fail;
23698 }
23699 {
23700 wxDateSpan * resultptr;
23701 resultptr = new wxDateSpan((wxDateSpan &) result);
23702 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
23703 }
23704 return resultobj;
23705 fail:
23706 return NULL;
23707 }
23708
23709
23710 static PyObject *_wrap_DateSpan___mul__(PyObject *self, PyObject *args, PyObject *kwargs) {
23711 PyObject *resultobj;
23712 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23713 int arg2 ;
23714 wxDateSpan result;
23715 PyObject * obj0 = 0 ;
23716 PyObject * obj1 = 0 ;
23717 char *kwnames[] = {
23718 (char *) "self",(char *) "n", NULL
23719 };
23720
23721 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___mul__",kwnames,&obj0,&obj1)) goto fail;
23722 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23723 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23724 arg2 = (int) SWIG_AsInt(obj1);
23725 if (PyErr_Occurred()) SWIG_fail;
23726 {
23727 PyThreadState* __tstate = wxPyBeginAllowThreads();
23728 result = wxDateSpan___mul__(arg1,arg2);
23729
23730 wxPyEndAllowThreads(__tstate);
23731 if (PyErr_Occurred()) SWIG_fail;
23732 }
23733 {
23734 wxDateSpan * resultptr;
23735 resultptr = new wxDateSpan((wxDateSpan &) result);
23736 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
23737 }
23738 return resultobj;
23739 fail:
23740 return NULL;
23741 }
23742
23743
23744 static PyObject *_wrap_DateSpan___rmul__(PyObject *self, PyObject *args, PyObject *kwargs) {
23745 PyObject *resultobj;
23746 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23747 int arg2 ;
23748 wxDateSpan result;
23749 PyObject * obj0 = 0 ;
23750 PyObject * obj1 = 0 ;
23751 char *kwnames[] = {
23752 (char *) "self",(char *) "n", NULL
23753 };
23754
23755 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___rmul__",kwnames,&obj0,&obj1)) goto fail;
23756 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23757 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23758 arg2 = (int) SWIG_AsInt(obj1);
23759 if (PyErr_Occurred()) SWIG_fail;
23760 {
23761 PyThreadState* __tstate = wxPyBeginAllowThreads();
23762 result = wxDateSpan___rmul__(arg1,arg2);
23763
23764 wxPyEndAllowThreads(__tstate);
23765 if (PyErr_Occurred()) SWIG_fail;
23766 }
23767 {
23768 wxDateSpan * resultptr;
23769 resultptr = new wxDateSpan((wxDateSpan &) result);
23770 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
23771 }
23772 return resultobj;
23773 fail:
23774 return NULL;
23775 }
23776
23777
23778 static PyObject *_wrap_DateSpan___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
23779 PyObject *resultobj;
23780 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23781 wxDateSpan *arg2 = (wxDateSpan *) 0 ;
23782 bool result;
23783 PyObject * obj0 = 0 ;
23784 PyObject * obj1 = 0 ;
23785 char *kwnames[] = {
23786 (char *) "self",(char *) "other", NULL
23787 };
23788
23789 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___eq__",kwnames,&obj0,&obj1)) goto fail;
23790 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23791 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23792 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23793 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23794 {
23795 PyThreadState* __tstate = wxPyBeginAllowThreads();
23796 result = (bool)wxDateSpan___eq__(arg1,(wxDateSpan const *)arg2);
23797
23798 wxPyEndAllowThreads(__tstate);
23799 if (PyErr_Occurred()) SWIG_fail;
23800 }
23801 {
23802 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23803 }
23804 return resultobj;
23805 fail:
23806 return NULL;
23807 }
23808
23809
23810 static PyObject *_wrap_DateSpan___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
23811 PyObject *resultobj;
23812 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23813 wxDateSpan *arg2 = (wxDateSpan *) 0 ;
23814 bool result;
23815 PyObject * obj0 = 0 ;
23816 PyObject * obj1 = 0 ;
23817 char *kwnames[] = {
23818 (char *) "self",(char *) "other", NULL
23819 };
23820
23821 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___ne__",kwnames,&obj0,&obj1)) goto fail;
23822 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23823 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23824 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23825 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23826 {
23827 PyThreadState* __tstate = wxPyBeginAllowThreads();
23828 result = (bool)wxDateSpan___ne__(arg1,(wxDateSpan const *)arg2);
23829
23830 wxPyEndAllowThreads(__tstate);
23831 if (PyErr_Occurred()) SWIG_fail;
23832 }
23833 {
23834 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23835 }
23836 return resultobj;
23837 fail:
23838 return NULL;
23839 }
23840
23841
23842 static PyObject * DateSpan_swigregister(PyObject *self, PyObject *args) {
23843 PyObject *obj;
23844 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
23845 SWIG_TypeClientData(SWIGTYPE_p_wxDateSpan, obj);
23846 Py_INCREF(obj);
23847 return Py_BuildValue((char *)"");
23848 }
23849 static PyObject *_wrap_GetLocalTime(PyObject *self, PyObject *args, PyObject *kwargs) {
23850 PyObject *resultobj;
23851 long result;
23852 char *kwnames[] = {
23853 NULL
23854 };
23855
23856 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocalTime",kwnames)) goto fail;
23857 {
23858 PyThreadState* __tstate = wxPyBeginAllowThreads();
23859 result = (long)wxGetLocalTime();
23860
23861 wxPyEndAllowThreads(__tstate);
23862 if (PyErr_Occurred()) SWIG_fail;
23863 }
23864 resultobj = SWIG_FromLong((long)result);
23865 return resultobj;
23866 fail:
23867 return NULL;
23868 }
23869
23870
23871 static PyObject *_wrap_GetUTCTime(PyObject *self, PyObject *args, PyObject *kwargs) {
23872 PyObject *resultobj;
23873 long result;
23874 char *kwnames[] = {
23875 NULL
23876 };
23877
23878 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUTCTime",kwnames)) goto fail;
23879 {
23880 PyThreadState* __tstate = wxPyBeginAllowThreads();
23881 result = (long)wxGetUTCTime();
23882
23883 wxPyEndAllowThreads(__tstate);
23884 if (PyErr_Occurred()) SWIG_fail;
23885 }
23886 resultobj = SWIG_FromLong((long)result);
23887 return resultobj;
23888 fail:
23889 return NULL;
23890 }
23891
23892
23893 static PyObject *_wrap_GetCurrentTime(PyObject *self, PyObject *args, PyObject *kwargs) {
23894 PyObject *resultobj;
23895 long result;
23896 char *kwnames[] = {
23897 NULL
23898 };
23899
23900 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetCurrentTime",kwnames)) goto fail;
23901 {
23902 PyThreadState* __tstate = wxPyBeginAllowThreads();
23903 result = (long)wxGetCurrentTime();
23904
23905 wxPyEndAllowThreads(__tstate);
23906 if (PyErr_Occurred()) SWIG_fail;
23907 }
23908 resultobj = SWIG_FromLong((long)result);
23909 return resultobj;
23910 fail:
23911 return NULL;
23912 }
23913
23914
23915 static PyObject *_wrap_GetLocalTimeMillis(PyObject *self, PyObject *args, PyObject *kwargs) {
23916 PyObject *resultobj;
23917 wxLongLong result;
23918 char *kwnames[] = {
23919 NULL
23920 };
23921
23922 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocalTimeMillis",kwnames)) goto fail;
23923 {
23924 PyThreadState* __tstate = wxPyBeginAllowThreads();
23925 result = wxGetLocalTimeMillis();
23926
23927 wxPyEndAllowThreads(__tstate);
23928 if (PyErr_Occurred()) SWIG_fail;
23929 }
23930 {
23931 PyObject *hi, *lo, *shifter, *shifted;
23932 hi = PyLong_FromLong( (&result)->GetHi() );
23933 lo = PyLong_FromLong( (&result)->GetLo() );
23934 shifter = PyLong_FromLong(32);
23935 shifted = PyNumber_Lshift(hi, shifter);
23936 resultobj = PyNumber_Or(shifted, lo);
23937 Py_DECREF(hi);
23938 Py_DECREF(lo);
23939 Py_DECREF(shifter);
23940 Py_DECREF(shifted);
23941 }
23942 return resultobj;
23943 fail:
23944 return NULL;
23945 }
23946
23947
23948 static int _wrap_DefaultDateTime_set(PyObject *_val) {
23949 PyErr_SetString(PyExc_TypeError,"Variable DefaultDateTime is read-only.");
23950 return 1;
23951 }
23952
23953
23954 static PyObject *_wrap_DefaultDateTime_get() {
23955 PyObject *pyobj;
23956
23957 pyobj = SWIG_NewPointerObj((void *)(&wxDefaultDateTime), SWIGTYPE_p_wxDateTime, 0);
23958 return pyobj;
23959 }
23960
23961
23962 static PyObject *_wrap_new_DataFormat(PyObject *self, PyObject *args, PyObject *kwargs) {
23963 PyObject *resultobj;
23964 int arg1 ;
23965 wxDataFormat *result;
23966 PyObject * obj0 = 0 ;
23967 char *kwnames[] = {
23968 (char *) "type", NULL
23969 };
23970
23971 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DataFormat",kwnames,&obj0)) goto fail;
23972 arg1 = (wxDataFormatId) SWIG_AsInt(obj0);
23973 if (PyErr_Occurred()) SWIG_fail;
23974 {
23975 PyThreadState* __tstate = wxPyBeginAllowThreads();
23976 result = (wxDataFormat *)new wxDataFormat((wxDataFormatId )arg1);
23977
23978 wxPyEndAllowThreads(__tstate);
23979 if (PyErr_Occurred()) SWIG_fail;
23980 }
23981 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataFormat, 1);
23982 return resultobj;
23983 fail:
23984 return NULL;
23985 }
23986
23987
23988 static PyObject *_wrap_new_CustomDataFormat(PyObject *self, PyObject *args, PyObject *kwargs) {
23989 PyObject *resultobj;
23990 wxString *arg1 = 0 ;
23991 wxDataFormat *result;
23992 bool temp1 = False ;
23993 PyObject * obj0 = 0 ;
23994 char *kwnames[] = {
23995 (char *) "format", NULL
23996 };
23997
23998 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CustomDataFormat",kwnames,&obj0)) goto fail;
23999 {
24000 arg1 = wxString_in_helper(obj0);
24001 if (arg1 == NULL) SWIG_fail;
24002 temp1 = True;
24003 }
24004 {
24005 PyThreadState* __tstate = wxPyBeginAllowThreads();
24006 result = (wxDataFormat *)new wxDataFormat((wxString const &)*arg1);
24007
24008 wxPyEndAllowThreads(__tstate);
24009 if (PyErr_Occurred()) SWIG_fail;
24010 }
24011 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataFormat, 1);
24012 {
24013 if (temp1)
24014 delete arg1;
24015 }
24016 return resultobj;
24017 fail:
24018 {
24019 if (temp1)
24020 delete arg1;
24021 }
24022 return NULL;
24023 }
24024
24025
24026 static PyObject *_wrap_delete_DataFormat(PyObject *self, PyObject *args, PyObject *kwargs) {
24027 PyObject *resultobj;
24028 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
24029 PyObject * obj0 = 0 ;
24030 char *kwnames[] = {
24031 (char *) "self", NULL
24032 };
24033
24034 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DataFormat",kwnames,&obj0)) goto fail;
24035 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24036 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24037 {
24038 PyThreadState* __tstate = wxPyBeginAllowThreads();
24039 delete arg1;
24040
24041 wxPyEndAllowThreads(__tstate);
24042 if (PyErr_Occurred()) SWIG_fail;
24043 }
24044 Py_INCREF(Py_None); resultobj = Py_None;
24045 return resultobj;
24046 fail:
24047 return NULL;
24048 }
24049
24050
24051 static PyObject *_wrap_DataFormat___eq____SWIG_0(PyObject *self, PyObject *args) {
24052 PyObject *resultobj;
24053 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
24054 int arg2 ;
24055 bool result;
24056 PyObject * obj0 = 0 ;
24057 PyObject * obj1 = 0 ;
24058
24059 if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___eq__",&obj0,&obj1)) goto fail;
24060 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24061 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24062 arg2 = (wxDataFormatId) SWIG_AsInt(obj1);
24063 if (PyErr_Occurred()) SWIG_fail;
24064 {
24065 PyThreadState* __tstate = wxPyBeginAllowThreads();
24066 result = (bool)((wxDataFormat const *)arg1)->operator ==((wxDataFormatId )arg2);
24067
24068 wxPyEndAllowThreads(__tstate);
24069 if (PyErr_Occurred()) SWIG_fail;
24070 }
24071 {
24072 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24073 }
24074 return resultobj;
24075 fail:
24076 return NULL;
24077 }
24078
24079
24080 static PyObject *_wrap_DataFormat___ne____SWIG_0(PyObject *self, PyObject *args) {
24081 PyObject *resultobj;
24082 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
24083 int arg2 ;
24084 bool result;
24085 PyObject * obj0 = 0 ;
24086 PyObject * obj1 = 0 ;
24087
24088 if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___ne__",&obj0,&obj1)) goto fail;
24089 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24090 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24091 arg2 = (wxDataFormatId) SWIG_AsInt(obj1);
24092 if (PyErr_Occurred()) SWIG_fail;
24093 {
24094 PyThreadState* __tstate = wxPyBeginAllowThreads();
24095 result = (bool)((wxDataFormat const *)arg1)->operator !=((wxDataFormatId )arg2);
24096
24097 wxPyEndAllowThreads(__tstate);
24098 if (PyErr_Occurred()) SWIG_fail;
24099 }
24100 {
24101 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24102 }
24103 return resultobj;
24104 fail:
24105 return NULL;
24106 }
24107
24108
24109 static PyObject *_wrap_DataFormat___eq____SWIG_1(PyObject *self, PyObject *args) {
24110 PyObject *resultobj;
24111 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
24112 wxDataFormat *arg2 = 0 ;
24113 bool result;
24114 PyObject * obj0 = 0 ;
24115 PyObject * obj1 = 0 ;
24116
24117 if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___eq__",&obj0,&obj1)) goto fail;
24118 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24119 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24120 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
24121 SWIG_POINTER_EXCEPTION | 0)) == -1)
24122 SWIG_fail;
24123 if (arg2 == NULL) {
24124 PyErr_SetString(PyExc_TypeError,"null reference");
24125 SWIG_fail;
24126 }
24127 {
24128 PyThreadState* __tstate = wxPyBeginAllowThreads();
24129 result = (bool)((wxDataFormat const *)arg1)->operator ==((wxDataFormat const &)*arg2);
24130
24131 wxPyEndAllowThreads(__tstate);
24132 if (PyErr_Occurred()) SWIG_fail;
24133 }
24134 {
24135 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24136 }
24137 return resultobj;
24138 fail:
24139 return NULL;
24140 }
24141
24142
24143 static PyObject *_wrap_DataFormat___eq__(PyObject *self, PyObject *args) {
24144 int argc;
24145 PyObject *argv[3];
24146 int ii;
24147
24148 argc = PyObject_Length(args);
24149 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
24150 argv[ii] = PyTuple_GetItem(args,ii);
24151 }
24152 if (argc == 2) {
24153 int _v;
24154 {
24155 void *ptr;
24156 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
24157 _v = 0;
24158 PyErr_Clear();
24159 } else {
24160 _v = 1;
24161 }
24162 }
24163 if (_v) {
24164 {
24165 void *ptr;
24166 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
24167 _v = 0;
24168 PyErr_Clear();
24169 } else {
24170 _v = 1;
24171 }
24172 }
24173 if (_v) {
24174 return _wrap_DataFormat___eq____SWIG_1(self,args);
24175 }
24176 }
24177 }
24178 if (argc == 2) {
24179 int _v;
24180 {
24181 void *ptr;
24182 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
24183 _v = 0;
24184 PyErr_Clear();
24185 } else {
24186 _v = 1;
24187 }
24188 }
24189 if (_v) {
24190 _v = SWIG_CheckInt(argv[1]);
24191 if (_v) {
24192 return _wrap_DataFormat___eq____SWIG_0(self,args);
24193 }
24194 }
24195 }
24196
24197 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DataFormat___eq__'");
24198 return NULL;
24199 }
24200
24201
24202 static PyObject *_wrap_DataFormat___ne____SWIG_1(PyObject *self, PyObject *args) {
24203 PyObject *resultobj;
24204 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
24205 wxDataFormat *arg2 = 0 ;
24206 bool result;
24207 PyObject * obj0 = 0 ;
24208 PyObject * obj1 = 0 ;
24209
24210 if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___ne__",&obj0,&obj1)) goto fail;
24211 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24212 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24213 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
24214 SWIG_POINTER_EXCEPTION | 0)) == -1)
24215 SWIG_fail;
24216 if (arg2 == NULL) {
24217 PyErr_SetString(PyExc_TypeError,"null reference");
24218 SWIG_fail;
24219 }
24220 {
24221 PyThreadState* __tstate = wxPyBeginAllowThreads();
24222 result = (bool)((wxDataFormat const *)arg1)->operator !=((wxDataFormat const &)*arg2);
24223
24224 wxPyEndAllowThreads(__tstate);
24225 if (PyErr_Occurred()) SWIG_fail;
24226 }
24227 {
24228 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24229 }
24230 return resultobj;
24231 fail:
24232 return NULL;
24233 }
24234
24235
24236 static PyObject *_wrap_DataFormat___ne__(PyObject *self, PyObject *args) {
24237 int argc;
24238 PyObject *argv[3];
24239 int ii;
24240
24241 argc = PyObject_Length(args);
24242 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
24243 argv[ii] = PyTuple_GetItem(args,ii);
24244 }
24245 if (argc == 2) {
24246 int _v;
24247 {
24248 void *ptr;
24249 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
24250 _v = 0;
24251 PyErr_Clear();
24252 } else {
24253 _v = 1;
24254 }
24255 }
24256 if (_v) {
24257 {
24258 void *ptr;
24259 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
24260 _v = 0;
24261 PyErr_Clear();
24262 } else {
24263 _v = 1;
24264 }
24265 }
24266 if (_v) {
24267 return _wrap_DataFormat___ne____SWIG_1(self,args);
24268 }
24269 }
24270 }
24271 if (argc == 2) {
24272 int _v;
24273 {
24274 void *ptr;
24275 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
24276 _v = 0;
24277 PyErr_Clear();
24278 } else {
24279 _v = 1;
24280 }
24281 }
24282 if (_v) {
24283 _v = SWIG_CheckInt(argv[1]);
24284 if (_v) {
24285 return _wrap_DataFormat___ne____SWIG_0(self,args);
24286 }
24287 }
24288 }
24289
24290 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DataFormat___ne__'");
24291 return NULL;
24292 }
24293
24294
24295 static PyObject *_wrap_DataFormat_SetType(PyObject *self, PyObject *args, PyObject *kwargs) {
24296 PyObject *resultobj;
24297 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
24298 int arg2 ;
24299 PyObject * obj0 = 0 ;
24300 PyObject * obj1 = 0 ;
24301 char *kwnames[] = {
24302 (char *) "self",(char *) "format", NULL
24303 };
24304
24305 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataFormat_SetType",kwnames,&obj0,&obj1)) goto fail;
24306 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24307 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24308 arg2 = (wxDataFormatId) SWIG_AsInt(obj1);
24309 if (PyErr_Occurred()) SWIG_fail;
24310 {
24311 PyThreadState* __tstate = wxPyBeginAllowThreads();
24312 (arg1)->SetType((wxDataFormatId )arg2);
24313
24314 wxPyEndAllowThreads(__tstate);
24315 if (PyErr_Occurred()) SWIG_fail;
24316 }
24317 Py_INCREF(Py_None); resultobj = Py_None;
24318 return resultobj;
24319 fail:
24320 return NULL;
24321 }
24322
24323
24324 static PyObject *_wrap_DataFormat_GetType(PyObject *self, PyObject *args, PyObject *kwargs) {
24325 PyObject *resultobj;
24326 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
24327 int result;
24328 PyObject * obj0 = 0 ;
24329 char *kwnames[] = {
24330 (char *) "self", NULL
24331 };
24332
24333 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataFormat_GetType",kwnames,&obj0)) goto fail;
24334 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24335 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24336 {
24337 PyThreadState* __tstate = wxPyBeginAllowThreads();
24338 result = (int)((wxDataFormat const *)arg1)->GetType();
24339
24340 wxPyEndAllowThreads(__tstate);
24341 if (PyErr_Occurred()) SWIG_fail;
24342 }
24343 resultobj = SWIG_FromInt((int)result);
24344 return resultobj;
24345 fail:
24346 return NULL;
24347 }
24348
24349
24350 static PyObject *_wrap_DataFormat_GetId(PyObject *self, PyObject *args, PyObject *kwargs) {
24351 PyObject *resultobj;
24352 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
24353 wxString result;
24354 PyObject * obj0 = 0 ;
24355 char *kwnames[] = {
24356 (char *) "self", NULL
24357 };
24358
24359 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataFormat_GetId",kwnames,&obj0)) goto fail;
24360 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24361 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24362 {
24363 PyThreadState* __tstate = wxPyBeginAllowThreads();
24364 result = ((wxDataFormat const *)arg1)->GetId();
24365
24366 wxPyEndAllowThreads(__tstate);
24367 if (PyErr_Occurred()) SWIG_fail;
24368 }
24369 {
24370 #if wxUSE_UNICODE
24371 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
24372 #else
24373 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
24374 #endif
24375 }
24376 return resultobj;
24377 fail:
24378 return NULL;
24379 }
24380
24381
24382 static PyObject *_wrap_DataFormat_SetId(PyObject *self, PyObject *args, PyObject *kwargs) {
24383 PyObject *resultobj;
24384 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
24385 wxString *arg2 = 0 ;
24386 bool temp2 = False ;
24387 PyObject * obj0 = 0 ;
24388 PyObject * obj1 = 0 ;
24389 char *kwnames[] = {
24390 (char *) "self",(char *) "format", NULL
24391 };
24392
24393 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataFormat_SetId",kwnames,&obj0,&obj1)) goto fail;
24394 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24395 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24396 {
24397 arg2 = wxString_in_helper(obj1);
24398 if (arg2 == NULL) SWIG_fail;
24399 temp2 = True;
24400 }
24401 {
24402 PyThreadState* __tstate = wxPyBeginAllowThreads();
24403 (arg1)->SetId((wxString const &)*arg2);
24404
24405 wxPyEndAllowThreads(__tstate);
24406 if (PyErr_Occurred()) SWIG_fail;
24407 }
24408 Py_INCREF(Py_None); resultobj = Py_None;
24409 {
24410 if (temp2)
24411 delete arg2;
24412 }
24413 return resultobj;
24414 fail:
24415 {
24416 if (temp2)
24417 delete arg2;
24418 }
24419 return NULL;
24420 }
24421
24422
24423 static PyObject * DataFormat_swigregister(PyObject *self, PyObject *args) {
24424 PyObject *obj;
24425 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24426 SWIG_TypeClientData(SWIGTYPE_p_wxDataFormat, obj);
24427 Py_INCREF(obj);
24428 return Py_BuildValue((char *)"");
24429 }
24430 static int _wrap_FormatInvalid_set(PyObject *_val) {
24431 PyErr_SetString(PyExc_TypeError,"Variable FormatInvalid is read-only.");
24432 return 1;
24433 }
24434
24435
24436 static PyObject *_wrap_FormatInvalid_get() {
24437 PyObject *pyobj;
24438
24439 pyobj = SWIG_NewPointerObj((void *)(&wxFormatInvalid), SWIGTYPE_p_wxDataFormat, 0);
24440 return pyobj;
24441 }
24442
24443
24444 static PyObject *_wrap_delete_DataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
24445 PyObject *resultobj;
24446 wxDataObject *arg1 = (wxDataObject *) 0 ;
24447 PyObject * obj0 = 0 ;
24448 char *kwnames[] = {
24449 (char *) "self", NULL
24450 };
24451
24452 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DataObject",kwnames,&obj0)) goto fail;
24453 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24454 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24455 {
24456 PyThreadState* __tstate = wxPyBeginAllowThreads();
24457 delete arg1;
24458
24459 wxPyEndAllowThreads(__tstate);
24460 if (PyErr_Occurred()) SWIG_fail;
24461 }
24462 Py_INCREF(Py_None); resultobj = Py_None;
24463 return resultobj;
24464 fail:
24465 return NULL;
24466 }
24467
24468
24469 static PyObject *_wrap_DataObject_GetPreferredFormat(PyObject *self, PyObject *args, PyObject *kwargs) {
24470 PyObject *resultobj;
24471 wxDataObject *arg1 = (wxDataObject *) 0 ;
24472 int arg2 = (int) wxDataObject::Get ;
24473 SwigValueWrapper< wxDataFormat > result;
24474 PyObject * obj0 = 0 ;
24475 PyObject * obj1 = 0 ;
24476 char *kwnames[] = {
24477 (char *) "self",(char *) "dir", NULL
24478 };
24479
24480 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DataObject_GetPreferredFormat",kwnames,&obj0,&obj1)) goto fail;
24481 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24482 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24483 if (obj1) {
24484 arg2 = (wxDataObject::Direction) SWIG_AsInt(obj1);
24485 if (PyErr_Occurred()) SWIG_fail;
24486 }
24487 {
24488 PyThreadState* __tstate = wxPyBeginAllowThreads();
24489 result = ((wxDataObject const *)arg1)->GetPreferredFormat((wxDataObject::Direction )arg2);
24490
24491 wxPyEndAllowThreads(__tstate);
24492 if (PyErr_Occurred()) SWIG_fail;
24493 }
24494 {
24495 wxDataFormat * resultptr;
24496 resultptr = new wxDataFormat((wxDataFormat &) result);
24497 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDataFormat, 1);
24498 }
24499 return resultobj;
24500 fail:
24501 return NULL;
24502 }
24503
24504
24505 static PyObject *_wrap_DataObject_GetFormatCount(PyObject *self, PyObject *args, PyObject *kwargs) {
24506 PyObject *resultobj;
24507 wxDataObject *arg1 = (wxDataObject *) 0 ;
24508 int arg2 = (int) wxDataObject::Get ;
24509 size_t result;
24510 PyObject * obj0 = 0 ;
24511 PyObject * obj1 = 0 ;
24512 char *kwnames[] = {
24513 (char *) "self",(char *) "dir", NULL
24514 };
24515
24516 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DataObject_GetFormatCount",kwnames,&obj0,&obj1)) goto fail;
24517 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24518 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24519 if (obj1) {
24520 arg2 = (wxDataObject::Direction) SWIG_AsInt(obj1);
24521 if (PyErr_Occurred()) SWIG_fail;
24522 }
24523 {
24524 PyThreadState* __tstate = wxPyBeginAllowThreads();
24525 result = (size_t)((wxDataObject const *)arg1)->GetFormatCount((wxDataObject::Direction )arg2);
24526
24527 wxPyEndAllowThreads(__tstate);
24528 if (PyErr_Occurred()) SWIG_fail;
24529 }
24530 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
24531 return resultobj;
24532 fail:
24533 return NULL;
24534 }
24535
24536
24537 static PyObject *_wrap_DataObject_IsSupported(PyObject *self, PyObject *args, PyObject *kwargs) {
24538 PyObject *resultobj;
24539 wxDataObject *arg1 = (wxDataObject *) 0 ;
24540 wxDataFormat *arg2 = 0 ;
24541 int arg3 = (int) wxDataObject::Get ;
24542 bool result;
24543 PyObject * obj0 = 0 ;
24544 PyObject * obj1 = 0 ;
24545 PyObject * obj2 = 0 ;
24546 char *kwnames[] = {
24547 (char *) "self",(char *) "format",(char *) "dir", NULL
24548 };
24549
24550 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DataObject_IsSupported",kwnames,&obj0,&obj1,&obj2)) goto fail;
24551 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24552 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24553 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
24554 SWIG_POINTER_EXCEPTION | 0)) == -1)
24555 SWIG_fail;
24556 if (arg2 == NULL) {
24557 PyErr_SetString(PyExc_TypeError,"null reference");
24558 SWIG_fail;
24559 }
24560 if (obj2) {
24561 arg3 = (wxDataObject::Direction) SWIG_AsInt(obj2);
24562 if (PyErr_Occurred()) SWIG_fail;
24563 }
24564 {
24565 PyThreadState* __tstate = wxPyBeginAllowThreads();
24566 result = (bool)((wxDataObject const *)arg1)->IsSupported((wxDataFormat const &)*arg2,(wxDataObject::Direction )arg3);
24567
24568 wxPyEndAllowThreads(__tstate);
24569 if (PyErr_Occurred()) SWIG_fail;
24570 }
24571 {
24572 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24573 }
24574 return resultobj;
24575 fail:
24576 return NULL;
24577 }
24578
24579
24580 static PyObject *_wrap_DataObject_GetDataSize(PyObject *self, PyObject *args, PyObject *kwargs) {
24581 PyObject *resultobj;
24582 wxDataObject *arg1 = (wxDataObject *) 0 ;
24583 wxDataFormat *arg2 = 0 ;
24584 size_t result;
24585 PyObject * obj0 = 0 ;
24586 PyObject * obj1 = 0 ;
24587 char *kwnames[] = {
24588 (char *) "self",(char *) "format", NULL
24589 };
24590
24591 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObject_GetDataSize",kwnames,&obj0,&obj1)) goto fail;
24592 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24593 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24594 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
24595 SWIG_POINTER_EXCEPTION | 0)) == -1)
24596 SWIG_fail;
24597 if (arg2 == NULL) {
24598 PyErr_SetString(PyExc_TypeError,"null reference");
24599 SWIG_fail;
24600 }
24601 {
24602 PyThreadState* __tstate = wxPyBeginAllowThreads();
24603 result = (size_t)((wxDataObject const *)arg1)->GetDataSize((wxDataFormat const &)*arg2);
24604
24605 wxPyEndAllowThreads(__tstate);
24606 if (PyErr_Occurred()) SWIG_fail;
24607 }
24608 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
24609 return resultobj;
24610 fail:
24611 return NULL;
24612 }
24613
24614
24615 static PyObject *_wrap_DataObject_GetAllFormats(PyObject *self, PyObject *args, PyObject *kwargs) {
24616 PyObject *resultobj;
24617 wxDataObject *arg1 = (wxDataObject *) 0 ;
24618 int arg2 = (int) wxDataObject::Get ;
24619 PyObject *result;
24620 PyObject * obj0 = 0 ;
24621 PyObject * obj1 = 0 ;
24622 char *kwnames[] = {
24623 (char *) "self",(char *) "dir", NULL
24624 };
24625
24626 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DataObject_GetAllFormats",kwnames,&obj0,&obj1)) goto fail;
24627 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24628 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24629 if (obj1) {
24630 arg2 = (wxDataObject::Direction) SWIG_AsInt(obj1);
24631 if (PyErr_Occurred()) SWIG_fail;
24632 }
24633 {
24634 PyThreadState* __tstate = wxPyBeginAllowThreads();
24635 result = (PyObject *)wxDataObject_GetAllFormats(arg1,(wxDataObject::Direction )arg2);
24636
24637 wxPyEndAllowThreads(__tstate);
24638 if (PyErr_Occurred()) SWIG_fail;
24639 }
24640 resultobj = result;
24641 return resultobj;
24642 fail:
24643 return NULL;
24644 }
24645
24646
24647 static PyObject *_wrap_DataObject_GetDataHere(PyObject *self, PyObject *args, PyObject *kwargs) {
24648 PyObject *resultobj;
24649 wxDataObject *arg1 = (wxDataObject *) 0 ;
24650 wxDataFormat *arg2 = 0 ;
24651 PyObject *result;
24652 PyObject * obj0 = 0 ;
24653 PyObject * obj1 = 0 ;
24654 char *kwnames[] = {
24655 (char *) "self",(char *) "format", NULL
24656 };
24657
24658 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObject_GetDataHere",kwnames,&obj0,&obj1)) goto fail;
24659 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24660 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24661 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
24662 SWIG_POINTER_EXCEPTION | 0)) == -1)
24663 SWIG_fail;
24664 if (arg2 == NULL) {
24665 PyErr_SetString(PyExc_TypeError,"null reference");
24666 SWIG_fail;
24667 }
24668 {
24669 PyThreadState* __tstate = wxPyBeginAllowThreads();
24670 result = (PyObject *)wxDataObject_GetDataHere(arg1,(wxDataFormat const &)*arg2);
24671
24672 wxPyEndAllowThreads(__tstate);
24673 if (PyErr_Occurred()) SWIG_fail;
24674 }
24675 resultobj = result;
24676 return resultobj;
24677 fail:
24678 return NULL;
24679 }
24680
24681
24682 static PyObject *_wrap_DataObject_SetData(PyObject *self, PyObject *args, PyObject *kwargs) {
24683 PyObject *resultobj;
24684 wxDataObject *arg1 = (wxDataObject *) 0 ;
24685 wxDataFormat *arg2 = 0 ;
24686 PyObject *arg3 = (PyObject *) 0 ;
24687 bool result;
24688 PyObject * obj0 = 0 ;
24689 PyObject * obj1 = 0 ;
24690 PyObject * obj2 = 0 ;
24691 char *kwnames[] = {
24692 (char *) "self",(char *) "format",(char *) "data", NULL
24693 };
24694
24695 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DataObject_SetData",kwnames,&obj0,&obj1,&obj2)) goto fail;
24696 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24697 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24698 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
24699 SWIG_POINTER_EXCEPTION | 0)) == -1)
24700 SWIG_fail;
24701 if (arg2 == NULL) {
24702 PyErr_SetString(PyExc_TypeError,"null reference");
24703 SWIG_fail;
24704 }
24705 arg3 = obj2;
24706 {
24707 PyThreadState* __tstate = wxPyBeginAllowThreads();
24708 result = (bool)wxDataObject_SetData(arg1,(wxDataFormat const &)*arg2,arg3);
24709
24710 wxPyEndAllowThreads(__tstate);
24711 if (PyErr_Occurred()) SWIG_fail;
24712 }
24713 {
24714 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24715 }
24716 return resultobj;
24717 fail:
24718 return NULL;
24719 }
24720
24721
24722 static PyObject * DataObject_swigregister(PyObject *self, PyObject *args) {
24723 PyObject *obj;
24724 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24725 SWIG_TypeClientData(SWIGTYPE_p_wxDataObject, obj);
24726 Py_INCREF(obj);
24727 return Py_BuildValue((char *)"");
24728 }
24729 static PyObject *_wrap_new_DataObjectSimple(PyObject *self, PyObject *args, PyObject *kwargs) {
24730 PyObject *resultobj;
24731 wxDataFormat const &arg1_defvalue = wxFormatInvalid ;
24732 wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ;
24733 wxDataObjectSimple *result;
24734 PyObject * obj0 = 0 ;
24735 char *kwnames[] = {
24736 (char *) "format", NULL
24737 };
24738
24739 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_DataObjectSimple",kwnames,&obj0)) goto fail;
24740 if (obj0) {
24741 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24742 SWIG_POINTER_EXCEPTION | 0)) == -1)
24743 SWIG_fail;
24744 if (arg1 == NULL) {
24745 PyErr_SetString(PyExc_TypeError,"null reference");
24746 SWIG_fail;
24747 }
24748 }
24749 {
24750 PyThreadState* __tstate = wxPyBeginAllowThreads();
24751 result = (wxDataObjectSimple *)new wxDataObjectSimple((wxDataFormat const &)*arg1);
24752
24753 wxPyEndAllowThreads(__tstate);
24754 if (PyErr_Occurred()) SWIG_fail;
24755 }
24756 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObjectSimple, 1);
24757 return resultobj;
24758 fail:
24759 return NULL;
24760 }
24761
24762
24763 static PyObject *_wrap_DataObjectSimple_GetFormat(PyObject *self, PyObject *args, PyObject *kwargs) {
24764 PyObject *resultobj;
24765 wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ;
24766 wxDataFormat *result;
24767 PyObject * obj0 = 0 ;
24768 char *kwnames[] = {
24769 (char *) "self", NULL
24770 };
24771
24772 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataObjectSimple_GetFormat",kwnames,&obj0)) goto fail;
24773 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple,
24774 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24775 {
24776 PyThreadState* __tstate = wxPyBeginAllowThreads();
24777 {
24778 wxDataFormat const &_result_ref = (arg1)->GetFormat();
24779 result = (wxDataFormat *) &_result_ref;
24780 }
24781
24782 wxPyEndAllowThreads(__tstate);
24783 if (PyErr_Occurred()) SWIG_fail;
24784 }
24785 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataFormat, 0);
24786 return resultobj;
24787 fail:
24788 return NULL;
24789 }
24790
24791
24792 static PyObject *_wrap_DataObjectSimple_SetFormat(PyObject *self, PyObject *args, PyObject *kwargs) {
24793 PyObject *resultobj;
24794 wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ;
24795 wxDataFormat *arg2 = 0 ;
24796 PyObject * obj0 = 0 ;
24797 PyObject * obj1 = 0 ;
24798 char *kwnames[] = {
24799 (char *) "self",(char *) "format", NULL
24800 };
24801
24802 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObjectSimple_SetFormat",kwnames,&obj0,&obj1)) goto fail;
24803 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple,
24804 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24805 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
24806 SWIG_POINTER_EXCEPTION | 0)) == -1)
24807 SWIG_fail;
24808 if (arg2 == NULL) {
24809 PyErr_SetString(PyExc_TypeError,"null reference");
24810 SWIG_fail;
24811 }
24812 {
24813 PyThreadState* __tstate = wxPyBeginAllowThreads();
24814 (arg1)->SetFormat((wxDataFormat const &)*arg2);
24815
24816 wxPyEndAllowThreads(__tstate);
24817 if (PyErr_Occurred()) SWIG_fail;
24818 }
24819 Py_INCREF(Py_None); resultobj = Py_None;
24820 return resultobj;
24821 fail:
24822 return NULL;
24823 }
24824
24825
24826 static PyObject *_wrap_DataObjectSimple_GetDataSize(PyObject *self, PyObject *args, PyObject *kwargs) {
24827 PyObject *resultobj;
24828 wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ;
24829 size_t result;
24830 PyObject * obj0 = 0 ;
24831 char *kwnames[] = {
24832 (char *) "self", NULL
24833 };
24834
24835 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataObjectSimple_GetDataSize",kwnames,&obj0)) goto fail;
24836 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple,
24837 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24838 {
24839 PyThreadState* __tstate = wxPyBeginAllowThreads();
24840 result = (size_t)((wxDataObjectSimple const *)arg1)->GetDataSize();
24841
24842 wxPyEndAllowThreads(__tstate);
24843 if (PyErr_Occurred()) SWIG_fail;
24844 }
24845 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
24846 return resultobj;
24847 fail:
24848 return NULL;
24849 }
24850
24851
24852 static PyObject *_wrap_DataObjectSimple_GetDataHere(PyObject *self, PyObject *args, PyObject *kwargs) {
24853 PyObject *resultobj;
24854 wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ;
24855 PyObject *result;
24856 PyObject * obj0 = 0 ;
24857 char *kwnames[] = {
24858 (char *) "self", NULL
24859 };
24860
24861 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataObjectSimple_GetDataHere",kwnames,&obj0)) goto fail;
24862 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple,
24863 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24864 {
24865 PyThreadState* __tstate = wxPyBeginAllowThreads();
24866 result = (PyObject *)wxDataObjectSimple_GetDataHere(arg1);
24867
24868 wxPyEndAllowThreads(__tstate);
24869 if (PyErr_Occurred()) SWIG_fail;
24870 }
24871 resultobj = result;
24872 return resultobj;
24873 fail:
24874 return NULL;
24875 }
24876
24877
24878 static PyObject *_wrap_DataObjectSimple_SetData(PyObject *self, PyObject *args, PyObject *kwargs) {
24879 PyObject *resultobj;
24880 wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ;
24881 PyObject *arg2 = (PyObject *) 0 ;
24882 bool result;
24883 PyObject * obj0 = 0 ;
24884 PyObject * obj1 = 0 ;
24885 char *kwnames[] = {
24886 (char *) "self",(char *) "data", NULL
24887 };
24888
24889 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObjectSimple_SetData",kwnames,&obj0,&obj1)) goto fail;
24890 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple,
24891 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24892 arg2 = obj1;
24893 {
24894 PyThreadState* __tstate = wxPyBeginAllowThreads();
24895 result = (bool)wxDataObjectSimple_SetData(arg1,arg2);
24896
24897 wxPyEndAllowThreads(__tstate);
24898 if (PyErr_Occurred()) SWIG_fail;
24899 }
24900 {
24901 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24902 }
24903 return resultobj;
24904 fail:
24905 return NULL;
24906 }
24907
24908
24909 static PyObject * DataObjectSimple_swigregister(PyObject *self, PyObject *args) {
24910 PyObject *obj;
24911 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24912 SWIG_TypeClientData(SWIGTYPE_p_wxDataObjectSimple, obj);
24913 Py_INCREF(obj);
24914 return Py_BuildValue((char *)"");
24915 }
24916 static PyObject *_wrap_new_PyDataObjectSimple(PyObject *self, PyObject *args, PyObject *kwargs) {
24917 PyObject *resultobj;
24918 wxDataFormat const &arg1_defvalue = wxFormatInvalid ;
24919 wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ;
24920 wxPyDataObjectSimple *result;
24921 PyObject * obj0 = 0 ;
24922 char *kwnames[] = {
24923 (char *) "format", NULL
24924 };
24925
24926 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyDataObjectSimple",kwnames,&obj0)) goto fail;
24927 if (obj0) {
24928 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24929 SWIG_POINTER_EXCEPTION | 0)) == -1)
24930 SWIG_fail;
24931 if (arg1 == NULL) {
24932 PyErr_SetString(PyExc_TypeError,"null reference");
24933 SWIG_fail;
24934 }
24935 }
24936 {
24937 PyThreadState* __tstate = wxPyBeginAllowThreads();
24938 result = (wxPyDataObjectSimple *)new wxPyDataObjectSimple((wxDataFormat const &)*arg1);
24939
24940 wxPyEndAllowThreads(__tstate);
24941 if (PyErr_Occurred()) SWIG_fail;
24942 }
24943 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDataObjectSimple, 1);
24944 return resultobj;
24945 fail:
24946 return NULL;
24947 }
24948
24949
24950 static PyObject *_wrap_PyDataObjectSimple__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
24951 PyObject *resultobj;
24952 wxPyDataObjectSimple *arg1 = (wxPyDataObjectSimple *) 0 ;
24953 PyObject *arg2 = (PyObject *) 0 ;
24954 PyObject *arg3 = (PyObject *) 0 ;
24955 PyObject * obj0 = 0 ;
24956 PyObject * obj1 = 0 ;
24957 PyObject * obj2 = 0 ;
24958 char *kwnames[] = {
24959 (char *) "self",(char *) "self",(char *) "_class", NULL
24960 };
24961
24962 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyDataObjectSimple__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
24963 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDataObjectSimple,
24964 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24965 arg2 = obj1;
24966 arg3 = obj2;
24967 {
24968 PyThreadState* __tstate = wxPyBeginAllowThreads();
24969 (arg1)->_setCallbackInfo(arg2,arg3);
24970
24971 wxPyEndAllowThreads(__tstate);
24972 if (PyErr_Occurred()) SWIG_fail;
24973 }
24974 Py_INCREF(Py_None); resultobj = Py_None;
24975 return resultobj;
24976 fail:
24977 return NULL;
24978 }
24979
24980
24981 static PyObject * PyDataObjectSimple_swigregister(PyObject *self, PyObject *args) {
24982 PyObject *obj;
24983 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24984 SWIG_TypeClientData(SWIGTYPE_p_wxPyDataObjectSimple, obj);
24985 Py_INCREF(obj);
24986 return Py_BuildValue((char *)"");
24987 }
24988 static PyObject *_wrap_new_DataObjectComposite(PyObject *self, PyObject *args, PyObject *kwargs) {
24989 PyObject *resultobj;
24990 wxDataObjectComposite *result;
24991 char *kwnames[] = {
24992 NULL
24993 };
24994
24995 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DataObjectComposite",kwnames)) goto fail;
24996 {
24997 PyThreadState* __tstate = wxPyBeginAllowThreads();
24998 result = (wxDataObjectComposite *)new wxDataObjectComposite();
24999
25000 wxPyEndAllowThreads(__tstate);
25001 if (PyErr_Occurred()) SWIG_fail;
25002 }
25003 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObjectComposite, 1);
25004 return resultobj;
25005 fail:
25006 return NULL;
25007 }
25008
25009
25010 static PyObject *_wrap_DataObjectComposite_Add(PyObject *self, PyObject *args, PyObject *kwargs) {
25011 PyObject *resultobj;
25012 wxDataObjectComposite *arg1 = (wxDataObjectComposite *) 0 ;
25013 wxDataObjectSimple *arg2 = (wxDataObjectSimple *) 0 ;
25014 bool arg3 = (bool) False ;
25015 PyObject * obj0 = 0 ;
25016 PyObject * obj1 = 0 ;
25017 PyObject * obj2 = 0 ;
25018 char *kwnames[] = {
25019 (char *) "self",(char *) "dataObject",(char *) "preferred", NULL
25020 };
25021
25022 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DataObjectComposite_Add",kwnames,&obj0,&obj1,&obj2)) goto fail;
25023 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectComposite,
25024 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25025 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObjectSimple,
25026 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
25027 if (obj2) {
25028 arg3 = (bool) SWIG_AsBool(obj2);
25029 if (PyErr_Occurred()) SWIG_fail;
25030 }
25031 {
25032 PyThreadState* __tstate = wxPyBeginAllowThreads();
25033 (arg1)->Add(arg2,arg3);
25034
25035 wxPyEndAllowThreads(__tstate);
25036 if (PyErr_Occurred()) SWIG_fail;
25037 }
25038 Py_INCREF(Py_None); resultobj = Py_None;
25039 return resultobj;
25040 fail:
25041 return NULL;
25042 }
25043
25044
25045 static PyObject * DataObjectComposite_swigregister(PyObject *self, PyObject *args) {
25046 PyObject *obj;
25047 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25048 SWIG_TypeClientData(SWIGTYPE_p_wxDataObjectComposite, obj);
25049 Py_INCREF(obj);
25050 return Py_BuildValue((char *)"");
25051 }
25052 static PyObject *_wrap_new_TextDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
25053 PyObject *resultobj;
25054 wxString const &arg1_defvalue = wxPyEmptyString ;
25055 wxString *arg1 = (wxString *) &arg1_defvalue ;
25056 wxTextDataObject *result;
25057 bool temp1 = False ;
25058 PyObject * obj0 = 0 ;
25059 char *kwnames[] = {
25060 (char *) "text", NULL
25061 };
25062
25063 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TextDataObject",kwnames,&obj0)) goto fail;
25064 if (obj0) {
25065 {
25066 arg1 = wxString_in_helper(obj0);
25067 if (arg1 == NULL) SWIG_fail;
25068 temp1 = True;
25069 }
25070 }
25071 {
25072 PyThreadState* __tstate = wxPyBeginAllowThreads();
25073 result = (wxTextDataObject *)new wxTextDataObject((wxString const &)*arg1);
25074
25075 wxPyEndAllowThreads(__tstate);
25076 if (PyErr_Occurred()) SWIG_fail;
25077 }
25078 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextDataObject, 1);
25079 {
25080 if (temp1)
25081 delete arg1;
25082 }
25083 return resultobj;
25084 fail:
25085 {
25086 if (temp1)
25087 delete arg1;
25088 }
25089 return NULL;
25090 }
25091
25092
25093 static PyObject *_wrap_TextDataObject_GetTextLength(PyObject *self, PyObject *args, PyObject *kwargs) {
25094 PyObject *resultobj;
25095 wxTextDataObject *arg1 = (wxTextDataObject *) 0 ;
25096 size_t result;
25097 PyObject * obj0 = 0 ;
25098 char *kwnames[] = {
25099 (char *) "self", NULL
25100 };
25101
25102 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDataObject_GetTextLength",kwnames,&obj0)) goto fail;
25103 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextDataObject,
25104 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25105 {
25106 PyThreadState* __tstate = wxPyBeginAllowThreads();
25107 result = (size_t)(arg1)->GetTextLength();
25108
25109 wxPyEndAllowThreads(__tstate);
25110 if (PyErr_Occurred()) SWIG_fail;
25111 }
25112 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
25113 return resultobj;
25114 fail:
25115 return NULL;
25116 }
25117
25118
25119 static PyObject *_wrap_TextDataObject_GetText(PyObject *self, PyObject *args, PyObject *kwargs) {
25120 PyObject *resultobj;
25121 wxTextDataObject *arg1 = (wxTextDataObject *) 0 ;
25122 wxString result;
25123 PyObject * obj0 = 0 ;
25124 char *kwnames[] = {
25125 (char *) "self", NULL
25126 };
25127
25128 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDataObject_GetText",kwnames,&obj0)) goto fail;
25129 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextDataObject,
25130 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25131 {
25132 PyThreadState* __tstate = wxPyBeginAllowThreads();
25133 result = (arg1)->GetText();
25134
25135 wxPyEndAllowThreads(__tstate);
25136 if (PyErr_Occurred()) SWIG_fail;
25137 }
25138 {
25139 #if wxUSE_UNICODE
25140 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
25141 #else
25142 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
25143 #endif
25144 }
25145 return resultobj;
25146 fail:
25147 return NULL;
25148 }
25149
25150
25151 static PyObject *_wrap_TextDataObject_SetText(PyObject *self, PyObject *args, PyObject *kwargs) {
25152 PyObject *resultobj;
25153 wxTextDataObject *arg1 = (wxTextDataObject *) 0 ;
25154 wxString *arg2 = 0 ;
25155 bool temp2 = False ;
25156 PyObject * obj0 = 0 ;
25157 PyObject * obj1 = 0 ;
25158 char *kwnames[] = {
25159 (char *) "self",(char *) "text", NULL
25160 };
25161
25162 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextDataObject_SetText",kwnames,&obj0,&obj1)) goto fail;
25163 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextDataObject,
25164 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25165 {
25166 arg2 = wxString_in_helper(obj1);
25167 if (arg2 == NULL) SWIG_fail;
25168 temp2 = True;
25169 }
25170 {
25171 PyThreadState* __tstate = wxPyBeginAllowThreads();
25172 (arg1)->SetText((wxString const &)*arg2);
25173
25174 wxPyEndAllowThreads(__tstate);
25175 if (PyErr_Occurred()) SWIG_fail;
25176 }
25177 Py_INCREF(Py_None); resultobj = Py_None;
25178 {
25179 if (temp2)
25180 delete arg2;
25181 }
25182 return resultobj;
25183 fail:
25184 {
25185 if (temp2)
25186 delete arg2;
25187 }
25188 return NULL;
25189 }
25190
25191
25192 static PyObject * TextDataObject_swigregister(PyObject *self, PyObject *args) {
25193 PyObject *obj;
25194 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25195 SWIG_TypeClientData(SWIGTYPE_p_wxTextDataObject, obj);
25196 Py_INCREF(obj);
25197 return Py_BuildValue((char *)"");
25198 }
25199 static PyObject *_wrap_new_PyTextDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
25200 PyObject *resultobj;
25201 wxString const &arg1_defvalue = wxPyEmptyString ;
25202 wxString *arg1 = (wxString *) &arg1_defvalue ;
25203 wxPyTextDataObject *result;
25204 bool temp1 = False ;
25205 PyObject * obj0 = 0 ;
25206 char *kwnames[] = {
25207 (char *) "text", NULL
25208 };
25209
25210 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyTextDataObject",kwnames,&obj0)) goto fail;
25211 if (obj0) {
25212 {
25213 arg1 = wxString_in_helper(obj0);
25214 if (arg1 == NULL) SWIG_fail;
25215 temp1 = True;
25216 }
25217 }
25218 {
25219 PyThreadState* __tstate = wxPyBeginAllowThreads();
25220 result = (wxPyTextDataObject *)new wxPyTextDataObject((wxString const &)*arg1);
25221
25222 wxPyEndAllowThreads(__tstate);
25223 if (PyErr_Occurred()) SWIG_fail;
25224 }
25225 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTextDataObject, 1);
25226 {
25227 if (temp1)
25228 delete arg1;
25229 }
25230 return resultobj;
25231 fail:
25232 {
25233 if (temp1)
25234 delete arg1;
25235 }
25236 return NULL;
25237 }
25238
25239
25240 static PyObject *_wrap_PyTextDataObject__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
25241 PyObject *resultobj;
25242 wxPyTextDataObject *arg1 = (wxPyTextDataObject *) 0 ;
25243 PyObject *arg2 = (PyObject *) 0 ;
25244 PyObject *arg3 = (PyObject *) 0 ;
25245 PyObject * obj0 = 0 ;
25246 PyObject * obj1 = 0 ;
25247 PyObject * obj2 = 0 ;
25248 char *kwnames[] = {
25249 (char *) "self",(char *) "self",(char *) "_class", NULL
25250 };
25251
25252 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyTextDataObject__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
25253 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDataObject,
25254 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25255 arg2 = obj1;
25256 arg3 = obj2;
25257 {
25258 PyThreadState* __tstate = wxPyBeginAllowThreads();
25259 (arg1)->_setCallbackInfo(arg2,arg3);
25260
25261 wxPyEndAllowThreads(__tstate);
25262 if (PyErr_Occurred()) SWIG_fail;
25263 }
25264 Py_INCREF(Py_None); resultobj = Py_None;
25265 return resultobj;
25266 fail:
25267 return NULL;
25268 }
25269
25270
25271 static PyObject * PyTextDataObject_swigregister(PyObject *self, PyObject *args) {
25272 PyObject *obj;
25273 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25274 SWIG_TypeClientData(SWIGTYPE_p_wxPyTextDataObject, obj);
25275 Py_INCREF(obj);
25276 return Py_BuildValue((char *)"");
25277 }
25278 static PyObject *_wrap_new_BitmapDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
25279 PyObject *resultobj;
25280 wxBitmap const &arg1_defvalue = wxNullBitmap ;
25281 wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ;
25282 wxBitmapDataObject *result;
25283 PyObject * obj0 = 0 ;
25284 char *kwnames[] = {
25285 (char *) "bitmap", NULL
25286 };
25287
25288 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BitmapDataObject",kwnames,&obj0)) goto fail;
25289 if (obj0) {
25290 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
25291 SWIG_POINTER_EXCEPTION | 0)) == -1)
25292 SWIG_fail;
25293 if (arg1 == NULL) {
25294 PyErr_SetString(PyExc_TypeError,"null reference");
25295 SWIG_fail;
25296 }
25297 }
25298 {
25299 PyThreadState* __tstate = wxPyBeginAllowThreads();
25300 result = (wxBitmapDataObject *)new wxBitmapDataObject((wxBitmap const &)*arg1);
25301
25302 wxPyEndAllowThreads(__tstate);
25303 if (PyErr_Occurred()) SWIG_fail;
25304 }
25305 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmapDataObject, 1);
25306 return resultobj;
25307 fail:
25308 return NULL;
25309 }
25310
25311
25312 static PyObject *_wrap_BitmapDataObject_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
25313 PyObject *resultobj;
25314 wxBitmapDataObject *arg1 = (wxBitmapDataObject *) 0 ;
25315 wxBitmap result;
25316 PyObject * obj0 = 0 ;
25317 char *kwnames[] = {
25318 (char *) "self", NULL
25319 };
25320
25321 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapDataObject_GetBitmap",kwnames,&obj0)) goto fail;
25322 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapDataObject,
25323 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25324 {
25325 PyThreadState* __tstate = wxPyBeginAllowThreads();
25326 result = ((wxBitmapDataObject const *)arg1)->GetBitmap();
25327
25328 wxPyEndAllowThreads(__tstate);
25329 if (PyErr_Occurred()) SWIG_fail;
25330 }
25331 {
25332 wxBitmap * resultptr;
25333 resultptr = new wxBitmap((wxBitmap &) result);
25334 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
25335 }
25336 return resultobj;
25337 fail:
25338 return NULL;
25339 }
25340
25341
25342 static PyObject *_wrap_BitmapDataObject_SetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
25343 PyObject *resultobj;
25344 wxBitmapDataObject *arg1 = (wxBitmapDataObject *) 0 ;
25345 wxBitmap *arg2 = 0 ;
25346 PyObject * obj0 = 0 ;
25347 PyObject * obj1 = 0 ;
25348 char *kwnames[] = {
25349 (char *) "self",(char *) "bitmap", NULL
25350 };
25351
25352 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapDataObject_SetBitmap",kwnames,&obj0,&obj1)) goto fail;
25353 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapDataObject,
25354 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25355 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
25356 SWIG_POINTER_EXCEPTION | 0)) == -1)
25357 SWIG_fail;
25358 if (arg2 == NULL) {
25359 PyErr_SetString(PyExc_TypeError,"null reference");
25360 SWIG_fail;
25361 }
25362 {
25363 PyThreadState* __tstate = wxPyBeginAllowThreads();
25364 (arg1)->SetBitmap((wxBitmap const &)*arg2);
25365
25366 wxPyEndAllowThreads(__tstate);
25367 if (PyErr_Occurred()) SWIG_fail;
25368 }
25369 Py_INCREF(Py_None); resultobj = Py_None;
25370 return resultobj;
25371 fail:
25372 return NULL;
25373 }
25374
25375
25376 static PyObject * BitmapDataObject_swigregister(PyObject *self, PyObject *args) {
25377 PyObject *obj;
25378 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25379 SWIG_TypeClientData(SWIGTYPE_p_wxBitmapDataObject, obj);
25380 Py_INCREF(obj);
25381 return Py_BuildValue((char *)"");
25382 }
25383 static PyObject *_wrap_new_PyBitmapDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
25384 PyObject *resultobj;
25385 wxBitmap const &arg1_defvalue = wxNullBitmap ;
25386 wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ;
25387 wxPyBitmapDataObject *result;
25388 PyObject * obj0 = 0 ;
25389 char *kwnames[] = {
25390 (char *) "bitmap", NULL
25391 };
25392
25393 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyBitmapDataObject",kwnames,&obj0)) goto fail;
25394 if (obj0) {
25395 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
25396 SWIG_POINTER_EXCEPTION | 0)) == -1)
25397 SWIG_fail;
25398 if (arg1 == NULL) {
25399 PyErr_SetString(PyExc_TypeError,"null reference");
25400 SWIG_fail;
25401 }
25402 }
25403 {
25404 PyThreadState* __tstate = wxPyBeginAllowThreads();
25405 result = (wxPyBitmapDataObject *)new wxPyBitmapDataObject((wxBitmap const &)*arg1);
25406
25407 wxPyEndAllowThreads(__tstate);
25408 if (PyErr_Occurred()) SWIG_fail;
25409 }
25410 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyBitmapDataObject, 1);
25411 return resultobj;
25412 fail:
25413 return NULL;
25414 }
25415
25416
25417 static PyObject *_wrap_PyBitmapDataObject__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
25418 PyObject *resultobj;
25419 wxPyBitmapDataObject *arg1 = (wxPyBitmapDataObject *) 0 ;
25420 PyObject *arg2 = (PyObject *) 0 ;
25421 PyObject *arg3 = (PyObject *) 0 ;
25422 PyObject * obj0 = 0 ;
25423 PyObject * obj1 = 0 ;
25424 PyObject * obj2 = 0 ;
25425 char *kwnames[] = {
25426 (char *) "self",(char *) "self",(char *) "_class", NULL
25427 };
25428
25429 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyBitmapDataObject__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
25430 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyBitmapDataObject,
25431 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25432 arg2 = obj1;
25433 arg3 = obj2;
25434 {
25435 PyThreadState* __tstate = wxPyBeginAllowThreads();
25436 (arg1)->_setCallbackInfo(arg2,arg3);
25437
25438 wxPyEndAllowThreads(__tstate);
25439 if (PyErr_Occurred()) SWIG_fail;
25440 }
25441 Py_INCREF(Py_None); resultobj = Py_None;
25442 return resultobj;
25443 fail:
25444 return NULL;
25445 }
25446
25447
25448 static PyObject * PyBitmapDataObject_swigregister(PyObject *self, PyObject *args) {
25449 PyObject *obj;
25450 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25451 SWIG_TypeClientData(SWIGTYPE_p_wxPyBitmapDataObject, obj);
25452 Py_INCREF(obj);
25453 return Py_BuildValue((char *)"");
25454 }
25455 static PyObject *_wrap_new_FileDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
25456 PyObject *resultobj;
25457 wxFileDataObject *result;
25458 char *kwnames[] = {
25459 NULL
25460 };
25461
25462 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileDataObject",kwnames)) goto fail;
25463 {
25464 PyThreadState* __tstate = wxPyBeginAllowThreads();
25465 result = (wxFileDataObject *)new wxFileDataObject();
25466
25467 wxPyEndAllowThreads(__tstate);
25468 if (PyErr_Occurred()) SWIG_fail;
25469 }
25470 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileDataObject, 1);
25471 return resultobj;
25472 fail:
25473 return NULL;
25474 }
25475
25476
25477 static PyObject *_wrap_FileDataObject_GetFilenames(PyObject *self, PyObject *args, PyObject *kwargs) {
25478 PyObject *resultobj;
25479 wxFileDataObject *arg1 = (wxFileDataObject *) 0 ;
25480 wxArrayString *result;
25481 PyObject * obj0 = 0 ;
25482 char *kwnames[] = {
25483 (char *) "self", NULL
25484 };
25485
25486 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDataObject_GetFilenames",kwnames,&obj0)) goto fail;
25487 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDataObject,
25488 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25489 {
25490 PyThreadState* __tstate = wxPyBeginAllowThreads();
25491 {
25492 wxArrayString const &_result_ref = (arg1)->GetFilenames();
25493 result = (wxArrayString *) &_result_ref;
25494 }
25495
25496 wxPyEndAllowThreads(__tstate);
25497 if (PyErr_Occurred()) SWIG_fail;
25498 }
25499 {
25500 resultobj = wxArrayString2PyList_helper(*result);
25501 }
25502 return resultobj;
25503 fail:
25504 return NULL;
25505 }
25506
25507
25508 static PyObject *_wrap_FileDataObject_AddFile(PyObject *self, PyObject *args, PyObject *kwargs) {
25509 PyObject *resultobj;
25510 wxFileDataObject *arg1 = (wxFileDataObject *) 0 ;
25511 wxString *arg2 = 0 ;
25512 bool temp2 = False ;
25513 PyObject * obj0 = 0 ;
25514 PyObject * obj1 = 0 ;
25515 char *kwnames[] = {
25516 (char *) "self",(char *) "filename", NULL
25517 };
25518
25519 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDataObject_AddFile",kwnames,&obj0,&obj1)) goto fail;
25520 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDataObject,
25521 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25522 {
25523 arg2 = wxString_in_helper(obj1);
25524 if (arg2 == NULL) SWIG_fail;
25525 temp2 = True;
25526 }
25527 {
25528 PyThreadState* __tstate = wxPyBeginAllowThreads();
25529 (arg1)->AddFile((wxString const &)*arg2);
25530
25531 wxPyEndAllowThreads(__tstate);
25532 if (PyErr_Occurred()) SWIG_fail;
25533 }
25534 Py_INCREF(Py_None); resultobj = Py_None;
25535 {
25536 if (temp2)
25537 delete arg2;
25538 }
25539 return resultobj;
25540 fail:
25541 {
25542 if (temp2)
25543 delete arg2;
25544 }
25545 return NULL;
25546 }
25547
25548
25549 static PyObject * FileDataObject_swigregister(PyObject *self, PyObject *args) {
25550 PyObject *obj;
25551 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25552 SWIG_TypeClientData(SWIGTYPE_p_wxFileDataObject, obj);
25553 Py_INCREF(obj);
25554 return Py_BuildValue((char *)"");
25555 }
25556 static PyObject *_wrap_new_CustomDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
25557 PyObject *resultobj;
25558 wxDataFormat const &arg1_defvalue = wxFormatInvalid ;
25559 wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ;
25560 wxCustomDataObject *result;
25561 PyObject * obj0 = 0 ;
25562 char *kwnames[] = {
25563 (char *) "format", NULL
25564 };
25565
25566 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_CustomDataObject",kwnames,&obj0)) goto fail;
25567 if (obj0) {
25568 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
25569 SWIG_POINTER_EXCEPTION | 0)) == -1)
25570 SWIG_fail;
25571 if (arg1 == NULL) {
25572 PyErr_SetString(PyExc_TypeError,"null reference");
25573 SWIG_fail;
25574 }
25575 }
25576 {
25577 PyThreadState* __tstate = wxPyBeginAllowThreads();
25578 result = (wxCustomDataObject *)new wxCustomDataObject((wxDataFormat const &)*arg1);
25579
25580 wxPyEndAllowThreads(__tstate);
25581 if (PyErr_Occurred()) SWIG_fail;
25582 }
25583 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCustomDataObject, 1);
25584 return resultobj;
25585 fail:
25586 return NULL;
25587 }
25588
25589
25590 static PyObject *_wrap_CustomDataObject_SetData(PyObject *self, PyObject *args, PyObject *kwargs) {
25591 PyObject *resultobj;
25592 wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ;
25593 PyObject *arg2 = (PyObject *) 0 ;
25594 bool result;
25595 PyObject * obj0 = 0 ;
25596 PyObject * obj1 = 0 ;
25597 char *kwnames[] = {
25598 (char *) "self",(char *) "data", NULL
25599 };
25600
25601 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CustomDataObject_SetData",kwnames,&obj0,&obj1)) goto fail;
25602 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCustomDataObject,
25603 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25604 arg2 = obj1;
25605 {
25606 PyThreadState* __tstate = wxPyBeginAllowThreads();
25607 result = (bool)wxCustomDataObject_SetData(arg1,arg2);
25608
25609 wxPyEndAllowThreads(__tstate);
25610 if (PyErr_Occurred()) SWIG_fail;
25611 }
25612 {
25613 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25614 }
25615 return resultobj;
25616 fail:
25617 return NULL;
25618 }
25619
25620
25621 static PyObject *_wrap_CustomDataObject_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
25622 PyObject *resultobj;
25623 wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ;
25624 size_t result;
25625 PyObject * obj0 = 0 ;
25626 char *kwnames[] = {
25627 (char *) "self", NULL
25628 };
25629
25630 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CustomDataObject_GetSize",kwnames,&obj0)) goto fail;
25631 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCustomDataObject,
25632 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25633 {
25634 PyThreadState* __tstate = wxPyBeginAllowThreads();
25635 result = (size_t)(arg1)->GetSize();
25636
25637 wxPyEndAllowThreads(__tstate);
25638 if (PyErr_Occurred()) SWIG_fail;
25639 }
25640 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
25641 return resultobj;
25642 fail:
25643 return NULL;
25644 }
25645
25646
25647 static PyObject *_wrap_CustomDataObject_GetData(PyObject *self, PyObject *args, PyObject *kwargs) {
25648 PyObject *resultobj;
25649 wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ;
25650 PyObject *result;
25651 PyObject * obj0 = 0 ;
25652 char *kwnames[] = {
25653 (char *) "self", NULL
25654 };
25655
25656 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CustomDataObject_GetData",kwnames,&obj0)) goto fail;
25657 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCustomDataObject,
25658 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25659 {
25660 PyThreadState* __tstate = wxPyBeginAllowThreads();
25661 result = (PyObject *)wxCustomDataObject_GetData(arg1);
25662
25663 wxPyEndAllowThreads(__tstate);
25664 if (PyErr_Occurred()) SWIG_fail;
25665 }
25666 resultobj = result;
25667 return resultobj;
25668 fail:
25669 return NULL;
25670 }
25671
25672
25673 static PyObject * CustomDataObject_swigregister(PyObject *self, PyObject *args) {
25674 PyObject *obj;
25675 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25676 SWIG_TypeClientData(SWIGTYPE_p_wxCustomDataObject, obj);
25677 Py_INCREF(obj);
25678 return Py_BuildValue((char *)"");
25679 }
25680 static PyObject *_wrap_new_URLDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
25681 PyObject *resultobj;
25682 wxURLDataObject *result;
25683 char *kwnames[] = {
25684 NULL
25685 };
25686
25687 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_URLDataObject",kwnames)) goto fail;
25688 {
25689 PyThreadState* __tstate = wxPyBeginAllowThreads();
25690 result = (wxURLDataObject *)new wxURLDataObject();
25691
25692 wxPyEndAllowThreads(__tstate);
25693 if (PyErr_Occurred()) SWIG_fail;
25694 }
25695 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxURLDataObject, 1);
25696 return resultobj;
25697 fail:
25698 return NULL;
25699 }
25700
25701
25702 static PyObject *_wrap_URLDataObject_GetURL(PyObject *self, PyObject *args, PyObject *kwargs) {
25703 PyObject *resultobj;
25704 wxURLDataObject *arg1 = (wxURLDataObject *) 0 ;
25705 wxString result;
25706 PyObject * obj0 = 0 ;
25707 char *kwnames[] = {
25708 (char *) "self", NULL
25709 };
25710
25711 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:URLDataObject_GetURL",kwnames,&obj0)) goto fail;
25712 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxURLDataObject,
25713 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25714 {
25715 PyThreadState* __tstate = wxPyBeginAllowThreads();
25716 result = (arg1)->GetURL();
25717
25718 wxPyEndAllowThreads(__tstate);
25719 if (PyErr_Occurred()) SWIG_fail;
25720 }
25721 {
25722 #if wxUSE_UNICODE
25723 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
25724 #else
25725 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
25726 #endif
25727 }
25728 return resultobj;
25729 fail:
25730 return NULL;
25731 }
25732
25733
25734 static PyObject *_wrap_URLDataObject_SetURL(PyObject *self, PyObject *args, PyObject *kwargs) {
25735 PyObject *resultobj;
25736 wxURLDataObject *arg1 = (wxURLDataObject *) 0 ;
25737 wxString *arg2 = 0 ;
25738 bool temp2 = False ;
25739 PyObject * obj0 = 0 ;
25740 PyObject * obj1 = 0 ;
25741 char *kwnames[] = {
25742 (char *) "self",(char *) "url", NULL
25743 };
25744
25745 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:URLDataObject_SetURL",kwnames,&obj0,&obj1)) goto fail;
25746 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxURLDataObject,
25747 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25748 {
25749 arg2 = wxString_in_helper(obj1);
25750 if (arg2 == NULL) SWIG_fail;
25751 temp2 = True;
25752 }
25753 {
25754 PyThreadState* __tstate = wxPyBeginAllowThreads();
25755 (arg1)->SetURL((wxString const &)*arg2);
25756
25757 wxPyEndAllowThreads(__tstate);
25758 if (PyErr_Occurred()) SWIG_fail;
25759 }
25760 Py_INCREF(Py_None); resultobj = Py_None;
25761 {
25762 if (temp2)
25763 delete arg2;
25764 }
25765 return resultobj;
25766 fail:
25767 {
25768 if (temp2)
25769 delete arg2;
25770 }
25771 return NULL;
25772 }
25773
25774
25775 static PyObject * URLDataObject_swigregister(PyObject *self, PyObject *args) {
25776 PyObject *obj;
25777 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25778 SWIG_TypeClientData(SWIGTYPE_p_wxURLDataObject, obj);
25779 Py_INCREF(obj);
25780 return Py_BuildValue((char *)"");
25781 }
25782 static PyObject *_wrap_new_MetafileDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
25783 PyObject *resultobj;
25784 wxMetafileDataObject *result;
25785 char *kwnames[] = {
25786 NULL
25787 };
25788
25789 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MetafileDataObject",kwnames)) goto fail;
25790 {
25791 PyThreadState* __tstate = wxPyBeginAllowThreads();
25792 result = (wxMetafileDataObject *)new wxMetafileDataObject();
25793
25794 wxPyEndAllowThreads(__tstate);
25795 if (PyErr_Occurred()) SWIG_fail;
25796 }
25797 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetafileDataObject, 1);
25798 return resultobj;
25799 fail:
25800 return NULL;
25801 }
25802
25803
25804 static PyObject * MetafileDataObject_swigregister(PyObject *self, PyObject *args) {
25805 PyObject *obj;
25806 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25807 SWIG_TypeClientData(SWIGTYPE_p_wxMetafileDataObject, obj);
25808 Py_INCREF(obj);
25809 return Py_BuildValue((char *)"");
25810 }
25811 static PyObject *_wrap_IsDragResultOk(PyObject *self, PyObject *args, PyObject *kwargs) {
25812 PyObject *resultobj;
25813 int arg1 ;
25814 bool result;
25815 PyObject * obj0 = 0 ;
25816 char *kwnames[] = {
25817 (char *) "res", NULL
25818 };
25819
25820 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IsDragResultOk",kwnames,&obj0)) goto fail;
25821 arg1 = (wxDragResult) SWIG_AsInt(obj0);
25822 if (PyErr_Occurred()) SWIG_fail;
25823 {
25824 PyThreadState* __tstate = wxPyBeginAllowThreads();
25825 result = (bool)wxIsDragResultOk((wxDragResult )arg1);
25826
25827 wxPyEndAllowThreads(__tstate);
25828 if (PyErr_Occurred()) SWIG_fail;
25829 }
25830 {
25831 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25832 }
25833 return resultobj;
25834 fail:
25835 return NULL;
25836 }
25837
25838
25839 static PyObject *_wrap_new_DropSource(PyObject *self, PyObject *args, PyObject *kwargs) {
25840 PyObject *resultobj;
25841 wxWindow *arg1 = (wxWindow *) 0 ;
25842 wxIcon const &arg2_defvalue = wxNullIcon ;
25843 wxIcon *arg2 = (wxIcon *) &arg2_defvalue ;
25844 wxIcon const &arg3_defvalue = wxNullIcon ;
25845 wxIcon *arg3 = (wxIcon *) &arg3_defvalue ;
25846 wxIcon const &arg4_defvalue = wxNullIcon ;
25847 wxIcon *arg4 = (wxIcon *) &arg4_defvalue ;
25848 wxPyDropSource *result;
25849 PyObject * obj0 = 0 ;
25850 PyObject * obj1 = 0 ;
25851 PyObject * obj2 = 0 ;
25852 PyObject * obj3 = 0 ;
25853 char *kwnames[] = {
25854 (char *) "win",(char *) "copy",(char *) "move",(char *) "none", NULL
25855 };
25856
25857 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:new_DropSource",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
25858 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25859 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25860 if (obj1) {
25861 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
25862 SWIG_POINTER_EXCEPTION | 0)) == -1)
25863 SWIG_fail;
25864 if (arg2 == NULL) {
25865 PyErr_SetString(PyExc_TypeError,"null reference");
25866 SWIG_fail;
25867 }
25868 }
25869 if (obj2) {
25870 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxIcon,
25871 SWIG_POINTER_EXCEPTION | 0)) == -1)
25872 SWIG_fail;
25873 if (arg3 == NULL) {
25874 PyErr_SetString(PyExc_TypeError,"null reference");
25875 SWIG_fail;
25876 }
25877 }
25878 if (obj3) {
25879 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxIcon,
25880 SWIG_POINTER_EXCEPTION | 0)) == -1)
25881 SWIG_fail;
25882 if (arg4 == NULL) {
25883 PyErr_SetString(PyExc_TypeError,"null reference");
25884 SWIG_fail;
25885 }
25886 }
25887 {
25888 PyThreadState* __tstate = wxPyBeginAllowThreads();
25889 result = (wxPyDropSource *)new wxPyDropSource(arg1,(wxIcon const &)*arg2,(wxIcon const &)*arg3,(wxIcon const &)*arg4);
25890
25891 wxPyEndAllowThreads(__tstate);
25892 if (PyErr_Occurred()) SWIG_fail;
25893 }
25894 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDropSource, 1);
25895 return resultobj;
25896 fail:
25897 return NULL;
25898 }
25899
25900
25901 static PyObject *_wrap_DropSource__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
25902 PyObject *resultobj;
25903 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
25904 PyObject *arg2 = (PyObject *) 0 ;
25905 PyObject *arg3 = (PyObject *) 0 ;
25906 int arg4 ;
25907 PyObject * obj0 = 0 ;
25908 PyObject * obj1 = 0 ;
25909 PyObject * obj2 = 0 ;
25910 PyObject * obj3 = 0 ;
25911 char *kwnames[] = {
25912 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
25913 };
25914
25915 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropSource__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
25916 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
25917 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25918 arg2 = obj1;
25919 arg3 = obj2;
25920 arg4 = (int) SWIG_AsInt(obj3);
25921 if (PyErr_Occurred()) SWIG_fail;
25922 {
25923 PyThreadState* __tstate = wxPyBeginAllowThreads();
25924 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
25925
25926 wxPyEndAllowThreads(__tstate);
25927 if (PyErr_Occurred()) SWIG_fail;
25928 }
25929 Py_INCREF(Py_None); resultobj = Py_None;
25930 return resultobj;
25931 fail:
25932 return NULL;
25933 }
25934
25935
25936 static PyObject *_wrap_delete_DropSource(PyObject *self, PyObject *args, PyObject *kwargs) {
25937 PyObject *resultobj;
25938 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
25939 PyObject * obj0 = 0 ;
25940 char *kwnames[] = {
25941 (char *) "self", NULL
25942 };
25943
25944 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DropSource",kwnames,&obj0)) goto fail;
25945 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
25946 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25947 {
25948 PyThreadState* __tstate = wxPyBeginAllowThreads();
25949 delete arg1;
25950
25951 wxPyEndAllowThreads(__tstate);
25952 if (PyErr_Occurred()) SWIG_fail;
25953 }
25954 Py_INCREF(Py_None); resultobj = Py_None;
25955 return resultobj;
25956 fail:
25957 return NULL;
25958 }
25959
25960
25961 static PyObject *_wrap_DropSource_SetData(PyObject *self, PyObject *args, PyObject *kwargs) {
25962 PyObject *resultobj;
25963 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
25964 wxDataObject *arg2 = 0 ;
25965 PyObject * obj0 = 0 ;
25966 PyObject * obj1 = 0 ;
25967 char *kwnames[] = {
25968 (char *) "self",(char *) "data", NULL
25969 };
25970
25971 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropSource_SetData",kwnames,&obj0,&obj1)) goto fail;
25972 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
25973 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25974 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject,
25975 SWIG_POINTER_EXCEPTION | 0)) == -1)
25976 SWIG_fail;
25977 if (arg2 == NULL) {
25978 PyErr_SetString(PyExc_TypeError,"null reference");
25979 SWIG_fail;
25980 }
25981 {
25982 PyThreadState* __tstate = wxPyBeginAllowThreads();
25983 (arg1)->SetData(*arg2);
25984
25985 wxPyEndAllowThreads(__tstate);
25986 if (PyErr_Occurred()) SWIG_fail;
25987 }
25988 Py_INCREF(Py_None); resultobj = Py_None;
25989 return resultobj;
25990 fail:
25991 return NULL;
25992 }
25993
25994
25995 static PyObject *_wrap_DropSource_GetDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
25996 PyObject *resultobj;
25997 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
25998 wxDataObject *result;
25999 PyObject * obj0 = 0 ;
26000 char *kwnames[] = {
26001 (char *) "self", NULL
26002 };
26003
26004 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropSource_GetDataObject",kwnames,&obj0)) goto fail;
26005 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
26006 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26007 {
26008 PyThreadState* __tstate = wxPyBeginAllowThreads();
26009 result = (wxDataObject *)(arg1)->GetDataObject();
26010
26011 wxPyEndAllowThreads(__tstate);
26012 if (PyErr_Occurred()) SWIG_fail;
26013 }
26014 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObject, 0);
26015 return resultobj;
26016 fail:
26017 return NULL;
26018 }
26019
26020
26021 static PyObject *_wrap_DropSource_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
26022 PyObject *resultobj;
26023 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
26024 int arg2 ;
26025 wxCursor *arg3 = 0 ;
26026 PyObject * obj0 = 0 ;
26027 PyObject * obj1 = 0 ;
26028 PyObject * obj2 = 0 ;
26029 char *kwnames[] = {
26030 (char *) "self",(char *) "res",(char *) "cursor", NULL
26031 };
26032
26033 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropSource_SetCursor",kwnames,&obj0,&obj1,&obj2)) goto fail;
26034 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
26035 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26036 arg2 = (wxDragResult) SWIG_AsInt(obj1);
26037 if (PyErr_Occurred()) SWIG_fail;
26038 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxCursor,
26039 SWIG_POINTER_EXCEPTION | 0)) == -1)
26040 SWIG_fail;
26041 if (arg3 == NULL) {
26042 PyErr_SetString(PyExc_TypeError,"null reference");
26043 SWIG_fail;
26044 }
26045 {
26046 PyThreadState* __tstate = wxPyBeginAllowThreads();
26047 (arg1)->SetCursor((wxDragResult )arg2,(wxCursor const &)*arg3);
26048
26049 wxPyEndAllowThreads(__tstate);
26050 if (PyErr_Occurred()) SWIG_fail;
26051 }
26052 Py_INCREF(Py_None); resultobj = Py_None;
26053 return resultobj;
26054 fail:
26055 return NULL;
26056 }
26057
26058
26059 static PyObject *_wrap_DropSource_DoDragDrop(PyObject *self, PyObject *args, PyObject *kwargs) {
26060 PyObject *resultobj;
26061 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
26062 int arg2 = (int) wxDrag_CopyOnly ;
26063 int result;
26064 PyObject * obj0 = 0 ;
26065 PyObject * obj1 = 0 ;
26066 char *kwnames[] = {
26067 (char *) "self",(char *) "flags", NULL
26068 };
26069
26070 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DropSource_DoDragDrop",kwnames,&obj0,&obj1)) goto fail;
26071 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
26072 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26073 if (obj1) {
26074 arg2 = (int) SWIG_AsInt(obj1);
26075 if (PyErr_Occurred()) SWIG_fail;
26076 }
26077 {
26078 PyThreadState* __tstate = wxPyBeginAllowThreads();
26079 result = (int)(arg1)->DoDragDrop(arg2);
26080
26081 wxPyEndAllowThreads(__tstate);
26082 if (PyErr_Occurred()) SWIG_fail;
26083 }
26084 resultobj = SWIG_FromInt((int)result);
26085 return resultobj;
26086 fail:
26087 return NULL;
26088 }
26089
26090
26091 static PyObject *_wrap_DropSource_base_GiveFeedback(PyObject *self, PyObject *args, PyObject *kwargs) {
26092 PyObject *resultobj;
26093 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
26094 int arg2 ;
26095 bool result;
26096 PyObject * obj0 = 0 ;
26097 PyObject * obj1 = 0 ;
26098 char *kwnames[] = {
26099 (char *) "self",(char *) "effect", NULL
26100 };
26101
26102 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropSource_base_GiveFeedback",kwnames,&obj0,&obj1)) goto fail;
26103 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
26104 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26105 arg2 = (wxDragResult) SWIG_AsInt(obj1);
26106 if (PyErr_Occurred()) SWIG_fail;
26107 {
26108 PyThreadState* __tstate = wxPyBeginAllowThreads();
26109 result = (bool)(arg1)->base_GiveFeedback((wxDragResult )arg2);
26110
26111 wxPyEndAllowThreads(__tstate);
26112 if (PyErr_Occurred()) SWIG_fail;
26113 }
26114 {
26115 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26116 }
26117 return resultobj;
26118 fail:
26119 return NULL;
26120 }
26121
26122
26123 static PyObject * DropSource_swigregister(PyObject *self, PyObject *args) {
26124 PyObject *obj;
26125 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
26126 SWIG_TypeClientData(SWIGTYPE_p_wxPyDropSource, obj);
26127 Py_INCREF(obj);
26128 return Py_BuildValue((char *)"");
26129 }
26130 static PyObject *_wrap_new_DropTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
26131 PyObject *resultobj;
26132 wxDataObject *arg1 = (wxDataObject *) NULL ;
26133 wxPyDropTarget *result;
26134 PyObject * obj0 = 0 ;
26135 char *kwnames[] = {
26136 (char *) "dataObject", NULL
26137 };
26138
26139 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_DropTarget",kwnames,&obj0)) goto fail;
26140 if (obj0) {
26141 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
26142 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
26143 }
26144 {
26145 PyThreadState* __tstate = wxPyBeginAllowThreads();
26146 result = (wxPyDropTarget *)new wxPyDropTarget(arg1);
26147
26148 wxPyEndAllowThreads(__tstate);
26149 if (PyErr_Occurred()) SWIG_fail;
26150 }
26151 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDropTarget, 1);
26152 return resultobj;
26153 fail:
26154 return NULL;
26155 }
26156
26157
26158 static PyObject *_wrap_DropTarget__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
26159 PyObject *resultobj;
26160 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26161 PyObject *arg2 = (PyObject *) 0 ;
26162 PyObject *arg3 = (PyObject *) 0 ;
26163 PyObject * obj0 = 0 ;
26164 PyObject * obj1 = 0 ;
26165 PyObject * obj2 = 0 ;
26166 char *kwnames[] = {
26167 (char *) "self",(char *) "self",(char *) "_class", NULL
26168 };
26169
26170 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
26171 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26172 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26173 arg2 = obj1;
26174 arg3 = obj2;
26175 {
26176 PyThreadState* __tstate = wxPyBeginAllowThreads();
26177 (arg1)->_setCallbackInfo(arg2,arg3);
26178
26179 wxPyEndAllowThreads(__tstate);
26180 if (PyErr_Occurred()) SWIG_fail;
26181 }
26182 Py_INCREF(Py_None); resultobj = Py_None;
26183 return resultobj;
26184 fail:
26185 return NULL;
26186 }
26187
26188
26189 static PyObject *_wrap_delete_DropTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
26190 PyObject *resultobj;
26191 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26192 PyObject * obj0 = 0 ;
26193 char *kwnames[] = {
26194 (char *) "self", NULL
26195 };
26196
26197 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DropTarget",kwnames,&obj0)) goto fail;
26198 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26199 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26200 {
26201 PyThreadState* __tstate = wxPyBeginAllowThreads();
26202 delete arg1;
26203
26204 wxPyEndAllowThreads(__tstate);
26205 if (PyErr_Occurred()) SWIG_fail;
26206 }
26207 Py_INCREF(Py_None); resultobj = Py_None;
26208 return resultobj;
26209 fail:
26210 return NULL;
26211 }
26212
26213
26214 static PyObject *_wrap_DropTarget_GetDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
26215 PyObject *resultobj;
26216 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26217 wxDataObject *result;
26218 PyObject * obj0 = 0 ;
26219 char *kwnames[] = {
26220 (char *) "self", NULL
26221 };
26222
26223 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_GetDataObject",kwnames,&obj0)) goto fail;
26224 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26225 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26226 {
26227 PyThreadState* __tstate = wxPyBeginAllowThreads();
26228 result = (wxDataObject *)(arg1)->GetDataObject();
26229
26230 wxPyEndAllowThreads(__tstate);
26231 if (PyErr_Occurred()) SWIG_fail;
26232 }
26233 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObject, 0);
26234 return resultobj;
26235 fail:
26236 return NULL;
26237 }
26238
26239
26240 static PyObject *_wrap_DropTarget_SetDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
26241 PyObject *resultobj;
26242 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26243 wxDataObject *arg2 = (wxDataObject *) 0 ;
26244 PyObject * obj0 = 0 ;
26245 PyObject * obj1 = 0 ;
26246 char *kwnames[] = {
26247 (char *) "self",(char *) "dataObject", NULL
26248 };
26249
26250 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropTarget_SetDataObject",kwnames,&obj0,&obj1)) goto fail;
26251 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26252 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26253 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject,
26254 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
26255 {
26256 PyThreadState* __tstate = wxPyBeginAllowThreads();
26257 (arg1)->SetDataObject(arg2);
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_base_OnEnter(PyObject *self, PyObject *args, PyObject *kwargs) {
26270 PyObject *resultobj;
26271 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26272 int arg2 ;
26273 int arg3 ;
26274 int arg4 ;
26275 int result;
26276 PyObject * obj0 = 0 ;
26277 PyObject * obj1 = 0 ;
26278 PyObject * obj2 = 0 ;
26279 PyObject * obj3 = 0 ;
26280 char *kwnames[] = {
26281 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26282 };
26283
26284 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropTarget_base_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26285 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26286 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26287 arg2 = (int) SWIG_AsInt(obj1);
26288 if (PyErr_Occurred()) SWIG_fail;
26289 arg3 = (int) SWIG_AsInt(obj2);
26290 if (PyErr_Occurred()) SWIG_fail;
26291 arg4 = (wxDragResult) SWIG_AsInt(obj3);
26292 if (PyErr_Occurred()) SWIG_fail;
26293 {
26294 PyThreadState* __tstate = wxPyBeginAllowThreads();
26295 result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4);
26296
26297 wxPyEndAllowThreads(__tstate);
26298 if (PyErr_Occurred()) SWIG_fail;
26299 }
26300 resultobj = SWIG_FromInt((int)result);
26301 return resultobj;
26302 fail:
26303 return NULL;
26304 }
26305
26306
26307 static PyObject *_wrap_DropTarget_base_OnDragOver(PyObject *self, PyObject *args, PyObject *kwargs) {
26308 PyObject *resultobj;
26309 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26310 int arg2 ;
26311 int arg3 ;
26312 int arg4 ;
26313 int result;
26314 PyObject * obj0 = 0 ;
26315 PyObject * obj1 = 0 ;
26316 PyObject * obj2 = 0 ;
26317 PyObject * obj3 = 0 ;
26318 char *kwnames[] = {
26319 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26320 };
26321
26322 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropTarget_base_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26323 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26324 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26325 arg2 = (int) SWIG_AsInt(obj1);
26326 if (PyErr_Occurred()) SWIG_fail;
26327 arg3 = (int) SWIG_AsInt(obj2);
26328 if (PyErr_Occurred()) SWIG_fail;
26329 arg4 = (wxDragResult) SWIG_AsInt(obj3);
26330 if (PyErr_Occurred()) SWIG_fail;
26331 {
26332 PyThreadState* __tstate = wxPyBeginAllowThreads();
26333 result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4);
26334
26335 wxPyEndAllowThreads(__tstate);
26336 if (PyErr_Occurred()) SWIG_fail;
26337 }
26338 resultobj = SWIG_FromInt((int)result);
26339 return resultobj;
26340 fail:
26341 return NULL;
26342 }
26343
26344
26345 static PyObject *_wrap_DropTarget_base_OnLeave(PyObject *self, PyObject *args, PyObject *kwargs) {
26346 PyObject *resultobj;
26347 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26348 PyObject * obj0 = 0 ;
26349 char *kwnames[] = {
26350 (char *) "self", NULL
26351 };
26352
26353 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_base_OnLeave",kwnames,&obj0)) goto fail;
26354 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26355 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26356 {
26357 PyThreadState* __tstate = wxPyBeginAllowThreads();
26358 (arg1)->base_OnLeave();
26359
26360 wxPyEndAllowThreads(__tstate);
26361 if (PyErr_Occurred()) SWIG_fail;
26362 }
26363 Py_INCREF(Py_None); resultobj = Py_None;
26364 return resultobj;
26365 fail:
26366 return NULL;
26367 }
26368
26369
26370 static PyObject *_wrap_DropTarget_base_OnDrop(PyObject *self, PyObject *args, PyObject *kwargs) {
26371 PyObject *resultobj;
26372 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26373 int arg2 ;
26374 int arg3 ;
26375 bool result;
26376 PyObject * obj0 = 0 ;
26377 PyObject * obj1 = 0 ;
26378 PyObject * obj2 = 0 ;
26379 char *kwnames[] = {
26380 (char *) "self",(char *) "x",(char *) "y", NULL
26381 };
26382
26383 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropTarget_base_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail;
26384 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26385 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26386 arg2 = (int) SWIG_AsInt(obj1);
26387 if (PyErr_Occurred()) SWIG_fail;
26388 arg3 = (int) SWIG_AsInt(obj2);
26389 if (PyErr_Occurred()) SWIG_fail;
26390 {
26391 PyThreadState* __tstate = wxPyBeginAllowThreads();
26392 result = (bool)(arg1)->base_OnDrop(arg2,arg3);
26393
26394 wxPyEndAllowThreads(__tstate);
26395 if (PyErr_Occurred()) SWIG_fail;
26396 }
26397 {
26398 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26399 }
26400 return resultobj;
26401 fail:
26402 return NULL;
26403 }
26404
26405
26406 static PyObject *_wrap_DropTarget_GetData(PyObject *self, PyObject *args, PyObject *kwargs) {
26407 PyObject *resultobj;
26408 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26409 bool result;
26410 PyObject * obj0 = 0 ;
26411 char *kwnames[] = {
26412 (char *) "self", NULL
26413 };
26414
26415 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_GetData",kwnames,&obj0)) goto fail;
26416 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26417 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26418 {
26419 PyThreadState* __tstate = wxPyBeginAllowThreads();
26420 result = (bool)(arg1)->GetData();
26421
26422 wxPyEndAllowThreads(__tstate);
26423 if (PyErr_Occurred()) SWIG_fail;
26424 }
26425 {
26426 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26427 }
26428 return resultobj;
26429 fail:
26430 return NULL;
26431 }
26432
26433
26434 static PyObject * DropTarget_swigregister(PyObject *self, PyObject *args) {
26435 PyObject *obj;
26436 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
26437 SWIG_TypeClientData(SWIGTYPE_p_wxPyDropTarget, obj);
26438 Py_INCREF(obj);
26439 return Py_BuildValue((char *)"");
26440 }
26441 static PyObject *_wrap_new_TextDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
26442 PyObject *resultobj;
26443 wxPyTextDropTarget *result;
26444 char *kwnames[] = {
26445 NULL
26446 };
26447
26448 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TextDropTarget",kwnames)) goto fail;
26449 {
26450 PyThreadState* __tstate = wxPyBeginAllowThreads();
26451 result = (wxPyTextDropTarget *)new wxPyTextDropTarget();
26452
26453 wxPyEndAllowThreads(__tstate);
26454 if (PyErr_Occurred()) SWIG_fail;
26455 }
26456 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTextDropTarget, 1);
26457 return resultobj;
26458 fail:
26459 return NULL;
26460 }
26461
26462
26463 static PyObject *_wrap_TextDropTarget__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
26464 PyObject *resultobj;
26465 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
26466 PyObject *arg2 = (PyObject *) 0 ;
26467 PyObject *arg3 = (PyObject *) 0 ;
26468 PyObject * obj0 = 0 ;
26469 PyObject * obj1 = 0 ;
26470 PyObject * obj2 = 0 ;
26471 char *kwnames[] = {
26472 (char *) "self",(char *) "self",(char *) "_class", NULL
26473 };
26474
26475 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextDropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
26476 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget,
26477 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26478 arg2 = obj1;
26479 arg3 = obj2;
26480 {
26481 PyThreadState* __tstate = wxPyBeginAllowThreads();
26482 (arg1)->_setCallbackInfo(arg2,arg3);
26483
26484 wxPyEndAllowThreads(__tstate);
26485 if (PyErr_Occurred()) SWIG_fail;
26486 }
26487 Py_INCREF(Py_None); resultobj = Py_None;
26488 return resultobj;
26489 fail:
26490 return NULL;
26491 }
26492
26493
26494 static PyObject *_wrap_TextDropTarget_base_OnEnter(PyObject *self, PyObject *args, PyObject *kwargs) {
26495 PyObject *resultobj;
26496 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
26497 int arg2 ;
26498 int arg3 ;
26499 int arg4 ;
26500 int result;
26501 PyObject * obj0 = 0 ;
26502 PyObject * obj1 = 0 ;
26503 PyObject * obj2 = 0 ;
26504 PyObject * obj3 = 0 ;
26505 char *kwnames[] = {
26506 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26507 };
26508
26509 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_base_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26510 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget,
26511 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26512 arg2 = (int) SWIG_AsInt(obj1);
26513 if (PyErr_Occurred()) SWIG_fail;
26514 arg3 = (int) SWIG_AsInt(obj2);
26515 if (PyErr_Occurred()) SWIG_fail;
26516 arg4 = (wxDragResult) SWIG_AsInt(obj3);
26517 if (PyErr_Occurred()) SWIG_fail;
26518 {
26519 PyThreadState* __tstate = wxPyBeginAllowThreads();
26520 result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4);
26521
26522 wxPyEndAllowThreads(__tstate);
26523 if (PyErr_Occurred()) SWIG_fail;
26524 }
26525 resultobj = SWIG_FromInt((int)result);
26526 return resultobj;
26527 fail:
26528 return NULL;
26529 }
26530
26531
26532 static PyObject *_wrap_TextDropTarget_base_OnDragOver(PyObject *self, PyObject *args, PyObject *kwargs) {
26533 PyObject *resultobj;
26534 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
26535 int arg2 ;
26536 int arg3 ;
26537 int arg4 ;
26538 int result;
26539 PyObject * obj0 = 0 ;
26540 PyObject * obj1 = 0 ;
26541 PyObject * obj2 = 0 ;
26542 PyObject * obj3 = 0 ;
26543 char *kwnames[] = {
26544 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26545 };
26546
26547 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_base_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26548 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget,
26549 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26550 arg2 = (int) SWIG_AsInt(obj1);
26551 if (PyErr_Occurred()) SWIG_fail;
26552 arg3 = (int) SWIG_AsInt(obj2);
26553 if (PyErr_Occurred()) SWIG_fail;
26554 arg4 = (wxDragResult) SWIG_AsInt(obj3);
26555 if (PyErr_Occurred()) SWIG_fail;
26556 {
26557 PyThreadState* __tstate = wxPyBeginAllowThreads();
26558 result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4);
26559
26560 wxPyEndAllowThreads(__tstate);
26561 if (PyErr_Occurred()) SWIG_fail;
26562 }
26563 resultobj = SWIG_FromInt((int)result);
26564 return resultobj;
26565 fail:
26566 return NULL;
26567 }
26568
26569
26570 static PyObject *_wrap_TextDropTarget_base_OnLeave(PyObject *self, PyObject *args, PyObject *kwargs) {
26571 PyObject *resultobj;
26572 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
26573 PyObject * obj0 = 0 ;
26574 char *kwnames[] = {
26575 (char *) "self", NULL
26576 };
26577
26578 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDropTarget_base_OnLeave",kwnames,&obj0)) goto fail;
26579 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget,
26580 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26581 {
26582 PyThreadState* __tstate = wxPyBeginAllowThreads();
26583 (arg1)->base_OnLeave();
26584
26585 wxPyEndAllowThreads(__tstate);
26586 if (PyErr_Occurred()) SWIG_fail;
26587 }
26588 Py_INCREF(Py_None); resultobj = Py_None;
26589 return resultobj;
26590 fail:
26591 return NULL;
26592 }
26593
26594
26595 static PyObject *_wrap_TextDropTarget_base_OnDrop(PyObject *self, PyObject *args, PyObject *kwargs) {
26596 PyObject *resultobj;
26597 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
26598 int arg2 ;
26599 int arg3 ;
26600 bool result;
26601 PyObject * obj0 = 0 ;
26602 PyObject * obj1 = 0 ;
26603 PyObject * obj2 = 0 ;
26604 char *kwnames[] = {
26605 (char *) "self",(char *) "x",(char *) "y", NULL
26606 };
26607
26608 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextDropTarget_base_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail;
26609 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget,
26610 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26611 arg2 = (int) SWIG_AsInt(obj1);
26612 if (PyErr_Occurred()) SWIG_fail;
26613 arg3 = (int) SWIG_AsInt(obj2);
26614 if (PyErr_Occurred()) SWIG_fail;
26615 {
26616 PyThreadState* __tstate = wxPyBeginAllowThreads();
26617 result = (bool)(arg1)->base_OnDrop(arg2,arg3);
26618
26619 wxPyEndAllowThreads(__tstate);
26620 if (PyErr_Occurred()) SWIG_fail;
26621 }
26622 {
26623 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26624 }
26625 return resultobj;
26626 fail:
26627 return NULL;
26628 }
26629
26630
26631 static PyObject *_wrap_TextDropTarget_base_OnData(PyObject *self, PyObject *args, PyObject *kwargs) {
26632 PyObject *resultobj;
26633 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
26634 int arg2 ;
26635 int arg3 ;
26636 int arg4 ;
26637 int result;
26638 PyObject * obj0 = 0 ;
26639 PyObject * obj1 = 0 ;
26640 PyObject * obj2 = 0 ;
26641 PyObject * obj3 = 0 ;
26642 char *kwnames[] = {
26643 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26644 };
26645
26646 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_base_OnData",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26647 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget,
26648 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26649 arg2 = (int) SWIG_AsInt(obj1);
26650 if (PyErr_Occurred()) SWIG_fail;
26651 arg3 = (int) SWIG_AsInt(obj2);
26652 if (PyErr_Occurred()) SWIG_fail;
26653 arg4 = (wxDragResult) SWIG_AsInt(obj3);
26654 if (PyErr_Occurred()) SWIG_fail;
26655 {
26656 PyThreadState* __tstate = wxPyBeginAllowThreads();
26657 result = (int)(arg1)->base_OnData(arg2,arg3,(wxDragResult )arg4);
26658
26659 wxPyEndAllowThreads(__tstate);
26660 if (PyErr_Occurred()) SWIG_fail;
26661 }
26662 resultobj = SWIG_FromInt((int)result);
26663 return resultobj;
26664 fail:
26665 return NULL;
26666 }
26667
26668
26669 static PyObject * TextDropTarget_swigregister(PyObject *self, PyObject *args) {
26670 PyObject *obj;
26671 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
26672 SWIG_TypeClientData(SWIGTYPE_p_wxPyTextDropTarget, obj);
26673 Py_INCREF(obj);
26674 return Py_BuildValue((char *)"");
26675 }
26676 static PyObject *_wrap_new_FileDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
26677 PyObject *resultobj;
26678 wxPyFileDropTarget *result;
26679 char *kwnames[] = {
26680 NULL
26681 };
26682
26683 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileDropTarget",kwnames)) goto fail;
26684 {
26685 PyThreadState* __tstate = wxPyBeginAllowThreads();
26686 result = (wxPyFileDropTarget *)new wxPyFileDropTarget();
26687
26688 wxPyEndAllowThreads(__tstate);
26689 if (PyErr_Occurred()) SWIG_fail;
26690 }
26691 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyFileDropTarget, 1);
26692 return resultobj;
26693 fail:
26694 return NULL;
26695 }
26696
26697
26698 static PyObject *_wrap_FileDropTarget__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
26699 PyObject *resultobj;
26700 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
26701 PyObject *arg2 = (PyObject *) 0 ;
26702 PyObject *arg3 = (PyObject *) 0 ;
26703 PyObject * obj0 = 0 ;
26704 PyObject * obj1 = 0 ;
26705 PyObject * obj2 = 0 ;
26706 char *kwnames[] = {
26707 (char *) "self",(char *) "self",(char *) "_class", NULL
26708 };
26709
26710 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileDropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
26711 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget,
26712 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26713 arg2 = obj1;
26714 arg3 = obj2;
26715 {
26716 PyThreadState* __tstate = wxPyBeginAllowThreads();
26717 (arg1)->_setCallbackInfo(arg2,arg3);
26718
26719 wxPyEndAllowThreads(__tstate);
26720 if (PyErr_Occurred()) SWIG_fail;
26721 }
26722 Py_INCREF(Py_None); resultobj = Py_None;
26723 return resultobj;
26724 fail:
26725 return NULL;
26726 }
26727
26728
26729 static PyObject *_wrap_FileDropTarget_base_OnEnter(PyObject *self, PyObject *args, PyObject *kwargs) {
26730 PyObject *resultobj;
26731 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
26732 int arg2 ;
26733 int arg3 ;
26734 int arg4 ;
26735 int result;
26736 PyObject * obj0 = 0 ;
26737 PyObject * obj1 = 0 ;
26738 PyObject * obj2 = 0 ;
26739 PyObject * obj3 = 0 ;
26740 char *kwnames[] = {
26741 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26742 };
26743
26744 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_base_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26745 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget,
26746 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26747 arg2 = (int) SWIG_AsInt(obj1);
26748 if (PyErr_Occurred()) SWIG_fail;
26749 arg3 = (int) SWIG_AsInt(obj2);
26750 if (PyErr_Occurred()) SWIG_fail;
26751 arg4 = (wxDragResult) SWIG_AsInt(obj3);
26752 if (PyErr_Occurred()) SWIG_fail;
26753 {
26754 PyThreadState* __tstate = wxPyBeginAllowThreads();
26755 result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4);
26756
26757 wxPyEndAllowThreads(__tstate);
26758 if (PyErr_Occurred()) SWIG_fail;
26759 }
26760 resultobj = SWIG_FromInt((int)result);
26761 return resultobj;
26762 fail:
26763 return NULL;
26764 }
26765
26766
26767 static PyObject *_wrap_FileDropTarget_base_OnDragOver(PyObject *self, PyObject *args, PyObject *kwargs) {
26768 PyObject *resultobj;
26769 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
26770 int arg2 ;
26771 int arg3 ;
26772 int arg4 ;
26773 int result;
26774 PyObject * obj0 = 0 ;
26775 PyObject * obj1 = 0 ;
26776 PyObject * obj2 = 0 ;
26777 PyObject * obj3 = 0 ;
26778 char *kwnames[] = {
26779 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26780 };
26781
26782 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_base_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26783 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget,
26784 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26785 arg2 = (int) SWIG_AsInt(obj1);
26786 if (PyErr_Occurred()) SWIG_fail;
26787 arg3 = (int) SWIG_AsInt(obj2);
26788 if (PyErr_Occurred()) SWIG_fail;
26789 arg4 = (wxDragResult) SWIG_AsInt(obj3);
26790 if (PyErr_Occurred()) SWIG_fail;
26791 {
26792 PyThreadState* __tstate = wxPyBeginAllowThreads();
26793 result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4);
26794
26795 wxPyEndAllowThreads(__tstate);
26796 if (PyErr_Occurred()) SWIG_fail;
26797 }
26798 resultobj = SWIG_FromInt((int)result);
26799 return resultobj;
26800 fail:
26801 return NULL;
26802 }
26803
26804
26805 static PyObject *_wrap_FileDropTarget_base_OnLeave(PyObject *self, PyObject *args, PyObject *kwargs) {
26806 PyObject *resultobj;
26807 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
26808 PyObject * obj0 = 0 ;
26809 char *kwnames[] = {
26810 (char *) "self", NULL
26811 };
26812
26813 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDropTarget_base_OnLeave",kwnames,&obj0)) goto fail;
26814 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget,
26815 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26816 {
26817 PyThreadState* __tstate = wxPyBeginAllowThreads();
26818 (arg1)->base_OnLeave();
26819
26820 wxPyEndAllowThreads(__tstate);
26821 if (PyErr_Occurred()) SWIG_fail;
26822 }
26823 Py_INCREF(Py_None); resultobj = Py_None;
26824 return resultobj;
26825 fail:
26826 return NULL;
26827 }
26828
26829
26830 static PyObject *_wrap_FileDropTarget_base_OnDrop(PyObject *self, PyObject *args, PyObject *kwargs) {
26831 PyObject *resultobj;
26832 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
26833 int arg2 ;
26834 int arg3 ;
26835 bool result;
26836 PyObject * obj0 = 0 ;
26837 PyObject * obj1 = 0 ;
26838 PyObject * obj2 = 0 ;
26839 char *kwnames[] = {
26840 (char *) "self",(char *) "x",(char *) "y", NULL
26841 };
26842
26843 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileDropTarget_base_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail;
26844 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget,
26845 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26846 arg2 = (int) SWIG_AsInt(obj1);
26847 if (PyErr_Occurred()) SWIG_fail;
26848 arg3 = (int) SWIG_AsInt(obj2);
26849 if (PyErr_Occurred()) SWIG_fail;
26850 {
26851 PyThreadState* __tstate = wxPyBeginAllowThreads();
26852 result = (bool)(arg1)->base_OnDrop(arg2,arg3);
26853
26854 wxPyEndAllowThreads(__tstate);
26855 if (PyErr_Occurred()) SWIG_fail;
26856 }
26857 {
26858 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26859 }
26860 return resultobj;
26861 fail:
26862 return NULL;
26863 }
26864
26865
26866 static PyObject *_wrap_FileDropTarget_base_OnData(PyObject *self, PyObject *args, PyObject *kwargs) {
26867 PyObject *resultobj;
26868 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
26869 int arg2 ;
26870 int arg3 ;
26871 int arg4 ;
26872 int result;
26873 PyObject * obj0 = 0 ;
26874 PyObject * obj1 = 0 ;
26875 PyObject * obj2 = 0 ;
26876 PyObject * obj3 = 0 ;
26877 char *kwnames[] = {
26878 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26879 };
26880
26881 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_base_OnData",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26882 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget,
26883 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26884 arg2 = (int) SWIG_AsInt(obj1);
26885 if (PyErr_Occurred()) SWIG_fail;
26886 arg3 = (int) SWIG_AsInt(obj2);
26887 if (PyErr_Occurred()) SWIG_fail;
26888 arg4 = (wxDragResult) SWIG_AsInt(obj3);
26889 if (PyErr_Occurred()) SWIG_fail;
26890 {
26891 PyThreadState* __tstate = wxPyBeginAllowThreads();
26892 result = (int)(arg1)->base_OnData(arg2,arg3,(wxDragResult )arg4);
26893
26894 wxPyEndAllowThreads(__tstate);
26895 if (PyErr_Occurred()) SWIG_fail;
26896 }
26897 resultobj = SWIG_FromInt((int)result);
26898 return resultobj;
26899 fail:
26900 return NULL;
26901 }
26902
26903
26904 static PyObject * FileDropTarget_swigregister(PyObject *self, PyObject *args) {
26905 PyObject *obj;
26906 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
26907 SWIG_TypeClientData(SWIGTYPE_p_wxPyFileDropTarget, obj);
26908 Py_INCREF(obj);
26909 return Py_BuildValue((char *)"");
26910 }
26911 static PyObject *_wrap_new_Clipboard(PyObject *self, PyObject *args, PyObject *kwargs) {
26912 PyObject *resultobj;
26913 wxClipboard *result;
26914 char *kwnames[] = {
26915 NULL
26916 };
26917
26918 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Clipboard",kwnames)) goto fail;
26919 {
26920 PyThreadState* __tstate = wxPyBeginAllowThreads();
26921 result = (wxClipboard *)new wxClipboard();
26922
26923 wxPyEndAllowThreads(__tstate);
26924 if (PyErr_Occurred()) SWIG_fail;
26925 }
26926 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClipboard, 1);
26927 return resultobj;
26928 fail:
26929 return NULL;
26930 }
26931
26932
26933 static PyObject *_wrap_delete_Clipboard(PyObject *self, PyObject *args, PyObject *kwargs) {
26934 PyObject *resultobj;
26935 wxClipboard *arg1 = (wxClipboard *) 0 ;
26936 PyObject * obj0 = 0 ;
26937 char *kwnames[] = {
26938 (char *) "self", NULL
26939 };
26940
26941 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Clipboard",kwnames,&obj0)) goto fail;
26942 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
26943 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26944 {
26945 PyThreadState* __tstate = wxPyBeginAllowThreads();
26946 delete arg1;
26947
26948 wxPyEndAllowThreads(__tstate);
26949 if (PyErr_Occurred()) SWIG_fail;
26950 }
26951 Py_INCREF(Py_None); resultobj = Py_None;
26952 return resultobj;
26953 fail:
26954 return NULL;
26955 }
26956
26957
26958 static PyObject *_wrap_Clipboard_Open(PyObject *self, PyObject *args, PyObject *kwargs) {
26959 PyObject *resultobj;
26960 wxClipboard *arg1 = (wxClipboard *) 0 ;
26961 bool result;
26962 PyObject * obj0 = 0 ;
26963 char *kwnames[] = {
26964 (char *) "self", NULL
26965 };
26966
26967 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Open",kwnames,&obj0)) goto fail;
26968 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
26969 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26970 {
26971 PyThreadState* __tstate = wxPyBeginAllowThreads();
26972 result = (bool)(arg1)->Open();
26973
26974 wxPyEndAllowThreads(__tstate);
26975 if (PyErr_Occurred()) SWIG_fail;
26976 }
26977 {
26978 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26979 }
26980 return resultobj;
26981 fail:
26982 return NULL;
26983 }
26984
26985
26986 static PyObject *_wrap_Clipboard_Close(PyObject *self, PyObject *args, PyObject *kwargs) {
26987 PyObject *resultobj;
26988 wxClipboard *arg1 = (wxClipboard *) 0 ;
26989 PyObject * obj0 = 0 ;
26990 char *kwnames[] = {
26991 (char *) "self", NULL
26992 };
26993
26994 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Close",kwnames,&obj0)) goto fail;
26995 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
26996 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26997 {
26998 PyThreadState* __tstate = wxPyBeginAllowThreads();
26999 (arg1)->Close();
27000
27001 wxPyEndAllowThreads(__tstate);
27002 if (PyErr_Occurred()) SWIG_fail;
27003 }
27004 Py_INCREF(Py_None); resultobj = Py_None;
27005 return resultobj;
27006 fail:
27007 return NULL;
27008 }
27009
27010
27011 static PyObject *_wrap_Clipboard_IsOpened(PyObject *self, PyObject *args, PyObject *kwargs) {
27012 PyObject *resultobj;
27013 wxClipboard *arg1 = (wxClipboard *) 0 ;
27014 bool result;
27015 PyObject * obj0 = 0 ;
27016 char *kwnames[] = {
27017 (char *) "self", NULL
27018 };
27019
27020 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_IsOpened",kwnames,&obj0)) goto fail;
27021 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27022 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27023 {
27024 PyThreadState* __tstate = wxPyBeginAllowThreads();
27025 result = (bool)((wxClipboard const *)arg1)->IsOpened();
27026
27027 wxPyEndAllowThreads(__tstate);
27028 if (PyErr_Occurred()) SWIG_fail;
27029 }
27030 {
27031 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27032 }
27033 return resultobj;
27034 fail:
27035 return NULL;
27036 }
27037
27038
27039 static PyObject *_wrap_Clipboard_AddData(PyObject *self, PyObject *args, PyObject *kwargs) {
27040 PyObject *resultobj;
27041 wxClipboard *arg1 = (wxClipboard *) 0 ;
27042 wxDataObject *arg2 = (wxDataObject *) 0 ;
27043 bool result;
27044 PyObject * obj0 = 0 ;
27045 PyObject * obj1 = 0 ;
27046 char *kwnames[] = {
27047 (char *) "self",(char *) "data", NULL
27048 };
27049
27050 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_AddData",kwnames,&obj0,&obj1)) goto fail;
27051 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27052 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27053 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject,
27054 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
27055 {
27056 PyThreadState* __tstate = wxPyBeginAllowThreads();
27057 result = (bool)(arg1)->AddData(arg2);
27058
27059 wxPyEndAllowThreads(__tstate);
27060 if (PyErr_Occurred()) SWIG_fail;
27061 }
27062 {
27063 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27064 }
27065 return resultobj;
27066 fail:
27067 return NULL;
27068 }
27069
27070
27071 static PyObject *_wrap_Clipboard_SetData(PyObject *self, PyObject *args, PyObject *kwargs) {
27072 PyObject *resultobj;
27073 wxClipboard *arg1 = (wxClipboard *) 0 ;
27074 wxDataObject *arg2 = (wxDataObject *) 0 ;
27075 bool result;
27076 PyObject * obj0 = 0 ;
27077 PyObject * obj1 = 0 ;
27078 char *kwnames[] = {
27079 (char *) "self",(char *) "data", NULL
27080 };
27081
27082 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_SetData",kwnames,&obj0,&obj1)) goto fail;
27083 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27084 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27085 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject,
27086 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
27087 {
27088 PyThreadState* __tstate = wxPyBeginAllowThreads();
27089 result = (bool)(arg1)->SetData(arg2);
27090
27091 wxPyEndAllowThreads(__tstate);
27092 if (PyErr_Occurred()) SWIG_fail;
27093 }
27094 {
27095 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27096 }
27097 return resultobj;
27098 fail:
27099 return NULL;
27100 }
27101
27102
27103 static PyObject *_wrap_Clipboard_IsSupported(PyObject *self, PyObject *args, PyObject *kwargs) {
27104 PyObject *resultobj;
27105 wxClipboard *arg1 = (wxClipboard *) 0 ;
27106 wxDataFormat *arg2 = 0 ;
27107 bool result;
27108 PyObject * obj0 = 0 ;
27109 PyObject * obj1 = 0 ;
27110 char *kwnames[] = {
27111 (char *) "self",(char *) "format", NULL
27112 };
27113
27114 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_IsSupported",kwnames,&obj0,&obj1)) goto fail;
27115 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27116 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27117 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
27118 SWIG_POINTER_EXCEPTION | 0)) == -1)
27119 SWIG_fail;
27120 if (arg2 == NULL) {
27121 PyErr_SetString(PyExc_TypeError,"null reference");
27122 SWIG_fail;
27123 }
27124 {
27125 PyThreadState* __tstate = wxPyBeginAllowThreads();
27126 result = (bool)(arg1)->IsSupported((wxDataFormat const &)*arg2);
27127
27128 wxPyEndAllowThreads(__tstate);
27129 if (PyErr_Occurred()) SWIG_fail;
27130 }
27131 {
27132 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27133 }
27134 return resultobj;
27135 fail:
27136 return NULL;
27137 }
27138
27139
27140 static PyObject *_wrap_Clipboard_GetData(PyObject *self, PyObject *args, PyObject *kwargs) {
27141 PyObject *resultobj;
27142 wxClipboard *arg1 = (wxClipboard *) 0 ;
27143 wxDataObject *arg2 = 0 ;
27144 bool result;
27145 PyObject * obj0 = 0 ;
27146 PyObject * obj1 = 0 ;
27147 char *kwnames[] = {
27148 (char *) "self",(char *) "data", NULL
27149 };
27150
27151 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_GetData",kwnames,&obj0,&obj1)) goto fail;
27152 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27153 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27154 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject,
27155 SWIG_POINTER_EXCEPTION | 0)) == -1)
27156 SWIG_fail;
27157 if (arg2 == NULL) {
27158 PyErr_SetString(PyExc_TypeError,"null reference");
27159 SWIG_fail;
27160 }
27161 {
27162 PyThreadState* __tstate = wxPyBeginAllowThreads();
27163 result = (bool)(arg1)->GetData(*arg2);
27164
27165 wxPyEndAllowThreads(__tstate);
27166 if (PyErr_Occurred()) SWIG_fail;
27167 }
27168 {
27169 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27170 }
27171 return resultobj;
27172 fail:
27173 return NULL;
27174 }
27175
27176
27177 static PyObject *_wrap_Clipboard_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
27178 PyObject *resultobj;
27179 wxClipboard *arg1 = (wxClipboard *) 0 ;
27180 PyObject * obj0 = 0 ;
27181 char *kwnames[] = {
27182 (char *) "self", NULL
27183 };
27184
27185 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Clear",kwnames,&obj0)) goto fail;
27186 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27187 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27188 {
27189 PyThreadState* __tstate = wxPyBeginAllowThreads();
27190 (arg1)->Clear();
27191
27192 wxPyEndAllowThreads(__tstate);
27193 if (PyErr_Occurred()) SWIG_fail;
27194 }
27195 Py_INCREF(Py_None); resultobj = Py_None;
27196 return resultobj;
27197 fail:
27198 return NULL;
27199 }
27200
27201
27202 static PyObject *_wrap_Clipboard_Flush(PyObject *self, PyObject *args, PyObject *kwargs) {
27203 PyObject *resultobj;
27204 wxClipboard *arg1 = (wxClipboard *) 0 ;
27205 bool result;
27206 PyObject * obj0 = 0 ;
27207 char *kwnames[] = {
27208 (char *) "self", NULL
27209 };
27210
27211 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Flush",kwnames,&obj0)) goto fail;
27212 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27213 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27214 {
27215 PyThreadState* __tstate = wxPyBeginAllowThreads();
27216 result = (bool)(arg1)->Flush();
27217
27218 wxPyEndAllowThreads(__tstate);
27219 if (PyErr_Occurred()) SWIG_fail;
27220 }
27221 {
27222 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27223 }
27224 return resultobj;
27225 fail:
27226 return NULL;
27227 }
27228
27229
27230 static PyObject *_wrap_Clipboard_UsePrimarySelection(PyObject *self, PyObject *args, PyObject *kwargs) {
27231 PyObject *resultobj;
27232 wxClipboard *arg1 = (wxClipboard *) 0 ;
27233 bool arg2 = (bool) True ;
27234 PyObject * obj0 = 0 ;
27235 PyObject * obj1 = 0 ;
27236 char *kwnames[] = {
27237 (char *) "self",(char *) "primary", NULL
27238 };
27239
27240 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Clipboard_UsePrimarySelection",kwnames,&obj0,&obj1)) goto fail;
27241 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27242 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27243 if (obj1) {
27244 arg2 = (bool) SWIG_AsBool(obj1);
27245 if (PyErr_Occurred()) SWIG_fail;
27246 }
27247 {
27248 PyThreadState* __tstate = wxPyBeginAllowThreads();
27249 (arg1)->UsePrimarySelection(arg2);
27250
27251 wxPyEndAllowThreads(__tstate);
27252 if (PyErr_Occurred()) SWIG_fail;
27253 }
27254 Py_INCREF(Py_None); resultobj = Py_None;
27255 return resultobj;
27256 fail:
27257 return NULL;
27258 }
27259
27260
27261 static PyObject *_wrap_Clipboard_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
27262 PyObject *resultobj;
27263 wxClipboard *result;
27264 char *kwnames[] = {
27265 NULL
27266 };
27267
27268 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Clipboard_Get",kwnames)) goto fail;
27269 {
27270 PyThreadState* __tstate = wxPyBeginAllowThreads();
27271 result = (wxClipboard *)wxClipboard::Get();
27272
27273 wxPyEndAllowThreads(__tstate);
27274 if (PyErr_Occurred()) SWIG_fail;
27275 }
27276 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClipboard, 0);
27277 return resultobj;
27278 fail:
27279 return NULL;
27280 }
27281
27282
27283 static PyObject * Clipboard_swigregister(PyObject *self, PyObject *args) {
27284 PyObject *obj;
27285 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
27286 SWIG_TypeClientData(SWIGTYPE_p_wxClipboard, obj);
27287 Py_INCREF(obj);
27288 return Py_BuildValue((char *)"");
27289 }
27290 static PyObject *_wrap_new_ClipboardLocker(PyObject *self, PyObject *args, PyObject *kwargs) {
27291 PyObject *resultobj;
27292 wxClipboard *arg1 = (wxClipboard *) NULL ;
27293 wxClipboardLocker *result;
27294 PyObject * obj0 = 0 ;
27295 char *kwnames[] = {
27296 (char *) "clipboard", NULL
27297 };
27298
27299 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_ClipboardLocker",kwnames,&obj0)) goto fail;
27300 if (obj0) {
27301 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27302 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27303 }
27304 {
27305 PyThreadState* __tstate = wxPyBeginAllowThreads();
27306 result = (wxClipboardLocker *)new wxClipboardLocker(arg1);
27307
27308 wxPyEndAllowThreads(__tstate);
27309 if (PyErr_Occurred()) SWIG_fail;
27310 }
27311 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClipboardLocker, 1);
27312 return resultobj;
27313 fail:
27314 return NULL;
27315 }
27316
27317
27318 static PyObject *_wrap_delete_ClipboardLocker(PyObject *self, PyObject *args, PyObject *kwargs) {
27319 PyObject *resultobj;
27320 wxClipboardLocker *arg1 = (wxClipboardLocker *) 0 ;
27321 PyObject * obj0 = 0 ;
27322 char *kwnames[] = {
27323 (char *) "self", NULL
27324 };
27325
27326 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ClipboardLocker",kwnames,&obj0)) goto fail;
27327 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboardLocker,
27328 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27329 {
27330 PyThreadState* __tstate = wxPyBeginAllowThreads();
27331 delete arg1;
27332
27333 wxPyEndAllowThreads(__tstate);
27334 if (PyErr_Occurred()) SWIG_fail;
27335 }
27336 Py_INCREF(Py_None); resultobj = Py_None;
27337 return resultobj;
27338 fail:
27339 return NULL;
27340 }
27341
27342
27343 static PyObject *_wrap_ClipboardLocker___nonzero__(PyObject *self, PyObject *args, PyObject *kwargs) {
27344 PyObject *resultobj;
27345 wxClipboardLocker *arg1 = (wxClipboardLocker *) 0 ;
27346 bool result;
27347 PyObject * obj0 = 0 ;
27348 char *kwnames[] = {
27349 (char *) "self", NULL
27350 };
27351
27352 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ClipboardLocker___nonzero__",kwnames,&obj0)) goto fail;
27353 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboardLocker,
27354 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27355 {
27356 PyThreadState* __tstate = wxPyBeginAllowThreads();
27357 result = (bool)wxClipboardLocker___nonzero__(arg1);
27358
27359 wxPyEndAllowThreads(__tstate);
27360 if (PyErr_Occurred()) SWIG_fail;
27361 }
27362 {
27363 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27364 }
27365 return resultobj;
27366 fail:
27367 return NULL;
27368 }
27369
27370
27371 static PyObject * ClipboardLocker_swigregister(PyObject *self, PyObject *args) {
27372 PyObject *obj;
27373 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
27374 SWIG_TypeClientData(SWIGTYPE_p_wxClipboardLocker, obj);
27375 Py_INCREF(obj);
27376 return Py_BuildValue((char *)"");
27377 }
27378 static PyObject *_wrap_new_VideoMode(PyObject *self, PyObject *args, PyObject *kwargs) {
27379 PyObject *resultobj;
27380 int arg1 = (int) 0 ;
27381 int arg2 = (int) 0 ;
27382 int arg3 = (int) 0 ;
27383 int arg4 = (int) 0 ;
27384 wxVideoMode *result;
27385 PyObject * obj0 = 0 ;
27386 PyObject * obj1 = 0 ;
27387 PyObject * obj2 = 0 ;
27388 PyObject * obj3 = 0 ;
27389 char *kwnames[] = {
27390 (char *) "width",(char *) "height",(char *) "depth",(char *) "freq", NULL
27391 };
27392
27393 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_VideoMode",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
27394 if (obj0) {
27395 arg1 = (int) SWIG_AsInt(obj0);
27396 if (PyErr_Occurred()) SWIG_fail;
27397 }
27398 if (obj1) {
27399 arg2 = (int) SWIG_AsInt(obj1);
27400 if (PyErr_Occurred()) SWIG_fail;
27401 }
27402 if (obj2) {
27403 arg3 = (int) SWIG_AsInt(obj2);
27404 if (PyErr_Occurred()) SWIG_fail;
27405 }
27406 if (obj3) {
27407 arg4 = (int) SWIG_AsInt(obj3);
27408 if (PyErr_Occurred()) SWIG_fail;
27409 }
27410 {
27411 PyThreadState* __tstate = wxPyBeginAllowThreads();
27412 result = (wxVideoMode *)new wxVideoMode(arg1,arg2,arg3,arg4);
27413
27414 wxPyEndAllowThreads(__tstate);
27415 if (PyErr_Occurred()) SWIG_fail;
27416 }
27417 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxVideoMode, 1);
27418 return resultobj;
27419 fail:
27420 return NULL;
27421 }
27422
27423
27424 static PyObject *_wrap_delete_VideoMode(PyObject *self, PyObject *args, PyObject *kwargs) {
27425 PyObject *resultobj;
27426 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27427 PyObject * obj0 = 0 ;
27428 char *kwnames[] = {
27429 (char *) "self", NULL
27430 };
27431
27432 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_VideoMode",kwnames,&obj0)) goto fail;
27433 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27434 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27435 {
27436 PyThreadState* __tstate = wxPyBeginAllowThreads();
27437 delete arg1;
27438
27439 wxPyEndAllowThreads(__tstate);
27440 if (PyErr_Occurred()) SWIG_fail;
27441 }
27442 Py_INCREF(Py_None); resultobj = Py_None;
27443 return resultobj;
27444 fail:
27445 return NULL;
27446 }
27447
27448
27449 static PyObject *_wrap_VideoMode_Matches(PyObject *self, PyObject *args, PyObject *kwargs) {
27450 PyObject *resultobj;
27451 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27452 wxVideoMode *arg2 = 0 ;
27453 bool result;
27454 PyObject * obj0 = 0 ;
27455 PyObject * obj1 = 0 ;
27456 char *kwnames[] = {
27457 (char *) "self",(char *) "other", NULL
27458 };
27459
27460 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_Matches",kwnames,&obj0,&obj1)) goto fail;
27461 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27462 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27463 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode,
27464 SWIG_POINTER_EXCEPTION | 0)) == -1)
27465 SWIG_fail;
27466 if (arg2 == NULL) {
27467 PyErr_SetString(PyExc_TypeError,"null reference");
27468 SWIG_fail;
27469 }
27470 {
27471 PyThreadState* __tstate = wxPyBeginAllowThreads();
27472 result = (bool)((wxVideoMode const *)arg1)->Matches((wxVideoMode const &)*arg2);
27473
27474 wxPyEndAllowThreads(__tstate);
27475 if (PyErr_Occurred()) SWIG_fail;
27476 }
27477 {
27478 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27479 }
27480 return resultobj;
27481 fail:
27482 return NULL;
27483 }
27484
27485
27486 static PyObject *_wrap_VideoMode_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
27487 PyObject *resultobj;
27488 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27489 int result;
27490 PyObject * obj0 = 0 ;
27491 char *kwnames[] = {
27492 (char *) "self", NULL
27493 };
27494
27495 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_GetWidth",kwnames,&obj0)) goto fail;
27496 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27497 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27498 {
27499 PyThreadState* __tstate = wxPyBeginAllowThreads();
27500 result = (int)((wxVideoMode const *)arg1)->GetWidth();
27501
27502 wxPyEndAllowThreads(__tstate);
27503 if (PyErr_Occurred()) SWIG_fail;
27504 }
27505 resultobj = SWIG_FromInt((int)result);
27506 return resultobj;
27507 fail:
27508 return NULL;
27509 }
27510
27511
27512 static PyObject *_wrap_VideoMode_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
27513 PyObject *resultobj;
27514 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27515 int result;
27516 PyObject * obj0 = 0 ;
27517 char *kwnames[] = {
27518 (char *) "self", NULL
27519 };
27520
27521 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_GetHeight",kwnames,&obj0)) goto fail;
27522 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27523 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27524 {
27525 PyThreadState* __tstate = wxPyBeginAllowThreads();
27526 result = (int)((wxVideoMode const *)arg1)->GetHeight();
27527
27528 wxPyEndAllowThreads(__tstate);
27529 if (PyErr_Occurred()) SWIG_fail;
27530 }
27531 resultobj = SWIG_FromInt((int)result);
27532 return resultobj;
27533 fail:
27534 return NULL;
27535 }
27536
27537
27538 static PyObject *_wrap_VideoMode_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
27539 PyObject *resultobj;
27540 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27541 int result;
27542 PyObject * obj0 = 0 ;
27543 char *kwnames[] = {
27544 (char *) "self", NULL
27545 };
27546
27547 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_GetDepth",kwnames,&obj0)) goto fail;
27548 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27549 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27550 {
27551 PyThreadState* __tstate = wxPyBeginAllowThreads();
27552 result = (int)((wxVideoMode const *)arg1)->GetDepth();
27553
27554 wxPyEndAllowThreads(__tstate);
27555 if (PyErr_Occurred()) SWIG_fail;
27556 }
27557 resultobj = SWIG_FromInt((int)result);
27558 return resultobj;
27559 fail:
27560 return NULL;
27561 }
27562
27563
27564 static PyObject *_wrap_VideoMode_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
27565 PyObject *resultobj;
27566 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27567 bool result;
27568 PyObject * obj0 = 0 ;
27569 char *kwnames[] = {
27570 (char *) "self", NULL
27571 };
27572
27573 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_IsOk",kwnames,&obj0)) goto fail;
27574 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27575 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27576 {
27577 PyThreadState* __tstate = wxPyBeginAllowThreads();
27578 result = (bool)((wxVideoMode const *)arg1)->IsOk();
27579
27580 wxPyEndAllowThreads(__tstate);
27581 if (PyErr_Occurred()) SWIG_fail;
27582 }
27583 {
27584 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27585 }
27586 return resultobj;
27587 fail:
27588 return NULL;
27589 }
27590
27591
27592 static PyObject *_wrap_VideoMode___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
27593 PyObject *resultobj;
27594 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27595 wxVideoMode *arg2 = (wxVideoMode *) 0 ;
27596 bool result;
27597 PyObject * obj0 = 0 ;
27598 PyObject * obj1 = 0 ;
27599 char *kwnames[] = {
27600 (char *) "self",(char *) "other", NULL
27601 };
27602
27603 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode___eq__",kwnames,&obj0,&obj1)) goto fail;
27604 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27605 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27606 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode,
27607 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27608 {
27609 PyThreadState* __tstate = wxPyBeginAllowThreads();
27610 result = (bool)wxVideoMode___eq__(arg1,(wxVideoMode const *)arg2);
27611
27612 wxPyEndAllowThreads(__tstate);
27613 if (PyErr_Occurred()) SWIG_fail;
27614 }
27615 {
27616 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27617 }
27618 return resultobj;
27619 fail:
27620 return NULL;
27621 }
27622
27623
27624 static PyObject *_wrap_VideoMode___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
27625 PyObject *resultobj;
27626 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27627 wxVideoMode *arg2 = (wxVideoMode *) 0 ;
27628 bool result;
27629 PyObject * obj0 = 0 ;
27630 PyObject * obj1 = 0 ;
27631 char *kwnames[] = {
27632 (char *) "self",(char *) "other", NULL
27633 };
27634
27635 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode___ne__",kwnames,&obj0,&obj1)) goto fail;
27636 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27637 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27638 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode,
27639 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27640 {
27641 PyThreadState* __tstate = wxPyBeginAllowThreads();
27642 result = (bool)wxVideoMode___ne__(arg1,(wxVideoMode const *)arg2);
27643
27644 wxPyEndAllowThreads(__tstate);
27645 if (PyErr_Occurred()) SWIG_fail;
27646 }
27647 {
27648 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27649 }
27650 return resultobj;
27651 fail:
27652 return NULL;
27653 }
27654
27655
27656 static PyObject *_wrap_VideoMode_w_set(PyObject *self, PyObject *args, PyObject *kwargs) {
27657 PyObject *resultobj;
27658 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27659 int arg2 ;
27660 PyObject * obj0 = 0 ;
27661 PyObject * obj1 = 0 ;
27662 char *kwnames[] = {
27663 (char *) "self",(char *) "w", NULL
27664 };
27665
27666 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_w_set",kwnames,&obj0,&obj1)) goto fail;
27667 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27668 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27669 arg2 = (int) SWIG_AsInt(obj1);
27670 if (PyErr_Occurred()) SWIG_fail;
27671 if (arg1) (arg1)->w = arg2;
27672
27673 Py_INCREF(Py_None); resultobj = Py_None;
27674 return resultobj;
27675 fail:
27676 return NULL;
27677 }
27678
27679
27680 static PyObject *_wrap_VideoMode_w_get(PyObject *self, PyObject *args, PyObject *kwargs) {
27681 PyObject *resultobj;
27682 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27683 int result;
27684 PyObject * obj0 = 0 ;
27685 char *kwnames[] = {
27686 (char *) "self", NULL
27687 };
27688
27689 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_w_get",kwnames,&obj0)) goto fail;
27690 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27691 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27692 result = (int) ((arg1)->w);
27693
27694 resultobj = SWIG_FromInt((int)result);
27695 return resultobj;
27696 fail:
27697 return NULL;
27698 }
27699
27700
27701 static PyObject *_wrap_VideoMode_h_set(PyObject *self, PyObject *args, PyObject *kwargs) {
27702 PyObject *resultobj;
27703 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27704 int arg2 ;
27705 PyObject * obj0 = 0 ;
27706 PyObject * obj1 = 0 ;
27707 char *kwnames[] = {
27708 (char *) "self",(char *) "h", NULL
27709 };
27710
27711 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_h_set",kwnames,&obj0,&obj1)) goto fail;
27712 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27713 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27714 arg2 = (int) SWIG_AsInt(obj1);
27715 if (PyErr_Occurred()) SWIG_fail;
27716 if (arg1) (arg1)->h = arg2;
27717
27718 Py_INCREF(Py_None); resultobj = Py_None;
27719 return resultobj;
27720 fail:
27721 return NULL;
27722 }
27723
27724
27725 static PyObject *_wrap_VideoMode_h_get(PyObject *self, PyObject *args, PyObject *kwargs) {
27726 PyObject *resultobj;
27727 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27728 int result;
27729 PyObject * obj0 = 0 ;
27730 char *kwnames[] = {
27731 (char *) "self", NULL
27732 };
27733
27734 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_h_get",kwnames,&obj0)) goto fail;
27735 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27736 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27737 result = (int) ((arg1)->h);
27738
27739 resultobj = SWIG_FromInt((int)result);
27740 return resultobj;
27741 fail:
27742 return NULL;
27743 }
27744
27745
27746 static PyObject *_wrap_VideoMode_bpp_set(PyObject *self, PyObject *args, PyObject *kwargs) {
27747 PyObject *resultobj;
27748 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27749 int arg2 ;
27750 PyObject * obj0 = 0 ;
27751 PyObject * obj1 = 0 ;
27752 char *kwnames[] = {
27753 (char *) "self",(char *) "bpp", NULL
27754 };
27755
27756 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_bpp_set",kwnames,&obj0,&obj1)) goto fail;
27757 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27758 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27759 arg2 = (int) SWIG_AsInt(obj1);
27760 if (PyErr_Occurred()) SWIG_fail;
27761 if (arg1) (arg1)->bpp = arg2;
27762
27763 Py_INCREF(Py_None); resultobj = Py_None;
27764 return resultobj;
27765 fail:
27766 return NULL;
27767 }
27768
27769
27770 static PyObject *_wrap_VideoMode_bpp_get(PyObject *self, PyObject *args, PyObject *kwargs) {
27771 PyObject *resultobj;
27772 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27773 int result;
27774 PyObject * obj0 = 0 ;
27775 char *kwnames[] = {
27776 (char *) "self", NULL
27777 };
27778
27779 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_bpp_get",kwnames,&obj0)) goto fail;
27780 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27781 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27782 result = (int) ((arg1)->bpp);
27783
27784 resultobj = SWIG_FromInt((int)result);
27785 return resultobj;
27786 fail:
27787 return NULL;
27788 }
27789
27790
27791 static PyObject *_wrap_VideoMode_refresh_set(PyObject *self, PyObject *args, PyObject *kwargs) {
27792 PyObject *resultobj;
27793 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27794 int arg2 ;
27795 PyObject * obj0 = 0 ;
27796 PyObject * obj1 = 0 ;
27797 char *kwnames[] = {
27798 (char *) "self",(char *) "refresh", NULL
27799 };
27800
27801 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_refresh_set",kwnames,&obj0,&obj1)) goto fail;
27802 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27803 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27804 arg2 = (int) SWIG_AsInt(obj1);
27805 if (PyErr_Occurred()) SWIG_fail;
27806 if (arg1) (arg1)->refresh = arg2;
27807
27808 Py_INCREF(Py_None); resultobj = Py_None;
27809 return resultobj;
27810 fail:
27811 return NULL;
27812 }
27813
27814
27815 static PyObject *_wrap_VideoMode_refresh_get(PyObject *self, PyObject *args, PyObject *kwargs) {
27816 PyObject *resultobj;
27817 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27818 int result;
27819 PyObject * obj0 = 0 ;
27820 char *kwnames[] = {
27821 (char *) "self", NULL
27822 };
27823
27824 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_refresh_get",kwnames,&obj0)) goto fail;
27825 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27826 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27827 result = (int) ((arg1)->refresh);
27828
27829 resultobj = SWIG_FromInt((int)result);
27830 return resultobj;
27831 fail:
27832 return NULL;
27833 }
27834
27835
27836 static PyObject * VideoMode_swigregister(PyObject *self, PyObject *args) {
27837 PyObject *obj;
27838 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
27839 SWIG_TypeClientData(SWIGTYPE_p_wxVideoMode, obj);
27840 Py_INCREF(obj);
27841 return Py_BuildValue((char *)"");
27842 }
27843 static int _wrap_DefaultVideoMode_set(PyObject *_val) {
27844 PyErr_SetString(PyExc_TypeError,"Variable DefaultVideoMode is read-only.");
27845 return 1;
27846 }
27847
27848
27849 static PyObject *_wrap_DefaultVideoMode_get() {
27850 PyObject *pyobj;
27851
27852 pyobj = SWIG_NewPointerObj((void *)(&wxDefaultVideoMode), SWIGTYPE_p_wxVideoMode, 0);
27853 return pyobj;
27854 }
27855
27856
27857 static PyObject *_wrap_new_Display(PyObject *self, PyObject *args, PyObject *kwargs) {
27858 PyObject *resultobj;
27859 size_t arg1 = (size_t) 0 ;
27860 wxDisplay *result;
27861 PyObject * obj0 = 0 ;
27862 char *kwnames[] = {
27863 (char *) "index", NULL
27864 };
27865
27866 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Display",kwnames,&obj0)) goto fail;
27867 if (obj0) {
27868 arg1 = (size_t) SWIG_AsUnsignedLong(obj0);
27869 if (PyErr_Occurred()) SWIG_fail;
27870 }
27871 {
27872 PyThreadState* __tstate = wxPyBeginAllowThreads();
27873 result = (wxDisplay *)new wxDisplay(arg1);
27874
27875 wxPyEndAllowThreads(__tstate);
27876 if (PyErr_Occurred()) SWIG_fail;
27877 }
27878 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDisplay, 1);
27879 return resultobj;
27880 fail:
27881 return NULL;
27882 }
27883
27884
27885 static PyObject *_wrap_delete_Display(PyObject *self, PyObject *args, PyObject *kwargs) {
27886 PyObject *resultobj;
27887 wxDisplay *arg1 = (wxDisplay *) 0 ;
27888 PyObject * obj0 = 0 ;
27889 char *kwnames[] = {
27890 (char *) "self", NULL
27891 };
27892
27893 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Display",kwnames,&obj0)) goto fail;
27894 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
27895 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27896 {
27897 PyThreadState* __tstate = wxPyBeginAllowThreads();
27898 delete arg1;
27899
27900 wxPyEndAllowThreads(__tstate);
27901 if (PyErr_Occurred()) SWIG_fail;
27902 }
27903 Py_INCREF(Py_None); resultobj = Py_None;
27904 return resultobj;
27905 fail:
27906 return NULL;
27907 }
27908
27909
27910 static PyObject *_wrap_Display_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
27911 PyObject *resultobj;
27912 size_t result;
27913 char *kwnames[] = {
27914 NULL
27915 };
27916
27917 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Display_GetCount",kwnames)) goto fail;
27918 {
27919 PyThreadState* __tstate = wxPyBeginAllowThreads();
27920 result = (size_t)wxDisplay::GetCount();
27921
27922 wxPyEndAllowThreads(__tstate);
27923 if (PyErr_Occurred()) SWIG_fail;
27924 }
27925 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
27926 return resultobj;
27927 fail:
27928 return NULL;
27929 }
27930
27931
27932 static PyObject *_wrap_Display_GetFromPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
27933 PyObject *resultobj;
27934 wxPoint *arg1 = 0 ;
27935 int result;
27936 wxPoint temp1 ;
27937 PyObject * obj0 = 0 ;
27938 char *kwnames[] = {
27939 (char *) "pt", NULL
27940 };
27941
27942 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetFromPoint",kwnames,&obj0)) goto fail;
27943 {
27944 arg1 = &temp1;
27945 if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail;
27946 }
27947 {
27948 PyThreadState* __tstate = wxPyBeginAllowThreads();
27949 result = (int)wxDisplay::GetFromPoint((wxPoint const &)*arg1);
27950
27951 wxPyEndAllowThreads(__tstate);
27952 if (PyErr_Occurred()) SWIG_fail;
27953 }
27954 resultobj = SWIG_FromInt((int)result);
27955 return resultobj;
27956 fail:
27957 return NULL;
27958 }
27959
27960
27961 static PyObject *_wrap_Display_GetFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
27962 PyObject *resultobj;
27963 wxWindow *arg1 = (wxWindow *) 0 ;
27964 int result;
27965 PyObject * obj0 = 0 ;
27966 char *kwnames[] = {
27967 (char *) "window", NULL
27968 };
27969
27970 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetFromWindow",kwnames,&obj0)) goto fail;
27971 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27972 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27973 {
27974 PyThreadState* __tstate = wxPyBeginAllowThreads();
27975 result = (int)Display_GetFromWindow(arg1);
27976
27977 wxPyEndAllowThreads(__tstate);
27978 if (PyErr_Occurred()) SWIG_fail;
27979 }
27980 resultobj = SWIG_FromInt((int)result);
27981 return resultobj;
27982 fail:
27983 return NULL;
27984 }
27985
27986
27987 static PyObject *_wrap_Display_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
27988 PyObject *resultobj;
27989 wxDisplay *arg1 = (wxDisplay *) 0 ;
27990 bool result;
27991 PyObject * obj0 = 0 ;
27992 char *kwnames[] = {
27993 (char *) "self", NULL
27994 };
27995
27996 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_IsOk",kwnames,&obj0)) goto fail;
27997 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
27998 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27999 {
28000 PyThreadState* __tstate = wxPyBeginAllowThreads();
28001 result = (bool)((wxDisplay const *)arg1)->IsOk();
28002
28003 wxPyEndAllowThreads(__tstate);
28004 if (PyErr_Occurred()) SWIG_fail;
28005 }
28006 {
28007 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28008 }
28009 return resultobj;
28010 fail:
28011 return NULL;
28012 }
28013
28014
28015 static PyObject *_wrap_Display_GetGeometry(PyObject *self, PyObject *args, PyObject *kwargs) {
28016 PyObject *resultobj;
28017 wxDisplay *arg1 = (wxDisplay *) 0 ;
28018 wxRect result;
28019 PyObject * obj0 = 0 ;
28020 char *kwnames[] = {
28021 (char *) "self", NULL
28022 };
28023
28024 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetGeometry",kwnames,&obj0)) goto fail;
28025 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
28026 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28027 {
28028 PyThreadState* __tstate = wxPyBeginAllowThreads();
28029 result = ((wxDisplay const *)arg1)->GetGeometry();
28030
28031 wxPyEndAllowThreads(__tstate);
28032 if (PyErr_Occurred()) SWIG_fail;
28033 }
28034 {
28035 wxRect * resultptr;
28036 resultptr = new wxRect((wxRect &) result);
28037 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
28038 }
28039 return resultobj;
28040 fail:
28041 return NULL;
28042 }
28043
28044
28045 static PyObject *_wrap_Display_GetName(PyObject *self, PyObject *args, PyObject *kwargs) {
28046 PyObject *resultobj;
28047 wxDisplay *arg1 = (wxDisplay *) 0 ;
28048 wxString result;
28049 PyObject * obj0 = 0 ;
28050 char *kwnames[] = {
28051 (char *) "self", NULL
28052 };
28053
28054 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetName",kwnames,&obj0)) goto fail;
28055 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
28056 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28057 {
28058 PyThreadState* __tstate = wxPyBeginAllowThreads();
28059 result = ((wxDisplay const *)arg1)->GetName();
28060
28061 wxPyEndAllowThreads(__tstate);
28062 if (PyErr_Occurred()) SWIG_fail;
28063 }
28064 {
28065 #if wxUSE_UNICODE
28066 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
28067 #else
28068 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
28069 #endif
28070 }
28071 return resultobj;
28072 fail:
28073 return NULL;
28074 }
28075
28076
28077 static PyObject *_wrap_Display_IsPrimary(PyObject *self, PyObject *args, PyObject *kwargs) {
28078 PyObject *resultobj;
28079 wxDisplay *arg1 = (wxDisplay *) 0 ;
28080 bool result;
28081 PyObject * obj0 = 0 ;
28082 char *kwnames[] = {
28083 (char *) "self", NULL
28084 };
28085
28086 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_IsPrimary",kwnames,&obj0)) goto fail;
28087 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
28088 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28089 {
28090 PyThreadState* __tstate = wxPyBeginAllowThreads();
28091 result = (bool)((wxDisplay const *)arg1)->IsPrimary();
28092
28093 wxPyEndAllowThreads(__tstate);
28094 if (PyErr_Occurred()) SWIG_fail;
28095 }
28096 {
28097 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28098 }
28099 return resultobj;
28100 fail:
28101 return NULL;
28102 }
28103
28104
28105 static PyObject *_wrap_Display_GetModes(PyObject *self, PyObject *args, PyObject *kwargs) {
28106 PyObject *resultobj;
28107 wxDisplay *arg1 = (wxDisplay *) 0 ;
28108 wxVideoMode const &arg2_defvalue = wxDefaultVideoMode ;
28109 wxVideoMode *arg2 = (wxVideoMode *) &arg2_defvalue ;
28110 PyObject *result;
28111 PyObject * obj0 = 0 ;
28112 PyObject * obj1 = 0 ;
28113 char *kwnames[] = {
28114 (char *) "self",(char *) "mode", NULL
28115 };
28116
28117 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Display_GetModes",kwnames,&obj0,&obj1)) goto fail;
28118 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
28119 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28120 if (obj1) {
28121 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode,
28122 SWIG_POINTER_EXCEPTION | 0)) == -1)
28123 SWIG_fail;
28124 if (arg2 == NULL) {
28125 PyErr_SetString(PyExc_TypeError,"null reference");
28126 SWIG_fail;
28127 }
28128 }
28129 {
28130 PyThreadState* __tstate = wxPyBeginAllowThreads();
28131 result = (PyObject *)wxDisplay_GetModes(arg1,(wxVideoMode const &)*arg2);
28132
28133 wxPyEndAllowThreads(__tstate);
28134 if (PyErr_Occurred()) SWIG_fail;
28135 }
28136 resultobj = result;
28137 return resultobj;
28138 fail:
28139 return NULL;
28140 }
28141
28142
28143 static PyObject *_wrap_Display_GetCurrentMode(PyObject *self, PyObject *args, PyObject *kwargs) {
28144 PyObject *resultobj;
28145 wxDisplay *arg1 = (wxDisplay *) 0 ;
28146 wxVideoMode result;
28147 PyObject * obj0 = 0 ;
28148 char *kwnames[] = {
28149 (char *) "self", NULL
28150 };
28151
28152 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetCurrentMode",kwnames,&obj0)) goto fail;
28153 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
28154 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28155 {
28156 PyThreadState* __tstate = wxPyBeginAllowThreads();
28157 result = ((wxDisplay const *)arg1)->GetCurrentMode();
28158
28159 wxPyEndAllowThreads(__tstate);
28160 if (PyErr_Occurred()) SWIG_fail;
28161 }
28162 {
28163 wxVideoMode * resultptr;
28164 resultptr = new wxVideoMode((wxVideoMode &) result);
28165 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVideoMode, 1);
28166 }
28167 return resultobj;
28168 fail:
28169 return NULL;
28170 }
28171
28172
28173 static PyObject *_wrap_Display_ChangeMode(PyObject *self, PyObject *args, PyObject *kwargs) {
28174 PyObject *resultobj;
28175 wxDisplay *arg1 = (wxDisplay *) 0 ;
28176 wxVideoMode const &arg2_defvalue = wxDefaultVideoMode ;
28177 wxVideoMode *arg2 = (wxVideoMode *) &arg2_defvalue ;
28178 bool result;
28179 PyObject * obj0 = 0 ;
28180 PyObject * obj1 = 0 ;
28181 char *kwnames[] = {
28182 (char *) "self",(char *) "mode", NULL
28183 };
28184
28185 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Display_ChangeMode",kwnames,&obj0,&obj1)) goto fail;
28186 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
28187 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28188 if (obj1) {
28189 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode,
28190 SWIG_POINTER_EXCEPTION | 0)) == -1)
28191 SWIG_fail;
28192 if (arg2 == NULL) {
28193 PyErr_SetString(PyExc_TypeError,"null reference");
28194 SWIG_fail;
28195 }
28196 }
28197 {
28198 PyThreadState* __tstate = wxPyBeginAllowThreads();
28199 result = (bool)(arg1)->ChangeMode((wxVideoMode const &)*arg2);
28200
28201 wxPyEndAllowThreads(__tstate);
28202 if (PyErr_Occurred()) SWIG_fail;
28203 }
28204 {
28205 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28206 }
28207 return resultobj;
28208 fail:
28209 return NULL;
28210 }
28211
28212
28213 static PyObject *_wrap_Display_ResetMode(PyObject *self, PyObject *args, PyObject *kwargs) {
28214 PyObject *resultobj;
28215 wxDisplay *arg1 = (wxDisplay *) 0 ;
28216 PyObject * obj0 = 0 ;
28217 char *kwnames[] = {
28218 (char *) "self", NULL
28219 };
28220
28221 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_ResetMode",kwnames,&obj0)) goto fail;
28222 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
28223 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28224 {
28225 PyThreadState* __tstate = wxPyBeginAllowThreads();
28226 (arg1)->ResetMode();
28227
28228 wxPyEndAllowThreads(__tstate);
28229 if (PyErr_Occurred()) SWIG_fail;
28230 }
28231 Py_INCREF(Py_None); resultobj = Py_None;
28232 return resultobj;
28233 fail:
28234 return NULL;
28235 }
28236
28237
28238 static PyObject * Display_swigregister(PyObject *self, PyObject *args) {
28239 PyObject *obj;
28240 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
28241 SWIG_TypeClientData(SWIGTYPE_p_wxDisplay, obj);
28242 Py_INCREF(obj);
28243 return Py_BuildValue((char *)"");
28244 }
28245 static PyMethodDef SwigMethods[] = {
28246 { (char *)"SystemSettings_GetColour", (PyCFunction) _wrap_SystemSettings_GetColour, METH_VARARGS | METH_KEYWORDS },
28247 { (char *)"SystemSettings_GetFont", (PyCFunction) _wrap_SystemSettings_GetFont, METH_VARARGS | METH_KEYWORDS },
28248 { (char *)"SystemSettings_GetMetric", (PyCFunction) _wrap_SystemSettings_GetMetric, METH_VARARGS | METH_KEYWORDS },
28249 { (char *)"SystemSettings_HasFeature", (PyCFunction) _wrap_SystemSettings_HasFeature, METH_VARARGS | METH_KEYWORDS },
28250 { (char *)"SystemSettings_GetScreenType", (PyCFunction) _wrap_SystemSettings_GetScreenType, METH_VARARGS | METH_KEYWORDS },
28251 { (char *)"SystemSettings_SetScreenType", (PyCFunction) _wrap_SystemSettings_SetScreenType, METH_VARARGS | METH_KEYWORDS },
28252 { (char *)"SystemSettings_swigregister", SystemSettings_swigregister, METH_VARARGS },
28253 { (char *)"new_SystemOptions", (PyCFunction) _wrap_new_SystemOptions, METH_VARARGS | METH_KEYWORDS },
28254 { (char *)"SystemOptions_SetOption", (PyCFunction) _wrap_SystemOptions_SetOption, METH_VARARGS | METH_KEYWORDS },
28255 { (char *)"SystemOptions_SetOptionInt", (PyCFunction) _wrap_SystemOptions_SetOptionInt, METH_VARARGS | METH_KEYWORDS },
28256 { (char *)"SystemOptions_GetOption", (PyCFunction) _wrap_SystemOptions_GetOption, METH_VARARGS | METH_KEYWORDS },
28257 { (char *)"SystemOptions_GetOptionInt", (PyCFunction) _wrap_SystemOptions_GetOptionInt, METH_VARARGS | METH_KEYWORDS },
28258 { (char *)"SystemOptions_HasOption", (PyCFunction) _wrap_SystemOptions_HasOption, METH_VARARGS | METH_KEYWORDS },
28259 { (char *)"SystemOptions_swigregister", SystemOptions_swigregister, METH_VARARGS },
28260 { (char *)"NewId", (PyCFunction) _wrap_NewId, METH_VARARGS | METH_KEYWORDS },
28261 { (char *)"RegisterId", (PyCFunction) _wrap_RegisterId, METH_VARARGS | METH_KEYWORDS },
28262 { (char *)"GetCurrentId", (PyCFunction) _wrap_GetCurrentId, METH_VARARGS | METH_KEYWORDS },
28263 { (char *)"Bell", (PyCFunction) _wrap_Bell, METH_VARARGS | METH_KEYWORDS },
28264 { (char *)"EndBusyCursor", (PyCFunction) _wrap_EndBusyCursor, METH_VARARGS | METH_KEYWORDS },
28265 { (char *)"GetElapsedTime", (PyCFunction) _wrap_GetElapsedTime, METH_VARARGS | METH_KEYWORDS },
28266 { (char *)"GetMousePosition", (PyCFunction) _wrap_GetMousePosition, METH_VARARGS | METH_KEYWORDS },
28267 { (char *)"IsBusy", (PyCFunction) _wrap_IsBusy, METH_VARARGS | METH_KEYWORDS },
28268 { (char *)"Now", (PyCFunction) _wrap_Now, METH_VARARGS | METH_KEYWORDS },
28269 { (char *)"Shell", (PyCFunction) _wrap_Shell, METH_VARARGS | METH_KEYWORDS },
28270 { (char *)"StartTimer", (PyCFunction) _wrap_StartTimer, METH_VARARGS | METH_KEYWORDS },
28271 { (char *)"GetOsVersion", (PyCFunction) _wrap_GetOsVersion, METH_VARARGS | METH_KEYWORDS },
28272 { (char *)"GetOsDescription", (PyCFunction) _wrap_GetOsDescription, METH_VARARGS | METH_KEYWORDS },
28273 { (char *)"GetFreeMemory", (PyCFunction) _wrap_GetFreeMemory, METH_VARARGS | METH_KEYWORDS },
28274 { (char *)"Shutdown", (PyCFunction) _wrap_Shutdown, METH_VARARGS | METH_KEYWORDS },
28275 { (char *)"Sleep", (PyCFunction) _wrap_Sleep, METH_VARARGS | METH_KEYWORDS },
28276 { (char *)"MilliSleep", (PyCFunction) _wrap_MilliSleep, METH_VARARGS | METH_KEYWORDS },
28277 { (char *)"MicroSleep", (PyCFunction) _wrap_MicroSleep, METH_VARARGS | METH_KEYWORDS },
28278 { (char *)"EnableTopLevelWindows", (PyCFunction) _wrap_EnableTopLevelWindows, METH_VARARGS | METH_KEYWORDS },
28279 { (char *)"StripMenuCodes", (PyCFunction) _wrap_StripMenuCodes, METH_VARARGS | METH_KEYWORDS },
28280 { (char *)"GetEmailAddress", (PyCFunction) _wrap_GetEmailAddress, METH_VARARGS | METH_KEYWORDS },
28281 { (char *)"GetHostName", (PyCFunction) _wrap_GetHostName, METH_VARARGS | METH_KEYWORDS },
28282 { (char *)"GetFullHostName", (PyCFunction) _wrap_GetFullHostName, METH_VARARGS | METH_KEYWORDS },
28283 { (char *)"GetUserId", (PyCFunction) _wrap_GetUserId, METH_VARARGS | METH_KEYWORDS },
28284 { (char *)"GetUserName", (PyCFunction) _wrap_GetUserName, METH_VARARGS | METH_KEYWORDS },
28285 { (char *)"GetHomeDir", (PyCFunction) _wrap_GetHomeDir, METH_VARARGS | METH_KEYWORDS },
28286 { (char *)"GetUserHome", (PyCFunction) _wrap_GetUserHome, METH_VARARGS | METH_KEYWORDS },
28287 { (char *)"GetProcessId", (PyCFunction) _wrap_GetProcessId, METH_VARARGS | METH_KEYWORDS },
28288 { (char *)"Trap", (PyCFunction) _wrap_Trap, METH_VARARGS | METH_KEYWORDS },
28289 { (char *)"FileSelector", (PyCFunction) _wrap_FileSelector, METH_VARARGS | METH_KEYWORDS },
28290 { (char *)"LoadFileSelector", (PyCFunction) _wrap_LoadFileSelector, METH_VARARGS | METH_KEYWORDS },
28291 { (char *)"SaveFileSelector", (PyCFunction) _wrap_SaveFileSelector, METH_VARARGS | METH_KEYWORDS },
28292 { (char *)"DirSelector", (PyCFunction) _wrap_DirSelector, METH_VARARGS | METH_KEYWORDS },
28293 { (char *)"GetTextFromUser", (PyCFunction) _wrap_GetTextFromUser, METH_VARARGS | METH_KEYWORDS },
28294 { (char *)"GetPasswordFromUser", (PyCFunction) _wrap_GetPasswordFromUser, METH_VARARGS | METH_KEYWORDS },
28295 { (char *)"GetSingleChoice", (PyCFunction) _wrap_GetSingleChoice, METH_VARARGS | METH_KEYWORDS },
28296 { (char *)"GetSingleChoiceIndex", (PyCFunction) _wrap_GetSingleChoiceIndex, METH_VARARGS | METH_KEYWORDS },
28297 { (char *)"MessageBox", (PyCFunction) _wrap_MessageBox, METH_VARARGS | METH_KEYWORDS },
28298 { (char *)"GetNumberFromUser", (PyCFunction) _wrap_GetNumberFromUser, METH_VARARGS | METH_KEYWORDS },
28299 { (char *)"ColourDisplay", (PyCFunction) _wrap_ColourDisplay, METH_VARARGS | METH_KEYWORDS },
28300 { (char *)"DisplayDepth", (PyCFunction) _wrap_DisplayDepth, METH_VARARGS | METH_KEYWORDS },
28301 { (char *)"GetDisplayDepth", (PyCFunction) _wrap_GetDisplayDepth, METH_VARARGS | METH_KEYWORDS },
28302 { (char *)"DisplaySize", (PyCFunction) _wrap_DisplaySize, METH_VARARGS | METH_KEYWORDS },
28303 { (char *)"GetDisplaySize", (PyCFunction) _wrap_GetDisplaySize, METH_VARARGS | METH_KEYWORDS },
28304 { (char *)"DisplaySizeMM", (PyCFunction) _wrap_DisplaySizeMM, METH_VARARGS | METH_KEYWORDS },
28305 { (char *)"GetDisplaySizeMM", (PyCFunction) _wrap_GetDisplaySizeMM, METH_VARARGS | METH_KEYWORDS },
28306 { (char *)"ClientDisplayRect", (PyCFunction) _wrap_ClientDisplayRect, METH_VARARGS | METH_KEYWORDS },
28307 { (char *)"GetClientDisplayRect", (PyCFunction) _wrap_GetClientDisplayRect, METH_VARARGS | METH_KEYWORDS },
28308 { (char *)"SetCursor", (PyCFunction) _wrap_SetCursor, METH_VARARGS | METH_KEYWORDS },
28309 { (char *)"BeginBusyCursor", (PyCFunction) _wrap_BeginBusyCursor, METH_VARARGS | METH_KEYWORDS },
28310 { (char *)"GetActiveWindow", (PyCFunction) _wrap_GetActiveWindow, METH_VARARGS | METH_KEYWORDS },
28311 { (char *)"GenericFindWindowAtPoint", (PyCFunction) _wrap_GenericFindWindowAtPoint, METH_VARARGS | METH_KEYWORDS },
28312 { (char *)"FindWindowAtPoint", (PyCFunction) _wrap_FindWindowAtPoint, METH_VARARGS | METH_KEYWORDS },
28313 { (char *)"GetTopLevelParent", (PyCFunction) _wrap_GetTopLevelParent, METH_VARARGS | METH_KEYWORDS },
28314 { (char *)"GetKeyState", (PyCFunction) _wrap_GetKeyState, METH_VARARGS | METH_KEYWORDS },
28315 { (char *)"WakeUpMainThread", (PyCFunction) _wrap_WakeUpMainThread, METH_VARARGS | METH_KEYWORDS },
28316 { (char *)"MutexGuiEnter", (PyCFunction) _wrap_MutexGuiEnter, METH_VARARGS | METH_KEYWORDS },
28317 { (char *)"MutexGuiLeave", (PyCFunction) _wrap_MutexGuiLeave, METH_VARARGS | METH_KEYWORDS },
28318 { (char *)"new_MutexGuiLocker", (PyCFunction) _wrap_new_MutexGuiLocker, METH_VARARGS | METH_KEYWORDS },
28319 { (char *)"delete_MutexGuiLocker", (PyCFunction) _wrap_delete_MutexGuiLocker, METH_VARARGS | METH_KEYWORDS },
28320 { (char *)"MutexGuiLocker_swigregister", MutexGuiLocker_swigregister, METH_VARARGS },
28321 { (char *)"Thread_IsMain", (PyCFunction) _wrap_Thread_IsMain, METH_VARARGS | METH_KEYWORDS },
28322 { (char *)"new_ToolTip", (PyCFunction) _wrap_new_ToolTip, METH_VARARGS | METH_KEYWORDS },
28323 { (char *)"ToolTip_SetTip", (PyCFunction) _wrap_ToolTip_SetTip, METH_VARARGS | METH_KEYWORDS },
28324 { (char *)"ToolTip_GetTip", (PyCFunction) _wrap_ToolTip_GetTip, METH_VARARGS | METH_KEYWORDS },
28325 { (char *)"ToolTip_GetWindow", (PyCFunction) _wrap_ToolTip_GetWindow, METH_VARARGS | METH_KEYWORDS },
28326 { (char *)"ToolTip_Enable", (PyCFunction) _wrap_ToolTip_Enable, METH_VARARGS | METH_KEYWORDS },
28327 { (char *)"ToolTip_SetDelay", (PyCFunction) _wrap_ToolTip_SetDelay, METH_VARARGS | METH_KEYWORDS },
28328 { (char *)"ToolTip_swigregister", ToolTip_swigregister, METH_VARARGS },
28329 { (char *)"new_Caret", (PyCFunction) _wrap_new_Caret, METH_VARARGS | METH_KEYWORDS },
28330 { (char *)"delete_Caret", (PyCFunction) _wrap_delete_Caret, METH_VARARGS | METH_KEYWORDS },
28331 { (char *)"Caret_IsOk", (PyCFunction) _wrap_Caret_IsOk, METH_VARARGS | METH_KEYWORDS },
28332 { (char *)"Caret_IsVisible", (PyCFunction) _wrap_Caret_IsVisible, METH_VARARGS | METH_KEYWORDS },
28333 { (char *)"Caret_GetPosition", (PyCFunction) _wrap_Caret_GetPosition, METH_VARARGS | METH_KEYWORDS },
28334 { (char *)"Caret_GetPositionTuple", (PyCFunction) _wrap_Caret_GetPositionTuple, METH_VARARGS | METH_KEYWORDS },
28335 { (char *)"Caret_GetSize", (PyCFunction) _wrap_Caret_GetSize, METH_VARARGS | METH_KEYWORDS },
28336 { (char *)"Caret_GetSizeTuple", (PyCFunction) _wrap_Caret_GetSizeTuple, METH_VARARGS | METH_KEYWORDS },
28337 { (char *)"Caret_GetWindow", (PyCFunction) _wrap_Caret_GetWindow, METH_VARARGS | METH_KEYWORDS },
28338 { (char *)"Caret_MoveXY", (PyCFunction) _wrap_Caret_MoveXY, METH_VARARGS | METH_KEYWORDS },
28339 { (char *)"Caret_Move", (PyCFunction) _wrap_Caret_Move, METH_VARARGS | METH_KEYWORDS },
28340 { (char *)"Caret_SetSizeWH", (PyCFunction) _wrap_Caret_SetSizeWH, METH_VARARGS | METH_KEYWORDS },
28341 { (char *)"Caret_SetSize", (PyCFunction) _wrap_Caret_SetSize, METH_VARARGS | METH_KEYWORDS },
28342 { (char *)"Caret_Show", (PyCFunction) _wrap_Caret_Show, METH_VARARGS | METH_KEYWORDS },
28343 { (char *)"Caret_Hide", (PyCFunction) _wrap_Caret_Hide, METH_VARARGS | METH_KEYWORDS },
28344 { (char *)"Caret_swigregister", Caret_swigregister, METH_VARARGS },
28345 { (char *)"Caret_GetBlinkTime", (PyCFunction) _wrap_Caret_GetBlinkTime, METH_VARARGS | METH_KEYWORDS },
28346 { (char *)"Caret_SetBlinkTime", (PyCFunction) _wrap_Caret_SetBlinkTime, METH_VARARGS | METH_KEYWORDS },
28347 { (char *)"new_BusyCursor", (PyCFunction) _wrap_new_BusyCursor, METH_VARARGS | METH_KEYWORDS },
28348 { (char *)"delete_BusyCursor", (PyCFunction) _wrap_delete_BusyCursor, METH_VARARGS | METH_KEYWORDS },
28349 { (char *)"BusyCursor_swigregister", BusyCursor_swigregister, METH_VARARGS },
28350 { (char *)"new_WindowDisabler", (PyCFunction) _wrap_new_WindowDisabler, METH_VARARGS | METH_KEYWORDS },
28351 { (char *)"delete_WindowDisabler", (PyCFunction) _wrap_delete_WindowDisabler, METH_VARARGS | METH_KEYWORDS },
28352 { (char *)"WindowDisabler_swigregister", WindowDisabler_swigregister, METH_VARARGS },
28353 { (char *)"new_BusyInfo", (PyCFunction) _wrap_new_BusyInfo, METH_VARARGS | METH_KEYWORDS },
28354 { (char *)"delete_BusyInfo", (PyCFunction) _wrap_delete_BusyInfo, METH_VARARGS | METH_KEYWORDS },
28355 { (char *)"BusyInfo_swigregister", BusyInfo_swigregister, METH_VARARGS },
28356 { (char *)"new_StopWatch", (PyCFunction) _wrap_new_StopWatch, METH_VARARGS | METH_KEYWORDS },
28357 { (char *)"StopWatch_Start", (PyCFunction) _wrap_StopWatch_Start, METH_VARARGS | METH_KEYWORDS },
28358 { (char *)"StopWatch_Pause", (PyCFunction) _wrap_StopWatch_Pause, METH_VARARGS | METH_KEYWORDS },
28359 { (char *)"StopWatch_Resume", (PyCFunction) _wrap_StopWatch_Resume, METH_VARARGS | METH_KEYWORDS },
28360 { (char *)"StopWatch_Time", (PyCFunction) _wrap_StopWatch_Time, METH_VARARGS | METH_KEYWORDS },
28361 { (char *)"StopWatch_swigregister", StopWatch_swigregister, METH_VARARGS },
28362 { (char *)"new_FileHistory", (PyCFunction) _wrap_new_FileHistory, METH_VARARGS | METH_KEYWORDS },
28363 { (char *)"delete_FileHistory", (PyCFunction) _wrap_delete_FileHistory, METH_VARARGS | METH_KEYWORDS },
28364 { (char *)"FileHistory_AddFileToHistory", (PyCFunction) _wrap_FileHistory_AddFileToHistory, METH_VARARGS | METH_KEYWORDS },
28365 { (char *)"FileHistory_RemoveFileFromHistory", (PyCFunction) _wrap_FileHistory_RemoveFileFromHistory, METH_VARARGS | METH_KEYWORDS },
28366 { (char *)"FileHistory_GetMaxFiles", (PyCFunction) _wrap_FileHistory_GetMaxFiles, METH_VARARGS | METH_KEYWORDS },
28367 { (char *)"FileHistory_UseMenu", (PyCFunction) _wrap_FileHistory_UseMenu, METH_VARARGS | METH_KEYWORDS },
28368 { (char *)"FileHistory_RemoveMenu", (PyCFunction) _wrap_FileHistory_RemoveMenu, METH_VARARGS | METH_KEYWORDS },
28369 { (char *)"FileHistory_Load", (PyCFunction) _wrap_FileHistory_Load, METH_VARARGS | METH_KEYWORDS },
28370 { (char *)"FileHistory_Save", (PyCFunction) _wrap_FileHistory_Save, METH_VARARGS | METH_KEYWORDS },
28371 { (char *)"FileHistory_AddFilesToMenu", (PyCFunction) _wrap_FileHistory_AddFilesToMenu, METH_VARARGS | METH_KEYWORDS },
28372 { (char *)"FileHistory_AddFilesToThisMenu", (PyCFunction) _wrap_FileHistory_AddFilesToThisMenu, METH_VARARGS | METH_KEYWORDS },
28373 { (char *)"FileHistory_GetHistoryFile", (PyCFunction) _wrap_FileHistory_GetHistoryFile, METH_VARARGS | METH_KEYWORDS },
28374 { (char *)"FileHistory_GetCount", (PyCFunction) _wrap_FileHistory_GetCount, METH_VARARGS | METH_KEYWORDS },
28375 { (char *)"FileHistory_swigregister", FileHistory_swigregister, METH_VARARGS },
28376 { (char *)"new_SingleInstanceChecker", (PyCFunction) _wrap_new_SingleInstanceChecker, METH_VARARGS | METH_KEYWORDS },
28377 { (char *)"new_PreSingleInstanceChecker", (PyCFunction) _wrap_new_PreSingleInstanceChecker, METH_VARARGS | METH_KEYWORDS },
28378 { (char *)"delete_SingleInstanceChecker", (PyCFunction) _wrap_delete_SingleInstanceChecker, METH_VARARGS | METH_KEYWORDS },
28379 { (char *)"SingleInstanceChecker_Create", (PyCFunction) _wrap_SingleInstanceChecker_Create, METH_VARARGS | METH_KEYWORDS },
28380 { (char *)"SingleInstanceChecker_IsAnotherRunning", (PyCFunction) _wrap_SingleInstanceChecker_IsAnotherRunning, METH_VARARGS | METH_KEYWORDS },
28381 { (char *)"SingleInstanceChecker_swigregister", SingleInstanceChecker_swigregister, METH_VARARGS },
28382 { (char *)"DrawWindowOnDC", (PyCFunction) _wrap_DrawWindowOnDC, METH_VARARGS | METH_KEYWORDS },
28383 { (char *)"delete_TipProvider", (PyCFunction) _wrap_delete_TipProvider, METH_VARARGS | METH_KEYWORDS },
28384 { (char *)"TipProvider_GetTip", (PyCFunction) _wrap_TipProvider_GetTip, METH_VARARGS | METH_KEYWORDS },
28385 { (char *)"TipProvider_GetCurrentTip", (PyCFunction) _wrap_TipProvider_GetCurrentTip, METH_VARARGS | METH_KEYWORDS },
28386 { (char *)"TipProvider_PreprocessTip", (PyCFunction) _wrap_TipProvider_PreprocessTip, METH_VARARGS | METH_KEYWORDS },
28387 { (char *)"TipProvider_swigregister", TipProvider_swigregister, METH_VARARGS },
28388 { (char *)"new_PyTipProvider", (PyCFunction) _wrap_new_PyTipProvider, METH_VARARGS | METH_KEYWORDS },
28389 { (char *)"PyTipProvider__setCallbackInfo", (PyCFunction) _wrap_PyTipProvider__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
28390 { (char *)"PyTipProvider_swigregister", PyTipProvider_swigregister, METH_VARARGS },
28391 { (char *)"ShowTip", (PyCFunction) _wrap_ShowTip, METH_VARARGS | METH_KEYWORDS },
28392 { (char *)"CreateFileTipProvider", (PyCFunction) _wrap_CreateFileTipProvider, METH_VARARGS | METH_KEYWORDS },
28393 { (char *)"new_Timer", (PyCFunction) _wrap_new_Timer, METH_VARARGS | METH_KEYWORDS },
28394 { (char *)"delete_Timer", (PyCFunction) _wrap_delete_Timer, METH_VARARGS | METH_KEYWORDS },
28395 { (char *)"Timer__setCallbackInfo", (PyCFunction) _wrap_Timer__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
28396 { (char *)"Timer_SetOwner", (PyCFunction) _wrap_Timer_SetOwner, METH_VARARGS | METH_KEYWORDS },
28397 { (char *)"Timer_GetOwner", (PyCFunction) _wrap_Timer_GetOwner, METH_VARARGS | METH_KEYWORDS },
28398 { (char *)"Timer_Start", (PyCFunction) _wrap_Timer_Start, METH_VARARGS | METH_KEYWORDS },
28399 { (char *)"Timer_Stop", (PyCFunction) _wrap_Timer_Stop, METH_VARARGS | METH_KEYWORDS },
28400 { (char *)"Timer_IsRunning", (PyCFunction) _wrap_Timer_IsRunning, METH_VARARGS | METH_KEYWORDS },
28401 { (char *)"Timer_GetInterval", (PyCFunction) _wrap_Timer_GetInterval, METH_VARARGS | METH_KEYWORDS },
28402 { (char *)"Timer_IsOneShot", (PyCFunction) _wrap_Timer_IsOneShot, METH_VARARGS | METH_KEYWORDS },
28403 { (char *)"Timer_GetId", (PyCFunction) _wrap_Timer_GetId, METH_VARARGS | METH_KEYWORDS },
28404 { (char *)"Timer_swigregister", Timer_swigregister, METH_VARARGS },
28405 { (char *)"new_TimerEvent", (PyCFunction) _wrap_new_TimerEvent, METH_VARARGS | METH_KEYWORDS },
28406 { (char *)"TimerEvent_GetInterval", (PyCFunction) _wrap_TimerEvent_GetInterval, METH_VARARGS | METH_KEYWORDS },
28407 { (char *)"TimerEvent_swigregister", TimerEvent_swigregister, METH_VARARGS },
28408 { (char *)"new_TimerRunner", _wrap_new_TimerRunner, METH_VARARGS },
28409 { (char *)"delete_TimerRunner", (PyCFunction) _wrap_delete_TimerRunner, METH_VARARGS | METH_KEYWORDS },
28410 { (char *)"TimerRunner_Start", (PyCFunction) _wrap_TimerRunner_Start, METH_VARARGS | METH_KEYWORDS },
28411 { (char *)"TimerRunner_swigregister", TimerRunner_swigregister, METH_VARARGS },
28412 { (char *)"new_Log", (PyCFunction) _wrap_new_Log, METH_VARARGS | METH_KEYWORDS },
28413 { (char *)"Log_IsEnabled", (PyCFunction) _wrap_Log_IsEnabled, METH_VARARGS | METH_KEYWORDS },
28414 { (char *)"Log_EnableLogging", (PyCFunction) _wrap_Log_EnableLogging, METH_VARARGS | METH_KEYWORDS },
28415 { (char *)"Log_OnLog", (PyCFunction) _wrap_Log_OnLog, METH_VARARGS | METH_KEYWORDS },
28416 { (char *)"Log_Flush", (PyCFunction) _wrap_Log_Flush, METH_VARARGS | METH_KEYWORDS },
28417 { (char *)"Log_FlushActive", (PyCFunction) _wrap_Log_FlushActive, METH_VARARGS | METH_KEYWORDS },
28418 { (char *)"Log_GetActiveTarget", (PyCFunction) _wrap_Log_GetActiveTarget, METH_VARARGS | METH_KEYWORDS },
28419 { (char *)"Log_SetActiveTarget", (PyCFunction) _wrap_Log_SetActiveTarget, METH_VARARGS | METH_KEYWORDS },
28420 { (char *)"Log_Suspend", (PyCFunction) _wrap_Log_Suspend, METH_VARARGS | METH_KEYWORDS },
28421 { (char *)"Log_Resume", (PyCFunction) _wrap_Log_Resume, METH_VARARGS | METH_KEYWORDS },
28422 { (char *)"Log_SetVerbose", (PyCFunction) _wrap_Log_SetVerbose, METH_VARARGS | METH_KEYWORDS },
28423 { (char *)"Log_SetLogLevel", (PyCFunction) _wrap_Log_SetLogLevel, METH_VARARGS | METH_KEYWORDS },
28424 { (char *)"Log_DontCreateOnDemand", (PyCFunction) _wrap_Log_DontCreateOnDemand, METH_VARARGS | METH_KEYWORDS },
28425 { (char *)"Log_SetTraceMask", (PyCFunction) _wrap_Log_SetTraceMask, METH_VARARGS | METH_KEYWORDS },
28426 { (char *)"Log_AddTraceMask", (PyCFunction) _wrap_Log_AddTraceMask, METH_VARARGS | METH_KEYWORDS },
28427 { (char *)"Log_RemoveTraceMask", (PyCFunction) _wrap_Log_RemoveTraceMask, METH_VARARGS | METH_KEYWORDS },
28428 { (char *)"Log_ClearTraceMasks", (PyCFunction) _wrap_Log_ClearTraceMasks, METH_VARARGS | METH_KEYWORDS },
28429 { (char *)"Log_GetTraceMasks", (PyCFunction) _wrap_Log_GetTraceMasks, METH_VARARGS | METH_KEYWORDS },
28430 { (char *)"Log_SetTimestamp", (PyCFunction) _wrap_Log_SetTimestamp, METH_VARARGS | METH_KEYWORDS },
28431 { (char *)"Log_GetVerbose", (PyCFunction) _wrap_Log_GetVerbose, METH_VARARGS | METH_KEYWORDS },
28432 { (char *)"Log_GetTraceMask", (PyCFunction) _wrap_Log_GetTraceMask, METH_VARARGS | METH_KEYWORDS },
28433 { (char *)"Log_IsAllowedTraceMask", (PyCFunction) _wrap_Log_IsAllowedTraceMask, METH_VARARGS | METH_KEYWORDS },
28434 { (char *)"Log_GetLogLevel", (PyCFunction) _wrap_Log_GetLogLevel, METH_VARARGS | METH_KEYWORDS },
28435 { (char *)"Log_GetTimestamp", (PyCFunction) _wrap_Log_GetTimestamp, METH_VARARGS | METH_KEYWORDS },
28436 { (char *)"Log_TimeStamp", (PyCFunction) _wrap_Log_TimeStamp, METH_VARARGS | METH_KEYWORDS },
28437 { (char *)"Log_Destroy", (PyCFunction) _wrap_Log_Destroy, METH_VARARGS | METH_KEYWORDS },
28438 { (char *)"Log_swigregister", Log_swigregister, METH_VARARGS },
28439 { (char *)"new_LogStderr", (PyCFunction) _wrap_new_LogStderr, METH_VARARGS | METH_KEYWORDS },
28440 { (char *)"LogStderr_swigregister", LogStderr_swigregister, METH_VARARGS },
28441 { (char *)"new_LogTextCtrl", (PyCFunction) _wrap_new_LogTextCtrl, METH_VARARGS | METH_KEYWORDS },
28442 { (char *)"LogTextCtrl_swigregister", LogTextCtrl_swigregister, METH_VARARGS },
28443 { (char *)"new_LogGui", (PyCFunction) _wrap_new_LogGui, METH_VARARGS | METH_KEYWORDS },
28444 { (char *)"LogGui_swigregister", LogGui_swigregister, METH_VARARGS },
28445 { (char *)"new_LogWindow", (PyCFunction) _wrap_new_LogWindow, METH_VARARGS | METH_KEYWORDS },
28446 { (char *)"LogWindow_Show", (PyCFunction) _wrap_LogWindow_Show, METH_VARARGS | METH_KEYWORDS },
28447 { (char *)"LogWindow_GetFrame", (PyCFunction) _wrap_LogWindow_GetFrame, METH_VARARGS | METH_KEYWORDS },
28448 { (char *)"LogWindow_GetOldLog", (PyCFunction) _wrap_LogWindow_GetOldLog, METH_VARARGS | METH_KEYWORDS },
28449 { (char *)"LogWindow_IsPassingMessages", (PyCFunction) _wrap_LogWindow_IsPassingMessages, METH_VARARGS | METH_KEYWORDS },
28450 { (char *)"LogWindow_PassMessages", (PyCFunction) _wrap_LogWindow_PassMessages, METH_VARARGS | METH_KEYWORDS },
28451 { (char *)"LogWindow_swigregister", LogWindow_swigregister, METH_VARARGS },
28452 { (char *)"new_LogChain", (PyCFunction) _wrap_new_LogChain, METH_VARARGS | METH_KEYWORDS },
28453 { (char *)"LogChain_SetLog", (PyCFunction) _wrap_LogChain_SetLog, METH_VARARGS | METH_KEYWORDS },
28454 { (char *)"LogChain_PassMessages", (PyCFunction) _wrap_LogChain_PassMessages, METH_VARARGS | METH_KEYWORDS },
28455 { (char *)"LogChain_IsPassingMessages", (PyCFunction) _wrap_LogChain_IsPassingMessages, METH_VARARGS | METH_KEYWORDS },
28456 { (char *)"LogChain_GetOldLog", (PyCFunction) _wrap_LogChain_GetOldLog, METH_VARARGS | METH_KEYWORDS },
28457 { (char *)"LogChain_swigregister", LogChain_swigregister, METH_VARARGS },
28458 { (char *)"SysErrorCode", (PyCFunction) _wrap_SysErrorCode, METH_VARARGS | METH_KEYWORDS },
28459 { (char *)"SysErrorMsg", (PyCFunction) _wrap_SysErrorMsg, METH_VARARGS | METH_KEYWORDS },
28460 { (char *)"LogFatalError", (PyCFunction) _wrap_LogFatalError, METH_VARARGS | METH_KEYWORDS },
28461 { (char *)"LogError", (PyCFunction) _wrap_LogError, METH_VARARGS | METH_KEYWORDS },
28462 { (char *)"LogWarning", (PyCFunction) _wrap_LogWarning, METH_VARARGS | METH_KEYWORDS },
28463 { (char *)"LogMessage", (PyCFunction) _wrap_LogMessage, METH_VARARGS | METH_KEYWORDS },
28464 { (char *)"LogInfo", (PyCFunction) _wrap_LogInfo, METH_VARARGS | METH_KEYWORDS },
28465 { (char *)"LogDebug", (PyCFunction) _wrap_LogDebug, METH_VARARGS | METH_KEYWORDS },
28466 { (char *)"LogVerbose", (PyCFunction) _wrap_LogVerbose, METH_VARARGS | METH_KEYWORDS },
28467 { (char *)"LogStatus", (PyCFunction) _wrap_LogStatus, METH_VARARGS | METH_KEYWORDS },
28468 { (char *)"LogStatusFrame", (PyCFunction) _wrap_LogStatusFrame, METH_VARARGS | METH_KEYWORDS },
28469 { (char *)"LogSysError", (PyCFunction) _wrap_LogSysError, METH_VARARGS | METH_KEYWORDS },
28470 { (char *)"LogTrace", _wrap_LogTrace, METH_VARARGS },
28471 { (char *)"LogGeneric", (PyCFunction) _wrap_LogGeneric, METH_VARARGS | METH_KEYWORDS },
28472 { (char *)"SafeShowMessage", (PyCFunction) _wrap_SafeShowMessage, METH_VARARGS | METH_KEYWORDS },
28473 { (char *)"new_LogNull", (PyCFunction) _wrap_new_LogNull, METH_VARARGS | METH_KEYWORDS },
28474 { (char *)"delete_LogNull", (PyCFunction) _wrap_delete_LogNull, METH_VARARGS | METH_KEYWORDS },
28475 { (char *)"LogNull_swigregister", LogNull_swigregister, METH_VARARGS },
28476 { (char *)"new_PyLog", (PyCFunction) _wrap_new_PyLog, METH_VARARGS | METH_KEYWORDS },
28477 { (char *)"PyLog__setCallbackInfo", (PyCFunction) _wrap_PyLog__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
28478 { (char *)"PyLog_swigregister", PyLog_swigregister, METH_VARARGS },
28479 { (char *)"Process_Kill", (PyCFunction) _wrap_Process_Kill, METH_VARARGS | METH_KEYWORDS },
28480 { (char *)"Process_Exists", (PyCFunction) _wrap_Process_Exists, METH_VARARGS | METH_KEYWORDS },
28481 { (char *)"Process_Open", (PyCFunction) _wrap_Process_Open, METH_VARARGS | METH_KEYWORDS },
28482 { (char *)"new_Process", (PyCFunction) _wrap_new_Process, METH_VARARGS | METH_KEYWORDS },
28483 { (char *)"Process__setCallbackInfo", (PyCFunction) _wrap_Process__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
28484 { (char *)"Process_base_OnTerminate", (PyCFunction) _wrap_Process_base_OnTerminate, METH_VARARGS | METH_KEYWORDS },
28485 { (char *)"Process_Redirect", (PyCFunction) _wrap_Process_Redirect, METH_VARARGS | METH_KEYWORDS },
28486 { (char *)"Process_IsRedirected", (PyCFunction) _wrap_Process_IsRedirected, METH_VARARGS | METH_KEYWORDS },
28487 { (char *)"Process_Detach", (PyCFunction) _wrap_Process_Detach, METH_VARARGS | METH_KEYWORDS },
28488 { (char *)"Process_GetInputStream", (PyCFunction) _wrap_Process_GetInputStream, METH_VARARGS | METH_KEYWORDS },
28489 { (char *)"Process_GetErrorStream", (PyCFunction) _wrap_Process_GetErrorStream, METH_VARARGS | METH_KEYWORDS },
28490 { (char *)"Process_GetOutputStream", (PyCFunction) _wrap_Process_GetOutputStream, METH_VARARGS | METH_KEYWORDS },
28491 { (char *)"Process_CloseOutput", (PyCFunction) _wrap_Process_CloseOutput, METH_VARARGS | METH_KEYWORDS },
28492 { (char *)"Process_IsInputOpened", (PyCFunction) _wrap_Process_IsInputOpened, METH_VARARGS | METH_KEYWORDS },
28493 { (char *)"Process_IsInputAvailable", (PyCFunction) _wrap_Process_IsInputAvailable, METH_VARARGS | METH_KEYWORDS },
28494 { (char *)"Process_IsErrorAvailable", (PyCFunction) _wrap_Process_IsErrorAvailable, METH_VARARGS | METH_KEYWORDS },
28495 { (char *)"Process_swigregister", Process_swigregister, METH_VARARGS },
28496 { (char *)"new_ProcessEvent", (PyCFunction) _wrap_new_ProcessEvent, METH_VARARGS | METH_KEYWORDS },
28497 { (char *)"ProcessEvent_GetPid", (PyCFunction) _wrap_ProcessEvent_GetPid, METH_VARARGS | METH_KEYWORDS },
28498 { (char *)"ProcessEvent_GetExitCode", (PyCFunction) _wrap_ProcessEvent_GetExitCode, METH_VARARGS | METH_KEYWORDS },
28499 { (char *)"ProcessEvent_m_pid_set", (PyCFunction) _wrap_ProcessEvent_m_pid_set, METH_VARARGS | METH_KEYWORDS },
28500 { (char *)"ProcessEvent_m_pid_get", (PyCFunction) _wrap_ProcessEvent_m_pid_get, METH_VARARGS | METH_KEYWORDS },
28501 { (char *)"ProcessEvent_m_exitcode_set", (PyCFunction) _wrap_ProcessEvent_m_exitcode_set, METH_VARARGS | METH_KEYWORDS },
28502 { (char *)"ProcessEvent_m_exitcode_get", (PyCFunction) _wrap_ProcessEvent_m_exitcode_get, METH_VARARGS | METH_KEYWORDS },
28503 { (char *)"ProcessEvent_swigregister", ProcessEvent_swigregister, METH_VARARGS },
28504 { (char *)"Execute", (PyCFunction) _wrap_Execute, METH_VARARGS | METH_KEYWORDS },
28505 { (char *)"new_Joystick", (PyCFunction) _wrap_new_Joystick, METH_VARARGS | METH_KEYWORDS },
28506 { (char *)"delete_Joystick", (PyCFunction) _wrap_delete_Joystick, METH_VARARGS | METH_KEYWORDS },
28507 { (char *)"Joystick_GetPosition", (PyCFunction) _wrap_Joystick_GetPosition, METH_VARARGS | METH_KEYWORDS },
28508 { (char *)"Joystick_GetZPosition", (PyCFunction) _wrap_Joystick_GetZPosition, METH_VARARGS | METH_KEYWORDS },
28509 { (char *)"Joystick_GetButtonState", (PyCFunction) _wrap_Joystick_GetButtonState, METH_VARARGS | METH_KEYWORDS },
28510 { (char *)"Joystick_GetPOVPosition", (PyCFunction) _wrap_Joystick_GetPOVPosition, METH_VARARGS | METH_KEYWORDS },
28511 { (char *)"Joystick_GetPOVCTSPosition", (PyCFunction) _wrap_Joystick_GetPOVCTSPosition, METH_VARARGS | METH_KEYWORDS },
28512 { (char *)"Joystick_GetRudderPosition", (PyCFunction) _wrap_Joystick_GetRudderPosition, METH_VARARGS | METH_KEYWORDS },
28513 { (char *)"Joystick_GetUPosition", (PyCFunction) _wrap_Joystick_GetUPosition, METH_VARARGS | METH_KEYWORDS },
28514 { (char *)"Joystick_GetVPosition", (PyCFunction) _wrap_Joystick_GetVPosition, METH_VARARGS | METH_KEYWORDS },
28515 { (char *)"Joystick_GetMovementThreshold", (PyCFunction) _wrap_Joystick_GetMovementThreshold, METH_VARARGS | METH_KEYWORDS },
28516 { (char *)"Joystick_SetMovementThreshold", (PyCFunction) _wrap_Joystick_SetMovementThreshold, METH_VARARGS | METH_KEYWORDS },
28517 { (char *)"Joystick_IsOk", (PyCFunction) _wrap_Joystick_IsOk, METH_VARARGS | METH_KEYWORDS },
28518 { (char *)"Joystick_GetNumberJoysticks", (PyCFunction) _wrap_Joystick_GetNumberJoysticks, METH_VARARGS | METH_KEYWORDS },
28519 { (char *)"Joystick_GetManufacturerId", (PyCFunction) _wrap_Joystick_GetManufacturerId, METH_VARARGS | METH_KEYWORDS },
28520 { (char *)"Joystick_GetProductId", (PyCFunction) _wrap_Joystick_GetProductId, METH_VARARGS | METH_KEYWORDS },
28521 { (char *)"Joystick_GetProductName", (PyCFunction) _wrap_Joystick_GetProductName, METH_VARARGS | METH_KEYWORDS },
28522 { (char *)"Joystick_GetXMin", (PyCFunction) _wrap_Joystick_GetXMin, METH_VARARGS | METH_KEYWORDS },
28523 { (char *)"Joystick_GetYMin", (PyCFunction) _wrap_Joystick_GetYMin, METH_VARARGS | METH_KEYWORDS },
28524 { (char *)"Joystick_GetZMin", (PyCFunction) _wrap_Joystick_GetZMin, METH_VARARGS | METH_KEYWORDS },
28525 { (char *)"Joystick_GetXMax", (PyCFunction) _wrap_Joystick_GetXMax, METH_VARARGS | METH_KEYWORDS },
28526 { (char *)"Joystick_GetYMax", (PyCFunction) _wrap_Joystick_GetYMax, METH_VARARGS | METH_KEYWORDS },
28527 { (char *)"Joystick_GetZMax", (PyCFunction) _wrap_Joystick_GetZMax, METH_VARARGS | METH_KEYWORDS },
28528 { (char *)"Joystick_GetNumberButtons", (PyCFunction) _wrap_Joystick_GetNumberButtons, METH_VARARGS | METH_KEYWORDS },
28529 { (char *)"Joystick_GetNumberAxes", (PyCFunction) _wrap_Joystick_GetNumberAxes, METH_VARARGS | METH_KEYWORDS },
28530 { (char *)"Joystick_GetMaxButtons", (PyCFunction) _wrap_Joystick_GetMaxButtons, METH_VARARGS | METH_KEYWORDS },
28531 { (char *)"Joystick_GetMaxAxes", (PyCFunction) _wrap_Joystick_GetMaxAxes, METH_VARARGS | METH_KEYWORDS },
28532 { (char *)"Joystick_GetPollingMin", (PyCFunction) _wrap_Joystick_GetPollingMin, METH_VARARGS | METH_KEYWORDS },
28533 { (char *)"Joystick_GetPollingMax", (PyCFunction) _wrap_Joystick_GetPollingMax, METH_VARARGS | METH_KEYWORDS },
28534 { (char *)"Joystick_GetRudderMin", (PyCFunction) _wrap_Joystick_GetRudderMin, METH_VARARGS | METH_KEYWORDS },
28535 { (char *)"Joystick_GetRudderMax", (PyCFunction) _wrap_Joystick_GetRudderMax, METH_VARARGS | METH_KEYWORDS },
28536 { (char *)"Joystick_GetUMin", (PyCFunction) _wrap_Joystick_GetUMin, METH_VARARGS | METH_KEYWORDS },
28537 { (char *)"Joystick_GetUMax", (PyCFunction) _wrap_Joystick_GetUMax, METH_VARARGS | METH_KEYWORDS },
28538 { (char *)"Joystick_GetVMin", (PyCFunction) _wrap_Joystick_GetVMin, METH_VARARGS | METH_KEYWORDS },
28539 { (char *)"Joystick_GetVMax", (PyCFunction) _wrap_Joystick_GetVMax, METH_VARARGS | METH_KEYWORDS },
28540 { (char *)"Joystick_HasRudder", (PyCFunction) _wrap_Joystick_HasRudder, METH_VARARGS | METH_KEYWORDS },
28541 { (char *)"Joystick_HasZ", (PyCFunction) _wrap_Joystick_HasZ, METH_VARARGS | METH_KEYWORDS },
28542 { (char *)"Joystick_HasU", (PyCFunction) _wrap_Joystick_HasU, METH_VARARGS | METH_KEYWORDS },
28543 { (char *)"Joystick_HasV", (PyCFunction) _wrap_Joystick_HasV, METH_VARARGS | METH_KEYWORDS },
28544 { (char *)"Joystick_HasPOV", (PyCFunction) _wrap_Joystick_HasPOV, METH_VARARGS | METH_KEYWORDS },
28545 { (char *)"Joystick_HasPOV4Dir", (PyCFunction) _wrap_Joystick_HasPOV4Dir, METH_VARARGS | METH_KEYWORDS },
28546 { (char *)"Joystick_HasPOVCTS", (PyCFunction) _wrap_Joystick_HasPOVCTS, METH_VARARGS | METH_KEYWORDS },
28547 { (char *)"Joystick_SetCapture", (PyCFunction) _wrap_Joystick_SetCapture, METH_VARARGS | METH_KEYWORDS },
28548 { (char *)"Joystick_ReleaseCapture", (PyCFunction) _wrap_Joystick_ReleaseCapture, METH_VARARGS | METH_KEYWORDS },
28549 { (char *)"Joystick_swigregister", Joystick_swigregister, METH_VARARGS },
28550 { (char *)"JoystickEvent_m_pos_set", (PyCFunction) _wrap_JoystickEvent_m_pos_set, METH_VARARGS | METH_KEYWORDS },
28551 { (char *)"JoystickEvent_m_pos_get", (PyCFunction) _wrap_JoystickEvent_m_pos_get, METH_VARARGS | METH_KEYWORDS },
28552 { (char *)"JoystickEvent_m_zPosition_set", (PyCFunction) _wrap_JoystickEvent_m_zPosition_set, METH_VARARGS | METH_KEYWORDS },
28553 { (char *)"JoystickEvent_m_zPosition_get", (PyCFunction) _wrap_JoystickEvent_m_zPosition_get, METH_VARARGS | METH_KEYWORDS },
28554 { (char *)"JoystickEvent_m_buttonChange_set", (PyCFunction) _wrap_JoystickEvent_m_buttonChange_set, METH_VARARGS | METH_KEYWORDS },
28555 { (char *)"JoystickEvent_m_buttonChange_get", (PyCFunction) _wrap_JoystickEvent_m_buttonChange_get, METH_VARARGS | METH_KEYWORDS },
28556 { (char *)"JoystickEvent_m_buttonState_set", (PyCFunction) _wrap_JoystickEvent_m_buttonState_set, METH_VARARGS | METH_KEYWORDS },
28557 { (char *)"JoystickEvent_m_buttonState_get", (PyCFunction) _wrap_JoystickEvent_m_buttonState_get, METH_VARARGS | METH_KEYWORDS },
28558 { (char *)"JoystickEvent_m_joyStick_set", (PyCFunction) _wrap_JoystickEvent_m_joyStick_set, METH_VARARGS | METH_KEYWORDS },
28559 { (char *)"JoystickEvent_m_joyStick_get", (PyCFunction) _wrap_JoystickEvent_m_joyStick_get, METH_VARARGS | METH_KEYWORDS },
28560 { (char *)"new_JoystickEvent", (PyCFunction) _wrap_new_JoystickEvent, METH_VARARGS | METH_KEYWORDS },
28561 { (char *)"JoystickEvent_GetPosition", (PyCFunction) _wrap_JoystickEvent_GetPosition, METH_VARARGS | METH_KEYWORDS },
28562 { (char *)"JoystickEvent_GetZPosition", (PyCFunction) _wrap_JoystickEvent_GetZPosition, METH_VARARGS | METH_KEYWORDS },
28563 { (char *)"JoystickEvent_GetButtonState", (PyCFunction) _wrap_JoystickEvent_GetButtonState, METH_VARARGS | METH_KEYWORDS },
28564 { (char *)"JoystickEvent_GetButtonChange", (PyCFunction) _wrap_JoystickEvent_GetButtonChange, METH_VARARGS | METH_KEYWORDS },
28565 { (char *)"JoystickEvent_GetJoystick", (PyCFunction) _wrap_JoystickEvent_GetJoystick, METH_VARARGS | METH_KEYWORDS },
28566 { (char *)"JoystickEvent_SetJoystick", (PyCFunction) _wrap_JoystickEvent_SetJoystick, METH_VARARGS | METH_KEYWORDS },
28567 { (char *)"JoystickEvent_SetButtonState", (PyCFunction) _wrap_JoystickEvent_SetButtonState, METH_VARARGS | METH_KEYWORDS },
28568 { (char *)"JoystickEvent_SetButtonChange", (PyCFunction) _wrap_JoystickEvent_SetButtonChange, METH_VARARGS | METH_KEYWORDS },
28569 { (char *)"JoystickEvent_SetPosition", (PyCFunction) _wrap_JoystickEvent_SetPosition, METH_VARARGS | METH_KEYWORDS },
28570 { (char *)"JoystickEvent_SetZPosition", (PyCFunction) _wrap_JoystickEvent_SetZPosition, METH_VARARGS | METH_KEYWORDS },
28571 { (char *)"JoystickEvent_IsButton", (PyCFunction) _wrap_JoystickEvent_IsButton, METH_VARARGS | METH_KEYWORDS },
28572 { (char *)"JoystickEvent_IsMove", (PyCFunction) _wrap_JoystickEvent_IsMove, METH_VARARGS | METH_KEYWORDS },
28573 { (char *)"JoystickEvent_IsZMove", (PyCFunction) _wrap_JoystickEvent_IsZMove, METH_VARARGS | METH_KEYWORDS },
28574 { (char *)"JoystickEvent_ButtonDown", (PyCFunction) _wrap_JoystickEvent_ButtonDown, METH_VARARGS | METH_KEYWORDS },
28575 { (char *)"JoystickEvent_ButtonUp", (PyCFunction) _wrap_JoystickEvent_ButtonUp, METH_VARARGS | METH_KEYWORDS },
28576 { (char *)"JoystickEvent_ButtonIsDown", (PyCFunction) _wrap_JoystickEvent_ButtonIsDown, METH_VARARGS | METH_KEYWORDS },
28577 { (char *)"JoystickEvent_swigregister", JoystickEvent_swigregister, METH_VARARGS },
28578 { (char *)"new_Sound", (PyCFunction) _wrap_new_Sound, METH_VARARGS | METH_KEYWORDS },
28579 { (char *)"new_SoundFromData", (PyCFunction) _wrap_new_SoundFromData, METH_VARARGS | METH_KEYWORDS },
28580 { (char *)"delete_Sound", (PyCFunction) _wrap_delete_Sound, METH_VARARGS | METH_KEYWORDS },
28581 { (char *)"Sound_Create", (PyCFunction) _wrap_Sound_Create, METH_VARARGS | METH_KEYWORDS },
28582 { (char *)"Sound_CreateFromData", (PyCFunction) _wrap_Sound_CreateFromData, METH_VARARGS | METH_KEYWORDS },
28583 { (char *)"Sound_IsOk", (PyCFunction) _wrap_Sound_IsOk, METH_VARARGS | METH_KEYWORDS },
28584 { (char *)"Sound_Play", (PyCFunction) _wrap_Sound_Play, METH_VARARGS | METH_KEYWORDS },
28585 { (char *)"Sound_PlaySound", (PyCFunction) _wrap_Sound_PlaySound, METH_VARARGS | METH_KEYWORDS },
28586 { (char *)"Sound_Stop", (PyCFunction) _wrap_Sound_Stop, METH_VARARGS | METH_KEYWORDS },
28587 { (char *)"Sound_swigregister", Sound_swigregister, METH_VARARGS },
28588 { (char *)"new_FileTypeInfo", (PyCFunction) _wrap_new_FileTypeInfo, METH_VARARGS | METH_KEYWORDS },
28589 { (char *)"new_FileTypeInfoSequence", (PyCFunction) _wrap_new_FileTypeInfoSequence, METH_VARARGS | METH_KEYWORDS },
28590 { (char *)"new_NullFileTypeInfo", (PyCFunction) _wrap_new_NullFileTypeInfo, METH_VARARGS | METH_KEYWORDS },
28591 { (char *)"FileTypeInfo_IsValid", (PyCFunction) _wrap_FileTypeInfo_IsValid, METH_VARARGS | METH_KEYWORDS },
28592 { (char *)"FileTypeInfo_SetIcon", (PyCFunction) _wrap_FileTypeInfo_SetIcon, METH_VARARGS | METH_KEYWORDS },
28593 { (char *)"FileTypeInfo_SetShortDesc", (PyCFunction) _wrap_FileTypeInfo_SetShortDesc, METH_VARARGS | METH_KEYWORDS },
28594 { (char *)"FileTypeInfo_GetMimeType", (PyCFunction) _wrap_FileTypeInfo_GetMimeType, METH_VARARGS | METH_KEYWORDS },
28595 { (char *)"FileTypeInfo_GetOpenCommand", (PyCFunction) _wrap_FileTypeInfo_GetOpenCommand, METH_VARARGS | METH_KEYWORDS },
28596 { (char *)"FileTypeInfo_GetPrintCommand", (PyCFunction) _wrap_FileTypeInfo_GetPrintCommand, METH_VARARGS | METH_KEYWORDS },
28597 { (char *)"FileTypeInfo_GetShortDesc", (PyCFunction) _wrap_FileTypeInfo_GetShortDesc, METH_VARARGS | METH_KEYWORDS },
28598 { (char *)"FileTypeInfo_GetDescription", (PyCFunction) _wrap_FileTypeInfo_GetDescription, METH_VARARGS | METH_KEYWORDS },
28599 { (char *)"FileTypeInfo_GetExtensions", (PyCFunction) _wrap_FileTypeInfo_GetExtensions, METH_VARARGS | METH_KEYWORDS },
28600 { (char *)"FileTypeInfo_GetExtensionsCount", (PyCFunction) _wrap_FileTypeInfo_GetExtensionsCount, METH_VARARGS | METH_KEYWORDS },
28601 { (char *)"FileTypeInfo_GetIconFile", (PyCFunction) _wrap_FileTypeInfo_GetIconFile, METH_VARARGS | METH_KEYWORDS },
28602 { (char *)"FileTypeInfo_GetIconIndex", (PyCFunction) _wrap_FileTypeInfo_GetIconIndex, METH_VARARGS | METH_KEYWORDS },
28603 { (char *)"FileTypeInfo_swigregister", FileTypeInfo_swigregister, METH_VARARGS },
28604 { (char *)"new_FileType", (PyCFunction) _wrap_new_FileType, METH_VARARGS | METH_KEYWORDS },
28605 { (char *)"delete_FileType", (PyCFunction) _wrap_delete_FileType, METH_VARARGS | METH_KEYWORDS },
28606 { (char *)"FileType_GetMimeType", (PyCFunction) _wrap_FileType_GetMimeType, METH_VARARGS | METH_KEYWORDS },
28607 { (char *)"FileType_GetMimeTypes", (PyCFunction) _wrap_FileType_GetMimeTypes, METH_VARARGS | METH_KEYWORDS },
28608 { (char *)"FileType_GetExtensions", (PyCFunction) _wrap_FileType_GetExtensions, METH_VARARGS | METH_KEYWORDS },
28609 { (char *)"FileType_GetIcon", (PyCFunction) _wrap_FileType_GetIcon, METH_VARARGS | METH_KEYWORDS },
28610 { (char *)"FileType_GetIconInfo", (PyCFunction) _wrap_FileType_GetIconInfo, METH_VARARGS | METH_KEYWORDS },
28611 { (char *)"FileType_GetDescription", (PyCFunction) _wrap_FileType_GetDescription, METH_VARARGS | METH_KEYWORDS },
28612 { (char *)"FileType_GetOpenCommand", (PyCFunction) _wrap_FileType_GetOpenCommand, METH_VARARGS | METH_KEYWORDS },
28613 { (char *)"FileType_GetPrintCommand", (PyCFunction) _wrap_FileType_GetPrintCommand, METH_VARARGS | METH_KEYWORDS },
28614 { (char *)"FileType_GetAllCommands", (PyCFunction) _wrap_FileType_GetAllCommands, METH_VARARGS | METH_KEYWORDS },
28615 { (char *)"FileType_SetCommand", (PyCFunction) _wrap_FileType_SetCommand, METH_VARARGS | METH_KEYWORDS },
28616 { (char *)"FileType_SetDefaultIcon", (PyCFunction) _wrap_FileType_SetDefaultIcon, METH_VARARGS | METH_KEYWORDS },
28617 { (char *)"FileType_Unassociate", (PyCFunction) _wrap_FileType_Unassociate, METH_VARARGS | METH_KEYWORDS },
28618 { (char *)"FileType_ExpandCommand", (PyCFunction) _wrap_FileType_ExpandCommand, METH_VARARGS | METH_KEYWORDS },
28619 { (char *)"FileType_swigregister", FileType_swigregister, METH_VARARGS },
28620 { (char *)"MimeTypesManager_IsOfType", (PyCFunction) _wrap_MimeTypesManager_IsOfType, METH_VARARGS | METH_KEYWORDS },
28621 { (char *)"new_MimeTypesManager", (PyCFunction) _wrap_new_MimeTypesManager, METH_VARARGS | METH_KEYWORDS },
28622 { (char *)"MimeTypesManager_Initialize", (PyCFunction) _wrap_MimeTypesManager_Initialize, METH_VARARGS | METH_KEYWORDS },
28623 { (char *)"MimeTypesManager_ClearData", (PyCFunction) _wrap_MimeTypesManager_ClearData, METH_VARARGS | METH_KEYWORDS },
28624 { (char *)"MimeTypesManager_GetFileTypeFromExtension", (PyCFunction) _wrap_MimeTypesManager_GetFileTypeFromExtension, METH_VARARGS | METH_KEYWORDS },
28625 { (char *)"MimeTypesManager_GetFileTypeFromMimeType", (PyCFunction) _wrap_MimeTypesManager_GetFileTypeFromMimeType, METH_VARARGS | METH_KEYWORDS },
28626 { (char *)"MimeTypesManager_ReadMailcap", (PyCFunction) _wrap_MimeTypesManager_ReadMailcap, METH_VARARGS | METH_KEYWORDS },
28627 { (char *)"MimeTypesManager_ReadMimeTypes", (PyCFunction) _wrap_MimeTypesManager_ReadMimeTypes, METH_VARARGS | METH_KEYWORDS },
28628 { (char *)"MimeTypesManager_EnumAllFileTypes", (PyCFunction) _wrap_MimeTypesManager_EnumAllFileTypes, METH_VARARGS | METH_KEYWORDS },
28629 { (char *)"MimeTypesManager_AddFallback", (PyCFunction) _wrap_MimeTypesManager_AddFallback, METH_VARARGS | METH_KEYWORDS },
28630 { (char *)"MimeTypesManager_Associate", (PyCFunction) _wrap_MimeTypesManager_Associate, METH_VARARGS | METH_KEYWORDS },
28631 { (char *)"MimeTypesManager_Unassociate", (PyCFunction) _wrap_MimeTypesManager_Unassociate, METH_VARARGS | METH_KEYWORDS },
28632 { (char *)"delete_MimeTypesManager", (PyCFunction) _wrap_delete_MimeTypesManager, METH_VARARGS | METH_KEYWORDS },
28633 { (char *)"MimeTypesManager_swigregister", MimeTypesManager_swigregister, METH_VARARGS },
28634 { (char *)"new_ArtProvider", (PyCFunction) _wrap_new_ArtProvider, METH_VARARGS | METH_KEYWORDS },
28635 { (char *)"ArtProvider__setCallbackInfo", (PyCFunction) _wrap_ArtProvider__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
28636 { (char *)"ArtProvider_PushProvider", (PyCFunction) _wrap_ArtProvider_PushProvider, METH_VARARGS | METH_KEYWORDS },
28637 { (char *)"ArtProvider_PopProvider", (PyCFunction) _wrap_ArtProvider_PopProvider, METH_VARARGS | METH_KEYWORDS },
28638 { (char *)"ArtProvider_RemoveProvider", (PyCFunction) _wrap_ArtProvider_RemoveProvider, METH_VARARGS | METH_KEYWORDS },
28639 { (char *)"ArtProvider_GetBitmap", (PyCFunction) _wrap_ArtProvider_GetBitmap, METH_VARARGS | METH_KEYWORDS },
28640 { (char *)"ArtProvider_GetIcon", (PyCFunction) _wrap_ArtProvider_GetIcon, METH_VARARGS | METH_KEYWORDS },
28641 { (char *)"ArtProvider_Destroy", (PyCFunction) _wrap_ArtProvider_Destroy, METH_VARARGS | METH_KEYWORDS },
28642 { (char *)"ArtProvider_swigregister", ArtProvider_swigregister, METH_VARARGS },
28643 { (char *)"delete_ConfigBase", (PyCFunction) _wrap_delete_ConfigBase, METH_VARARGS | METH_KEYWORDS },
28644 { (char *)"ConfigBase_Set", (PyCFunction) _wrap_ConfigBase_Set, METH_VARARGS | METH_KEYWORDS },
28645 { (char *)"ConfigBase_Get", (PyCFunction) _wrap_ConfigBase_Get, METH_VARARGS | METH_KEYWORDS },
28646 { (char *)"ConfigBase_Create", (PyCFunction) _wrap_ConfigBase_Create, METH_VARARGS | METH_KEYWORDS },
28647 { (char *)"ConfigBase_DontCreateOnDemand", (PyCFunction) _wrap_ConfigBase_DontCreateOnDemand, METH_VARARGS | METH_KEYWORDS },
28648 { (char *)"ConfigBase_SetPath", (PyCFunction) _wrap_ConfigBase_SetPath, METH_VARARGS | METH_KEYWORDS },
28649 { (char *)"ConfigBase_GetPath", (PyCFunction) _wrap_ConfigBase_GetPath, METH_VARARGS | METH_KEYWORDS },
28650 { (char *)"ConfigBase_GetFirstGroup", (PyCFunction) _wrap_ConfigBase_GetFirstGroup, METH_VARARGS | METH_KEYWORDS },
28651 { (char *)"ConfigBase_GetNextGroup", (PyCFunction) _wrap_ConfigBase_GetNextGroup, METH_VARARGS | METH_KEYWORDS },
28652 { (char *)"ConfigBase_GetFirstEntry", (PyCFunction) _wrap_ConfigBase_GetFirstEntry, METH_VARARGS | METH_KEYWORDS },
28653 { (char *)"ConfigBase_GetNextEntry", (PyCFunction) _wrap_ConfigBase_GetNextEntry, METH_VARARGS | METH_KEYWORDS },
28654 { (char *)"ConfigBase_GetNumberOfEntries", (PyCFunction) _wrap_ConfigBase_GetNumberOfEntries, METH_VARARGS | METH_KEYWORDS },
28655 { (char *)"ConfigBase_GetNumberOfGroups", (PyCFunction) _wrap_ConfigBase_GetNumberOfGroups, METH_VARARGS | METH_KEYWORDS },
28656 { (char *)"ConfigBase_HasGroup", (PyCFunction) _wrap_ConfigBase_HasGroup, METH_VARARGS | METH_KEYWORDS },
28657 { (char *)"ConfigBase_HasEntry", (PyCFunction) _wrap_ConfigBase_HasEntry, METH_VARARGS | METH_KEYWORDS },
28658 { (char *)"ConfigBase_Exists", (PyCFunction) _wrap_ConfigBase_Exists, METH_VARARGS | METH_KEYWORDS },
28659 { (char *)"ConfigBase_GetEntryType", (PyCFunction) _wrap_ConfigBase_GetEntryType, METH_VARARGS | METH_KEYWORDS },
28660 { (char *)"ConfigBase_Read", (PyCFunction) _wrap_ConfigBase_Read, METH_VARARGS | METH_KEYWORDS },
28661 { (char *)"ConfigBase_ReadInt", (PyCFunction) _wrap_ConfigBase_ReadInt, METH_VARARGS | METH_KEYWORDS },
28662 { (char *)"ConfigBase_ReadFloat", (PyCFunction) _wrap_ConfigBase_ReadFloat, METH_VARARGS | METH_KEYWORDS },
28663 { (char *)"ConfigBase_ReadBool", (PyCFunction) _wrap_ConfigBase_ReadBool, METH_VARARGS | METH_KEYWORDS },
28664 { (char *)"ConfigBase_Write", (PyCFunction) _wrap_ConfigBase_Write, METH_VARARGS | METH_KEYWORDS },
28665 { (char *)"ConfigBase_WriteInt", (PyCFunction) _wrap_ConfigBase_WriteInt, METH_VARARGS | METH_KEYWORDS },
28666 { (char *)"ConfigBase_WriteFloat", (PyCFunction) _wrap_ConfigBase_WriteFloat, METH_VARARGS | METH_KEYWORDS },
28667 { (char *)"ConfigBase_WriteBool", (PyCFunction) _wrap_ConfigBase_WriteBool, METH_VARARGS | METH_KEYWORDS },
28668 { (char *)"ConfigBase_Flush", (PyCFunction) _wrap_ConfigBase_Flush, METH_VARARGS | METH_KEYWORDS },
28669 { (char *)"ConfigBase_RenameEntry", (PyCFunction) _wrap_ConfigBase_RenameEntry, METH_VARARGS | METH_KEYWORDS },
28670 { (char *)"ConfigBase_RenameGroup", (PyCFunction) _wrap_ConfigBase_RenameGroup, METH_VARARGS | METH_KEYWORDS },
28671 { (char *)"ConfigBase_DeleteEntry", (PyCFunction) _wrap_ConfigBase_DeleteEntry, METH_VARARGS | METH_KEYWORDS },
28672 { (char *)"ConfigBase_DeleteGroup", (PyCFunction) _wrap_ConfigBase_DeleteGroup, METH_VARARGS | METH_KEYWORDS },
28673 { (char *)"ConfigBase_DeleteAll", (PyCFunction) _wrap_ConfigBase_DeleteAll, METH_VARARGS | METH_KEYWORDS },
28674 { (char *)"ConfigBase_SetExpandEnvVars", (PyCFunction) _wrap_ConfigBase_SetExpandEnvVars, METH_VARARGS | METH_KEYWORDS },
28675 { (char *)"ConfigBase_IsExpandingEnvVars", (PyCFunction) _wrap_ConfigBase_IsExpandingEnvVars, METH_VARARGS | METH_KEYWORDS },
28676 { (char *)"ConfigBase_SetRecordDefaults", (PyCFunction) _wrap_ConfigBase_SetRecordDefaults, METH_VARARGS | METH_KEYWORDS },
28677 { (char *)"ConfigBase_IsRecordingDefaults", (PyCFunction) _wrap_ConfigBase_IsRecordingDefaults, METH_VARARGS | METH_KEYWORDS },
28678 { (char *)"ConfigBase_ExpandEnvVars", (PyCFunction) _wrap_ConfigBase_ExpandEnvVars, METH_VARARGS | METH_KEYWORDS },
28679 { (char *)"ConfigBase_GetAppName", (PyCFunction) _wrap_ConfigBase_GetAppName, METH_VARARGS | METH_KEYWORDS },
28680 { (char *)"ConfigBase_GetVendorName", (PyCFunction) _wrap_ConfigBase_GetVendorName, METH_VARARGS | METH_KEYWORDS },
28681 { (char *)"ConfigBase_SetAppName", (PyCFunction) _wrap_ConfigBase_SetAppName, METH_VARARGS | METH_KEYWORDS },
28682 { (char *)"ConfigBase_SetVendorName", (PyCFunction) _wrap_ConfigBase_SetVendorName, METH_VARARGS | METH_KEYWORDS },
28683 { (char *)"ConfigBase_SetStyle", (PyCFunction) _wrap_ConfigBase_SetStyle, METH_VARARGS | METH_KEYWORDS },
28684 { (char *)"ConfigBase_GetStyle", (PyCFunction) _wrap_ConfigBase_GetStyle, METH_VARARGS | METH_KEYWORDS },
28685 { (char *)"ConfigBase_swigregister", ConfigBase_swigregister, METH_VARARGS },
28686 { (char *)"new_Config", (PyCFunction) _wrap_new_Config, METH_VARARGS | METH_KEYWORDS },
28687 { (char *)"delete_Config", (PyCFunction) _wrap_delete_Config, METH_VARARGS | METH_KEYWORDS },
28688 { (char *)"Config_swigregister", Config_swigregister, METH_VARARGS },
28689 { (char *)"new_FileConfig", (PyCFunction) _wrap_new_FileConfig, METH_VARARGS | METH_KEYWORDS },
28690 { (char *)"delete_FileConfig", (PyCFunction) _wrap_delete_FileConfig, METH_VARARGS | METH_KEYWORDS },
28691 { (char *)"FileConfig_swigregister", FileConfig_swigregister, METH_VARARGS },
28692 { (char *)"new_ConfigPathChanger", (PyCFunction) _wrap_new_ConfigPathChanger, METH_VARARGS | METH_KEYWORDS },
28693 { (char *)"delete_ConfigPathChanger", (PyCFunction) _wrap_delete_ConfigPathChanger, METH_VARARGS | METH_KEYWORDS },
28694 { (char *)"ConfigPathChanger_Name", (PyCFunction) _wrap_ConfigPathChanger_Name, METH_VARARGS | METH_KEYWORDS },
28695 { (char *)"ConfigPathChanger_swigregister", ConfigPathChanger_swigregister, METH_VARARGS },
28696 { (char *)"ExpandEnvVars", (PyCFunction) _wrap_ExpandEnvVars, METH_VARARGS | METH_KEYWORDS },
28697 { (char *)"DateTime_SetCountry", (PyCFunction) _wrap_DateTime_SetCountry, METH_VARARGS | METH_KEYWORDS },
28698 { (char *)"DateTime_GetCountry", (PyCFunction) _wrap_DateTime_GetCountry, METH_VARARGS | METH_KEYWORDS },
28699 { (char *)"DateTime_IsWestEuropeanCountry", (PyCFunction) _wrap_DateTime_IsWestEuropeanCountry, METH_VARARGS | METH_KEYWORDS },
28700 { (char *)"DateTime_GetCurrentYear", (PyCFunction) _wrap_DateTime_GetCurrentYear, METH_VARARGS | METH_KEYWORDS },
28701 { (char *)"DateTime_ConvertYearToBC", (PyCFunction) _wrap_DateTime_ConvertYearToBC, METH_VARARGS | METH_KEYWORDS },
28702 { (char *)"DateTime_GetCurrentMonth", (PyCFunction) _wrap_DateTime_GetCurrentMonth, METH_VARARGS | METH_KEYWORDS },
28703 { (char *)"DateTime_IsLeapYear", (PyCFunction) _wrap_DateTime_IsLeapYear, METH_VARARGS | METH_KEYWORDS },
28704 { (char *)"DateTime_GetCentury", (PyCFunction) _wrap_DateTime_GetCentury, METH_VARARGS | METH_KEYWORDS },
28705 { (char *)"DateTime_GetNumberOfDaysinYear", (PyCFunction) _wrap_DateTime_GetNumberOfDaysinYear, METH_VARARGS | METH_KEYWORDS },
28706 { (char *)"DateTime_GetNumberOfDaysInMonth", (PyCFunction) _wrap_DateTime_GetNumberOfDaysInMonth, METH_VARARGS | METH_KEYWORDS },
28707 { (char *)"DateTime_GetMonthName", (PyCFunction) _wrap_DateTime_GetMonthName, METH_VARARGS | METH_KEYWORDS },
28708 { (char *)"DateTime_GetWeekDayName", (PyCFunction) _wrap_DateTime_GetWeekDayName, METH_VARARGS | METH_KEYWORDS },
28709 { (char *)"DateTime_GetAmPmStrings", (PyCFunction) _wrap_DateTime_GetAmPmStrings, METH_VARARGS | METH_KEYWORDS },
28710 { (char *)"DateTime_IsDSTApplicable", (PyCFunction) _wrap_DateTime_IsDSTApplicable, METH_VARARGS | METH_KEYWORDS },
28711 { (char *)"DateTime_GetBeginDST", (PyCFunction) _wrap_DateTime_GetBeginDST, METH_VARARGS | METH_KEYWORDS },
28712 { (char *)"DateTime_GetEndDST", (PyCFunction) _wrap_DateTime_GetEndDST, METH_VARARGS | METH_KEYWORDS },
28713 { (char *)"DateTime_Now", (PyCFunction) _wrap_DateTime_Now, METH_VARARGS | METH_KEYWORDS },
28714 { (char *)"DateTime_UNow", (PyCFunction) _wrap_DateTime_UNow, METH_VARARGS | METH_KEYWORDS },
28715 { (char *)"DateTime_Today", (PyCFunction) _wrap_DateTime_Today, METH_VARARGS | METH_KEYWORDS },
28716 { (char *)"new_DateTime", (PyCFunction) _wrap_new_DateTime, METH_VARARGS | METH_KEYWORDS },
28717 { (char *)"new_DateTimeFromTimeT", (PyCFunction) _wrap_new_DateTimeFromTimeT, METH_VARARGS | METH_KEYWORDS },
28718 { (char *)"new_DateTimeFromJDN", (PyCFunction) _wrap_new_DateTimeFromJDN, METH_VARARGS | METH_KEYWORDS },
28719 { (char *)"new_DateTimeFromHMS", (PyCFunction) _wrap_new_DateTimeFromHMS, METH_VARARGS | METH_KEYWORDS },
28720 { (char *)"new_DateTimeFromDMY", (PyCFunction) _wrap_new_DateTimeFromDMY, METH_VARARGS | METH_KEYWORDS },
28721 { (char *)"delete_DateTime", (PyCFunction) _wrap_delete_DateTime, METH_VARARGS | METH_KEYWORDS },
28722 { (char *)"DateTime_SetToCurrent", (PyCFunction) _wrap_DateTime_SetToCurrent, METH_VARARGS | METH_KEYWORDS },
28723 { (char *)"DateTime_SetTimeT", (PyCFunction) _wrap_DateTime_SetTimeT, METH_VARARGS | METH_KEYWORDS },
28724 { (char *)"DateTime_SetJDN", (PyCFunction) _wrap_DateTime_SetJDN, METH_VARARGS | METH_KEYWORDS },
28725 { (char *)"DateTime_SetHMS", (PyCFunction) _wrap_DateTime_SetHMS, METH_VARARGS | METH_KEYWORDS },
28726 { (char *)"DateTime_Set", (PyCFunction) _wrap_DateTime_Set, METH_VARARGS | METH_KEYWORDS },
28727 { (char *)"DateTime_ResetTime", (PyCFunction) _wrap_DateTime_ResetTime, METH_VARARGS | METH_KEYWORDS },
28728 { (char *)"DateTime_SetYear", (PyCFunction) _wrap_DateTime_SetYear, METH_VARARGS | METH_KEYWORDS },
28729 { (char *)"DateTime_SetMonth", (PyCFunction) _wrap_DateTime_SetMonth, METH_VARARGS | METH_KEYWORDS },
28730 { (char *)"DateTime_SetDay", (PyCFunction) _wrap_DateTime_SetDay, METH_VARARGS | METH_KEYWORDS },
28731 { (char *)"DateTime_SetHour", (PyCFunction) _wrap_DateTime_SetHour, METH_VARARGS | METH_KEYWORDS },
28732 { (char *)"DateTime_SetMinute", (PyCFunction) _wrap_DateTime_SetMinute, METH_VARARGS | METH_KEYWORDS },
28733 { (char *)"DateTime_SetSecond", (PyCFunction) _wrap_DateTime_SetSecond, METH_VARARGS | METH_KEYWORDS },
28734 { (char *)"DateTime_SetMillisecond", (PyCFunction) _wrap_DateTime_SetMillisecond, METH_VARARGS | METH_KEYWORDS },
28735 { (char *)"DateTime_SetToWeekDayInSameWeek", (PyCFunction) _wrap_DateTime_SetToWeekDayInSameWeek, METH_VARARGS | METH_KEYWORDS },
28736 { (char *)"DateTime_GetWeekDayInSameWeek", (PyCFunction) _wrap_DateTime_GetWeekDayInSameWeek, METH_VARARGS | METH_KEYWORDS },
28737 { (char *)"DateTime_SetToNextWeekDay", (PyCFunction) _wrap_DateTime_SetToNextWeekDay, METH_VARARGS | METH_KEYWORDS },
28738 { (char *)"DateTime_GetNextWeekDay", (PyCFunction) _wrap_DateTime_GetNextWeekDay, METH_VARARGS | METH_KEYWORDS },
28739 { (char *)"DateTime_SetToPrevWeekDay", (PyCFunction) _wrap_DateTime_SetToPrevWeekDay, METH_VARARGS | METH_KEYWORDS },
28740 { (char *)"DateTime_GetPrevWeekDay", (PyCFunction) _wrap_DateTime_GetPrevWeekDay, METH_VARARGS | METH_KEYWORDS },
28741 { (char *)"DateTime_SetToWeekDay", (PyCFunction) _wrap_DateTime_SetToWeekDay, METH_VARARGS | METH_KEYWORDS },
28742 { (char *)"DateTime_SetToLastWeekDay", (PyCFunction) _wrap_DateTime_SetToLastWeekDay, METH_VARARGS | METH_KEYWORDS },
28743 { (char *)"DateTime_GetLastWeekDay", (PyCFunction) _wrap_DateTime_GetLastWeekDay, METH_VARARGS | METH_KEYWORDS },
28744 { (char *)"DateTime_SetToTheWeek", (PyCFunction) _wrap_DateTime_SetToTheWeek, METH_VARARGS | METH_KEYWORDS },
28745 { (char *)"DateTime_GetWeek", (PyCFunction) _wrap_DateTime_GetWeek, METH_VARARGS | METH_KEYWORDS },
28746 { (char *)"DateTime_SetToLastMonthDay", (PyCFunction) _wrap_DateTime_SetToLastMonthDay, METH_VARARGS | METH_KEYWORDS },
28747 { (char *)"DateTime_GetLastMonthDay", (PyCFunction) _wrap_DateTime_GetLastMonthDay, METH_VARARGS | METH_KEYWORDS },
28748 { (char *)"DateTime_SetToYearDay", (PyCFunction) _wrap_DateTime_SetToYearDay, METH_VARARGS | METH_KEYWORDS },
28749 { (char *)"DateTime_GetYearDay", (PyCFunction) _wrap_DateTime_GetYearDay, METH_VARARGS | METH_KEYWORDS },
28750 { (char *)"DateTime_GetJulianDayNumber", (PyCFunction) _wrap_DateTime_GetJulianDayNumber, METH_VARARGS | METH_KEYWORDS },
28751 { (char *)"DateTime_GetJDN", (PyCFunction) _wrap_DateTime_GetJDN, METH_VARARGS | METH_KEYWORDS },
28752 { (char *)"DateTime_GetModifiedJulianDayNumber", (PyCFunction) _wrap_DateTime_GetModifiedJulianDayNumber, METH_VARARGS | METH_KEYWORDS },
28753 { (char *)"DateTime_GetMJD", (PyCFunction) _wrap_DateTime_GetMJD, METH_VARARGS | METH_KEYWORDS },
28754 { (char *)"DateTime_GetRataDie", (PyCFunction) _wrap_DateTime_GetRataDie, METH_VARARGS | METH_KEYWORDS },
28755 { (char *)"DateTime_ToTimezone", (PyCFunction) _wrap_DateTime_ToTimezone, METH_VARARGS | METH_KEYWORDS },
28756 { (char *)"DateTime_MakeTimezone", (PyCFunction) _wrap_DateTime_MakeTimezone, METH_VARARGS | METH_KEYWORDS },
28757 { (char *)"DateTime_ToGMT", (PyCFunction) _wrap_DateTime_ToGMT, METH_VARARGS | METH_KEYWORDS },
28758 { (char *)"DateTime_MakeGMT", (PyCFunction) _wrap_DateTime_MakeGMT, METH_VARARGS | METH_KEYWORDS },
28759 { (char *)"DateTime_IsDST", (PyCFunction) _wrap_DateTime_IsDST, METH_VARARGS | METH_KEYWORDS },
28760 { (char *)"DateTime_IsValid", (PyCFunction) _wrap_DateTime_IsValid, METH_VARARGS | METH_KEYWORDS },
28761 { (char *)"DateTime_GetTicks", (PyCFunction) _wrap_DateTime_GetTicks, METH_VARARGS | METH_KEYWORDS },
28762 { (char *)"DateTime_GetYear", (PyCFunction) _wrap_DateTime_GetYear, METH_VARARGS | METH_KEYWORDS },
28763 { (char *)"DateTime_GetMonth", (PyCFunction) _wrap_DateTime_GetMonth, METH_VARARGS | METH_KEYWORDS },
28764 { (char *)"DateTime_GetDay", (PyCFunction) _wrap_DateTime_GetDay, METH_VARARGS | METH_KEYWORDS },
28765 { (char *)"DateTime_GetWeekDay", (PyCFunction) _wrap_DateTime_GetWeekDay, METH_VARARGS | METH_KEYWORDS },
28766 { (char *)"DateTime_GetHour", (PyCFunction) _wrap_DateTime_GetHour, METH_VARARGS | METH_KEYWORDS },
28767 { (char *)"DateTime_GetMinute", (PyCFunction) _wrap_DateTime_GetMinute, METH_VARARGS | METH_KEYWORDS },
28768 { (char *)"DateTime_GetSecond", (PyCFunction) _wrap_DateTime_GetSecond, METH_VARARGS | METH_KEYWORDS },
28769 { (char *)"DateTime_GetMillisecond", (PyCFunction) _wrap_DateTime_GetMillisecond, METH_VARARGS | METH_KEYWORDS },
28770 { (char *)"DateTime_GetDayOfYear", (PyCFunction) _wrap_DateTime_GetDayOfYear, METH_VARARGS | METH_KEYWORDS },
28771 { (char *)"DateTime_GetWeekOfYear", (PyCFunction) _wrap_DateTime_GetWeekOfYear, METH_VARARGS | METH_KEYWORDS },
28772 { (char *)"DateTime_GetWeekOfMonth", (PyCFunction) _wrap_DateTime_GetWeekOfMonth, METH_VARARGS | METH_KEYWORDS },
28773 { (char *)"DateTime_IsWorkDay", (PyCFunction) _wrap_DateTime_IsWorkDay, METH_VARARGS | METH_KEYWORDS },
28774 { (char *)"DateTime_IsEqualTo", (PyCFunction) _wrap_DateTime_IsEqualTo, METH_VARARGS | METH_KEYWORDS },
28775 { (char *)"DateTime_IsEarlierThan", (PyCFunction) _wrap_DateTime_IsEarlierThan, METH_VARARGS | METH_KEYWORDS },
28776 { (char *)"DateTime_IsLaterThan", (PyCFunction) _wrap_DateTime_IsLaterThan, METH_VARARGS | METH_KEYWORDS },
28777 { (char *)"DateTime_IsStrictlyBetween", (PyCFunction) _wrap_DateTime_IsStrictlyBetween, METH_VARARGS | METH_KEYWORDS },
28778 { (char *)"DateTime_IsBetween", (PyCFunction) _wrap_DateTime_IsBetween, METH_VARARGS | METH_KEYWORDS },
28779 { (char *)"DateTime_IsSameDate", (PyCFunction) _wrap_DateTime_IsSameDate, METH_VARARGS | METH_KEYWORDS },
28780 { (char *)"DateTime_IsSameTime", (PyCFunction) _wrap_DateTime_IsSameTime, METH_VARARGS | METH_KEYWORDS },
28781 { (char *)"DateTime_IsEqualUpTo", (PyCFunction) _wrap_DateTime_IsEqualUpTo, METH_VARARGS | METH_KEYWORDS },
28782 { (char *)"DateTime_AddTS", (PyCFunction) _wrap_DateTime_AddTS, METH_VARARGS | METH_KEYWORDS },
28783 { (char *)"DateTime_AddDS", (PyCFunction) _wrap_DateTime_AddDS, METH_VARARGS | METH_KEYWORDS },
28784 { (char *)"DateTime_SubtractTS", (PyCFunction) _wrap_DateTime_SubtractTS, METH_VARARGS | METH_KEYWORDS },
28785 { (char *)"DateTime_SubtractDS", (PyCFunction) _wrap_DateTime_SubtractDS, METH_VARARGS | METH_KEYWORDS },
28786 { (char *)"DateTime_Subtract", (PyCFunction) _wrap_DateTime_Subtract, METH_VARARGS | METH_KEYWORDS },
28787 { (char *)"DateTime___iadd__", _wrap_DateTime___iadd__, METH_VARARGS },
28788 { (char *)"DateTime___isub__", _wrap_DateTime___isub__, METH_VARARGS },
28789 { (char *)"DateTime___add__", _wrap_DateTime___add__, METH_VARARGS },
28790 { (char *)"DateTime___sub__", _wrap_DateTime___sub__, METH_VARARGS },
28791 { (char *)"DateTime___lt__", _wrap_DateTime___lt__, METH_VARARGS },
28792 { (char *)"DateTime___le__", _wrap_DateTime___le__, METH_VARARGS },
28793 { (char *)"DateTime___gt__", _wrap_DateTime___gt__, METH_VARARGS },
28794 { (char *)"DateTime___ge__", _wrap_DateTime___ge__, METH_VARARGS },
28795 { (char *)"DateTime___eq__", _wrap_DateTime___eq__, METH_VARARGS },
28796 { (char *)"DateTime___ne__", _wrap_DateTime___ne__, METH_VARARGS },
28797 { (char *)"DateTime_ParseRfc822Date", (PyCFunction) _wrap_DateTime_ParseRfc822Date, METH_VARARGS | METH_KEYWORDS },
28798 { (char *)"DateTime_ParseFormat", (PyCFunction) _wrap_DateTime_ParseFormat, METH_VARARGS | METH_KEYWORDS },
28799 { (char *)"DateTime_ParseDateTime", (PyCFunction) _wrap_DateTime_ParseDateTime, METH_VARARGS | METH_KEYWORDS },
28800 { (char *)"DateTime_ParseDate", (PyCFunction) _wrap_DateTime_ParseDate, METH_VARARGS | METH_KEYWORDS },
28801 { (char *)"DateTime_ParseTime", (PyCFunction) _wrap_DateTime_ParseTime, METH_VARARGS | METH_KEYWORDS },
28802 { (char *)"DateTime_Format", (PyCFunction) _wrap_DateTime_Format, METH_VARARGS | METH_KEYWORDS },
28803 { (char *)"DateTime_FormatDate", (PyCFunction) _wrap_DateTime_FormatDate, METH_VARARGS | METH_KEYWORDS },
28804 { (char *)"DateTime_FormatTime", (PyCFunction) _wrap_DateTime_FormatTime, METH_VARARGS | METH_KEYWORDS },
28805 { (char *)"DateTime_FormatISODate", (PyCFunction) _wrap_DateTime_FormatISODate, METH_VARARGS | METH_KEYWORDS },
28806 { (char *)"DateTime_FormatISOTime", (PyCFunction) _wrap_DateTime_FormatISOTime, METH_VARARGS | METH_KEYWORDS },
28807 { (char *)"DateTime_swigregister", DateTime_swigregister, METH_VARARGS },
28808 { (char *)"TimeSpan_Seconds", (PyCFunction) _wrap_TimeSpan_Seconds, METH_VARARGS | METH_KEYWORDS },
28809 { (char *)"TimeSpan_Second", (PyCFunction) _wrap_TimeSpan_Second, METH_VARARGS | METH_KEYWORDS },
28810 { (char *)"TimeSpan_Minutes", (PyCFunction) _wrap_TimeSpan_Minutes, METH_VARARGS | METH_KEYWORDS },
28811 { (char *)"TimeSpan_Minute", (PyCFunction) _wrap_TimeSpan_Minute, METH_VARARGS | METH_KEYWORDS },
28812 { (char *)"TimeSpan_Hours", (PyCFunction) _wrap_TimeSpan_Hours, METH_VARARGS | METH_KEYWORDS },
28813 { (char *)"TimeSpan_Hour", (PyCFunction) _wrap_TimeSpan_Hour, METH_VARARGS | METH_KEYWORDS },
28814 { (char *)"TimeSpan_Days", (PyCFunction) _wrap_TimeSpan_Days, METH_VARARGS | METH_KEYWORDS },
28815 { (char *)"TimeSpan_Day", (PyCFunction) _wrap_TimeSpan_Day, METH_VARARGS | METH_KEYWORDS },
28816 { (char *)"TimeSpan_Weeks", (PyCFunction) _wrap_TimeSpan_Weeks, METH_VARARGS | METH_KEYWORDS },
28817 { (char *)"TimeSpan_Week", (PyCFunction) _wrap_TimeSpan_Week, METH_VARARGS | METH_KEYWORDS },
28818 { (char *)"new_TimeSpan", (PyCFunction) _wrap_new_TimeSpan, METH_VARARGS | METH_KEYWORDS },
28819 { (char *)"delete_TimeSpan", (PyCFunction) _wrap_delete_TimeSpan, METH_VARARGS | METH_KEYWORDS },
28820 { (char *)"TimeSpan_Add", (PyCFunction) _wrap_TimeSpan_Add, METH_VARARGS | METH_KEYWORDS },
28821 { (char *)"TimeSpan_Subtract", (PyCFunction) _wrap_TimeSpan_Subtract, METH_VARARGS | METH_KEYWORDS },
28822 { (char *)"TimeSpan_Multiply", (PyCFunction) _wrap_TimeSpan_Multiply, METH_VARARGS | METH_KEYWORDS },
28823 { (char *)"TimeSpan_Neg", (PyCFunction) _wrap_TimeSpan_Neg, METH_VARARGS | METH_KEYWORDS },
28824 { (char *)"TimeSpan_Abs", (PyCFunction) _wrap_TimeSpan_Abs, METH_VARARGS | METH_KEYWORDS },
28825 { (char *)"TimeSpan___iadd__", (PyCFunction) _wrap_TimeSpan___iadd__, METH_VARARGS | METH_KEYWORDS },
28826 { (char *)"TimeSpan___isub__", (PyCFunction) _wrap_TimeSpan___isub__, METH_VARARGS | METH_KEYWORDS },
28827 { (char *)"TimeSpan___imul__", (PyCFunction) _wrap_TimeSpan___imul__, METH_VARARGS | METH_KEYWORDS },
28828 { (char *)"TimeSpan___neg__", (PyCFunction) _wrap_TimeSpan___neg__, METH_VARARGS | METH_KEYWORDS },
28829 { (char *)"TimeSpan___add__", (PyCFunction) _wrap_TimeSpan___add__, METH_VARARGS | METH_KEYWORDS },
28830 { (char *)"TimeSpan___sub__", (PyCFunction) _wrap_TimeSpan___sub__, METH_VARARGS | METH_KEYWORDS },
28831 { (char *)"TimeSpan___mul__", (PyCFunction) _wrap_TimeSpan___mul__, METH_VARARGS | METH_KEYWORDS },
28832 { (char *)"TimeSpan___rmul__", (PyCFunction) _wrap_TimeSpan___rmul__, METH_VARARGS | METH_KEYWORDS },
28833 { (char *)"TimeSpan___lt__", (PyCFunction) _wrap_TimeSpan___lt__, METH_VARARGS | METH_KEYWORDS },
28834 { (char *)"TimeSpan___le__", (PyCFunction) _wrap_TimeSpan___le__, METH_VARARGS | METH_KEYWORDS },
28835 { (char *)"TimeSpan___gt__", (PyCFunction) _wrap_TimeSpan___gt__, METH_VARARGS | METH_KEYWORDS },
28836 { (char *)"TimeSpan___ge__", (PyCFunction) _wrap_TimeSpan___ge__, METH_VARARGS | METH_KEYWORDS },
28837 { (char *)"TimeSpan___eq__", (PyCFunction) _wrap_TimeSpan___eq__, METH_VARARGS | METH_KEYWORDS },
28838 { (char *)"TimeSpan___ne__", (PyCFunction) _wrap_TimeSpan___ne__, METH_VARARGS | METH_KEYWORDS },
28839 { (char *)"TimeSpan_IsNull", (PyCFunction) _wrap_TimeSpan_IsNull, METH_VARARGS | METH_KEYWORDS },
28840 { (char *)"TimeSpan_IsPositive", (PyCFunction) _wrap_TimeSpan_IsPositive, METH_VARARGS | METH_KEYWORDS },
28841 { (char *)"TimeSpan_IsNegative", (PyCFunction) _wrap_TimeSpan_IsNegative, METH_VARARGS | METH_KEYWORDS },
28842 { (char *)"TimeSpan_IsEqualTo", (PyCFunction) _wrap_TimeSpan_IsEqualTo, METH_VARARGS | METH_KEYWORDS },
28843 { (char *)"TimeSpan_IsLongerThan", (PyCFunction) _wrap_TimeSpan_IsLongerThan, METH_VARARGS | METH_KEYWORDS },
28844 { (char *)"TimeSpan_IsShorterThan", (PyCFunction) _wrap_TimeSpan_IsShorterThan, METH_VARARGS | METH_KEYWORDS },
28845 { (char *)"TimeSpan_GetWeeks", (PyCFunction) _wrap_TimeSpan_GetWeeks, METH_VARARGS | METH_KEYWORDS },
28846 { (char *)"TimeSpan_GetDays", (PyCFunction) _wrap_TimeSpan_GetDays, METH_VARARGS | METH_KEYWORDS },
28847 { (char *)"TimeSpan_GetHours", (PyCFunction) _wrap_TimeSpan_GetHours, METH_VARARGS | METH_KEYWORDS },
28848 { (char *)"TimeSpan_GetMinutes", (PyCFunction) _wrap_TimeSpan_GetMinutes, METH_VARARGS | METH_KEYWORDS },
28849 { (char *)"TimeSpan_GetSeconds", (PyCFunction) _wrap_TimeSpan_GetSeconds, METH_VARARGS | METH_KEYWORDS },
28850 { (char *)"TimeSpan_GetMilliseconds", (PyCFunction) _wrap_TimeSpan_GetMilliseconds, METH_VARARGS | METH_KEYWORDS },
28851 { (char *)"TimeSpan_Format", (PyCFunction) _wrap_TimeSpan_Format, METH_VARARGS | METH_KEYWORDS },
28852 { (char *)"TimeSpan_swigregister", TimeSpan_swigregister, METH_VARARGS },
28853 { (char *)"new_DateSpan", (PyCFunction) _wrap_new_DateSpan, METH_VARARGS | METH_KEYWORDS },
28854 { (char *)"delete_DateSpan", (PyCFunction) _wrap_delete_DateSpan, METH_VARARGS | METH_KEYWORDS },
28855 { (char *)"DateSpan_Days", (PyCFunction) _wrap_DateSpan_Days, METH_VARARGS | METH_KEYWORDS },
28856 { (char *)"DateSpan_Day", (PyCFunction) _wrap_DateSpan_Day, METH_VARARGS | METH_KEYWORDS },
28857 { (char *)"DateSpan_Weeks", (PyCFunction) _wrap_DateSpan_Weeks, METH_VARARGS | METH_KEYWORDS },
28858 { (char *)"DateSpan_Week", (PyCFunction) _wrap_DateSpan_Week, METH_VARARGS | METH_KEYWORDS },
28859 { (char *)"DateSpan_Months", (PyCFunction) _wrap_DateSpan_Months, METH_VARARGS | METH_KEYWORDS },
28860 { (char *)"DateSpan_Month", (PyCFunction) _wrap_DateSpan_Month, METH_VARARGS | METH_KEYWORDS },
28861 { (char *)"DateSpan_Years", (PyCFunction) _wrap_DateSpan_Years, METH_VARARGS | METH_KEYWORDS },
28862 { (char *)"DateSpan_Year", (PyCFunction) _wrap_DateSpan_Year, METH_VARARGS | METH_KEYWORDS },
28863 { (char *)"DateSpan_SetYears", (PyCFunction) _wrap_DateSpan_SetYears, METH_VARARGS | METH_KEYWORDS },
28864 { (char *)"DateSpan_SetMonths", (PyCFunction) _wrap_DateSpan_SetMonths, METH_VARARGS | METH_KEYWORDS },
28865 { (char *)"DateSpan_SetWeeks", (PyCFunction) _wrap_DateSpan_SetWeeks, METH_VARARGS | METH_KEYWORDS },
28866 { (char *)"DateSpan_SetDays", (PyCFunction) _wrap_DateSpan_SetDays, METH_VARARGS | METH_KEYWORDS },
28867 { (char *)"DateSpan_GetYears", (PyCFunction) _wrap_DateSpan_GetYears, METH_VARARGS | METH_KEYWORDS },
28868 { (char *)"DateSpan_GetMonths", (PyCFunction) _wrap_DateSpan_GetMonths, METH_VARARGS | METH_KEYWORDS },
28869 { (char *)"DateSpan_GetWeeks", (PyCFunction) _wrap_DateSpan_GetWeeks, METH_VARARGS | METH_KEYWORDS },
28870 { (char *)"DateSpan_GetDays", (PyCFunction) _wrap_DateSpan_GetDays, METH_VARARGS | METH_KEYWORDS },
28871 { (char *)"DateSpan_GetTotalDays", (PyCFunction) _wrap_DateSpan_GetTotalDays, METH_VARARGS | METH_KEYWORDS },
28872 { (char *)"DateSpan_Add", (PyCFunction) _wrap_DateSpan_Add, METH_VARARGS | METH_KEYWORDS },
28873 { (char *)"DateSpan_Subtract", (PyCFunction) _wrap_DateSpan_Subtract, METH_VARARGS | METH_KEYWORDS },
28874 { (char *)"DateSpan_Neg", (PyCFunction) _wrap_DateSpan_Neg, METH_VARARGS | METH_KEYWORDS },
28875 { (char *)"DateSpan_Multiply", (PyCFunction) _wrap_DateSpan_Multiply, METH_VARARGS | METH_KEYWORDS },
28876 { (char *)"DateSpan___iadd__", (PyCFunction) _wrap_DateSpan___iadd__, METH_VARARGS | METH_KEYWORDS },
28877 { (char *)"DateSpan___isub__", (PyCFunction) _wrap_DateSpan___isub__, METH_VARARGS | METH_KEYWORDS },
28878 { (char *)"DateSpan___neg__", (PyCFunction) _wrap_DateSpan___neg__, METH_VARARGS | METH_KEYWORDS },
28879 { (char *)"DateSpan___imul__", (PyCFunction) _wrap_DateSpan___imul__, METH_VARARGS | METH_KEYWORDS },
28880 { (char *)"DateSpan___add__", (PyCFunction) _wrap_DateSpan___add__, METH_VARARGS | METH_KEYWORDS },
28881 { (char *)"DateSpan___sub__", (PyCFunction) _wrap_DateSpan___sub__, METH_VARARGS | METH_KEYWORDS },
28882 { (char *)"DateSpan___mul__", (PyCFunction) _wrap_DateSpan___mul__, METH_VARARGS | METH_KEYWORDS },
28883 { (char *)"DateSpan___rmul__", (PyCFunction) _wrap_DateSpan___rmul__, METH_VARARGS | METH_KEYWORDS },
28884 { (char *)"DateSpan___eq__", (PyCFunction) _wrap_DateSpan___eq__, METH_VARARGS | METH_KEYWORDS },
28885 { (char *)"DateSpan___ne__", (PyCFunction) _wrap_DateSpan___ne__, METH_VARARGS | METH_KEYWORDS },
28886 { (char *)"DateSpan_swigregister", DateSpan_swigregister, METH_VARARGS },
28887 { (char *)"GetLocalTime", (PyCFunction) _wrap_GetLocalTime, METH_VARARGS | METH_KEYWORDS },
28888 { (char *)"GetUTCTime", (PyCFunction) _wrap_GetUTCTime, METH_VARARGS | METH_KEYWORDS },
28889 { (char *)"GetCurrentTime", (PyCFunction) _wrap_GetCurrentTime, METH_VARARGS | METH_KEYWORDS },
28890 { (char *)"GetLocalTimeMillis", (PyCFunction) _wrap_GetLocalTimeMillis, METH_VARARGS | METH_KEYWORDS },
28891 { (char *)"new_DataFormat", (PyCFunction) _wrap_new_DataFormat, METH_VARARGS | METH_KEYWORDS },
28892 { (char *)"new_CustomDataFormat", (PyCFunction) _wrap_new_CustomDataFormat, METH_VARARGS | METH_KEYWORDS },
28893 { (char *)"delete_DataFormat", (PyCFunction) _wrap_delete_DataFormat, METH_VARARGS | METH_KEYWORDS },
28894 { (char *)"DataFormat___eq__", _wrap_DataFormat___eq__, METH_VARARGS },
28895 { (char *)"DataFormat___ne__", _wrap_DataFormat___ne__, METH_VARARGS },
28896 { (char *)"DataFormat_SetType", (PyCFunction) _wrap_DataFormat_SetType, METH_VARARGS | METH_KEYWORDS },
28897 { (char *)"DataFormat_GetType", (PyCFunction) _wrap_DataFormat_GetType, METH_VARARGS | METH_KEYWORDS },
28898 { (char *)"DataFormat_GetId", (PyCFunction) _wrap_DataFormat_GetId, METH_VARARGS | METH_KEYWORDS },
28899 { (char *)"DataFormat_SetId", (PyCFunction) _wrap_DataFormat_SetId, METH_VARARGS | METH_KEYWORDS },
28900 { (char *)"DataFormat_swigregister", DataFormat_swigregister, METH_VARARGS },
28901 { (char *)"delete_DataObject", (PyCFunction) _wrap_delete_DataObject, METH_VARARGS | METH_KEYWORDS },
28902 { (char *)"DataObject_GetPreferredFormat", (PyCFunction) _wrap_DataObject_GetPreferredFormat, METH_VARARGS | METH_KEYWORDS },
28903 { (char *)"DataObject_GetFormatCount", (PyCFunction) _wrap_DataObject_GetFormatCount, METH_VARARGS | METH_KEYWORDS },
28904 { (char *)"DataObject_IsSupported", (PyCFunction) _wrap_DataObject_IsSupported, METH_VARARGS | METH_KEYWORDS },
28905 { (char *)"DataObject_GetDataSize", (PyCFunction) _wrap_DataObject_GetDataSize, METH_VARARGS | METH_KEYWORDS },
28906 { (char *)"DataObject_GetAllFormats", (PyCFunction) _wrap_DataObject_GetAllFormats, METH_VARARGS | METH_KEYWORDS },
28907 { (char *)"DataObject_GetDataHere", (PyCFunction) _wrap_DataObject_GetDataHere, METH_VARARGS | METH_KEYWORDS },
28908 { (char *)"DataObject_SetData", (PyCFunction) _wrap_DataObject_SetData, METH_VARARGS | METH_KEYWORDS },
28909 { (char *)"DataObject_swigregister", DataObject_swigregister, METH_VARARGS },
28910 { (char *)"new_DataObjectSimple", (PyCFunction) _wrap_new_DataObjectSimple, METH_VARARGS | METH_KEYWORDS },
28911 { (char *)"DataObjectSimple_GetFormat", (PyCFunction) _wrap_DataObjectSimple_GetFormat, METH_VARARGS | METH_KEYWORDS },
28912 { (char *)"DataObjectSimple_SetFormat", (PyCFunction) _wrap_DataObjectSimple_SetFormat, METH_VARARGS | METH_KEYWORDS },
28913 { (char *)"DataObjectSimple_GetDataSize", (PyCFunction) _wrap_DataObjectSimple_GetDataSize, METH_VARARGS | METH_KEYWORDS },
28914 { (char *)"DataObjectSimple_GetDataHere", (PyCFunction) _wrap_DataObjectSimple_GetDataHere, METH_VARARGS | METH_KEYWORDS },
28915 { (char *)"DataObjectSimple_SetData", (PyCFunction) _wrap_DataObjectSimple_SetData, METH_VARARGS | METH_KEYWORDS },
28916 { (char *)"DataObjectSimple_swigregister", DataObjectSimple_swigregister, METH_VARARGS },
28917 { (char *)"new_PyDataObjectSimple", (PyCFunction) _wrap_new_PyDataObjectSimple, METH_VARARGS | METH_KEYWORDS },
28918 { (char *)"PyDataObjectSimple__setCallbackInfo", (PyCFunction) _wrap_PyDataObjectSimple__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
28919 { (char *)"PyDataObjectSimple_swigregister", PyDataObjectSimple_swigregister, METH_VARARGS },
28920 { (char *)"new_DataObjectComposite", (PyCFunction) _wrap_new_DataObjectComposite, METH_VARARGS | METH_KEYWORDS },
28921 { (char *)"DataObjectComposite_Add", (PyCFunction) _wrap_DataObjectComposite_Add, METH_VARARGS | METH_KEYWORDS },
28922 { (char *)"DataObjectComposite_swigregister", DataObjectComposite_swigregister, METH_VARARGS },
28923 { (char *)"new_TextDataObject", (PyCFunction) _wrap_new_TextDataObject, METH_VARARGS | METH_KEYWORDS },
28924 { (char *)"TextDataObject_GetTextLength", (PyCFunction) _wrap_TextDataObject_GetTextLength, METH_VARARGS | METH_KEYWORDS },
28925 { (char *)"TextDataObject_GetText", (PyCFunction) _wrap_TextDataObject_GetText, METH_VARARGS | METH_KEYWORDS },
28926 { (char *)"TextDataObject_SetText", (PyCFunction) _wrap_TextDataObject_SetText, METH_VARARGS | METH_KEYWORDS },
28927 { (char *)"TextDataObject_swigregister", TextDataObject_swigregister, METH_VARARGS },
28928 { (char *)"new_PyTextDataObject", (PyCFunction) _wrap_new_PyTextDataObject, METH_VARARGS | METH_KEYWORDS },
28929 { (char *)"PyTextDataObject__setCallbackInfo", (PyCFunction) _wrap_PyTextDataObject__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
28930 { (char *)"PyTextDataObject_swigregister", PyTextDataObject_swigregister, METH_VARARGS },
28931 { (char *)"new_BitmapDataObject", (PyCFunction) _wrap_new_BitmapDataObject, METH_VARARGS | METH_KEYWORDS },
28932 { (char *)"BitmapDataObject_GetBitmap", (PyCFunction) _wrap_BitmapDataObject_GetBitmap, METH_VARARGS | METH_KEYWORDS },
28933 { (char *)"BitmapDataObject_SetBitmap", (PyCFunction) _wrap_BitmapDataObject_SetBitmap, METH_VARARGS | METH_KEYWORDS },
28934 { (char *)"BitmapDataObject_swigregister", BitmapDataObject_swigregister, METH_VARARGS },
28935 { (char *)"new_PyBitmapDataObject", (PyCFunction) _wrap_new_PyBitmapDataObject, METH_VARARGS | METH_KEYWORDS },
28936 { (char *)"PyBitmapDataObject__setCallbackInfo", (PyCFunction) _wrap_PyBitmapDataObject__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
28937 { (char *)"PyBitmapDataObject_swigregister", PyBitmapDataObject_swigregister, METH_VARARGS },
28938 { (char *)"new_FileDataObject", (PyCFunction) _wrap_new_FileDataObject, METH_VARARGS | METH_KEYWORDS },
28939 { (char *)"FileDataObject_GetFilenames", (PyCFunction) _wrap_FileDataObject_GetFilenames, METH_VARARGS | METH_KEYWORDS },
28940 { (char *)"FileDataObject_AddFile", (PyCFunction) _wrap_FileDataObject_AddFile, METH_VARARGS | METH_KEYWORDS },
28941 { (char *)"FileDataObject_swigregister", FileDataObject_swigregister, METH_VARARGS },
28942 { (char *)"new_CustomDataObject", (PyCFunction) _wrap_new_CustomDataObject, METH_VARARGS | METH_KEYWORDS },
28943 { (char *)"CustomDataObject_SetData", (PyCFunction) _wrap_CustomDataObject_SetData, METH_VARARGS | METH_KEYWORDS },
28944 { (char *)"CustomDataObject_GetSize", (PyCFunction) _wrap_CustomDataObject_GetSize, METH_VARARGS | METH_KEYWORDS },
28945 { (char *)"CustomDataObject_GetData", (PyCFunction) _wrap_CustomDataObject_GetData, METH_VARARGS | METH_KEYWORDS },
28946 { (char *)"CustomDataObject_swigregister", CustomDataObject_swigregister, METH_VARARGS },
28947 { (char *)"new_URLDataObject", (PyCFunction) _wrap_new_URLDataObject, METH_VARARGS | METH_KEYWORDS },
28948 { (char *)"URLDataObject_GetURL", (PyCFunction) _wrap_URLDataObject_GetURL, METH_VARARGS | METH_KEYWORDS },
28949 { (char *)"URLDataObject_SetURL", (PyCFunction) _wrap_URLDataObject_SetURL, METH_VARARGS | METH_KEYWORDS },
28950 { (char *)"URLDataObject_swigregister", URLDataObject_swigregister, METH_VARARGS },
28951 { (char *)"new_MetafileDataObject", (PyCFunction) _wrap_new_MetafileDataObject, METH_VARARGS | METH_KEYWORDS },
28952 { (char *)"MetafileDataObject_swigregister", MetafileDataObject_swigregister, METH_VARARGS },
28953 { (char *)"IsDragResultOk", (PyCFunction) _wrap_IsDragResultOk, METH_VARARGS | METH_KEYWORDS },
28954 { (char *)"new_DropSource", (PyCFunction) _wrap_new_DropSource, METH_VARARGS | METH_KEYWORDS },
28955 { (char *)"DropSource__setCallbackInfo", (PyCFunction) _wrap_DropSource__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
28956 { (char *)"delete_DropSource", (PyCFunction) _wrap_delete_DropSource, METH_VARARGS | METH_KEYWORDS },
28957 { (char *)"DropSource_SetData", (PyCFunction) _wrap_DropSource_SetData, METH_VARARGS | METH_KEYWORDS },
28958 { (char *)"DropSource_GetDataObject", (PyCFunction) _wrap_DropSource_GetDataObject, METH_VARARGS | METH_KEYWORDS },
28959 { (char *)"DropSource_SetCursor", (PyCFunction) _wrap_DropSource_SetCursor, METH_VARARGS | METH_KEYWORDS },
28960 { (char *)"DropSource_DoDragDrop", (PyCFunction) _wrap_DropSource_DoDragDrop, METH_VARARGS | METH_KEYWORDS },
28961 { (char *)"DropSource_base_GiveFeedback", (PyCFunction) _wrap_DropSource_base_GiveFeedback, METH_VARARGS | METH_KEYWORDS },
28962 { (char *)"DropSource_swigregister", DropSource_swigregister, METH_VARARGS },
28963 { (char *)"new_DropTarget", (PyCFunction) _wrap_new_DropTarget, METH_VARARGS | METH_KEYWORDS },
28964 { (char *)"DropTarget__setCallbackInfo", (PyCFunction) _wrap_DropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
28965 { (char *)"delete_DropTarget", (PyCFunction) _wrap_delete_DropTarget, METH_VARARGS | METH_KEYWORDS },
28966 { (char *)"DropTarget_GetDataObject", (PyCFunction) _wrap_DropTarget_GetDataObject, METH_VARARGS | METH_KEYWORDS },
28967 { (char *)"DropTarget_SetDataObject", (PyCFunction) _wrap_DropTarget_SetDataObject, METH_VARARGS | METH_KEYWORDS },
28968 { (char *)"DropTarget_base_OnEnter", (PyCFunction) _wrap_DropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS },
28969 { (char *)"DropTarget_base_OnDragOver", (PyCFunction) _wrap_DropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS },
28970 { (char *)"DropTarget_base_OnLeave", (PyCFunction) _wrap_DropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS },
28971 { (char *)"DropTarget_base_OnDrop", (PyCFunction) _wrap_DropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS },
28972 { (char *)"DropTarget_GetData", (PyCFunction) _wrap_DropTarget_GetData, METH_VARARGS | METH_KEYWORDS },
28973 { (char *)"DropTarget_swigregister", DropTarget_swigregister, METH_VARARGS },
28974 { (char *)"new_TextDropTarget", (PyCFunction) _wrap_new_TextDropTarget, METH_VARARGS | METH_KEYWORDS },
28975 { (char *)"TextDropTarget__setCallbackInfo", (PyCFunction) _wrap_TextDropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
28976 { (char *)"TextDropTarget_base_OnEnter", (PyCFunction) _wrap_TextDropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS },
28977 { (char *)"TextDropTarget_base_OnDragOver", (PyCFunction) _wrap_TextDropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS },
28978 { (char *)"TextDropTarget_base_OnLeave", (PyCFunction) _wrap_TextDropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS },
28979 { (char *)"TextDropTarget_base_OnDrop", (PyCFunction) _wrap_TextDropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS },
28980 { (char *)"TextDropTarget_base_OnData", (PyCFunction) _wrap_TextDropTarget_base_OnData, METH_VARARGS | METH_KEYWORDS },
28981 { (char *)"TextDropTarget_swigregister", TextDropTarget_swigregister, METH_VARARGS },
28982 { (char *)"new_FileDropTarget", (PyCFunction) _wrap_new_FileDropTarget, METH_VARARGS | METH_KEYWORDS },
28983 { (char *)"FileDropTarget__setCallbackInfo", (PyCFunction) _wrap_FileDropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
28984 { (char *)"FileDropTarget_base_OnEnter", (PyCFunction) _wrap_FileDropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS },
28985 { (char *)"FileDropTarget_base_OnDragOver", (PyCFunction) _wrap_FileDropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS },
28986 { (char *)"FileDropTarget_base_OnLeave", (PyCFunction) _wrap_FileDropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS },
28987 { (char *)"FileDropTarget_base_OnDrop", (PyCFunction) _wrap_FileDropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS },
28988 { (char *)"FileDropTarget_base_OnData", (PyCFunction) _wrap_FileDropTarget_base_OnData, METH_VARARGS | METH_KEYWORDS },
28989 { (char *)"FileDropTarget_swigregister", FileDropTarget_swigregister, METH_VARARGS },
28990 { (char *)"new_Clipboard", (PyCFunction) _wrap_new_Clipboard, METH_VARARGS | METH_KEYWORDS },
28991 { (char *)"delete_Clipboard", (PyCFunction) _wrap_delete_Clipboard, METH_VARARGS | METH_KEYWORDS },
28992 { (char *)"Clipboard_Open", (PyCFunction) _wrap_Clipboard_Open, METH_VARARGS | METH_KEYWORDS },
28993 { (char *)"Clipboard_Close", (PyCFunction) _wrap_Clipboard_Close, METH_VARARGS | METH_KEYWORDS },
28994 { (char *)"Clipboard_IsOpened", (PyCFunction) _wrap_Clipboard_IsOpened, METH_VARARGS | METH_KEYWORDS },
28995 { (char *)"Clipboard_AddData", (PyCFunction) _wrap_Clipboard_AddData, METH_VARARGS | METH_KEYWORDS },
28996 { (char *)"Clipboard_SetData", (PyCFunction) _wrap_Clipboard_SetData, METH_VARARGS | METH_KEYWORDS },
28997 { (char *)"Clipboard_IsSupported", (PyCFunction) _wrap_Clipboard_IsSupported, METH_VARARGS | METH_KEYWORDS },
28998 { (char *)"Clipboard_GetData", (PyCFunction) _wrap_Clipboard_GetData, METH_VARARGS | METH_KEYWORDS },
28999 { (char *)"Clipboard_Clear", (PyCFunction) _wrap_Clipboard_Clear, METH_VARARGS | METH_KEYWORDS },
29000 { (char *)"Clipboard_Flush", (PyCFunction) _wrap_Clipboard_Flush, METH_VARARGS | METH_KEYWORDS },
29001 { (char *)"Clipboard_UsePrimarySelection", (PyCFunction) _wrap_Clipboard_UsePrimarySelection, METH_VARARGS | METH_KEYWORDS },
29002 { (char *)"Clipboard_Get", (PyCFunction) _wrap_Clipboard_Get, METH_VARARGS | METH_KEYWORDS },
29003 { (char *)"Clipboard_swigregister", Clipboard_swigregister, METH_VARARGS },
29004 { (char *)"new_ClipboardLocker", (PyCFunction) _wrap_new_ClipboardLocker, METH_VARARGS | METH_KEYWORDS },
29005 { (char *)"delete_ClipboardLocker", (PyCFunction) _wrap_delete_ClipboardLocker, METH_VARARGS | METH_KEYWORDS },
29006 { (char *)"ClipboardLocker___nonzero__", (PyCFunction) _wrap_ClipboardLocker___nonzero__, METH_VARARGS | METH_KEYWORDS },
29007 { (char *)"ClipboardLocker_swigregister", ClipboardLocker_swigregister, METH_VARARGS },
29008 { (char *)"new_VideoMode", (PyCFunction) _wrap_new_VideoMode, METH_VARARGS | METH_KEYWORDS },
29009 { (char *)"delete_VideoMode", (PyCFunction) _wrap_delete_VideoMode, METH_VARARGS | METH_KEYWORDS },
29010 { (char *)"VideoMode_Matches", (PyCFunction) _wrap_VideoMode_Matches, METH_VARARGS | METH_KEYWORDS },
29011 { (char *)"VideoMode_GetWidth", (PyCFunction) _wrap_VideoMode_GetWidth, METH_VARARGS | METH_KEYWORDS },
29012 { (char *)"VideoMode_GetHeight", (PyCFunction) _wrap_VideoMode_GetHeight, METH_VARARGS | METH_KEYWORDS },
29013 { (char *)"VideoMode_GetDepth", (PyCFunction) _wrap_VideoMode_GetDepth, METH_VARARGS | METH_KEYWORDS },
29014 { (char *)"VideoMode_IsOk", (PyCFunction) _wrap_VideoMode_IsOk, METH_VARARGS | METH_KEYWORDS },
29015 { (char *)"VideoMode___eq__", (PyCFunction) _wrap_VideoMode___eq__, METH_VARARGS | METH_KEYWORDS },
29016 { (char *)"VideoMode___ne__", (PyCFunction) _wrap_VideoMode___ne__, METH_VARARGS | METH_KEYWORDS },
29017 { (char *)"VideoMode_w_set", (PyCFunction) _wrap_VideoMode_w_set, METH_VARARGS | METH_KEYWORDS },
29018 { (char *)"VideoMode_w_get", (PyCFunction) _wrap_VideoMode_w_get, METH_VARARGS | METH_KEYWORDS },
29019 { (char *)"VideoMode_h_set", (PyCFunction) _wrap_VideoMode_h_set, METH_VARARGS | METH_KEYWORDS },
29020 { (char *)"VideoMode_h_get", (PyCFunction) _wrap_VideoMode_h_get, METH_VARARGS | METH_KEYWORDS },
29021 { (char *)"VideoMode_bpp_set", (PyCFunction) _wrap_VideoMode_bpp_set, METH_VARARGS | METH_KEYWORDS },
29022 { (char *)"VideoMode_bpp_get", (PyCFunction) _wrap_VideoMode_bpp_get, METH_VARARGS | METH_KEYWORDS },
29023 { (char *)"VideoMode_refresh_set", (PyCFunction) _wrap_VideoMode_refresh_set, METH_VARARGS | METH_KEYWORDS },
29024 { (char *)"VideoMode_refresh_get", (PyCFunction) _wrap_VideoMode_refresh_get, METH_VARARGS | METH_KEYWORDS },
29025 { (char *)"VideoMode_swigregister", VideoMode_swigregister, METH_VARARGS },
29026 { (char *)"new_Display", (PyCFunction) _wrap_new_Display, METH_VARARGS | METH_KEYWORDS },
29027 { (char *)"delete_Display", (PyCFunction) _wrap_delete_Display, METH_VARARGS | METH_KEYWORDS },
29028 { (char *)"Display_GetCount", (PyCFunction) _wrap_Display_GetCount, METH_VARARGS | METH_KEYWORDS },
29029 { (char *)"Display_GetFromPoint", (PyCFunction) _wrap_Display_GetFromPoint, METH_VARARGS | METH_KEYWORDS },
29030 { (char *)"Display_GetFromWindow", (PyCFunction) _wrap_Display_GetFromWindow, METH_VARARGS | METH_KEYWORDS },
29031 { (char *)"Display_IsOk", (PyCFunction) _wrap_Display_IsOk, METH_VARARGS | METH_KEYWORDS },
29032 { (char *)"Display_GetGeometry", (PyCFunction) _wrap_Display_GetGeometry, METH_VARARGS | METH_KEYWORDS },
29033 { (char *)"Display_GetName", (PyCFunction) _wrap_Display_GetName, METH_VARARGS | METH_KEYWORDS },
29034 { (char *)"Display_IsPrimary", (PyCFunction) _wrap_Display_IsPrimary, METH_VARARGS | METH_KEYWORDS },
29035 { (char *)"Display_GetModes", (PyCFunction) _wrap_Display_GetModes, METH_VARARGS | METH_KEYWORDS },
29036 { (char *)"Display_GetCurrentMode", (PyCFunction) _wrap_Display_GetCurrentMode, METH_VARARGS | METH_KEYWORDS },
29037 { (char *)"Display_ChangeMode", (PyCFunction) _wrap_Display_ChangeMode, METH_VARARGS | METH_KEYWORDS },
29038 { (char *)"Display_ResetMode", (PyCFunction) _wrap_Display_ResetMode, METH_VARARGS | METH_KEYWORDS },
29039 { (char *)"Display_swigregister", Display_swigregister, METH_VARARGS },
29040 { NULL, NULL }
29041 };
29042
29043
29044 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
29045
29046 static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) {
29047 return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x));
29048 }
29049 static void *_p_wxMenuEventTo_p_wxEvent(void *x) {
29050 return (void *)((wxEvent *) ((wxMenuEvent *) x));
29051 }
29052 static void *_p_wxCloseEventTo_p_wxEvent(void *x) {
29053 return (void *)((wxEvent *) ((wxCloseEvent *) x));
29054 }
29055 static void *_p_wxMouseEventTo_p_wxEvent(void *x) {
29056 return (void *)((wxEvent *) ((wxMouseEvent *) x));
29057 }
29058 static void *_p_wxEraseEventTo_p_wxEvent(void *x) {
29059 return (void *)((wxEvent *) ((wxEraseEvent *) x));
29060 }
29061 static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) {
29062 return (void *)((wxEvent *) ((wxSetCursorEvent *) x));
29063 }
29064 static void *_p_wxTimerEventTo_p_wxEvent(void *x) {
29065 return (void *)((wxEvent *) ((wxTimerEvent *) x));
29066 }
29067 static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) {
29068 return (void *)((wxEvent *) ((wxInitDialogEvent *) x));
29069 }
29070 static void *_p_wxScrollEventTo_p_wxEvent(void *x) {
29071 return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x));
29072 }
29073 static void *_p_wxPyEventTo_p_wxEvent(void *x) {
29074 return (void *)((wxEvent *) ((wxPyEvent *) x));
29075 }
29076 static void *_p_wxNotifyEventTo_p_wxEvent(void *x) {
29077 return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x));
29078 }
29079 static void *_p_wxJoystickEventTo_p_wxEvent(void *x) {
29080 return (void *)((wxEvent *) ((wxJoystickEvent *) x));
29081 }
29082 static void *_p_wxIdleEventTo_p_wxEvent(void *x) {
29083 return (void *)((wxEvent *) ((wxIdleEvent *) x));
29084 }
29085 static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) {
29086 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x));
29087 }
29088 static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) {
29089 return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x));
29090 }
29091 static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) {
29092 return (void *)((wxEvent *) ((wxMaximizeEvent *) x));
29093 }
29094 static void *_p_wxIconizeEventTo_p_wxEvent(void *x) {
29095 return (void *)((wxEvent *) ((wxIconizeEvent *) x));
29096 }
29097 static void *_p_wxActivateEventTo_p_wxEvent(void *x) {
29098 return (void *)((wxEvent *) ((wxActivateEvent *) x));
29099 }
29100 static void *_p_wxSizeEventTo_p_wxEvent(void *x) {
29101 return (void *)((wxEvent *) ((wxSizeEvent *) x));
29102 }
29103 static void *_p_wxMoveEventTo_p_wxEvent(void *x) {
29104 return (void *)((wxEvent *) ((wxMoveEvent *) x));
29105 }
29106 static void *_p_wxPaintEventTo_p_wxEvent(void *x) {
29107 return (void *)((wxEvent *) ((wxPaintEvent *) x));
29108 }
29109 static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) {
29110 return (void *)((wxEvent *) ((wxNcPaintEvent *) x));
29111 }
29112 static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) {
29113 return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x));
29114 }
29115 static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) {
29116 return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x));
29117 }
29118 static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) {
29119 return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x));
29120 }
29121 static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) {
29122 return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x));
29123 }
29124 static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) {
29125 return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x));
29126 }
29127 static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) {
29128 return (void *)((wxEvent *) ((wxDropFilesEvent *) x));
29129 }
29130 static void *_p_wxFocusEventTo_p_wxEvent(void *x) {
29131 return (void *)((wxEvent *) ((wxFocusEvent *) x));
29132 }
29133 static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) {
29134 return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x));
29135 }
29136 static void *_p_wxProcessEventTo_p_wxEvent(void *x) {
29137 return (void *)((wxEvent *) ((wxProcessEvent *) x));
29138 }
29139 static void *_p_wxShowEventTo_p_wxEvent(void *x) {
29140 return (void *)((wxEvent *) ((wxShowEvent *) x));
29141 }
29142 static void *_p_wxCommandEventTo_p_wxEvent(void *x) {
29143 return (void *)((wxEvent *) ((wxCommandEvent *) x));
29144 }
29145 static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) {
29146 return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x));
29147 }
29148 static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) {
29149 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x));
29150 }
29151 static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) {
29152 return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x));
29153 }
29154 static void *_p_wxKeyEventTo_p_wxEvent(void *x) {
29155 return (void *)((wxEvent *) ((wxKeyEvent *) x));
29156 }
29157 static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) {
29158 return (void *)((wxEvent *) ((wxScrollWinEvent *) x));
29159 }
29160 static void *_p_wxFileConfigTo_p_wxConfigBase(void *x) {
29161 return (void *)((wxConfigBase *) ((wxFileConfig *) x));
29162 }
29163 static void *_p_wxConfigTo_p_wxConfigBase(void *x) {
29164 return (void *)((wxConfigBase *) ((wxConfig *) x));
29165 }
29166 static void *_p_wxPyBitmapDataObjectTo_p_wxBitmapDataObject(void *x) {
29167 return (void *)((wxBitmapDataObject *) ((wxPyBitmapDataObject *) x));
29168 }
29169 static void *_p_wxPyTextDataObjectTo_p_wxTextDataObject(void *x) {
29170 return (void *)((wxTextDataObject *) ((wxPyTextDataObject *) x));
29171 }
29172 static void *_p_wxDataObjectSimpleTo_p_wxDataObject(void *x) {
29173 return (void *)((wxDataObject *) ((wxDataObjectSimple *) x));
29174 }
29175 static void *_p_wxPyDataObjectSimpleTo_p_wxDataObject(void *x) {
29176 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxPyDataObjectSimple *) x));
29177 }
29178 static void *_p_wxDataObjectCompositeTo_p_wxDataObject(void *x) {
29179 return (void *)((wxDataObject *) ((wxDataObjectComposite *) x));
29180 }
29181 static void *_p_wxTextDataObjectTo_p_wxDataObject(void *x) {
29182 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxTextDataObject *) x));
29183 }
29184 static void *_p_wxPyTextDataObjectTo_p_wxDataObject(void *x) {
29185 return (void *)((wxDataObject *) (wxDataObjectSimple *)(wxTextDataObject *) ((wxPyTextDataObject *) x));
29186 }
29187 static void *_p_wxBitmapDataObjectTo_p_wxDataObject(void *x) {
29188 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxBitmapDataObject *) x));
29189 }
29190 static void *_p_wxPyBitmapDataObjectTo_p_wxDataObject(void *x) {
29191 return (void *)((wxDataObject *) (wxDataObjectSimple *)(wxBitmapDataObject *) ((wxPyBitmapDataObject *) x));
29192 }
29193 static void *_p_wxFileDataObjectTo_p_wxDataObject(void *x) {
29194 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxFileDataObject *) x));
29195 }
29196 static void *_p_wxCustomDataObjectTo_p_wxDataObject(void *x) {
29197 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxCustomDataObject *) x));
29198 }
29199 static void *_p_wxURLDataObjectTo_p_wxDataObject(void *x) {
29200 return (void *)((wxDataObject *) (wxDataObjectComposite *) ((wxURLDataObject *) x));
29201 }
29202 static void *_p_wxMetafileDataObjectTo_p_wxDataObject(void *x) {
29203 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxMetafileDataObject *) x));
29204 }
29205 static void *_p_wxURLDataObjectTo_p_wxDataObjectComposite(void *x) {
29206 return (void *)((wxDataObjectComposite *) ((wxURLDataObject *) x));
29207 }
29208 static void *_p_wxPyDataObjectSimpleTo_p_wxDataObjectSimple(void *x) {
29209 return (void *)((wxDataObjectSimple *) ((wxPyDataObjectSimple *) x));
29210 }
29211 static void *_p_wxTextDataObjectTo_p_wxDataObjectSimple(void *x) {
29212 return (void *)((wxDataObjectSimple *) ((wxTextDataObject *) x));
29213 }
29214 static void *_p_wxPyTextDataObjectTo_p_wxDataObjectSimple(void *x) {
29215 return (void *)((wxDataObjectSimple *) (wxTextDataObject *) ((wxPyTextDataObject *) x));
29216 }
29217 static void *_p_wxBitmapDataObjectTo_p_wxDataObjectSimple(void *x) {
29218 return (void *)((wxDataObjectSimple *) ((wxBitmapDataObject *) x));
29219 }
29220 static void *_p_wxPyBitmapDataObjectTo_p_wxDataObjectSimple(void *x) {
29221 return (void *)((wxDataObjectSimple *) (wxBitmapDataObject *) ((wxPyBitmapDataObject *) x));
29222 }
29223 static void *_p_wxFileDataObjectTo_p_wxDataObjectSimple(void *x) {
29224 return (void *)((wxDataObjectSimple *) ((wxFileDataObject *) x));
29225 }
29226 static void *_p_wxCustomDataObjectTo_p_wxDataObjectSimple(void *x) {
29227 return (void *)((wxDataObjectSimple *) ((wxCustomDataObject *) x));
29228 }
29229 static void *_p_wxMetafileDataObjectTo_p_wxDataObjectSimple(void *x) {
29230 return (void *)((wxDataObjectSimple *) ((wxMetafileDataObject *) x));
29231 }
29232 static void *_p_wxControlTo_p_wxEvtHandler(void *x) {
29233 return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x));
29234 }
29235 static void *_p_wxWindowTo_p_wxEvtHandler(void *x) {
29236 return (void *)((wxEvtHandler *) ((wxWindow *) x));
29237 }
29238 static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) {
29239 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x));
29240 }
29241 static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) {
29242 return (void *)((wxEvtHandler *) ((wxPyApp *) x));
29243 }
29244 static void *_p_wxPyTimerTo_p_wxEvtHandler(void *x) {
29245 return (void *)((wxEvtHandler *) ((wxPyTimer *) x));
29246 }
29247 static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) {
29248 return (void *)((wxEvtHandler *) ((wxValidator *) x));
29249 }
29250 static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) {
29251 return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x));
29252 }
29253 static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) {
29254 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x));
29255 }
29256 static void *_p_wxMenuTo_p_wxEvtHandler(void *x) {
29257 return (void *)((wxEvtHandler *) ((wxMenu *) x));
29258 }
29259 static void *_p_wxPyProcessTo_p_wxEvtHandler(void *x) {
29260 return (void *)((wxEvtHandler *) ((wxPyProcess *) x));
29261 }
29262 static void *_p_wxPyTipProviderTo_p_wxTipProvider(void *x) {
29263 return (void *)((wxTipProvider *) ((wxPyTipProvider *) x));
29264 }
29265 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
29266 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
29267 }
29268 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
29269 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
29270 }
29271 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
29272 return (void *)((wxObject *) ((wxSizerItem *) x));
29273 }
29274 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
29275 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
29276 }
29277 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
29278 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
29279 }
29280 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
29281 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
29282 }
29283 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
29284 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
29285 }
29286 static void *_p_wxSizerTo_p_wxObject(void *x) {
29287 return (void *)((wxObject *) ((wxSizer *) x));
29288 }
29289 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
29290 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
29291 }
29292 static void *_p_wxFileHistoryTo_p_wxObject(void *x) {
29293 return (void *)((wxObject *) ((wxFileHistory *) x));
29294 }
29295 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
29296 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
29297 }
29298 static void *_p_wxEventTo_p_wxObject(void *x) {
29299 return (void *)((wxObject *) ((wxEvent *) x));
29300 }
29301 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
29302 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
29303 }
29304 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
29305 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
29306 }
29307 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
29308 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
29309 }
29310 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
29311 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
29312 }
29313 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
29314 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
29315 }
29316 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
29317 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
29318 }
29319 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
29320 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
29321 }
29322 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
29323 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
29324 }
29325 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
29326 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
29327 }
29328 static void *_p_wxControlTo_p_wxObject(void *x) {
29329 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
29330 }
29331 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
29332 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
29333 }
29334 static void *_p_wxTimerEventTo_p_wxObject(void *x) {
29335 return (void *)((wxObject *) (wxEvent *) ((wxTimerEvent *) x));
29336 }
29337 static void *_p_wxFSFileTo_p_wxObject(void *x) {
29338 return (void *)((wxObject *) ((wxFSFile *) x));
29339 }
29340 static void *_p_wxClipboardTo_p_wxObject(void *x) {
29341 return (void *)((wxObject *) ((wxClipboard *) x));
29342 }
29343 static void *_p_wxPySizerTo_p_wxObject(void *x) {
29344 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
29345 }
29346 static void *_p_wxPyEventTo_p_wxObject(void *x) {
29347 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
29348 }
29349 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
29350 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
29351 }
29352 static void *_p_wxShowEventTo_p_wxObject(void *x) {
29353 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
29354 }
29355 static void *_p_wxToolTipTo_p_wxObject(void *x) {
29356 return (void *)((wxObject *) ((wxToolTip *) x));
29357 }
29358 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
29359 return (void *)((wxObject *) ((wxMenuItem *) x));
29360 }
29361 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
29362 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
29363 }
29364 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
29365 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
29366 }
29367 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
29368 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
29369 }
29370 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
29371 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
29372 }
29373 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
29374 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
29375 }
29376 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
29377 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
29378 }
29379 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
29380 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
29381 }
29382 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
29383 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
29384 }
29385 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
29386 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
29387 }
29388 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
29389 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
29390 }
29391 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
29392 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
29393 }
29394 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
29395 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
29396 }
29397 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
29398 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
29399 }
29400 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
29401 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
29402 }
29403 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
29404 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
29405 }
29406 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
29407 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
29408 }
29409 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
29410 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
29411 }
29412 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
29413 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
29414 }
29415 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
29416 return (void *)((wxObject *) ((wxImageHandler *) x));
29417 }
29418 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
29419 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
29420 }
29421 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
29422 return (void *)((wxObject *) ((wxEvtHandler *) x));
29423 }
29424 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
29425 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
29426 }
29427 static void *_p_wxImageTo_p_wxObject(void *x) {
29428 return (void *)((wxObject *) ((wxImage *) x));
29429 }
29430 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
29431 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
29432 }
29433 static void *_p_wxSystemOptionsTo_p_wxObject(void *x) {
29434 return (void *)((wxObject *) ((wxSystemOptions *) x));
29435 }
29436 static void *_p_wxJoystickEventTo_p_wxObject(void *x) {
29437 return (void *)((wxObject *) (wxEvent *) ((wxJoystickEvent *) x));
29438 }
29439 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
29440 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
29441 }
29442 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
29443 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
29444 }
29445 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
29446 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
29447 }
29448 static void *_p_wxWindowTo_p_wxObject(void *x) {
29449 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
29450 }
29451 static void *_p_wxMenuTo_p_wxObject(void *x) {
29452 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
29453 }
29454 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
29455 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
29456 }
29457 static void *_p_wxPyProcessTo_p_wxObject(void *x) {
29458 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyProcess *) x));
29459 }
29460 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
29461 return (void *)((wxObject *) ((wxFileSystem *) x));
29462 }
29463 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
29464 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
29465 }
29466 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
29467 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
29468 }
29469 static void *_p_wxPyAppTo_p_wxObject(void *x) {
29470 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
29471 }
29472 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
29473 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
29474 }
29475 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
29476 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
29477 }
29478 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
29479 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
29480 }
29481 static void *_p_wxBusyInfoTo_p_wxObject(void *x) {
29482 return (void *)((wxObject *) ((wxBusyInfo *) x));
29483 }
29484 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
29485 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
29486 }
29487 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
29488 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
29489 }
29490 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
29491 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
29492 }
29493 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
29494 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
29495 }
29496 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
29497 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
29498 }
29499 static void *_p_wxProcessEventTo_p_wxObject(void *x) {
29500 return (void *)((wxObject *) (wxEvent *) ((wxProcessEvent *) x));
29501 }
29502 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
29503 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
29504 }
29505 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
29506 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
29507 }
29508 static void *_p_wxValidatorTo_p_wxObject(void *x) {
29509 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
29510 }
29511 static void *_p_wxPyTimerTo_p_wxObject(void *x) {
29512 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyTimer *) x));
29513 }
29514 static void *_p_wxLogStderrTo_p_wxLog(void *x) {
29515 return (void *)((wxLog *) ((wxLogStderr *) x));
29516 }
29517 static void *_p_wxLogTextCtrlTo_p_wxLog(void *x) {
29518 return (void *)((wxLog *) ((wxLogTextCtrl *) x));
29519 }
29520 static void *_p_wxLogWindowTo_p_wxLog(void *x) {
29521 return (void *)((wxLog *) ((wxLogWindow *) x));
29522 }
29523 static void *_p_wxLogChainTo_p_wxLog(void *x) {
29524 return (void *)((wxLog *) ((wxLogChain *) x));
29525 }
29526 static void *_p_wxLogGuiTo_p_wxLog(void *x) {
29527 return (void *)((wxLog *) ((wxLogGui *) x));
29528 }
29529 static void *_p_wxPyLogTo_p_wxLog(void *x) {
29530 return (void *)((wxLog *) ((wxPyLog *) x));
29531 }
29532 static void *_p_wxControlTo_p_wxWindow(void *x) {
29533 return (void *)((wxWindow *) ((wxControl *) x));
29534 }
29535 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
29536 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
29537 }
29538 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
29539 return (void *)((wxWindow *) ((wxMenuBar *) x));
29540 }
29541 static void *_p_wxPyTextDropTargetTo_p_wxPyDropTarget(void *x) {
29542 return (void *)((wxPyDropTarget *) ((wxPyTextDropTarget *) x));
29543 }
29544 static void *_p_wxPyFileDropTargetTo_p_wxPyDropTarget(void *x) {
29545 return (void *)((wxPyDropTarget *) ((wxPyFileDropTarget *) x));
29546 }
29547 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}};
29548 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}};
29549 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}};
29550 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}};
29551 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}};
29552 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}};
29553 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}};
29554 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}};
29555 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}};
29556 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}};
29557 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}};
29558 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}};
29559 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}};
29560 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}};
29561 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}};
29562 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}};
29563 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}};
29564 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}};
29565 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}};
29566 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}};
29567 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}};
29568 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}};
29569 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}};
29570 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}};
29571 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}};
29572 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}};
29573 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}};
29574 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}};
29575 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}};
29576 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}};
29577 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}};
29578 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}};
29579 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}};
29580 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}};
29581 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}};
29582 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}};
29583 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}};
29584 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}};
29585 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}};
29586 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}};
29587 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}};
29588 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}};
29589 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}};
29590 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}};
29591 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}};
29592 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}};
29593 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}};
29594 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}};
29595 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}};
29596 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}};
29597 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}};
29598 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}};
29599 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}};
29600 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}};
29601 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}};
29602 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}};
29603 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}};
29604 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}};
29605 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}};
29606 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}};
29607 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}};
29608 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}};
29609 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}};
29610 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}};
29611 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}};
29612 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}};
29613 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}};
29614 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}};
29615 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}};
29616 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}};
29617 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}};
29618 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}};
29619 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}};
29620 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}};
29621 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}};
29622 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}};
29623 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}};
29624 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}};
29625 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}};
29626 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}};
29627 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}};
29628 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}};
29629 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}};
29630 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}};
29631 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}};
29632
29633 static swig_type_info *swig_types_initial[] = {
29634 _swigt__p_wxLogChain,
29635 _swigt__p_wxMutexGuiLocker,
29636 _swigt__p_wxFileHistory,
29637 _swigt__p_wxLog,
29638 _swigt__p_wxDateTime__TimeZone,
29639 _swigt__p_wxMenu,
29640 _swigt__p_wxEvent,
29641 _swigt__p_wxConfigBase,
29642 _swigt__p_wxDisplay,
29643 _swigt__p_wxFileType,
29644 _swigt__p_wxLogGui,
29645 _swigt__p_wxFont,
29646 _swigt__p_wxDataFormat,
29647 _swigt__p_wxTimerEvent,
29648 _swigt__p_wxCaret,
29649 _swigt__p_int,
29650 _swigt__p_wxSize,
29651 _swigt__p_wxClipboard,
29652 _swigt__p_wxStopWatch,
29653 _swigt__p_wxDC,
29654 _swigt__p_wxClipboardLocker,
29655 _swigt__p_wxIcon,
29656 _swigt__p_wxLogStderr,
29657 _swigt__p_wxLogTextCtrl,
29658 _swigt__p_wxTextCtrl,
29659 _swigt__p_wxBusyCursor,
29660 _swigt__p_wxPyBitmapDataObject,
29661 _swigt__p_wxPyTextDataObject,
29662 _swigt__p_wxBitmapDataObject,
29663 _swigt__p_wxTextDataObject,
29664 _swigt__p_wxDataObject,
29665 _swigt__p_wxFileDataObject,
29666 _swigt__p_wxCustomDataObject,
29667 _swigt__p_wxURLDataObject,
29668 _swigt__p_wxMetafileDataObject,
29669 _swigt__p_wxSound,
29670 _swigt__p_wxTimerRunner,
29671 _swigt__p_wxLogWindow,
29672 _swigt__p_wxTimeSpan,
29673 _swigt__p_wxArrayString,
29674 _swigt__p_wxWindowDisabler,
29675 _swigt__p_wxToolTip,
29676 _swigt__p_wxDataObjectComposite,
29677 _swigt__p_wxFileConfig,
29678 _swigt__p_wxSystemSettings,
29679 _swigt__p_wxVideoMode,
29680 _swigt__p_wxPyDataObjectSimple,
29681 _swigt__p_wxDataObjectSimple,
29682 _swigt__p_wxEvtHandler,
29683 _swigt__p_wxRect,
29684 _swigt__p_char,
29685 _swigt__p_wxSingleInstanceChecker,
29686 _swigt__p_wxFileTypeInfo,
29687 _swigt__p_wxFrame,
29688 _swigt__p_wxTimer,
29689 _swigt__p_wxMimeTypesManager,
29690 _swigt__p_wxPyArtProvider,
29691 _swigt__p_wxPyTipProvider,
29692 _swigt__p_wxTipProvider,
29693 _swigt__p_wxJoystick,
29694 _swigt__p_wxSystemOptions,
29695 _swigt__p_wxPoint,
29696 _swigt__p_wxJoystickEvent,
29697 _swigt__p_wxCursor,
29698 _swigt__p_wxObject,
29699 _swigt__p_wxOutputStream,
29700 _swigt__p_wxDateTime,
29701 _swigt__p_wxPyDropSource,
29702 _swigt__p_wxWindow,
29703 _swigt__p_wxString,
29704 _swigt__p_wxPyProcess,
29705 _swigt__p_wxBitmap,
29706 _swigt__p_wxConfig,
29707 _swigt__p_wxChar,
29708 _swigt__p_wxBusyInfo,
29709 _swigt__p_wxPyDropTarget,
29710 _swigt__p_wxPyTextDropTarget,
29711 _swigt__p_wxPyFileDropTarget,
29712 _swigt__p_wxProcessEvent,
29713 _swigt__p_wxPyLog,
29714 _swigt__p_wxLogNull,
29715 _swigt__p_wxColour,
29716 _swigt__p_wxConfigPathChanger,
29717 _swigt__p_wxPyTimer,
29718 _swigt__p_wxDateSpan,
29719 0
29720 };
29721
29722
29723 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
29724
29725 static swig_const_info swig_const_table[] = {
29726 { SWIG_PY_POINTER, (char*)"TRACE_MemAlloc", 0, 0, (void *)"memalloc", &SWIGTYPE_p_char},
29727 { SWIG_PY_POINTER, (char*)"TRACE_Messages", 0, 0, (void *)"messages", &SWIGTYPE_p_char},
29728 { SWIG_PY_POINTER, (char*)"TRACE_ResAlloc", 0, 0, (void *)"resalloc", &SWIGTYPE_p_char},
29729 { SWIG_PY_POINTER, (char*)"TRACE_RefCount", 0, 0, (void *)"refcount", &SWIGTYPE_p_char},
29730 { SWIG_PY_POINTER, (char*)"TRACE_OleCalls", 0, 0, (void *)"ole", &SWIGTYPE_p_char},
29731 {0}};
29732
29733 #ifdef __cplusplus
29734 }
29735 #endif
29736
29737 #ifdef __cplusplus
29738 extern "C"
29739 #endif
29740 SWIGEXPORT(void) SWIG_init(void) {
29741 static PyObject *SWIG_globals = 0;
29742 static int typeinit = 0;
29743 PyObject *m, *d;
29744 int i;
29745 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
29746 m = Py_InitModule((char *) SWIG_name, SwigMethods);
29747 d = PyModule_GetDict(m);
29748
29749 if (!typeinit) {
29750 for (i = 0; swig_types_initial[i]; i++) {
29751 swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
29752 }
29753 typeinit = 1;
29754 }
29755 SWIG_InstallConstants(d,swig_const_table);
29756
29757 PyDict_SetItemString(d,"SYS_OEM_FIXED_FONT", SWIG_FromInt((int)wxSYS_OEM_FIXED_FONT));
29758 PyDict_SetItemString(d,"SYS_ANSI_FIXED_FONT", SWIG_FromInt((int)wxSYS_ANSI_FIXED_FONT));
29759 PyDict_SetItemString(d,"SYS_ANSI_VAR_FONT", SWIG_FromInt((int)wxSYS_ANSI_VAR_FONT));
29760 PyDict_SetItemString(d,"SYS_SYSTEM_FONT", SWIG_FromInt((int)wxSYS_SYSTEM_FONT));
29761 PyDict_SetItemString(d,"SYS_DEVICE_DEFAULT_FONT", SWIG_FromInt((int)wxSYS_DEVICE_DEFAULT_FONT));
29762 PyDict_SetItemString(d,"SYS_DEFAULT_PALETTE", SWIG_FromInt((int)wxSYS_DEFAULT_PALETTE));
29763 PyDict_SetItemString(d,"SYS_SYSTEM_FIXED_FONT", SWIG_FromInt((int)wxSYS_SYSTEM_FIXED_FONT));
29764 PyDict_SetItemString(d,"SYS_DEFAULT_GUI_FONT", SWIG_FromInt((int)wxSYS_DEFAULT_GUI_FONT));
29765 PyDict_SetItemString(d,"SYS_ICONTITLE_FONT", SWIG_FromInt((int)wxSYS_ICONTITLE_FONT));
29766 PyDict_SetItemString(d,"SYS_COLOUR_SCROLLBAR", SWIG_FromInt((int)wxSYS_COLOUR_SCROLLBAR));
29767 PyDict_SetItemString(d,"SYS_COLOUR_BACKGROUND", SWIG_FromInt((int)wxSYS_COLOUR_BACKGROUND));
29768 PyDict_SetItemString(d,"SYS_COLOUR_DESKTOP", SWIG_FromInt((int)wxSYS_COLOUR_DESKTOP));
29769 PyDict_SetItemString(d,"SYS_COLOUR_ACTIVECAPTION", SWIG_FromInt((int)wxSYS_COLOUR_ACTIVECAPTION));
29770 PyDict_SetItemString(d,"SYS_COLOUR_INACTIVECAPTION", SWIG_FromInt((int)wxSYS_COLOUR_INACTIVECAPTION));
29771 PyDict_SetItemString(d,"SYS_COLOUR_MENU", SWIG_FromInt((int)wxSYS_COLOUR_MENU));
29772 PyDict_SetItemString(d,"SYS_COLOUR_WINDOW", SWIG_FromInt((int)wxSYS_COLOUR_WINDOW));
29773 PyDict_SetItemString(d,"SYS_COLOUR_WINDOWFRAME", SWIG_FromInt((int)wxSYS_COLOUR_WINDOWFRAME));
29774 PyDict_SetItemString(d,"SYS_COLOUR_MENUTEXT", SWIG_FromInt((int)wxSYS_COLOUR_MENUTEXT));
29775 PyDict_SetItemString(d,"SYS_COLOUR_WINDOWTEXT", SWIG_FromInt((int)wxSYS_COLOUR_WINDOWTEXT));
29776 PyDict_SetItemString(d,"SYS_COLOUR_CAPTIONTEXT", SWIG_FromInt((int)wxSYS_COLOUR_CAPTIONTEXT));
29777 PyDict_SetItemString(d,"SYS_COLOUR_ACTIVEBORDER", SWIG_FromInt((int)wxSYS_COLOUR_ACTIVEBORDER));
29778 PyDict_SetItemString(d,"SYS_COLOUR_INACTIVEBORDER", SWIG_FromInt((int)wxSYS_COLOUR_INACTIVEBORDER));
29779 PyDict_SetItemString(d,"SYS_COLOUR_APPWORKSPACE", SWIG_FromInt((int)wxSYS_COLOUR_APPWORKSPACE));
29780 PyDict_SetItemString(d,"SYS_COLOUR_HIGHLIGHT", SWIG_FromInt((int)wxSYS_COLOUR_HIGHLIGHT));
29781 PyDict_SetItemString(d,"SYS_COLOUR_HIGHLIGHTTEXT", SWIG_FromInt((int)wxSYS_COLOUR_HIGHLIGHTTEXT));
29782 PyDict_SetItemString(d,"SYS_COLOUR_BTNFACE", SWIG_FromInt((int)wxSYS_COLOUR_BTNFACE));
29783 PyDict_SetItemString(d,"SYS_COLOUR_3DFACE", SWIG_FromInt((int)wxSYS_COLOUR_3DFACE));
29784 PyDict_SetItemString(d,"SYS_COLOUR_BTNSHADOW", SWIG_FromInt((int)wxSYS_COLOUR_BTNSHADOW));
29785 PyDict_SetItemString(d,"SYS_COLOUR_3DSHADOW", SWIG_FromInt((int)wxSYS_COLOUR_3DSHADOW));
29786 PyDict_SetItemString(d,"SYS_COLOUR_GRAYTEXT", SWIG_FromInt((int)wxSYS_COLOUR_GRAYTEXT));
29787 PyDict_SetItemString(d,"SYS_COLOUR_BTNTEXT", SWIG_FromInt((int)wxSYS_COLOUR_BTNTEXT));
29788 PyDict_SetItemString(d,"SYS_COLOUR_INACTIVECAPTIONTEXT", SWIG_FromInt((int)wxSYS_COLOUR_INACTIVECAPTIONTEXT));
29789 PyDict_SetItemString(d,"SYS_COLOUR_BTNHIGHLIGHT", SWIG_FromInt((int)wxSYS_COLOUR_BTNHIGHLIGHT));
29790 PyDict_SetItemString(d,"SYS_COLOUR_BTNHILIGHT", SWIG_FromInt((int)wxSYS_COLOUR_BTNHILIGHT));
29791 PyDict_SetItemString(d,"SYS_COLOUR_3DHIGHLIGHT", SWIG_FromInt((int)wxSYS_COLOUR_3DHIGHLIGHT));
29792 PyDict_SetItemString(d,"SYS_COLOUR_3DHILIGHT", SWIG_FromInt((int)wxSYS_COLOUR_3DHILIGHT));
29793 PyDict_SetItemString(d,"SYS_COLOUR_3DDKSHADOW", SWIG_FromInt((int)wxSYS_COLOUR_3DDKSHADOW));
29794 PyDict_SetItemString(d,"SYS_COLOUR_3DLIGHT", SWIG_FromInt((int)wxSYS_COLOUR_3DLIGHT));
29795 PyDict_SetItemString(d,"SYS_COLOUR_INFOTEXT", SWIG_FromInt((int)wxSYS_COLOUR_INFOTEXT));
29796 PyDict_SetItemString(d,"SYS_COLOUR_INFOBK", SWIG_FromInt((int)wxSYS_COLOUR_INFOBK));
29797 PyDict_SetItemString(d,"SYS_COLOUR_LISTBOX", SWIG_FromInt((int)wxSYS_COLOUR_LISTBOX));
29798 PyDict_SetItemString(d,"SYS_COLOUR_HOTLIGHT", SWIG_FromInt((int)wxSYS_COLOUR_HOTLIGHT));
29799 PyDict_SetItemString(d,"SYS_COLOUR_GRADIENTACTIVECAPTION", SWIG_FromInt((int)wxSYS_COLOUR_GRADIENTACTIVECAPTION));
29800 PyDict_SetItemString(d,"SYS_COLOUR_GRADIENTINACTIVECAPTION", SWIG_FromInt((int)wxSYS_COLOUR_GRADIENTINACTIVECAPTION));
29801 PyDict_SetItemString(d,"SYS_COLOUR_MENUHILIGHT", SWIG_FromInt((int)wxSYS_COLOUR_MENUHILIGHT));
29802 PyDict_SetItemString(d,"SYS_COLOUR_MENUBAR", SWIG_FromInt((int)wxSYS_COLOUR_MENUBAR));
29803 PyDict_SetItemString(d,"SYS_COLOUR_MAX", SWIG_FromInt((int)wxSYS_COLOUR_MAX));
29804 PyDict_SetItemString(d,"SYS_MOUSE_BUTTONS", SWIG_FromInt((int)wxSYS_MOUSE_BUTTONS));
29805 PyDict_SetItemString(d,"SYS_BORDER_X", SWIG_FromInt((int)wxSYS_BORDER_X));
29806 PyDict_SetItemString(d,"SYS_BORDER_Y", SWIG_FromInt((int)wxSYS_BORDER_Y));
29807 PyDict_SetItemString(d,"SYS_CURSOR_X", SWIG_FromInt((int)wxSYS_CURSOR_X));
29808 PyDict_SetItemString(d,"SYS_CURSOR_Y", SWIG_FromInt((int)wxSYS_CURSOR_Y));
29809 PyDict_SetItemString(d,"SYS_DCLICK_X", SWIG_FromInt((int)wxSYS_DCLICK_X));
29810 PyDict_SetItemString(d,"SYS_DCLICK_Y", SWIG_FromInt((int)wxSYS_DCLICK_Y));
29811 PyDict_SetItemString(d,"SYS_DRAG_X", SWIG_FromInt((int)wxSYS_DRAG_X));
29812 PyDict_SetItemString(d,"SYS_DRAG_Y", SWIG_FromInt((int)wxSYS_DRAG_Y));
29813 PyDict_SetItemString(d,"SYS_EDGE_X", SWIG_FromInt((int)wxSYS_EDGE_X));
29814 PyDict_SetItemString(d,"SYS_EDGE_Y", SWIG_FromInt((int)wxSYS_EDGE_Y));
29815 PyDict_SetItemString(d,"SYS_HSCROLL_ARROW_X", SWIG_FromInt((int)wxSYS_HSCROLL_ARROW_X));
29816 PyDict_SetItemString(d,"SYS_HSCROLL_ARROW_Y", SWIG_FromInt((int)wxSYS_HSCROLL_ARROW_Y));
29817 PyDict_SetItemString(d,"SYS_HTHUMB_X", SWIG_FromInt((int)wxSYS_HTHUMB_X));
29818 PyDict_SetItemString(d,"SYS_ICON_X", SWIG_FromInt((int)wxSYS_ICON_X));
29819 PyDict_SetItemString(d,"SYS_ICON_Y", SWIG_FromInt((int)wxSYS_ICON_Y));
29820 PyDict_SetItemString(d,"SYS_ICONSPACING_X", SWIG_FromInt((int)wxSYS_ICONSPACING_X));
29821 PyDict_SetItemString(d,"SYS_ICONSPACING_Y", SWIG_FromInt((int)wxSYS_ICONSPACING_Y));
29822 PyDict_SetItemString(d,"SYS_WINDOWMIN_X", SWIG_FromInt((int)wxSYS_WINDOWMIN_X));
29823 PyDict_SetItemString(d,"SYS_WINDOWMIN_Y", SWIG_FromInt((int)wxSYS_WINDOWMIN_Y));
29824 PyDict_SetItemString(d,"SYS_SCREEN_X", SWIG_FromInt((int)wxSYS_SCREEN_X));
29825 PyDict_SetItemString(d,"SYS_SCREEN_Y", SWIG_FromInt((int)wxSYS_SCREEN_Y));
29826 PyDict_SetItemString(d,"SYS_FRAMESIZE_X", SWIG_FromInt((int)wxSYS_FRAMESIZE_X));
29827 PyDict_SetItemString(d,"SYS_FRAMESIZE_Y", SWIG_FromInt((int)wxSYS_FRAMESIZE_Y));
29828 PyDict_SetItemString(d,"SYS_SMALLICON_X", SWIG_FromInt((int)wxSYS_SMALLICON_X));
29829 PyDict_SetItemString(d,"SYS_SMALLICON_Y", SWIG_FromInt((int)wxSYS_SMALLICON_Y));
29830 PyDict_SetItemString(d,"SYS_HSCROLL_Y", SWIG_FromInt((int)wxSYS_HSCROLL_Y));
29831 PyDict_SetItemString(d,"SYS_VSCROLL_X", SWIG_FromInt((int)wxSYS_VSCROLL_X));
29832 PyDict_SetItemString(d,"SYS_VSCROLL_ARROW_X", SWIG_FromInt((int)wxSYS_VSCROLL_ARROW_X));
29833 PyDict_SetItemString(d,"SYS_VSCROLL_ARROW_Y", SWIG_FromInt((int)wxSYS_VSCROLL_ARROW_Y));
29834 PyDict_SetItemString(d,"SYS_VTHUMB_Y", SWIG_FromInt((int)wxSYS_VTHUMB_Y));
29835 PyDict_SetItemString(d,"SYS_CAPTION_Y", SWIG_FromInt((int)wxSYS_CAPTION_Y));
29836 PyDict_SetItemString(d,"SYS_MENU_Y", SWIG_FromInt((int)wxSYS_MENU_Y));
29837 PyDict_SetItemString(d,"SYS_NETWORK_PRESENT", SWIG_FromInt((int)wxSYS_NETWORK_PRESENT));
29838 PyDict_SetItemString(d,"SYS_PENWINDOWS_PRESENT", SWIG_FromInt((int)wxSYS_PENWINDOWS_PRESENT));
29839 PyDict_SetItemString(d,"SYS_SHOW_SOUNDS", SWIG_FromInt((int)wxSYS_SHOW_SOUNDS));
29840 PyDict_SetItemString(d,"SYS_SWAP_BUTTONS", SWIG_FromInt((int)wxSYS_SWAP_BUTTONS));
29841 PyDict_SetItemString(d,"SYS_CAN_DRAW_FRAME_DECORATIONS", SWIG_FromInt((int)wxSYS_CAN_DRAW_FRAME_DECORATIONS));
29842 PyDict_SetItemString(d,"SYS_CAN_ICONIZE_FRAME", SWIG_FromInt((int)wxSYS_CAN_ICONIZE_FRAME));
29843 PyDict_SetItemString(d,"SYS_SCREEN_NONE", SWIG_FromInt((int)wxSYS_SCREEN_NONE));
29844 PyDict_SetItemString(d,"SYS_SCREEN_TINY", SWIG_FromInt((int)wxSYS_SCREEN_TINY));
29845 PyDict_SetItemString(d,"SYS_SCREEN_PDA", SWIG_FromInt((int)wxSYS_SCREEN_PDA));
29846 PyDict_SetItemString(d,"SYS_SCREEN_SMALL", SWIG_FromInt((int)wxSYS_SCREEN_SMALL));
29847 PyDict_SetItemString(d,"SYS_SCREEN_DESKTOP", SWIG_FromInt((int)wxSYS_SCREEN_DESKTOP));
29848 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
29849 SWIG_addvarlink(SWIG_globals,(char*)"FileSelectorPromptStr",_wrap_FileSelectorPromptStr_get, _wrap_FileSelectorPromptStr_set);
29850 SWIG_addvarlink(SWIG_globals,(char*)"FileSelectorDefaultWildcardStr",_wrap_FileSelectorDefaultWildcardStr_get, _wrap_FileSelectorDefaultWildcardStr_set);
29851 SWIG_addvarlink(SWIG_globals,(char*)"DirSelectorPromptStr",_wrap_DirSelectorPromptStr_get, _wrap_DirSelectorPromptStr_set);
29852 PyDict_SetItemString(d,"SHUTDOWN_POWEROFF", SWIG_FromInt((int)wxSHUTDOWN_POWEROFF));
29853 PyDict_SetItemString(d,"SHUTDOWN_REBOOT", SWIG_FromInt((int)wxSHUTDOWN_REBOOT));
29854 PyDict_SetItemString(d,"TIMER_CONTINUOUS", SWIG_FromInt((int)wxTIMER_CONTINUOUS));
29855 PyDict_SetItemString(d,"TIMER_ONE_SHOT", SWIG_FromInt((int)wxTIMER_ONE_SHOT));
29856 PyDict_SetItemString(d, "wxEVT_TIMER", PyInt_FromLong(wxEVT_TIMER));
29857
29858 wxPyPtrTypeMap_Add("wxTimer", "wxPyTimer");
29859
29860 PyDict_SetItemString(d,"LOG_FatalError", SWIG_FromInt((int)wxLOG_FatalError));
29861 PyDict_SetItemString(d,"LOG_Error", SWIG_FromInt((int)wxLOG_Error));
29862 PyDict_SetItemString(d,"LOG_Warning", SWIG_FromInt((int)wxLOG_Warning));
29863 PyDict_SetItemString(d,"LOG_Message", SWIG_FromInt((int)wxLOG_Message));
29864 PyDict_SetItemString(d,"LOG_Status", SWIG_FromInt((int)wxLOG_Status));
29865 PyDict_SetItemString(d,"LOG_Info", SWIG_FromInt((int)wxLOG_Info));
29866 PyDict_SetItemString(d,"LOG_Debug", SWIG_FromInt((int)wxLOG_Debug));
29867 PyDict_SetItemString(d,"LOG_Trace", SWIG_FromInt((int)wxLOG_Trace));
29868 PyDict_SetItemString(d,"LOG_Progress", SWIG_FromInt((int)wxLOG_Progress));
29869 PyDict_SetItemString(d,"LOG_User", SWIG_FromInt((int)wxLOG_User));
29870 PyDict_SetItemString(d,"LOG_Max", SWIG_FromInt((int)wxLOG_Max));
29871 PyDict_SetItemString(d,"TRACE_MemAlloc", SWIG_FromCharPtr("memalloc"));
29872 PyDict_SetItemString(d,"TRACE_Messages", SWIG_FromCharPtr("messages"));
29873 PyDict_SetItemString(d,"TRACE_ResAlloc", SWIG_FromCharPtr("resalloc"));
29874 PyDict_SetItemString(d,"TRACE_RefCount", SWIG_FromCharPtr("refcount"));
29875 PyDict_SetItemString(d,"TRACE_OleCalls", SWIG_FromCharPtr("ole"));
29876 PyDict_SetItemString(d,"TraceMemAlloc", SWIG_FromInt((int)0x0001));
29877 PyDict_SetItemString(d,"TraceMessages", SWIG_FromInt((int)0x0002));
29878 PyDict_SetItemString(d,"TraceResAlloc", SWIG_FromInt((int)0x0004));
29879 PyDict_SetItemString(d,"TraceRefCount", SWIG_FromInt((int)0x0008));
29880 PyDict_SetItemString(d,"TraceOleCalls", SWIG_FromInt((int)0x0100));
29881 PyDict_SetItemString(d,"PROCESS_DEFAULT", SWIG_FromInt((int)wxPROCESS_DEFAULT));
29882 PyDict_SetItemString(d,"PROCESS_REDIRECT", SWIG_FromInt((int)wxPROCESS_REDIRECT));
29883 PyDict_SetItemString(d,"KILL_OK", SWIG_FromInt((int)wxKILL_OK));
29884 PyDict_SetItemString(d,"KILL_BAD_SIGNAL", SWIG_FromInt((int)wxKILL_BAD_SIGNAL));
29885 PyDict_SetItemString(d,"KILL_ACCESS_DENIED", SWIG_FromInt((int)wxKILL_ACCESS_DENIED));
29886 PyDict_SetItemString(d,"KILL_NO_PROCESS", SWIG_FromInt((int)wxKILL_NO_PROCESS));
29887 PyDict_SetItemString(d,"KILL_ERROR", SWIG_FromInt((int)wxKILL_ERROR));
29888 PyDict_SetItemString(d,"SIGNONE", SWIG_FromInt((int)wxSIGNONE));
29889 PyDict_SetItemString(d,"SIGHUP", SWIG_FromInt((int)wxSIGHUP));
29890 PyDict_SetItemString(d,"SIGINT", SWIG_FromInt((int)wxSIGINT));
29891 PyDict_SetItemString(d,"SIGQUIT", SWIG_FromInt((int)wxSIGQUIT));
29892 PyDict_SetItemString(d,"SIGILL", SWIG_FromInt((int)wxSIGILL));
29893 PyDict_SetItemString(d,"SIGTRAP", SWIG_FromInt((int)wxSIGTRAP));
29894 PyDict_SetItemString(d,"SIGABRT", SWIG_FromInt((int)wxSIGABRT));
29895 PyDict_SetItemString(d,"SIGIOT", SWIG_FromInt((int)wxSIGIOT));
29896 PyDict_SetItemString(d,"SIGEMT", SWIG_FromInt((int)wxSIGEMT));
29897 PyDict_SetItemString(d,"SIGFPE", SWIG_FromInt((int)wxSIGFPE));
29898 PyDict_SetItemString(d,"SIGKILL", SWIG_FromInt((int)wxSIGKILL));
29899 PyDict_SetItemString(d,"SIGBUS", SWIG_FromInt((int)wxSIGBUS));
29900 PyDict_SetItemString(d,"SIGSEGV", SWIG_FromInt((int)wxSIGSEGV));
29901 PyDict_SetItemString(d,"SIGSYS", SWIG_FromInt((int)wxSIGSYS));
29902 PyDict_SetItemString(d,"SIGPIPE", SWIG_FromInt((int)wxSIGPIPE));
29903 PyDict_SetItemString(d,"SIGALRM", SWIG_FromInt((int)wxSIGALRM));
29904 PyDict_SetItemString(d,"SIGTERM", SWIG_FromInt((int)wxSIGTERM));
29905 PyDict_SetItemString(d, "wxEVT_END_PROCESS", PyInt_FromLong(wxEVT_END_PROCESS));
29906 PyDict_SetItemString(d,"EXEC_ASYNC", SWIG_FromInt((int)wxEXEC_ASYNC));
29907 PyDict_SetItemString(d,"EXEC_SYNC", SWIG_FromInt((int)wxEXEC_SYNC));
29908 PyDict_SetItemString(d,"EXEC_NOHIDE", SWIG_FromInt((int)wxEXEC_NOHIDE));
29909 PyDict_SetItemString(d,"EXEC_MAKE_GROUP_LEADER", SWIG_FromInt((int)wxEXEC_MAKE_GROUP_LEADER));
29910
29911 wxPyPtrTypeMap_Add("wxProcess", "wxPyProcess");
29912
29913 PyDict_SetItemString(d,"JOYSTICK1", SWIG_FromInt((int)wxJOYSTICK1));
29914 PyDict_SetItemString(d,"JOYSTICK2", SWIG_FromInt((int)wxJOYSTICK2));
29915 PyDict_SetItemString(d,"JOY_BUTTON_ANY", SWIG_FromInt((int)wxJOY_BUTTON_ANY));
29916 PyDict_SetItemString(d,"JOY_BUTTON1", SWIG_FromInt((int)wxJOY_BUTTON1));
29917 PyDict_SetItemString(d,"JOY_BUTTON2", SWIG_FromInt((int)wxJOY_BUTTON2));
29918 PyDict_SetItemString(d,"JOY_BUTTON3", SWIG_FromInt((int)wxJOY_BUTTON3));
29919 PyDict_SetItemString(d,"JOY_BUTTON4", SWIG_FromInt((int)wxJOY_BUTTON4));
29920 PyDict_SetItemString(d, "wxEVT_JOY_BUTTON_DOWN", PyInt_FromLong(wxEVT_JOY_BUTTON_DOWN));
29921 PyDict_SetItemString(d, "wxEVT_JOY_BUTTON_UP", PyInt_FromLong(wxEVT_JOY_BUTTON_UP));
29922 PyDict_SetItemString(d, "wxEVT_JOY_MOVE", PyInt_FromLong(wxEVT_JOY_MOVE));
29923 PyDict_SetItemString(d, "wxEVT_JOY_ZMOVE", PyInt_FromLong(wxEVT_JOY_ZMOVE));
29924 PyDict_SetItemString(d,"SOUND_SYNC", SWIG_FromInt((int)wxSOUND_SYNC));
29925 PyDict_SetItemString(d,"SOUND_ASYNC", SWIG_FromInt((int)wxSOUND_ASYNC));
29926 PyDict_SetItemString(d,"SOUND_LOOP", SWIG_FromInt((int)wxSOUND_LOOP));
29927 PyDict_SetItemString(d,"MAILCAP_STANDARD", SWIG_FromInt((int)wxMAILCAP_STANDARD));
29928 PyDict_SetItemString(d,"MAILCAP_NETSCAPE", SWIG_FromInt((int)wxMAILCAP_NETSCAPE));
29929 PyDict_SetItemString(d,"MAILCAP_KDE", SWIG_FromInt((int)wxMAILCAP_KDE));
29930 PyDict_SetItemString(d,"MAILCAP_GNOME", SWIG_FromInt((int)wxMAILCAP_GNOME));
29931 PyDict_SetItemString(d,"MAILCAP_ALL", SWIG_FromInt((int)wxMAILCAP_ALL));
29932 SWIG_addvarlink(SWIG_globals,(char*)"TheMimeTypesManager",_wrap_TheMimeTypesManager_get, _wrap_TheMimeTypesManager_set);
29933 SWIG_addvarlink(SWIG_globals,(char*)"ART_TOOLBAR",_wrap_ART_TOOLBAR_get, _wrap_ART_TOOLBAR_set);
29934 SWIG_addvarlink(SWIG_globals,(char*)"ART_MENU",_wrap_ART_MENU_get, _wrap_ART_MENU_set);
29935 SWIG_addvarlink(SWIG_globals,(char*)"ART_FRAME_ICON",_wrap_ART_FRAME_ICON_get, _wrap_ART_FRAME_ICON_set);
29936 SWIG_addvarlink(SWIG_globals,(char*)"ART_CMN_DIALOG",_wrap_ART_CMN_DIALOG_get, _wrap_ART_CMN_DIALOG_set);
29937 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_BROWSER",_wrap_ART_HELP_BROWSER_get, _wrap_ART_HELP_BROWSER_set);
29938 SWIG_addvarlink(SWIG_globals,(char*)"ART_MESSAGE_BOX",_wrap_ART_MESSAGE_BOX_get, _wrap_ART_MESSAGE_BOX_set);
29939 SWIG_addvarlink(SWIG_globals,(char*)"ART_BUTTON",_wrap_ART_BUTTON_get, _wrap_ART_BUTTON_set);
29940 SWIG_addvarlink(SWIG_globals,(char*)"ART_OTHER",_wrap_ART_OTHER_get, _wrap_ART_OTHER_set);
29941 SWIG_addvarlink(SWIG_globals,(char*)"ART_ADD_BOOKMARK",_wrap_ART_ADD_BOOKMARK_get, _wrap_ART_ADD_BOOKMARK_set);
29942 SWIG_addvarlink(SWIG_globals,(char*)"ART_DEL_BOOKMARK",_wrap_ART_DEL_BOOKMARK_get, _wrap_ART_DEL_BOOKMARK_set);
29943 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_SIDE_PANEL",_wrap_ART_HELP_SIDE_PANEL_get, _wrap_ART_HELP_SIDE_PANEL_set);
29944 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_SETTINGS",_wrap_ART_HELP_SETTINGS_get, _wrap_ART_HELP_SETTINGS_set);
29945 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_BOOK",_wrap_ART_HELP_BOOK_get, _wrap_ART_HELP_BOOK_set);
29946 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_FOLDER",_wrap_ART_HELP_FOLDER_get, _wrap_ART_HELP_FOLDER_set);
29947 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_PAGE",_wrap_ART_HELP_PAGE_get, _wrap_ART_HELP_PAGE_set);
29948 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_BACK",_wrap_ART_GO_BACK_get, _wrap_ART_GO_BACK_set);
29949 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_FORWARD",_wrap_ART_GO_FORWARD_get, _wrap_ART_GO_FORWARD_set);
29950 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_UP",_wrap_ART_GO_UP_get, _wrap_ART_GO_UP_set);
29951 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_DOWN",_wrap_ART_GO_DOWN_get, _wrap_ART_GO_DOWN_set);
29952 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_TO_PARENT",_wrap_ART_GO_TO_PARENT_get, _wrap_ART_GO_TO_PARENT_set);
29953 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_HOME",_wrap_ART_GO_HOME_get, _wrap_ART_GO_HOME_set);
29954 SWIG_addvarlink(SWIG_globals,(char*)"ART_FILE_OPEN",_wrap_ART_FILE_OPEN_get, _wrap_ART_FILE_OPEN_set);
29955 SWIG_addvarlink(SWIG_globals,(char*)"ART_PRINT",_wrap_ART_PRINT_get, _wrap_ART_PRINT_set);
29956 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP",_wrap_ART_HELP_get, _wrap_ART_HELP_set);
29957 SWIG_addvarlink(SWIG_globals,(char*)"ART_TIP",_wrap_ART_TIP_get, _wrap_ART_TIP_set);
29958 SWIG_addvarlink(SWIG_globals,(char*)"ART_REPORT_VIEW",_wrap_ART_REPORT_VIEW_get, _wrap_ART_REPORT_VIEW_set);
29959 SWIG_addvarlink(SWIG_globals,(char*)"ART_LIST_VIEW",_wrap_ART_LIST_VIEW_get, _wrap_ART_LIST_VIEW_set);
29960 SWIG_addvarlink(SWIG_globals,(char*)"ART_NEW_DIR",_wrap_ART_NEW_DIR_get, _wrap_ART_NEW_DIR_set);
29961 SWIG_addvarlink(SWIG_globals,(char*)"ART_FOLDER",_wrap_ART_FOLDER_get, _wrap_ART_FOLDER_set);
29962 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_DIR_UP",_wrap_ART_GO_DIR_UP_get, _wrap_ART_GO_DIR_UP_set);
29963 SWIG_addvarlink(SWIG_globals,(char*)"ART_EXECUTABLE_FILE",_wrap_ART_EXECUTABLE_FILE_get, _wrap_ART_EXECUTABLE_FILE_set);
29964 SWIG_addvarlink(SWIG_globals,(char*)"ART_NORMAL_FILE",_wrap_ART_NORMAL_FILE_get, _wrap_ART_NORMAL_FILE_set);
29965 SWIG_addvarlink(SWIG_globals,(char*)"ART_TICK_MARK",_wrap_ART_TICK_MARK_get, _wrap_ART_TICK_MARK_set);
29966 SWIG_addvarlink(SWIG_globals,(char*)"ART_CROSS_MARK",_wrap_ART_CROSS_MARK_get, _wrap_ART_CROSS_MARK_set);
29967 SWIG_addvarlink(SWIG_globals,(char*)"ART_ERROR",_wrap_ART_ERROR_get, _wrap_ART_ERROR_set);
29968 SWIG_addvarlink(SWIG_globals,(char*)"ART_QUESTION",_wrap_ART_QUESTION_get, _wrap_ART_QUESTION_set);
29969 SWIG_addvarlink(SWIG_globals,(char*)"ART_WARNING",_wrap_ART_WARNING_get, _wrap_ART_WARNING_set);
29970 SWIG_addvarlink(SWIG_globals,(char*)"ART_INFORMATION",_wrap_ART_INFORMATION_get, _wrap_ART_INFORMATION_set);
29971 SWIG_addvarlink(SWIG_globals,(char*)"ART_MISSING_IMAGE",_wrap_ART_MISSING_IMAGE_get, _wrap_ART_MISSING_IMAGE_set);
29972
29973 wxPyPtrTypeMap_Add("wxArtProvider", "wxPyArtProvider");
29974
29975 PyDict_SetItemString(d,"CONFIG_USE_LOCAL_FILE", SWIG_FromInt((int)wxCONFIG_USE_LOCAL_FILE));
29976 PyDict_SetItemString(d,"CONFIG_USE_GLOBAL_FILE", SWIG_FromInt((int)wxCONFIG_USE_GLOBAL_FILE));
29977 PyDict_SetItemString(d,"CONFIG_USE_RELATIVE_PATH", SWIG_FromInt((int)wxCONFIG_USE_RELATIVE_PATH));
29978 PyDict_SetItemString(d,"CONFIG_USE_NO_ESCAPE_CHARACTERS", SWIG_FromInt((int)wxCONFIG_USE_NO_ESCAPE_CHARACTERS));
29979 PyDict_SetItemString(d,"ConfigBase_Type_Unknown", SWIG_FromInt((int)wxConfigBase::Type_Unknown));
29980 PyDict_SetItemString(d,"ConfigBase_Type_String", SWIG_FromInt((int)wxConfigBase::Type_String));
29981 PyDict_SetItemString(d,"ConfigBase_Type_Boolean", SWIG_FromInt((int)wxConfigBase::Type_Boolean));
29982 PyDict_SetItemString(d,"ConfigBase_Type_Integer", SWIG_FromInt((int)wxConfigBase::Type_Integer));
29983 PyDict_SetItemString(d,"ConfigBase_Type_Float", SWIG_FromInt((int)wxConfigBase::Type_Float));
29984 SWIG_addvarlink(SWIG_globals,(char*)"DateFormatStr",_wrap_DateFormatStr_get, _wrap_DateFormatStr_set);
29985 SWIG_addvarlink(SWIG_globals,(char*)"TimeSpanFormatStr",_wrap_TimeSpanFormatStr_get, _wrap_TimeSpanFormatStr_set);
29986 PyDict_SetItemString(d,"DateTime_Local", SWIG_FromInt((int)wxDateTime::Local));
29987 PyDict_SetItemString(d,"DateTime_GMT_12", SWIG_FromInt((int)wxDateTime::GMT_12));
29988 PyDict_SetItemString(d,"DateTime_GMT_11", SWIG_FromInt((int)wxDateTime::GMT_11));
29989 PyDict_SetItemString(d,"DateTime_GMT_10", SWIG_FromInt((int)wxDateTime::GMT_10));
29990 PyDict_SetItemString(d,"DateTime_GMT_9", SWIG_FromInt((int)wxDateTime::GMT_9));
29991 PyDict_SetItemString(d,"DateTime_GMT_8", SWIG_FromInt((int)wxDateTime::GMT_8));
29992 PyDict_SetItemString(d,"DateTime_GMT_7", SWIG_FromInt((int)wxDateTime::GMT_7));
29993 PyDict_SetItemString(d,"DateTime_GMT_6", SWIG_FromInt((int)wxDateTime::GMT_6));
29994 PyDict_SetItemString(d,"DateTime_GMT_5", SWIG_FromInt((int)wxDateTime::GMT_5));
29995 PyDict_SetItemString(d,"DateTime_GMT_4", SWIG_FromInt((int)wxDateTime::GMT_4));
29996 PyDict_SetItemString(d,"DateTime_GMT_3", SWIG_FromInt((int)wxDateTime::GMT_3));
29997 PyDict_SetItemString(d,"DateTime_GMT_2", SWIG_FromInt((int)wxDateTime::GMT_2));
29998 PyDict_SetItemString(d,"DateTime_GMT_1", SWIG_FromInt((int)wxDateTime::GMT_1));
29999 PyDict_SetItemString(d,"DateTime_GMT0", SWIG_FromInt((int)wxDateTime::GMT0));
30000 PyDict_SetItemString(d,"DateTime_GMT1", SWIG_FromInt((int)wxDateTime::GMT1));
30001 PyDict_SetItemString(d,"DateTime_GMT2", SWIG_FromInt((int)wxDateTime::GMT2));
30002 PyDict_SetItemString(d,"DateTime_GMT3", SWIG_FromInt((int)wxDateTime::GMT3));
30003 PyDict_SetItemString(d,"DateTime_GMT4", SWIG_FromInt((int)wxDateTime::GMT4));
30004 PyDict_SetItemString(d,"DateTime_GMT5", SWIG_FromInt((int)wxDateTime::GMT5));
30005 PyDict_SetItemString(d,"DateTime_GMT6", SWIG_FromInt((int)wxDateTime::GMT6));
30006 PyDict_SetItemString(d,"DateTime_GMT7", SWIG_FromInt((int)wxDateTime::GMT7));
30007 PyDict_SetItemString(d,"DateTime_GMT8", SWIG_FromInt((int)wxDateTime::GMT8));
30008 PyDict_SetItemString(d,"DateTime_GMT9", SWIG_FromInt((int)wxDateTime::GMT9));
30009 PyDict_SetItemString(d,"DateTime_GMT10", SWIG_FromInt((int)wxDateTime::GMT10));
30010 PyDict_SetItemString(d,"DateTime_GMT11", SWIG_FromInt((int)wxDateTime::GMT11));
30011 PyDict_SetItemString(d,"DateTime_GMT12", SWIG_FromInt((int)wxDateTime::GMT12));
30012 PyDict_SetItemString(d,"DateTime_WET", SWIG_FromInt((int)wxDateTime::WET));
30013 PyDict_SetItemString(d,"DateTime_WEST", SWIG_FromInt((int)wxDateTime::WEST));
30014 PyDict_SetItemString(d,"DateTime_CET", SWIG_FromInt((int)wxDateTime::CET));
30015 PyDict_SetItemString(d,"DateTime_CEST", SWIG_FromInt((int)wxDateTime::CEST));
30016 PyDict_SetItemString(d,"DateTime_EET", SWIG_FromInt((int)wxDateTime::EET));
30017 PyDict_SetItemString(d,"DateTime_EEST", SWIG_FromInt((int)wxDateTime::EEST));
30018 PyDict_SetItemString(d,"DateTime_MSK", SWIG_FromInt((int)wxDateTime::MSK));
30019 PyDict_SetItemString(d,"DateTime_MSD", SWIG_FromInt((int)wxDateTime::MSD));
30020 PyDict_SetItemString(d,"DateTime_AST", SWIG_FromInt((int)wxDateTime::AST));
30021 PyDict_SetItemString(d,"DateTime_ADT", SWIG_FromInt((int)wxDateTime::ADT));
30022 PyDict_SetItemString(d,"DateTime_EST", SWIG_FromInt((int)wxDateTime::EST));
30023 PyDict_SetItemString(d,"DateTime_EDT", SWIG_FromInt((int)wxDateTime::EDT));
30024 PyDict_SetItemString(d,"DateTime_CST", SWIG_FromInt((int)wxDateTime::CST));
30025 PyDict_SetItemString(d,"DateTime_CDT", SWIG_FromInt((int)wxDateTime::CDT));
30026 PyDict_SetItemString(d,"DateTime_MST", SWIG_FromInt((int)wxDateTime::MST));
30027 PyDict_SetItemString(d,"DateTime_MDT", SWIG_FromInt((int)wxDateTime::MDT));
30028 PyDict_SetItemString(d,"DateTime_PST", SWIG_FromInt((int)wxDateTime::PST));
30029 PyDict_SetItemString(d,"DateTime_PDT", SWIG_FromInt((int)wxDateTime::PDT));
30030 PyDict_SetItemString(d,"DateTime_HST", SWIG_FromInt((int)wxDateTime::HST));
30031 PyDict_SetItemString(d,"DateTime_AKST", SWIG_FromInt((int)wxDateTime::AKST));
30032 PyDict_SetItemString(d,"DateTime_AKDT", SWIG_FromInt((int)wxDateTime::AKDT));
30033 PyDict_SetItemString(d,"DateTime_A_WST", SWIG_FromInt((int)wxDateTime::A_WST));
30034 PyDict_SetItemString(d,"DateTime_A_CST", SWIG_FromInt((int)wxDateTime::A_CST));
30035 PyDict_SetItemString(d,"DateTime_A_EST", SWIG_FromInt((int)wxDateTime::A_EST));
30036 PyDict_SetItemString(d,"DateTime_A_ESST", SWIG_FromInt((int)wxDateTime::A_ESST));
30037 PyDict_SetItemString(d,"DateTime_UTC", SWIG_FromInt((int)wxDateTime::UTC));
30038 PyDict_SetItemString(d,"DateTime_Gregorian", SWIG_FromInt((int)wxDateTime::Gregorian));
30039 PyDict_SetItemString(d,"DateTime_Julian", SWIG_FromInt((int)wxDateTime::Julian));
30040 PyDict_SetItemString(d,"DateTime_Gr_Unknown", SWIG_FromInt((int)wxDateTime::Gr_Unknown));
30041 PyDict_SetItemString(d,"DateTime_Gr_Standard", SWIG_FromInt((int)wxDateTime::Gr_Standard));
30042 PyDict_SetItemString(d,"DateTime_Gr_Alaska", SWIG_FromInt((int)wxDateTime::Gr_Alaska));
30043 PyDict_SetItemString(d,"DateTime_Gr_Albania", SWIG_FromInt((int)wxDateTime::Gr_Albania));
30044 PyDict_SetItemString(d,"DateTime_Gr_Austria", SWIG_FromInt((int)wxDateTime::Gr_Austria));
30045 PyDict_SetItemString(d,"DateTime_Gr_Austria_Brixen", SWIG_FromInt((int)wxDateTime::Gr_Austria_Brixen));
30046 PyDict_SetItemString(d,"DateTime_Gr_Austria_Salzburg", SWIG_FromInt((int)wxDateTime::Gr_Austria_Salzburg));
30047 PyDict_SetItemString(d,"DateTime_Gr_Austria_Tyrol", SWIG_FromInt((int)wxDateTime::Gr_Austria_Tyrol));
30048 PyDict_SetItemString(d,"DateTime_Gr_Austria_Carinthia", SWIG_FromInt((int)wxDateTime::Gr_Austria_Carinthia));
30049 PyDict_SetItemString(d,"DateTime_Gr_Austria_Styria", SWIG_FromInt((int)wxDateTime::Gr_Austria_Styria));
30050 PyDict_SetItemString(d,"DateTime_Gr_Belgium", SWIG_FromInt((int)wxDateTime::Gr_Belgium));
30051 PyDict_SetItemString(d,"DateTime_Gr_Bulgaria", SWIG_FromInt((int)wxDateTime::Gr_Bulgaria));
30052 PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_1", SWIG_FromInt((int)wxDateTime::Gr_Bulgaria_1));
30053 PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_2", SWIG_FromInt((int)wxDateTime::Gr_Bulgaria_2));
30054 PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_3", SWIG_FromInt((int)wxDateTime::Gr_Bulgaria_3));
30055 PyDict_SetItemString(d,"DateTime_Gr_Canada", SWIG_FromInt((int)wxDateTime::Gr_Canada));
30056 PyDict_SetItemString(d,"DateTime_Gr_China", SWIG_FromInt((int)wxDateTime::Gr_China));
30057 PyDict_SetItemString(d,"DateTime_Gr_China_1", SWIG_FromInt((int)wxDateTime::Gr_China_1));
30058 PyDict_SetItemString(d,"DateTime_Gr_China_2", SWIG_FromInt((int)wxDateTime::Gr_China_2));
30059 PyDict_SetItemString(d,"DateTime_Gr_Czechoslovakia", SWIG_FromInt((int)wxDateTime::Gr_Czechoslovakia));
30060 PyDict_SetItemString(d,"DateTime_Gr_Denmark", SWIG_FromInt((int)wxDateTime::Gr_Denmark));
30061 PyDict_SetItemString(d,"DateTime_Gr_Egypt", SWIG_FromInt((int)wxDateTime::Gr_Egypt));
30062 PyDict_SetItemString(d,"DateTime_Gr_Estonia", SWIG_FromInt((int)wxDateTime::Gr_Estonia));
30063 PyDict_SetItemString(d,"DateTime_Gr_Finland", SWIG_FromInt((int)wxDateTime::Gr_Finland));
30064 PyDict_SetItemString(d,"DateTime_Gr_France", SWIG_FromInt((int)wxDateTime::Gr_France));
30065 PyDict_SetItemString(d,"DateTime_Gr_France_Alsace", SWIG_FromInt((int)wxDateTime::Gr_France_Alsace));
30066 PyDict_SetItemString(d,"DateTime_Gr_France_Lorraine", SWIG_FromInt((int)wxDateTime::Gr_France_Lorraine));
30067 PyDict_SetItemString(d,"DateTime_Gr_France_Strasbourg", SWIG_FromInt((int)wxDateTime::Gr_France_Strasbourg));
30068 PyDict_SetItemString(d,"DateTime_Gr_Germany", SWIG_FromInt((int)wxDateTime::Gr_Germany));
30069 PyDict_SetItemString(d,"DateTime_Gr_Germany_Catholic", SWIG_FromInt((int)wxDateTime::Gr_Germany_Catholic));
30070 PyDict_SetItemString(d,"DateTime_Gr_Germany_Prussia", SWIG_FromInt((int)wxDateTime::Gr_Germany_Prussia));
30071 PyDict_SetItemString(d,"DateTime_Gr_Germany_Protestant", SWIG_FromInt((int)wxDateTime::Gr_Germany_Protestant));
30072 PyDict_SetItemString(d,"DateTime_Gr_GreatBritain", SWIG_FromInt((int)wxDateTime::Gr_GreatBritain));
30073 PyDict_SetItemString(d,"DateTime_Gr_Greece", SWIG_FromInt((int)wxDateTime::Gr_Greece));
30074 PyDict_SetItemString(d,"DateTime_Gr_Hungary", SWIG_FromInt((int)wxDateTime::Gr_Hungary));
30075 PyDict_SetItemString(d,"DateTime_Gr_Ireland", SWIG_FromInt((int)wxDateTime::Gr_Ireland));
30076 PyDict_SetItemString(d,"DateTime_Gr_Italy", SWIG_FromInt((int)wxDateTime::Gr_Italy));
30077 PyDict_SetItemString(d,"DateTime_Gr_Japan", SWIG_FromInt((int)wxDateTime::Gr_Japan));
30078 PyDict_SetItemString(d,"DateTime_Gr_Japan_1", SWIG_FromInt((int)wxDateTime::Gr_Japan_1));
30079 PyDict_SetItemString(d,"DateTime_Gr_Japan_2", SWIG_FromInt((int)wxDateTime::Gr_Japan_2));
30080 PyDict_SetItemString(d,"DateTime_Gr_Japan_3", SWIG_FromInt((int)wxDateTime::Gr_Japan_3));
30081 PyDict_SetItemString(d,"DateTime_Gr_Latvia", SWIG_FromInt((int)wxDateTime::Gr_Latvia));
30082 PyDict_SetItemString(d,"DateTime_Gr_Lithuania", SWIG_FromInt((int)wxDateTime::Gr_Lithuania));
30083 PyDict_SetItemString(d,"DateTime_Gr_Luxemburg", SWIG_FromInt((int)wxDateTime::Gr_Luxemburg));
30084 PyDict_SetItemString(d,"DateTime_Gr_Netherlands", SWIG_FromInt((int)wxDateTime::Gr_Netherlands));
30085 PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Groningen", SWIG_FromInt((int)wxDateTime::Gr_Netherlands_Groningen));
30086 PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Gelderland", SWIG_FromInt((int)wxDateTime::Gr_Netherlands_Gelderland));
30087 PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Utrecht", SWIG_FromInt((int)wxDateTime::Gr_Netherlands_Utrecht));
30088 PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Friesland", SWIG_FromInt((int)wxDateTime::Gr_Netherlands_Friesland));
30089 PyDict_SetItemString(d,"DateTime_Gr_Norway", SWIG_FromInt((int)wxDateTime::Gr_Norway));
30090 PyDict_SetItemString(d,"DateTime_Gr_Poland", SWIG_FromInt((int)wxDateTime::Gr_Poland));
30091 PyDict_SetItemString(d,"DateTime_Gr_Portugal", SWIG_FromInt((int)wxDateTime::Gr_Portugal));
30092 PyDict_SetItemString(d,"DateTime_Gr_Romania", SWIG_FromInt((int)wxDateTime::Gr_Romania));
30093 PyDict_SetItemString(d,"DateTime_Gr_Russia", SWIG_FromInt((int)wxDateTime::Gr_Russia));
30094 PyDict_SetItemString(d,"DateTime_Gr_Scotland", SWIG_FromInt((int)wxDateTime::Gr_Scotland));
30095 PyDict_SetItemString(d,"DateTime_Gr_Spain", SWIG_FromInt((int)wxDateTime::Gr_Spain));
30096 PyDict_SetItemString(d,"DateTime_Gr_Sweden", SWIG_FromInt((int)wxDateTime::Gr_Sweden));
30097 PyDict_SetItemString(d,"DateTime_Gr_Switzerland", SWIG_FromInt((int)wxDateTime::Gr_Switzerland));
30098 PyDict_SetItemString(d,"DateTime_Gr_Switzerland_Catholic", SWIG_FromInt((int)wxDateTime::Gr_Switzerland_Catholic));
30099 PyDict_SetItemString(d,"DateTime_Gr_Switzerland_Protestant", SWIG_FromInt((int)wxDateTime::Gr_Switzerland_Protestant));
30100 PyDict_SetItemString(d,"DateTime_Gr_Turkey", SWIG_FromInt((int)wxDateTime::Gr_Turkey));
30101 PyDict_SetItemString(d,"DateTime_Gr_USA", SWIG_FromInt((int)wxDateTime::Gr_USA));
30102 PyDict_SetItemString(d,"DateTime_Gr_Wales", SWIG_FromInt((int)wxDateTime::Gr_Wales));
30103 PyDict_SetItemString(d,"DateTime_Gr_Yugoslavia", SWIG_FromInt((int)wxDateTime::Gr_Yugoslavia));
30104 PyDict_SetItemString(d,"DateTime_Country_Unknown", SWIG_FromInt((int)wxDateTime::Country_Unknown));
30105 PyDict_SetItemString(d,"DateTime_Country_Default", SWIG_FromInt((int)wxDateTime::Country_Default));
30106 PyDict_SetItemString(d,"DateTime_Country_WesternEurope_Start", SWIG_FromInt((int)wxDateTime::Country_WesternEurope_Start));
30107 PyDict_SetItemString(d,"DateTime_Country_EEC", SWIG_FromInt((int)wxDateTime::Country_EEC));
30108 PyDict_SetItemString(d,"DateTime_France", SWIG_FromInt((int)wxDateTime::France));
30109 PyDict_SetItemString(d,"DateTime_Germany", SWIG_FromInt((int)wxDateTime::Germany));
30110 PyDict_SetItemString(d,"DateTime_UK", SWIG_FromInt((int)wxDateTime::UK));
30111 PyDict_SetItemString(d,"DateTime_Country_WesternEurope_End", SWIG_FromInt((int)wxDateTime::Country_WesternEurope_End));
30112 PyDict_SetItemString(d,"DateTime_Russia", SWIG_FromInt((int)wxDateTime::Russia));
30113 PyDict_SetItemString(d,"DateTime_USA", SWIG_FromInt((int)wxDateTime::USA));
30114 PyDict_SetItemString(d,"DateTime_Jan", SWIG_FromInt((int)wxDateTime::Jan));
30115 PyDict_SetItemString(d,"DateTime_Feb", SWIG_FromInt((int)wxDateTime::Feb));
30116 PyDict_SetItemString(d,"DateTime_Mar", SWIG_FromInt((int)wxDateTime::Mar));
30117 PyDict_SetItemString(d,"DateTime_Apr", SWIG_FromInt((int)wxDateTime::Apr));
30118 PyDict_SetItemString(d,"DateTime_May", SWIG_FromInt((int)wxDateTime::May));
30119 PyDict_SetItemString(d,"DateTime_Jun", SWIG_FromInt((int)wxDateTime::Jun));
30120 PyDict_SetItemString(d,"DateTime_Jul", SWIG_FromInt((int)wxDateTime::Jul));
30121 PyDict_SetItemString(d,"DateTime_Aug", SWIG_FromInt((int)wxDateTime::Aug));
30122 PyDict_SetItemString(d,"DateTime_Sep", SWIG_FromInt((int)wxDateTime::Sep));
30123 PyDict_SetItemString(d,"DateTime_Oct", SWIG_FromInt((int)wxDateTime::Oct));
30124 PyDict_SetItemString(d,"DateTime_Nov", SWIG_FromInt((int)wxDateTime::Nov));
30125 PyDict_SetItemString(d,"DateTime_Dec", SWIG_FromInt((int)wxDateTime::Dec));
30126 PyDict_SetItemString(d,"DateTime_Inv_Month", SWIG_FromInt((int)wxDateTime::Inv_Month));
30127 PyDict_SetItemString(d,"DateTime_Sun", SWIG_FromInt((int)wxDateTime::Sun));
30128 PyDict_SetItemString(d,"DateTime_Mon", SWIG_FromInt((int)wxDateTime::Mon));
30129 PyDict_SetItemString(d,"DateTime_Tue", SWIG_FromInt((int)wxDateTime::Tue));
30130 PyDict_SetItemString(d,"DateTime_Wed", SWIG_FromInt((int)wxDateTime::Wed));
30131 PyDict_SetItemString(d,"DateTime_Thu", SWIG_FromInt((int)wxDateTime::Thu));
30132 PyDict_SetItemString(d,"DateTime_Fri", SWIG_FromInt((int)wxDateTime::Fri));
30133 PyDict_SetItemString(d,"DateTime_Sat", SWIG_FromInt((int)wxDateTime::Sat));
30134 PyDict_SetItemString(d,"DateTime_Inv_WeekDay", SWIG_FromInt((int)wxDateTime::Inv_WeekDay));
30135 PyDict_SetItemString(d,"DateTime_Inv_Year", SWIG_FromInt((int)wxDateTime::Inv_Year));
30136 PyDict_SetItemString(d,"DateTime_Name_Full", SWIG_FromInt((int)wxDateTime::Name_Full));
30137 PyDict_SetItemString(d,"DateTime_Name_Abbr", SWIG_FromInt((int)wxDateTime::Name_Abbr));
30138 PyDict_SetItemString(d,"DateTime_Default_First", SWIG_FromInt((int)wxDateTime::Default_First));
30139 PyDict_SetItemString(d,"DateTime_Monday_First", SWIG_FromInt((int)wxDateTime::Monday_First));
30140 PyDict_SetItemString(d,"DateTime_Sunday_First", SWIG_FromInt((int)wxDateTime::Sunday_First));
30141 SWIG_addvarlink(SWIG_globals,(char*)"DefaultDateTime",_wrap_DefaultDateTime_get, _wrap_DefaultDateTime_set);
30142 PyDict_SetItemString(d,"DF_INVALID", SWIG_FromInt((int)wxDF_INVALID));
30143 PyDict_SetItemString(d,"DF_TEXT", SWIG_FromInt((int)wxDF_TEXT));
30144 PyDict_SetItemString(d,"DF_BITMAP", SWIG_FromInt((int)wxDF_BITMAP));
30145 PyDict_SetItemString(d,"DF_METAFILE", SWIG_FromInt((int)wxDF_METAFILE));
30146 PyDict_SetItemString(d,"DF_SYLK", SWIG_FromInt((int)wxDF_SYLK));
30147 PyDict_SetItemString(d,"DF_DIF", SWIG_FromInt((int)wxDF_DIF));
30148 PyDict_SetItemString(d,"DF_TIFF", SWIG_FromInt((int)wxDF_TIFF));
30149 PyDict_SetItemString(d,"DF_OEMTEXT", SWIG_FromInt((int)wxDF_OEMTEXT));
30150 PyDict_SetItemString(d,"DF_DIB", SWIG_FromInt((int)wxDF_DIB));
30151 PyDict_SetItemString(d,"DF_PALETTE", SWIG_FromInt((int)wxDF_PALETTE));
30152 PyDict_SetItemString(d,"DF_PENDATA", SWIG_FromInt((int)wxDF_PENDATA));
30153 PyDict_SetItemString(d,"DF_RIFF", SWIG_FromInt((int)wxDF_RIFF));
30154 PyDict_SetItemString(d,"DF_WAVE", SWIG_FromInt((int)wxDF_WAVE));
30155 PyDict_SetItemString(d,"DF_UNICODETEXT", SWIG_FromInt((int)wxDF_UNICODETEXT));
30156 PyDict_SetItemString(d,"DF_ENHMETAFILE", SWIG_FromInt((int)wxDF_ENHMETAFILE));
30157 PyDict_SetItemString(d,"DF_FILENAME", SWIG_FromInt((int)wxDF_FILENAME));
30158 PyDict_SetItemString(d,"DF_LOCALE", SWIG_FromInt((int)wxDF_LOCALE));
30159 PyDict_SetItemString(d,"DF_PRIVATE", SWIG_FromInt((int)wxDF_PRIVATE));
30160 PyDict_SetItemString(d,"DF_HTML", SWIG_FromInt((int)wxDF_HTML));
30161 PyDict_SetItemString(d,"DF_MAX", SWIG_FromInt((int)wxDF_MAX));
30162 SWIG_addvarlink(SWIG_globals,(char*)"FormatInvalid",_wrap_FormatInvalid_get, _wrap_FormatInvalid_set);
30163 PyDict_SetItemString(d,"DataObject_Get", SWIG_FromInt((int)wxDataObject::Get));
30164 PyDict_SetItemString(d,"DataObject_Set", SWIG_FromInt((int)wxDataObject::Set));
30165 PyDict_SetItemString(d,"DataObject_Both", SWIG_FromInt((int)wxDataObject::Both));
30166 PyDict_SetItemString(d,"Drag_CopyOnly", SWIG_FromInt((int)wxDrag_CopyOnly));
30167 PyDict_SetItemString(d,"Drag_AllowMove", SWIG_FromInt((int)wxDrag_AllowMove));
30168 PyDict_SetItemString(d,"Drag_DefaultMove", SWIG_FromInt((int)wxDrag_DefaultMove));
30169 PyDict_SetItemString(d,"DragError", SWIG_FromInt((int)wxDragError));
30170 PyDict_SetItemString(d,"DragNone", SWIG_FromInt((int)wxDragNone));
30171 PyDict_SetItemString(d,"DragCopy", SWIG_FromInt((int)wxDragCopy));
30172 PyDict_SetItemString(d,"DragMove", SWIG_FromInt((int)wxDragMove));
30173 PyDict_SetItemString(d,"DragLink", SWIG_FromInt((int)wxDragLink));
30174 PyDict_SetItemString(d,"DragCancel", SWIG_FromInt((int)wxDragCancel));
30175
30176 wxPyPtrTypeMap_Add("wxDropSource", "wxPyDropSource");
30177 wxPyPtrTypeMap_Add("wxDropTarget", "wxPyDropTarget");
30178 wxPyPtrTypeMap_Add("wxTextDropTarget", "wxPyTextDropTarget");
30179 wxPyPtrTypeMap_Add("wxFileDropTarget", "wxPyFileDropTarget");
30180
30181 SWIG_addvarlink(SWIG_globals,(char*)"DefaultVideoMode",_wrap_DefaultVideoMode_get, _wrap_DefaultVideoMode_set);
30182 }
30183