]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/msw/_misc_wrap.cpp
c273b025222bbfbc2c45601c7a015034bd9c1422
[wxWidgets.git] / wxPython / src / msw / _misc_wrap.cpp
1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 1.3.22
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11 #define SWIGPYTHON
12 #define SWIG_NOINCLUDE
13
14 #ifdef __cplusplus
15 template<class T> class SwigValueWrapper {
16 T *tt;
17 public:
18 SwigValueWrapper() : tt(0) { }
19 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
20 SwigValueWrapper(const T& t) : tt(new T(t)) { }
21 ~SwigValueWrapper() { delete tt; }
22 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
23 operator T&() const { return *tt; }
24 T *operator&() { return tt; }
25 private:
26 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
27 };
28 #endif
29
30
31 #include "Python.h"
32
33 /*************************************************************** -*- c -*-
34 * python/precommon.swg
35 *
36 * Rename all exported symbols from common.swg, to avoid symbol
37 * clashes if multiple interpreters are included
38 *
39 ************************************************************************/
40
41 #define SWIG_TypeRegister SWIG_Python_TypeRegister
42 #define SWIG_TypeCheck SWIG_Python_TypeCheck
43 #define SWIG_TypeCast SWIG_Python_TypeCast
44 #define SWIG_TypeDynamicCast SWIG_Python_TypeDynamicCast
45 #define SWIG_TypeName SWIG_Python_TypeName
46 #define SWIG_TypeQuery SWIG_Python_TypeQuery
47 #define SWIG_TypeClientData SWIG_Python_TypeClientData
48 #define SWIG_PackData SWIG_Python_PackData
49 #define SWIG_UnpackData SWIG_Python_UnpackData
50
51
52 /***********************************************************************
53 * common.swg for wxPython
54 *
55 * Include only the function prototypes and such from SWIG's common.swg,
56 * but not the runtime functions themselves. This helps keep the
57 * wrapper files clean of unnecessary stuff that is in the libpy.c file
58 * anyway.
59 *
60 ************************************************************************/
61
62 #include <string.h>
63
64 #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
65 # if defined(_MSC_VER) || defined(__GNUC__)
66 # if defined(STATIC_LINKED)
67 # define SWIGEXPORT(a) a
68 # define SWIGIMPORT(a) extern a
69 # else
70 # define SWIGEXPORT(a) __declspec(dllexport) a
71 # define SWIGIMPORT(a) extern a
72 # endif
73 # else
74 # if defined(__BORLANDC__)
75 # define SWIGEXPORT(a) a _export
76 # define SWIGIMPORT(a) a _export
77 # else
78 # define SWIGEXPORT(a) a
79 # define SWIGIMPORT(a) a
80 # endif
81 # endif
82 #else
83 # define SWIGEXPORT(a) a
84 # define SWIGIMPORT(a) a
85 #endif
86
87 #ifdef SWIG_GLOBAL
88 # define SWIGRUNTIME(a) SWIGEXPORT(a)
89 #else
90 # define SWIGRUNTIME(a) static a
91 #endif
92
93 #ifdef __cplusplus
94 extern "C" {
95 #endif
96
97 typedef void *(*swig_converter_func)(void *);
98 typedef struct swig_type_info *(*swig_dycast_func)(void **);
99
100 typedef struct swig_type_info {
101 const char *name;
102 swig_converter_func converter;
103 const char *str;
104 void *clientdata;
105 swig_dycast_func dcast;
106 struct swig_type_info *next;
107 struct swig_type_info *prev;
108 } swig_type_info;
109
110
111 SWIGIMPORT(swig_type_info *) SWIG_TypeRegister(swig_type_info *);
112 SWIGIMPORT(swig_type_info *) SWIG_TypeCheck(char *c, swig_type_info *);
113 SWIGIMPORT(void *) SWIG_TypeCast(swig_type_info *, void *);
114 SWIGIMPORT(swig_type_info *) SWIG_TypeDynamicCast(swig_type_info *, void **);
115 SWIGIMPORT(const char *) SWIG_TypeName(const swig_type_info *);
116 SWIGIMPORT(swig_type_info *) SWIG_TypeQuery(const char *);
117 SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info *, void *);
118 SWIGIMPORT(char *) SWIG_PackData(char *, void *, int);
119 SWIGIMPORT(char *) SWIG_UnpackData(char *, void *, int);
120
121
122 #ifdef __cplusplus
123 }
124 #endif
125
126 /***********************************************************************
127 * pyrun.swg for wxPython
128 *
129 * Include only the function prototypes and such from SWIG's pyrun.swg,
130 * but not the runtime functions themselves. This helps keep the
131 * wrapper files clean of unnecessary stuff that is in the libpy.c file
132 * anyway.
133 *
134 ************************************************************************/
135
136 #include "Python.h"
137
138 #ifdef __cplusplus
139 extern "C" {
140 #endif
141
142 #define SWIG_PY_INT 1
143 #define SWIG_PY_FLOAT 2
144 #define SWIG_PY_STRING 3
145 #define SWIG_PY_POINTER 4
146 #define SWIG_PY_BINARY 5
147
148 /* Flags for pointer conversion */
149
150 #define SWIG_POINTER_EXCEPTION 0x1
151 #define SWIG_POINTER_DISOWN 0x2
152
153 /* Exception handling in wrappers */
154 #define SWIG_fail goto fail
155
156 /* Constant information structure */
157 typedef struct swig_const_info {
158 int type;
159 char *name;
160 long lvalue;
161 double dvalue;
162 void *pvalue;
163 swig_type_info **ptype;
164 } swig_const_info;
165
166 /* Common SWIG API */
167 #define SWIG_ConvertPtr(obj, pp, type, flags) \
168 SWIG_Python_ConvertPtr(obj, pp, type, flags)
169 #define SWIG_NewPointerObj(p, type, flags) \
170 SWIG_Python_NewPointerObj(p, type, flags)
171 #define SWIG_MustGetPtr(p, type, argnum, flags) \
172 SWIG_Python_MustGetPtr(p, type, argnum, flags)
173
174 /* Python-specific SWIG API */
175 #define SWIG_newvarlink() \
176 SWIG_Python_newvarlink()
177 #define SWIG_addvarlink(p, name, get_attr, set_attr) \
178 SWIG_Python_addvarlink(p, name, get_attr, set_attr)
179 #define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) \
180 SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags)
181 #define SWIG_NewPackedObj(ptr, sz, type) \
182 SWIG_Python_NewPackedObj(ptr, sz, type)
183 #define SWIG_InstallConstants(d, constants) \
184 SWIG_Python_InstallConstants(d, constants)
185
186 typedef double (*py_objasdbl_conv)(PyObject *obj);
187
188 SWIGIMPORT(int) SWIG_Python_ConvertPtr(PyObject *, void **, swig_type_info *, int);
189 SWIGIMPORT(PyObject *) SWIG_Python_NewPointerObj(void *, swig_type_info *,int own);
190 SWIGIMPORT(void *) SWIG_Python_MustGetPtr(PyObject *, swig_type_info *, int, int);
191 SWIGIMPORT(PyObject *) SWIG_Python_newvarlink(void);
192 SWIGIMPORT(void) SWIG_Python_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *));
193 SWIGIMPORT(int) SWIG_Python_ConvertPacked(PyObject *, void *, int sz, swig_type_info *, int);
194 SWIGIMPORT(PyObject *) SWIG_Python_NewPackedObj(void *, int sz, swig_type_info *);
195 SWIGIMPORT(void) SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]);
196
197
198 /* Contract support */
199
200 #define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else
201
202 #ifdef __cplusplus
203 }
204 #endif
205
206
207 /* -------- TYPES TABLE (BEGIN) -------- */
208
209 #define SWIGTYPE_p_wxLogChain swig_types[0]
210 #define SWIGTYPE_p_wxMutexGuiLocker swig_types[1]
211 #define SWIGTYPE_p_wxMetafile swig_types[2]
212 #define SWIGTYPE_p_wxFileHistory swig_types[3]
213 #define SWIGTYPE_p_wxLog swig_types[4]
214 #define SWIGTYPE_p_wxDateTime__TimeZone swig_types[5]
215 #define SWIGTYPE_p_wxMenu swig_types[6]
216 #define SWIGTYPE_p_wxEvent swig_types[7]
217 #define SWIGTYPE_p_wxConfigBase swig_types[8]
218 #define SWIGTYPE_p_wxDisplay swig_types[9]
219 #define SWIGTYPE_p_wxFileType swig_types[10]
220 #define SWIGTYPE_p_wxLogGui swig_types[11]
221 #define SWIGTYPE_p_wxFont swig_types[12]
222 #define SWIGTYPE_p_wxDataFormat swig_types[13]
223 #define SWIGTYPE_p_wxTimerEvent swig_types[14]
224 #define SWIGTYPE_p_wxCaret swig_types[15]
225 #define SWIGTYPE_p_int swig_types[16]
226 #define SWIGTYPE_p_wxSize swig_types[17]
227 #define SWIGTYPE_p_wxClipboard swig_types[18]
228 #define SWIGTYPE_p_wxStopWatch swig_types[19]
229 #define SWIGTYPE_p_wxDC swig_types[20]
230 #define SWIGTYPE_p_wxClipboardLocker swig_types[21]
231 #define SWIGTYPE_p_wxIcon swig_types[22]
232 #define SWIGTYPE_p_wxLogStderr swig_types[23]
233 #define SWIGTYPE_p_wxLogTextCtrl swig_types[24]
234 #define SWIGTYPE_p_wxTextCtrl swig_types[25]
235 #define SWIGTYPE_p_wxBusyCursor swig_types[26]
236 #define SWIGTYPE_p_wxPyBitmapDataObject swig_types[27]
237 #define SWIGTYPE_p_wxPyTextDataObject swig_types[28]
238 #define SWIGTYPE_p_wxBitmapDataObject swig_types[29]
239 #define SWIGTYPE_p_wxTextDataObject swig_types[30]
240 #define SWIGTYPE_p_wxDataObject swig_types[31]
241 #define SWIGTYPE_p_wxFileDataObject swig_types[32]
242 #define SWIGTYPE_p_wxCustomDataObject swig_types[33]
243 #define SWIGTYPE_p_wxURLDataObject swig_types[34]
244 #define SWIGTYPE_p_wxMetafileDataObject swig_types[35]
245 #define SWIGTYPE_p_wxSound swig_types[36]
246 #define SWIGTYPE_p_wxTimerRunner swig_types[37]
247 #define SWIGTYPE_p_wxLogWindow swig_types[38]
248 #define SWIGTYPE_p_wxTimeSpan swig_types[39]
249 #define SWIGTYPE_p_wxArrayString swig_types[40]
250 #define SWIGTYPE_p_wxWindowDisabler swig_types[41]
251 #define SWIGTYPE_p_wxToolTip swig_types[42]
252 #define SWIGTYPE_p_wxDataObjectComposite swig_types[43]
253 #define SWIGTYPE_p_wxFileConfig swig_types[44]
254 #define SWIGTYPE_p_wxSystemSettings swig_types[45]
255 #define SWIGTYPE_p_wxVideoMode swig_types[46]
256 #define SWIGTYPE_p_wxPyDataObjectSimple swig_types[47]
257 #define SWIGTYPE_p_wxDataObjectSimple swig_types[48]
258 #define SWIGTYPE_p_wxEvtHandler swig_types[49]
259 #define SWIGTYPE_p_wxRect swig_types[50]
260 #define SWIGTYPE_p_char swig_types[51]
261 #define SWIGTYPE_p_wxSingleInstanceChecker swig_types[52]
262 #define SWIGTYPE_p_wxFileTypeInfo swig_types[53]
263 #define SWIGTYPE_p_wxFrame swig_types[54]
264 #define SWIGTYPE_p_wxTimer swig_types[55]
265 #define SWIGTYPE_p_wxMimeTypesManager swig_types[56]
266 #define SWIGTYPE_p_wxPyArtProvider swig_types[57]
267 #define SWIGTYPE_p_wxPyTipProvider swig_types[58]
268 #define SWIGTYPE_p_wxTipProvider swig_types[59]
269 #define SWIGTYPE_p_wxJoystick swig_types[60]
270 #define SWIGTYPE_p_wxSystemOptions swig_types[61]
271 #define SWIGTYPE_p_wxPoint swig_types[62]
272 #define SWIGTYPE_p_wxJoystickEvent swig_types[63]
273 #define SWIGTYPE_p_wxCursor swig_types[64]
274 #define SWIGTYPE_p_wxObject swig_types[65]
275 #define SWIGTYPE_p_wxOutputStream swig_types[66]
276 #define SWIGTYPE_p_wxDateTime swig_types[67]
277 #define SWIGTYPE_p_wxPyDropSource swig_types[68]
278 #define SWIGTYPE_p_wxWindow swig_types[69]
279 #define SWIGTYPE_p_wxString swig_types[70]
280 #define SWIGTYPE_p_wxPyProcess swig_types[71]
281 #define SWIGTYPE_p_wxBitmap swig_types[72]
282 #define SWIGTYPE_p_wxConfig swig_types[73]
283 #define SWIGTYPE_p_wxChar swig_types[74]
284 #define SWIGTYPE_p_wxBusyInfo swig_types[75]
285 #define SWIGTYPE_p_wxPyDropTarget swig_types[76]
286 #define SWIGTYPE_p_wxPyTextDropTarget swig_types[77]
287 #define SWIGTYPE_p_wxPyFileDropTarget swig_types[78]
288 #define SWIGTYPE_p_wxProcessEvent swig_types[79]
289 #define SWIGTYPE_p_wxPyLog swig_types[80]
290 #define SWIGTYPE_p_wxLogNull swig_types[81]
291 #define SWIGTYPE_p_wxColour swig_types[82]
292 #define SWIGTYPE_p_wxConfigPathChanger swig_types[83]
293 #define SWIGTYPE_p_wxPyTimer swig_types[84]
294 #define SWIGTYPE_p_wxDateSpan swig_types[85]
295 static swig_type_info *swig_types[87];
296
297 /* -------- TYPES TABLE (END) -------- */
298
299
300 /*-----------------------------------------------
301 @(target):= _misc_.so
302 ------------------------------------------------*/
303 #define SWIG_init init_misc_
304
305 #define SWIG_name "_misc_"
306
307 /* Auxiliar swig macros */
308
309 #ifdef __cplusplus
310 #define SWIGSTATICINLINE(a) static inline a
311 #define SWIGSTATIC(a) static a
312 #define swig_new_array(type, size) (new type[(size)])
313 #define swig_delete_array(cptr) delete[] cptr
314 #define swig_const_cast(type,a) const_cast<type>(a)
315 #define swig_static_cast(type,a) static_cast<type>(a)
316 #define swig_reinterpret_cast(type,a) reinterpret_cast<type>(a)
317
318 #ifdef HAVE_NUMERIC_CAST
319 #define swig_numeric_cast(type,a) numeric_cast<type>(a)
320 #else
321 #define swig_numeric_cast(type,a) static_cast<type>(a)
322 #endif
323
324 #else /* C case */
325
326 #define SWIGSTATICINLINE(a) static a
327 #define SWIGSTATIC(a) static a
328 #define swig_new_array(type, size) ((type*) malloc((size)*sizeof(type)))
329 #define swig_delete_array(cptr) free((char*)cptr)
330 #define swig_const_cast(type,a) (type)(a)
331 #define swig_static_cast(type,a) (type)(a)
332 #define swig_reinterpret_cast(type,a) (type)(a)
333 #define swig_numeric_cast(type,a) (type)(a)
334
335 #endif /* __cplusplus */
336
337
338 #define SWIG_FromSignedChar PyInt_FromLong
339 #define SWIG_FromUnsignedChar PyInt_FromLong
340 #define SWIG_FromShort PyInt_FromLong
341 #define SWIG_FromUnsignedShort PyInt_FromLong
342 #define SWIG_FromInt PyInt_FromLong
343 #define SWIG_FromLong PyInt_FromLong
344 #define SWIG_FromFloat PyFloat_FromDouble
345 #define SWIG_FromDouble PyFloat_FromDouble
346 #define SWIG_FromFloat PyFloat_FromDouble
347 #define SWIG_FromDouble PyFloat_FromDouble
348
349
350 #include "wx/wxPython/wxPython.h"
351 #include "wx/wxPython/pyclasses.h"
352 #include "wx/wxPython/pyistream.h"
353
354 static const wxString wxPyEmptyString(wxEmptyString);
355
356
357
358 #include <limits.h>
359
360
361 SWIGSTATICINLINE(long)
362 SWIG_CheckLongInRange(long value, const char* type,
363 long min_value, long max_value)
364 {
365 if (!PyErr_Occurred()) {
366 if (value < min_value) {
367 PyObject *err =
368 PyString_FromFormat("value %ld is less than '%s' minimum %ld",
369 value, type, min_value);
370
371 PyErr_SetObject(PyExc_OverflowError, err);
372 Py_DECREF(err);
373 } else if (value > max_value) {
374 PyObject *err =
375 PyString_FromFormat("value %ld is greater than '%s' maximum %ld",
376 value, type, max_value);
377 PyErr_SetObject(PyExc_OverflowError, err);
378 Py_DECREF(err);
379 }
380 }
381 return value;
382 }
383
384
385 SWIGSTATICINLINE(long)
386 SWIG_AsLong(PyObject * obj)
387 {
388 if (PyNumber_Check(obj))
389 return PyInt_AsLong(obj);
390 else {
391 PyObject* errmsg = PyString_FromFormat("Expected number, got %s",
392 obj->ob_type->tp_name);
393 PyErr_SetObject(PyExc_TypeError, errmsg);
394 Py_DECREF(errmsg);
395 return 0;
396 }
397 }
398
399
400 #if INT_MAX != LONG_MAX
401 SWIGSTATICINLINE(int)
402 SWIG_AsInt(PyObject *obj)
403 {
404 return swig_numeric_cast(int,
405 SWIG_CheckLongInRange(SWIG_AsLong(obj),
406 "int", INT_MIN, INT_MAX));
407 }
408 #else
409 #define SWIG_AsInt SWIG_AsLong
410 #endif
411
412
413 SWIGSTATICINLINE(int)
414 SWIG_CheckInt(PyObject* obj)
415 {
416 SWIG_AsInt(obj);
417 if (PyErr_Occurred()) {
418 PyErr_Clear();
419 return 0;
420 } else {
421 return 1;
422 }
423 }
424
425
426 #include <wx/stockitem.h>
427
428 static const wxString wxPyFileSelectorPromptStr(wxFileSelectorPromptStr);
429 static const wxString wxPyFileSelectorDefaultWildcardStr(wxFileSelectorDefaultWildcardStr);
430 static const wxString wxPyDirSelectorPromptStr(wxDirSelectorPromptStr);
431
432 SWIGSTATICINLINE(int)
433 SWIG_CheckLong(PyObject* obj)
434 {
435 SWIG_AsLong(obj);
436 if (PyErr_Occurred()) {
437 PyErr_Clear();
438 return 0;
439 } else {
440 return 1;
441 }
442 }
443
444
445 SWIGSTATICINLINE(bool)
446 SWIG_AsBool(PyObject *obj)
447 {
448 return PyObject_IsTrue(obj) ? true : false;
449 }
450
451
452 SWIGSTATICINLINE(int)
453 SWIG_CheckBool(PyObject* obj)
454 {
455 SWIG_AsBool(obj);
456 if (PyErr_Occurred()) {
457 PyErr_Clear();
458 return 0;
459 } else {
460 return 1;
461 }
462 }
463
464
465 static PyObject* t_output_helper(PyObject* target, PyObject* o) {
466 PyObject* o2;
467 PyObject* o3;
468
469 if (!target) {
470 target = o;
471 } else if (target == Py_None) {
472 Py_DECREF(Py_None);
473 target = o;
474 } else {
475 if (!PyTuple_Check(target)) {
476 o2 = target;
477 target = PyTuple_New(1);
478 PyTuple_SetItem(target, 0, o2);
479 }
480 o3 = PyTuple_New(1);
481 PyTuple_SetItem(o3, 0, o);
482
483 o2 = target;
484 target = PySequence_Concat(o2, o3);
485 Py_DECREF(o2);
486 Py_DECREF(o3);
487 }
488 return target;
489 }
490
491
492 SWIGSTATICINLINE(unsigned long)
493 SWIG_AsUnsignedLong(PyObject * obj)
494 {
495 if (PyLong_Check(obj)) {
496 return PyLong_AsUnsignedLong(obj);
497 } else {
498 long i = SWIG_AsLong(obj);
499 if ( !PyErr_Occurred() && (i < 0)) {
500 PyErr_SetString(PyExc_TypeError, "negative value received for unsigned type");
501 }
502 return i;
503 }
504 }
505
506
507 SWIGSTATICINLINE(int)
508 SWIG_CheckUnsignedLong(PyObject* obj)
509 {
510 SWIG_AsUnsignedLong(obj);
511 if (PyErr_Occurred()) {
512 PyErr_Clear();
513 return 0;
514 } else {
515 return 1;
516 }
517 }
518
519
520 SWIGSTATICINLINE(PyObject* )
521 SWIG_FromUnsignedLong(unsigned long value)
522 {
523 return (value > LONG_MAX) ?
524 PyLong_FromUnsignedLong(value)
525 : PyInt_FromLong(swig_numeric_cast(long,value));
526 }
527
528
529 bool wxThread_IsMain() {
530 #ifdef WXP_WITH_THREAD
531 return wxThread::IsMain();
532 #else
533 return True;
534 #endif
535 }
536
537
538 int wxCaret_GetBlinkTime() {
539 return wxCaret::GetBlinkTime();
540 }
541
542 void wxCaret_SetBlinkTime(int milliseconds) {
543 wxCaret::SetBlinkTime(milliseconds);
544 }
545
546
547 #include <wx/snglinst.h>
548
549
550 #ifdef __WXMSW__
551 #include <wx/msw/private.h>
552 #include <wx/dynload.h>
553 #endif
554
555
556
557 void wxDrawWindowOnDC(wxWindow* window, const wxDC& dc, int method)
558 {
559 #ifdef __WXMSW__
560
561 switch (method)
562 {
563 case 1:
564 // This one only partially works. Appears to be an undocumented
565 // "standard" convention that not all widgets adhear to. For
566 // example, for some widgets backgrounds or non-client areas may
567 // not be painted.
568 ::SendMessage(GetHwndOf(window), WM_PAINT, (long)GetHdcOf(dc), 0);
569 break;
570
571 case 2:
572 // This one works much better, except for on XP. On Win2k nearly
573 // all widgets and their children are captured correctly[**]. On
574 // XP with Themes activated most native widgets draw only
575 // partially, if at all. Without themes it works just like on
576 // Win2k.
577 //
578 // ** For example the radio buttons in a wxRadioBox are not its
579 // children by default, but you can capture it via the panel
580 // instead, or change RADIOBTN_PARENT_IS_RADIOBOX in radiobox.cpp.
581 ::SendMessage(GetHwndOf(window), WM_PRINT, (long)GetHdcOf(dc),
582 PRF_CLIENT | PRF_NONCLIENT | PRF_CHILDREN |
583 PRF_ERASEBKGND | PRF_OWNED );
584 break;
585
586 case 3:
587 // This one is only defined in the latest SDK and is only
588 // available on XP. MSDN says it is similar to sending WM_PRINT
589 // so I expect that it will work similar to the above. Since it
590 // is avaialble only on XP, it can't be compiled like this and
591 // will have to be loaded dynamically.
592 // //::PrintWindow(GetHwndOf(window), GetHdcOf(dc), 0); //break;
593
594 // fall through
595
596 case 4:
597 // Use PrintWindow if available, or fallback to WM_PRINT
598 // otherwise. Unfortunately using PrintWindow is even worse than
599 // WM_PRINT. For most native widgets nothing is drawn to the dc
600 // at all, with or without Themes.
601 typedef BOOL (WINAPI *PrintWindow_t)(HWND, HDC, UINT);
602 static bool s_triedToLoad = False;
603 static PrintWindow_t pfnPrintWindow = NULL;
604 if ( !s_triedToLoad )
605 {
606
607 s_triedToLoad = True;
608 wxDynamicLibrary dllUser32(_T("user32.dll"));
609 if ( dllUser32.IsLoaded() )
610 {
611 wxLogNull nolog; // Don't report errors here
612 pfnPrintWindow = (PrintWindow_t)dllUser32.GetSymbol(_T("PrintWindow"));
613 }
614 }
615 if (pfnPrintWindow)
616 {
617 printf("Using PrintWindow\n");
618 pfnPrintWindow(GetHwndOf(window), GetHdcOf(dc), 0);
619 }
620 else
621 {
622 printf("Using WM_PRINT\n");
623 ::SendMessage(GetHwndOf(window), WM_PRINT, (long)GetHdcOf(dc),
624 PRF_CLIENT | PRF_NONCLIENT | PRF_CHILDREN | PRF_ERASEBKGND | PRF_OWNED );
625 }
626 }
627 #endif
628 }
629
630
631
632 #include <wx/tipdlg.h>
633
634
635 class wxPyTipProvider : public wxTipProvider {
636 public:
637 wxPyTipProvider(size_t currentTip)
638 : wxTipProvider(currentTip) {}
639
640 DEC_PYCALLBACK_STRING__pure(GetTip);
641 DEC_PYCALLBACK_STRING_STRING(PreprocessTip);
642 PYPRIVATE;
643 };
644
645 IMP_PYCALLBACK_STRING__pure( wxPyTipProvider, wxTipProvider, GetTip);
646 IMP_PYCALLBACK_STRING_STRING(wxPyTipProvider, wxTipProvider, PreprocessTip);
647
648
649 //IMP_PYCALLBACK__(wxPyTimer, wxTimer, Notify);
650
651 IMPLEMENT_ABSTRACT_CLASS(wxPyTimer, wxTimer);
652
653 void wxPyTimer::Notify() {
654 bool found;
655 bool blocked = wxPyBeginBlockThreads();
656 if ((found = wxPyCBH_findCallback(m_myInst, "Notify")))
657 wxPyCBH_callCallback(m_myInst, Py_BuildValue("()"));
658 wxPyEndBlockThreads(blocked);
659 if (! found)
660 wxTimer::Notify();
661 }
662 void wxPyTimer::base_Notify() {
663 wxTimer::Notify();
664 }
665
666
667
668 SWIGSTATICINLINE(PyObject *)
669 SWIG_FromCharPtr(const char* cptr)
670 {
671 size_t size = cptr ? strlen(cptr) : 0;
672 if (cptr) {
673 if (size > INT_MAX) {
674 return SWIG_NewPointerObj(swig_const_cast(char*,cptr),
675 SWIG_TypeQuery("char *"), 0);
676 } else {
677 return PyString_FromStringAndSize(cptr, swig_numeric_cast(int,size));
678 }
679 } else {
680 Py_INCREF(Py_None);
681 return Py_None;
682 }
683 }
684
685
686 SWIGSTATICINLINE(unsigned long)
687 SWIG_CheckUnsignedLongInRange(unsigned long value, const char* type,
688 unsigned long max_value)
689 {
690 if (!PyErr_Occurred()) {
691 if (value > max_value) {
692 PyObject *err =
693 PyString_FromFormat("value %ld is greater than '%s' minimum %ld",
694 value, type, max_value);
695 PyErr_SetObject(PyExc_OverflowError, err);
696 Py_DECREF(err);
697 }
698 }
699 return value;
700 }
701
702
703 #if UINT_MAX != ULONG_MAX
704 SWIGSTATICINLINE(unsigned int)
705 SWIG_AsUnsignedInt(PyObject *obj)
706 {
707 return swig_numeric_cast(unsigned int,
708 SWIG_CheckUnsignedLongInRange(SWIG_AsUnsignedLong(obj),
709 "unsigned int", UINT_MAX));
710 }
711 #else
712 #define SWIG_AsUnsignedInt SWIG_AsUnsignedLong
713 #endif
714
715
716 SWIGSTATICINLINE(int)
717 SWIG_CheckUnsignedInt(PyObject* obj)
718 {
719 SWIG_AsUnsignedInt(obj);
720 if (PyErr_Occurred()) {
721 PyErr_Clear();
722 return 0;
723 } else {
724 return 1;
725 }
726 }
727
728 wxString Log_TimeStamp(){
729 wxString msg;
730 wxLog::TimeStamp(&msg);
731 return msg;
732 }
733 void wxLog_Destroy(wxLog *self){ delete self; }
734
735 // A wxLog class that can be derived from in wxPython
736 class wxPyLog : public wxLog {
737 public:
738 wxPyLog() : wxLog() {}
739
740 virtual void DoLog(wxLogLevel level, const wxChar *szString, time_t t) {
741 bool found;
742 bool blocked = wxPyBeginBlockThreads();
743 if ((found = wxPyCBH_findCallback(m_myInst, "DoLog"))) {
744 PyObject* s = wx2PyString(szString);
745 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iOi)", level, s, t));
746 Py_DECREF(s);
747 }
748 wxPyEndBlockThreads(blocked);
749 if (! found)
750 wxLog::DoLog(level, szString, t);
751 }
752
753 virtual void DoLogString(const wxChar *szString, time_t t) {
754 bool found;
755 bool blocked = wxPyBeginBlockThreads();
756 if ((found = wxPyCBH_findCallback(m_myInst, "DoLogString"))) {
757 PyObject* s = wx2PyString(szString);
758 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(Oi)", s, t));
759 Py_DECREF(s);
760 }
761 wxPyEndBlockThreads(blocked);
762 if (! found)
763 wxLog::DoLogString(szString, t);
764 }
765
766 PYPRIVATE;
767 };
768
769
770
771
772 IMP_PYCALLBACK_VOID_INTINT( wxPyProcess, wxProcess, OnTerminate);
773
774
775 #include <wx/joystick.h>
776
777
778 #if !wxUSE_JOYSTICK && !defined(__WXMSW__)
779 // A C++ stub class for wxJoystick for platforms that don't have it.
780 class wxJoystick : public wxObject {
781 public:
782 wxJoystick(int joystick = wxJOYSTICK1) {
783 bool blocked = wxPyBeginBlockThreads();
784 PyErr_SetString(PyExc_NotImplementedError,
785 "wxJoystick is not available on this platform.");
786 wxPyEndBlockThreads(blocked);
787 }
788 wxPoint GetPosition() { return wxPoint(-1,-1); }
789 int GetZPosition() { return -1; }
790 int GetButtonState() { return -1; }
791 int GetPOVPosition() { return -1; }
792 int GetPOVCTSPosition() { return -1; }
793 int GetRudderPosition() { return -1; }
794 int GetUPosition() { return -1; }
795 int GetVPosition() { return -1; }
796 int GetMovementThreshold() { return -1; }
797 void SetMovementThreshold(int threshold) {}
798
799 bool IsOk(void) { return False; }
800 int GetNumberJoysticks() { return -1; }
801 int GetManufacturerId() { return -1; }
802 int GetProductId() { return -1; }
803 wxString GetProductName() { return wxEmptyString; }
804 int GetXMin() { return -1; }
805 int GetYMin() { return -1; }
806 int GetZMin() { return -1; }
807 int GetXMax() { return -1; }
808 int GetYMax() { return -1; }
809 int GetZMax() { return -1; }
810 int GetNumberButtons() { return -1; }
811 int GetNumberAxes() { return -1; }
812 int GetMaxButtons() { return -1; }
813 int GetMaxAxes() { return -1; }
814 int GetPollingMin() { return -1; }
815 int GetPollingMax() { return -1; }
816 int GetRudderMin() { return -1; }
817 int GetRudderMax() { return -1; }
818 int GetUMin() { return -1; }
819 int GetUMax() { return -1; }
820 int GetVMin() { return -1; }
821 int GetVMax() { return -1; }
822
823 bool HasRudder() { return False; }
824 bool HasZ() { return False; }
825 bool HasU() { return False; }
826 bool HasV() { return False; }
827 bool HasPOV() { return False; }
828 bool HasPOV4Dir() { return False; }
829 bool HasPOVCTS() { return False; }
830
831 bool SetCapture(wxWindow* win, int pollingFreq = 0) { return False; }
832 bool ReleaseCapture() { return False; }
833 };
834 #endif
835
836
837 #include <wx/sound.h>
838
839
840 #if !wxUSE_SOUND
841 // A C++ stub class for wxWave for platforms that don't have it.
842 class wxSound : public wxObject
843 {
844 public:
845 wxSound() {
846 bool blocked = wxPyBeginBlockThreads();
847 PyErr_SetString(PyExc_NotImplementedError,
848 "wxSound is not available on this platform.");
849 wxPyEndBlockThreads(blocked);
850 }
851 wxSound(const wxString&/*, bool*/) {
852 bool blocked = wxPyBeginBlockThreads();
853 PyErr_SetString(PyExc_NotImplementedError,
854 "wxSound is not available on this platform.");
855 wxPyEndBlockThreads(blocked);
856 }
857 wxSound(int, const wxByte*) {
858 bool blocked = wxPyBeginBlockThreads();
859 PyErr_SetString(PyExc_NotImplementedError,
860 "wxSound is not available on this platform.");
861 wxPyEndBlockThreads(blocked);
862 }
863
864 ~wxSound() {};
865
866 bool Create(const wxString&/*, bool*/) { return false; }
867 bool Create(int, const wxByte*) { return false; };
868 bool IsOk() { return false; };
869 bool Play(unsigned) const { return false; }
870 static bool Play(const wxString&, unsigned) { return false; }
871 static void Stop() {}
872 };
873
874 #endif
875
876 wxSound *new_wxSound(wxString const &fileName){
877 if (fileName.Length() == 0)
878 return new wxSound;
879 else
880 return new wxSound(fileName);
881 }
882 wxSound *new_wxSound(PyObject *data){
883 unsigned char* buffer; int size;
884 wxSound *sound = NULL;
885
886 bool blocked = wxPyBeginBlockThreads();
887 if (!PyArg_Parse(data, "t#", &buffer, &size))
888 goto done;
889 sound = new wxSound(size, buffer);
890 done:
891 wxPyEndBlockThreads(blocked);
892 return sound;
893 }
894 bool wxSound_CreateFromData(wxSound *self,PyObject *data){
895 #ifndef __WXMAC__
896 unsigned char* buffer;
897 int size;
898 bool rv = False;
899
900 bool blocked = wxPyBeginBlockThreads();
901 if (!PyArg_Parse(data, "t#", &buffer, &size))
902 goto done;
903 rv = self->Create(size, buffer);
904 done:
905 wxPyEndBlockThreads(blocked);
906 return rv;
907 #else
908 bool blocked = wxPyBeginBlockThreads();
909 PyErr_SetString(PyExc_NotImplementedError,
910 "Create from data is not available on this platform.");
911 wxPyEndBlockThreads(blocked);
912 return False;
913 #endif
914 }
915
916 #include <wx/mimetype.h>
917
918 PyObject *wxFileType_GetMimeType(wxFileType *self){
919 wxString str;
920 if (self->GetMimeType(&str))
921 return wx2PyString(str);
922 else
923 RETURN_NONE();
924 }
925 PyObject *wxFileType_GetMimeTypes(wxFileType *self){
926 wxArrayString arr;
927 if (self->GetMimeTypes(arr))
928 return wxArrayString2PyList_helper(arr);
929 else
930 RETURN_NONE();
931 }
932 PyObject *wxFileType_GetExtensions(wxFileType *self){
933 wxArrayString arr;
934 if (self->GetExtensions(arr))
935 return wxArrayString2PyList_helper(arr);
936 else
937 RETURN_NONE();
938 }
939 wxIcon *wxFileType_GetIcon(wxFileType *self){
940 wxIconLocation loc;
941 if (self->GetIcon(&loc))
942 return new wxIcon(loc);
943 else
944 return NULL;
945 }
946 PyObject *wxFileType_GetIconInfo(wxFileType *self){
947 wxIconLocation loc;
948 if (self->GetIcon(&loc)) {
949 wxString iconFile = loc.GetFileName();
950 int iconIndex = -1;
951
952 iconIndex = loc.GetIndex();
953
954 // Make a tuple and put the values in it
955 bool blocked = wxPyBeginBlockThreads();
956 PyObject* tuple = PyTuple_New(3);
957 PyTuple_SetItem(tuple, 0, wxPyConstructObject(new wxIcon(loc),
958 wxT("wxIcon"), True));
959 PyTuple_SetItem(tuple, 1, wx2PyString(iconFile));
960 PyTuple_SetItem(tuple, 2, PyInt_FromLong(iconIndex));
961 wxPyEndBlockThreads(blocked);
962 return tuple;
963 }
964 else
965 RETURN_NONE();
966 }
967 PyObject *wxFileType_GetDescription(wxFileType *self){
968 wxString str;
969 if (self->GetDescription(&str))
970 return wx2PyString(str);
971 else
972 RETURN_NONE();
973 }
974 PyObject *wxFileType_GetOpenCommand(wxFileType *self,wxString const &filename,wxString const &mimetype){
975 wxString str;
976 if (self->GetOpenCommand(&str, wxFileType::MessageParameters(filename, mimetype)))
977 return wx2PyString(str);
978 else
979 RETURN_NONE();
980 }
981 PyObject *wxFileType_GetPrintCommand(wxFileType *self,wxString const &filename,wxString const &mimetype){
982 wxString str;
983 if (self->GetPrintCommand(&str, wxFileType::MessageParameters(filename, mimetype)))
984 return wx2PyString(str);
985 else
986 RETURN_NONE();
987 }
988 PyObject *wxFileType_GetAllCommands(wxFileType *self,wxString const &filename,wxString const &mimetype){
989 wxArrayString verbs;
990 wxArrayString commands;
991 if (self->GetAllCommands(&verbs, &commands,
992 wxFileType::MessageParameters(filename, mimetype))) {
993 bool blocked = wxPyBeginBlockThreads();
994 PyObject* tuple = PyTuple_New(2);
995 PyTuple_SetItem(tuple, 0, wxArrayString2PyList_helper(verbs));
996 PyTuple_SetItem(tuple, 1, wxArrayString2PyList_helper(commands));
997 wxPyEndBlockThreads(blocked);
998 return tuple;
999 }
1000 else
1001 RETURN_NONE();
1002 }
1003 wxString FileType_ExpandCommand(wxString const &command,wxString const &filename,wxString const &mimetype){
1004 return wxFileType::ExpandCommand(command,
1005 wxFileType::MessageParameters(filename, mimetype));
1006 }
1007 PyObject *wxMimeTypesManager_EnumAllFileTypes(wxMimeTypesManager *self){
1008 wxArrayString arr;
1009 self->EnumAllFileTypes(arr);
1010 return wxArrayString2PyList_helper(arr);
1011 }
1012
1013 #include <wx/artprov.h>
1014
1015 static const wxString wxPyART_TOOLBAR(wxART_TOOLBAR);
1016 static const wxString wxPyART_MENU(wxART_MENU);
1017 static const wxString wxPyART_FRAME_ICON(wxART_FRAME_ICON);
1018 static const wxString wxPyART_CMN_DIALOG(wxART_CMN_DIALOG);
1019 static const wxString wxPyART_HELP_BROWSER(wxART_HELP_BROWSER);
1020 static const wxString wxPyART_MESSAGE_BOX(wxART_MESSAGE_BOX);
1021 static const wxString wxPyART_BUTTON(wxART_BUTTON);
1022 static const wxString wxPyART_OTHER(wxART_OTHER);
1023 static const wxString wxPyART_ADD_BOOKMARK(wxART_ADD_BOOKMARK);
1024 static const wxString wxPyART_DEL_BOOKMARK(wxART_DEL_BOOKMARK);
1025 static const wxString wxPyART_HELP_SIDE_PANEL(wxART_HELP_SIDE_PANEL);
1026 static const wxString wxPyART_HELP_SETTINGS(wxART_HELP_SETTINGS);
1027 static const wxString wxPyART_HELP_BOOK(wxART_HELP_BOOK);
1028 static const wxString wxPyART_HELP_FOLDER(wxART_HELP_FOLDER);
1029 static const wxString wxPyART_HELP_PAGE(wxART_HELP_PAGE);
1030 static const wxString wxPyART_GO_BACK(wxART_GO_BACK);
1031 static const wxString wxPyART_GO_FORWARD(wxART_GO_FORWARD);
1032 static const wxString wxPyART_GO_UP(wxART_GO_UP);
1033 static const wxString wxPyART_GO_DOWN(wxART_GO_DOWN);
1034 static const wxString wxPyART_GO_TO_PARENT(wxART_GO_TO_PARENT);
1035 static const wxString wxPyART_GO_HOME(wxART_GO_HOME);
1036 static const wxString wxPyART_FILE_OPEN(wxART_FILE_OPEN);
1037 static const wxString wxPyART_PRINT(wxART_PRINT);
1038 static const wxString wxPyART_HELP(wxART_HELP);
1039 static const wxString wxPyART_TIP(wxART_TIP);
1040 static const wxString wxPyART_REPORT_VIEW(wxART_REPORT_VIEW);
1041 static const wxString wxPyART_LIST_VIEW(wxART_LIST_VIEW);
1042 static const wxString wxPyART_NEW_DIR(wxART_NEW_DIR);
1043 static const wxString wxPyART_FOLDER(wxART_FOLDER);
1044 static const wxString wxPyART_GO_DIR_UP(wxART_GO_DIR_UP);
1045 static const wxString wxPyART_EXECUTABLE_FILE(wxART_EXECUTABLE_FILE);
1046 static const wxString wxPyART_NORMAL_FILE(wxART_NORMAL_FILE);
1047 static const wxString wxPyART_TICK_MARK(wxART_TICK_MARK);
1048 static const wxString wxPyART_CROSS_MARK(wxART_CROSS_MARK);
1049 static const wxString wxPyART_ERROR(wxART_ERROR);
1050 static const wxString wxPyART_QUESTION(wxART_QUESTION);
1051 static const wxString wxPyART_WARNING(wxART_WARNING);
1052 static const wxString wxPyART_INFORMATION(wxART_INFORMATION);
1053 static const wxString wxPyART_MISSING_IMAGE(wxART_MISSING_IMAGE);
1054 // Python aware wxArtProvider
1055 class wxPyArtProvider : public wxArtProvider {
1056 public:
1057
1058 virtual wxBitmap CreateBitmap(const wxArtID& id,
1059 const wxArtClient& client,
1060 const wxSize& size) {
1061 wxBitmap rval = wxNullBitmap;
1062 bool blocked = wxPyBeginBlockThreads();
1063 if ((wxPyCBH_findCallback(m_myInst, "CreateBitmap"))) {
1064 PyObject* so = wxPyConstructObject((void*)&size, wxT("wxSize"), 0);
1065 PyObject* ro;
1066 wxBitmap* ptr;
1067 PyObject* s1, *s2;
1068 s1 = wx2PyString(id);
1069 s2 = wx2PyString(client);
1070 ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OOO)", s1, s2, so));
1071 Py_DECREF(so);
1072 Py_DECREF(s1);
1073 Py_DECREF(s2);
1074 if (ro) {
1075 if (wxPyConvertSwigPtr(ro, (void**)&ptr, wxT("wxBitmap")))
1076 rval = *ptr;
1077 Py_DECREF(ro);
1078 }
1079 }
1080 wxPyEndBlockThreads(blocked);
1081 return rval;
1082 }
1083
1084 PYPRIVATE;
1085 };
1086
1087 void wxPyArtProvider_Destroy(wxPyArtProvider *self){ delete self; }
1088
1089
1090
1091 static PyObject* __EnumerationHelper(bool flag, wxString& str, long index) {
1092 PyObject* ret = PyTuple_New(3);
1093 if (ret) {
1094 PyTuple_SET_ITEM(ret, 0, PyInt_FromLong(flag));
1095 PyTuple_SET_ITEM(ret, 1, wx2PyString(str));
1096 PyTuple_SET_ITEM(ret, 2, PyInt_FromLong(index));
1097 }
1098 return ret;
1099 }
1100
1101 PyObject *wxConfigBase_GetFirstGroup(wxConfigBase *self){
1102 bool cont;
1103 long index = 0;
1104 wxString value;
1105
1106 cont = self->GetFirstGroup(value, index);
1107 return __EnumerationHelper(cont, value, index);
1108 }
1109 PyObject *wxConfigBase_GetNextGroup(wxConfigBase *self,long index){
1110 bool cont;
1111 wxString value;
1112
1113 cont = self->GetNextGroup(value, index);
1114 return __EnumerationHelper(cont, value, index);
1115 }
1116 PyObject *wxConfigBase_GetFirstEntry(wxConfigBase *self){
1117 bool cont;
1118 long index = 0;
1119 wxString value;
1120
1121 cont = self->GetFirstEntry(value, index);
1122 return __EnumerationHelper(cont, value, index);
1123 }
1124 PyObject *wxConfigBase_GetNextEntry(wxConfigBase *self,long index){
1125 bool cont;
1126 wxString value;
1127
1128 cont = self->GetNextEntry(value, index);
1129 return __EnumerationHelper(cont, value, index);
1130 }
1131 long wxConfigBase_ReadInt(wxConfigBase *self,wxString const &key,long defaultVal){
1132 long rv;
1133 self->Read(key, &rv, defaultVal);
1134 return rv;
1135 }
1136
1137 SWIGSTATICINLINE(double)
1138 SWIG_AsDouble(PyObject *obj)
1139 {
1140 if (PyNumber_Check(obj))
1141 return PyFloat_AsDouble(obj);
1142 else {
1143 PyObject* errmsg = PyString_FromFormat("Expected number, got %s",
1144 obj->ob_type->tp_name);
1145 PyErr_SetObject(PyExc_TypeError, errmsg);
1146 Py_DECREF(errmsg);
1147 return 0;
1148 }
1149 }
1150
1151
1152 SWIGSTATICINLINE(int)
1153 SWIG_CheckDouble(PyObject* obj)
1154 {
1155 SWIG_AsDouble(obj);
1156 if (PyErr_Occurred()) {
1157 PyErr_Clear();
1158 return 0;
1159 } else {
1160 return 1;
1161 }
1162 }
1163
1164 double wxConfigBase_ReadFloat(wxConfigBase *self,wxString const &key,double defaultVal){
1165 double rv;
1166 self->Read(key, &rv, defaultVal);
1167 return rv;
1168 }
1169 bool wxConfigBase_ReadBool(wxConfigBase *self,wxString const &key,bool defaultVal){
1170 bool rv;
1171 self->Read(key, &rv, defaultVal);
1172 return rv;
1173 }
1174
1175 #include <wx/datetime.h>
1176
1177
1178 static const wxString wxPyDateFormatStr(wxT("%c"));
1179 static const wxString wxPyTimeSpanFormatStr(wxT("%H:%M:%S"));
1180
1181 #define LOCAL_TZ wxDateTime::Local
1182
1183
1184 #if UINT_MAX < LONG_MAX
1185 #define SWIG_FromUnsignedInt SWIG_FromLong
1186 #else
1187 #define SWIG_FromUnsignedInt SWIG_FromUnsignedLong
1188 #endif
1189
1190 wxDateTime wxDateTime___add____SWIG_0(wxDateTime *self,wxTimeSpan const &other){ return *self + other; }
1191 wxDateTime wxDateTime___add____SWIG_1(wxDateTime *self,wxDateSpan const &other){ return *self + other; }
1192 wxTimeSpan wxDateTime___sub____SWIG_0(wxDateTime *self,wxDateTime const &other){ return *self - other; }
1193 wxDateTime wxDateTime___sub____SWIG_1(wxDateTime *self,wxTimeSpan const &other){ return *self - other; }
1194 wxDateTime wxDateTime___sub____SWIG_2(wxDateTime *self,wxDateSpan const &other){ return *self - other; }
1195 bool wxDateTime___lt__(wxDateTime *self,wxDateTime const *other){
1196 if (!other || !self->IsValid() || !other->IsValid()) return self < other;
1197 return (*self < *other);
1198 }
1199 bool wxDateTime___le__(wxDateTime *self,wxDateTime const *other){
1200 if (!other || !self->IsValid() || !other->IsValid()) return self <= other;
1201 return (*self <= *other);
1202 }
1203 bool wxDateTime___gt__(wxDateTime *self,wxDateTime const *other){
1204 if (!other || !self->IsValid() || !other->IsValid()) return self > other;
1205 return (*self > *other);
1206 }
1207 bool wxDateTime___ge__(wxDateTime *self,wxDateTime const *other){
1208 if (!other || !self->IsValid() || !other->IsValid()) return self >= other;
1209 return (*self >= *other);
1210 }
1211 bool wxDateTime___eq__(wxDateTime *self,wxDateTime const *other){
1212 if (!other || !self->IsValid() || !other->IsValid()) return self == other;
1213 return (*self == *other);
1214 }
1215 bool wxDateTime___ne__(wxDateTime *self,wxDateTime const *other){
1216 if (!other || !self->IsValid() || !other->IsValid()) return self != other;
1217 return (*self != *other);
1218 }
1219 int wxDateTime_ParseRfc822Date(wxDateTime *self,wxString const &date){
1220 const wxChar* rv;
1221 const wxChar* _date = date;
1222 rv = self->ParseRfc822Date(_date);
1223 if (rv == NULL) return -1;
1224 return rv - _date;
1225 }
1226 int wxDateTime_ParseFormat(wxDateTime *self,wxString const &date,wxString const &format,wxDateTime const &dateDef){
1227 const wxChar* rv;
1228 const wxChar* _date = date;
1229 rv = self->ParseFormat(_date, format, dateDef);
1230 if (rv == NULL) return -1;
1231 return rv - _date;
1232 }
1233 int wxDateTime_ParseDateTime(wxDateTime *self,wxString const &datetime){
1234 const wxChar* rv;
1235 const wxChar* _datetime = datetime;
1236 rv = self->ParseDateTime(_datetime);
1237 if (rv == NULL) return -1;
1238 return rv - _datetime;
1239 }
1240 int wxDateTime_ParseDate(wxDateTime *self,wxString const &date){
1241 const wxChar* rv;
1242 const wxChar* _date = date;
1243 rv = self->ParseDate(_date);
1244 if (rv == NULL) return -1;
1245 return rv - _date;
1246 }
1247 int wxDateTime_ParseTime(wxDateTime *self,wxString const &time){
1248 const wxChar* rv;
1249 const wxChar* _time = time;
1250 rv = self->ParseTime(_time);
1251 if (rv == NULL) return -1;
1252 return rv - _time;
1253 }
1254 wxTimeSpan wxTimeSpan___add__(wxTimeSpan *self,wxTimeSpan const &other){ return *self + other; }
1255 wxTimeSpan wxTimeSpan___sub__(wxTimeSpan *self,wxTimeSpan const &other){ return *self - other; }
1256 wxTimeSpan wxTimeSpan___mul__(wxTimeSpan *self,int n){ return *self * n; }
1257 wxTimeSpan wxTimeSpan___rmul__(wxTimeSpan *self,int n){ return n * *self; }
1258 bool wxTimeSpan___lt__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self < *other) : False; }
1259 bool wxTimeSpan___le__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self <= *other) : False; }
1260 bool wxTimeSpan___gt__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self > *other) : True; }
1261 bool wxTimeSpan___ge__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self >= *other) : True; }
1262 bool wxTimeSpan___eq__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self == *other) : False; }
1263 bool wxTimeSpan___ne__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self != *other) : True; }
1264 wxDateSpan wxDateSpan___add__(wxDateSpan *self,wxDateSpan const &other){ return *self + other; }
1265 wxDateSpan wxDateSpan___sub__(wxDateSpan *self,wxDateSpan const &other){ return *self - other; }
1266 wxDateSpan wxDateSpan___mul__(wxDateSpan *self,int n){ return *self * n; }
1267 wxDateSpan wxDateSpan___rmul__(wxDateSpan *self,int n){ return n * *self; }
1268 bool wxDateSpan___eq__(wxDateSpan *self,wxDateSpan const *other){ return other ? (*self == *other) : False; }
1269 bool wxDateSpan___ne__(wxDateSpan *self,wxDateSpan const *other){ return other ? (*self != *other) : True; }
1270
1271 #include <wx/dataobj.h>
1272
1273 PyObject *wxDataObject_GetAllFormats(wxDataObject *self,wxDataObject::Direction dir){
1274 size_t count = self->GetFormatCount(dir);
1275 wxDataFormat* formats = new wxDataFormat[count];
1276 self->GetAllFormats(formats, dir);
1277
1278 bool blocked = wxPyBeginBlockThreads();
1279 PyObject* list = PyList_New(count);
1280 for (size_t i=0; i<count; i++) {
1281 wxDataFormat* format = new wxDataFormat(formats[i]);
1282 PyObject* obj = wxPyConstructObject((void*)format, wxT("wxDataFormat"), True);
1283 PyList_Append(list, obj);
1284 Py_DECREF(obj);
1285 }
1286 wxPyEndBlockThreads(blocked);
1287 delete [] formats;
1288 return list;
1289 }
1290 PyObject *wxDataObject_GetDataHere(wxDataObject *self,wxDataFormat const &format){
1291 PyObject* rval = NULL;
1292 size_t size = self->GetDataSize(format);
1293 bool blocked = wxPyBeginBlockThreads();
1294 if (size) {
1295 char* buf = new char[size];
1296 if (self->GetDataHere(format, buf))
1297 rval = PyString_FromStringAndSize(buf, size);
1298 delete [] buf;
1299 }
1300 if (! rval) {
1301 rval = Py_None;
1302 Py_INCREF(rval);
1303 }
1304 wxPyEndBlockThreads(blocked);
1305 return rval;
1306 }
1307 bool wxDataObject_SetData(wxDataObject *self,wxDataFormat const &format,PyObject *data){
1308 bool rval;
1309 bool blocked = wxPyBeginBlockThreads();
1310 if (PyString_Check(data)) {
1311 rval = self->SetData(format, PyString_Size(data), PyString_AsString(data));
1312 }
1313 else {
1314 // raise a TypeError if not a string
1315 PyErr_SetString(PyExc_TypeError, "String expected.");
1316 rval = False;
1317 }
1318 wxPyEndBlockThreads(blocked);
1319 return rval;
1320 }
1321 PyObject *wxDataObjectSimple_GetDataHere(wxDataObjectSimple *self){
1322 PyObject* rval = NULL;
1323 size_t size = self->GetDataSize();
1324 bool blocked = wxPyBeginBlockThreads();
1325 if (size) {
1326 char* buf = new char[size];
1327 if (self->GetDataHere(buf))
1328 rval = PyString_FromStringAndSize(buf, size);
1329 delete [] buf;
1330 }
1331 if (! rval) {
1332 rval = Py_None;
1333 Py_INCREF(rval);
1334 }
1335 wxPyEndBlockThreads(blocked);
1336 return rval;
1337 }
1338 bool wxDataObjectSimple_SetData(wxDataObjectSimple *self,PyObject *data){
1339 bool rval;
1340 bool blocked = wxPyBeginBlockThreads();
1341 if (PyString_Check(data)) {
1342 rval = self->SetData(PyString_Size(data), PyString_AsString(data));
1343 }
1344 else {
1345 // raise a TypeError if not a string
1346 PyErr_SetString(PyExc_TypeError, "String expected.");
1347 rval = False;
1348 }
1349 wxPyEndBlockThreads(blocked);
1350 return rval;
1351 }
1352 // Create a new class for wxPython to use
1353 class wxPyDataObjectSimple : public wxDataObjectSimple {
1354 public:
1355 wxPyDataObjectSimple(const wxDataFormat& format = wxFormatInvalid)
1356 : wxDataObjectSimple(format) {}
1357
1358 DEC_PYCALLBACK_SIZET__const(GetDataSize);
1359 bool GetDataHere(void *buf) const;
1360 bool SetData(size_t len, const void *buf) const;
1361 PYPRIVATE;
1362 };
1363
1364 IMP_PYCALLBACK_SIZET__const(wxPyDataObjectSimple, wxDataObjectSimple, GetDataSize);
1365
1366 bool wxPyDataObjectSimple::GetDataHere(void *buf) const {
1367 // We need to get the data for this object and write it to buf. I think
1368 // the best way to do this for wxPython is to have the Python method
1369 // return either a string or None and then act appropriately with the
1370 // C++ version.
1371
1372 bool rval = False;
1373 bool blocked = wxPyBeginBlockThreads();
1374 if (wxPyCBH_findCallback(m_myInst, "GetDataHere")) {
1375 PyObject* ro;
1376 ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()"));
1377 if (ro) {
1378 rval = (ro != Py_None && PyString_Check(ro));
1379 if (rval)
1380 memcpy(buf, PyString_AsString(ro), PyString_Size(ro));
1381 Py_DECREF(ro);
1382 }
1383 }
1384 wxPyEndBlockThreads(blocked);
1385 return rval;
1386 }
1387
1388 bool wxPyDataObjectSimple::SetData(size_t len, const void *buf) const{
1389 // For this one we simply need to make a string from buf and len
1390 // and send it to the Python method.
1391 bool rval = False;
1392 bool blocked = wxPyBeginBlockThreads();
1393 if (wxPyCBH_findCallback(m_myInst, "SetData")) {
1394 PyObject* data = PyString_FromStringAndSize((char*)buf, len);
1395 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(O)", data));
1396 Py_DECREF(data);
1397 }
1398 wxPyEndBlockThreads(blocked);
1399 return rval;
1400 }
1401
1402 // Create a new class for wxPython to use
1403 class wxPyTextDataObject : public wxTextDataObject {
1404 public:
1405 wxPyTextDataObject(const wxString& text = wxPyEmptyString)
1406 : wxTextDataObject(text) {}
1407
1408 DEC_PYCALLBACK_SIZET__const(GetTextLength);
1409 DEC_PYCALLBACK_STRING__const(GetText);
1410 DEC_PYCALLBACK__STRING(SetText);
1411 PYPRIVATE;
1412 };
1413
1414 IMP_PYCALLBACK_SIZET__const(wxPyTextDataObject, wxTextDataObject, GetTextLength);
1415 IMP_PYCALLBACK_STRING__const(wxPyTextDataObject, wxTextDataObject, GetText);
1416 IMP_PYCALLBACK__STRING(wxPyTextDataObject, wxTextDataObject, SetText);
1417
1418
1419 // Create a new class for wxPython to use
1420 class wxPyBitmapDataObject : public wxBitmapDataObject {
1421 public:
1422 wxPyBitmapDataObject(const wxBitmap& bitmap = wxNullBitmap)
1423 : wxBitmapDataObject(bitmap) {}
1424
1425 wxBitmap GetBitmap() const;
1426 void SetBitmap(const wxBitmap& bitmap);
1427 PYPRIVATE;
1428 };
1429
1430 wxBitmap wxPyBitmapDataObject::GetBitmap() const {
1431 wxBitmap* rval = &wxNullBitmap;
1432 bool blocked = wxPyBeginBlockThreads();
1433 if (wxPyCBH_findCallback(m_myInst, "GetBitmap")) {
1434 PyObject* ro;
1435 wxBitmap* ptr;
1436 ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()"));
1437 if (ro) {
1438 if (wxPyConvertSwigPtr(ro, (void **)&ptr, wxT("wxBitmap")))
1439 rval = ptr;
1440 Py_DECREF(ro);
1441 }
1442 }
1443 wxPyEndBlockThreads(blocked);
1444 return *rval;
1445 }
1446
1447 void wxPyBitmapDataObject::SetBitmap(const wxBitmap& bitmap) {
1448 bool blocked = wxPyBeginBlockThreads();
1449 if (wxPyCBH_findCallback(m_myInst, "SetBitmap")) {
1450 PyObject* bo = wxPyConstructObject((void*)&bitmap, wxT("wxBitmap"), False);
1451 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(O)", bo));
1452 Py_DECREF(bo);
1453 }
1454 wxPyEndBlockThreads(blocked);
1455 }
1456
1457 bool wxCustomDataObject_SetData(wxCustomDataObject *self,PyObject *data){
1458 bool rval;
1459 bool blocked = wxPyBeginBlockThreads();
1460 if (PyString_Check(data)) {
1461 rval = self->SetData(PyString_Size(data), PyString_AsString(data));
1462 }
1463 else {
1464 // raise a TypeError if not a string
1465 PyErr_SetString(PyExc_TypeError, "String expected.");
1466 rval = False;
1467 }
1468 wxPyEndBlockThreads(blocked);
1469 return rval;
1470 }
1471 PyObject *wxCustomDataObject_GetData(wxCustomDataObject *self){
1472 PyObject* obj;
1473 bool blocked = wxPyBeginBlockThreads();
1474 obj = PyString_FromStringAndSize((char*)self->GetData(), self->GetSize());
1475 wxPyEndBlockThreads(blocked);
1476 return obj;
1477 }
1478
1479 #include <wx/metafile.h>
1480
1481
1482 IMP_PYCALLBACK_BOOL_DR(wxPyDropSource, wxDropSource, GiveFeedback);
1483
1484
1485 IMP_PYCALLBACK__(wxPyDropTarget, wxDropTarget, OnLeave);
1486 IMP_PYCALLBACK_DR_2WXCDR(wxPyDropTarget, wxDropTarget, OnEnter);
1487 IMP_PYCALLBACK_DR_2WXCDR(wxPyDropTarget, wxDropTarget, OnDragOver);
1488 IMP_PYCALLBACK_DR_2WXCDR_pure(wxPyDropTarget, wxDropTarget, OnData);
1489 IMP_PYCALLBACK_BOOL_INTINT(wxPyDropTarget, wxDropTarget, OnDrop);
1490
1491
1492 class wxPyTextDropTarget : public wxTextDropTarget {
1493 public:
1494 wxPyTextDropTarget() {}
1495
1496 DEC_PYCALLBACK_BOOL_INTINTSTR_pure(OnDropText);
1497
1498 DEC_PYCALLBACK__(OnLeave);
1499 DEC_PYCALLBACK_DR_2WXCDR(OnEnter);
1500 DEC_PYCALLBACK_DR_2WXCDR(OnDragOver);
1501 DEC_PYCALLBACK_DR_2WXCDR(OnData);
1502 DEC_PYCALLBACK_BOOL_INTINT(OnDrop);
1503
1504 PYPRIVATE;
1505 };
1506
1507 IMP_PYCALLBACK_BOOL_INTINTSTR_pure(wxPyTextDropTarget, wxTextDropTarget, OnDropText);
1508 IMP_PYCALLBACK__(wxPyTextDropTarget, wxTextDropTarget, OnLeave);
1509 IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnEnter);
1510 IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnDragOver);
1511 IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnData);
1512 IMP_PYCALLBACK_BOOL_INTINT(wxPyTextDropTarget, wxTextDropTarget, OnDrop);
1513
1514
1515
1516 class wxPyFileDropTarget : public wxFileDropTarget {
1517 public:
1518 wxPyFileDropTarget() {}
1519
1520 virtual bool OnDropFiles(wxCoord x, wxCoord y, const wxArrayString& filenames);
1521
1522 DEC_PYCALLBACK__(OnLeave);
1523 DEC_PYCALLBACK_DR_2WXCDR(OnEnter);
1524 DEC_PYCALLBACK_DR_2WXCDR(OnDragOver);
1525 DEC_PYCALLBACK_DR_2WXCDR(OnData);
1526 DEC_PYCALLBACK_BOOL_INTINT(OnDrop);
1527
1528 PYPRIVATE;
1529 };
1530
1531 bool wxPyFileDropTarget::OnDropFiles(wxCoord x, wxCoord y,
1532 const wxArrayString& filenames) {
1533 bool rval = False;
1534 bool blocked = wxPyBeginBlockThreads();
1535 if (wxPyCBH_findCallback(m_myInst, "OnDropFiles")) {
1536 PyObject* list = wxArrayString2PyList_helper(filenames);
1537 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iiO)",x,y,list));
1538 Py_DECREF(list);
1539 }
1540 wxPyEndBlockThreads(blocked);
1541 return rval;
1542 }
1543
1544
1545
1546 IMP_PYCALLBACK__(wxPyFileDropTarget, wxFileDropTarget, OnLeave);
1547 IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnEnter);
1548 IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnDragOver);
1549 IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnData);
1550 IMP_PYCALLBACK_BOOL_INTINT(wxPyFileDropTarget, wxFileDropTarget, OnDrop);
1551
1552
1553
1554
1555 bool wxClipboardLocker___nonzero__(wxClipboardLocker *self){ return !!(*self); }
1556
1557 #include <wx/display.h>
1558
1559 bool wxVideoMode___eq__(wxVideoMode *self,wxVideoMode const *other){ return other ? (*self == *other) : False; }
1560 bool wxVideoMode___ne__(wxVideoMode *self,wxVideoMode const *other){ return other ? (*self != *other) : True; }
1561
1562 // dummy version of wxDisplay for when it is not enabled in the wxWidgets build
1563 #if !wxUSE_DISPLAY
1564 #include <wx/dynarray.h>
1565 #include <wx/vidmode.h>
1566
1567 WX_DECLARE_OBJARRAY(wxVideoMode, wxArrayVideoModes);
1568 #include "wx/arrimpl.cpp"
1569 WX_DEFINE_OBJARRAY(wxArrayVideoModes);
1570 const wxVideoMode wxDefaultVideoMode;
1571
1572 class wxDisplay
1573 {
1574 public:
1575 wxDisplay(size_t index = 0) { wxPyRaiseNotImplemented(); }
1576 ~wxDisplay() {}
1577
1578 static size_t GetCount()
1579 { wxPyRaiseNotImplemented(); return 0; }
1580
1581 static int GetFromPoint(const wxPoint& pt)
1582 { wxPyRaiseNotImplemented(); return wxNOT_FOUND; }
1583 static int GetFromWindow(wxWindow *window)
1584 { wxPyRaiseNotImplemented(); return wxNOT_FOUND; }
1585
1586 virtual bool IsOk() const { return false; }
1587 virtual wxRect GetGeometry() const { wxRect r; return r; }
1588 virtual wxString GetName() const { return wxEmptyString; }
1589 bool IsPrimary() const { return false; }
1590
1591 wxArrayVideoModes GetModes(const wxVideoMode& mode = wxDefaultVideoMode)
1592 { wxArrayVideoModes a; return a; }
1593
1594 virtual wxVideoMode GetCurrentMode() const
1595 { return wxDefaultVideoMode; }
1596
1597 virtual bool ChangeMode(const wxVideoMode& mode = wxDefaultVideoMode)
1598 { return false; }
1599
1600 void ResetMode() {}
1601 };
1602 #endif
1603
1604 PyObject *wxDisplay_GetModes(wxDisplay *self,wxVideoMode const &mode){
1605 PyObject* pyList = NULL;
1606 wxArrayVideoModes arr = self->GetModes(mode);
1607 bool blocked = wxPyBeginBlockThreads();
1608 pyList = PyList_New(0);
1609 for (int i=0; i < arr.GetCount(); i++) {
1610 wxVideoMode* m = new wxVideoMode(arr.Item(i));
1611 PyObject* pyObj = wxPyConstructObject(m, wxT("wxVideoMode"), true);
1612 PyList_Append(pyList, pyObj);
1613 Py_DECREF(pyObj);
1614 }
1615 wxPyEndBlockThreads(blocked);
1616 return pyList;
1617 }
1618 #ifdef __cplusplus
1619 extern "C" {
1620 #endif
1621 static PyObject *_wrap_SystemSettings_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1622 PyObject *resultobj;
1623 int arg1 ;
1624 wxColour result;
1625 PyObject * obj0 = 0 ;
1626 char *kwnames[] = {
1627 (char *) "index", NULL
1628 };
1629
1630 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_GetColour",kwnames,&obj0)) goto fail;
1631 arg1 = (wxSystemColour) SWIG_AsInt(obj0);
1632 if (PyErr_Occurred()) SWIG_fail;
1633 {
1634 if (!wxPyCheckForApp()) SWIG_fail;
1635 PyThreadState* __tstate = wxPyBeginAllowThreads();
1636 result = wxSystemSettings::GetColour((wxSystemColour )arg1);
1637
1638 wxPyEndAllowThreads(__tstate);
1639 if (PyErr_Occurred()) SWIG_fail;
1640 }
1641 {
1642 wxColour * resultptr;
1643 resultptr = new wxColour((wxColour &) result);
1644 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
1645 }
1646 return resultobj;
1647 fail:
1648 return NULL;
1649 }
1650
1651
1652 static PyObject *_wrap_SystemSettings_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
1653 PyObject *resultobj;
1654 int arg1 ;
1655 wxFont result;
1656 PyObject * obj0 = 0 ;
1657 char *kwnames[] = {
1658 (char *) "index", NULL
1659 };
1660
1661 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_GetFont",kwnames,&obj0)) goto fail;
1662 arg1 = (wxSystemFont) SWIG_AsInt(obj0);
1663 if (PyErr_Occurred()) SWIG_fail;
1664 {
1665 if (!wxPyCheckForApp()) SWIG_fail;
1666 PyThreadState* __tstate = wxPyBeginAllowThreads();
1667 result = wxSystemSettings::GetFont((wxSystemFont )arg1);
1668
1669 wxPyEndAllowThreads(__tstate);
1670 if (PyErr_Occurred()) SWIG_fail;
1671 }
1672 {
1673 wxFont * resultptr;
1674 resultptr = new wxFont((wxFont &) result);
1675 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1);
1676 }
1677 return resultobj;
1678 fail:
1679 return NULL;
1680 }
1681
1682
1683 static PyObject *_wrap_SystemSettings_GetMetric(PyObject *self, PyObject *args, PyObject *kwargs) {
1684 PyObject *resultobj;
1685 int arg1 ;
1686 int result;
1687 PyObject * obj0 = 0 ;
1688 char *kwnames[] = {
1689 (char *) "index", NULL
1690 };
1691
1692 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_GetMetric",kwnames,&obj0)) goto fail;
1693 arg1 = (wxSystemMetric) SWIG_AsInt(obj0);
1694 if (PyErr_Occurred()) SWIG_fail;
1695 {
1696 if (!wxPyCheckForApp()) SWIG_fail;
1697 PyThreadState* __tstate = wxPyBeginAllowThreads();
1698 result = (int)wxSystemSettings::GetMetric((wxSystemMetric )arg1);
1699
1700 wxPyEndAllowThreads(__tstate);
1701 if (PyErr_Occurred()) SWIG_fail;
1702 }
1703 resultobj = SWIG_FromInt((int)result);
1704 return resultobj;
1705 fail:
1706 return NULL;
1707 }
1708
1709
1710 static PyObject *_wrap_SystemSettings_HasFeature(PyObject *self, PyObject *args, PyObject *kwargs) {
1711 PyObject *resultobj;
1712 int arg1 ;
1713 bool result;
1714 PyObject * obj0 = 0 ;
1715 char *kwnames[] = {
1716 (char *) "index", NULL
1717 };
1718
1719 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_HasFeature",kwnames,&obj0)) goto fail;
1720 arg1 = (wxSystemFeature) SWIG_AsInt(obj0);
1721 if (PyErr_Occurred()) SWIG_fail;
1722 {
1723 if (!wxPyCheckForApp()) SWIG_fail;
1724 PyThreadState* __tstate = wxPyBeginAllowThreads();
1725 result = (bool)wxSystemSettings::HasFeature((wxSystemFeature )arg1);
1726
1727 wxPyEndAllowThreads(__tstate);
1728 if (PyErr_Occurred()) SWIG_fail;
1729 }
1730 {
1731 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1732 }
1733 return resultobj;
1734 fail:
1735 return NULL;
1736 }
1737
1738
1739 static PyObject *_wrap_SystemSettings_GetScreenType(PyObject *self, PyObject *args, PyObject *kwargs) {
1740 PyObject *resultobj;
1741 int result;
1742 char *kwnames[] = {
1743 NULL
1744 };
1745
1746 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":SystemSettings_GetScreenType",kwnames)) goto fail;
1747 {
1748 if (!wxPyCheckForApp()) SWIG_fail;
1749 PyThreadState* __tstate = wxPyBeginAllowThreads();
1750 result = (int)wxSystemSettings::GetScreenType();
1751
1752 wxPyEndAllowThreads(__tstate);
1753 if (PyErr_Occurred()) SWIG_fail;
1754 }
1755 resultobj = SWIG_FromInt((int)result);
1756 return resultobj;
1757 fail:
1758 return NULL;
1759 }
1760
1761
1762 static PyObject *_wrap_SystemSettings_SetScreenType(PyObject *self, PyObject *args, PyObject *kwargs) {
1763 PyObject *resultobj;
1764 int arg1 ;
1765 PyObject * obj0 = 0 ;
1766 char *kwnames[] = {
1767 (char *) "screen", NULL
1768 };
1769
1770 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_SetScreenType",kwnames,&obj0)) goto fail;
1771 arg1 = (wxSystemScreenType) SWIG_AsInt(obj0);
1772 if (PyErr_Occurred()) SWIG_fail;
1773 {
1774 if (!wxPyCheckForApp()) SWIG_fail;
1775 PyThreadState* __tstate = wxPyBeginAllowThreads();
1776 wxSystemSettings::SetScreenType((wxSystemScreenType )arg1);
1777
1778 wxPyEndAllowThreads(__tstate);
1779 if (PyErr_Occurred()) SWIG_fail;
1780 }
1781 Py_INCREF(Py_None); resultobj = Py_None;
1782 return resultobj;
1783 fail:
1784 return NULL;
1785 }
1786
1787
1788 static PyObject * SystemSettings_swigregister(PyObject *self, PyObject *args) {
1789 PyObject *obj;
1790 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1791 SWIG_TypeClientData(SWIGTYPE_p_wxSystemSettings, obj);
1792 Py_INCREF(obj);
1793 return Py_BuildValue((char *)"");
1794 }
1795 static PyObject *_wrap_new_SystemOptions(PyObject *self, PyObject *args, PyObject *kwargs) {
1796 PyObject *resultobj;
1797 wxSystemOptions *result;
1798 char *kwnames[] = {
1799 NULL
1800 };
1801
1802 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SystemOptions",kwnames)) goto fail;
1803 {
1804 PyThreadState* __tstate = wxPyBeginAllowThreads();
1805 result = (wxSystemOptions *)new wxSystemOptions();
1806
1807 wxPyEndAllowThreads(__tstate);
1808 if (PyErr_Occurred()) SWIG_fail;
1809 }
1810 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSystemOptions, 1);
1811 return resultobj;
1812 fail:
1813 return NULL;
1814 }
1815
1816
1817 static PyObject *_wrap_SystemOptions_SetOption(PyObject *self, PyObject *args, PyObject *kwargs) {
1818 PyObject *resultobj;
1819 wxString *arg1 = 0 ;
1820 wxString *arg2 = 0 ;
1821 bool temp1 = False ;
1822 bool temp2 = False ;
1823 PyObject * obj0 = 0 ;
1824 PyObject * obj1 = 0 ;
1825 char *kwnames[] = {
1826 (char *) "name",(char *) "value", NULL
1827 };
1828
1829 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SystemOptions_SetOption",kwnames,&obj0,&obj1)) goto fail;
1830 {
1831 arg1 = wxString_in_helper(obj0);
1832 if (arg1 == NULL) SWIG_fail;
1833 temp1 = True;
1834 }
1835 {
1836 arg2 = wxString_in_helper(obj1);
1837 if (arg2 == NULL) SWIG_fail;
1838 temp2 = True;
1839 }
1840 {
1841 PyThreadState* __tstate = wxPyBeginAllowThreads();
1842 wxSystemOptions::SetOption((wxString const &)*arg1,(wxString const &)*arg2);
1843
1844 wxPyEndAllowThreads(__tstate);
1845 if (PyErr_Occurred()) SWIG_fail;
1846 }
1847 Py_INCREF(Py_None); resultobj = Py_None;
1848 {
1849 if (temp1)
1850 delete arg1;
1851 }
1852 {
1853 if (temp2)
1854 delete arg2;
1855 }
1856 return resultobj;
1857 fail:
1858 {
1859 if (temp1)
1860 delete arg1;
1861 }
1862 {
1863 if (temp2)
1864 delete arg2;
1865 }
1866 return NULL;
1867 }
1868
1869
1870 static PyObject *_wrap_SystemOptions_SetOptionInt(PyObject *self, PyObject *args, PyObject *kwargs) {
1871 PyObject *resultobj;
1872 wxString *arg1 = 0 ;
1873 int arg2 ;
1874 bool temp1 = False ;
1875 PyObject * obj0 = 0 ;
1876 PyObject * obj1 = 0 ;
1877 char *kwnames[] = {
1878 (char *) "name",(char *) "value", NULL
1879 };
1880
1881 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SystemOptions_SetOptionInt",kwnames,&obj0,&obj1)) goto fail;
1882 {
1883 arg1 = wxString_in_helper(obj0);
1884 if (arg1 == NULL) SWIG_fail;
1885 temp1 = True;
1886 }
1887 arg2 = (int) SWIG_AsInt(obj1);
1888 if (PyErr_Occurred()) SWIG_fail;
1889 {
1890 PyThreadState* __tstate = wxPyBeginAllowThreads();
1891 wxSystemOptions::SetOption((wxString const &)*arg1,arg2);
1892
1893 wxPyEndAllowThreads(__tstate);
1894 if (PyErr_Occurred()) SWIG_fail;
1895 }
1896 Py_INCREF(Py_None); resultobj = Py_None;
1897 {
1898 if (temp1)
1899 delete arg1;
1900 }
1901 return resultobj;
1902 fail:
1903 {
1904 if (temp1)
1905 delete arg1;
1906 }
1907 return NULL;
1908 }
1909
1910
1911 static PyObject *_wrap_SystemOptions_GetOption(PyObject *self, PyObject *args, PyObject *kwargs) {
1912 PyObject *resultobj;
1913 wxString *arg1 = 0 ;
1914 wxString result;
1915 bool temp1 = False ;
1916 PyObject * obj0 = 0 ;
1917 char *kwnames[] = {
1918 (char *) "name", NULL
1919 };
1920
1921 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_GetOption",kwnames,&obj0)) goto fail;
1922 {
1923 arg1 = wxString_in_helper(obj0);
1924 if (arg1 == NULL) SWIG_fail;
1925 temp1 = True;
1926 }
1927 {
1928 PyThreadState* __tstate = wxPyBeginAllowThreads();
1929 result = wxSystemOptions::GetOption((wxString const &)*arg1);
1930
1931 wxPyEndAllowThreads(__tstate);
1932 if (PyErr_Occurred()) SWIG_fail;
1933 }
1934 {
1935 #if wxUSE_UNICODE
1936 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
1937 #else
1938 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
1939 #endif
1940 }
1941 {
1942 if (temp1)
1943 delete arg1;
1944 }
1945 return resultobj;
1946 fail:
1947 {
1948 if (temp1)
1949 delete arg1;
1950 }
1951 return NULL;
1952 }
1953
1954
1955 static PyObject *_wrap_SystemOptions_GetOptionInt(PyObject *self, PyObject *args, PyObject *kwargs) {
1956 PyObject *resultobj;
1957 wxString *arg1 = 0 ;
1958 int result;
1959 bool temp1 = False ;
1960 PyObject * obj0 = 0 ;
1961 char *kwnames[] = {
1962 (char *) "name", NULL
1963 };
1964
1965 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_GetOptionInt",kwnames,&obj0)) goto fail;
1966 {
1967 arg1 = wxString_in_helper(obj0);
1968 if (arg1 == NULL) SWIG_fail;
1969 temp1 = True;
1970 }
1971 {
1972 PyThreadState* __tstate = wxPyBeginAllowThreads();
1973 result = (int)wxSystemOptions::GetOptionInt((wxString const &)*arg1);
1974
1975 wxPyEndAllowThreads(__tstate);
1976 if (PyErr_Occurred()) SWIG_fail;
1977 }
1978 resultobj = SWIG_FromInt((int)result);
1979 {
1980 if (temp1)
1981 delete arg1;
1982 }
1983 return resultobj;
1984 fail:
1985 {
1986 if (temp1)
1987 delete arg1;
1988 }
1989 return NULL;
1990 }
1991
1992
1993 static PyObject *_wrap_SystemOptions_HasOption(PyObject *self, PyObject *args, PyObject *kwargs) {
1994 PyObject *resultobj;
1995 wxString *arg1 = 0 ;
1996 bool result;
1997 bool temp1 = False ;
1998 PyObject * obj0 = 0 ;
1999 char *kwnames[] = {
2000 (char *) "name", NULL
2001 };
2002
2003 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_HasOption",kwnames,&obj0)) goto fail;
2004 {
2005 arg1 = wxString_in_helper(obj0);
2006 if (arg1 == NULL) SWIG_fail;
2007 temp1 = True;
2008 }
2009 {
2010 PyThreadState* __tstate = wxPyBeginAllowThreads();
2011 result = (bool)wxSystemOptions::HasOption((wxString const &)*arg1);
2012
2013 wxPyEndAllowThreads(__tstate);
2014 if (PyErr_Occurred()) SWIG_fail;
2015 }
2016 {
2017 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2018 }
2019 {
2020 if (temp1)
2021 delete arg1;
2022 }
2023 return resultobj;
2024 fail:
2025 {
2026 if (temp1)
2027 delete arg1;
2028 }
2029 return NULL;
2030 }
2031
2032
2033 static PyObject * SystemOptions_swigregister(PyObject *self, PyObject *args) {
2034 PyObject *obj;
2035 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2036 SWIG_TypeClientData(SWIGTYPE_p_wxSystemOptions, obj);
2037 Py_INCREF(obj);
2038 return Py_BuildValue((char *)"");
2039 }
2040 static int _wrap_FileSelectorPromptStr_set(PyObject *_val) {
2041 PyErr_SetString(PyExc_TypeError,"Variable FileSelectorPromptStr is read-only.");
2042 return 1;
2043 }
2044
2045
2046 static PyObject *_wrap_FileSelectorPromptStr_get() {
2047 PyObject *pyobj;
2048
2049 {
2050 #if wxUSE_UNICODE
2051 pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len());
2052 #else
2053 pyobj = PyString_FromStringAndSize((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len());
2054 #endif
2055 }
2056 return pyobj;
2057 }
2058
2059
2060 static int _wrap_FileSelectorDefaultWildcardStr_set(PyObject *_val) {
2061 PyErr_SetString(PyExc_TypeError,"Variable FileSelectorDefaultWildcardStr is read-only.");
2062 return 1;
2063 }
2064
2065
2066 static PyObject *_wrap_FileSelectorDefaultWildcardStr_get() {
2067 PyObject *pyobj;
2068
2069 {
2070 #if wxUSE_UNICODE
2071 pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len());
2072 #else
2073 pyobj = PyString_FromStringAndSize((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len());
2074 #endif
2075 }
2076 return pyobj;
2077 }
2078
2079
2080 static int _wrap_DirSelectorPromptStr_set(PyObject *_val) {
2081 PyErr_SetString(PyExc_TypeError,"Variable DirSelectorPromptStr is read-only.");
2082 return 1;
2083 }
2084
2085
2086 static PyObject *_wrap_DirSelectorPromptStr_get() {
2087 PyObject *pyobj;
2088
2089 {
2090 #if wxUSE_UNICODE
2091 pyobj = PyUnicode_FromWideChar((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len());
2092 #else
2093 pyobj = PyString_FromStringAndSize((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len());
2094 #endif
2095 }
2096 return pyobj;
2097 }
2098
2099
2100 static PyObject *_wrap_NewId(PyObject *self, PyObject *args, PyObject *kwargs) {
2101 PyObject *resultobj;
2102 long result;
2103 char *kwnames[] = {
2104 NULL
2105 };
2106
2107 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":NewId",kwnames)) goto fail;
2108 {
2109 PyThreadState* __tstate = wxPyBeginAllowThreads();
2110 result = (long)wxNewId();
2111
2112 wxPyEndAllowThreads(__tstate);
2113 if (PyErr_Occurred()) SWIG_fail;
2114 }
2115 resultobj = SWIG_FromLong((long)result);
2116 return resultobj;
2117 fail:
2118 return NULL;
2119 }
2120
2121
2122 static PyObject *_wrap_RegisterId(PyObject *self, PyObject *args, PyObject *kwargs) {
2123 PyObject *resultobj;
2124 long arg1 ;
2125 PyObject * obj0 = 0 ;
2126 char *kwnames[] = {
2127 (char *) "id", NULL
2128 };
2129
2130 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegisterId",kwnames,&obj0)) goto fail;
2131 arg1 = (long) SWIG_AsLong(obj0);
2132 if (PyErr_Occurred()) SWIG_fail;
2133 {
2134 PyThreadState* __tstate = wxPyBeginAllowThreads();
2135 wxRegisterId(arg1);
2136
2137 wxPyEndAllowThreads(__tstate);
2138 if (PyErr_Occurred()) SWIG_fail;
2139 }
2140 Py_INCREF(Py_None); resultobj = Py_None;
2141 return resultobj;
2142 fail:
2143 return NULL;
2144 }
2145
2146
2147 static PyObject *_wrap_GetCurrentId(PyObject *self, PyObject *args, PyObject *kwargs) {
2148 PyObject *resultobj;
2149 long result;
2150 char *kwnames[] = {
2151 NULL
2152 };
2153
2154 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetCurrentId",kwnames)) goto fail;
2155 {
2156 PyThreadState* __tstate = wxPyBeginAllowThreads();
2157 result = (long)wxGetCurrentId();
2158
2159 wxPyEndAllowThreads(__tstate);
2160 if (PyErr_Occurred()) SWIG_fail;
2161 }
2162 resultobj = SWIG_FromLong((long)result);
2163 return resultobj;
2164 fail:
2165 return NULL;
2166 }
2167
2168
2169 static PyObject *_wrap_Bell(PyObject *self, PyObject *args, PyObject *kwargs) {
2170 PyObject *resultobj;
2171 char *kwnames[] = {
2172 NULL
2173 };
2174
2175 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Bell",kwnames)) goto fail;
2176 {
2177 if (!wxPyCheckForApp()) SWIG_fail;
2178 PyThreadState* __tstate = wxPyBeginAllowThreads();
2179 wxBell();
2180
2181 wxPyEndAllowThreads(__tstate);
2182 if (PyErr_Occurred()) SWIG_fail;
2183 }
2184 Py_INCREF(Py_None); resultobj = Py_None;
2185 return resultobj;
2186 fail:
2187 return NULL;
2188 }
2189
2190
2191 static PyObject *_wrap_EndBusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
2192 PyObject *resultobj;
2193 char *kwnames[] = {
2194 NULL
2195 };
2196
2197 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":EndBusyCursor",kwnames)) goto fail;
2198 {
2199 if (!wxPyCheckForApp()) SWIG_fail;
2200 PyThreadState* __tstate = wxPyBeginAllowThreads();
2201 wxEndBusyCursor();
2202
2203 wxPyEndAllowThreads(__tstate);
2204 if (PyErr_Occurred()) SWIG_fail;
2205 }
2206 Py_INCREF(Py_None); resultobj = Py_None;
2207 return resultobj;
2208 fail:
2209 return NULL;
2210 }
2211
2212
2213 static PyObject *_wrap_GetElapsedTime(PyObject *self, PyObject *args, PyObject *kwargs) {
2214 PyObject *resultobj;
2215 bool arg1 = (bool) True ;
2216 long result;
2217 PyObject * obj0 = 0 ;
2218 char *kwnames[] = {
2219 (char *) "resetTimer", NULL
2220 };
2221
2222 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:GetElapsedTime",kwnames,&obj0)) goto fail;
2223 if (obj0) {
2224 arg1 = (bool) SWIG_AsBool(obj0);
2225 if (PyErr_Occurred()) SWIG_fail;
2226 }
2227 {
2228 PyThreadState* __tstate = wxPyBeginAllowThreads();
2229 result = (long)wxGetElapsedTime(arg1);
2230
2231 wxPyEndAllowThreads(__tstate);
2232 if (PyErr_Occurred()) SWIG_fail;
2233 }
2234 resultobj = SWIG_FromLong((long)result);
2235 return resultobj;
2236 fail:
2237 return NULL;
2238 }
2239
2240
2241 static PyObject *_wrap_GetMousePosition(PyObject *self, PyObject *args, PyObject *kwargs) {
2242 PyObject *resultobj;
2243 int *arg1 = (int *) 0 ;
2244 int *arg2 = (int *) 0 ;
2245 int temp1 ;
2246 int temp2 ;
2247 char *kwnames[] = {
2248 NULL
2249 };
2250
2251 arg1 = &temp1;
2252 arg2 = &temp2;
2253 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetMousePosition",kwnames)) goto fail;
2254 {
2255 if (!wxPyCheckForApp()) SWIG_fail;
2256 PyThreadState* __tstate = wxPyBeginAllowThreads();
2257 wxGetMousePosition(arg1,arg2);
2258
2259 wxPyEndAllowThreads(__tstate);
2260 if (PyErr_Occurred()) SWIG_fail;
2261 }
2262 Py_INCREF(Py_None); resultobj = Py_None;
2263 {
2264 PyObject *o = PyInt_FromLong((long) (*arg1));
2265 resultobj = t_output_helper(resultobj,o);
2266 }
2267 {
2268 PyObject *o = PyInt_FromLong((long) (*arg2));
2269 resultobj = t_output_helper(resultobj,o);
2270 }
2271 return resultobj;
2272 fail:
2273 return NULL;
2274 }
2275
2276
2277 static PyObject *_wrap_IsBusy(PyObject *self, PyObject *args, PyObject *kwargs) {
2278 PyObject *resultobj;
2279 bool result;
2280 char *kwnames[] = {
2281 NULL
2282 };
2283
2284 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":IsBusy",kwnames)) goto fail;
2285 {
2286 PyThreadState* __tstate = wxPyBeginAllowThreads();
2287 result = (bool)wxIsBusy();
2288
2289 wxPyEndAllowThreads(__tstate);
2290 if (PyErr_Occurred()) SWIG_fail;
2291 }
2292 {
2293 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2294 }
2295 return resultobj;
2296 fail:
2297 return NULL;
2298 }
2299
2300
2301 static PyObject *_wrap_Now(PyObject *self, PyObject *args, PyObject *kwargs) {
2302 PyObject *resultobj;
2303 wxString result;
2304 char *kwnames[] = {
2305 NULL
2306 };
2307
2308 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Now",kwnames)) goto fail;
2309 {
2310 PyThreadState* __tstate = wxPyBeginAllowThreads();
2311 result = wxNow();
2312
2313 wxPyEndAllowThreads(__tstate);
2314 if (PyErr_Occurred()) SWIG_fail;
2315 }
2316 {
2317 #if wxUSE_UNICODE
2318 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2319 #else
2320 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2321 #endif
2322 }
2323 return resultobj;
2324 fail:
2325 return NULL;
2326 }
2327
2328
2329 static PyObject *_wrap_Shell(PyObject *self, PyObject *args, PyObject *kwargs) {
2330 PyObject *resultobj;
2331 wxString const &arg1_defvalue = wxPyEmptyString ;
2332 wxString *arg1 = (wxString *) &arg1_defvalue ;
2333 bool result;
2334 bool temp1 = False ;
2335 PyObject * obj0 = 0 ;
2336 char *kwnames[] = {
2337 (char *) "command", NULL
2338 };
2339
2340 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Shell",kwnames,&obj0)) goto fail;
2341 if (obj0) {
2342 {
2343 arg1 = wxString_in_helper(obj0);
2344 if (arg1 == NULL) SWIG_fail;
2345 temp1 = True;
2346 }
2347 }
2348 {
2349 PyThreadState* __tstate = wxPyBeginAllowThreads();
2350 result = (bool)wxShell((wxString const &)*arg1);
2351
2352 wxPyEndAllowThreads(__tstate);
2353 if (PyErr_Occurred()) SWIG_fail;
2354 }
2355 {
2356 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2357 }
2358 {
2359 if (temp1)
2360 delete arg1;
2361 }
2362 return resultobj;
2363 fail:
2364 {
2365 if (temp1)
2366 delete arg1;
2367 }
2368 return NULL;
2369 }
2370
2371
2372 static PyObject *_wrap_StartTimer(PyObject *self, PyObject *args, PyObject *kwargs) {
2373 PyObject *resultobj;
2374 char *kwnames[] = {
2375 NULL
2376 };
2377
2378 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":StartTimer",kwnames)) goto fail;
2379 {
2380 PyThreadState* __tstate = wxPyBeginAllowThreads();
2381 wxStartTimer();
2382
2383 wxPyEndAllowThreads(__tstate);
2384 if (PyErr_Occurred()) SWIG_fail;
2385 }
2386 Py_INCREF(Py_None); resultobj = Py_None;
2387 return resultobj;
2388 fail:
2389 return NULL;
2390 }
2391
2392
2393 static PyObject *_wrap_GetOsVersion(PyObject *self, PyObject *args, PyObject *kwargs) {
2394 PyObject *resultobj;
2395 int *arg1 = (int *) 0 ;
2396 int *arg2 = (int *) 0 ;
2397 int result;
2398 int temp1 ;
2399 int temp2 ;
2400 char *kwnames[] = {
2401 NULL
2402 };
2403
2404 arg1 = &temp1;
2405 arg2 = &temp2;
2406 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetOsVersion",kwnames)) goto fail;
2407 {
2408 PyThreadState* __tstate = wxPyBeginAllowThreads();
2409 result = (int)wxGetOsVersion(arg1,arg2);
2410
2411 wxPyEndAllowThreads(__tstate);
2412 if (PyErr_Occurred()) SWIG_fail;
2413 }
2414 resultobj = SWIG_FromInt((int)result);
2415 {
2416 PyObject *o = PyInt_FromLong((long) (*arg1));
2417 resultobj = t_output_helper(resultobj,o);
2418 }
2419 {
2420 PyObject *o = PyInt_FromLong((long) (*arg2));
2421 resultobj = t_output_helper(resultobj,o);
2422 }
2423 return resultobj;
2424 fail:
2425 return NULL;
2426 }
2427
2428
2429 static PyObject *_wrap_GetOsDescription(PyObject *self, PyObject *args, PyObject *kwargs) {
2430 PyObject *resultobj;
2431 wxString result;
2432 char *kwnames[] = {
2433 NULL
2434 };
2435
2436 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetOsDescription",kwnames)) goto fail;
2437 {
2438 PyThreadState* __tstate = wxPyBeginAllowThreads();
2439 result = wxGetOsDescription();
2440
2441 wxPyEndAllowThreads(__tstate);
2442 if (PyErr_Occurred()) SWIG_fail;
2443 }
2444 {
2445 #if wxUSE_UNICODE
2446 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2447 #else
2448 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2449 #endif
2450 }
2451 return resultobj;
2452 fail:
2453 return NULL;
2454 }
2455
2456
2457 static PyObject *_wrap_GetFreeMemory(PyObject *self, PyObject *args, PyObject *kwargs) {
2458 PyObject *resultobj;
2459 long result;
2460 char *kwnames[] = {
2461 NULL
2462 };
2463
2464 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetFreeMemory",kwnames)) goto fail;
2465 {
2466 PyThreadState* __tstate = wxPyBeginAllowThreads();
2467 result = (long)wxGetFreeMemory();
2468
2469 wxPyEndAllowThreads(__tstate);
2470 if (PyErr_Occurred()) SWIG_fail;
2471 }
2472 resultobj = SWIG_FromLong((long)result);
2473 return resultobj;
2474 fail:
2475 return NULL;
2476 }
2477
2478
2479 static PyObject *_wrap_Shutdown(PyObject *self, PyObject *args, PyObject *kwargs) {
2480 PyObject *resultobj;
2481 int arg1 ;
2482 bool result;
2483 PyObject * obj0 = 0 ;
2484 char *kwnames[] = {
2485 (char *) "wFlags", NULL
2486 };
2487
2488 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Shutdown",kwnames,&obj0)) goto fail;
2489 arg1 = (wxShutdownFlags) SWIG_AsInt(obj0);
2490 if (PyErr_Occurred()) SWIG_fail;
2491 {
2492 if (!wxPyCheckForApp()) SWIG_fail;
2493 PyThreadState* __tstate = wxPyBeginAllowThreads();
2494 result = (bool)wxShutdown((wxShutdownFlags )arg1);
2495
2496 wxPyEndAllowThreads(__tstate);
2497 if (PyErr_Occurred()) SWIG_fail;
2498 }
2499 {
2500 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2501 }
2502 return resultobj;
2503 fail:
2504 return NULL;
2505 }
2506
2507
2508 static PyObject *_wrap_Sleep(PyObject *self, PyObject *args, PyObject *kwargs) {
2509 PyObject *resultobj;
2510 int arg1 ;
2511 PyObject * obj0 = 0 ;
2512 char *kwnames[] = {
2513 (char *) "secs", NULL
2514 };
2515
2516 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sleep",kwnames,&obj0)) goto fail;
2517 arg1 = (int) SWIG_AsInt(obj0);
2518 if (PyErr_Occurred()) SWIG_fail;
2519 {
2520 PyThreadState* __tstate = wxPyBeginAllowThreads();
2521 wxSleep(arg1);
2522
2523 wxPyEndAllowThreads(__tstate);
2524 if (PyErr_Occurred()) SWIG_fail;
2525 }
2526 Py_INCREF(Py_None); resultobj = Py_None;
2527 return resultobj;
2528 fail:
2529 return NULL;
2530 }
2531
2532
2533 static PyObject *_wrap_MilliSleep(PyObject *self, PyObject *args, PyObject *kwargs) {
2534 PyObject *resultobj;
2535 unsigned long arg1 ;
2536 PyObject * obj0 = 0 ;
2537 char *kwnames[] = {
2538 (char *) "milliseconds", NULL
2539 };
2540
2541 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MilliSleep",kwnames,&obj0)) goto fail;
2542 arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0);
2543 if (PyErr_Occurred()) SWIG_fail;
2544 {
2545 PyThreadState* __tstate = wxPyBeginAllowThreads();
2546 wxMilliSleep(arg1);
2547
2548 wxPyEndAllowThreads(__tstate);
2549 if (PyErr_Occurred()) SWIG_fail;
2550 }
2551 Py_INCREF(Py_None); resultobj = Py_None;
2552 return resultobj;
2553 fail:
2554 return NULL;
2555 }
2556
2557
2558 static PyObject *_wrap_MicroSleep(PyObject *self, PyObject *args, PyObject *kwargs) {
2559 PyObject *resultobj;
2560 unsigned long arg1 ;
2561 PyObject * obj0 = 0 ;
2562 char *kwnames[] = {
2563 (char *) "microseconds", NULL
2564 };
2565
2566 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MicroSleep",kwnames,&obj0)) goto fail;
2567 arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0);
2568 if (PyErr_Occurred()) SWIG_fail;
2569 {
2570 PyThreadState* __tstate = wxPyBeginAllowThreads();
2571 wxMicroSleep(arg1);
2572
2573 wxPyEndAllowThreads(__tstate);
2574 if (PyErr_Occurred()) SWIG_fail;
2575 }
2576 Py_INCREF(Py_None); resultobj = Py_None;
2577 return resultobj;
2578 fail:
2579 return NULL;
2580 }
2581
2582
2583 static PyObject *_wrap_EnableTopLevelWindows(PyObject *self, PyObject *args, PyObject *kwargs) {
2584 PyObject *resultobj;
2585 bool arg1 ;
2586 PyObject * obj0 = 0 ;
2587 char *kwnames[] = {
2588 (char *) "enable", NULL
2589 };
2590
2591 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EnableTopLevelWindows",kwnames,&obj0)) goto fail;
2592 arg1 = (bool) SWIG_AsBool(obj0);
2593 if (PyErr_Occurred()) SWIG_fail;
2594 {
2595 PyThreadState* __tstate = wxPyBeginAllowThreads();
2596 wxEnableTopLevelWindows(arg1);
2597
2598 wxPyEndAllowThreads(__tstate);
2599 if (PyErr_Occurred()) SWIG_fail;
2600 }
2601 Py_INCREF(Py_None); resultobj = Py_None;
2602 return resultobj;
2603 fail:
2604 return NULL;
2605 }
2606
2607
2608 static PyObject *_wrap_StripMenuCodes(PyObject *self, PyObject *args, PyObject *kwargs) {
2609 PyObject *resultobj;
2610 wxString *arg1 = 0 ;
2611 wxString result;
2612 bool temp1 = False ;
2613 PyObject * obj0 = 0 ;
2614 char *kwnames[] = {
2615 (char *) "in", NULL
2616 };
2617
2618 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StripMenuCodes",kwnames,&obj0)) goto fail;
2619 {
2620 arg1 = wxString_in_helper(obj0);
2621 if (arg1 == NULL) SWIG_fail;
2622 temp1 = True;
2623 }
2624 {
2625 PyThreadState* __tstate = wxPyBeginAllowThreads();
2626 result = wxStripMenuCodes((wxString const &)*arg1);
2627
2628 wxPyEndAllowThreads(__tstate);
2629 if (PyErr_Occurred()) SWIG_fail;
2630 }
2631 {
2632 #if wxUSE_UNICODE
2633 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2634 #else
2635 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2636 #endif
2637 }
2638 {
2639 if (temp1)
2640 delete arg1;
2641 }
2642 return resultobj;
2643 fail:
2644 {
2645 if (temp1)
2646 delete arg1;
2647 }
2648 return NULL;
2649 }
2650
2651
2652 static PyObject *_wrap_GetEmailAddress(PyObject *self, PyObject *args, PyObject *kwargs) {
2653 PyObject *resultobj;
2654 wxString result;
2655 char *kwnames[] = {
2656 NULL
2657 };
2658
2659 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetEmailAddress",kwnames)) goto fail;
2660 {
2661 PyThreadState* __tstate = wxPyBeginAllowThreads();
2662 result = wxGetEmailAddress();
2663
2664 wxPyEndAllowThreads(__tstate);
2665 if (PyErr_Occurred()) SWIG_fail;
2666 }
2667 {
2668 #if wxUSE_UNICODE
2669 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2670 #else
2671 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2672 #endif
2673 }
2674 return resultobj;
2675 fail:
2676 return NULL;
2677 }
2678
2679
2680 static PyObject *_wrap_GetHostName(PyObject *self, PyObject *args, PyObject *kwargs) {
2681 PyObject *resultobj;
2682 wxString result;
2683 char *kwnames[] = {
2684 NULL
2685 };
2686
2687 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetHostName",kwnames)) goto fail;
2688 {
2689 PyThreadState* __tstate = wxPyBeginAllowThreads();
2690 result = wxGetHostName();
2691
2692 wxPyEndAllowThreads(__tstate);
2693 if (PyErr_Occurred()) SWIG_fail;
2694 }
2695 {
2696 #if wxUSE_UNICODE
2697 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2698 #else
2699 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2700 #endif
2701 }
2702 return resultobj;
2703 fail:
2704 return NULL;
2705 }
2706
2707
2708 static PyObject *_wrap_GetFullHostName(PyObject *self, PyObject *args, PyObject *kwargs) {
2709 PyObject *resultobj;
2710 wxString result;
2711 char *kwnames[] = {
2712 NULL
2713 };
2714
2715 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetFullHostName",kwnames)) goto fail;
2716 {
2717 PyThreadState* __tstate = wxPyBeginAllowThreads();
2718 result = wxGetFullHostName();
2719
2720 wxPyEndAllowThreads(__tstate);
2721 if (PyErr_Occurred()) SWIG_fail;
2722 }
2723 {
2724 #if wxUSE_UNICODE
2725 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2726 #else
2727 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2728 #endif
2729 }
2730 return resultobj;
2731 fail:
2732 return NULL;
2733 }
2734
2735
2736 static PyObject *_wrap_GetUserId(PyObject *self, PyObject *args, PyObject *kwargs) {
2737 PyObject *resultobj;
2738 wxString result;
2739 char *kwnames[] = {
2740 NULL
2741 };
2742
2743 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUserId",kwnames)) goto fail;
2744 {
2745 PyThreadState* __tstate = wxPyBeginAllowThreads();
2746 result = wxGetUserId();
2747
2748 wxPyEndAllowThreads(__tstate);
2749 if (PyErr_Occurred()) SWIG_fail;
2750 }
2751 {
2752 #if wxUSE_UNICODE
2753 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2754 #else
2755 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2756 #endif
2757 }
2758 return resultobj;
2759 fail:
2760 return NULL;
2761 }
2762
2763
2764 static PyObject *_wrap_GetUserName(PyObject *self, PyObject *args, PyObject *kwargs) {
2765 PyObject *resultobj;
2766 wxString result;
2767 char *kwnames[] = {
2768 NULL
2769 };
2770
2771 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUserName",kwnames)) goto fail;
2772 {
2773 PyThreadState* __tstate = wxPyBeginAllowThreads();
2774 result = wxGetUserName();
2775
2776 wxPyEndAllowThreads(__tstate);
2777 if (PyErr_Occurred()) SWIG_fail;
2778 }
2779 {
2780 #if wxUSE_UNICODE
2781 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2782 #else
2783 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2784 #endif
2785 }
2786 return resultobj;
2787 fail:
2788 return NULL;
2789 }
2790
2791
2792 static PyObject *_wrap_GetHomeDir(PyObject *self, PyObject *args, PyObject *kwargs) {
2793 PyObject *resultobj;
2794 wxString result;
2795 char *kwnames[] = {
2796 NULL
2797 };
2798
2799 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetHomeDir",kwnames)) goto fail;
2800 {
2801 PyThreadState* __tstate = wxPyBeginAllowThreads();
2802 result = wxGetHomeDir();
2803
2804 wxPyEndAllowThreads(__tstate);
2805 if (PyErr_Occurred()) SWIG_fail;
2806 }
2807 {
2808 #if wxUSE_UNICODE
2809 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2810 #else
2811 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2812 #endif
2813 }
2814 return resultobj;
2815 fail:
2816 return NULL;
2817 }
2818
2819
2820 static PyObject *_wrap_GetUserHome(PyObject *self, PyObject *args, PyObject *kwargs) {
2821 PyObject *resultobj;
2822 wxString const &arg1_defvalue = wxPyEmptyString ;
2823 wxString *arg1 = (wxString *) &arg1_defvalue ;
2824 wxString result;
2825 bool temp1 = False ;
2826 PyObject * obj0 = 0 ;
2827 char *kwnames[] = {
2828 (char *) "user", NULL
2829 };
2830
2831 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:GetUserHome",kwnames,&obj0)) goto fail;
2832 if (obj0) {
2833 {
2834 arg1 = wxString_in_helper(obj0);
2835 if (arg1 == NULL) SWIG_fail;
2836 temp1 = True;
2837 }
2838 }
2839 {
2840 PyThreadState* __tstate = wxPyBeginAllowThreads();
2841 result = wxGetUserHome((wxString const &)*arg1);
2842
2843 wxPyEndAllowThreads(__tstate);
2844 if (PyErr_Occurred()) SWIG_fail;
2845 }
2846 {
2847 #if wxUSE_UNICODE
2848 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2849 #else
2850 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2851 #endif
2852 }
2853 {
2854 if (temp1)
2855 delete arg1;
2856 }
2857 return resultobj;
2858 fail:
2859 {
2860 if (temp1)
2861 delete arg1;
2862 }
2863 return NULL;
2864 }
2865
2866
2867 static PyObject *_wrap_GetProcessId(PyObject *self, PyObject *args, PyObject *kwargs) {
2868 PyObject *resultobj;
2869 unsigned long result;
2870 char *kwnames[] = {
2871 NULL
2872 };
2873
2874 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetProcessId",kwnames)) goto fail;
2875 {
2876 PyThreadState* __tstate = wxPyBeginAllowThreads();
2877 result = (unsigned long)wxGetProcessId();
2878
2879 wxPyEndAllowThreads(__tstate);
2880 if (PyErr_Occurred()) SWIG_fail;
2881 }
2882 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
2883 return resultobj;
2884 fail:
2885 return NULL;
2886 }
2887
2888
2889 static PyObject *_wrap_Trap(PyObject *self, PyObject *args, PyObject *kwargs) {
2890 PyObject *resultobj;
2891 char *kwnames[] = {
2892 NULL
2893 };
2894
2895 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Trap",kwnames)) goto fail;
2896 {
2897 PyThreadState* __tstate = wxPyBeginAllowThreads();
2898 wxTrap();
2899
2900 wxPyEndAllowThreads(__tstate);
2901 if (PyErr_Occurred()) SWIG_fail;
2902 }
2903 Py_INCREF(Py_None); resultobj = Py_None;
2904 return resultobj;
2905 fail:
2906 return NULL;
2907 }
2908
2909
2910 static PyObject *_wrap_FileSelector(PyObject *self, PyObject *args, PyObject *kwargs) {
2911 PyObject *resultobj;
2912 wxString const &arg1_defvalue = wxPyFileSelectorPromptStr ;
2913 wxString *arg1 = (wxString *) &arg1_defvalue ;
2914 wxString const &arg2_defvalue = wxPyEmptyString ;
2915 wxString *arg2 = (wxString *) &arg2_defvalue ;
2916 wxString const &arg3_defvalue = wxPyEmptyString ;
2917 wxString *arg3 = (wxString *) &arg3_defvalue ;
2918 wxString const &arg4_defvalue = wxPyEmptyString ;
2919 wxString *arg4 = (wxString *) &arg4_defvalue ;
2920 wxString const &arg5_defvalue = wxPyFileSelectorDefaultWildcardStr ;
2921 wxString *arg5 = (wxString *) &arg5_defvalue ;
2922 int arg6 = (int) 0 ;
2923 wxWindow *arg7 = (wxWindow *) NULL ;
2924 int arg8 = (int) -1 ;
2925 int arg9 = (int) -1 ;
2926 wxString result;
2927 bool temp1 = False ;
2928 bool temp2 = False ;
2929 bool temp3 = False ;
2930 bool temp4 = False ;
2931 bool temp5 = False ;
2932 PyObject * obj0 = 0 ;
2933 PyObject * obj1 = 0 ;
2934 PyObject * obj2 = 0 ;
2935 PyObject * obj3 = 0 ;
2936 PyObject * obj4 = 0 ;
2937 PyObject * obj5 = 0 ;
2938 PyObject * obj6 = 0 ;
2939 PyObject * obj7 = 0 ;
2940 PyObject * obj8 = 0 ;
2941 char *kwnames[] = {
2942 (char *) "message",(char *) "default_path",(char *) "default_filename",(char *) "default_extension",(char *) "wildcard",(char *) "flags",(char *) "parent",(char *) "x",(char *) "y", NULL
2943 };
2944
2945 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOOOOOO:FileSelector",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
2946 if (obj0) {
2947 {
2948 arg1 = wxString_in_helper(obj0);
2949 if (arg1 == NULL) SWIG_fail;
2950 temp1 = True;
2951 }
2952 }
2953 if (obj1) {
2954 {
2955 arg2 = wxString_in_helper(obj1);
2956 if (arg2 == NULL) SWIG_fail;
2957 temp2 = True;
2958 }
2959 }
2960 if (obj2) {
2961 {
2962 arg3 = wxString_in_helper(obj2);
2963 if (arg3 == NULL) SWIG_fail;
2964 temp3 = True;
2965 }
2966 }
2967 if (obj3) {
2968 {
2969 arg4 = wxString_in_helper(obj3);
2970 if (arg4 == NULL) SWIG_fail;
2971 temp4 = True;
2972 }
2973 }
2974 if (obj4) {
2975 {
2976 arg5 = wxString_in_helper(obj4);
2977 if (arg5 == NULL) SWIG_fail;
2978 temp5 = True;
2979 }
2980 }
2981 if (obj5) {
2982 arg6 = (int) SWIG_AsInt(obj5);
2983 if (PyErr_Occurred()) SWIG_fail;
2984 }
2985 if (obj6) {
2986 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxWindow,
2987 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2988 }
2989 if (obj7) {
2990 arg8 = (int) SWIG_AsInt(obj7);
2991 if (PyErr_Occurred()) SWIG_fail;
2992 }
2993 if (obj8) {
2994 arg9 = (int) SWIG_AsInt(obj8);
2995 if (PyErr_Occurred()) SWIG_fail;
2996 }
2997 {
2998 if (!wxPyCheckForApp()) SWIG_fail;
2999 PyThreadState* __tstate = wxPyBeginAllowThreads();
3000 result = wxFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxString const &)*arg5,arg6,arg7,arg8,arg9);
3001
3002 wxPyEndAllowThreads(__tstate);
3003 if (PyErr_Occurred()) SWIG_fail;
3004 }
3005 {
3006 #if wxUSE_UNICODE
3007 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3008 #else
3009 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3010 #endif
3011 }
3012 {
3013 if (temp1)
3014 delete arg1;
3015 }
3016 {
3017 if (temp2)
3018 delete arg2;
3019 }
3020 {
3021 if (temp3)
3022 delete arg3;
3023 }
3024 {
3025 if (temp4)
3026 delete arg4;
3027 }
3028 {
3029 if (temp5)
3030 delete arg5;
3031 }
3032 return resultobj;
3033 fail:
3034 {
3035 if (temp1)
3036 delete arg1;
3037 }
3038 {
3039 if (temp2)
3040 delete arg2;
3041 }
3042 {
3043 if (temp3)
3044 delete arg3;
3045 }
3046 {
3047 if (temp4)
3048 delete arg4;
3049 }
3050 {
3051 if (temp5)
3052 delete arg5;
3053 }
3054 return NULL;
3055 }
3056
3057
3058 static PyObject *_wrap_LoadFileSelector(PyObject *self, PyObject *args, PyObject *kwargs) {
3059 PyObject *resultobj;
3060 wxString *arg1 = 0 ;
3061 wxString *arg2 = 0 ;
3062 wxString const &arg3_defvalue = wxPyEmptyString ;
3063 wxString *arg3 = (wxString *) &arg3_defvalue ;
3064 wxWindow *arg4 = (wxWindow *) NULL ;
3065 wxString result;
3066 bool temp1 = False ;
3067 bool temp2 = False ;
3068 bool temp3 = False ;
3069 PyObject * obj0 = 0 ;
3070 PyObject * obj1 = 0 ;
3071 PyObject * obj2 = 0 ;
3072 PyObject * obj3 = 0 ;
3073 char *kwnames[] = {
3074 (char *) "what",(char *) "extension",(char *) "default_name",(char *) "parent", NULL
3075 };
3076
3077 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:LoadFileSelector",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3078 {
3079 arg1 = wxString_in_helper(obj0);
3080 if (arg1 == NULL) SWIG_fail;
3081 temp1 = True;
3082 }
3083 {
3084 arg2 = wxString_in_helper(obj1);
3085 if (arg2 == NULL) SWIG_fail;
3086 temp2 = True;
3087 }
3088 if (obj2) {
3089 {
3090 arg3 = wxString_in_helper(obj2);
3091 if (arg3 == NULL) SWIG_fail;
3092 temp3 = True;
3093 }
3094 }
3095 if (obj3) {
3096 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow,
3097 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3098 }
3099 {
3100 if (!wxPyCheckForApp()) SWIG_fail;
3101 PyThreadState* __tstate = wxPyBeginAllowThreads();
3102 result = wxLoadFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4);
3103
3104 wxPyEndAllowThreads(__tstate);
3105 if (PyErr_Occurred()) SWIG_fail;
3106 }
3107 {
3108 #if wxUSE_UNICODE
3109 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3110 #else
3111 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3112 #endif
3113 }
3114 {
3115 if (temp1)
3116 delete arg1;
3117 }
3118 {
3119 if (temp2)
3120 delete arg2;
3121 }
3122 {
3123 if (temp3)
3124 delete arg3;
3125 }
3126 return resultobj;
3127 fail:
3128 {
3129 if (temp1)
3130 delete arg1;
3131 }
3132 {
3133 if (temp2)
3134 delete arg2;
3135 }
3136 {
3137 if (temp3)
3138 delete arg3;
3139 }
3140 return NULL;
3141 }
3142
3143
3144 static PyObject *_wrap_SaveFileSelector(PyObject *self, PyObject *args, PyObject *kwargs) {
3145 PyObject *resultobj;
3146 wxString *arg1 = 0 ;
3147 wxString *arg2 = 0 ;
3148 wxString const &arg3_defvalue = wxPyEmptyString ;
3149 wxString *arg3 = (wxString *) &arg3_defvalue ;
3150 wxWindow *arg4 = (wxWindow *) NULL ;
3151 wxString result;
3152 bool temp1 = False ;
3153 bool temp2 = False ;
3154 bool temp3 = False ;
3155 PyObject * obj0 = 0 ;
3156 PyObject * obj1 = 0 ;
3157 PyObject * obj2 = 0 ;
3158 PyObject * obj3 = 0 ;
3159 char *kwnames[] = {
3160 (char *) "what",(char *) "extension",(char *) "default_name",(char *) "parent", NULL
3161 };
3162
3163 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:SaveFileSelector",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3164 {
3165 arg1 = wxString_in_helper(obj0);
3166 if (arg1 == NULL) SWIG_fail;
3167 temp1 = True;
3168 }
3169 {
3170 arg2 = wxString_in_helper(obj1);
3171 if (arg2 == NULL) SWIG_fail;
3172 temp2 = True;
3173 }
3174 if (obj2) {
3175 {
3176 arg3 = wxString_in_helper(obj2);
3177 if (arg3 == NULL) SWIG_fail;
3178 temp3 = True;
3179 }
3180 }
3181 if (obj3) {
3182 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow,
3183 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3184 }
3185 {
3186 if (!wxPyCheckForApp()) SWIG_fail;
3187 PyThreadState* __tstate = wxPyBeginAllowThreads();
3188 result = wxSaveFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4);
3189
3190 wxPyEndAllowThreads(__tstate);
3191 if (PyErr_Occurred()) SWIG_fail;
3192 }
3193 {
3194 #if wxUSE_UNICODE
3195 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3196 #else
3197 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3198 #endif
3199 }
3200 {
3201 if (temp1)
3202 delete arg1;
3203 }
3204 {
3205 if (temp2)
3206 delete arg2;
3207 }
3208 {
3209 if (temp3)
3210 delete arg3;
3211 }
3212 return resultobj;
3213 fail:
3214 {
3215 if (temp1)
3216 delete arg1;
3217 }
3218 {
3219 if (temp2)
3220 delete arg2;
3221 }
3222 {
3223 if (temp3)
3224 delete arg3;
3225 }
3226 return NULL;
3227 }
3228
3229
3230 static PyObject *_wrap_DirSelector(PyObject *self, PyObject *args, PyObject *kwargs) {
3231 PyObject *resultobj;
3232 wxString const &arg1_defvalue = wxPyDirSelectorPromptStr ;
3233 wxString *arg1 = (wxString *) &arg1_defvalue ;
3234 wxString const &arg2_defvalue = wxPyEmptyString ;
3235 wxString *arg2 = (wxString *) &arg2_defvalue ;
3236 long arg3 = (long) wxDD_DEFAULT_STYLE ;
3237 wxPoint const &arg4_defvalue = wxDefaultPosition ;
3238 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
3239 wxWindow *arg5 = (wxWindow *) NULL ;
3240 wxString result;
3241 bool temp1 = False ;
3242 bool temp2 = False ;
3243 wxPoint temp4 ;
3244 PyObject * obj0 = 0 ;
3245 PyObject * obj1 = 0 ;
3246 PyObject * obj2 = 0 ;
3247 PyObject * obj3 = 0 ;
3248 PyObject * obj4 = 0 ;
3249 char *kwnames[] = {
3250 (char *) "message",(char *) "defaultPath",(char *) "style",(char *) "pos",(char *) "parent", NULL
3251 };
3252
3253 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:DirSelector",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
3254 if (obj0) {
3255 {
3256 arg1 = wxString_in_helper(obj0);
3257 if (arg1 == NULL) SWIG_fail;
3258 temp1 = True;
3259 }
3260 }
3261 if (obj1) {
3262 {
3263 arg2 = wxString_in_helper(obj1);
3264 if (arg2 == NULL) SWIG_fail;
3265 temp2 = True;
3266 }
3267 }
3268 if (obj2) {
3269 arg3 = (long) SWIG_AsLong(obj2);
3270 if (PyErr_Occurred()) SWIG_fail;
3271 }
3272 if (obj3) {
3273 {
3274 arg4 = &temp4;
3275 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
3276 }
3277 }
3278 if (obj4) {
3279 if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxWindow,
3280 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3281 }
3282 {
3283 if (!wxPyCheckForApp()) SWIG_fail;
3284 PyThreadState* __tstate = wxPyBeginAllowThreads();
3285 result = wxDirSelector((wxString const &)*arg1,(wxString const &)*arg2,arg3,(wxPoint const &)*arg4,arg5);
3286
3287 wxPyEndAllowThreads(__tstate);
3288 if (PyErr_Occurred()) SWIG_fail;
3289 }
3290 {
3291 #if wxUSE_UNICODE
3292 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3293 #else
3294 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3295 #endif
3296 }
3297 {
3298 if (temp1)
3299 delete arg1;
3300 }
3301 {
3302 if (temp2)
3303 delete arg2;
3304 }
3305 return resultobj;
3306 fail:
3307 {
3308 if (temp1)
3309 delete arg1;
3310 }
3311 {
3312 if (temp2)
3313 delete arg2;
3314 }
3315 return NULL;
3316 }
3317
3318
3319 static PyObject *_wrap_GetTextFromUser(PyObject *self, PyObject *args, PyObject *kwargs) {
3320 PyObject *resultobj;
3321 wxString *arg1 = 0 ;
3322 wxString const &arg2_defvalue = wxPyEmptyString ;
3323 wxString *arg2 = (wxString *) &arg2_defvalue ;
3324 wxString const &arg3_defvalue = wxPyEmptyString ;
3325 wxString *arg3 = (wxString *) &arg3_defvalue ;
3326 wxWindow *arg4 = (wxWindow *) NULL ;
3327 int arg5 = (int) -1 ;
3328 int arg6 = (int) -1 ;
3329 bool arg7 = (bool) True ;
3330 wxString result;
3331 bool temp1 = False ;
3332 bool temp2 = False ;
3333 bool temp3 = False ;
3334 PyObject * obj0 = 0 ;
3335 PyObject * obj1 = 0 ;
3336 PyObject * obj2 = 0 ;
3337 PyObject * obj3 = 0 ;
3338 PyObject * obj4 = 0 ;
3339 PyObject * obj5 = 0 ;
3340 PyObject * obj6 = 0 ;
3341 char *kwnames[] = {
3342 (char *) "message",(char *) "caption",(char *) "default_value",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre", NULL
3343 };
3344
3345 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GetTextFromUser",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
3346 {
3347 arg1 = wxString_in_helper(obj0);
3348 if (arg1 == NULL) SWIG_fail;
3349 temp1 = True;
3350 }
3351 if (obj1) {
3352 {
3353 arg2 = wxString_in_helper(obj1);
3354 if (arg2 == NULL) SWIG_fail;
3355 temp2 = True;
3356 }
3357 }
3358 if (obj2) {
3359 {
3360 arg3 = wxString_in_helper(obj2);
3361 if (arg3 == NULL) SWIG_fail;
3362 temp3 = True;
3363 }
3364 }
3365 if (obj3) {
3366 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow,
3367 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3368 }
3369 if (obj4) {
3370 arg5 = (int) SWIG_AsInt(obj4);
3371 if (PyErr_Occurred()) SWIG_fail;
3372 }
3373 if (obj5) {
3374 arg6 = (int) SWIG_AsInt(obj5);
3375 if (PyErr_Occurred()) SWIG_fail;
3376 }
3377 if (obj6) {
3378 arg7 = (bool) SWIG_AsBool(obj6);
3379 if (PyErr_Occurred()) SWIG_fail;
3380 }
3381 {
3382 if (!wxPyCheckForApp()) SWIG_fail;
3383 PyThreadState* __tstate = wxPyBeginAllowThreads();
3384 result = wxGetTextFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6,arg7);
3385
3386 wxPyEndAllowThreads(__tstate);
3387 if (PyErr_Occurred()) SWIG_fail;
3388 }
3389 {
3390 #if wxUSE_UNICODE
3391 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3392 #else
3393 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3394 #endif
3395 }
3396 {
3397 if (temp1)
3398 delete arg1;
3399 }
3400 {
3401 if (temp2)
3402 delete arg2;
3403 }
3404 {
3405 if (temp3)
3406 delete arg3;
3407 }
3408 return resultobj;
3409 fail:
3410 {
3411 if (temp1)
3412 delete arg1;
3413 }
3414 {
3415 if (temp2)
3416 delete arg2;
3417 }
3418 {
3419 if (temp3)
3420 delete arg3;
3421 }
3422 return NULL;
3423 }
3424
3425
3426 static PyObject *_wrap_GetPasswordFromUser(PyObject *self, PyObject *args, PyObject *kwargs) {
3427 PyObject *resultobj;
3428 wxString *arg1 = 0 ;
3429 wxString const &arg2_defvalue = wxPyEmptyString ;
3430 wxString *arg2 = (wxString *) &arg2_defvalue ;
3431 wxString const &arg3_defvalue = wxPyEmptyString ;
3432 wxString *arg3 = (wxString *) &arg3_defvalue ;
3433 wxWindow *arg4 = (wxWindow *) NULL ;
3434 wxString result;
3435 bool temp1 = False ;
3436 bool temp2 = False ;
3437 bool temp3 = False ;
3438 PyObject * obj0 = 0 ;
3439 PyObject * obj1 = 0 ;
3440 PyObject * obj2 = 0 ;
3441 PyObject * obj3 = 0 ;
3442 char *kwnames[] = {
3443 (char *) "message",(char *) "caption",(char *) "default_value",(char *) "parent", NULL
3444 };
3445
3446 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:GetPasswordFromUser",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3447 {
3448 arg1 = wxString_in_helper(obj0);
3449 if (arg1 == NULL) SWIG_fail;
3450 temp1 = True;
3451 }
3452 if (obj1) {
3453 {
3454 arg2 = wxString_in_helper(obj1);
3455 if (arg2 == NULL) SWIG_fail;
3456 temp2 = True;
3457 }
3458 }
3459 if (obj2) {
3460 {
3461 arg3 = wxString_in_helper(obj2);
3462 if (arg3 == NULL) SWIG_fail;
3463 temp3 = True;
3464 }
3465 }
3466 if (obj3) {
3467 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow,
3468 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3469 }
3470 {
3471 if (!wxPyCheckForApp()) SWIG_fail;
3472 PyThreadState* __tstate = wxPyBeginAllowThreads();
3473 result = wxGetPasswordFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4);
3474
3475 wxPyEndAllowThreads(__tstate);
3476 if (PyErr_Occurred()) SWIG_fail;
3477 }
3478 {
3479 #if wxUSE_UNICODE
3480 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3481 #else
3482 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3483 #endif
3484 }
3485 {
3486 if (temp1)
3487 delete arg1;
3488 }
3489 {
3490 if (temp2)
3491 delete arg2;
3492 }
3493 {
3494 if (temp3)
3495 delete arg3;
3496 }
3497 return resultobj;
3498 fail:
3499 {
3500 if (temp1)
3501 delete arg1;
3502 }
3503 {
3504 if (temp2)
3505 delete arg2;
3506 }
3507 {
3508 if (temp3)
3509 delete arg3;
3510 }
3511 return NULL;
3512 }
3513
3514
3515 static PyObject *_wrap_GetSingleChoice(PyObject *self, PyObject *args, PyObject *kwargs) {
3516 PyObject *resultobj;
3517 wxString *arg1 = 0 ;
3518 wxString *arg2 = 0 ;
3519 int arg3 ;
3520 wxString *arg4 = (wxString *) 0 ;
3521 wxWindow *arg5 = (wxWindow *) NULL ;
3522 int arg6 = (int) -1 ;
3523 int arg7 = (int) -1 ;
3524 bool arg8 = (bool) True ;
3525 int arg9 = (int) 150 ;
3526 int arg10 = (int) 200 ;
3527 wxString result;
3528 bool temp1 = False ;
3529 bool temp2 = False ;
3530 PyObject * obj0 = 0 ;
3531 PyObject * obj1 = 0 ;
3532 PyObject * obj2 = 0 ;
3533 PyObject * obj3 = 0 ;
3534 PyObject * obj4 = 0 ;
3535 PyObject * obj5 = 0 ;
3536 PyObject * obj6 = 0 ;
3537 PyObject * obj7 = 0 ;
3538 PyObject * obj8 = 0 ;
3539 char *kwnames[] = {
3540 (char *) "message",(char *) "caption",(char *) "choices",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre",(char *) "width",(char *) "height", NULL
3541 };
3542
3543 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:GetSingleChoice",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
3544 {
3545 arg1 = wxString_in_helper(obj0);
3546 if (arg1 == NULL) SWIG_fail;
3547 temp1 = True;
3548 }
3549 {
3550 arg2 = wxString_in_helper(obj1);
3551 if (arg2 == NULL) SWIG_fail;
3552 temp2 = True;
3553 }
3554 {
3555 arg3 = PyList_Size(obj2);
3556 arg4 = wxString_LIST_helper(obj2);
3557 if (arg4 == NULL) SWIG_fail;
3558 }
3559 if (obj3) {
3560 if ((SWIG_ConvertPtr(obj3,(void **)(&arg5),SWIGTYPE_p_wxWindow,
3561 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3562 }
3563 if (obj4) {
3564 arg6 = (int) SWIG_AsInt(obj4);
3565 if (PyErr_Occurred()) SWIG_fail;
3566 }
3567 if (obj5) {
3568 arg7 = (int) SWIG_AsInt(obj5);
3569 if (PyErr_Occurred()) SWIG_fail;
3570 }
3571 if (obj6) {
3572 arg8 = (bool) SWIG_AsBool(obj6);
3573 if (PyErr_Occurred()) SWIG_fail;
3574 }
3575 if (obj7) {
3576 arg9 = (int) SWIG_AsInt(obj7);
3577 if (PyErr_Occurred()) SWIG_fail;
3578 }
3579 if (obj8) {
3580 arg10 = (int) SWIG_AsInt(obj8);
3581 if (PyErr_Occurred()) SWIG_fail;
3582 }
3583 {
3584 if (!wxPyCheckForApp()) SWIG_fail;
3585 PyThreadState* __tstate = wxPyBeginAllowThreads();
3586 result = wxGetSingleChoice((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10);
3587
3588 wxPyEndAllowThreads(__tstate);
3589 if (PyErr_Occurred()) SWIG_fail;
3590 }
3591 {
3592 #if wxUSE_UNICODE
3593 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3594 #else
3595 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3596 #endif
3597 }
3598 {
3599 if (temp1)
3600 delete arg1;
3601 }
3602 {
3603 if (temp2)
3604 delete arg2;
3605 }
3606 {
3607 if (arg4) delete [] arg4;
3608 }
3609 return resultobj;
3610 fail:
3611 {
3612 if (temp1)
3613 delete arg1;
3614 }
3615 {
3616 if (temp2)
3617 delete arg2;
3618 }
3619 {
3620 if (arg4) delete [] arg4;
3621 }
3622 return NULL;
3623 }
3624
3625
3626 static PyObject *_wrap_GetSingleChoiceIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
3627 PyObject *resultobj;
3628 wxString *arg1 = 0 ;
3629 wxString *arg2 = 0 ;
3630 int arg3 ;
3631 wxString *arg4 = (wxString *) 0 ;
3632 wxWindow *arg5 = (wxWindow *) NULL ;
3633 int arg6 = (int) -1 ;
3634 int arg7 = (int) -1 ;
3635 bool arg8 = (bool) True ;
3636 int arg9 = (int) 150 ;
3637 int arg10 = (int) 200 ;
3638 int result;
3639 bool temp1 = False ;
3640 bool temp2 = False ;
3641 PyObject * obj0 = 0 ;
3642 PyObject * obj1 = 0 ;
3643 PyObject * obj2 = 0 ;
3644 PyObject * obj3 = 0 ;
3645 PyObject * obj4 = 0 ;
3646 PyObject * obj5 = 0 ;
3647 PyObject * obj6 = 0 ;
3648 PyObject * obj7 = 0 ;
3649 PyObject * obj8 = 0 ;
3650 char *kwnames[] = {
3651 (char *) "message",(char *) "caption",(char *) "choices",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre",(char *) "width",(char *) "height", NULL
3652 };
3653
3654 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:GetSingleChoiceIndex",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
3655 {
3656 arg1 = wxString_in_helper(obj0);
3657 if (arg1 == NULL) SWIG_fail;
3658 temp1 = True;
3659 }
3660 {
3661 arg2 = wxString_in_helper(obj1);
3662 if (arg2 == NULL) SWIG_fail;
3663 temp2 = True;
3664 }
3665 {
3666 arg3 = PyList_Size(obj2);
3667 arg4 = wxString_LIST_helper(obj2);
3668 if (arg4 == NULL) SWIG_fail;
3669 }
3670 if (obj3) {
3671 if ((SWIG_ConvertPtr(obj3,(void **)(&arg5),SWIGTYPE_p_wxWindow,
3672 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3673 }
3674 if (obj4) {
3675 arg6 = (int) SWIG_AsInt(obj4);
3676 if (PyErr_Occurred()) SWIG_fail;
3677 }
3678 if (obj5) {
3679 arg7 = (int) SWIG_AsInt(obj5);
3680 if (PyErr_Occurred()) SWIG_fail;
3681 }
3682 if (obj6) {
3683 arg8 = (bool) SWIG_AsBool(obj6);
3684 if (PyErr_Occurred()) SWIG_fail;
3685 }
3686 if (obj7) {
3687 arg9 = (int) SWIG_AsInt(obj7);
3688 if (PyErr_Occurred()) SWIG_fail;
3689 }
3690 if (obj8) {
3691 arg10 = (int) SWIG_AsInt(obj8);
3692 if (PyErr_Occurred()) SWIG_fail;
3693 }
3694 {
3695 if (!wxPyCheckForApp()) SWIG_fail;
3696 PyThreadState* __tstate = wxPyBeginAllowThreads();
3697 result = (int)wxGetSingleChoiceIndex((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10);
3698
3699 wxPyEndAllowThreads(__tstate);
3700 if (PyErr_Occurred()) SWIG_fail;
3701 }
3702 resultobj = SWIG_FromInt((int)result);
3703 {
3704 if (temp1)
3705 delete arg1;
3706 }
3707 {
3708 if (temp2)
3709 delete arg2;
3710 }
3711 {
3712 if (arg4) delete [] arg4;
3713 }
3714 return resultobj;
3715 fail:
3716 {
3717 if (temp1)
3718 delete arg1;
3719 }
3720 {
3721 if (temp2)
3722 delete arg2;
3723 }
3724 {
3725 if (arg4) delete [] arg4;
3726 }
3727 return NULL;
3728 }
3729
3730
3731 static PyObject *_wrap_MessageBox(PyObject *self, PyObject *args, PyObject *kwargs) {
3732 PyObject *resultobj;
3733 wxString *arg1 = 0 ;
3734 wxString const &arg2_defvalue = wxPyEmptyString ;
3735 wxString *arg2 = (wxString *) &arg2_defvalue ;
3736 int arg3 = (int) wxOK|wxCENTRE ;
3737 wxWindow *arg4 = (wxWindow *) NULL ;
3738 int arg5 = (int) -1 ;
3739 int arg6 = (int) -1 ;
3740 int result;
3741 bool temp1 = False ;
3742 bool temp2 = False ;
3743 PyObject * obj0 = 0 ;
3744 PyObject * obj1 = 0 ;
3745 PyObject * obj2 = 0 ;
3746 PyObject * obj3 = 0 ;
3747 PyObject * obj4 = 0 ;
3748 PyObject * obj5 = 0 ;
3749 char *kwnames[] = {
3750 (char *) "message",(char *) "caption",(char *) "style",(char *) "parent",(char *) "x",(char *) "y", NULL
3751 };
3752
3753 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:MessageBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
3754 {
3755 arg1 = wxString_in_helper(obj0);
3756 if (arg1 == NULL) SWIG_fail;
3757 temp1 = True;
3758 }
3759 if (obj1) {
3760 {
3761 arg2 = wxString_in_helper(obj1);
3762 if (arg2 == NULL) SWIG_fail;
3763 temp2 = True;
3764 }
3765 }
3766 if (obj2) {
3767 arg3 = (int) SWIG_AsInt(obj2);
3768 if (PyErr_Occurred()) SWIG_fail;
3769 }
3770 if (obj3) {
3771 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow,
3772 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3773 }
3774 if (obj4) {
3775 arg5 = (int) SWIG_AsInt(obj4);
3776 if (PyErr_Occurred()) SWIG_fail;
3777 }
3778 if (obj5) {
3779 arg6 = (int) SWIG_AsInt(obj5);
3780 if (PyErr_Occurred()) SWIG_fail;
3781 }
3782 {
3783 if (!wxPyCheckForApp()) SWIG_fail;
3784 PyThreadState* __tstate = wxPyBeginAllowThreads();
3785 result = (int)wxMessageBox((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6);
3786
3787 wxPyEndAllowThreads(__tstate);
3788 if (PyErr_Occurred()) SWIG_fail;
3789 }
3790 resultobj = SWIG_FromInt((int)result);
3791 {
3792 if (temp1)
3793 delete arg1;
3794 }
3795 {
3796 if (temp2)
3797 delete arg2;
3798 }
3799 return resultobj;
3800 fail:
3801 {
3802 if (temp1)
3803 delete arg1;
3804 }
3805 {
3806 if (temp2)
3807 delete arg2;
3808 }
3809 return NULL;
3810 }
3811
3812
3813 static PyObject *_wrap_GetNumberFromUser(PyObject *self, PyObject *args, PyObject *kwargs) {
3814 PyObject *resultobj;
3815 wxString *arg1 = 0 ;
3816 wxString *arg2 = 0 ;
3817 wxString *arg3 = 0 ;
3818 long arg4 ;
3819 long arg5 = (long) 0 ;
3820 long arg6 = (long) 100 ;
3821 wxWindow *arg7 = (wxWindow *) NULL ;
3822 wxPoint const &arg8_defvalue = wxDefaultPosition ;
3823 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
3824 long result;
3825 bool temp1 = False ;
3826 bool temp2 = False ;
3827 bool temp3 = False ;
3828 wxPoint temp8 ;
3829 PyObject * obj0 = 0 ;
3830 PyObject * obj1 = 0 ;
3831 PyObject * obj2 = 0 ;
3832 PyObject * obj3 = 0 ;
3833 PyObject * obj4 = 0 ;
3834 PyObject * obj5 = 0 ;
3835 PyObject * obj6 = 0 ;
3836 PyObject * obj7 = 0 ;
3837 char *kwnames[] = {
3838 (char *) "message",(char *) "prompt",(char *) "caption",(char *) "value",(char *) "min",(char *) "max",(char *) "parent",(char *) "pos", NULL
3839 };
3840
3841 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:GetNumberFromUser",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
3842 {
3843 arg1 = wxString_in_helper(obj0);
3844 if (arg1 == NULL) SWIG_fail;
3845 temp1 = True;
3846 }
3847 {
3848 arg2 = wxString_in_helper(obj1);
3849 if (arg2 == NULL) SWIG_fail;
3850 temp2 = True;
3851 }
3852 {
3853 arg3 = wxString_in_helper(obj2);
3854 if (arg3 == NULL) SWIG_fail;
3855 temp3 = True;
3856 }
3857 arg4 = (long) SWIG_AsLong(obj3);
3858 if (PyErr_Occurred()) SWIG_fail;
3859 if (obj4) {
3860 arg5 = (long) SWIG_AsLong(obj4);
3861 if (PyErr_Occurred()) SWIG_fail;
3862 }
3863 if (obj5) {
3864 arg6 = (long) SWIG_AsLong(obj5);
3865 if (PyErr_Occurred()) SWIG_fail;
3866 }
3867 if (obj6) {
3868 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxWindow,
3869 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3870 }
3871 if (obj7) {
3872 {
3873 arg8 = &temp8;
3874 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
3875 }
3876 }
3877 {
3878 if (!wxPyCheckForApp()) SWIG_fail;
3879 PyThreadState* __tstate = wxPyBeginAllowThreads();
3880 result = (long)wxGetNumberFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6,arg7,(wxPoint const &)*arg8);
3881
3882 wxPyEndAllowThreads(__tstate);
3883 if (PyErr_Occurred()) SWIG_fail;
3884 }
3885 resultobj = SWIG_FromLong((long)result);
3886 {
3887 if (temp1)
3888 delete arg1;
3889 }
3890 {
3891 if (temp2)
3892 delete arg2;
3893 }
3894 {
3895 if (temp3)
3896 delete arg3;
3897 }
3898 return resultobj;
3899 fail:
3900 {
3901 if (temp1)
3902 delete arg1;
3903 }
3904 {
3905 if (temp2)
3906 delete arg2;
3907 }
3908 {
3909 if (temp3)
3910 delete arg3;
3911 }
3912 return NULL;
3913 }
3914
3915
3916 static PyObject *_wrap_ColourDisplay(PyObject *self, PyObject *args, PyObject *kwargs) {
3917 PyObject *resultobj;
3918 bool result;
3919 char *kwnames[] = {
3920 NULL
3921 };
3922
3923 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ColourDisplay",kwnames)) goto fail;
3924 {
3925 if (!wxPyCheckForApp()) SWIG_fail;
3926 PyThreadState* __tstate = wxPyBeginAllowThreads();
3927 result = (bool)wxColourDisplay();
3928
3929 wxPyEndAllowThreads(__tstate);
3930 if (PyErr_Occurred()) SWIG_fail;
3931 }
3932 {
3933 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3934 }
3935 return resultobj;
3936 fail:
3937 return NULL;
3938 }
3939
3940
3941 static PyObject *_wrap_DisplayDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3942 PyObject *resultobj;
3943 int result;
3944 char *kwnames[] = {
3945 NULL
3946 };
3947
3948 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplayDepth",kwnames)) goto fail;
3949 {
3950 if (!wxPyCheckForApp()) SWIG_fail;
3951 PyThreadState* __tstate = wxPyBeginAllowThreads();
3952 result = (int)wxDisplayDepth();
3953
3954 wxPyEndAllowThreads(__tstate);
3955 if (PyErr_Occurred()) SWIG_fail;
3956 }
3957 resultobj = SWIG_FromInt((int)result);
3958 return resultobj;
3959 fail:
3960 return NULL;
3961 }
3962
3963
3964 static PyObject *_wrap_GetDisplayDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3965 PyObject *resultobj;
3966 int result;
3967 char *kwnames[] = {
3968 NULL
3969 };
3970
3971 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplayDepth",kwnames)) goto fail;
3972 {
3973 if (!wxPyCheckForApp()) SWIG_fail;
3974 PyThreadState* __tstate = wxPyBeginAllowThreads();
3975 result = (int)wxGetDisplayDepth();
3976
3977 wxPyEndAllowThreads(__tstate);
3978 if (PyErr_Occurred()) SWIG_fail;
3979 }
3980 resultobj = SWIG_FromInt((int)result);
3981 return resultobj;
3982 fail:
3983 return NULL;
3984 }
3985
3986
3987 static PyObject *_wrap_DisplaySize(PyObject *self, PyObject *args, PyObject *kwargs) {
3988 PyObject *resultobj;
3989 int *arg1 = (int *) 0 ;
3990 int *arg2 = (int *) 0 ;
3991 int temp1 ;
3992 int temp2 ;
3993 char *kwnames[] = {
3994 NULL
3995 };
3996
3997 arg1 = &temp1;
3998 arg2 = &temp2;
3999 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplaySize",kwnames)) goto fail;
4000 {
4001 if (!wxPyCheckForApp()) SWIG_fail;
4002 PyThreadState* __tstate = wxPyBeginAllowThreads();
4003 wxDisplaySize(arg1,arg2);
4004
4005 wxPyEndAllowThreads(__tstate);
4006 if (PyErr_Occurred()) SWIG_fail;
4007 }
4008 Py_INCREF(Py_None); resultobj = Py_None;
4009 {
4010 PyObject *o = PyInt_FromLong((long) (*arg1));
4011 resultobj = t_output_helper(resultobj,o);
4012 }
4013 {
4014 PyObject *o = PyInt_FromLong((long) (*arg2));
4015 resultobj = t_output_helper(resultobj,o);
4016 }
4017 return resultobj;
4018 fail:
4019 return NULL;
4020 }
4021
4022
4023 static PyObject *_wrap_GetDisplaySize(PyObject *self, PyObject *args, PyObject *kwargs) {
4024 PyObject *resultobj;
4025 wxSize result;
4026 char *kwnames[] = {
4027 NULL
4028 };
4029
4030 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplaySize",kwnames)) goto fail;
4031 {
4032 if (!wxPyCheckForApp()) SWIG_fail;
4033 PyThreadState* __tstate = wxPyBeginAllowThreads();
4034 result = wxGetDisplaySize();
4035
4036 wxPyEndAllowThreads(__tstate);
4037 if (PyErr_Occurred()) SWIG_fail;
4038 }
4039 {
4040 wxSize * resultptr;
4041 resultptr = new wxSize((wxSize &) result);
4042 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
4043 }
4044 return resultobj;
4045 fail:
4046 return NULL;
4047 }
4048
4049
4050 static PyObject *_wrap_DisplaySizeMM(PyObject *self, PyObject *args, PyObject *kwargs) {
4051 PyObject *resultobj;
4052 int *arg1 = (int *) 0 ;
4053 int *arg2 = (int *) 0 ;
4054 int temp1 ;
4055 int temp2 ;
4056 char *kwnames[] = {
4057 NULL
4058 };
4059
4060 arg1 = &temp1;
4061 arg2 = &temp2;
4062 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplaySizeMM",kwnames)) goto fail;
4063 {
4064 if (!wxPyCheckForApp()) SWIG_fail;
4065 PyThreadState* __tstate = wxPyBeginAllowThreads();
4066 wxDisplaySizeMM(arg1,arg2);
4067
4068 wxPyEndAllowThreads(__tstate);
4069 if (PyErr_Occurred()) SWIG_fail;
4070 }
4071 Py_INCREF(Py_None); resultobj = Py_None;
4072 {
4073 PyObject *o = PyInt_FromLong((long) (*arg1));
4074 resultobj = t_output_helper(resultobj,o);
4075 }
4076 {
4077 PyObject *o = PyInt_FromLong((long) (*arg2));
4078 resultobj = t_output_helper(resultobj,o);
4079 }
4080 return resultobj;
4081 fail:
4082 return NULL;
4083 }
4084
4085
4086 static PyObject *_wrap_GetDisplaySizeMM(PyObject *self, PyObject *args, PyObject *kwargs) {
4087 PyObject *resultobj;
4088 wxSize result;
4089 char *kwnames[] = {
4090 NULL
4091 };
4092
4093 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplaySizeMM",kwnames)) goto fail;
4094 {
4095 if (!wxPyCheckForApp()) SWIG_fail;
4096 PyThreadState* __tstate = wxPyBeginAllowThreads();
4097 result = wxGetDisplaySizeMM();
4098
4099 wxPyEndAllowThreads(__tstate);
4100 if (PyErr_Occurred()) SWIG_fail;
4101 }
4102 {
4103 wxSize * resultptr;
4104 resultptr = new wxSize((wxSize &) result);
4105 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
4106 }
4107 return resultobj;
4108 fail:
4109 return NULL;
4110 }
4111
4112
4113 static PyObject *_wrap_ClientDisplayRect(PyObject *self, PyObject *args, PyObject *kwargs) {
4114 PyObject *resultobj;
4115 int *arg1 = (int *) 0 ;
4116 int *arg2 = (int *) 0 ;
4117 int *arg3 = (int *) 0 ;
4118 int *arg4 = (int *) 0 ;
4119 int temp1 ;
4120 int temp2 ;
4121 int temp3 ;
4122 int temp4 ;
4123 char *kwnames[] = {
4124 NULL
4125 };
4126
4127 arg1 = &temp1;
4128 arg2 = &temp2;
4129 arg3 = &temp3;
4130 arg4 = &temp4;
4131 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ClientDisplayRect",kwnames)) goto fail;
4132 {
4133 if (!wxPyCheckForApp()) SWIG_fail;
4134 PyThreadState* __tstate = wxPyBeginAllowThreads();
4135 wxClientDisplayRect(arg1,arg2,arg3,arg4);
4136
4137 wxPyEndAllowThreads(__tstate);
4138 if (PyErr_Occurred()) SWIG_fail;
4139 }
4140 Py_INCREF(Py_None); resultobj = Py_None;
4141 {
4142 PyObject *o = PyInt_FromLong((long) (*arg1));
4143 resultobj = t_output_helper(resultobj,o);
4144 }
4145 {
4146 PyObject *o = PyInt_FromLong((long) (*arg2));
4147 resultobj = t_output_helper(resultobj,o);
4148 }
4149 {
4150 PyObject *o = PyInt_FromLong((long) (*arg3));
4151 resultobj = t_output_helper(resultobj,o);
4152 }
4153 {
4154 PyObject *o = PyInt_FromLong((long) (*arg4));
4155 resultobj = t_output_helper(resultobj,o);
4156 }
4157 return resultobj;
4158 fail:
4159 return NULL;
4160 }
4161
4162
4163 static PyObject *_wrap_GetClientDisplayRect(PyObject *self, PyObject *args, PyObject *kwargs) {
4164 PyObject *resultobj;
4165 wxRect result;
4166 char *kwnames[] = {
4167 NULL
4168 };
4169
4170 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetClientDisplayRect",kwnames)) goto fail;
4171 {
4172 if (!wxPyCheckForApp()) SWIG_fail;
4173 PyThreadState* __tstate = wxPyBeginAllowThreads();
4174 result = wxGetClientDisplayRect();
4175
4176 wxPyEndAllowThreads(__tstate);
4177 if (PyErr_Occurred()) SWIG_fail;
4178 }
4179 {
4180 wxRect * resultptr;
4181 resultptr = new wxRect((wxRect &) result);
4182 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
4183 }
4184 return resultobj;
4185 fail:
4186 return NULL;
4187 }
4188
4189
4190 static PyObject *_wrap_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
4191 PyObject *resultobj;
4192 wxCursor *arg1 = 0 ;
4193 PyObject * obj0 = 0 ;
4194 char *kwnames[] = {
4195 (char *) "cursor", NULL
4196 };
4197
4198 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursor",kwnames,&obj0)) goto fail;
4199 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
4200 SWIG_POINTER_EXCEPTION | 0)) == -1)
4201 SWIG_fail;
4202 if (arg1 == NULL) {
4203 PyErr_SetString(PyExc_TypeError,"null reference");
4204 SWIG_fail;
4205 }
4206 {
4207 if (!wxPyCheckForApp()) SWIG_fail;
4208 PyThreadState* __tstate = wxPyBeginAllowThreads();
4209 wxSetCursor(*arg1);
4210
4211 wxPyEndAllowThreads(__tstate);
4212 if (PyErr_Occurred()) SWIG_fail;
4213 }
4214 Py_INCREF(Py_None); resultobj = Py_None;
4215 return resultobj;
4216 fail:
4217 return NULL;
4218 }
4219
4220
4221 static PyObject *_wrap_BeginBusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
4222 PyObject *resultobj;
4223 wxCursor *arg1 = (wxCursor *) wxHOURGLASS_CURSOR ;
4224 PyObject * obj0 = 0 ;
4225 char *kwnames[] = {
4226 (char *) "cursor", NULL
4227 };
4228
4229 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:BeginBusyCursor",kwnames,&obj0)) goto fail;
4230 if (obj0) {
4231 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
4232 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4233 }
4234 {
4235 if (!wxPyCheckForApp()) SWIG_fail;
4236 PyThreadState* __tstate = wxPyBeginAllowThreads();
4237 wxBeginBusyCursor(arg1);
4238
4239 wxPyEndAllowThreads(__tstate);
4240 if (PyErr_Occurred()) SWIG_fail;
4241 }
4242 Py_INCREF(Py_None); resultobj = Py_None;
4243 return resultobj;
4244 fail:
4245 return NULL;
4246 }
4247
4248
4249 static PyObject *_wrap_GetActiveWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
4250 PyObject *resultobj;
4251 wxWindow *result;
4252 char *kwnames[] = {
4253 NULL
4254 };
4255
4256 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetActiveWindow",kwnames)) goto fail;
4257 {
4258 if (!wxPyCheckForApp()) SWIG_fail;
4259 PyThreadState* __tstate = wxPyBeginAllowThreads();
4260 result = (wxWindow *)wxGetActiveWindow();
4261
4262 wxPyEndAllowThreads(__tstate);
4263 if (PyErr_Occurred()) SWIG_fail;
4264 }
4265 {
4266 resultobj = wxPyMake_wxObject(result, 0);
4267 }
4268 return resultobj;
4269 fail:
4270 return NULL;
4271 }
4272
4273
4274 static PyObject *_wrap_GenericFindWindowAtPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
4275 PyObject *resultobj;
4276 wxPoint *arg1 = 0 ;
4277 wxWindow *result;
4278 wxPoint temp1 ;
4279 PyObject * obj0 = 0 ;
4280 char *kwnames[] = {
4281 (char *) "pt", NULL
4282 };
4283
4284 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericFindWindowAtPoint",kwnames,&obj0)) goto fail;
4285 {
4286 arg1 = &temp1;
4287 if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail;
4288 }
4289 {
4290 if (!wxPyCheckForApp()) SWIG_fail;
4291 PyThreadState* __tstate = wxPyBeginAllowThreads();
4292 result = (wxWindow *)wxGenericFindWindowAtPoint((wxPoint const &)*arg1);
4293
4294 wxPyEndAllowThreads(__tstate);
4295 if (PyErr_Occurred()) SWIG_fail;
4296 }
4297 {
4298 resultobj = wxPyMake_wxObject(result, 0);
4299 }
4300 return resultobj;
4301 fail:
4302 return NULL;
4303 }
4304
4305
4306 static PyObject *_wrap_FindWindowAtPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
4307 PyObject *resultobj;
4308 wxPoint *arg1 = 0 ;
4309 wxWindow *result;
4310 wxPoint temp1 ;
4311 PyObject * obj0 = 0 ;
4312 char *kwnames[] = {
4313 (char *) "pt", NULL
4314 };
4315
4316 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FindWindowAtPoint",kwnames,&obj0)) goto fail;
4317 {
4318 arg1 = &temp1;
4319 if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail;
4320 }
4321 {
4322 if (!wxPyCheckForApp()) SWIG_fail;
4323 PyThreadState* __tstate = wxPyBeginAllowThreads();
4324 result = (wxWindow *)wxFindWindowAtPoint((wxPoint const &)*arg1);
4325
4326 wxPyEndAllowThreads(__tstate);
4327 if (PyErr_Occurred()) SWIG_fail;
4328 }
4329 {
4330 resultobj = wxPyMake_wxObject(result, 0);
4331 }
4332 return resultobj;
4333 fail:
4334 return NULL;
4335 }
4336
4337
4338 static PyObject *_wrap_GetTopLevelParent(PyObject *self, PyObject *args, PyObject *kwargs) {
4339 PyObject *resultobj;
4340 wxWindow *arg1 = (wxWindow *) 0 ;
4341 wxWindow *result;
4342 PyObject * obj0 = 0 ;
4343 char *kwnames[] = {
4344 (char *) "win", NULL
4345 };
4346
4347 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetTopLevelParent",kwnames,&obj0)) goto fail;
4348 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
4349 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4350 {
4351 if (!wxPyCheckForApp()) SWIG_fail;
4352 PyThreadState* __tstate = wxPyBeginAllowThreads();
4353 result = (wxWindow *)wxGetTopLevelParent(arg1);
4354
4355 wxPyEndAllowThreads(__tstate);
4356 if (PyErr_Occurred()) SWIG_fail;
4357 }
4358 {
4359 resultobj = wxPyMake_wxObject(result, 0);
4360 }
4361 return resultobj;
4362 fail:
4363 return NULL;
4364 }
4365
4366
4367 static PyObject *_wrap_GetKeyState(PyObject *self, PyObject *args, PyObject *kwargs) {
4368 PyObject *resultobj;
4369 int arg1 ;
4370 bool result;
4371 PyObject * obj0 = 0 ;
4372 char *kwnames[] = {
4373 (char *) "key", NULL
4374 };
4375
4376 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetKeyState",kwnames,&obj0)) goto fail;
4377 arg1 = (wxKeyCode) SWIG_AsInt(obj0);
4378 if (PyErr_Occurred()) SWIG_fail;
4379 {
4380 if (!wxPyCheckForApp()) SWIG_fail;
4381 PyThreadState* __tstate = wxPyBeginAllowThreads();
4382 result = (bool)wxGetKeyState((wxKeyCode )arg1);
4383
4384 wxPyEndAllowThreads(__tstate);
4385 if (PyErr_Occurred()) SWIG_fail;
4386 }
4387 {
4388 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4389 }
4390 return resultobj;
4391 fail:
4392 return NULL;
4393 }
4394
4395
4396 static PyObject *_wrap_WakeUpMainThread(PyObject *self, PyObject *args, PyObject *kwargs) {
4397 PyObject *resultobj;
4398 char *kwnames[] = {
4399 NULL
4400 };
4401
4402 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":WakeUpMainThread",kwnames)) goto fail;
4403 {
4404 if (!wxPyCheckForApp()) SWIG_fail;
4405 PyThreadState* __tstate = wxPyBeginAllowThreads();
4406 wxWakeUpMainThread();
4407
4408 wxPyEndAllowThreads(__tstate);
4409 if (PyErr_Occurred()) SWIG_fail;
4410 }
4411 Py_INCREF(Py_None); resultobj = Py_None;
4412 return resultobj;
4413 fail:
4414 return NULL;
4415 }
4416
4417
4418 static PyObject *_wrap_MutexGuiEnter(PyObject *self, PyObject *args, PyObject *kwargs) {
4419 PyObject *resultobj;
4420 char *kwnames[] = {
4421 NULL
4422 };
4423
4424 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MutexGuiEnter",kwnames)) goto fail;
4425 {
4426 if (!wxPyCheckForApp()) SWIG_fail;
4427 PyThreadState* __tstate = wxPyBeginAllowThreads();
4428 wxMutexGuiEnter();
4429
4430 wxPyEndAllowThreads(__tstate);
4431 if (PyErr_Occurred()) SWIG_fail;
4432 }
4433 Py_INCREF(Py_None); resultobj = Py_None;
4434 return resultobj;
4435 fail:
4436 return NULL;
4437 }
4438
4439
4440 static PyObject *_wrap_MutexGuiLeave(PyObject *self, PyObject *args, PyObject *kwargs) {
4441 PyObject *resultobj;
4442 char *kwnames[] = {
4443 NULL
4444 };
4445
4446 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MutexGuiLeave",kwnames)) goto fail;
4447 {
4448 if (!wxPyCheckForApp()) SWIG_fail;
4449 PyThreadState* __tstate = wxPyBeginAllowThreads();
4450 wxMutexGuiLeave();
4451
4452 wxPyEndAllowThreads(__tstate);
4453 if (PyErr_Occurred()) SWIG_fail;
4454 }
4455 Py_INCREF(Py_None); resultobj = Py_None;
4456 return resultobj;
4457 fail:
4458 return NULL;
4459 }
4460
4461
4462 static PyObject *_wrap_new_MutexGuiLocker(PyObject *self, PyObject *args, PyObject *kwargs) {
4463 PyObject *resultobj;
4464 wxMutexGuiLocker *result;
4465 char *kwnames[] = {
4466 NULL
4467 };
4468
4469 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MutexGuiLocker",kwnames)) goto fail;
4470 {
4471 if (!wxPyCheckForApp()) SWIG_fail;
4472 PyThreadState* __tstate = wxPyBeginAllowThreads();
4473 result = (wxMutexGuiLocker *)new wxMutexGuiLocker();
4474
4475 wxPyEndAllowThreads(__tstate);
4476 if (PyErr_Occurred()) SWIG_fail;
4477 }
4478 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMutexGuiLocker, 1);
4479 return resultobj;
4480 fail:
4481 return NULL;
4482 }
4483
4484
4485 static PyObject *_wrap_delete_MutexGuiLocker(PyObject *self, PyObject *args, PyObject *kwargs) {
4486 PyObject *resultobj;
4487 wxMutexGuiLocker *arg1 = (wxMutexGuiLocker *) 0 ;
4488 PyObject * obj0 = 0 ;
4489 char *kwnames[] = {
4490 (char *) "self", NULL
4491 };
4492
4493 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MutexGuiLocker",kwnames,&obj0)) goto fail;
4494 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMutexGuiLocker,
4495 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4496 {
4497 PyThreadState* __tstate = wxPyBeginAllowThreads();
4498 delete arg1;
4499
4500 wxPyEndAllowThreads(__tstate);
4501 if (PyErr_Occurred()) SWIG_fail;
4502 }
4503 Py_INCREF(Py_None); resultobj = Py_None;
4504 return resultobj;
4505 fail:
4506 return NULL;
4507 }
4508
4509
4510 static PyObject * MutexGuiLocker_swigregister(PyObject *self, PyObject *args) {
4511 PyObject *obj;
4512 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4513 SWIG_TypeClientData(SWIGTYPE_p_wxMutexGuiLocker, obj);
4514 Py_INCREF(obj);
4515 return Py_BuildValue((char *)"");
4516 }
4517 static PyObject *_wrap_Thread_IsMain(PyObject *self, PyObject *args, PyObject *kwargs) {
4518 PyObject *resultobj;
4519 bool result;
4520 char *kwnames[] = {
4521 NULL
4522 };
4523
4524 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Thread_IsMain",kwnames)) goto fail;
4525 {
4526 PyThreadState* __tstate = wxPyBeginAllowThreads();
4527 result = (bool)wxThread_IsMain();
4528
4529 wxPyEndAllowThreads(__tstate);
4530 if (PyErr_Occurred()) SWIG_fail;
4531 }
4532 {
4533 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4534 }
4535 return resultobj;
4536 fail:
4537 return NULL;
4538 }
4539
4540
4541 static PyObject *_wrap_new_ToolTip(PyObject *self, PyObject *args, PyObject *kwargs) {
4542 PyObject *resultobj;
4543 wxString *arg1 = 0 ;
4544 wxToolTip *result;
4545 bool temp1 = False ;
4546 PyObject * obj0 = 0 ;
4547 char *kwnames[] = {
4548 (char *) "tip", NULL
4549 };
4550
4551 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ToolTip",kwnames,&obj0)) goto fail;
4552 {
4553 arg1 = wxString_in_helper(obj0);
4554 if (arg1 == NULL) SWIG_fail;
4555 temp1 = True;
4556 }
4557 {
4558 if (!wxPyCheckForApp()) SWIG_fail;
4559 PyThreadState* __tstate = wxPyBeginAllowThreads();
4560 result = (wxToolTip *)new wxToolTip((wxString const &)*arg1);
4561
4562 wxPyEndAllowThreads(__tstate);
4563 if (PyErr_Occurred()) SWIG_fail;
4564 }
4565 {
4566 resultobj = wxPyMake_wxObject(result, 1);
4567 }
4568 {
4569 if (temp1)
4570 delete arg1;
4571 }
4572 return resultobj;
4573 fail:
4574 {
4575 if (temp1)
4576 delete arg1;
4577 }
4578 return NULL;
4579 }
4580
4581
4582 static PyObject *_wrap_ToolTip_SetTip(PyObject *self, PyObject *args, PyObject *kwargs) {
4583 PyObject *resultobj;
4584 wxToolTip *arg1 = (wxToolTip *) 0 ;
4585 wxString *arg2 = 0 ;
4586 bool temp2 = False ;
4587 PyObject * obj0 = 0 ;
4588 PyObject * obj1 = 0 ;
4589 char *kwnames[] = {
4590 (char *) "self",(char *) "tip", NULL
4591 };
4592
4593 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolTip_SetTip",kwnames,&obj0,&obj1)) goto fail;
4594 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolTip,
4595 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4596 {
4597 arg2 = wxString_in_helper(obj1);
4598 if (arg2 == NULL) SWIG_fail;
4599 temp2 = True;
4600 }
4601 {
4602 PyThreadState* __tstate = wxPyBeginAllowThreads();
4603 (arg1)->SetTip((wxString const &)*arg2);
4604
4605 wxPyEndAllowThreads(__tstate);
4606 if (PyErr_Occurred()) SWIG_fail;
4607 }
4608 Py_INCREF(Py_None); resultobj = Py_None;
4609 {
4610 if (temp2)
4611 delete arg2;
4612 }
4613 return resultobj;
4614 fail:
4615 {
4616 if (temp2)
4617 delete arg2;
4618 }
4619 return NULL;
4620 }
4621
4622
4623 static PyObject *_wrap_ToolTip_GetTip(PyObject *self, PyObject *args, PyObject *kwargs) {
4624 PyObject *resultobj;
4625 wxToolTip *arg1 = (wxToolTip *) 0 ;
4626 wxString result;
4627 PyObject * obj0 = 0 ;
4628 char *kwnames[] = {
4629 (char *) "self", NULL
4630 };
4631
4632 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_GetTip",kwnames,&obj0)) goto fail;
4633 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolTip,
4634 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4635 {
4636 PyThreadState* __tstate = wxPyBeginAllowThreads();
4637 result = (arg1)->GetTip();
4638
4639 wxPyEndAllowThreads(__tstate);
4640 if (PyErr_Occurred()) SWIG_fail;
4641 }
4642 {
4643 #if wxUSE_UNICODE
4644 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
4645 #else
4646 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
4647 #endif
4648 }
4649 return resultobj;
4650 fail:
4651 return NULL;
4652 }
4653
4654
4655 static PyObject *_wrap_ToolTip_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
4656 PyObject *resultobj;
4657 wxToolTip *arg1 = (wxToolTip *) 0 ;
4658 wxWindow *result;
4659 PyObject * obj0 = 0 ;
4660 char *kwnames[] = {
4661 (char *) "self", NULL
4662 };
4663
4664 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_GetWindow",kwnames,&obj0)) goto fail;
4665 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolTip,
4666 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4667 {
4668 PyThreadState* __tstate = wxPyBeginAllowThreads();
4669 result = (wxWindow *)(arg1)->GetWindow();
4670
4671 wxPyEndAllowThreads(__tstate);
4672 if (PyErr_Occurred()) SWIG_fail;
4673 }
4674 {
4675 resultobj = wxPyMake_wxObject(result, 0);
4676 }
4677 return resultobj;
4678 fail:
4679 return NULL;
4680 }
4681
4682
4683 static PyObject *_wrap_ToolTip_Enable(PyObject *self, PyObject *args, PyObject *kwargs) {
4684 PyObject *resultobj;
4685 bool arg1 ;
4686 PyObject * obj0 = 0 ;
4687 char *kwnames[] = {
4688 (char *) "flag", NULL
4689 };
4690
4691 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_Enable",kwnames,&obj0)) goto fail;
4692 arg1 = (bool) SWIG_AsBool(obj0);
4693 if (PyErr_Occurred()) SWIG_fail;
4694 {
4695 PyThreadState* __tstate = wxPyBeginAllowThreads();
4696 wxToolTip::Enable(arg1);
4697
4698 wxPyEndAllowThreads(__tstate);
4699 if (PyErr_Occurred()) SWIG_fail;
4700 }
4701 Py_INCREF(Py_None); resultobj = Py_None;
4702 return resultobj;
4703 fail:
4704 return NULL;
4705 }
4706
4707
4708 static PyObject *_wrap_ToolTip_SetDelay(PyObject *self, PyObject *args, PyObject *kwargs) {
4709 PyObject *resultobj;
4710 long arg1 ;
4711 PyObject * obj0 = 0 ;
4712 char *kwnames[] = {
4713 (char *) "milliseconds", NULL
4714 };
4715
4716 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_SetDelay",kwnames,&obj0)) goto fail;
4717 arg1 = (long) SWIG_AsLong(obj0);
4718 if (PyErr_Occurred()) SWIG_fail;
4719 {
4720 PyThreadState* __tstate = wxPyBeginAllowThreads();
4721 wxToolTip::SetDelay(arg1);
4722
4723 wxPyEndAllowThreads(__tstate);
4724 if (PyErr_Occurred()) SWIG_fail;
4725 }
4726 Py_INCREF(Py_None); resultobj = Py_None;
4727 return resultobj;
4728 fail:
4729 return NULL;
4730 }
4731
4732
4733 static PyObject * ToolTip_swigregister(PyObject *self, PyObject *args) {
4734 PyObject *obj;
4735 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4736 SWIG_TypeClientData(SWIGTYPE_p_wxToolTip, obj);
4737 Py_INCREF(obj);
4738 return Py_BuildValue((char *)"");
4739 }
4740 static PyObject *_wrap_new_Caret(PyObject *self, PyObject *args, PyObject *kwargs) {
4741 PyObject *resultobj;
4742 wxWindow *arg1 = (wxWindow *) 0 ;
4743 wxSize *arg2 = 0 ;
4744 wxCaret *result;
4745 wxSize temp2 ;
4746 PyObject * obj0 = 0 ;
4747 PyObject * obj1 = 0 ;
4748 char *kwnames[] = {
4749 (char *) "window",(char *) "size", NULL
4750 };
4751
4752 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_Caret",kwnames,&obj0,&obj1)) goto fail;
4753 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
4754 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4755 {
4756 arg2 = &temp2;
4757 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
4758 }
4759 {
4760 if (!wxPyCheckForApp()) SWIG_fail;
4761 PyThreadState* __tstate = wxPyBeginAllowThreads();
4762 result = (wxCaret *)new wxCaret(arg1,(wxSize const &)*arg2);
4763
4764 wxPyEndAllowThreads(__tstate);
4765 if (PyErr_Occurred()) SWIG_fail;
4766 }
4767 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCaret, 1);
4768 return resultobj;
4769 fail:
4770 return NULL;
4771 }
4772
4773
4774 static PyObject *_wrap_delete_Caret(PyObject *self, PyObject *args, PyObject *kwargs) {
4775 PyObject *resultobj;
4776 wxCaret *arg1 = (wxCaret *) 0 ;
4777 PyObject * obj0 = 0 ;
4778 char *kwnames[] = {
4779 (char *) "self", NULL
4780 };
4781
4782 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Caret",kwnames,&obj0)) goto fail;
4783 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4784 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4785 {
4786 PyThreadState* __tstate = wxPyBeginAllowThreads();
4787 delete arg1;
4788
4789 wxPyEndAllowThreads(__tstate);
4790 if (PyErr_Occurred()) SWIG_fail;
4791 }
4792 Py_INCREF(Py_None); resultobj = Py_None;
4793 return resultobj;
4794 fail:
4795 return NULL;
4796 }
4797
4798
4799 static PyObject *_wrap_Caret_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
4800 PyObject *resultobj;
4801 wxCaret *arg1 = (wxCaret *) 0 ;
4802 bool result;
4803 PyObject * obj0 = 0 ;
4804 char *kwnames[] = {
4805 (char *) "self", NULL
4806 };
4807
4808 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_IsOk",kwnames,&obj0)) goto fail;
4809 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4810 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4811 {
4812 PyThreadState* __tstate = wxPyBeginAllowThreads();
4813 result = (bool)(arg1)->IsOk();
4814
4815 wxPyEndAllowThreads(__tstate);
4816 if (PyErr_Occurred()) SWIG_fail;
4817 }
4818 {
4819 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4820 }
4821 return resultobj;
4822 fail:
4823 return NULL;
4824 }
4825
4826
4827 static PyObject *_wrap_Caret_IsVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
4828 PyObject *resultobj;
4829 wxCaret *arg1 = (wxCaret *) 0 ;
4830 bool result;
4831 PyObject * obj0 = 0 ;
4832 char *kwnames[] = {
4833 (char *) "self", NULL
4834 };
4835
4836 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_IsVisible",kwnames,&obj0)) goto fail;
4837 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4838 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4839 {
4840 PyThreadState* __tstate = wxPyBeginAllowThreads();
4841 result = (bool)(arg1)->IsVisible();
4842
4843 wxPyEndAllowThreads(__tstate);
4844 if (PyErr_Occurred()) SWIG_fail;
4845 }
4846 {
4847 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4848 }
4849 return resultobj;
4850 fail:
4851 return NULL;
4852 }
4853
4854
4855 static PyObject *_wrap_Caret_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
4856 PyObject *resultobj;
4857 wxCaret *arg1 = (wxCaret *) 0 ;
4858 wxPoint result;
4859 PyObject * obj0 = 0 ;
4860 char *kwnames[] = {
4861 (char *) "self", NULL
4862 };
4863
4864 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetPosition",kwnames,&obj0)) goto fail;
4865 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4866 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4867 {
4868 PyThreadState* __tstate = wxPyBeginAllowThreads();
4869 result = (arg1)->GetPosition();
4870
4871 wxPyEndAllowThreads(__tstate);
4872 if (PyErr_Occurred()) SWIG_fail;
4873 }
4874 {
4875 wxPoint * resultptr;
4876 resultptr = new wxPoint((wxPoint &) result);
4877 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
4878 }
4879 return resultobj;
4880 fail:
4881 return NULL;
4882 }
4883
4884
4885 static PyObject *_wrap_Caret_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
4886 PyObject *resultobj;
4887 wxCaret *arg1 = (wxCaret *) 0 ;
4888 int *arg2 = (int *) 0 ;
4889 int *arg3 = (int *) 0 ;
4890 int temp2 ;
4891 int temp3 ;
4892 PyObject * obj0 = 0 ;
4893 char *kwnames[] = {
4894 (char *) "self", NULL
4895 };
4896
4897 arg2 = &temp2;
4898 arg3 = &temp3;
4899 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetPositionTuple",kwnames,&obj0)) goto fail;
4900 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4901 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4902 {
4903 PyThreadState* __tstate = wxPyBeginAllowThreads();
4904 (arg1)->GetPosition(arg2,arg3);
4905
4906 wxPyEndAllowThreads(__tstate);
4907 if (PyErr_Occurred()) SWIG_fail;
4908 }
4909 Py_INCREF(Py_None); resultobj = Py_None;
4910 {
4911 PyObject *o = PyInt_FromLong((long) (*arg2));
4912 resultobj = t_output_helper(resultobj,o);
4913 }
4914 {
4915 PyObject *o = PyInt_FromLong((long) (*arg3));
4916 resultobj = t_output_helper(resultobj,o);
4917 }
4918 return resultobj;
4919 fail:
4920 return NULL;
4921 }
4922
4923
4924 static PyObject *_wrap_Caret_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
4925 PyObject *resultobj;
4926 wxCaret *arg1 = (wxCaret *) 0 ;
4927 wxSize result;
4928 PyObject * obj0 = 0 ;
4929 char *kwnames[] = {
4930 (char *) "self", NULL
4931 };
4932
4933 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetSize",kwnames,&obj0)) goto fail;
4934 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4935 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4936 {
4937 PyThreadState* __tstate = wxPyBeginAllowThreads();
4938 result = (arg1)->GetSize();
4939
4940 wxPyEndAllowThreads(__tstate);
4941 if (PyErr_Occurred()) SWIG_fail;
4942 }
4943 {
4944 wxSize * resultptr;
4945 resultptr = new wxSize((wxSize &) result);
4946 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
4947 }
4948 return resultobj;
4949 fail:
4950 return NULL;
4951 }
4952
4953
4954 static PyObject *_wrap_Caret_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
4955 PyObject *resultobj;
4956 wxCaret *arg1 = (wxCaret *) 0 ;
4957 int *arg2 = (int *) 0 ;
4958 int *arg3 = (int *) 0 ;
4959 int temp2 ;
4960 int temp3 ;
4961 PyObject * obj0 = 0 ;
4962 char *kwnames[] = {
4963 (char *) "self", NULL
4964 };
4965
4966 arg2 = &temp2;
4967 arg3 = &temp3;
4968 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetSizeTuple",kwnames,&obj0)) goto fail;
4969 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4970 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4971 {
4972 PyThreadState* __tstate = wxPyBeginAllowThreads();
4973 (arg1)->GetSize(arg2,arg3);
4974
4975 wxPyEndAllowThreads(__tstate);
4976 if (PyErr_Occurred()) SWIG_fail;
4977 }
4978 Py_INCREF(Py_None); resultobj = Py_None;
4979 {
4980 PyObject *o = PyInt_FromLong((long) (*arg2));
4981 resultobj = t_output_helper(resultobj,o);
4982 }
4983 {
4984 PyObject *o = PyInt_FromLong((long) (*arg3));
4985 resultobj = t_output_helper(resultobj,o);
4986 }
4987 return resultobj;
4988 fail:
4989 return NULL;
4990 }
4991
4992
4993 static PyObject *_wrap_Caret_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
4994 PyObject *resultobj;
4995 wxCaret *arg1 = (wxCaret *) 0 ;
4996 wxWindow *result;
4997 PyObject * obj0 = 0 ;
4998 char *kwnames[] = {
4999 (char *) "self", NULL
5000 };
5001
5002 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetWindow",kwnames,&obj0)) goto fail;
5003 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
5004 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5005 {
5006 PyThreadState* __tstate = wxPyBeginAllowThreads();
5007 result = (wxWindow *)(arg1)->GetWindow();
5008
5009 wxPyEndAllowThreads(__tstate);
5010 if (PyErr_Occurred()) SWIG_fail;
5011 }
5012 {
5013 resultobj = wxPyMake_wxObject(result, 0);
5014 }
5015 return resultobj;
5016 fail:
5017 return NULL;
5018 }
5019
5020
5021 static PyObject *_wrap_Caret_MoveXY(PyObject *self, PyObject *args, PyObject *kwargs) {
5022 PyObject *resultobj;
5023 wxCaret *arg1 = (wxCaret *) 0 ;
5024 int arg2 ;
5025 int arg3 ;
5026 PyObject * obj0 = 0 ;
5027 PyObject * obj1 = 0 ;
5028 PyObject * obj2 = 0 ;
5029 char *kwnames[] = {
5030 (char *) "self",(char *) "x",(char *) "y", NULL
5031 };
5032
5033 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Caret_MoveXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
5034 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
5035 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5036 arg2 = (int) SWIG_AsInt(obj1);
5037 if (PyErr_Occurred()) SWIG_fail;
5038 arg3 = (int) SWIG_AsInt(obj2);
5039 if (PyErr_Occurred()) SWIG_fail;
5040 {
5041 PyThreadState* __tstate = wxPyBeginAllowThreads();
5042 (arg1)->Move(arg2,arg3);
5043
5044 wxPyEndAllowThreads(__tstate);
5045 if (PyErr_Occurred()) SWIG_fail;
5046 }
5047 Py_INCREF(Py_None); resultobj = Py_None;
5048 return resultobj;
5049 fail:
5050 return NULL;
5051 }
5052
5053
5054 static PyObject *_wrap_Caret_Move(PyObject *self, PyObject *args, PyObject *kwargs) {
5055 PyObject *resultobj;
5056 wxCaret *arg1 = (wxCaret *) 0 ;
5057 wxPoint *arg2 = 0 ;
5058 wxPoint temp2 ;
5059 PyObject * obj0 = 0 ;
5060 PyObject * obj1 = 0 ;
5061 char *kwnames[] = {
5062 (char *) "self",(char *) "pt", NULL
5063 };
5064
5065 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Caret_Move",kwnames,&obj0,&obj1)) goto fail;
5066 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
5067 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5068 {
5069 arg2 = &temp2;
5070 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
5071 }
5072 {
5073 PyThreadState* __tstate = wxPyBeginAllowThreads();
5074 (arg1)->Move((wxPoint const &)*arg2);
5075
5076 wxPyEndAllowThreads(__tstate);
5077 if (PyErr_Occurred()) SWIG_fail;
5078 }
5079 Py_INCREF(Py_None); resultobj = Py_None;
5080 return resultobj;
5081 fail:
5082 return NULL;
5083 }
5084
5085
5086 static PyObject *_wrap_Caret_SetSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) {
5087 PyObject *resultobj;
5088 wxCaret *arg1 = (wxCaret *) 0 ;
5089 int arg2 ;
5090 int arg3 ;
5091 PyObject * obj0 = 0 ;
5092 PyObject * obj1 = 0 ;
5093 PyObject * obj2 = 0 ;
5094 char *kwnames[] = {
5095 (char *) "self",(char *) "width",(char *) "height", NULL
5096 };
5097
5098 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Caret_SetSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail;
5099 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
5100 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5101 arg2 = (int) SWIG_AsInt(obj1);
5102 if (PyErr_Occurred()) SWIG_fail;
5103 arg3 = (int) SWIG_AsInt(obj2);
5104 if (PyErr_Occurred()) SWIG_fail;
5105 {
5106 PyThreadState* __tstate = wxPyBeginAllowThreads();
5107 (arg1)->SetSize(arg2,arg3);
5108
5109 wxPyEndAllowThreads(__tstate);
5110 if (PyErr_Occurred()) SWIG_fail;
5111 }
5112 Py_INCREF(Py_None); resultobj = Py_None;
5113 return resultobj;
5114 fail:
5115 return NULL;
5116 }
5117
5118
5119 static PyObject *_wrap_Caret_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
5120 PyObject *resultobj;
5121 wxCaret *arg1 = (wxCaret *) 0 ;
5122 wxSize *arg2 = 0 ;
5123 wxSize temp2 ;
5124 PyObject * obj0 = 0 ;
5125 PyObject * obj1 = 0 ;
5126 char *kwnames[] = {
5127 (char *) "self",(char *) "size", NULL
5128 };
5129
5130 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Caret_SetSize",kwnames,&obj0,&obj1)) goto fail;
5131 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
5132 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5133 {
5134 arg2 = &temp2;
5135 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
5136 }
5137 {
5138 PyThreadState* __tstate = wxPyBeginAllowThreads();
5139 (arg1)->SetSize((wxSize const &)*arg2);
5140
5141 wxPyEndAllowThreads(__tstate);
5142 if (PyErr_Occurred()) SWIG_fail;
5143 }
5144 Py_INCREF(Py_None); resultobj = Py_None;
5145 return resultobj;
5146 fail:
5147 return NULL;
5148 }
5149
5150
5151 static PyObject *_wrap_Caret_Show(PyObject *self, PyObject *args, PyObject *kwargs) {
5152 PyObject *resultobj;
5153 wxCaret *arg1 = (wxCaret *) 0 ;
5154 int arg2 = (int) True ;
5155 PyObject * obj0 = 0 ;
5156 PyObject * obj1 = 0 ;
5157 char *kwnames[] = {
5158 (char *) "self",(char *) "show", NULL
5159 };
5160
5161 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Caret_Show",kwnames,&obj0,&obj1)) goto fail;
5162 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
5163 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5164 if (obj1) {
5165 arg2 = (int) SWIG_AsInt(obj1);
5166 if (PyErr_Occurred()) SWIG_fail;
5167 }
5168 {
5169 PyThreadState* __tstate = wxPyBeginAllowThreads();
5170 (arg1)->Show(arg2);
5171
5172 wxPyEndAllowThreads(__tstate);
5173 if (PyErr_Occurred()) SWIG_fail;
5174 }
5175 Py_INCREF(Py_None); resultobj = Py_None;
5176 return resultobj;
5177 fail:
5178 return NULL;
5179 }
5180
5181
5182 static PyObject *_wrap_Caret_Hide(PyObject *self, PyObject *args, PyObject *kwargs) {
5183 PyObject *resultobj;
5184 wxCaret *arg1 = (wxCaret *) 0 ;
5185 PyObject * obj0 = 0 ;
5186 char *kwnames[] = {
5187 (char *) "self", NULL
5188 };
5189
5190 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_Hide",kwnames,&obj0)) goto fail;
5191 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
5192 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5193 {
5194 PyThreadState* __tstate = wxPyBeginAllowThreads();
5195 (arg1)->Hide();
5196
5197 wxPyEndAllowThreads(__tstate);
5198 if (PyErr_Occurred()) SWIG_fail;
5199 }
5200 Py_INCREF(Py_None); resultobj = Py_None;
5201 return resultobj;
5202 fail:
5203 return NULL;
5204 }
5205
5206
5207 static PyObject * Caret_swigregister(PyObject *self, PyObject *args) {
5208 PyObject *obj;
5209 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5210 SWIG_TypeClientData(SWIGTYPE_p_wxCaret, obj);
5211 Py_INCREF(obj);
5212 return Py_BuildValue((char *)"");
5213 }
5214 static PyObject *_wrap_Caret_GetBlinkTime(PyObject *self, PyObject *args, PyObject *kwargs) {
5215 PyObject *resultobj;
5216 int result;
5217 char *kwnames[] = {
5218 NULL
5219 };
5220
5221 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Caret_GetBlinkTime",kwnames)) goto fail;
5222 {
5223 PyThreadState* __tstate = wxPyBeginAllowThreads();
5224 result = (int)wxCaret_GetBlinkTime();
5225
5226 wxPyEndAllowThreads(__tstate);
5227 if (PyErr_Occurred()) SWIG_fail;
5228 }
5229 resultobj = SWIG_FromInt((int)result);
5230 return resultobj;
5231 fail:
5232 return NULL;
5233 }
5234
5235
5236 static PyObject *_wrap_Caret_SetBlinkTime(PyObject *self, PyObject *args, PyObject *kwargs) {
5237 PyObject *resultobj;
5238 int arg1 ;
5239 PyObject * obj0 = 0 ;
5240 char *kwnames[] = {
5241 (char *) "milliseconds", NULL
5242 };
5243
5244 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_SetBlinkTime",kwnames,&obj0)) goto fail;
5245 arg1 = (int) SWIG_AsInt(obj0);
5246 if (PyErr_Occurred()) SWIG_fail;
5247 {
5248 PyThreadState* __tstate = wxPyBeginAllowThreads();
5249 wxCaret_SetBlinkTime(arg1);
5250
5251 wxPyEndAllowThreads(__tstate);
5252 if (PyErr_Occurred()) SWIG_fail;
5253 }
5254 Py_INCREF(Py_None); resultobj = Py_None;
5255 return resultobj;
5256 fail:
5257 return NULL;
5258 }
5259
5260
5261 static PyObject *_wrap_new_BusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
5262 PyObject *resultobj;
5263 wxCursor *arg1 = (wxCursor *) wxHOURGLASS_CURSOR ;
5264 wxBusyCursor *result;
5265 PyObject * obj0 = 0 ;
5266 char *kwnames[] = {
5267 (char *) "cursor", NULL
5268 };
5269
5270 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BusyCursor",kwnames,&obj0)) goto fail;
5271 if (obj0) {
5272 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
5273 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5274 }
5275 {
5276 if (!wxPyCheckForApp()) SWIG_fail;
5277 PyThreadState* __tstate = wxPyBeginAllowThreads();
5278 result = (wxBusyCursor *)new wxBusyCursor(arg1);
5279
5280 wxPyEndAllowThreads(__tstate);
5281 if (PyErr_Occurred()) SWIG_fail;
5282 }
5283 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBusyCursor, 1);
5284 return resultobj;
5285 fail:
5286 return NULL;
5287 }
5288
5289
5290 static PyObject *_wrap_delete_BusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
5291 PyObject *resultobj;
5292 wxBusyCursor *arg1 = (wxBusyCursor *) 0 ;
5293 PyObject * obj0 = 0 ;
5294 char *kwnames[] = {
5295 (char *) "self", NULL
5296 };
5297
5298 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BusyCursor",kwnames,&obj0)) goto fail;
5299 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBusyCursor,
5300 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5301 {
5302 PyThreadState* __tstate = wxPyBeginAllowThreads();
5303 delete arg1;
5304
5305 wxPyEndAllowThreads(__tstate);
5306 if (PyErr_Occurred()) SWIG_fail;
5307 }
5308 Py_INCREF(Py_None); resultobj = Py_None;
5309 return resultobj;
5310 fail:
5311 return NULL;
5312 }
5313
5314
5315 static PyObject * BusyCursor_swigregister(PyObject *self, PyObject *args) {
5316 PyObject *obj;
5317 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5318 SWIG_TypeClientData(SWIGTYPE_p_wxBusyCursor, obj);
5319 Py_INCREF(obj);
5320 return Py_BuildValue((char *)"");
5321 }
5322 static PyObject *_wrap_new_WindowDisabler(PyObject *self, PyObject *args, PyObject *kwargs) {
5323 PyObject *resultobj;
5324 wxWindow *arg1 = (wxWindow *) NULL ;
5325 wxWindowDisabler *result;
5326 PyObject * obj0 = 0 ;
5327 char *kwnames[] = {
5328 (char *) "winToSkip", NULL
5329 };
5330
5331 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_WindowDisabler",kwnames,&obj0)) goto fail;
5332 if (obj0) {
5333 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
5334 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5335 }
5336 {
5337 if (!wxPyCheckForApp()) SWIG_fail;
5338 PyThreadState* __tstate = wxPyBeginAllowThreads();
5339 result = (wxWindowDisabler *)new wxWindowDisabler(arg1);
5340
5341 wxPyEndAllowThreads(__tstate);
5342 if (PyErr_Occurred()) SWIG_fail;
5343 }
5344 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowDisabler, 1);
5345 return resultobj;
5346 fail:
5347 return NULL;
5348 }
5349
5350
5351 static PyObject *_wrap_delete_WindowDisabler(PyObject *self, PyObject *args, PyObject *kwargs) {
5352 PyObject *resultobj;
5353 wxWindowDisabler *arg1 = (wxWindowDisabler *) 0 ;
5354 PyObject * obj0 = 0 ;
5355 char *kwnames[] = {
5356 (char *) "self", NULL
5357 };
5358
5359 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_WindowDisabler",kwnames,&obj0)) goto fail;
5360 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindowDisabler,
5361 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5362 {
5363 PyThreadState* __tstate = wxPyBeginAllowThreads();
5364 delete arg1;
5365
5366 wxPyEndAllowThreads(__tstate);
5367 if (PyErr_Occurred()) SWIG_fail;
5368 }
5369 Py_INCREF(Py_None); resultobj = Py_None;
5370 return resultobj;
5371 fail:
5372 return NULL;
5373 }
5374
5375
5376 static PyObject * WindowDisabler_swigregister(PyObject *self, PyObject *args) {
5377 PyObject *obj;
5378 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5379 SWIG_TypeClientData(SWIGTYPE_p_wxWindowDisabler, obj);
5380 Py_INCREF(obj);
5381 return Py_BuildValue((char *)"");
5382 }
5383 static PyObject *_wrap_new_BusyInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
5384 PyObject *resultobj;
5385 wxString *arg1 = 0 ;
5386 wxBusyInfo *result;
5387 bool temp1 = False ;
5388 PyObject * obj0 = 0 ;
5389 char *kwnames[] = {
5390 (char *) "message", NULL
5391 };
5392
5393 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BusyInfo",kwnames,&obj0)) goto fail;
5394 {
5395 arg1 = wxString_in_helper(obj0);
5396 if (arg1 == NULL) SWIG_fail;
5397 temp1 = True;
5398 }
5399 {
5400 if (!wxPyCheckForApp()) SWIG_fail;
5401 PyThreadState* __tstate = wxPyBeginAllowThreads();
5402 result = (wxBusyInfo *)new wxBusyInfo((wxString const &)*arg1);
5403
5404 wxPyEndAllowThreads(__tstate);
5405 if (PyErr_Occurred()) SWIG_fail;
5406 }
5407 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBusyInfo, 1);
5408 {
5409 if (temp1)
5410 delete arg1;
5411 }
5412 return resultobj;
5413 fail:
5414 {
5415 if (temp1)
5416 delete arg1;
5417 }
5418 return NULL;
5419 }
5420
5421
5422 static PyObject *_wrap_delete_BusyInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
5423 PyObject *resultobj;
5424 wxBusyInfo *arg1 = (wxBusyInfo *) 0 ;
5425 PyObject * obj0 = 0 ;
5426 char *kwnames[] = {
5427 (char *) "self", NULL
5428 };
5429
5430 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BusyInfo",kwnames,&obj0)) goto fail;
5431 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBusyInfo,
5432 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5433 {
5434 PyThreadState* __tstate = wxPyBeginAllowThreads();
5435 delete arg1;
5436
5437 wxPyEndAllowThreads(__tstate);
5438 if (PyErr_Occurred()) SWIG_fail;
5439 }
5440 Py_INCREF(Py_None); resultobj = Py_None;
5441 return resultobj;
5442 fail:
5443 return NULL;
5444 }
5445
5446
5447 static PyObject * BusyInfo_swigregister(PyObject *self, PyObject *args) {
5448 PyObject *obj;
5449 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5450 SWIG_TypeClientData(SWIGTYPE_p_wxBusyInfo, obj);
5451 Py_INCREF(obj);
5452 return Py_BuildValue((char *)"");
5453 }
5454 static PyObject *_wrap_new_StopWatch(PyObject *self, PyObject *args, PyObject *kwargs) {
5455 PyObject *resultobj;
5456 wxStopWatch *result;
5457 char *kwnames[] = {
5458 NULL
5459 };
5460
5461 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_StopWatch",kwnames)) goto fail;
5462 {
5463 PyThreadState* __tstate = wxPyBeginAllowThreads();
5464 result = (wxStopWatch *)new wxStopWatch();
5465
5466 wxPyEndAllowThreads(__tstate);
5467 if (PyErr_Occurred()) SWIG_fail;
5468 }
5469 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStopWatch, 1);
5470 return resultobj;
5471 fail:
5472 return NULL;
5473 }
5474
5475
5476 static PyObject *_wrap_StopWatch_Start(PyObject *self, PyObject *args, PyObject *kwargs) {
5477 PyObject *resultobj;
5478 wxStopWatch *arg1 = (wxStopWatch *) 0 ;
5479 long arg2 = (long) 0 ;
5480 PyObject * obj0 = 0 ;
5481 PyObject * obj1 = 0 ;
5482 char *kwnames[] = {
5483 (char *) "self",(char *) "t0", NULL
5484 };
5485
5486 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:StopWatch_Start",kwnames,&obj0,&obj1)) goto fail;
5487 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch,
5488 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5489 if (obj1) {
5490 arg2 = (long) SWIG_AsLong(obj1);
5491 if (PyErr_Occurred()) SWIG_fail;
5492 }
5493 {
5494 PyThreadState* __tstate = wxPyBeginAllowThreads();
5495 (arg1)->Start(arg2);
5496
5497 wxPyEndAllowThreads(__tstate);
5498 if (PyErr_Occurred()) SWIG_fail;
5499 }
5500 Py_INCREF(Py_None); resultobj = Py_None;
5501 return resultobj;
5502 fail:
5503 return NULL;
5504 }
5505
5506
5507 static PyObject *_wrap_StopWatch_Pause(PyObject *self, PyObject *args, PyObject *kwargs) {
5508 PyObject *resultobj;
5509 wxStopWatch *arg1 = (wxStopWatch *) 0 ;
5510 PyObject * obj0 = 0 ;
5511 char *kwnames[] = {
5512 (char *) "self", NULL
5513 };
5514
5515 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Pause",kwnames,&obj0)) goto fail;
5516 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch,
5517 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5518 {
5519 PyThreadState* __tstate = wxPyBeginAllowThreads();
5520 (arg1)->Pause();
5521
5522 wxPyEndAllowThreads(__tstate);
5523 if (PyErr_Occurred()) SWIG_fail;
5524 }
5525 Py_INCREF(Py_None); resultobj = Py_None;
5526 return resultobj;
5527 fail:
5528 return NULL;
5529 }
5530
5531
5532 static PyObject *_wrap_StopWatch_Resume(PyObject *self, PyObject *args, PyObject *kwargs) {
5533 PyObject *resultobj;
5534 wxStopWatch *arg1 = (wxStopWatch *) 0 ;
5535 PyObject * obj0 = 0 ;
5536 char *kwnames[] = {
5537 (char *) "self", NULL
5538 };
5539
5540 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Resume",kwnames,&obj0)) goto fail;
5541 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch,
5542 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5543 {
5544 PyThreadState* __tstate = wxPyBeginAllowThreads();
5545 (arg1)->Resume();
5546
5547 wxPyEndAllowThreads(__tstate);
5548 if (PyErr_Occurred()) SWIG_fail;
5549 }
5550 Py_INCREF(Py_None); resultobj = Py_None;
5551 return resultobj;
5552 fail:
5553 return NULL;
5554 }
5555
5556
5557 static PyObject *_wrap_StopWatch_Time(PyObject *self, PyObject *args, PyObject *kwargs) {
5558 PyObject *resultobj;
5559 wxStopWatch *arg1 = (wxStopWatch *) 0 ;
5560 long result;
5561 PyObject * obj0 = 0 ;
5562 char *kwnames[] = {
5563 (char *) "self", NULL
5564 };
5565
5566 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Time",kwnames,&obj0)) goto fail;
5567 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch,
5568 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5569 {
5570 PyThreadState* __tstate = wxPyBeginAllowThreads();
5571 result = (long)((wxStopWatch const *)arg1)->Time();
5572
5573 wxPyEndAllowThreads(__tstate);
5574 if (PyErr_Occurred()) SWIG_fail;
5575 }
5576 resultobj = SWIG_FromLong((long)result);
5577 return resultobj;
5578 fail:
5579 return NULL;
5580 }
5581
5582
5583 static PyObject * StopWatch_swigregister(PyObject *self, PyObject *args) {
5584 PyObject *obj;
5585 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5586 SWIG_TypeClientData(SWIGTYPE_p_wxStopWatch, obj);
5587 Py_INCREF(obj);
5588 return Py_BuildValue((char *)"");
5589 }
5590 static PyObject *_wrap_new_FileHistory(PyObject *self, PyObject *args, PyObject *kwargs) {
5591 PyObject *resultobj;
5592 int arg1 = (int) 9 ;
5593 int arg2 = (int) wxID_FILE1 ;
5594 wxFileHistory *result;
5595 PyObject * obj0 = 0 ;
5596 PyObject * obj1 = 0 ;
5597 char *kwnames[] = {
5598 (char *) "maxFiles",(char *) "idBase", NULL
5599 };
5600
5601 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_FileHistory",kwnames,&obj0,&obj1)) goto fail;
5602 if (obj0) {
5603 arg1 = (int) SWIG_AsInt(obj0);
5604 if (PyErr_Occurred()) SWIG_fail;
5605 }
5606 if (obj1) {
5607 arg2 = (int) SWIG_AsInt(obj1);
5608 if (PyErr_Occurred()) SWIG_fail;
5609 }
5610 {
5611 PyThreadState* __tstate = wxPyBeginAllowThreads();
5612 result = (wxFileHistory *)new wxFileHistory(arg1,arg2);
5613
5614 wxPyEndAllowThreads(__tstate);
5615 if (PyErr_Occurred()) SWIG_fail;
5616 }
5617 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileHistory, 1);
5618 return resultobj;
5619 fail:
5620 return NULL;
5621 }
5622
5623
5624 static PyObject *_wrap_delete_FileHistory(PyObject *self, PyObject *args, PyObject *kwargs) {
5625 PyObject *resultobj;
5626 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5627 PyObject * obj0 = 0 ;
5628 char *kwnames[] = {
5629 (char *) "self", NULL
5630 };
5631
5632 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileHistory",kwnames,&obj0)) goto fail;
5633 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5634 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5635 {
5636 PyThreadState* __tstate = wxPyBeginAllowThreads();
5637 delete arg1;
5638
5639 wxPyEndAllowThreads(__tstate);
5640 if (PyErr_Occurred()) SWIG_fail;
5641 }
5642 Py_INCREF(Py_None); resultobj = Py_None;
5643 return resultobj;
5644 fail:
5645 return NULL;
5646 }
5647
5648
5649 static PyObject *_wrap_FileHistory_AddFileToHistory(PyObject *self, PyObject *args, PyObject *kwargs) {
5650 PyObject *resultobj;
5651 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5652 wxString *arg2 = 0 ;
5653 bool temp2 = False ;
5654 PyObject * obj0 = 0 ;
5655 PyObject * obj1 = 0 ;
5656 char *kwnames[] = {
5657 (char *) "self",(char *) "file", NULL
5658 };
5659
5660 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_AddFileToHistory",kwnames,&obj0,&obj1)) goto fail;
5661 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5662 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5663 {
5664 arg2 = wxString_in_helper(obj1);
5665 if (arg2 == NULL) SWIG_fail;
5666 temp2 = True;
5667 }
5668 {
5669 PyThreadState* __tstate = wxPyBeginAllowThreads();
5670 (arg1)->AddFileToHistory((wxString const &)*arg2);
5671
5672 wxPyEndAllowThreads(__tstate);
5673 if (PyErr_Occurred()) SWIG_fail;
5674 }
5675 Py_INCREF(Py_None); resultobj = Py_None;
5676 {
5677 if (temp2)
5678 delete arg2;
5679 }
5680 return resultobj;
5681 fail:
5682 {
5683 if (temp2)
5684 delete arg2;
5685 }
5686 return NULL;
5687 }
5688
5689
5690 static PyObject *_wrap_FileHistory_RemoveFileFromHistory(PyObject *self, PyObject *args, PyObject *kwargs) {
5691 PyObject *resultobj;
5692 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5693 int arg2 ;
5694 PyObject * obj0 = 0 ;
5695 PyObject * obj1 = 0 ;
5696 char *kwnames[] = {
5697 (char *) "self",(char *) "i", NULL
5698 };
5699
5700 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_RemoveFileFromHistory",kwnames,&obj0,&obj1)) goto fail;
5701 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5702 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5703 arg2 = (int) SWIG_AsInt(obj1);
5704 if (PyErr_Occurred()) SWIG_fail;
5705 {
5706 PyThreadState* __tstate = wxPyBeginAllowThreads();
5707 (arg1)->RemoveFileFromHistory(arg2);
5708
5709 wxPyEndAllowThreads(__tstate);
5710 if (PyErr_Occurred()) SWIG_fail;
5711 }
5712 Py_INCREF(Py_None); resultobj = Py_None;
5713 return resultobj;
5714 fail:
5715 return NULL;
5716 }
5717
5718
5719 static PyObject *_wrap_FileHistory_GetMaxFiles(PyObject *self, PyObject *args, PyObject *kwargs) {
5720 PyObject *resultobj;
5721 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5722 int result;
5723 PyObject * obj0 = 0 ;
5724 char *kwnames[] = {
5725 (char *) "self", NULL
5726 };
5727
5728 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_GetMaxFiles",kwnames,&obj0)) goto fail;
5729 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5730 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5731 {
5732 PyThreadState* __tstate = wxPyBeginAllowThreads();
5733 result = (int)((wxFileHistory const *)arg1)->GetMaxFiles();
5734
5735 wxPyEndAllowThreads(__tstate);
5736 if (PyErr_Occurred()) SWIG_fail;
5737 }
5738 resultobj = SWIG_FromInt((int)result);
5739 return resultobj;
5740 fail:
5741 return NULL;
5742 }
5743
5744
5745 static PyObject *_wrap_FileHistory_UseMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
5746 PyObject *resultobj;
5747 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5748 wxMenu *arg2 = (wxMenu *) 0 ;
5749 PyObject * obj0 = 0 ;
5750 PyObject * obj1 = 0 ;
5751 char *kwnames[] = {
5752 (char *) "self",(char *) "menu", NULL
5753 };
5754
5755 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_UseMenu",kwnames,&obj0,&obj1)) goto fail;
5756 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5757 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5758 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu,
5759 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5760 {
5761 PyThreadState* __tstate = wxPyBeginAllowThreads();
5762 (arg1)->UseMenu(arg2);
5763
5764 wxPyEndAllowThreads(__tstate);
5765 if (PyErr_Occurred()) SWIG_fail;
5766 }
5767 Py_INCREF(Py_None); resultobj = Py_None;
5768 return resultobj;
5769 fail:
5770 return NULL;
5771 }
5772
5773
5774 static PyObject *_wrap_FileHistory_RemoveMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
5775 PyObject *resultobj;
5776 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5777 wxMenu *arg2 = (wxMenu *) 0 ;
5778 PyObject * obj0 = 0 ;
5779 PyObject * obj1 = 0 ;
5780 char *kwnames[] = {
5781 (char *) "self",(char *) "menu", NULL
5782 };
5783
5784 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_RemoveMenu",kwnames,&obj0,&obj1)) goto fail;
5785 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5786 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5787 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu,
5788 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5789 {
5790 PyThreadState* __tstate = wxPyBeginAllowThreads();
5791 (arg1)->RemoveMenu(arg2);
5792
5793 wxPyEndAllowThreads(__tstate);
5794 if (PyErr_Occurred()) SWIG_fail;
5795 }
5796 Py_INCREF(Py_None); resultobj = Py_None;
5797 return resultobj;
5798 fail:
5799 return NULL;
5800 }
5801
5802
5803 static PyObject *_wrap_FileHistory_Load(PyObject *self, PyObject *args, PyObject *kwargs) {
5804 PyObject *resultobj;
5805 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5806 wxConfigBase *arg2 = 0 ;
5807 PyObject * obj0 = 0 ;
5808 PyObject * obj1 = 0 ;
5809 char *kwnames[] = {
5810 (char *) "self",(char *) "config", NULL
5811 };
5812
5813 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_Load",kwnames,&obj0,&obj1)) goto fail;
5814 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5815 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5816 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxConfigBase,
5817 SWIG_POINTER_EXCEPTION | 0)) == -1)
5818 SWIG_fail;
5819 if (arg2 == NULL) {
5820 PyErr_SetString(PyExc_TypeError,"null reference");
5821 SWIG_fail;
5822 }
5823 {
5824 PyThreadState* __tstate = wxPyBeginAllowThreads();
5825 (arg1)->Load(*arg2);
5826
5827 wxPyEndAllowThreads(__tstate);
5828 if (PyErr_Occurred()) SWIG_fail;
5829 }
5830 Py_INCREF(Py_None); resultobj = Py_None;
5831 return resultobj;
5832 fail:
5833 return NULL;
5834 }
5835
5836
5837 static PyObject *_wrap_FileHistory_Save(PyObject *self, PyObject *args, PyObject *kwargs) {
5838 PyObject *resultobj;
5839 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5840 wxConfigBase *arg2 = 0 ;
5841 PyObject * obj0 = 0 ;
5842 PyObject * obj1 = 0 ;
5843 char *kwnames[] = {
5844 (char *) "self",(char *) "config", NULL
5845 };
5846
5847 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_Save",kwnames,&obj0,&obj1)) goto fail;
5848 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5849 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5850 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxConfigBase,
5851 SWIG_POINTER_EXCEPTION | 0)) == -1)
5852 SWIG_fail;
5853 if (arg2 == NULL) {
5854 PyErr_SetString(PyExc_TypeError,"null reference");
5855 SWIG_fail;
5856 }
5857 {
5858 PyThreadState* __tstate = wxPyBeginAllowThreads();
5859 (arg1)->Save(*arg2);
5860
5861 wxPyEndAllowThreads(__tstate);
5862 if (PyErr_Occurred()) SWIG_fail;
5863 }
5864 Py_INCREF(Py_None); resultobj = Py_None;
5865 return resultobj;
5866 fail:
5867 return NULL;
5868 }
5869
5870
5871 static PyObject *_wrap_FileHistory_AddFilesToMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
5872 PyObject *resultobj;
5873 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5874 PyObject * obj0 = 0 ;
5875 char *kwnames[] = {
5876 (char *) "self", NULL
5877 };
5878
5879 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_AddFilesToMenu",kwnames,&obj0)) goto fail;
5880 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5881 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5882 {
5883 PyThreadState* __tstate = wxPyBeginAllowThreads();
5884 (arg1)->AddFilesToMenu();
5885
5886 wxPyEndAllowThreads(__tstate);
5887 if (PyErr_Occurred()) SWIG_fail;
5888 }
5889 Py_INCREF(Py_None); resultobj = Py_None;
5890 return resultobj;
5891 fail:
5892 return NULL;
5893 }
5894
5895
5896 static PyObject *_wrap_FileHistory_AddFilesToThisMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
5897 PyObject *resultobj;
5898 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5899 wxMenu *arg2 = (wxMenu *) 0 ;
5900 PyObject * obj0 = 0 ;
5901 PyObject * obj1 = 0 ;
5902 char *kwnames[] = {
5903 (char *) "self",(char *) "menu", NULL
5904 };
5905
5906 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_AddFilesToThisMenu",kwnames,&obj0,&obj1)) goto fail;
5907 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5908 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5909 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu,
5910 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5911 {
5912 PyThreadState* __tstate = wxPyBeginAllowThreads();
5913 (arg1)->AddFilesToMenu(arg2);
5914
5915 wxPyEndAllowThreads(__tstate);
5916 if (PyErr_Occurred()) SWIG_fail;
5917 }
5918 Py_INCREF(Py_None); resultobj = Py_None;
5919 return resultobj;
5920 fail:
5921 return NULL;
5922 }
5923
5924
5925 static PyObject *_wrap_FileHistory_GetHistoryFile(PyObject *self, PyObject *args, PyObject *kwargs) {
5926 PyObject *resultobj;
5927 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5928 int arg2 ;
5929 wxString result;
5930 PyObject * obj0 = 0 ;
5931 PyObject * obj1 = 0 ;
5932 char *kwnames[] = {
5933 (char *) "self",(char *) "i", NULL
5934 };
5935
5936 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_GetHistoryFile",kwnames,&obj0,&obj1)) goto fail;
5937 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5938 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5939 arg2 = (int) SWIG_AsInt(obj1);
5940 if (PyErr_Occurred()) SWIG_fail;
5941 {
5942 PyThreadState* __tstate = wxPyBeginAllowThreads();
5943 result = ((wxFileHistory const *)arg1)->GetHistoryFile(arg2);
5944
5945 wxPyEndAllowThreads(__tstate);
5946 if (PyErr_Occurred()) SWIG_fail;
5947 }
5948 {
5949 #if wxUSE_UNICODE
5950 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5951 #else
5952 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5953 #endif
5954 }
5955 return resultobj;
5956 fail:
5957 return NULL;
5958 }
5959
5960
5961 static PyObject *_wrap_FileHistory_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
5962 PyObject *resultobj;
5963 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5964 int result;
5965 PyObject * obj0 = 0 ;
5966 char *kwnames[] = {
5967 (char *) "self", NULL
5968 };
5969
5970 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_GetCount",kwnames,&obj0)) goto fail;
5971 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5972 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5973 {
5974 PyThreadState* __tstate = wxPyBeginAllowThreads();
5975 result = (int)((wxFileHistory const *)arg1)->GetCount();
5976
5977 wxPyEndAllowThreads(__tstate);
5978 if (PyErr_Occurred()) SWIG_fail;
5979 }
5980 resultobj = SWIG_FromInt((int)result);
5981 return resultobj;
5982 fail:
5983 return NULL;
5984 }
5985
5986
5987 static PyObject * FileHistory_swigregister(PyObject *self, PyObject *args) {
5988 PyObject *obj;
5989 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5990 SWIG_TypeClientData(SWIGTYPE_p_wxFileHistory, obj);
5991 Py_INCREF(obj);
5992 return Py_BuildValue((char *)"");
5993 }
5994 static PyObject *_wrap_new_SingleInstanceChecker(PyObject *self, PyObject *args, PyObject *kwargs) {
5995 PyObject *resultobj;
5996 wxString *arg1 = 0 ;
5997 wxString const &arg2_defvalue = wxPyEmptyString ;
5998 wxString *arg2 = (wxString *) &arg2_defvalue ;
5999 wxSingleInstanceChecker *result;
6000 bool temp1 = False ;
6001 bool temp2 = False ;
6002 PyObject * obj0 = 0 ;
6003 PyObject * obj1 = 0 ;
6004 char *kwnames[] = {
6005 (char *) "name",(char *) "path", NULL
6006 };
6007
6008 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_SingleInstanceChecker",kwnames,&obj0,&obj1)) goto fail;
6009 {
6010 arg1 = wxString_in_helper(obj0);
6011 if (arg1 == NULL) SWIG_fail;
6012 temp1 = True;
6013 }
6014 if (obj1) {
6015 {
6016 arg2 = wxString_in_helper(obj1);
6017 if (arg2 == NULL) SWIG_fail;
6018 temp2 = True;
6019 }
6020 }
6021 {
6022 PyThreadState* __tstate = wxPyBeginAllowThreads();
6023 result = (wxSingleInstanceChecker *)new wxSingleInstanceChecker((wxString const &)*arg1,(wxString const &)*arg2);
6024
6025 wxPyEndAllowThreads(__tstate);
6026 if (PyErr_Occurred()) SWIG_fail;
6027 }
6028 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSingleInstanceChecker, 1);
6029 {
6030 if (temp1)
6031 delete arg1;
6032 }
6033 {
6034 if (temp2)
6035 delete arg2;
6036 }
6037 return resultobj;
6038 fail:
6039 {
6040 if (temp1)
6041 delete arg1;
6042 }
6043 {
6044 if (temp2)
6045 delete arg2;
6046 }
6047 return NULL;
6048 }
6049
6050
6051 static PyObject *_wrap_new_PreSingleInstanceChecker(PyObject *self, PyObject *args, PyObject *kwargs) {
6052 PyObject *resultobj;
6053 wxSingleInstanceChecker *result;
6054 char *kwnames[] = {
6055 NULL
6056 };
6057
6058 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSingleInstanceChecker",kwnames)) goto fail;
6059 {
6060 PyThreadState* __tstate = wxPyBeginAllowThreads();
6061 result = (wxSingleInstanceChecker *)new wxSingleInstanceChecker();
6062
6063 wxPyEndAllowThreads(__tstate);
6064 if (PyErr_Occurred()) SWIG_fail;
6065 }
6066 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSingleInstanceChecker, 1);
6067 return resultobj;
6068 fail:
6069 return NULL;
6070 }
6071
6072
6073 static PyObject *_wrap_delete_SingleInstanceChecker(PyObject *self, PyObject *args, PyObject *kwargs) {
6074 PyObject *resultobj;
6075 wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ;
6076 PyObject * obj0 = 0 ;
6077 char *kwnames[] = {
6078 (char *) "self", NULL
6079 };
6080
6081 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_SingleInstanceChecker",kwnames,&obj0)) goto fail;
6082 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSingleInstanceChecker,
6083 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6084 {
6085 PyThreadState* __tstate = wxPyBeginAllowThreads();
6086 delete arg1;
6087
6088 wxPyEndAllowThreads(__tstate);
6089 if (PyErr_Occurred()) SWIG_fail;
6090 }
6091 Py_INCREF(Py_None); resultobj = Py_None;
6092 return resultobj;
6093 fail:
6094 return NULL;
6095 }
6096
6097
6098 static PyObject *_wrap_SingleInstanceChecker_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
6099 PyObject *resultobj;
6100 wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ;
6101 wxString *arg2 = 0 ;
6102 wxString const &arg3_defvalue = wxPyEmptyString ;
6103 wxString *arg3 = (wxString *) &arg3_defvalue ;
6104 bool result;
6105 bool temp2 = False ;
6106 bool temp3 = False ;
6107 PyObject * obj0 = 0 ;
6108 PyObject * obj1 = 0 ;
6109 PyObject * obj2 = 0 ;
6110 char *kwnames[] = {
6111 (char *) "self",(char *) "name",(char *) "path", NULL
6112 };
6113
6114 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:SingleInstanceChecker_Create",kwnames,&obj0,&obj1,&obj2)) goto fail;
6115 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSingleInstanceChecker,
6116 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6117 {
6118 arg2 = wxString_in_helper(obj1);
6119 if (arg2 == NULL) SWIG_fail;
6120 temp2 = True;
6121 }
6122 if (obj2) {
6123 {
6124 arg3 = wxString_in_helper(obj2);
6125 if (arg3 == NULL) SWIG_fail;
6126 temp3 = True;
6127 }
6128 }
6129 {
6130 PyThreadState* __tstate = wxPyBeginAllowThreads();
6131 result = (bool)(arg1)->Create((wxString const &)*arg2,(wxString const &)*arg3);
6132
6133 wxPyEndAllowThreads(__tstate);
6134 if (PyErr_Occurred()) SWIG_fail;
6135 }
6136 {
6137 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6138 }
6139 {
6140 if (temp2)
6141 delete arg2;
6142 }
6143 {
6144 if (temp3)
6145 delete arg3;
6146 }
6147 return resultobj;
6148 fail:
6149 {
6150 if (temp2)
6151 delete arg2;
6152 }
6153 {
6154 if (temp3)
6155 delete arg3;
6156 }
6157 return NULL;
6158 }
6159
6160
6161 static PyObject *_wrap_SingleInstanceChecker_IsAnotherRunning(PyObject *self, PyObject *args, PyObject *kwargs) {
6162 PyObject *resultobj;
6163 wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ;
6164 bool result;
6165 PyObject * obj0 = 0 ;
6166 char *kwnames[] = {
6167 (char *) "self", NULL
6168 };
6169
6170 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SingleInstanceChecker_IsAnotherRunning",kwnames,&obj0)) goto fail;
6171 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSingleInstanceChecker,
6172 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6173 {
6174 PyThreadState* __tstate = wxPyBeginAllowThreads();
6175 result = (bool)((wxSingleInstanceChecker const *)arg1)->IsAnotherRunning();
6176
6177 wxPyEndAllowThreads(__tstate);
6178 if (PyErr_Occurred()) SWIG_fail;
6179 }
6180 {
6181 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6182 }
6183 return resultobj;
6184 fail:
6185 return NULL;
6186 }
6187
6188
6189 static PyObject * SingleInstanceChecker_swigregister(PyObject *self, PyObject *args) {
6190 PyObject *obj;
6191 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6192 SWIG_TypeClientData(SWIGTYPE_p_wxSingleInstanceChecker, obj);
6193 Py_INCREF(obj);
6194 return Py_BuildValue((char *)"");
6195 }
6196 static PyObject *_wrap_DrawWindowOnDC(PyObject *self, PyObject *args, PyObject *kwargs) {
6197 PyObject *resultobj;
6198 wxWindow *arg1 = (wxWindow *) 0 ;
6199 wxDC *arg2 = 0 ;
6200 int arg3 ;
6201 PyObject * obj0 = 0 ;
6202 PyObject * obj1 = 0 ;
6203 PyObject * obj2 = 0 ;
6204 char *kwnames[] = {
6205 (char *) "window",(char *) "dc",(char *) "method", NULL
6206 };
6207
6208 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DrawWindowOnDC",kwnames,&obj0,&obj1,&obj2)) goto fail;
6209 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
6210 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6211 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC,
6212 SWIG_POINTER_EXCEPTION | 0)) == -1)
6213 SWIG_fail;
6214 if (arg2 == NULL) {
6215 PyErr_SetString(PyExc_TypeError,"null reference");
6216 SWIG_fail;
6217 }
6218 arg3 = (int) SWIG_AsInt(obj2);
6219 if (PyErr_Occurred()) SWIG_fail;
6220 {
6221 PyThreadState* __tstate = wxPyBeginAllowThreads();
6222 wxDrawWindowOnDC(arg1,(wxDC const &)*arg2,arg3);
6223
6224 wxPyEndAllowThreads(__tstate);
6225 if (PyErr_Occurred()) SWIG_fail;
6226 }
6227 Py_INCREF(Py_None); resultobj = Py_None;
6228 return resultobj;
6229 fail:
6230 return NULL;
6231 }
6232
6233
6234 static PyObject *_wrap_delete_TipProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
6235 PyObject *resultobj;
6236 wxTipProvider *arg1 = (wxTipProvider *) 0 ;
6237 PyObject * obj0 = 0 ;
6238 char *kwnames[] = {
6239 (char *) "self", NULL
6240 };
6241
6242 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TipProvider",kwnames,&obj0)) goto fail;
6243 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider,
6244 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6245 {
6246 PyThreadState* __tstate = wxPyBeginAllowThreads();
6247 delete arg1;
6248
6249 wxPyEndAllowThreads(__tstate);
6250 if (PyErr_Occurred()) SWIG_fail;
6251 }
6252 Py_INCREF(Py_None); resultobj = Py_None;
6253 return resultobj;
6254 fail:
6255 return NULL;
6256 }
6257
6258
6259 static PyObject *_wrap_TipProvider_GetTip(PyObject *self, PyObject *args, PyObject *kwargs) {
6260 PyObject *resultobj;
6261 wxTipProvider *arg1 = (wxTipProvider *) 0 ;
6262 wxString result;
6263 PyObject * obj0 = 0 ;
6264 char *kwnames[] = {
6265 (char *) "self", NULL
6266 };
6267
6268 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TipProvider_GetTip",kwnames,&obj0)) goto fail;
6269 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider,
6270 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6271 {
6272 PyThreadState* __tstate = wxPyBeginAllowThreads();
6273 result = (arg1)->GetTip();
6274
6275 wxPyEndAllowThreads(__tstate);
6276 if (PyErr_Occurred()) SWIG_fail;
6277 }
6278 {
6279 #if wxUSE_UNICODE
6280 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6281 #else
6282 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6283 #endif
6284 }
6285 return resultobj;
6286 fail:
6287 return NULL;
6288 }
6289
6290
6291 static PyObject *_wrap_TipProvider_GetCurrentTip(PyObject *self, PyObject *args, PyObject *kwargs) {
6292 PyObject *resultobj;
6293 wxTipProvider *arg1 = (wxTipProvider *) 0 ;
6294 size_t result;
6295 PyObject * obj0 = 0 ;
6296 char *kwnames[] = {
6297 (char *) "self", NULL
6298 };
6299
6300 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TipProvider_GetCurrentTip",kwnames,&obj0)) goto fail;
6301 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider,
6302 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6303 {
6304 PyThreadState* __tstate = wxPyBeginAllowThreads();
6305 result = (size_t)(arg1)->GetCurrentTip();
6306
6307 wxPyEndAllowThreads(__tstate);
6308 if (PyErr_Occurred()) SWIG_fail;
6309 }
6310 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
6311 return resultobj;
6312 fail:
6313 return NULL;
6314 }
6315
6316
6317 static PyObject *_wrap_TipProvider_PreprocessTip(PyObject *self, PyObject *args, PyObject *kwargs) {
6318 PyObject *resultobj;
6319 wxTipProvider *arg1 = (wxTipProvider *) 0 ;
6320 wxString *arg2 = 0 ;
6321 wxString result;
6322 bool temp2 = False ;
6323 PyObject * obj0 = 0 ;
6324 PyObject * obj1 = 0 ;
6325 char *kwnames[] = {
6326 (char *) "self",(char *) "tip", NULL
6327 };
6328
6329 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TipProvider_PreprocessTip",kwnames,&obj0,&obj1)) goto fail;
6330 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider,
6331 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6332 {
6333 arg2 = wxString_in_helper(obj1);
6334 if (arg2 == NULL) SWIG_fail;
6335 temp2 = True;
6336 }
6337 {
6338 PyThreadState* __tstate = wxPyBeginAllowThreads();
6339 result = (arg1)->PreprocessTip((wxString const &)*arg2);
6340
6341 wxPyEndAllowThreads(__tstate);
6342 if (PyErr_Occurred()) SWIG_fail;
6343 }
6344 {
6345 #if wxUSE_UNICODE
6346 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6347 #else
6348 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6349 #endif
6350 }
6351 {
6352 if (temp2)
6353 delete arg2;
6354 }
6355 return resultobj;
6356 fail:
6357 {
6358 if (temp2)
6359 delete arg2;
6360 }
6361 return NULL;
6362 }
6363
6364
6365 static PyObject * TipProvider_swigregister(PyObject *self, PyObject *args) {
6366 PyObject *obj;
6367 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6368 SWIG_TypeClientData(SWIGTYPE_p_wxTipProvider, obj);
6369 Py_INCREF(obj);
6370 return Py_BuildValue((char *)"");
6371 }
6372 static PyObject *_wrap_new_PyTipProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
6373 PyObject *resultobj;
6374 size_t arg1 ;
6375 wxPyTipProvider *result;
6376 PyObject * obj0 = 0 ;
6377 char *kwnames[] = {
6378 (char *) "currentTip", NULL
6379 };
6380
6381 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PyTipProvider",kwnames,&obj0)) goto fail;
6382 arg1 = (size_t) SWIG_AsUnsignedLong(obj0);
6383 if (PyErr_Occurred()) SWIG_fail;
6384 {
6385 PyThreadState* __tstate = wxPyBeginAllowThreads();
6386 result = (wxPyTipProvider *)new wxPyTipProvider(arg1);
6387
6388 wxPyEndAllowThreads(__tstate);
6389 if (PyErr_Occurred()) SWIG_fail;
6390 }
6391 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTipProvider, 1);
6392 return resultobj;
6393 fail:
6394 return NULL;
6395 }
6396
6397
6398 static PyObject *_wrap_PyTipProvider__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6399 PyObject *resultobj;
6400 wxPyTipProvider *arg1 = (wxPyTipProvider *) 0 ;
6401 PyObject *arg2 = (PyObject *) 0 ;
6402 PyObject *arg3 = (PyObject *) 0 ;
6403 PyObject * obj0 = 0 ;
6404 PyObject * obj1 = 0 ;
6405 PyObject * obj2 = 0 ;
6406 char *kwnames[] = {
6407 (char *) "self",(char *) "self",(char *) "_class", NULL
6408 };
6409
6410 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyTipProvider__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
6411 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTipProvider,
6412 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6413 arg2 = obj1;
6414 arg3 = obj2;
6415 {
6416 PyThreadState* __tstate = wxPyBeginAllowThreads();
6417 (arg1)->_setCallbackInfo(arg2,arg3);
6418
6419 wxPyEndAllowThreads(__tstate);
6420 if (PyErr_Occurred()) SWIG_fail;
6421 }
6422 Py_INCREF(Py_None); resultobj = Py_None;
6423 return resultobj;
6424 fail:
6425 return NULL;
6426 }
6427
6428
6429 static PyObject * PyTipProvider_swigregister(PyObject *self, PyObject *args) {
6430 PyObject *obj;
6431 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6432 SWIG_TypeClientData(SWIGTYPE_p_wxPyTipProvider, obj);
6433 Py_INCREF(obj);
6434 return Py_BuildValue((char *)"");
6435 }
6436 static PyObject *_wrap_ShowTip(PyObject *self, PyObject *args, PyObject *kwargs) {
6437 PyObject *resultobj;
6438 wxWindow *arg1 = (wxWindow *) 0 ;
6439 wxTipProvider *arg2 = (wxTipProvider *) 0 ;
6440 bool arg3 = (bool) True ;
6441 bool result;
6442 PyObject * obj0 = 0 ;
6443 PyObject * obj1 = 0 ;
6444 PyObject * obj2 = 0 ;
6445 char *kwnames[] = {
6446 (char *) "parent",(char *) "tipProvider",(char *) "showAtStartup", NULL
6447 };
6448
6449 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ShowTip",kwnames,&obj0,&obj1,&obj2)) goto fail;
6450 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
6451 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6452 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTipProvider,
6453 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6454 if (obj2) {
6455 arg3 = (bool) SWIG_AsBool(obj2);
6456 if (PyErr_Occurred()) SWIG_fail;
6457 }
6458 {
6459 if (!wxPyCheckForApp()) SWIG_fail;
6460 PyThreadState* __tstate = wxPyBeginAllowThreads();
6461 result = (bool)wxShowTip(arg1,arg2,arg3);
6462
6463 wxPyEndAllowThreads(__tstate);
6464 if (PyErr_Occurred()) SWIG_fail;
6465 }
6466 {
6467 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6468 }
6469 return resultobj;
6470 fail:
6471 return NULL;
6472 }
6473
6474
6475 static PyObject *_wrap_CreateFileTipProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
6476 PyObject *resultobj;
6477 wxString *arg1 = 0 ;
6478 size_t arg2 ;
6479 wxTipProvider *result;
6480 bool temp1 = False ;
6481 PyObject * obj0 = 0 ;
6482 PyObject * obj1 = 0 ;
6483 char *kwnames[] = {
6484 (char *) "filename",(char *) "currentTip", NULL
6485 };
6486
6487 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CreateFileTipProvider",kwnames,&obj0,&obj1)) goto fail;
6488 {
6489 arg1 = wxString_in_helper(obj0);
6490 if (arg1 == NULL) SWIG_fail;
6491 temp1 = True;
6492 }
6493 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
6494 if (PyErr_Occurred()) SWIG_fail;
6495 {
6496 if (!wxPyCheckForApp()) SWIG_fail;
6497 PyThreadState* __tstate = wxPyBeginAllowThreads();
6498 result = (wxTipProvider *)wxCreateFileTipProvider((wxString const &)*arg1,arg2);
6499
6500 wxPyEndAllowThreads(__tstate);
6501 if (PyErr_Occurred()) SWIG_fail;
6502 }
6503 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTipProvider, 1);
6504 {
6505 if (temp1)
6506 delete arg1;
6507 }
6508 return resultobj;
6509 fail:
6510 {
6511 if (temp1)
6512 delete arg1;
6513 }
6514 return NULL;
6515 }
6516
6517
6518 static PyObject *_wrap_new_Timer(PyObject *self, PyObject *args, PyObject *kwargs) {
6519 PyObject *resultobj;
6520 wxEvtHandler *arg1 = (wxEvtHandler *) NULL ;
6521 int arg2 = (int) -1 ;
6522 wxPyTimer *result;
6523 PyObject * obj0 = 0 ;
6524 PyObject * obj1 = 0 ;
6525 char *kwnames[] = {
6526 (char *) "owner",(char *) "id", NULL
6527 };
6528
6529 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Timer",kwnames,&obj0,&obj1)) goto fail;
6530 if (obj0) {
6531 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler,
6532 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6533 }
6534 if (obj1) {
6535 arg2 = (int) SWIG_AsInt(obj1);
6536 if (PyErr_Occurred()) SWIG_fail;
6537 }
6538 {
6539 if (!wxPyCheckForApp()) SWIG_fail;
6540 PyThreadState* __tstate = wxPyBeginAllowThreads();
6541 result = (wxPyTimer *)new wxPyTimer(arg1,arg2);
6542
6543 wxPyEndAllowThreads(__tstate);
6544 if (PyErr_Occurred()) SWIG_fail;
6545 }
6546 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTimer, 1);
6547 return resultobj;
6548 fail:
6549 return NULL;
6550 }
6551
6552
6553 static PyObject *_wrap_delete_Timer(PyObject *self, PyObject *args, PyObject *kwargs) {
6554 PyObject *resultobj;
6555 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6556 PyObject * obj0 = 0 ;
6557 char *kwnames[] = {
6558 (char *) "self", NULL
6559 };
6560
6561 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Timer",kwnames,&obj0)) goto fail;
6562 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6563 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6564 {
6565 PyThreadState* __tstate = wxPyBeginAllowThreads();
6566 delete arg1;
6567
6568 wxPyEndAllowThreads(__tstate);
6569 if (PyErr_Occurred()) SWIG_fail;
6570 }
6571 Py_INCREF(Py_None); resultobj = Py_None;
6572 return resultobj;
6573 fail:
6574 return NULL;
6575 }
6576
6577
6578 static PyObject *_wrap_Timer__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6579 PyObject *resultobj;
6580 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6581 PyObject *arg2 = (PyObject *) 0 ;
6582 PyObject *arg3 = (PyObject *) 0 ;
6583 int arg4 = (int) 1 ;
6584 PyObject * obj0 = 0 ;
6585 PyObject * obj1 = 0 ;
6586 PyObject * obj2 = 0 ;
6587 PyObject * obj3 = 0 ;
6588 char *kwnames[] = {
6589 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
6590 };
6591
6592 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Timer__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
6593 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6594 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6595 arg2 = obj1;
6596 arg3 = obj2;
6597 if (obj3) {
6598 arg4 = (int) SWIG_AsInt(obj3);
6599 if (PyErr_Occurred()) SWIG_fail;
6600 }
6601 {
6602 PyThreadState* __tstate = wxPyBeginAllowThreads();
6603 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
6604
6605 wxPyEndAllowThreads(__tstate);
6606 if (PyErr_Occurred()) SWIG_fail;
6607 }
6608 Py_INCREF(Py_None); resultobj = Py_None;
6609 return resultobj;
6610 fail:
6611 return NULL;
6612 }
6613
6614
6615 static PyObject *_wrap_Timer_SetOwner(PyObject *self, PyObject *args, PyObject *kwargs) {
6616 PyObject *resultobj;
6617 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6618 wxEvtHandler *arg2 = (wxEvtHandler *) 0 ;
6619 int arg3 = (int) -1 ;
6620 PyObject * obj0 = 0 ;
6621 PyObject * obj1 = 0 ;
6622 PyObject * obj2 = 0 ;
6623 char *kwnames[] = {
6624 (char *) "self",(char *) "owner",(char *) "id", NULL
6625 };
6626
6627 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Timer_SetOwner",kwnames,&obj0,&obj1,&obj2)) goto fail;
6628 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6629 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6630 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler,
6631 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6632 if (obj2) {
6633 arg3 = (int) SWIG_AsInt(obj2);
6634 if (PyErr_Occurred()) SWIG_fail;
6635 }
6636 {
6637 PyThreadState* __tstate = wxPyBeginAllowThreads();
6638 (arg1)->SetOwner(arg2,arg3);
6639
6640 wxPyEndAllowThreads(__tstate);
6641 if (PyErr_Occurred()) SWIG_fail;
6642 }
6643 Py_INCREF(Py_None); resultobj = Py_None;
6644 return resultobj;
6645 fail:
6646 return NULL;
6647 }
6648
6649
6650 static PyObject *_wrap_Timer_GetOwner(PyObject *self, PyObject *args, PyObject *kwargs) {
6651 PyObject *resultobj;
6652 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6653 wxEvtHandler *result;
6654 PyObject * obj0 = 0 ;
6655 char *kwnames[] = {
6656 (char *) "self", NULL
6657 };
6658
6659 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_GetOwner",kwnames,&obj0)) goto fail;
6660 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6661 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6662 {
6663 PyThreadState* __tstate = wxPyBeginAllowThreads();
6664 result = (wxEvtHandler *)(arg1)->GetOwner();
6665
6666 wxPyEndAllowThreads(__tstate);
6667 if (PyErr_Occurred()) SWIG_fail;
6668 }
6669 {
6670 resultobj = wxPyMake_wxObject(result, 0);
6671 }
6672 return resultobj;
6673 fail:
6674 return NULL;
6675 }
6676
6677
6678 static PyObject *_wrap_Timer_Start(PyObject *self, PyObject *args, PyObject *kwargs) {
6679 PyObject *resultobj;
6680 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6681 int arg2 = (int) -1 ;
6682 bool arg3 = (bool) False ;
6683 bool result;
6684 PyObject * obj0 = 0 ;
6685 PyObject * obj1 = 0 ;
6686 PyObject * obj2 = 0 ;
6687 char *kwnames[] = {
6688 (char *) "self",(char *) "milliseconds",(char *) "oneShot", NULL
6689 };
6690
6691 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Timer_Start",kwnames,&obj0,&obj1,&obj2)) goto fail;
6692 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6693 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6694 if (obj1) {
6695 arg2 = (int) SWIG_AsInt(obj1);
6696 if (PyErr_Occurred()) SWIG_fail;
6697 }
6698 if (obj2) {
6699 arg3 = (bool) SWIG_AsBool(obj2);
6700 if (PyErr_Occurred()) SWIG_fail;
6701 }
6702 {
6703 PyThreadState* __tstate = wxPyBeginAllowThreads();
6704 result = (bool)(arg1)->Start(arg2,arg3);
6705
6706 wxPyEndAllowThreads(__tstate);
6707 if (PyErr_Occurred()) SWIG_fail;
6708 }
6709 {
6710 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6711 }
6712 return resultobj;
6713 fail:
6714 return NULL;
6715 }
6716
6717
6718 static PyObject *_wrap_Timer_Stop(PyObject *self, PyObject *args, PyObject *kwargs) {
6719 PyObject *resultobj;
6720 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6721 PyObject * obj0 = 0 ;
6722 char *kwnames[] = {
6723 (char *) "self", NULL
6724 };
6725
6726 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_Stop",kwnames,&obj0)) goto fail;
6727 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6728 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6729 {
6730 PyThreadState* __tstate = wxPyBeginAllowThreads();
6731 (arg1)->Stop();
6732
6733 wxPyEndAllowThreads(__tstate);
6734 if (PyErr_Occurred()) SWIG_fail;
6735 }
6736 Py_INCREF(Py_None); resultobj = Py_None;
6737 return resultobj;
6738 fail:
6739 return NULL;
6740 }
6741
6742
6743 static PyObject *_wrap_Timer_IsRunning(PyObject *self, PyObject *args, PyObject *kwargs) {
6744 PyObject *resultobj;
6745 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6746 bool result;
6747 PyObject * obj0 = 0 ;
6748 char *kwnames[] = {
6749 (char *) "self", NULL
6750 };
6751
6752 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_IsRunning",kwnames,&obj0)) goto fail;
6753 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6754 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6755 {
6756 PyThreadState* __tstate = wxPyBeginAllowThreads();
6757 result = (bool)((wxPyTimer const *)arg1)->IsRunning();
6758
6759 wxPyEndAllowThreads(__tstate);
6760 if (PyErr_Occurred()) SWIG_fail;
6761 }
6762 {
6763 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6764 }
6765 return resultobj;
6766 fail:
6767 return NULL;
6768 }
6769
6770
6771 static PyObject *_wrap_Timer_GetInterval(PyObject *self, PyObject *args, PyObject *kwargs) {
6772 PyObject *resultobj;
6773 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6774 int result;
6775 PyObject * obj0 = 0 ;
6776 char *kwnames[] = {
6777 (char *) "self", NULL
6778 };
6779
6780 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_GetInterval",kwnames,&obj0)) goto fail;
6781 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6782 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6783 {
6784 PyThreadState* __tstate = wxPyBeginAllowThreads();
6785 result = (int)((wxPyTimer const *)arg1)->GetInterval();
6786
6787 wxPyEndAllowThreads(__tstate);
6788 if (PyErr_Occurred()) SWIG_fail;
6789 }
6790 resultobj = SWIG_FromInt((int)result);
6791 return resultobj;
6792 fail:
6793 return NULL;
6794 }
6795
6796
6797 static PyObject *_wrap_Timer_IsOneShot(PyObject *self, PyObject *args, PyObject *kwargs) {
6798 PyObject *resultobj;
6799 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6800 bool result;
6801 PyObject * obj0 = 0 ;
6802 char *kwnames[] = {
6803 (char *) "self", NULL
6804 };
6805
6806 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_IsOneShot",kwnames,&obj0)) goto fail;
6807 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6808 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6809 {
6810 PyThreadState* __tstate = wxPyBeginAllowThreads();
6811 result = (bool)((wxPyTimer const *)arg1)->IsOneShot();
6812
6813 wxPyEndAllowThreads(__tstate);
6814 if (PyErr_Occurred()) SWIG_fail;
6815 }
6816 {
6817 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6818 }
6819 return resultobj;
6820 fail:
6821 return NULL;
6822 }
6823
6824
6825 static PyObject *_wrap_Timer_GetId(PyObject *self, PyObject *args, PyObject *kwargs) {
6826 PyObject *resultobj;
6827 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6828 int result;
6829 PyObject * obj0 = 0 ;
6830 char *kwnames[] = {
6831 (char *) "self", NULL
6832 };
6833
6834 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_GetId",kwnames,&obj0)) goto fail;
6835 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6836 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6837 {
6838 PyThreadState* __tstate = wxPyBeginAllowThreads();
6839 result = (int)((wxPyTimer const *)arg1)->GetId();
6840
6841 wxPyEndAllowThreads(__tstate);
6842 if (PyErr_Occurred()) SWIG_fail;
6843 }
6844 resultobj = SWIG_FromInt((int)result);
6845 return resultobj;
6846 fail:
6847 return NULL;
6848 }
6849
6850
6851 static PyObject * Timer_swigregister(PyObject *self, PyObject *args) {
6852 PyObject *obj;
6853 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6854 SWIG_TypeClientData(SWIGTYPE_p_wxPyTimer, obj);
6855 Py_INCREF(obj);
6856 return Py_BuildValue((char *)"");
6857 }
6858 static PyObject *_wrap_new_TimerEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
6859 PyObject *resultobj;
6860 int arg1 = (int) 0 ;
6861 int arg2 = (int) 0 ;
6862 wxTimerEvent *result;
6863 PyObject * obj0 = 0 ;
6864 PyObject * obj1 = 0 ;
6865 char *kwnames[] = {
6866 (char *) "timerid",(char *) "interval", NULL
6867 };
6868
6869 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_TimerEvent",kwnames,&obj0,&obj1)) goto fail;
6870 if (obj0) {
6871 arg1 = (int) SWIG_AsInt(obj0);
6872 if (PyErr_Occurred()) SWIG_fail;
6873 }
6874 if (obj1) {
6875 arg2 = (int) SWIG_AsInt(obj1);
6876 if (PyErr_Occurred()) SWIG_fail;
6877 }
6878 {
6879 PyThreadState* __tstate = wxPyBeginAllowThreads();
6880 result = (wxTimerEvent *)new wxTimerEvent(arg1,arg2);
6881
6882 wxPyEndAllowThreads(__tstate);
6883 if (PyErr_Occurred()) SWIG_fail;
6884 }
6885 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimerEvent, 1);
6886 return resultobj;
6887 fail:
6888 return NULL;
6889 }
6890
6891
6892 static PyObject *_wrap_TimerEvent_GetInterval(PyObject *self, PyObject *args, PyObject *kwargs) {
6893 PyObject *resultobj;
6894 wxTimerEvent *arg1 = (wxTimerEvent *) 0 ;
6895 int result;
6896 PyObject * obj0 = 0 ;
6897 char *kwnames[] = {
6898 (char *) "self", NULL
6899 };
6900
6901 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimerEvent_GetInterval",kwnames,&obj0)) goto fail;
6902 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimerEvent,
6903 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6904 {
6905 PyThreadState* __tstate = wxPyBeginAllowThreads();
6906 result = (int)((wxTimerEvent const *)arg1)->GetInterval();
6907
6908 wxPyEndAllowThreads(__tstate);
6909 if (PyErr_Occurred()) SWIG_fail;
6910 }
6911 resultobj = SWIG_FromInt((int)result);
6912 return resultobj;
6913 fail:
6914 return NULL;
6915 }
6916
6917
6918 static PyObject * TimerEvent_swigregister(PyObject *self, PyObject *args) {
6919 PyObject *obj;
6920 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6921 SWIG_TypeClientData(SWIGTYPE_p_wxTimerEvent, obj);
6922 Py_INCREF(obj);
6923 return Py_BuildValue((char *)"");
6924 }
6925 static PyObject *_wrap_new_TimerRunner__SWIG_0(PyObject *self, PyObject *args) {
6926 PyObject *resultobj;
6927 wxTimer *arg1 = 0 ;
6928 wxTimerRunner *result;
6929 PyObject * obj0 = 0 ;
6930
6931 if(!PyArg_ParseTuple(args,(char *)"O:new_TimerRunner",&obj0)) goto fail;
6932 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimer,
6933 SWIG_POINTER_EXCEPTION | 0)) == -1)
6934 SWIG_fail;
6935 if (arg1 == NULL) {
6936 PyErr_SetString(PyExc_TypeError,"null reference");
6937 SWIG_fail;
6938 }
6939 {
6940 if (!wxPyCheckForApp()) SWIG_fail;
6941 PyThreadState* __tstate = wxPyBeginAllowThreads();
6942 result = (wxTimerRunner *)new wxTimerRunner(*arg1);
6943
6944 wxPyEndAllowThreads(__tstate);
6945 if (PyErr_Occurred()) SWIG_fail;
6946 }
6947 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimerRunner, 1);
6948 return resultobj;
6949 fail:
6950 return NULL;
6951 }
6952
6953
6954 static PyObject *_wrap_new_TimerRunner__SWIG_1(PyObject *self, PyObject *args) {
6955 PyObject *resultobj;
6956 wxTimer *arg1 = 0 ;
6957 int arg2 ;
6958 bool arg3 = (bool) False ;
6959 wxTimerRunner *result;
6960 PyObject * obj0 = 0 ;
6961 PyObject * obj1 = 0 ;
6962 PyObject * obj2 = 0 ;
6963
6964 if(!PyArg_ParseTuple(args,(char *)"OO|O:new_TimerRunner",&obj0,&obj1,&obj2)) goto fail;
6965 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimer,
6966 SWIG_POINTER_EXCEPTION | 0)) == -1)
6967 SWIG_fail;
6968 if (arg1 == NULL) {
6969 PyErr_SetString(PyExc_TypeError,"null reference");
6970 SWIG_fail;
6971 }
6972 arg2 = (int) SWIG_AsInt(obj1);
6973 if (PyErr_Occurred()) SWIG_fail;
6974 if (obj2) {
6975 arg3 = (bool) SWIG_AsBool(obj2);
6976 if (PyErr_Occurred()) SWIG_fail;
6977 }
6978 {
6979 if (!wxPyCheckForApp()) SWIG_fail;
6980 PyThreadState* __tstate = wxPyBeginAllowThreads();
6981 result = (wxTimerRunner *)new wxTimerRunner(*arg1,arg2,arg3);
6982
6983 wxPyEndAllowThreads(__tstate);
6984 if (PyErr_Occurred()) SWIG_fail;
6985 }
6986 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimerRunner, 1);
6987 return resultobj;
6988 fail:
6989 return NULL;
6990 }
6991
6992
6993 static PyObject *_wrap_new_TimerRunner(PyObject *self, PyObject *args) {
6994 int argc;
6995 PyObject *argv[4];
6996 int ii;
6997
6998 argc = PyObject_Length(args);
6999 for (ii = 0; (ii < argc) && (ii < 3); ii++) {
7000 argv[ii] = PyTuple_GetItem(args,ii);
7001 }
7002 if (argc == 1) {
7003 int _v;
7004 {
7005 void *ptr;
7006 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxTimer, 0) == -1) {
7007 _v = 0;
7008 PyErr_Clear();
7009 } else {
7010 _v = 1;
7011 }
7012 }
7013 if (_v) {
7014 return _wrap_new_TimerRunner__SWIG_0(self,args);
7015 }
7016 }
7017 if ((argc >= 2) && (argc <= 3)) {
7018 int _v;
7019 {
7020 void *ptr;
7021 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxTimer, 0) == -1) {
7022 _v = 0;
7023 PyErr_Clear();
7024 } else {
7025 _v = 1;
7026 }
7027 }
7028 if (_v) {
7029 _v = SWIG_CheckInt(argv[1]);
7030 if (_v) {
7031 if (argc <= 2) {
7032 return _wrap_new_TimerRunner__SWIG_1(self,args);
7033 }
7034 _v = SWIG_CheckBool(argv[2]);
7035 if (_v) {
7036 return _wrap_new_TimerRunner__SWIG_1(self,args);
7037 }
7038 }
7039 }
7040 }
7041
7042 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_TimerRunner'");
7043 return NULL;
7044 }
7045
7046
7047 static PyObject *_wrap_delete_TimerRunner(PyObject *self, PyObject *args, PyObject *kwargs) {
7048 PyObject *resultobj;
7049 wxTimerRunner *arg1 = (wxTimerRunner *) 0 ;
7050 PyObject * obj0 = 0 ;
7051 char *kwnames[] = {
7052 (char *) "self", NULL
7053 };
7054
7055 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TimerRunner",kwnames,&obj0)) goto fail;
7056 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimerRunner,
7057 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7058 {
7059 PyThreadState* __tstate = wxPyBeginAllowThreads();
7060 delete arg1;
7061
7062 wxPyEndAllowThreads(__tstate);
7063 if (PyErr_Occurred()) SWIG_fail;
7064 }
7065 Py_INCREF(Py_None); resultobj = Py_None;
7066 return resultobj;
7067 fail:
7068 return NULL;
7069 }
7070
7071
7072 static PyObject *_wrap_TimerRunner_Start(PyObject *self, PyObject *args, PyObject *kwargs) {
7073 PyObject *resultobj;
7074 wxTimerRunner *arg1 = (wxTimerRunner *) 0 ;
7075 int arg2 ;
7076 bool arg3 = (bool) False ;
7077 PyObject * obj0 = 0 ;
7078 PyObject * obj1 = 0 ;
7079 PyObject * obj2 = 0 ;
7080 char *kwnames[] = {
7081 (char *) "self",(char *) "milli",(char *) "oneShot", NULL
7082 };
7083
7084 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TimerRunner_Start",kwnames,&obj0,&obj1,&obj2)) goto fail;
7085 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimerRunner,
7086 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7087 arg2 = (int) SWIG_AsInt(obj1);
7088 if (PyErr_Occurred()) SWIG_fail;
7089 if (obj2) {
7090 arg3 = (bool) SWIG_AsBool(obj2);
7091 if (PyErr_Occurred()) SWIG_fail;
7092 }
7093 {
7094 PyThreadState* __tstate = wxPyBeginAllowThreads();
7095 (arg1)->Start(arg2,arg3);
7096
7097 wxPyEndAllowThreads(__tstate);
7098 if (PyErr_Occurred()) SWIG_fail;
7099 }
7100 Py_INCREF(Py_None); resultobj = Py_None;
7101 return resultobj;
7102 fail:
7103 return NULL;
7104 }
7105
7106
7107 static PyObject * TimerRunner_swigregister(PyObject *self, PyObject *args) {
7108 PyObject *obj;
7109 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7110 SWIG_TypeClientData(SWIGTYPE_p_wxTimerRunner, obj);
7111 Py_INCREF(obj);
7112 return Py_BuildValue((char *)"");
7113 }
7114 static PyObject *_wrap_new_Log(PyObject *self, PyObject *args, PyObject *kwargs) {
7115 PyObject *resultobj;
7116 wxLog *result;
7117 char *kwnames[] = {
7118 NULL
7119 };
7120
7121 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Log",kwnames)) goto fail;
7122 {
7123 PyThreadState* __tstate = wxPyBeginAllowThreads();
7124 result = (wxLog *)new wxLog();
7125
7126 wxPyEndAllowThreads(__tstate);
7127 if (PyErr_Occurred()) SWIG_fail;
7128 }
7129 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 1);
7130 return resultobj;
7131 fail:
7132 return NULL;
7133 }
7134
7135
7136 static PyObject *_wrap_Log_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
7137 PyObject *resultobj;
7138 bool result;
7139 char *kwnames[] = {
7140 NULL
7141 };
7142
7143 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_IsEnabled",kwnames)) goto fail;
7144 {
7145 PyThreadState* __tstate = wxPyBeginAllowThreads();
7146 result = (bool)wxLog::IsEnabled();
7147
7148 wxPyEndAllowThreads(__tstate);
7149 if (PyErr_Occurred()) SWIG_fail;
7150 }
7151 {
7152 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7153 }
7154 return resultobj;
7155 fail:
7156 return NULL;
7157 }
7158
7159
7160 static PyObject *_wrap_Log_EnableLogging(PyObject *self, PyObject *args, PyObject *kwargs) {
7161 PyObject *resultobj;
7162 bool arg1 = (bool) True ;
7163 bool result;
7164 PyObject * obj0 = 0 ;
7165 char *kwnames[] = {
7166 (char *) "doIt", NULL
7167 };
7168
7169 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Log_EnableLogging",kwnames,&obj0)) goto fail;
7170 if (obj0) {
7171 arg1 = (bool) SWIG_AsBool(obj0);
7172 if (PyErr_Occurred()) SWIG_fail;
7173 }
7174 {
7175 PyThreadState* __tstate = wxPyBeginAllowThreads();
7176 result = (bool)wxLog::EnableLogging(arg1);
7177
7178 wxPyEndAllowThreads(__tstate);
7179 if (PyErr_Occurred()) SWIG_fail;
7180 }
7181 {
7182 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7183 }
7184 return resultobj;
7185 fail:
7186 return NULL;
7187 }
7188
7189
7190 static PyObject *_wrap_Log_OnLog(PyObject *self, PyObject *args, PyObject *kwargs) {
7191 PyObject *resultobj;
7192 wxLogLevel arg1 ;
7193 wxChar *arg2 = (wxChar *) 0 ;
7194 time_t arg3 ;
7195 PyObject * obj0 = 0 ;
7196 PyObject * obj1 = 0 ;
7197 PyObject * obj2 = 0 ;
7198 char *kwnames[] = {
7199 (char *) "level",(char *) "szString",(char *) "t", NULL
7200 };
7201
7202 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Log_OnLog",kwnames,&obj0,&obj1,&obj2)) goto fail;
7203 arg1 = (wxLogLevel) SWIG_AsUnsignedLong(obj0);
7204 if (PyErr_Occurred()) SWIG_fail;
7205 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxChar,
7206 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7207 arg3 = (time_t) SWIG_AsUnsignedInt(obj2);
7208 if (PyErr_Occurred()) SWIG_fail;
7209 {
7210 PyThreadState* __tstate = wxPyBeginAllowThreads();
7211 wxLog::OnLog(arg1,(wxChar const *)arg2,arg3);
7212
7213 wxPyEndAllowThreads(__tstate);
7214 if (PyErr_Occurred()) SWIG_fail;
7215 }
7216 Py_INCREF(Py_None); resultobj = Py_None;
7217 return resultobj;
7218 fail:
7219 return NULL;
7220 }
7221
7222
7223 static PyObject *_wrap_Log_Flush(PyObject *self, PyObject *args, PyObject *kwargs) {
7224 PyObject *resultobj;
7225 wxLog *arg1 = (wxLog *) 0 ;
7226 PyObject * obj0 = 0 ;
7227 char *kwnames[] = {
7228 (char *) "self", NULL
7229 };
7230
7231 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_Flush",kwnames,&obj0)) goto fail;
7232 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog,
7233 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7234 {
7235 PyThreadState* __tstate = wxPyBeginAllowThreads();
7236 (arg1)->Flush();
7237
7238 wxPyEndAllowThreads(__tstate);
7239 if (PyErr_Occurred()) SWIG_fail;
7240 }
7241 Py_INCREF(Py_None); resultobj = Py_None;
7242 return resultobj;
7243 fail:
7244 return NULL;
7245 }
7246
7247
7248 static PyObject *_wrap_Log_FlushActive(PyObject *self, PyObject *args, PyObject *kwargs) {
7249 PyObject *resultobj;
7250 char *kwnames[] = {
7251 NULL
7252 };
7253
7254 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_FlushActive",kwnames)) goto fail;
7255 {
7256 PyThreadState* __tstate = wxPyBeginAllowThreads();
7257 wxLog::FlushActive();
7258
7259 wxPyEndAllowThreads(__tstate);
7260 if (PyErr_Occurred()) SWIG_fail;
7261 }
7262 Py_INCREF(Py_None); resultobj = Py_None;
7263 return resultobj;
7264 fail:
7265 return NULL;
7266 }
7267
7268
7269 static PyObject *_wrap_Log_GetActiveTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
7270 PyObject *resultobj;
7271 wxLog *result;
7272 char *kwnames[] = {
7273 NULL
7274 };
7275
7276 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetActiveTarget",kwnames)) goto fail;
7277 {
7278 PyThreadState* __tstate = wxPyBeginAllowThreads();
7279 result = (wxLog *)wxLog::GetActiveTarget();
7280
7281 wxPyEndAllowThreads(__tstate);
7282 if (PyErr_Occurred()) SWIG_fail;
7283 }
7284 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0);
7285 return resultobj;
7286 fail:
7287 return NULL;
7288 }
7289
7290
7291 static PyObject *_wrap_Log_SetActiveTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
7292 PyObject *resultobj;
7293 wxLog *arg1 = (wxLog *) 0 ;
7294 wxLog *result;
7295 PyObject * obj0 = 0 ;
7296 char *kwnames[] = {
7297 (char *) "pLogger", NULL
7298 };
7299
7300 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetActiveTarget",kwnames,&obj0)) goto fail;
7301 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog,
7302 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7303 {
7304 PyThreadState* __tstate = wxPyBeginAllowThreads();
7305 result = (wxLog *)wxLog::SetActiveTarget(arg1);
7306
7307 wxPyEndAllowThreads(__tstate);
7308 if (PyErr_Occurred()) SWIG_fail;
7309 }
7310 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0);
7311 return resultobj;
7312 fail:
7313 return NULL;
7314 }
7315
7316
7317 static PyObject *_wrap_Log_Suspend(PyObject *self, PyObject *args, PyObject *kwargs) {
7318 PyObject *resultobj;
7319 char *kwnames[] = {
7320 NULL
7321 };
7322
7323 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_Suspend",kwnames)) goto fail;
7324 {
7325 PyThreadState* __tstate = wxPyBeginAllowThreads();
7326 wxLog::Suspend();
7327
7328 wxPyEndAllowThreads(__tstate);
7329 if (PyErr_Occurred()) SWIG_fail;
7330 }
7331 Py_INCREF(Py_None); resultobj = Py_None;
7332 return resultobj;
7333 fail:
7334 return NULL;
7335 }
7336
7337
7338 static PyObject *_wrap_Log_Resume(PyObject *self, PyObject *args, PyObject *kwargs) {
7339 PyObject *resultobj;
7340 char *kwnames[] = {
7341 NULL
7342 };
7343
7344 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_Resume",kwnames)) goto fail;
7345 {
7346 PyThreadState* __tstate = wxPyBeginAllowThreads();
7347 wxLog::Resume();
7348
7349 wxPyEndAllowThreads(__tstate);
7350 if (PyErr_Occurred()) SWIG_fail;
7351 }
7352 Py_INCREF(Py_None); resultobj = Py_None;
7353 return resultobj;
7354 fail:
7355 return NULL;
7356 }
7357
7358
7359 static PyObject *_wrap_Log_SetVerbose(PyObject *self, PyObject *args, PyObject *kwargs) {
7360 PyObject *resultobj;
7361 bool arg1 = (bool) True ;
7362 PyObject * obj0 = 0 ;
7363 char *kwnames[] = {
7364 (char *) "bVerbose", NULL
7365 };
7366
7367 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Log_SetVerbose",kwnames,&obj0)) goto fail;
7368 if (obj0) {
7369 arg1 = (bool) SWIG_AsBool(obj0);
7370 if (PyErr_Occurred()) SWIG_fail;
7371 }
7372 {
7373 PyThreadState* __tstate = wxPyBeginAllowThreads();
7374 wxLog::SetVerbose(arg1);
7375
7376 wxPyEndAllowThreads(__tstate);
7377 if (PyErr_Occurred()) SWIG_fail;
7378 }
7379 Py_INCREF(Py_None); resultobj = Py_None;
7380 return resultobj;
7381 fail:
7382 return NULL;
7383 }
7384
7385
7386 static PyObject *_wrap_Log_SetLogLevel(PyObject *self, PyObject *args, PyObject *kwargs) {
7387 PyObject *resultobj;
7388 wxLogLevel arg1 ;
7389 PyObject * obj0 = 0 ;
7390 char *kwnames[] = {
7391 (char *) "logLevel", NULL
7392 };
7393
7394 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetLogLevel",kwnames,&obj0)) goto fail;
7395 arg1 = (wxLogLevel) SWIG_AsUnsignedLong(obj0);
7396 if (PyErr_Occurred()) SWIG_fail;
7397 {
7398 PyThreadState* __tstate = wxPyBeginAllowThreads();
7399 wxLog::SetLogLevel(arg1);
7400
7401 wxPyEndAllowThreads(__tstate);
7402 if (PyErr_Occurred()) SWIG_fail;
7403 }
7404 Py_INCREF(Py_None); resultobj = Py_None;
7405 return resultobj;
7406 fail:
7407 return NULL;
7408 }
7409
7410
7411 static PyObject *_wrap_Log_DontCreateOnDemand(PyObject *self, PyObject *args, PyObject *kwargs) {
7412 PyObject *resultobj;
7413 char *kwnames[] = {
7414 NULL
7415 };
7416
7417 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_DontCreateOnDemand",kwnames)) goto fail;
7418 {
7419 PyThreadState* __tstate = wxPyBeginAllowThreads();
7420 wxLog::DontCreateOnDemand();
7421
7422 wxPyEndAllowThreads(__tstate);
7423 if (PyErr_Occurred()) SWIG_fail;
7424 }
7425 Py_INCREF(Py_None); resultobj = Py_None;
7426 return resultobj;
7427 fail:
7428 return NULL;
7429 }
7430
7431
7432 static PyObject *_wrap_Log_SetTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) {
7433 PyObject *resultobj;
7434 wxTraceMask arg1 ;
7435 PyObject * obj0 = 0 ;
7436 char *kwnames[] = {
7437 (char *) "ulMask", NULL
7438 };
7439
7440 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetTraceMask",kwnames,&obj0)) goto fail;
7441 arg1 = (wxTraceMask) SWIG_AsUnsignedLong(obj0);
7442 if (PyErr_Occurred()) SWIG_fail;
7443 {
7444 PyThreadState* __tstate = wxPyBeginAllowThreads();
7445 wxLog::SetTraceMask(arg1);
7446
7447 wxPyEndAllowThreads(__tstate);
7448 if (PyErr_Occurred()) SWIG_fail;
7449 }
7450 Py_INCREF(Py_None); resultobj = Py_None;
7451 return resultobj;
7452 fail:
7453 return NULL;
7454 }
7455
7456
7457 static PyObject *_wrap_Log_AddTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) {
7458 PyObject *resultobj;
7459 wxString *arg1 = 0 ;
7460 bool temp1 = False ;
7461 PyObject * obj0 = 0 ;
7462 char *kwnames[] = {
7463 (char *) "str", NULL
7464 };
7465
7466 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_AddTraceMask",kwnames,&obj0)) goto fail;
7467 {
7468 arg1 = wxString_in_helper(obj0);
7469 if (arg1 == NULL) SWIG_fail;
7470 temp1 = True;
7471 }
7472 {
7473 PyThreadState* __tstate = wxPyBeginAllowThreads();
7474 wxLog::AddTraceMask((wxString const &)*arg1);
7475
7476 wxPyEndAllowThreads(__tstate);
7477 if (PyErr_Occurred()) SWIG_fail;
7478 }
7479 Py_INCREF(Py_None); resultobj = Py_None;
7480 {
7481 if (temp1)
7482 delete arg1;
7483 }
7484 return resultobj;
7485 fail:
7486 {
7487 if (temp1)
7488 delete arg1;
7489 }
7490 return NULL;
7491 }
7492
7493
7494 static PyObject *_wrap_Log_RemoveTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) {
7495 PyObject *resultobj;
7496 wxString *arg1 = 0 ;
7497 bool temp1 = False ;
7498 PyObject * obj0 = 0 ;
7499 char *kwnames[] = {
7500 (char *) "str", NULL
7501 };
7502
7503 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_RemoveTraceMask",kwnames,&obj0)) goto fail;
7504 {
7505 arg1 = wxString_in_helper(obj0);
7506 if (arg1 == NULL) SWIG_fail;
7507 temp1 = True;
7508 }
7509 {
7510 PyThreadState* __tstate = wxPyBeginAllowThreads();
7511 wxLog::RemoveTraceMask((wxString const &)*arg1);
7512
7513 wxPyEndAllowThreads(__tstate);
7514 if (PyErr_Occurred()) SWIG_fail;
7515 }
7516 Py_INCREF(Py_None); resultobj = Py_None;
7517 {
7518 if (temp1)
7519 delete arg1;
7520 }
7521 return resultobj;
7522 fail:
7523 {
7524 if (temp1)
7525 delete arg1;
7526 }
7527 return NULL;
7528 }
7529
7530
7531 static PyObject *_wrap_Log_ClearTraceMasks(PyObject *self, PyObject *args, PyObject *kwargs) {
7532 PyObject *resultobj;
7533 char *kwnames[] = {
7534 NULL
7535 };
7536
7537 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_ClearTraceMasks",kwnames)) goto fail;
7538 {
7539 PyThreadState* __tstate = wxPyBeginAllowThreads();
7540 wxLog::ClearTraceMasks();
7541
7542 wxPyEndAllowThreads(__tstate);
7543 if (PyErr_Occurred()) SWIG_fail;
7544 }
7545 Py_INCREF(Py_None); resultobj = Py_None;
7546 return resultobj;
7547 fail:
7548 return NULL;
7549 }
7550
7551
7552 static PyObject *_wrap_Log_GetTraceMasks(PyObject *self, PyObject *args, PyObject *kwargs) {
7553 PyObject *resultobj;
7554 wxArrayString *result;
7555 char *kwnames[] = {
7556 NULL
7557 };
7558
7559 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTraceMasks",kwnames)) goto fail;
7560 {
7561 PyThreadState* __tstate = wxPyBeginAllowThreads();
7562 {
7563 wxArrayString const &_result_ref = wxLog::GetTraceMasks();
7564 result = (wxArrayString *) &_result_ref;
7565 }
7566
7567 wxPyEndAllowThreads(__tstate);
7568 if (PyErr_Occurred()) SWIG_fail;
7569 }
7570 {
7571 resultobj = wxArrayString2PyList_helper(*result);
7572 }
7573 return resultobj;
7574 fail:
7575 return NULL;
7576 }
7577
7578
7579 static PyObject *_wrap_Log_SetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) {
7580 PyObject *resultobj;
7581 wxChar *arg1 = (wxChar *) 0 ;
7582 PyObject * obj0 = 0 ;
7583 char *kwnames[] = {
7584 (char *) "ts", NULL
7585 };
7586
7587 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetTimestamp",kwnames,&obj0)) goto fail;
7588 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChar,
7589 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7590 {
7591 PyThreadState* __tstate = wxPyBeginAllowThreads();
7592 wxLog::SetTimestamp((wxChar const *)arg1);
7593
7594 wxPyEndAllowThreads(__tstate);
7595 if (PyErr_Occurred()) SWIG_fail;
7596 }
7597 Py_INCREF(Py_None); resultobj = Py_None;
7598 return resultobj;
7599 fail:
7600 return NULL;
7601 }
7602
7603
7604 static PyObject *_wrap_Log_GetVerbose(PyObject *self, PyObject *args, PyObject *kwargs) {
7605 PyObject *resultobj;
7606 bool result;
7607 char *kwnames[] = {
7608 NULL
7609 };
7610
7611 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetVerbose",kwnames)) goto fail;
7612 {
7613 PyThreadState* __tstate = wxPyBeginAllowThreads();
7614 result = (bool)wxLog::GetVerbose();
7615
7616 wxPyEndAllowThreads(__tstate);
7617 if (PyErr_Occurred()) SWIG_fail;
7618 }
7619 {
7620 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7621 }
7622 return resultobj;
7623 fail:
7624 return NULL;
7625 }
7626
7627
7628 static PyObject *_wrap_Log_GetTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) {
7629 PyObject *resultobj;
7630 wxTraceMask result;
7631 char *kwnames[] = {
7632 NULL
7633 };
7634
7635 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTraceMask",kwnames)) goto fail;
7636 {
7637 PyThreadState* __tstate = wxPyBeginAllowThreads();
7638 result = (wxTraceMask)wxLog::GetTraceMask();
7639
7640 wxPyEndAllowThreads(__tstate);
7641 if (PyErr_Occurred()) SWIG_fail;
7642 }
7643 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
7644 return resultobj;
7645 fail:
7646 return NULL;
7647 }
7648
7649
7650 static PyObject *_wrap_Log_IsAllowedTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) {
7651 PyObject *resultobj;
7652 wxChar *arg1 = (wxChar *) 0 ;
7653 bool result;
7654 PyObject * obj0 = 0 ;
7655 char *kwnames[] = {
7656 (char *) "mask", NULL
7657 };
7658
7659 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_IsAllowedTraceMask",kwnames,&obj0)) goto fail;
7660 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChar,
7661 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7662 {
7663 PyThreadState* __tstate = wxPyBeginAllowThreads();
7664 result = (bool)wxLog::IsAllowedTraceMask((wxChar const *)arg1);
7665
7666 wxPyEndAllowThreads(__tstate);
7667 if (PyErr_Occurred()) SWIG_fail;
7668 }
7669 {
7670 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7671 }
7672 return resultobj;
7673 fail:
7674 return NULL;
7675 }
7676
7677
7678 static PyObject *_wrap_Log_GetLogLevel(PyObject *self, PyObject *args, PyObject *kwargs) {
7679 PyObject *resultobj;
7680 wxLogLevel result;
7681 char *kwnames[] = {
7682 NULL
7683 };
7684
7685 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetLogLevel",kwnames)) goto fail;
7686 {
7687 PyThreadState* __tstate = wxPyBeginAllowThreads();
7688 result = (wxLogLevel)wxLog::GetLogLevel();
7689
7690 wxPyEndAllowThreads(__tstate);
7691 if (PyErr_Occurred()) SWIG_fail;
7692 }
7693 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
7694 return resultobj;
7695 fail:
7696 return NULL;
7697 }
7698
7699
7700 static PyObject *_wrap_Log_GetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) {
7701 PyObject *resultobj;
7702 wxChar *result;
7703 char *kwnames[] = {
7704 NULL
7705 };
7706
7707 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTimestamp",kwnames)) goto fail;
7708 {
7709 PyThreadState* __tstate = wxPyBeginAllowThreads();
7710 result = (wxChar *)wxLog::GetTimestamp();
7711
7712 wxPyEndAllowThreads(__tstate);
7713 if (PyErr_Occurred()) SWIG_fail;
7714 }
7715 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChar, 0);
7716 return resultobj;
7717 fail:
7718 return NULL;
7719 }
7720
7721
7722 static PyObject *_wrap_Log_TimeStamp(PyObject *self, PyObject *args, PyObject *kwargs) {
7723 PyObject *resultobj;
7724 wxString result;
7725 char *kwnames[] = {
7726 NULL
7727 };
7728
7729 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_TimeStamp",kwnames)) goto fail;
7730 {
7731 PyThreadState* __tstate = wxPyBeginAllowThreads();
7732 result = Log_TimeStamp();
7733
7734 wxPyEndAllowThreads(__tstate);
7735 if (PyErr_Occurred()) SWIG_fail;
7736 }
7737 {
7738 #if wxUSE_UNICODE
7739 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7740 #else
7741 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7742 #endif
7743 }
7744 return resultobj;
7745 fail:
7746 return NULL;
7747 }
7748
7749
7750 static PyObject *_wrap_Log_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
7751 PyObject *resultobj;
7752 wxLog *arg1 = (wxLog *) 0 ;
7753 PyObject * obj0 = 0 ;
7754 char *kwnames[] = {
7755 (char *) "self", NULL
7756 };
7757
7758 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_Destroy",kwnames,&obj0)) goto fail;
7759 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog,
7760 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7761 {
7762 PyThreadState* __tstate = wxPyBeginAllowThreads();
7763 wxLog_Destroy(arg1);
7764
7765 wxPyEndAllowThreads(__tstate);
7766 if (PyErr_Occurred()) SWIG_fail;
7767 }
7768 Py_INCREF(Py_None); resultobj = Py_None;
7769 return resultobj;
7770 fail:
7771 return NULL;
7772 }
7773
7774
7775 static PyObject * Log_swigregister(PyObject *self, PyObject *args) {
7776 PyObject *obj;
7777 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7778 SWIG_TypeClientData(SWIGTYPE_p_wxLog, obj);
7779 Py_INCREF(obj);
7780 return Py_BuildValue((char *)"");
7781 }
7782 static PyObject *_wrap_new_LogStderr(PyObject *self, PyObject *args, PyObject *kwargs) {
7783 PyObject *resultobj;
7784 wxLogStderr *result;
7785 char *kwnames[] = {
7786 NULL
7787 };
7788
7789 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogStderr",kwnames)) goto fail;
7790 {
7791 PyThreadState* __tstate = wxPyBeginAllowThreads();
7792 result = (wxLogStderr *)new wxLogStderr();
7793
7794 wxPyEndAllowThreads(__tstate);
7795 if (PyErr_Occurred()) SWIG_fail;
7796 }
7797 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogStderr, 1);
7798 return resultobj;
7799 fail:
7800 return NULL;
7801 }
7802
7803
7804 static PyObject * LogStderr_swigregister(PyObject *self, PyObject *args) {
7805 PyObject *obj;
7806 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7807 SWIG_TypeClientData(SWIGTYPE_p_wxLogStderr, obj);
7808 Py_INCREF(obj);
7809 return Py_BuildValue((char *)"");
7810 }
7811 static PyObject *_wrap_new_LogTextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
7812 PyObject *resultobj;
7813 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
7814 wxLogTextCtrl *result;
7815 PyObject * obj0 = 0 ;
7816 char *kwnames[] = {
7817 (char *) "pTextCtrl", NULL
7818 };
7819
7820 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_LogTextCtrl",kwnames,&obj0)) goto fail;
7821 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
7822 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7823 {
7824 PyThreadState* __tstate = wxPyBeginAllowThreads();
7825 result = (wxLogTextCtrl *)new wxLogTextCtrl(arg1);
7826
7827 wxPyEndAllowThreads(__tstate);
7828 if (PyErr_Occurred()) SWIG_fail;
7829 }
7830 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogTextCtrl, 1);
7831 return resultobj;
7832 fail:
7833 return NULL;
7834 }
7835
7836
7837 static PyObject * LogTextCtrl_swigregister(PyObject *self, PyObject *args) {
7838 PyObject *obj;
7839 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7840 SWIG_TypeClientData(SWIGTYPE_p_wxLogTextCtrl, obj);
7841 Py_INCREF(obj);
7842 return Py_BuildValue((char *)"");
7843 }
7844 static PyObject *_wrap_new_LogGui(PyObject *self, PyObject *args, PyObject *kwargs) {
7845 PyObject *resultobj;
7846 wxLogGui *result;
7847 char *kwnames[] = {
7848 NULL
7849 };
7850
7851 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogGui",kwnames)) goto fail;
7852 {
7853 PyThreadState* __tstate = wxPyBeginAllowThreads();
7854 result = (wxLogGui *)new wxLogGui();
7855
7856 wxPyEndAllowThreads(__tstate);
7857 if (PyErr_Occurred()) SWIG_fail;
7858 }
7859 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogGui, 1);
7860 return resultobj;
7861 fail:
7862 return NULL;
7863 }
7864
7865
7866 static PyObject * LogGui_swigregister(PyObject *self, PyObject *args) {
7867 PyObject *obj;
7868 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7869 SWIG_TypeClientData(SWIGTYPE_p_wxLogGui, obj);
7870 Py_INCREF(obj);
7871 return Py_BuildValue((char *)"");
7872 }
7873 static PyObject *_wrap_new_LogWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
7874 PyObject *resultobj;
7875 wxFrame *arg1 = (wxFrame *) 0 ;
7876 wxString *arg2 = 0 ;
7877 bool arg3 = (bool) True ;
7878 bool arg4 = (bool) True ;
7879 wxLogWindow *result;
7880 bool temp2 = False ;
7881 PyObject * obj0 = 0 ;
7882 PyObject * obj1 = 0 ;
7883 PyObject * obj2 = 0 ;
7884 PyObject * obj3 = 0 ;
7885 char *kwnames[] = {
7886 (char *) "pParent",(char *) "szTitle",(char *) "bShow",(char *) "bPassToOld", NULL
7887 };
7888
7889 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_LogWindow",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
7890 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame,
7891 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7892 {
7893 arg2 = wxString_in_helper(obj1);
7894 if (arg2 == NULL) SWIG_fail;
7895 temp2 = True;
7896 }
7897 if (obj2) {
7898 arg3 = (bool) SWIG_AsBool(obj2);
7899 if (PyErr_Occurred()) SWIG_fail;
7900 }
7901 if (obj3) {
7902 arg4 = (bool) SWIG_AsBool(obj3);
7903 if (PyErr_Occurred()) SWIG_fail;
7904 }
7905 {
7906 PyThreadState* __tstate = wxPyBeginAllowThreads();
7907 result = (wxLogWindow *)new wxLogWindow(arg1,(wxString const &)*arg2,arg3,arg4);
7908
7909 wxPyEndAllowThreads(__tstate);
7910 if (PyErr_Occurred()) SWIG_fail;
7911 }
7912 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogWindow, 1);
7913 {
7914 if (temp2)
7915 delete arg2;
7916 }
7917 return resultobj;
7918 fail:
7919 {
7920 if (temp2)
7921 delete arg2;
7922 }
7923 return NULL;
7924 }
7925
7926
7927 static PyObject *_wrap_LogWindow_Show(PyObject *self, PyObject *args, PyObject *kwargs) {
7928 PyObject *resultobj;
7929 wxLogWindow *arg1 = (wxLogWindow *) 0 ;
7930 bool arg2 = (bool) True ;
7931 PyObject * obj0 = 0 ;
7932 PyObject * obj1 = 0 ;
7933 char *kwnames[] = {
7934 (char *) "self",(char *) "bShow", NULL
7935 };
7936
7937 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:LogWindow_Show",kwnames,&obj0,&obj1)) goto fail;
7938 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow,
7939 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7940 if (obj1) {
7941 arg2 = (bool) SWIG_AsBool(obj1);
7942 if (PyErr_Occurred()) SWIG_fail;
7943 }
7944 {
7945 PyThreadState* __tstate = wxPyBeginAllowThreads();
7946 (arg1)->Show(arg2);
7947
7948 wxPyEndAllowThreads(__tstate);
7949 if (PyErr_Occurred()) SWIG_fail;
7950 }
7951 Py_INCREF(Py_None); resultobj = Py_None;
7952 return resultobj;
7953 fail:
7954 return NULL;
7955 }
7956
7957
7958 static PyObject *_wrap_LogWindow_GetFrame(PyObject *self, PyObject *args, PyObject *kwargs) {
7959 PyObject *resultobj;
7960 wxLogWindow *arg1 = (wxLogWindow *) 0 ;
7961 wxFrame *result;
7962 PyObject * obj0 = 0 ;
7963 char *kwnames[] = {
7964 (char *) "self", NULL
7965 };
7966
7967 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_GetFrame",kwnames,&obj0)) goto fail;
7968 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow,
7969 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7970 {
7971 PyThreadState* __tstate = wxPyBeginAllowThreads();
7972 result = (wxFrame *)((wxLogWindow const *)arg1)->GetFrame();
7973
7974 wxPyEndAllowThreads(__tstate);
7975 if (PyErr_Occurred()) SWIG_fail;
7976 }
7977 {
7978 resultobj = wxPyMake_wxObject(result, 0);
7979 }
7980 return resultobj;
7981 fail:
7982 return NULL;
7983 }
7984
7985
7986 static PyObject *_wrap_LogWindow_GetOldLog(PyObject *self, PyObject *args, PyObject *kwargs) {
7987 PyObject *resultobj;
7988 wxLogWindow *arg1 = (wxLogWindow *) 0 ;
7989 wxLog *result;
7990 PyObject * obj0 = 0 ;
7991 char *kwnames[] = {
7992 (char *) "self", NULL
7993 };
7994
7995 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_GetOldLog",kwnames,&obj0)) goto fail;
7996 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow,
7997 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7998 {
7999 PyThreadState* __tstate = wxPyBeginAllowThreads();
8000 result = (wxLog *)((wxLogWindow const *)arg1)->GetOldLog();
8001
8002 wxPyEndAllowThreads(__tstate);
8003 if (PyErr_Occurred()) SWIG_fail;
8004 }
8005 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0);
8006 return resultobj;
8007 fail:
8008 return NULL;
8009 }
8010
8011
8012 static PyObject *_wrap_LogWindow_IsPassingMessages(PyObject *self, PyObject *args, PyObject *kwargs) {
8013 PyObject *resultobj;
8014 wxLogWindow *arg1 = (wxLogWindow *) 0 ;
8015 bool result;
8016 PyObject * obj0 = 0 ;
8017 char *kwnames[] = {
8018 (char *) "self", NULL
8019 };
8020
8021 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_IsPassingMessages",kwnames,&obj0)) goto fail;
8022 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow,
8023 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8024 {
8025 PyThreadState* __tstate = wxPyBeginAllowThreads();
8026 result = (bool)((wxLogWindow const *)arg1)->IsPassingMessages();
8027
8028 wxPyEndAllowThreads(__tstate);
8029 if (PyErr_Occurred()) SWIG_fail;
8030 }
8031 {
8032 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8033 }
8034 return resultobj;
8035 fail:
8036 return NULL;
8037 }
8038
8039
8040 static PyObject *_wrap_LogWindow_PassMessages(PyObject *self, PyObject *args, PyObject *kwargs) {
8041 PyObject *resultobj;
8042 wxLogWindow *arg1 = (wxLogWindow *) 0 ;
8043 bool arg2 ;
8044 PyObject * obj0 = 0 ;
8045 PyObject * obj1 = 0 ;
8046 char *kwnames[] = {
8047 (char *) "self",(char *) "bDoPass", NULL
8048 };
8049
8050 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogWindow_PassMessages",kwnames,&obj0,&obj1)) goto fail;
8051 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow,
8052 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8053 arg2 = (bool) SWIG_AsBool(obj1);
8054 if (PyErr_Occurred()) SWIG_fail;
8055 {
8056 PyThreadState* __tstate = wxPyBeginAllowThreads();
8057 (arg1)->PassMessages(arg2);
8058
8059 wxPyEndAllowThreads(__tstate);
8060 if (PyErr_Occurred()) SWIG_fail;
8061 }
8062 Py_INCREF(Py_None); resultobj = Py_None;
8063 return resultobj;
8064 fail:
8065 return NULL;
8066 }
8067
8068
8069 static PyObject * LogWindow_swigregister(PyObject *self, PyObject *args) {
8070 PyObject *obj;
8071 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8072 SWIG_TypeClientData(SWIGTYPE_p_wxLogWindow, obj);
8073 Py_INCREF(obj);
8074 return Py_BuildValue((char *)"");
8075 }
8076 static PyObject *_wrap_new_LogChain(PyObject *self, PyObject *args, PyObject *kwargs) {
8077 PyObject *resultobj;
8078 wxLog *arg1 = (wxLog *) 0 ;
8079 wxLogChain *result;
8080 PyObject * obj0 = 0 ;
8081 char *kwnames[] = {
8082 (char *) "logger", NULL
8083 };
8084
8085 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_LogChain",kwnames,&obj0)) goto fail;
8086 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog,
8087 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8088 {
8089 PyThreadState* __tstate = wxPyBeginAllowThreads();
8090 result = (wxLogChain *)new wxLogChain(arg1);
8091
8092 wxPyEndAllowThreads(__tstate);
8093 if (PyErr_Occurred()) SWIG_fail;
8094 }
8095 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogChain, 1);
8096 return resultobj;
8097 fail:
8098 return NULL;
8099 }
8100
8101
8102 static PyObject *_wrap_LogChain_SetLog(PyObject *self, PyObject *args, PyObject *kwargs) {
8103 PyObject *resultobj;
8104 wxLogChain *arg1 = (wxLogChain *) 0 ;
8105 wxLog *arg2 = (wxLog *) 0 ;
8106 PyObject * obj0 = 0 ;
8107 PyObject * obj1 = 0 ;
8108 char *kwnames[] = {
8109 (char *) "self",(char *) "logger", NULL
8110 };
8111
8112 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogChain_SetLog",kwnames,&obj0,&obj1)) goto fail;
8113 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain,
8114 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8115 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxLog,
8116 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8117 {
8118 PyThreadState* __tstate = wxPyBeginAllowThreads();
8119 (arg1)->SetLog(arg2);
8120
8121 wxPyEndAllowThreads(__tstate);
8122 if (PyErr_Occurred()) SWIG_fail;
8123 }
8124 Py_INCREF(Py_None); resultobj = Py_None;
8125 return resultobj;
8126 fail:
8127 return NULL;
8128 }
8129
8130
8131 static PyObject *_wrap_LogChain_PassMessages(PyObject *self, PyObject *args, PyObject *kwargs) {
8132 PyObject *resultobj;
8133 wxLogChain *arg1 = (wxLogChain *) 0 ;
8134 bool arg2 ;
8135 PyObject * obj0 = 0 ;
8136 PyObject * obj1 = 0 ;
8137 char *kwnames[] = {
8138 (char *) "self",(char *) "bDoPass", NULL
8139 };
8140
8141 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogChain_PassMessages",kwnames,&obj0,&obj1)) goto fail;
8142 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain,
8143 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8144 arg2 = (bool) SWIG_AsBool(obj1);
8145 if (PyErr_Occurred()) SWIG_fail;
8146 {
8147 PyThreadState* __tstate = wxPyBeginAllowThreads();
8148 (arg1)->PassMessages(arg2);
8149
8150 wxPyEndAllowThreads(__tstate);
8151 if (PyErr_Occurred()) SWIG_fail;
8152 }
8153 Py_INCREF(Py_None); resultobj = Py_None;
8154 return resultobj;
8155 fail:
8156 return NULL;
8157 }
8158
8159
8160 static PyObject *_wrap_LogChain_IsPassingMessages(PyObject *self, PyObject *args, PyObject *kwargs) {
8161 PyObject *resultobj;
8162 wxLogChain *arg1 = (wxLogChain *) 0 ;
8163 bool result;
8164 PyObject * obj0 = 0 ;
8165 char *kwnames[] = {
8166 (char *) "self", NULL
8167 };
8168
8169 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogChain_IsPassingMessages",kwnames,&obj0)) goto fail;
8170 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain,
8171 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8172 {
8173 PyThreadState* __tstate = wxPyBeginAllowThreads();
8174 result = (bool)(arg1)->IsPassingMessages();
8175
8176 wxPyEndAllowThreads(__tstate);
8177 if (PyErr_Occurred()) SWIG_fail;
8178 }
8179 {
8180 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8181 }
8182 return resultobj;
8183 fail:
8184 return NULL;
8185 }
8186
8187
8188 static PyObject *_wrap_LogChain_GetOldLog(PyObject *self, PyObject *args, PyObject *kwargs) {
8189 PyObject *resultobj;
8190 wxLogChain *arg1 = (wxLogChain *) 0 ;
8191 wxLog *result;
8192 PyObject * obj0 = 0 ;
8193 char *kwnames[] = {
8194 (char *) "self", NULL
8195 };
8196
8197 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogChain_GetOldLog",kwnames,&obj0)) goto fail;
8198 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain,
8199 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8200 {
8201 PyThreadState* __tstate = wxPyBeginAllowThreads();
8202 result = (wxLog *)(arg1)->GetOldLog();
8203
8204 wxPyEndAllowThreads(__tstate);
8205 if (PyErr_Occurred()) SWIG_fail;
8206 }
8207 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0);
8208 return resultobj;
8209 fail:
8210 return NULL;
8211 }
8212
8213
8214 static PyObject * LogChain_swigregister(PyObject *self, PyObject *args) {
8215 PyObject *obj;
8216 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8217 SWIG_TypeClientData(SWIGTYPE_p_wxLogChain, obj);
8218 Py_INCREF(obj);
8219 return Py_BuildValue((char *)"");
8220 }
8221 static PyObject *_wrap_SysErrorCode(PyObject *self, PyObject *args, PyObject *kwargs) {
8222 PyObject *resultobj;
8223 unsigned long result;
8224 char *kwnames[] = {
8225 NULL
8226 };
8227
8228 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":SysErrorCode",kwnames)) goto fail;
8229 {
8230 PyThreadState* __tstate = wxPyBeginAllowThreads();
8231 result = (unsigned long)wxSysErrorCode();
8232
8233 wxPyEndAllowThreads(__tstate);
8234 if (PyErr_Occurred()) SWIG_fail;
8235 }
8236 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
8237 return resultobj;
8238 fail:
8239 return NULL;
8240 }
8241
8242
8243 static PyObject *_wrap_SysErrorMsg(PyObject *self, PyObject *args, PyObject *kwargs) {
8244 PyObject *resultobj;
8245 unsigned long arg1 = (unsigned long) 0 ;
8246 wxString result;
8247 PyObject * obj0 = 0 ;
8248 char *kwnames[] = {
8249 (char *) "nErrCode", NULL
8250 };
8251
8252 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SysErrorMsg",kwnames,&obj0)) goto fail;
8253 if (obj0) {
8254 arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0);
8255 if (PyErr_Occurred()) SWIG_fail;
8256 }
8257 {
8258 PyThreadState* __tstate = wxPyBeginAllowThreads();
8259 result = wxSysErrorMsg(arg1);
8260
8261 wxPyEndAllowThreads(__tstate);
8262 if (PyErr_Occurred()) SWIG_fail;
8263 }
8264 {
8265 #if wxUSE_UNICODE
8266 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8267 #else
8268 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8269 #endif
8270 }
8271 return resultobj;
8272 fail:
8273 return NULL;
8274 }
8275
8276
8277 static PyObject *_wrap_LogFatalError(PyObject *self, PyObject *args, PyObject *kwargs) {
8278 PyObject *resultobj;
8279 wxString *arg1 = 0 ;
8280 bool temp1 = False ;
8281 PyObject * obj0 = 0 ;
8282 char *kwnames[] = {
8283 (char *) "msg", NULL
8284 };
8285
8286 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogFatalError",kwnames,&obj0)) goto fail;
8287 {
8288 arg1 = wxString_in_helper(obj0);
8289 if (arg1 == NULL) SWIG_fail;
8290 temp1 = True;
8291 }
8292 {
8293 PyThreadState* __tstate = wxPyBeginAllowThreads();
8294 wxLogFatalError((wxString const &)*arg1);
8295
8296 wxPyEndAllowThreads(__tstate);
8297 if (PyErr_Occurred()) SWIG_fail;
8298 }
8299 Py_INCREF(Py_None); resultobj = Py_None;
8300 {
8301 if (temp1)
8302 delete arg1;
8303 }
8304 return resultobj;
8305 fail:
8306 {
8307 if (temp1)
8308 delete arg1;
8309 }
8310 return NULL;
8311 }
8312
8313
8314 static PyObject *_wrap_LogError(PyObject *self, PyObject *args, PyObject *kwargs) {
8315 PyObject *resultobj;
8316 wxString *arg1 = 0 ;
8317 bool temp1 = False ;
8318 PyObject * obj0 = 0 ;
8319 char *kwnames[] = {
8320 (char *) "msg", NULL
8321 };
8322
8323 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogError",kwnames,&obj0)) goto fail;
8324 {
8325 arg1 = wxString_in_helper(obj0);
8326 if (arg1 == NULL) SWIG_fail;
8327 temp1 = True;
8328 }
8329 {
8330 PyThreadState* __tstate = wxPyBeginAllowThreads();
8331 wxLogError((wxString const &)*arg1);
8332
8333 wxPyEndAllowThreads(__tstate);
8334 if (PyErr_Occurred()) SWIG_fail;
8335 }
8336 Py_INCREF(Py_None); resultobj = Py_None;
8337 {
8338 if (temp1)
8339 delete arg1;
8340 }
8341 return resultobj;
8342 fail:
8343 {
8344 if (temp1)
8345 delete arg1;
8346 }
8347 return NULL;
8348 }
8349
8350
8351 static PyObject *_wrap_LogWarning(PyObject *self, PyObject *args, PyObject *kwargs) {
8352 PyObject *resultobj;
8353 wxString *arg1 = 0 ;
8354 bool temp1 = False ;
8355 PyObject * obj0 = 0 ;
8356 char *kwnames[] = {
8357 (char *) "msg", NULL
8358 };
8359
8360 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWarning",kwnames,&obj0)) goto fail;
8361 {
8362 arg1 = wxString_in_helper(obj0);
8363 if (arg1 == NULL) SWIG_fail;
8364 temp1 = True;
8365 }
8366 {
8367 PyThreadState* __tstate = wxPyBeginAllowThreads();
8368 wxLogWarning((wxString const &)*arg1);
8369
8370 wxPyEndAllowThreads(__tstate);
8371 if (PyErr_Occurred()) SWIG_fail;
8372 }
8373 Py_INCREF(Py_None); resultobj = Py_None;
8374 {
8375 if (temp1)
8376 delete arg1;
8377 }
8378 return resultobj;
8379 fail:
8380 {
8381 if (temp1)
8382 delete arg1;
8383 }
8384 return NULL;
8385 }
8386
8387
8388 static PyObject *_wrap_LogMessage(PyObject *self, PyObject *args, PyObject *kwargs) {
8389 PyObject *resultobj;
8390 wxString *arg1 = 0 ;
8391 bool temp1 = False ;
8392 PyObject * obj0 = 0 ;
8393 char *kwnames[] = {
8394 (char *) "msg", NULL
8395 };
8396
8397 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogMessage",kwnames,&obj0)) goto fail;
8398 {
8399 arg1 = wxString_in_helper(obj0);
8400 if (arg1 == NULL) SWIG_fail;
8401 temp1 = True;
8402 }
8403 {
8404 PyThreadState* __tstate = wxPyBeginAllowThreads();
8405 wxLogMessage((wxString const &)*arg1);
8406
8407 wxPyEndAllowThreads(__tstate);
8408 if (PyErr_Occurred()) SWIG_fail;
8409 }
8410 Py_INCREF(Py_None); resultobj = Py_None;
8411 {
8412 if (temp1)
8413 delete arg1;
8414 }
8415 return resultobj;
8416 fail:
8417 {
8418 if (temp1)
8419 delete arg1;
8420 }
8421 return NULL;
8422 }
8423
8424
8425 static PyObject *_wrap_LogInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8426 PyObject *resultobj;
8427 wxString *arg1 = 0 ;
8428 bool temp1 = False ;
8429 PyObject * obj0 = 0 ;
8430 char *kwnames[] = {
8431 (char *) "msg", NULL
8432 };
8433
8434 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogInfo",kwnames,&obj0)) goto fail;
8435 {
8436 arg1 = wxString_in_helper(obj0);
8437 if (arg1 == NULL) SWIG_fail;
8438 temp1 = True;
8439 }
8440 {
8441 PyThreadState* __tstate = wxPyBeginAllowThreads();
8442 wxLogInfo((wxString const &)*arg1);
8443
8444 wxPyEndAllowThreads(__tstate);
8445 if (PyErr_Occurred()) SWIG_fail;
8446 }
8447 Py_INCREF(Py_None); resultobj = Py_None;
8448 {
8449 if (temp1)
8450 delete arg1;
8451 }
8452 return resultobj;
8453 fail:
8454 {
8455 if (temp1)
8456 delete arg1;
8457 }
8458 return NULL;
8459 }
8460
8461
8462 static PyObject *_wrap_LogDebug(PyObject *self, PyObject *args, PyObject *kwargs) {
8463 PyObject *resultobj;
8464 wxString *arg1 = 0 ;
8465 bool temp1 = False ;
8466 PyObject * obj0 = 0 ;
8467 char *kwnames[] = {
8468 (char *) "msg", NULL
8469 };
8470
8471 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogDebug",kwnames,&obj0)) goto fail;
8472 {
8473 arg1 = wxString_in_helper(obj0);
8474 if (arg1 == NULL) SWIG_fail;
8475 temp1 = True;
8476 }
8477 {
8478 PyThreadState* __tstate = wxPyBeginAllowThreads();
8479 wxLogDebug((wxString const &)*arg1);
8480
8481 wxPyEndAllowThreads(__tstate);
8482 if (PyErr_Occurred()) SWIG_fail;
8483 }
8484 Py_INCREF(Py_None); resultobj = Py_None;
8485 {
8486 if (temp1)
8487 delete arg1;
8488 }
8489 return resultobj;
8490 fail:
8491 {
8492 if (temp1)
8493 delete arg1;
8494 }
8495 return NULL;
8496 }
8497
8498
8499 static PyObject *_wrap_LogVerbose(PyObject *self, PyObject *args, PyObject *kwargs) {
8500 PyObject *resultobj;
8501 wxString *arg1 = 0 ;
8502 bool temp1 = False ;
8503 PyObject * obj0 = 0 ;
8504 char *kwnames[] = {
8505 (char *) "msg", NULL
8506 };
8507
8508 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogVerbose",kwnames,&obj0)) goto fail;
8509 {
8510 arg1 = wxString_in_helper(obj0);
8511 if (arg1 == NULL) SWIG_fail;
8512 temp1 = True;
8513 }
8514 {
8515 PyThreadState* __tstate = wxPyBeginAllowThreads();
8516 wxLogVerbose((wxString const &)*arg1);
8517
8518 wxPyEndAllowThreads(__tstate);
8519 if (PyErr_Occurred()) SWIG_fail;
8520 }
8521 Py_INCREF(Py_None); resultobj = Py_None;
8522 {
8523 if (temp1)
8524 delete arg1;
8525 }
8526 return resultobj;
8527 fail:
8528 {
8529 if (temp1)
8530 delete arg1;
8531 }
8532 return NULL;
8533 }
8534
8535
8536 static PyObject *_wrap_LogStatus(PyObject *self, PyObject *args, PyObject *kwargs) {
8537 PyObject *resultobj;
8538 wxString *arg1 = 0 ;
8539 bool temp1 = False ;
8540 PyObject * obj0 = 0 ;
8541 char *kwnames[] = {
8542 (char *) "msg", NULL
8543 };
8544
8545 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogStatus",kwnames,&obj0)) goto fail;
8546 {
8547 arg1 = wxString_in_helper(obj0);
8548 if (arg1 == NULL) SWIG_fail;
8549 temp1 = True;
8550 }
8551 {
8552 PyThreadState* __tstate = wxPyBeginAllowThreads();
8553 wxLogStatus((wxString const &)*arg1);
8554
8555 wxPyEndAllowThreads(__tstate);
8556 if (PyErr_Occurred()) SWIG_fail;
8557 }
8558 Py_INCREF(Py_None); resultobj = Py_None;
8559 {
8560 if (temp1)
8561 delete arg1;
8562 }
8563 return resultobj;
8564 fail:
8565 {
8566 if (temp1)
8567 delete arg1;
8568 }
8569 return NULL;
8570 }
8571
8572
8573 static PyObject *_wrap_LogStatusFrame(PyObject *self, PyObject *args, PyObject *kwargs) {
8574 PyObject *resultobj;
8575 wxFrame *arg1 = (wxFrame *) 0 ;
8576 wxString *arg2 = 0 ;
8577 bool temp2 = False ;
8578 PyObject * obj0 = 0 ;
8579 PyObject * obj1 = 0 ;
8580 char *kwnames[] = {
8581 (char *) "pFrame",(char *) "msg", NULL
8582 };
8583
8584 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogStatusFrame",kwnames,&obj0,&obj1)) goto fail;
8585 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame,
8586 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8587 {
8588 arg2 = wxString_in_helper(obj1);
8589 if (arg2 == NULL) SWIG_fail;
8590 temp2 = True;
8591 }
8592 {
8593 PyThreadState* __tstate = wxPyBeginAllowThreads();
8594 wxLogStatus(arg1,(wxString const &)*arg2);
8595
8596 wxPyEndAllowThreads(__tstate);
8597 if (PyErr_Occurred()) SWIG_fail;
8598 }
8599 Py_INCREF(Py_None); resultobj = Py_None;
8600 {
8601 if (temp2)
8602 delete arg2;
8603 }
8604 return resultobj;
8605 fail:
8606 {
8607 if (temp2)
8608 delete arg2;
8609 }
8610 return NULL;
8611 }
8612
8613
8614 static PyObject *_wrap_LogSysError(PyObject *self, PyObject *args, PyObject *kwargs) {
8615 PyObject *resultobj;
8616 wxString *arg1 = 0 ;
8617 bool temp1 = False ;
8618 PyObject * obj0 = 0 ;
8619 char *kwnames[] = {
8620 (char *) "msg", NULL
8621 };
8622
8623 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogSysError",kwnames,&obj0)) goto fail;
8624 {
8625 arg1 = wxString_in_helper(obj0);
8626 if (arg1 == NULL) SWIG_fail;
8627 temp1 = True;
8628 }
8629 {
8630 PyThreadState* __tstate = wxPyBeginAllowThreads();
8631 wxLogSysError((wxString const &)*arg1);
8632
8633 wxPyEndAllowThreads(__tstate);
8634 if (PyErr_Occurred()) SWIG_fail;
8635 }
8636 Py_INCREF(Py_None); resultobj = Py_None;
8637 {
8638 if (temp1)
8639 delete arg1;
8640 }
8641 return resultobj;
8642 fail:
8643 {
8644 if (temp1)
8645 delete arg1;
8646 }
8647 return NULL;
8648 }
8649
8650
8651 static PyObject *_wrap_LogTrace__SWIG_0(PyObject *self, PyObject *args) {
8652 PyObject *resultobj;
8653 unsigned long arg1 ;
8654 wxString *arg2 = 0 ;
8655 bool temp2 = False ;
8656 PyObject * obj0 = 0 ;
8657 PyObject * obj1 = 0 ;
8658
8659 if(!PyArg_ParseTuple(args,(char *)"OO:LogTrace",&obj0,&obj1)) goto fail;
8660 arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0);
8661 if (PyErr_Occurred()) SWIG_fail;
8662 {
8663 arg2 = wxString_in_helper(obj1);
8664 if (arg2 == NULL) SWIG_fail;
8665 temp2 = True;
8666 }
8667 {
8668 PyThreadState* __tstate = wxPyBeginAllowThreads();
8669 wxLogTrace(arg1,(wxString const &)*arg2);
8670
8671 wxPyEndAllowThreads(__tstate);
8672 if (PyErr_Occurred()) SWIG_fail;
8673 }
8674 Py_INCREF(Py_None); resultobj = Py_None;
8675 {
8676 if (temp2)
8677 delete arg2;
8678 }
8679 return resultobj;
8680 fail:
8681 {
8682 if (temp2)
8683 delete arg2;
8684 }
8685 return NULL;
8686 }
8687
8688
8689 static PyObject *_wrap_LogTrace__SWIG_1(PyObject *self, PyObject *args) {
8690 PyObject *resultobj;
8691 wxString *arg1 = 0 ;
8692 wxString *arg2 = 0 ;
8693 bool temp1 = False ;
8694 bool temp2 = False ;
8695 PyObject * obj0 = 0 ;
8696 PyObject * obj1 = 0 ;
8697
8698 if(!PyArg_ParseTuple(args,(char *)"OO:LogTrace",&obj0,&obj1)) goto fail;
8699 {
8700 arg1 = wxString_in_helper(obj0);
8701 if (arg1 == NULL) SWIG_fail;
8702 temp1 = True;
8703 }
8704 {
8705 arg2 = wxString_in_helper(obj1);
8706 if (arg2 == NULL) SWIG_fail;
8707 temp2 = True;
8708 }
8709 {
8710 PyThreadState* __tstate = wxPyBeginAllowThreads();
8711 wxLogTrace((wxString const &)*arg1,(wxString const &)*arg2);
8712
8713 wxPyEndAllowThreads(__tstate);
8714 if (PyErr_Occurred()) SWIG_fail;
8715 }
8716 Py_INCREF(Py_None); resultobj = Py_None;
8717 {
8718 if (temp1)
8719 delete arg1;
8720 }
8721 {
8722 if (temp2)
8723 delete arg2;
8724 }
8725 return resultobj;
8726 fail:
8727 {
8728 if (temp1)
8729 delete arg1;
8730 }
8731 {
8732 if (temp2)
8733 delete arg2;
8734 }
8735 return NULL;
8736 }
8737
8738
8739 static PyObject *_wrap_LogTrace(PyObject *self, PyObject *args) {
8740 int argc;
8741 PyObject *argv[3];
8742 int ii;
8743
8744 argc = PyObject_Length(args);
8745 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
8746 argv[ii] = PyTuple_GetItem(args,ii);
8747 }
8748 if (argc == 2) {
8749 int _v;
8750 {
8751 _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]);
8752 }
8753 if (_v) {
8754 {
8755 _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]);
8756 }
8757 if (_v) {
8758 return _wrap_LogTrace__SWIG_1(self,args);
8759 }
8760 }
8761 }
8762 if (argc == 2) {
8763 int _v;
8764 _v = SWIG_CheckUnsignedLong(argv[0]);
8765 if (_v) {
8766 {
8767 _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]);
8768 }
8769 if (_v) {
8770 return _wrap_LogTrace__SWIG_0(self,args);
8771 }
8772 }
8773 }
8774
8775 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'LogTrace'");
8776 return NULL;
8777 }
8778
8779
8780 static PyObject *_wrap_LogGeneric(PyObject *self, PyObject *args, PyObject *kwargs) {
8781 PyObject *resultobj;
8782 unsigned long arg1 ;
8783 wxString *arg2 = 0 ;
8784 bool temp2 = False ;
8785 PyObject * obj0 = 0 ;
8786 PyObject * obj1 = 0 ;
8787 char *kwnames[] = {
8788 (char *) "level",(char *) "msg", NULL
8789 };
8790
8791 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogGeneric",kwnames,&obj0,&obj1)) goto fail;
8792 arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0);
8793 if (PyErr_Occurred()) SWIG_fail;
8794 {
8795 arg2 = wxString_in_helper(obj1);
8796 if (arg2 == NULL) SWIG_fail;
8797 temp2 = True;
8798 }
8799 {
8800 PyThreadState* __tstate = wxPyBeginAllowThreads();
8801 wxLogGeneric(arg1,(wxString const &)*arg2);
8802
8803 wxPyEndAllowThreads(__tstate);
8804 if (PyErr_Occurred()) SWIG_fail;
8805 }
8806 Py_INCREF(Py_None); resultobj = Py_None;
8807 {
8808 if (temp2)
8809 delete arg2;
8810 }
8811 return resultobj;
8812 fail:
8813 {
8814 if (temp2)
8815 delete arg2;
8816 }
8817 return NULL;
8818 }
8819
8820
8821 static PyObject *_wrap_SafeShowMessage(PyObject *self, PyObject *args, PyObject *kwargs) {
8822 PyObject *resultobj;
8823 wxString *arg1 = 0 ;
8824 wxString *arg2 = 0 ;
8825 bool temp1 = False ;
8826 bool temp2 = False ;
8827 PyObject * obj0 = 0 ;
8828 PyObject * obj1 = 0 ;
8829 char *kwnames[] = {
8830 (char *) "title",(char *) "text", NULL
8831 };
8832
8833 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SafeShowMessage",kwnames,&obj0,&obj1)) goto fail;
8834 {
8835 arg1 = wxString_in_helper(obj0);
8836 if (arg1 == NULL) SWIG_fail;
8837 temp1 = True;
8838 }
8839 {
8840 arg2 = wxString_in_helper(obj1);
8841 if (arg2 == NULL) SWIG_fail;
8842 temp2 = True;
8843 }
8844 {
8845 PyThreadState* __tstate = wxPyBeginAllowThreads();
8846 wxSafeShowMessage((wxString const &)*arg1,(wxString const &)*arg2);
8847
8848 wxPyEndAllowThreads(__tstate);
8849 if (PyErr_Occurred()) SWIG_fail;
8850 }
8851 Py_INCREF(Py_None); resultobj = Py_None;
8852 {
8853 if (temp1)
8854 delete arg1;
8855 }
8856 {
8857 if (temp2)
8858 delete arg2;
8859 }
8860 return resultobj;
8861 fail:
8862 {
8863 if (temp1)
8864 delete arg1;
8865 }
8866 {
8867 if (temp2)
8868 delete arg2;
8869 }
8870 return NULL;
8871 }
8872
8873
8874 static PyObject *_wrap_new_LogNull(PyObject *self, PyObject *args, PyObject *kwargs) {
8875 PyObject *resultobj;
8876 wxLogNull *result;
8877 char *kwnames[] = {
8878 NULL
8879 };
8880
8881 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogNull",kwnames)) goto fail;
8882 {
8883 PyThreadState* __tstate = wxPyBeginAllowThreads();
8884 result = (wxLogNull *)new wxLogNull();
8885
8886 wxPyEndAllowThreads(__tstate);
8887 if (PyErr_Occurred()) SWIG_fail;
8888 }
8889 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogNull, 1);
8890 return resultobj;
8891 fail:
8892 return NULL;
8893 }
8894
8895
8896 static PyObject *_wrap_delete_LogNull(PyObject *self, PyObject *args, PyObject *kwargs) {
8897 PyObject *resultobj;
8898 wxLogNull *arg1 = (wxLogNull *) 0 ;
8899 PyObject * obj0 = 0 ;
8900 char *kwnames[] = {
8901 (char *) "self", NULL
8902 };
8903
8904 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_LogNull",kwnames,&obj0)) goto fail;
8905 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogNull,
8906 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8907 {
8908 PyThreadState* __tstate = wxPyBeginAllowThreads();
8909 delete arg1;
8910
8911 wxPyEndAllowThreads(__tstate);
8912 if (PyErr_Occurred()) SWIG_fail;
8913 }
8914 Py_INCREF(Py_None); resultobj = Py_None;
8915 return resultobj;
8916 fail:
8917 return NULL;
8918 }
8919
8920
8921 static PyObject * LogNull_swigregister(PyObject *self, PyObject *args) {
8922 PyObject *obj;
8923 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8924 SWIG_TypeClientData(SWIGTYPE_p_wxLogNull, obj);
8925 Py_INCREF(obj);
8926 return Py_BuildValue((char *)"");
8927 }
8928 static PyObject *_wrap_new_PyLog(PyObject *self, PyObject *args, PyObject *kwargs) {
8929 PyObject *resultobj;
8930 wxPyLog *result;
8931 char *kwnames[] = {
8932 NULL
8933 };
8934
8935 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyLog",kwnames)) goto fail;
8936 {
8937 PyThreadState* __tstate = wxPyBeginAllowThreads();
8938 result = (wxPyLog *)new wxPyLog();
8939
8940 wxPyEndAllowThreads(__tstate);
8941 if (PyErr_Occurred()) SWIG_fail;
8942 }
8943 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyLog, 1);
8944 return resultobj;
8945 fail:
8946 return NULL;
8947 }
8948
8949
8950 static PyObject *_wrap_PyLog__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8951 PyObject *resultobj;
8952 wxPyLog *arg1 = (wxPyLog *) 0 ;
8953 PyObject *arg2 = (PyObject *) 0 ;
8954 PyObject *arg3 = (PyObject *) 0 ;
8955 PyObject * obj0 = 0 ;
8956 PyObject * obj1 = 0 ;
8957 PyObject * obj2 = 0 ;
8958 char *kwnames[] = {
8959 (char *) "self",(char *) "self",(char *) "_class", NULL
8960 };
8961
8962 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLog__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
8963 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLog,
8964 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8965 arg2 = obj1;
8966 arg3 = obj2;
8967 {
8968 PyThreadState* __tstate = wxPyBeginAllowThreads();
8969 (arg1)->_setCallbackInfo(arg2,arg3);
8970
8971 wxPyEndAllowThreads(__tstate);
8972 if (PyErr_Occurred()) SWIG_fail;
8973 }
8974 Py_INCREF(Py_None); resultobj = Py_None;
8975 return resultobj;
8976 fail:
8977 return NULL;
8978 }
8979
8980
8981 static PyObject * PyLog_swigregister(PyObject *self, PyObject *args) {
8982 PyObject *obj;
8983 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8984 SWIG_TypeClientData(SWIGTYPE_p_wxPyLog, obj);
8985 Py_INCREF(obj);
8986 return Py_BuildValue((char *)"");
8987 }
8988 static PyObject *_wrap_Process_Kill(PyObject *self, PyObject *args, PyObject *kwargs) {
8989 PyObject *resultobj;
8990 int arg1 ;
8991 int arg2 = (int) wxSIGTERM ;
8992 int result;
8993 PyObject * obj0 = 0 ;
8994 PyObject * obj1 = 0 ;
8995 char *kwnames[] = {
8996 (char *) "pid",(char *) "sig", NULL
8997 };
8998
8999 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Process_Kill",kwnames,&obj0,&obj1)) goto fail;
9000 arg1 = (int) SWIG_AsInt(obj0);
9001 if (PyErr_Occurred()) SWIG_fail;
9002 if (obj1) {
9003 arg2 = (wxSignal) SWIG_AsInt(obj1);
9004 if (PyErr_Occurred()) SWIG_fail;
9005 }
9006 {
9007 PyThreadState* __tstate = wxPyBeginAllowThreads();
9008 result = (int)wxPyProcess::Kill(arg1,(wxSignal )arg2);
9009
9010 wxPyEndAllowThreads(__tstate);
9011 if (PyErr_Occurred()) SWIG_fail;
9012 }
9013 resultobj = SWIG_FromInt((int)result);
9014 return resultobj;
9015 fail:
9016 return NULL;
9017 }
9018
9019
9020 static PyObject *_wrap_Process_Exists(PyObject *self, PyObject *args, PyObject *kwargs) {
9021 PyObject *resultobj;
9022 int arg1 ;
9023 bool result;
9024 PyObject * obj0 = 0 ;
9025 char *kwnames[] = {
9026 (char *) "pid", NULL
9027 };
9028
9029 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Exists",kwnames,&obj0)) goto fail;
9030 arg1 = (int) SWIG_AsInt(obj0);
9031 if (PyErr_Occurred()) SWIG_fail;
9032 {
9033 PyThreadState* __tstate = wxPyBeginAllowThreads();
9034 result = (bool)wxPyProcess::Exists(arg1);
9035
9036 wxPyEndAllowThreads(__tstate);
9037 if (PyErr_Occurred()) SWIG_fail;
9038 }
9039 {
9040 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9041 }
9042 return resultobj;
9043 fail:
9044 return NULL;
9045 }
9046
9047
9048 static PyObject *_wrap_Process_Open(PyObject *self, PyObject *args, PyObject *kwargs) {
9049 PyObject *resultobj;
9050 wxString *arg1 = 0 ;
9051 int arg2 = (int) wxEXEC_ASYNC ;
9052 wxPyProcess *result;
9053 bool temp1 = False ;
9054 PyObject * obj0 = 0 ;
9055 PyObject * obj1 = 0 ;
9056 char *kwnames[] = {
9057 (char *) "cmd",(char *) "flags", NULL
9058 };
9059
9060 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Process_Open",kwnames,&obj0,&obj1)) goto fail;
9061 {
9062 arg1 = wxString_in_helper(obj0);
9063 if (arg1 == NULL) SWIG_fail;
9064 temp1 = True;
9065 }
9066 if (obj1) {
9067 arg2 = (int) SWIG_AsInt(obj1);
9068 if (PyErr_Occurred()) SWIG_fail;
9069 }
9070 {
9071 PyThreadState* __tstate = wxPyBeginAllowThreads();
9072 result = (wxPyProcess *)wxPyProcess::Open((wxString const &)*arg1,arg2);
9073
9074 wxPyEndAllowThreads(__tstate);
9075 if (PyErr_Occurred()) SWIG_fail;
9076 }
9077 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyProcess, 0);
9078 {
9079 if (temp1)
9080 delete arg1;
9081 }
9082 return resultobj;
9083 fail:
9084 {
9085 if (temp1)
9086 delete arg1;
9087 }
9088 return NULL;
9089 }
9090
9091
9092 static PyObject *_wrap_new_Process(PyObject *self, PyObject *args, PyObject *kwargs) {
9093 PyObject *resultobj;
9094 wxEvtHandler *arg1 = (wxEvtHandler *) NULL ;
9095 int arg2 = (int) -1 ;
9096 wxPyProcess *result;
9097 PyObject * obj0 = 0 ;
9098 PyObject * obj1 = 0 ;
9099 char *kwnames[] = {
9100 (char *) "parent",(char *) "id", NULL
9101 };
9102
9103 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Process",kwnames,&obj0,&obj1)) goto fail;
9104 if (obj0) {
9105 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler,
9106 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9107 }
9108 if (obj1) {
9109 arg2 = (int) SWIG_AsInt(obj1);
9110 if (PyErr_Occurred()) SWIG_fail;
9111 }
9112 {
9113 PyThreadState* __tstate = wxPyBeginAllowThreads();
9114 result = (wxPyProcess *)new wxPyProcess(arg1,arg2);
9115
9116 wxPyEndAllowThreads(__tstate);
9117 if (PyErr_Occurred()) SWIG_fail;
9118 }
9119 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyProcess, 1);
9120 return resultobj;
9121 fail:
9122 return NULL;
9123 }
9124
9125
9126 static PyObject *_wrap_Process__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
9127 PyObject *resultobj;
9128 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9129 PyObject *arg2 = (PyObject *) 0 ;
9130 PyObject *arg3 = (PyObject *) 0 ;
9131 PyObject * obj0 = 0 ;
9132 PyObject * obj1 = 0 ;
9133 PyObject * obj2 = 0 ;
9134 char *kwnames[] = {
9135 (char *) "self",(char *) "self",(char *) "_class", NULL
9136 };
9137
9138 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Process__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
9139 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9140 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9141 arg2 = obj1;
9142 arg3 = obj2;
9143 {
9144 PyThreadState* __tstate = wxPyBeginAllowThreads();
9145 (arg1)->_setCallbackInfo(arg2,arg3);
9146
9147 wxPyEndAllowThreads(__tstate);
9148 if (PyErr_Occurred()) SWIG_fail;
9149 }
9150 Py_INCREF(Py_None); resultobj = Py_None;
9151 return resultobj;
9152 fail:
9153 return NULL;
9154 }
9155
9156
9157 static PyObject *_wrap_Process_base_OnTerminate(PyObject *self, PyObject *args, PyObject *kwargs) {
9158 PyObject *resultobj;
9159 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9160 int arg2 ;
9161 int arg3 ;
9162 PyObject * obj0 = 0 ;
9163 PyObject * obj1 = 0 ;
9164 PyObject * obj2 = 0 ;
9165 char *kwnames[] = {
9166 (char *) "self",(char *) "pid",(char *) "status", NULL
9167 };
9168
9169 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Process_base_OnTerminate",kwnames,&obj0,&obj1,&obj2)) goto fail;
9170 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9171 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9172 arg2 = (int) SWIG_AsInt(obj1);
9173 if (PyErr_Occurred()) SWIG_fail;
9174 arg3 = (int) SWIG_AsInt(obj2);
9175 if (PyErr_Occurred()) SWIG_fail;
9176 {
9177 PyThreadState* __tstate = wxPyBeginAllowThreads();
9178 (arg1)->base_OnTerminate(arg2,arg3);
9179
9180 wxPyEndAllowThreads(__tstate);
9181 if (PyErr_Occurred()) SWIG_fail;
9182 }
9183 Py_INCREF(Py_None); resultobj = Py_None;
9184 return resultobj;
9185 fail:
9186 return NULL;
9187 }
9188
9189
9190 static PyObject *_wrap_Process_Redirect(PyObject *self, PyObject *args, PyObject *kwargs) {
9191 PyObject *resultobj;
9192 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9193 PyObject * obj0 = 0 ;
9194 char *kwnames[] = {
9195 (char *) "self", NULL
9196 };
9197
9198 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Redirect",kwnames,&obj0)) goto fail;
9199 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9200 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9201 {
9202 PyThreadState* __tstate = wxPyBeginAllowThreads();
9203 (arg1)->Redirect();
9204
9205 wxPyEndAllowThreads(__tstate);
9206 if (PyErr_Occurred()) SWIG_fail;
9207 }
9208 Py_INCREF(Py_None); resultobj = Py_None;
9209 return resultobj;
9210 fail:
9211 return NULL;
9212 }
9213
9214
9215 static PyObject *_wrap_Process_IsRedirected(PyObject *self, PyObject *args, PyObject *kwargs) {
9216 PyObject *resultobj;
9217 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9218 bool result;
9219 PyObject * obj0 = 0 ;
9220 char *kwnames[] = {
9221 (char *) "self", NULL
9222 };
9223
9224 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsRedirected",kwnames,&obj0)) goto fail;
9225 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9226 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9227 {
9228 PyThreadState* __tstate = wxPyBeginAllowThreads();
9229 result = (bool)(arg1)->IsRedirected();
9230
9231 wxPyEndAllowThreads(__tstate);
9232 if (PyErr_Occurred()) SWIG_fail;
9233 }
9234 {
9235 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9236 }
9237 return resultobj;
9238 fail:
9239 return NULL;
9240 }
9241
9242
9243 static PyObject *_wrap_Process_Detach(PyObject *self, PyObject *args, PyObject *kwargs) {
9244 PyObject *resultobj;
9245 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9246 PyObject * obj0 = 0 ;
9247 char *kwnames[] = {
9248 (char *) "self", NULL
9249 };
9250
9251 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Detach",kwnames,&obj0)) goto fail;
9252 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9253 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9254 {
9255 PyThreadState* __tstate = wxPyBeginAllowThreads();
9256 (arg1)->Detach();
9257
9258 wxPyEndAllowThreads(__tstate);
9259 if (PyErr_Occurred()) SWIG_fail;
9260 }
9261 Py_INCREF(Py_None); resultobj = Py_None;
9262 return resultobj;
9263 fail:
9264 return NULL;
9265 }
9266
9267
9268 static PyObject *_wrap_Process_GetInputStream(PyObject *self, PyObject *args, PyObject *kwargs) {
9269 PyObject *resultobj;
9270 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9271 wxInputStream *result;
9272 PyObject * obj0 = 0 ;
9273 char *kwnames[] = {
9274 (char *) "self", NULL
9275 };
9276
9277 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetInputStream",kwnames,&obj0)) goto fail;
9278 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9279 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9280 {
9281 PyThreadState* __tstate = wxPyBeginAllowThreads();
9282 result = (wxInputStream *)(arg1)->GetInputStream();
9283
9284 wxPyEndAllowThreads(__tstate);
9285 if (PyErr_Occurred()) SWIG_fail;
9286 }
9287 {
9288 wxPyInputStream * _ptr = NULL;
9289
9290 if (result) {
9291 _ptr = new wxPyInputStream(result);
9292 }
9293 resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), True);
9294 }
9295 return resultobj;
9296 fail:
9297 return NULL;
9298 }
9299
9300
9301 static PyObject *_wrap_Process_GetErrorStream(PyObject *self, PyObject *args, PyObject *kwargs) {
9302 PyObject *resultobj;
9303 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9304 wxInputStream *result;
9305 PyObject * obj0 = 0 ;
9306 char *kwnames[] = {
9307 (char *) "self", NULL
9308 };
9309
9310 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetErrorStream",kwnames,&obj0)) goto fail;
9311 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9312 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9313 {
9314 PyThreadState* __tstate = wxPyBeginAllowThreads();
9315 result = (wxInputStream *)(arg1)->GetErrorStream();
9316
9317 wxPyEndAllowThreads(__tstate);
9318 if (PyErr_Occurred()) SWIG_fail;
9319 }
9320 {
9321 wxPyInputStream * _ptr = NULL;
9322
9323 if (result) {
9324 _ptr = new wxPyInputStream(result);
9325 }
9326 resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), True);
9327 }
9328 return resultobj;
9329 fail:
9330 return NULL;
9331 }
9332
9333
9334 static PyObject *_wrap_Process_GetOutputStream(PyObject *self, PyObject *args, PyObject *kwargs) {
9335 PyObject *resultobj;
9336 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9337 wxOutputStream *result;
9338 PyObject * obj0 = 0 ;
9339 char *kwnames[] = {
9340 (char *) "self", NULL
9341 };
9342
9343 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetOutputStream",kwnames,&obj0)) goto fail;
9344 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9345 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9346 {
9347 PyThreadState* __tstate = wxPyBeginAllowThreads();
9348 result = (wxOutputStream *)(arg1)->GetOutputStream();
9349
9350 wxPyEndAllowThreads(__tstate);
9351 if (PyErr_Occurred()) SWIG_fail;
9352 }
9353 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxOutputStream, 0);
9354 return resultobj;
9355 fail:
9356 return NULL;
9357 }
9358
9359
9360 static PyObject *_wrap_Process_CloseOutput(PyObject *self, PyObject *args, PyObject *kwargs) {
9361 PyObject *resultobj;
9362 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9363 PyObject * obj0 = 0 ;
9364 char *kwnames[] = {
9365 (char *) "self", NULL
9366 };
9367
9368 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_CloseOutput",kwnames,&obj0)) goto fail;
9369 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9370 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9371 {
9372 PyThreadState* __tstate = wxPyBeginAllowThreads();
9373 (arg1)->CloseOutput();
9374
9375 wxPyEndAllowThreads(__tstate);
9376 if (PyErr_Occurred()) SWIG_fail;
9377 }
9378 Py_INCREF(Py_None); resultobj = Py_None;
9379 return resultobj;
9380 fail:
9381 return NULL;
9382 }
9383
9384
9385 static PyObject *_wrap_Process_IsInputOpened(PyObject *self, PyObject *args, PyObject *kwargs) {
9386 PyObject *resultobj;
9387 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9388 bool result;
9389 PyObject * obj0 = 0 ;
9390 char *kwnames[] = {
9391 (char *) "self", NULL
9392 };
9393
9394 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsInputOpened",kwnames,&obj0)) goto fail;
9395 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9396 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9397 {
9398 PyThreadState* __tstate = wxPyBeginAllowThreads();
9399 result = (bool)((wxPyProcess const *)arg1)->IsInputOpened();
9400
9401 wxPyEndAllowThreads(__tstate);
9402 if (PyErr_Occurred()) SWIG_fail;
9403 }
9404 {
9405 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9406 }
9407 return resultobj;
9408 fail:
9409 return NULL;
9410 }
9411
9412
9413 static PyObject *_wrap_Process_IsInputAvailable(PyObject *self, PyObject *args, PyObject *kwargs) {
9414 PyObject *resultobj;
9415 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9416 bool result;
9417 PyObject * obj0 = 0 ;
9418 char *kwnames[] = {
9419 (char *) "self", NULL
9420 };
9421
9422 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsInputAvailable",kwnames,&obj0)) goto fail;
9423 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9424 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9425 {
9426 PyThreadState* __tstate = wxPyBeginAllowThreads();
9427 result = (bool)((wxPyProcess const *)arg1)->IsInputAvailable();
9428
9429 wxPyEndAllowThreads(__tstate);
9430 if (PyErr_Occurred()) SWIG_fail;
9431 }
9432 {
9433 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9434 }
9435 return resultobj;
9436 fail:
9437 return NULL;
9438 }
9439
9440
9441 static PyObject *_wrap_Process_IsErrorAvailable(PyObject *self, PyObject *args, PyObject *kwargs) {
9442 PyObject *resultobj;
9443 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9444 bool result;
9445 PyObject * obj0 = 0 ;
9446 char *kwnames[] = {
9447 (char *) "self", NULL
9448 };
9449
9450 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsErrorAvailable",kwnames,&obj0)) goto fail;
9451 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9452 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9453 {
9454 PyThreadState* __tstate = wxPyBeginAllowThreads();
9455 result = (bool)((wxPyProcess const *)arg1)->IsErrorAvailable();
9456
9457 wxPyEndAllowThreads(__tstate);
9458 if (PyErr_Occurred()) SWIG_fail;
9459 }
9460 {
9461 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9462 }
9463 return resultobj;
9464 fail:
9465 return NULL;
9466 }
9467
9468
9469 static PyObject * Process_swigregister(PyObject *self, PyObject *args) {
9470 PyObject *obj;
9471 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9472 SWIG_TypeClientData(SWIGTYPE_p_wxPyProcess, obj);
9473 Py_INCREF(obj);
9474 return Py_BuildValue((char *)"");
9475 }
9476 static PyObject *_wrap_new_ProcessEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
9477 PyObject *resultobj;
9478 int arg1 = (int) 0 ;
9479 int arg2 = (int) 0 ;
9480 int arg3 = (int) 0 ;
9481 wxProcessEvent *result;
9482 PyObject * obj0 = 0 ;
9483 PyObject * obj1 = 0 ;
9484 PyObject * obj2 = 0 ;
9485 char *kwnames[] = {
9486 (char *) "id",(char *) "pid",(char *) "exitcode", NULL
9487 };
9488
9489 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ProcessEvent",kwnames,&obj0,&obj1,&obj2)) goto fail;
9490 if (obj0) {
9491 arg1 = (int) SWIG_AsInt(obj0);
9492 if (PyErr_Occurred()) SWIG_fail;
9493 }
9494 if (obj1) {
9495 arg2 = (int) SWIG_AsInt(obj1);
9496 if (PyErr_Occurred()) SWIG_fail;
9497 }
9498 if (obj2) {
9499 arg3 = (int) SWIG_AsInt(obj2);
9500 if (PyErr_Occurred()) SWIG_fail;
9501 }
9502 {
9503 PyThreadState* __tstate = wxPyBeginAllowThreads();
9504 result = (wxProcessEvent *)new wxProcessEvent(arg1,arg2,arg3);
9505
9506 wxPyEndAllowThreads(__tstate);
9507 if (PyErr_Occurred()) SWIG_fail;
9508 }
9509 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxProcessEvent, 1);
9510 return resultobj;
9511 fail:
9512 return NULL;
9513 }
9514
9515
9516 static PyObject *_wrap_ProcessEvent_GetPid(PyObject *self, PyObject *args, PyObject *kwargs) {
9517 PyObject *resultobj;
9518 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
9519 int result;
9520 PyObject * obj0 = 0 ;
9521 char *kwnames[] = {
9522 (char *) "self", NULL
9523 };
9524
9525 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_GetPid",kwnames,&obj0)) goto fail;
9526 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent,
9527 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9528 {
9529 PyThreadState* __tstate = wxPyBeginAllowThreads();
9530 result = (int)(arg1)->GetPid();
9531
9532 wxPyEndAllowThreads(__tstate);
9533 if (PyErr_Occurred()) SWIG_fail;
9534 }
9535 resultobj = SWIG_FromInt((int)result);
9536 return resultobj;
9537 fail:
9538 return NULL;
9539 }
9540
9541
9542 static PyObject *_wrap_ProcessEvent_GetExitCode(PyObject *self, PyObject *args, PyObject *kwargs) {
9543 PyObject *resultobj;
9544 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
9545 int result;
9546 PyObject * obj0 = 0 ;
9547 char *kwnames[] = {
9548 (char *) "self", NULL
9549 };
9550
9551 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_GetExitCode",kwnames,&obj0)) goto fail;
9552 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent,
9553 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9554 {
9555 PyThreadState* __tstate = wxPyBeginAllowThreads();
9556 result = (int)(arg1)->GetExitCode();
9557
9558 wxPyEndAllowThreads(__tstate);
9559 if (PyErr_Occurred()) SWIG_fail;
9560 }
9561 resultobj = SWIG_FromInt((int)result);
9562 return resultobj;
9563 fail:
9564 return NULL;
9565 }
9566
9567
9568 static PyObject *_wrap_ProcessEvent_m_pid_set(PyObject *self, PyObject *args, PyObject *kwargs) {
9569 PyObject *resultobj;
9570 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
9571 int arg2 ;
9572 PyObject * obj0 = 0 ;
9573 PyObject * obj1 = 0 ;
9574 char *kwnames[] = {
9575 (char *) "self",(char *) "m_pid", NULL
9576 };
9577
9578 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ProcessEvent_m_pid_set",kwnames,&obj0,&obj1)) goto fail;
9579 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent,
9580 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9581 arg2 = (int) SWIG_AsInt(obj1);
9582 if (PyErr_Occurred()) SWIG_fail;
9583 if (arg1) (arg1)->m_pid = arg2;
9584
9585 Py_INCREF(Py_None); resultobj = Py_None;
9586 return resultobj;
9587 fail:
9588 return NULL;
9589 }
9590
9591
9592 static PyObject *_wrap_ProcessEvent_m_pid_get(PyObject *self, PyObject *args, PyObject *kwargs) {
9593 PyObject *resultobj;
9594 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
9595 int result;
9596 PyObject * obj0 = 0 ;
9597 char *kwnames[] = {
9598 (char *) "self", NULL
9599 };
9600
9601 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_m_pid_get",kwnames,&obj0)) goto fail;
9602 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent,
9603 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9604 result = (int) ((arg1)->m_pid);
9605
9606 resultobj = SWIG_FromInt((int)result);
9607 return resultobj;
9608 fail:
9609 return NULL;
9610 }
9611
9612
9613 static PyObject *_wrap_ProcessEvent_m_exitcode_set(PyObject *self, PyObject *args, PyObject *kwargs) {
9614 PyObject *resultobj;
9615 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
9616 int arg2 ;
9617 PyObject * obj0 = 0 ;
9618 PyObject * obj1 = 0 ;
9619 char *kwnames[] = {
9620 (char *) "self",(char *) "m_exitcode", NULL
9621 };
9622
9623 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ProcessEvent_m_exitcode_set",kwnames,&obj0,&obj1)) goto fail;
9624 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent,
9625 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9626 arg2 = (int) SWIG_AsInt(obj1);
9627 if (PyErr_Occurred()) SWIG_fail;
9628 if (arg1) (arg1)->m_exitcode = arg2;
9629
9630 Py_INCREF(Py_None); resultobj = Py_None;
9631 return resultobj;
9632 fail:
9633 return NULL;
9634 }
9635
9636
9637 static PyObject *_wrap_ProcessEvent_m_exitcode_get(PyObject *self, PyObject *args, PyObject *kwargs) {
9638 PyObject *resultobj;
9639 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
9640 int result;
9641 PyObject * obj0 = 0 ;
9642 char *kwnames[] = {
9643 (char *) "self", NULL
9644 };
9645
9646 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_m_exitcode_get",kwnames,&obj0)) goto fail;
9647 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent,
9648 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9649 result = (int) ((arg1)->m_exitcode);
9650
9651 resultobj = SWIG_FromInt((int)result);
9652 return resultobj;
9653 fail:
9654 return NULL;
9655 }
9656
9657
9658 static PyObject * ProcessEvent_swigregister(PyObject *self, PyObject *args) {
9659 PyObject *obj;
9660 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9661 SWIG_TypeClientData(SWIGTYPE_p_wxProcessEvent, obj);
9662 Py_INCREF(obj);
9663 return Py_BuildValue((char *)"");
9664 }
9665 static PyObject *_wrap_Execute(PyObject *self, PyObject *args, PyObject *kwargs) {
9666 PyObject *resultobj;
9667 wxString *arg1 = 0 ;
9668 int arg2 = (int) wxEXEC_ASYNC ;
9669 wxPyProcess *arg3 = (wxPyProcess *) NULL ;
9670 long result;
9671 bool temp1 = False ;
9672 PyObject * obj0 = 0 ;
9673 PyObject * obj1 = 0 ;
9674 PyObject * obj2 = 0 ;
9675 char *kwnames[] = {
9676 (char *) "command",(char *) "flags",(char *) "process", NULL
9677 };
9678
9679 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Execute",kwnames,&obj0,&obj1,&obj2)) goto fail;
9680 {
9681 arg1 = wxString_in_helper(obj0);
9682 if (arg1 == NULL) SWIG_fail;
9683 temp1 = True;
9684 }
9685 if (obj1) {
9686 arg2 = (int) SWIG_AsInt(obj1);
9687 if (PyErr_Occurred()) SWIG_fail;
9688 }
9689 if (obj2) {
9690 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPyProcess,
9691 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9692 }
9693 {
9694 if (!wxPyCheckForApp()) SWIG_fail;
9695 PyThreadState* __tstate = wxPyBeginAllowThreads();
9696 result = (long)wxExecute((wxString const &)*arg1,arg2,arg3);
9697
9698 wxPyEndAllowThreads(__tstate);
9699 if (PyErr_Occurred()) SWIG_fail;
9700 }
9701 resultobj = SWIG_FromLong((long)result);
9702 {
9703 if (temp1)
9704 delete arg1;
9705 }
9706 return resultobj;
9707 fail:
9708 {
9709 if (temp1)
9710 delete arg1;
9711 }
9712 return NULL;
9713 }
9714
9715
9716 static PyObject *_wrap_new_Joystick(PyObject *self, PyObject *args, PyObject *kwargs) {
9717 PyObject *resultobj;
9718 int arg1 = (int) wxJOYSTICK1 ;
9719 wxJoystick *result;
9720 PyObject * obj0 = 0 ;
9721 char *kwnames[] = {
9722 (char *) "joystick", NULL
9723 };
9724
9725 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Joystick",kwnames,&obj0)) goto fail;
9726 if (obj0) {
9727 arg1 = (int) SWIG_AsInt(obj0);
9728 if (PyErr_Occurred()) SWIG_fail;
9729 }
9730 {
9731 if (!wxPyCheckForApp()) SWIG_fail;
9732 PyThreadState* __tstate = wxPyBeginAllowThreads();
9733 result = (wxJoystick *)new wxJoystick(arg1);
9734
9735 wxPyEndAllowThreads(__tstate);
9736 if (PyErr_Occurred()) SWIG_fail;
9737 }
9738 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxJoystick, 1);
9739 return resultobj;
9740 fail:
9741 return NULL;
9742 }
9743
9744
9745 static PyObject *_wrap_delete_Joystick(PyObject *self, PyObject *args, PyObject *kwargs) {
9746 PyObject *resultobj;
9747 wxJoystick *arg1 = (wxJoystick *) 0 ;
9748 PyObject * obj0 = 0 ;
9749 char *kwnames[] = {
9750 (char *) "self", NULL
9751 };
9752
9753 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Joystick",kwnames,&obj0)) goto fail;
9754 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9755 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9756 {
9757 PyThreadState* __tstate = wxPyBeginAllowThreads();
9758 delete arg1;
9759
9760 wxPyEndAllowThreads(__tstate);
9761 if (PyErr_Occurred()) SWIG_fail;
9762 }
9763 Py_INCREF(Py_None); resultobj = Py_None;
9764 return resultobj;
9765 fail:
9766 return NULL;
9767 }
9768
9769
9770 static PyObject *_wrap_Joystick_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
9771 PyObject *resultobj;
9772 wxJoystick *arg1 = (wxJoystick *) 0 ;
9773 wxPoint result;
9774 PyObject * obj0 = 0 ;
9775 char *kwnames[] = {
9776 (char *) "self", NULL
9777 };
9778
9779 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPosition",kwnames,&obj0)) goto fail;
9780 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9781 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9782 {
9783 PyThreadState* __tstate = wxPyBeginAllowThreads();
9784 result = (arg1)->GetPosition();
9785
9786 wxPyEndAllowThreads(__tstate);
9787 if (PyErr_Occurred()) SWIG_fail;
9788 }
9789 {
9790 wxPoint * resultptr;
9791 resultptr = new wxPoint((wxPoint &) result);
9792 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
9793 }
9794 return resultobj;
9795 fail:
9796 return NULL;
9797 }
9798
9799
9800 static PyObject *_wrap_Joystick_GetZPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
9801 PyObject *resultobj;
9802 wxJoystick *arg1 = (wxJoystick *) 0 ;
9803 int result;
9804 PyObject * obj0 = 0 ;
9805 char *kwnames[] = {
9806 (char *) "self", NULL
9807 };
9808
9809 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZPosition",kwnames,&obj0)) goto fail;
9810 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9811 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9812 {
9813 PyThreadState* __tstate = wxPyBeginAllowThreads();
9814 result = (int)(arg1)->GetZPosition();
9815
9816 wxPyEndAllowThreads(__tstate);
9817 if (PyErr_Occurred()) SWIG_fail;
9818 }
9819 resultobj = SWIG_FromInt((int)result);
9820 return resultobj;
9821 fail:
9822 return NULL;
9823 }
9824
9825
9826 static PyObject *_wrap_Joystick_GetButtonState(PyObject *self, PyObject *args, PyObject *kwargs) {
9827 PyObject *resultobj;
9828 wxJoystick *arg1 = (wxJoystick *) 0 ;
9829 int result;
9830 PyObject * obj0 = 0 ;
9831 char *kwnames[] = {
9832 (char *) "self", NULL
9833 };
9834
9835 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetButtonState",kwnames,&obj0)) goto fail;
9836 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9837 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9838 {
9839 PyThreadState* __tstate = wxPyBeginAllowThreads();
9840 result = (int)(arg1)->GetButtonState();
9841
9842 wxPyEndAllowThreads(__tstate);
9843 if (PyErr_Occurred()) SWIG_fail;
9844 }
9845 resultobj = SWIG_FromInt((int)result);
9846 return resultobj;
9847 fail:
9848 return NULL;
9849 }
9850
9851
9852 static PyObject *_wrap_Joystick_GetPOVPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
9853 PyObject *resultobj;
9854 wxJoystick *arg1 = (wxJoystick *) 0 ;
9855 int result;
9856 PyObject * obj0 = 0 ;
9857 char *kwnames[] = {
9858 (char *) "self", NULL
9859 };
9860
9861 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPOVPosition",kwnames,&obj0)) goto fail;
9862 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9863 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9864 {
9865 PyThreadState* __tstate = wxPyBeginAllowThreads();
9866 result = (int)(arg1)->GetPOVPosition();
9867
9868 wxPyEndAllowThreads(__tstate);
9869 if (PyErr_Occurred()) SWIG_fail;
9870 }
9871 resultobj = SWIG_FromInt((int)result);
9872 return resultobj;
9873 fail:
9874 return NULL;
9875 }
9876
9877
9878 static PyObject *_wrap_Joystick_GetPOVCTSPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
9879 PyObject *resultobj;
9880 wxJoystick *arg1 = (wxJoystick *) 0 ;
9881 int result;
9882 PyObject * obj0 = 0 ;
9883 char *kwnames[] = {
9884 (char *) "self", NULL
9885 };
9886
9887 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPOVCTSPosition",kwnames,&obj0)) goto fail;
9888 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9889 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9890 {
9891 PyThreadState* __tstate = wxPyBeginAllowThreads();
9892 result = (int)(arg1)->GetPOVCTSPosition();
9893
9894 wxPyEndAllowThreads(__tstate);
9895 if (PyErr_Occurred()) SWIG_fail;
9896 }
9897 resultobj = SWIG_FromInt((int)result);
9898 return resultobj;
9899 fail:
9900 return NULL;
9901 }
9902
9903
9904 static PyObject *_wrap_Joystick_GetRudderPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
9905 PyObject *resultobj;
9906 wxJoystick *arg1 = (wxJoystick *) 0 ;
9907 int result;
9908 PyObject * obj0 = 0 ;
9909 char *kwnames[] = {
9910 (char *) "self", NULL
9911 };
9912
9913 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderPosition",kwnames,&obj0)) goto fail;
9914 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9915 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9916 {
9917 PyThreadState* __tstate = wxPyBeginAllowThreads();
9918 result = (int)(arg1)->GetRudderPosition();
9919
9920 wxPyEndAllowThreads(__tstate);
9921 if (PyErr_Occurred()) SWIG_fail;
9922 }
9923 resultobj = SWIG_FromInt((int)result);
9924 return resultobj;
9925 fail:
9926 return NULL;
9927 }
9928
9929
9930 static PyObject *_wrap_Joystick_GetUPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
9931 PyObject *resultobj;
9932 wxJoystick *arg1 = (wxJoystick *) 0 ;
9933 int result;
9934 PyObject * obj0 = 0 ;
9935 char *kwnames[] = {
9936 (char *) "self", NULL
9937 };
9938
9939 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUPosition",kwnames,&obj0)) goto fail;
9940 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9941 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9942 {
9943 PyThreadState* __tstate = wxPyBeginAllowThreads();
9944 result = (int)(arg1)->GetUPosition();
9945
9946 wxPyEndAllowThreads(__tstate);
9947 if (PyErr_Occurred()) SWIG_fail;
9948 }
9949 resultobj = SWIG_FromInt((int)result);
9950 return resultobj;
9951 fail:
9952 return NULL;
9953 }
9954
9955
9956 static PyObject *_wrap_Joystick_GetVPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
9957 PyObject *resultobj;
9958 wxJoystick *arg1 = (wxJoystick *) 0 ;
9959 int result;
9960 PyObject * obj0 = 0 ;
9961 char *kwnames[] = {
9962 (char *) "self", NULL
9963 };
9964
9965 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVPosition",kwnames,&obj0)) goto fail;
9966 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9967 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9968 {
9969 PyThreadState* __tstate = wxPyBeginAllowThreads();
9970 result = (int)(arg1)->GetVPosition();
9971
9972 wxPyEndAllowThreads(__tstate);
9973 if (PyErr_Occurred()) SWIG_fail;
9974 }
9975 resultobj = SWIG_FromInt((int)result);
9976 return resultobj;
9977 fail:
9978 return NULL;
9979 }
9980
9981
9982 static PyObject *_wrap_Joystick_GetMovementThreshold(PyObject *self, PyObject *args, PyObject *kwargs) {
9983 PyObject *resultobj;
9984 wxJoystick *arg1 = (wxJoystick *) 0 ;
9985 int result;
9986 PyObject * obj0 = 0 ;
9987 char *kwnames[] = {
9988 (char *) "self", NULL
9989 };
9990
9991 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMovementThreshold",kwnames,&obj0)) goto fail;
9992 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9993 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9994 {
9995 PyThreadState* __tstate = wxPyBeginAllowThreads();
9996 result = (int)(arg1)->GetMovementThreshold();
9997
9998 wxPyEndAllowThreads(__tstate);
9999 if (PyErr_Occurred()) SWIG_fail;
10000 }
10001 resultobj = SWIG_FromInt((int)result);
10002 return resultobj;
10003 fail:
10004 return NULL;
10005 }
10006
10007
10008 static PyObject *_wrap_Joystick_SetMovementThreshold(PyObject *self, PyObject *args, PyObject *kwargs) {
10009 PyObject *resultobj;
10010 wxJoystick *arg1 = (wxJoystick *) 0 ;
10011 int arg2 ;
10012 PyObject * obj0 = 0 ;
10013 PyObject * obj1 = 0 ;
10014 char *kwnames[] = {
10015 (char *) "self",(char *) "threshold", NULL
10016 };
10017
10018 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Joystick_SetMovementThreshold",kwnames,&obj0,&obj1)) goto fail;
10019 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10020 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10021 arg2 = (int) SWIG_AsInt(obj1);
10022 if (PyErr_Occurred()) SWIG_fail;
10023 {
10024 PyThreadState* __tstate = wxPyBeginAllowThreads();
10025 (arg1)->SetMovementThreshold(arg2);
10026
10027 wxPyEndAllowThreads(__tstate);
10028 if (PyErr_Occurred()) SWIG_fail;
10029 }
10030 Py_INCREF(Py_None); resultobj = Py_None;
10031 return resultobj;
10032 fail:
10033 return NULL;
10034 }
10035
10036
10037 static PyObject *_wrap_Joystick_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
10038 PyObject *resultobj;
10039 wxJoystick *arg1 = (wxJoystick *) 0 ;
10040 bool result;
10041 PyObject * obj0 = 0 ;
10042 char *kwnames[] = {
10043 (char *) "self", NULL
10044 };
10045
10046 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_IsOk",kwnames,&obj0)) goto fail;
10047 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10048 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10049 {
10050 PyThreadState* __tstate = wxPyBeginAllowThreads();
10051 result = (bool)(arg1)->IsOk();
10052
10053 wxPyEndAllowThreads(__tstate);
10054 if (PyErr_Occurred()) SWIG_fail;
10055 }
10056 {
10057 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10058 }
10059 return resultobj;
10060 fail:
10061 return NULL;
10062 }
10063
10064
10065 static PyObject *_wrap_Joystick_GetNumberJoysticks(PyObject *self, PyObject *args, PyObject *kwargs) {
10066 PyObject *resultobj;
10067 wxJoystick *arg1 = (wxJoystick *) 0 ;
10068 int result;
10069 PyObject * obj0 = 0 ;
10070 char *kwnames[] = {
10071 (char *) "self", NULL
10072 };
10073
10074 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberJoysticks",kwnames,&obj0)) goto fail;
10075 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10076 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10077 {
10078 PyThreadState* __tstate = wxPyBeginAllowThreads();
10079 result = (int)(arg1)->GetNumberJoysticks();
10080
10081 wxPyEndAllowThreads(__tstate);
10082 if (PyErr_Occurred()) SWIG_fail;
10083 }
10084 resultobj = SWIG_FromInt((int)result);
10085 return resultobj;
10086 fail:
10087 return NULL;
10088 }
10089
10090
10091 static PyObject *_wrap_Joystick_GetManufacturerId(PyObject *self, PyObject *args, PyObject *kwargs) {
10092 PyObject *resultobj;
10093 wxJoystick *arg1 = (wxJoystick *) 0 ;
10094 int result;
10095 PyObject * obj0 = 0 ;
10096 char *kwnames[] = {
10097 (char *) "self", NULL
10098 };
10099
10100 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetManufacturerId",kwnames,&obj0)) goto fail;
10101 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10102 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10103 {
10104 PyThreadState* __tstate = wxPyBeginAllowThreads();
10105 result = (int)(arg1)->GetManufacturerId();
10106
10107 wxPyEndAllowThreads(__tstate);
10108 if (PyErr_Occurred()) SWIG_fail;
10109 }
10110 resultobj = SWIG_FromInt((int)result);
10111 return resultobj;
10112 fail:
10113 return NULL;
10114 }
10115
10116
10117 static PyObject *_wrap_Joystick_GetProductId(PyObject *self, PyObject *args, PyObject *kwargs) {
10118 PyObject *resultobj;
10119 wxJoystick *arg1 = (wxJoystick *) 0 ;
10120 int result;
10121 PyObject * obj0 = 0 ;
10122 char *kwnames[] = {
10123 (char *) "self", NULL
10124 };
10125
10126 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetProductId",kwnames,&obj0)) goto fail;
10127 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10128 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10129 {
10130 PyThreadState* __tstate = wxPyBeginAllowThreads();
10131 result = (int)(arg1)->GetProductId();
10132
10133 wxPyEndAllowThreads(__tstate);
10134 if (PyErr_Occurred()) SWIG_fail;
10135 }
10136 resultobj = SWIG_FromInt((int)result);
10137 return resultobj;
10138 fail:
10139 return NULL;
10140 }
10141
10142
10143 static PyObject *_wrap_Joystick_GetProductName(PyObject *self, PyObject *args, PyObject *kwargs) {
10144 PyObject *resultobj;
10145 wxJoystick *arg1 = (wxJoystick *) 0 ;
10146 wxString result;
10147 PyObject * obj0 = 0 ;
10148 char *kwnames[] = {
10149 (char *) "self", NULL
10150 };
10151
10152 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetProductName",kwnames,&obj0)) goto fail;
10153 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10154 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10155 {
10156 PyThreadState* __tstate = wxPyBeginAllowThreads();
10157 result = (arg1)->GetProductName();
10158
10159 wxPyEndAllowThreads(__tstate);
10160 if (PyErr_Occurred()) SWIG_fail;
10161 }
10162 {
10163 #if wxUSE_UNICODE
10164 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10165 #else
10166 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10167 #endif
10168 }
10169 return resultobj;
10170 fail:
10171 return NULL;
10172 }
10173
10174
10175 static PyObject *_wrap_Joystick_GetXMin(PyObject *self, PyObject *args, PyObject *kwargs) {
10176 PyObject *resultobj;
10177 wxJoystick *arg1 = (wxJoystick *) 0 ;
10178 int result;
10179 PyObject * obj0 = 0 ;
10180 char *kwnames[] = {
10181 (char *) "self", NULL
10182 };
10183
10184 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetXMin",kwnames,&obj0)) goto fail;
10185 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10186 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10187 {
10188 PyThreadState* __tstate = wxPyBeginAllowThreads();
10189 result = (int)(arg1)->GetXMin();
10190
10191 wxPyEndAllowThreads(__tstate);
10192 if (PyErr_Occurred()) SWIG_fail;
10193 }
10194 resultobj = SWIG_FromInt((int)result);
10195 return resultobj;
10196 fail:
10197 return NULL;
10198 }
10199
10200
10201 static PyObject *_wrap_Joystick_GetYMin(PyObject *self, PyObject *args, PyObject *kwargs) {
10202 PyObject *resultobj;
10203 wxJoystick *arg1 = (wxJoystick *) 0 ;
10204 int result;
10205 PyObject * obj0 = 0 ;
10206 char *kwnames[] = {
10207 (char *) "self", NULL
10208 };
10209
10210 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetYMin",kwnames,&obj0)) goto fail;
10211 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10212 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10213 {
10214 PyThreadState* __tstate = wxPyBeginAllowThreads();
10215 result = (int)(arg1)->GetYMin();
10216
10217 wxPyEndAllowThreads(__tstate);
10218 if (PyErr_Occurred()) SWIG_fail;
10219 }
10220 resultobj = SWIG_FromInt((int)result);
10221 return resultobj;
10222 fail:
10223 return NULL;
10224 }
10225
10226
10227 static PyObject *_wrap_Joystick_GetZMin(PyObject *self, PyObject *args, PyObject *kwargs) {
10228 PyObject *resultobj;
10229 wxJoystick *arg1 = (wxJoystick *) 0 ;
10230 int result;
10231 PyObject * obj0 = 0 ;
10232 char *kwnames[] = {
10233 (char *) "self", NULL
10234 };
10235
10236 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZMin",kwnames,&obj0)) goto fail;
10237 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10238 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10239 {
10240 PyThreadState* __tstate = wxPyBeginAllowThreads();
10241 result = (int)(arg1)->GetZMin();
10242
10243 wxPyEndAllowThreads(__tstate);
10244 if (PyErr_Occurred()) SWIG_fail;
10245 }
10246 resultobj = SWIG_FromInt((int)result);
10247 return resultobj;
10248 fail:
10249 return NULL;
10250 }
10251
10252
10253 static PyObject *_wrap_Joystick_GetXMax(PyObject *self, PyObject *args, PyObject *kwargs) {
10254 PyObject *resultobj;
10255 wxJoystick *arg1 = (wxJoystick *) 0 ;
10256 int result;
10257 PyObject * obj0 = 0 ;
10258 char *kwnames[] = {
10259 (char *) "self", NULL
10260 };
10261
10262 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetXMax",kwnames,&obj0)) goto fail;
10263 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10264 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10265 {
10266 PyThreadState* __tstate = wxPyBeginAllowThreads();
10267 result = (int)(arg1)->GetXMax();
10268
10269 wxPyEndAllowThreads(__tstate);
10270 if (PyErr_Occurred()) SWIG_fail;
10271 }
10272 resultobj = SWIG_FromInt((int)result);
10273 return resultobj;
10274 fail:
10275 return NULL;
10276 }
10277
10278
10279 static PyObject *_wrap_Joystick_GetYMax(PyObject *self, PyObject *args, PyObject *kwargs) {
10280 PyObject *resultobj;
10281 wxJoystick *arg1 = (wxJoystick *) 0 ;
10282 int result;
10283 PyObject * obj0 = 0 ;
10284 char *kwnames[] = {
10285 (char *) "self", NULL
10286 };
10287
10288 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetYMax",kwnames,&obj0)) goto fail;
10289 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10290 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10291 {
10292 PyThreadState* __tstate = wxPyBeginAllowThreads();
10293 result = (int)(arg1)->GetYMax();
10294
10295 wxPyEndAllowThreads(__tstate);
10296 if (PyErr_Occurred()) SWIG_fail;
10297 }
10298 resultobj = SWIG_FromInt((int)result);
10299 return resultobj;
10300 fail:
10301 return NULL;
10302 }
10303
10304
10305 static PyObject *_wrap_Joystick_GetZMax(PyObject *self, PyObject *args, PyObject *kwargs) {
10306 PyObject *resultobj;
10307 wxJoystick *arg1 = (wxJoystick *) 0 ;
10308 int result;
10309 PyObject * obj0 = 0 ;
10310 char *kwnames[] = {
10311 (char *) "self", NULL
10312 };
10313
10314 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZMax",kwnames,&obj0)) goto fail;
10315 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10316 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10317 {
10318 PyThreadState* __tstate = wxPyBeginAllowThreads();
10319 result = (int)(arg1)->GetZMax();
10320
10321 wxPyEndAllowThreads(__tstate);
10322 if (PyErr_Occurred()) SWIG_fail;
10323 }
10324 resultobj = SWIG_FromInt((int)result);
10325 return resultobj;
10326 fail:
10327 return NULL;
10328 }
10329
10330
10331 static PyObject *_wrap_Joystick_GetNumberButtons(PyObject *self, PyObject *args, PyObject *kwargs) {
10332 PyObject *resultobj;
10333 wxJoystick *arg1 = (wxJoystick *) 0 ;
10334 int result;
10335 PyObject * obj0 = 0 ;
10336 char *kwnames[] = {
10337 (char *) "self", NULL
10338 };
10339
10340 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberButtons",kwnames,&obj0)) goto fail;
10341 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10342 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10343 {
10344 PyThreadState* __tstate = wxPyBeginAllowThreads();
10345 result = (int)(arg1)->GetNumberButtons();
10346
10347 wxPyEndAllowThreads(__tstate);
10348 if (PyErr_Occurred()) SWIG_fail;
10349 }
10350 resultobj = SWIG_FromInt((int)result);
10351 return resultobj;
10352 fail:
10353 return NULL;
10354 }
10355
10356
10357 static PyObject *_wrap_Joystick_GetNumberAxes(PyObject *self, PyObject *args, PyObject *kwargs) {
10358 PyObject *resultobj;
10359 wxJoystick *arg1 = (wxJoystick *) 0 ;
10360 int result;
10361 PyObject * obj0 = 0 ;
10362 char *kwnames[] = {
10363 (char *) "self", NULL
10364 };
10365
10366 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberAxes",kwnames,&obj0)) goto fail;
10367 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10368 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10369 {
10370 PyThreadState* __tstate = wxPyBeginAllowThreads();
10371 result = (int)(arg1)->GetNumberAxes();
10372
10373 wxPyEndAllowThreads(__tstate);
10374 if (PyErr_Occurred()) SWIG_fail;
10375 }
10376 resultobj = SWIG_FromInt((int)result);
10377 return resultobj;
10378 fail:
10379 return NULL;
10380 }
10381
10382
10383 static PyObject *_wrap_Joystick_GetMaxButtons(PyObject *self, PyObject *args, PyObject *kwargs) {
10384 PyObject *resultobj;
10385 wxJoystick *arg1 = (wxJoystick *) 0 ;
10386 int result;
10387 PyObject * obj0 = 0 ;
10388 char *kwnames[] = {
10389 (char *) "self", NULL
10390 };
10391
10392 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMaxButtons",kwnames,&obj0)) goto fail;
10393 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10394 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10395 {
10396 PyThreadState* __tstate = wxPyBeginAllowThreads();
10397 result = (int)(arg1)->GetMaxButtons();
10398
10399 wxPyEndAllowThreads(__tstate);
10400 if (PyErr_Occurred()) SWIG_fail;
10401 }
10402 resultobj = SWIG_FromInt((int)result);
10403 return resultobj;
10404 fail:
10405 return NULL;
10406 }
10407
10408
10409 static PyObject *_wrap_Joystick_GetMaxAxes(PyObject *self, PyObject *args, PyObject *kwargs) {
10410 PyObject *resultobj;
10411 wxJoystick *arg1 = (wxJoystick *) 0 ;
10412 int result;
10413 PyObject * obj0 = 0 ;
10414 char *kwnames[] = {
10415 (char *) "self", NULL
10416 };
10417
10418 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMaxAxes",kwnames,&obj0)) goto fail;
10419 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10420 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10421 {
10422 PyThreadState* __tstate = wxPyBeginAllowThreads();
10423 result = (int)(arg1)->GetMaxAxes();
10424
10425 wxPyEndAllowThreads(__tstate);
10426 if (PyErr_Occurred()) SWIG_fail;
10427 }
10428 resultobj = SWIG_FromInt((int)result);
10429 return resultobj;
10430 fail:
10431 return NULL;
10432 }
10433
10434
10435 static PyObject *_wrap_Joystick_GetPollingMin(PyObject *self, PyObject *args, PyObject *kwargs) {
10436 PyObject *resultobj;
10437 wxJoystick *arg1 = (wxJoystick *) 0 ;
10438 int result;
10439 PyObject * obj0 = 0 ;
10440 char *kwnames[] = {
10441 (char *) "self", NULL
10442 };
10443
10444 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPollingMin",kwnames,&obj0)) goto fail;
10445 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10446 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10447 {
10448 PyThreadState* __tstate = wxPyBeginAllowThreads();
10449 result = (int)(arg1)->GetPollingMin();
10450
10451 wxPyEndAllowThreads(__tstate);
10452 if (PyErr_Occurred()) SWIG_fail;
10453 }
10454 resultobj = SWIG_FromInt((int)result);
10455 return resultobj;
10456 fail:
10457 return NULL;
10458 }
10459
10460
10461 static PyObject *_wrap_Joystick_GetPollingMax(PyObject *self, PyObject *args, PyObject *kwargs) {
10462 PyObject *resultobj;
10463 wxJoystick *arg1 = (wxJoystick *) 0 ;
10464 int result;
10465 PyObject * obj0 = 0 ;
10466 char *kwnames[] = {
10467 (char *) "self", NULL
10468 };
10469
10470 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPollingMax",kwnames,&obj0)) goto fail;
10471 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10472 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10473 {
10474 PyThreadState* __tstate = wxPyBeginAllowThreads();
10475 result = (int)(arg1)->GetPollingMax();
10476
10477 wxPyEndAllowThreads(__tstate);
10478 if (PyErr_Occurred()) SWIG_fail;
10479 }
10480 resultobj = SWIG_FromInt((int)result);
10481 return resultobj;
10482 fail:
10483 return NULL;
10484 }
10485
10486
10487 static PyObject *_wrap_Joystick_GetRudderMin(PyObject *self, PyObject *args, PyObject *kwargs) {
10488 PyObject *resultobj;
10489 wxJoystick *arg1 = (wxJoystick *) 0 ;
10490 int result;
10491 PyObject * obj0 = 0 ;
10492 char *kwnames[] = {
10493 (char *) "self", NULL
10494 };
10495
10496 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderMin",kwnames,&obj0)) goto fail;
10497 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10498 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10499 {
10500 PyThreadState* __tstate = wxPyBeginAllowThreads();
10501 result = (int)(arg1)->GetRudderMin();
10502
10503 wxPyEndAllowThreads(__tstate);
10504 if (PyErr_Occurred()) SWIG_fail;
10505 }
10506 resultobj = SWIG_FromInt((int)result);
10507 return resultobj;
10508 fail:
10509 return NULL;
10510 }
10511
10512
10513 static PyObject *_wrap_Joystick_GetRudderMax(PyObject *self, PyObject *args, PyObject *kwargs) {
10514 PyObject *resultobj;
10515 wxJoystick *arg1 = (wxJoystick *) 0 ;
10516 int result;
10517 PyObject * obj0 = 0 ;
10518 char *kwnames[] = {
10519 (char *) "self", NULL
10520 };
10521
10522 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderMax",kwnames,&obj0)) goto fail;
10523 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10524 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10525 {
10526 PyThreadState* __tstate = wxPyBeginAllowThreads();
10527 result = (int)(arg1)->GetRudderMax();
10528
10529 wxPyEndAllowThreads(__tstate);
10530 if (PyErr_Occurred()) SWIG_fail;
10531 }
10532 resultobj = SWIG_FromInt((int)result);
10533 return resultobj;
10534 fail:
10535 return NULL;
10536 }
10537
10538
10539 static PyObject *_wrap_Joystick_GetUMin(PyObject *self, PyObject *args, PyObject *kwargs) {
10540 PyObject *resultobj;
10541 wxJoystick *arg1 = (wxJoystick *) 0 ;
10542 int result;
10543 PyObject * obj0 = 0 ;
10544 char *kwnames[] = {
10545 (char *) "self", NULL
10546 };
10547
10548 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUMin",kwnames,&obj0)) goto fail;
10549 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10550 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10551 {
10552 PyThreadState* __tstate = wxPyBeginAllowThreads();
10553 result = (int)(arg1)->GetUMin();
10554
10555 wxPyEndAllowThreads(__tstate);
10556 if (PyErr_Occurred()) SWIG_fail;
10557 }
10558 resultobj = SWIG_FromInt((int)result);
10559 return resultobj;
10560 fail:
10561 return NULL;
10562 }
10563
10564
10565 static PyObject *_wrap_Joystick_GetUMax(PyObject *self, PyObject *args, PyObject *kwargs) {
10566 PyObject *resultobj;
10567 wxJoystick *arg1 = (wxJoystick *) 0 ;
10568 int result;
10569 PyObject * obj0 = 0 ;
10570 char *kwnames[] = {
10571 (char *) "self", NULL
10572 };
10573
10574 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUMax",kwnames,&obj0)) goto fail;
10575 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10576 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10577 {
10578 PyThreadState* __tstate = wxPyBeginAllowThreads();
10579 result = (int)(arg1)->GetUMax();
10580
10581 wxPyEndAllowThreads(__tstate);
10582 if (PyErr_Occurred()) SWIG_fail;
10583 }
10584 resultobj = SWIG_FromInt((int)result);
10585 return resultobj;
10586 fail:
10587 return NULL;
10588 }
10589
10590
10591 static PyObject *_wrap_Joystick_GetVMin(PyObject *self, PyObject *args, PyObject *kwargs) {
10592 PyObject *resultobj;
10593 wxJoystick *arg1 = (wxJoystick *) 0 ;
10594 int result;
10595 PyObject * obj0 = 0 ;
10596 char *kwnames[] = {
10597 (char *) "self", NULL
10598 };
10599
10600 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVMin",kwnames,&obj0)) goto fail;
10601 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10602 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10603 {
10604 PyThreadState* __tstate = wxPyBeginAllowThreads();
10605 result = (int)(arg1)->GetVMin();
10606
10607 wxPyEndAllowThreads(__tstate);
10608 if (PyErr_Occurred()) SWIG_fail;
10609 }
10610 resultobj = SWIG_FromInt((int)result);
10611 return resultobj;
10612 fail:
10613 return NULL;
10614 }
10615
10616
10617 static PyObject *_wrap_Joystick_GetVMax(PyObject *self, PyObject *args, PyObject *kwargs) {
10618 PyObject *resultobj;
10619 wxJoystick *arg1 = (wxJoystick *) 0 ;
10620 int result;
10621 PyObject * obj0 = 0 ;
10622 char *kwnames[] = {
10623 (char *) "self", NULL
10624 };
10625
10626 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVMax",kwnames,&obj0)) goto fail;
10627 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10628 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10629 {
10630 PyThreadState* __tstate = wxPyBeginAllowThreads();
10631 result = (int)(arg1)->GetVMax();
10632
10633 wxPyEndAllowThreads(__tstate);
10634 if (PyErr_Occurred()) SWIG_fail;
10635 }
10636 resultobj = SWIG_FromInt((int)result);
10637 return resultobj;
10638 fail:
10639 return NULL;
10640 }
10641
10642
10643 static PyObject *_wrap_Joystick_HasRudder(PyObject *self, PyObject *args, PyObject *kwargs) {
10644 PyObject *resultobj;
10645 wxJoystick *arg1 = (wxJoystick *) 0 ;
10646 bool result;
10647 PyObject * obj0 = 0 ;
10648 char *kwnames[] = {
10649 (char *) "self", NULL
10650 };
10651
10652 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasRudder",kwnames,&obj0)) goto fail;
10653 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10654 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10655 {
10656 PyThreadState* __tstate = wxPyBeginAllowThreads();
10657 result = (bool)(arg1)->HasRudder();
10658
10659 wxPyEndAllowThreads(__tstate);
10660 if (PyErr_Occurred()) SWIG_fail;
10661 }
10662 {
10663 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10664 }
10665 return resultobj;
10666 fail:
10667 return NULL;
10668 }
10669
10670
10671 static PyObject *_wrap_Joystick_HasZ(PyObject *self, PyObject *args, PyObject *kwargs) {
10672 PyObject *resultobj;
10673 wxJoystick *arg1 = (wxJoystick *) 0 ;
10674 bool result;
10675 PyObject * obj0 = 0 ;
10676 char *kwnames[] = {
10677 (char *) "self", NULL
10678 };
10679
10680 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasZ",kwnames,&obj0)) goto fail;
10681 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10682 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10683 {
10684 PyThreadState* __tstate = wxPyBeginAllowThreads();
10685 result = (bool)(arg1)->HasZ();
10686
10687 wxPyEndAllowThreads(__tstate);
10688 if (PyErr_Occurred()) SWIG_fail;
10689 }
10690 {
10691 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10692 }
10693 return resultobj;
10694 fail:
10695 return NULL;
10696 }
10697
10698
10699 static PyObject *_wrap_Joystick_HasU(PyObject *self, PyObject *args, PyObject *kwargs) {
10700 PyObject *resultobj;
10701 wxJoystick *arg1 = (wxJoystick *) 0 ;
10702 bool result;
10703 PyObject * obj0 = 0 ;
10704 char *kwnames[] = {
10705 (char *) "self", NULL
10706 };
10707
10708 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasU",kwnames,&obj0)) goto fail;
10709 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10710 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10711 {
10712 PyThreadState* __tstate = wxPyBeginAllowThreads();
10713 result = (bool)(arg1)->HasU();
10714
10715 wxPyEndAllowThreads(__tstate);
10716 if (PyErr_Occurred()) SWIG_fail;
10717 }
10718 {
10719 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10720 }
10721 return resultobj;
10722 fail:
10723 return NULL;
10724 }
10725
10726
10727 static PyObject *_wrap_Joystick_HasV(PyObject *self, PyObject *args, PyObject *kwargs) {
10728 PyObject *resultobj;
10729 wxJoystick *arg1 = (wxJoystick *) 0 ;
10730 bool result;
10731 PyObject * obj0 = 0 ;
10732 char *kwnames[] = {
10733 (char *) "self", NULL
10734 };
10735
10736 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasV",kwnames,&obj0)) goto fail;
10737 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10738 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10739 {
10740 PyThreadState* __tstate = wxPyBeginAllowThreads();
10741 result = (bool)(arg1)->HasV();
10742
10743 wxPyEndAllowThreads(__tstate);
10744 if (PyErr_Occurred()) SWIG_fail;
10745 }
10746 {
10747 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10748 }
10749 return resultobj;
10750 fail:
10751 return NULL;
10752 }
10753
10754
10755 static PyObject *_wrap_Joystick_HasPOV(PyObject *self, PyObject *args, PyObject *kwargs) {
10756 PyObject *resultobj;
10757 wxJoystick *arg1 = (wxJoystick *) 0 ;
10758 bool result;
10759 PyObject * obj0 = 0 ;
10760 char *kwnames[] = {
10761 (char *) "self", NULL
10762 };
10763
10764 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOV",kwnames,&obj0)) goto fail;
10765 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10766 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10767 {
10768 PyThreadState* __tstate = wxPyBeginAllowThreads();
10769 result = (bool)(arg1)->HasPOV();
10770
10771 wxPyEndAllowThreads(__tstate);
10772 if (PyErr_Occurred()) SWIG_fail;
10773 }
10774 {
10775 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10776 }
10777 return resultobj;
10778 fail:
10779 return NULL;
10780 }
10781
10782
10783 static PyObject *_wrap_Joystick_HasPOV4Dir(PyObject *self, PyObject *args, PyObject *kwargs) {
10784 PyObject *resultobj;
10785 wxJoystick *arg1 = (wxJoystick *) 0 ;
10786 bool result;
10787 PyObject * obj0 = 0 ;
10788 char *kwnames[] = {
10789 (char *) "self", NULL
10790 };
10791
10792 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOV4Dir",kwnames,&obj0)) goto fail;
10793 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10794 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10795 {
10796 PyThreadState* __tstate = wxPyBeginAllowThreads();
10797 result = (bool)(arg1)->HasPOV4Dir();
10798
10799 wxPyEndAllowThreads(__tstate);
10800 if (PyErr_Occurred()) SWIG_fail;
10801 }
10802 {
10803 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10804 }
10805 return resultobj;
10806 fail:
10807 return NULL;
10808 }
10809
10810
10811 static PyObject *_wrap_Joystick_HasPOVCTS(PyObject *self, PyObject *args, PyObject *kwargs) {
10812 PyObject *resultobj;
10813 wxJoystick *arg1 = (wxJoystick *) 0 ;
10814 bool result;
10815 PyObject * obj0 = 0 ;
10816 char *kwnames[] = {
10817 (char *) "self", NULL
10818 };
10819
10820 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOVCTS",kwnames,&obj0)) goto fail;
10821 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10822 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10823 {
10824 PyThreadState* __tstate = wxPyBeginAllowThreads();
10825 result = (bool)(arg1)->HasPOVCTS();
10826
10827 wxPyEndAllowThreads(__tstate);
10828 if (PyErr_Occurred()) SWIG_fail;
10829 }
10830 {
10831 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10832 }
10833 return resultobj;
10834 fail:
10835 return NULL;
10836 }
10837
10838
10839 static PyObject *_wrap_Joystick_SetCapture(PyObject *self, PyObject *args, PyObject *kwargs) {
10840 PyObject *resultobj;
10841 wxJoystick *arg1 = (wxJoystick *) 0 ;
10842 wxWindow *arg2 = (wxWindow *) 0 ;
10843 int arg3 = (int) 0 ;
10844 bool result;
10845 PyObject * obj0 = 0 ;
10846 PyObject * obj1 = 0 ;
10847 PyObject * obj2 = 0 ;
10848 char *kwnames[] = {
10849 (char *) "self",(char *) "win",(char *) "pollingFreq", NULL
10850 };
10851
10852 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Joystick_SetCapture",kwnames,&obj0,&obj1,&obj2)) goto fail;
10853 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10854 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10855 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
10856 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10857 if (obj2) {
10858 arg3 = (int) SWIG_AsInt(obj2);
10859 if (PyErr_Occurred()) SWIG_fail;
10860 }
10861 {
10862 PyThreadState* __tstate = wxPyBeginAllowThreads();
10863 result = (bool)(arg1)->SetCapture(arg2,arg3);
10864
10865 wxPyEndAllowThreads(__tstate);
10866 if (PyErr_Occurred()) SWIG_fail;
10867 }
10868 {
10869 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10870 }
10871 return resultobj;
10872 fail:
10873 return NULL;
10874 }
10875
10876
10877 static PyObject *_wrap_Joystick_ReleaseCapture(PyObject *self, PyObject *args, PyObject *kwargs) {
10878 PyObject *resultobj;
10879 wxJoystick *arg1 = (wxJoystick *) 0 ;
10880 bool result;
10881 PyObject * obj0 = 0 ;
10882 char *kwnames[] = {
10883 (char *) "self", NULL
10884 };
10885
10886 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_ReleaseCapture",kwnames,&obj0)) goto fail;
10887 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10888 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10889 {
10890 PyThreadState* __tstate = wxPyBeginAllowThreads();
10891 result = (bool)(arg1)->ReleaseCapture();
10892
10893 wxPyEndAllowThreads(__tstate);
10894 if (PyErr_Occurred()) SWIG_fail;
10895 }
10896 {
10897 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10898 }
10899 return resultobj;
10900 fail:
10901 return NULL;
10902 }
10903
10904
10905 static PyObject * Joystick_swigregister(PyObject *self, PyObject *args) {
10906 PyObject *obj;
10907 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10908 SWIG_TypeClientData(SWIGTYPE_p_wxJoystick, obj);
10909 Py_INCREF(obj);
10910 return Py_BuildValue((char *)"");
10911 }
10912 static PyObject *_wrap_JoystickEvent_m_pos_set(PyObject *self, PyObject *args, PyObject *kwargs) {
10913 PyObject *resultobj;
10914 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10915 wxPoint *arg2 = (wxPoint *) 0 ;
10916 PyObject * obj0 = 0 ;
10917 PyObject * obj1 = 0 ;
10918 char *kwnames[] = {
10919 (char *) "self",(char *) "m_pos", NULL
10920 };
10921
10922 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_pos_set",kwnames,&obj0,&obj1)) goto fail;
10923 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10924 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10925 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPoint,
10926 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10927 if (arg1) (arg1)->m_pos = *arg2;
10928
10929 Py_INCREF(Py_None); resultobj = Py_None;
10930 return resultobj;
10931 fail:
10932 return NULL;
10933 }
10934
10935
10936 static PyObject *_wrap_JoystickEvent_m_pos_get(PyObject *self, PyObject *args, PyObject *kwargs) {
10937 PyObject *resultobj;
10938 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10939 wxPoint *result;
10940 PyObject * obj0 = 0 ;
10941 char *kwnames[] = {
10942 (char *) "self", NULL
10943 };
10944
10945 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_pos_get",kwnames,&obj0)) goto fail;
10946 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10947 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10948 result = (wxPoint *)& ((arg1)->m_pos);
10949
10950 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0);
10951 return resultobj;
10952 fail:
10953 return NULL;
10954 }
10955
10956
10957 static PyObject *_wrap_JoystickEvent_m_zPosition_set(PyObject *self, PyObject *args, PyObject *kwargs) {
10958 PyObject *resultobj;
10959 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10960 int arg2 ;
10961 PyObject * obj0 = 0 ;
10962 PyObject * obj1 = 0 ;
10963 char *kwnames[] = {
10964 (char *) "self",(char *) "m_zPosition", NULL
10965 };
10966
10967 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_zPosition_set",kwnames,&obj0,&obj1)) goto fail;
10968 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10969 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10970 arg2 = (int) SWIG_AsInt(obj1);
10971 if (PyErr_Occurred()) SWIG_fail;
10972 if (arg1) (arg1)->m_zPosition = arg2;
10973
10974 Py_INCREF(Py_None); resultobj = Py_None;
10975 return resultobj;
10976 fail:
10977 return NULL;
10978 }
10979
10980
10981 static PyObject *_wrap_JoystickEvent_m_zPosition_get(PyObject *self, PyObject *args, PyObject *kwargs) {
10982 PyObject *resultobj;
10983 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10984 int result;
10985 PyObject * obj0 = 0 ;
10986 char *kwnames[] = {
10987 (char *) "self", NULL
10988 };
10989
10990 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_zPosition_get",kwnames,&obj0)) goto fail;
10991 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10992 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10993 result = (int) ((arg1)->m_zPosition);
10994
10995 resultobj = SWIG_FromInt((int)result);
10996 return resultobj;
10997 fail:
10998 return NULL;
10999 }
11000
11001
11002 static PyObject *_wrap_JoystickEvent_m_buttonChange_set(PyObject *self, PyObject *args, PyObject *kwargs) {
11003 PyObject *resultobj;
11004 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11005 int arg2 ;
11006 PyObject * obj0 = 0 ;
11007 PyObject * obj1 = 0 ;
11008 char *kwnames[] = {
11009 (char *) "self",(char *) "m_buttonChange", NULL
11010 };
11011
11012 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_buttonChange_set",kwnames,&obj0,&obj1)) goto fail;
11013 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11014 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11015 arg2 = (int) SWIG_AsInt(obj1);
11016 if (PyErr_Occurred()) SWIG_fail;
11017 if (arg1) (arg1)->m_buttonChange = arg2;
11018
11019 Py_INCREF(Py_None); resultobj = Py_None;
11020 return resultobj;
11021 fail:
11022 return NULL;
11023 }
11024
11025
11026 static PyObject *_wrap_JoystickEvent_m_buttonChange_get(PyObject *self, PyObject *args, PyObject *kwargs) {
11027 PyObject *resultobj;
11028 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11029 int result;
11030 PyObject * obj0 = 0 ;
11031 char *kwnames[] = {
11032 (char *) "self", NULL
11033 };
11034
11035 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_buttonChange_get",kwnames,&obj0)) goto fail;
11036 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11037 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11038 result = (int) ((arg1)->m_buttonChange);
11039
11040 resultobj = SWIG_FromInt((int)result);
11041 return resultobj;
11042 fail:
11043 return NULL;
11044 }
11045
11046
11047 static PyObject *_wrap_JoystickEvent_m_buttonState_set(PyObject *self, PyObject *args, PyObject *kwargs) {
11048 PyObject *resultobj;
11049 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11050 int arg2 ;
11051 PyObject * obj0 = 0 ;
11052 PyObject * obj1 = 0 ;
11053 char *kwnames[] = {
11054 (char *) "self",(char *) "m_buttonState", NULL
11055 };
11056
11057 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_buttonState_set",kwnames,&obj0,&obj1)) goto fail;
11058 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11059 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11060 arg2 = (int) SWIG_AsInt(obj1);
11061 if (PyErr_Occurred()) SWIG_fail;
11062 if (arg1) (arg1)->m_buttonState = arg2;
11063
11064 Py_INCREF(Py_None); resultobj = Py_None;
11065 return resultobj;
11066 fail:
11067 return NULL;
11068 }
11069
11070
11071 static PyObject *_wrap_JoystickEvent_m_buttonState_get(PyObject *self, PyObject *args, PyObject *kwargs) {
11072 PyObject *resultobj;
11073 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11074 int result;
11075 PyObject * obj0 = 0 ;
11076 char *kwnames[] = {
11077 (char *) "self", NULL
11078 };
11079
11080 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_buttonState_get",kwnames,&obj0)) goto fail;
11081 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11082 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11083 result = (int) ((arg1)->m_buttonState);
11084
11085 resultobj = SWIG_FromInt((int)result);
11086 return resultobj;
11087 fail:
11088 return NULL;
11089 }
11090
11091
11092 static PyObject *_wrap_JoystickEvent_m_joyStick_set(PyObject *self, PyObject *args, PyObject *kwargs) {
11093 PyObject *resultobj;
11094 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11095 int arg2 ;
11096 PyObject * obj0 = 0 ;
11097 PyObject * obj1 = 0 ;
11098 char *kwnames[] = {
11099 (char *) "self",(char *) "m_joyStick", NULL
11100 };
11101
11102 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_joyStick_set",kwnames,&obj0,&obj1)) goto fail;
11103 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11104 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11105 arg2 = (int) SWIG_AsInt(obj1);
11106 if (PyErr_Occurred()) SWIG_fail;
11107 if (arg1) (arg1)->m_joyStick = arg2;
11108
11109 Py_INCREF(Py_None); resultobj = Py_None;
11110 return resultobj;
11111 fail:
11112 return NULL;
11113 }
11114
11115
11116 static PyObject *_wrap_JoystickEvent_m_joyStick_get(PyObject *self, PyObject *args, PyObject *kwargs) {
11117 PyObject *resultobj;
11118 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11119 int result;
11120 PyObject * obj0 = 0 ;
11121 char *kwnames[] = {
11122 (char *) "self", NULL
11123 };
11124
11125 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_joyStick_get",kwnames,&obj0)) goto fail;
11126 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11127 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11128 result = (int) ((arg1)->m_joyStick);
11129
11130 resultobj = SWIG_FromInt((int)result);
11131 return resultobj;
11132 fail:
11133 return NULL;
11134 }
11135
11136
11137 static PyObject *_wrap_new_JoystickEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
11138 PyObject *resultobj;
11139 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
11140 int arg2 = (int) 0 ;
11141 int arg3 = (int) wxJOYSTICK1 ;
11142 int arg4 = (int) 0 ;
11143 wxJoystickEvent *result;
11144 PyObject * obj0 = 0 ;
11145 PyObject * obj1 = 0 ;
11146 PyObject * obj2 = 0 ;
11147 PyObject * obj3 = 0 ;
11148 char *kwnames[] = {
11149 (char *) "type",(char *) "state",(char *) "joystick",(char *) "change", NULL
11150 };
11151
11152 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_JoystickEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11153 if (obj0) {
11154 arg1 = (wxEventType) SWIG_AsInt(obj0);
11155 if (PyErr_Occurred()) SWIG_fail;
11156 }
11157 if (obj1) {
11158 arg2 = (int) SWIG_AsInt(obj1);
11159 if (PyErr_Occurred()) SWIG_fail;
11160 }
11161 if (obj2) {
11162 arg3 = (int) SWIG_AsInt(obj2);
11163 if (PyErr_Occurred()) SWIG_fail;
11164 }
11165 if (obj3) {
11166 arg4 = (int) SWIG_AsInt(obj3);
11167 if (PyErr_Occurred()) SWIG_fail;
11168 }
11169 {
11170 PyThreadState* __tstate = wxPyBeginAllowThreads();
11171 result = (wxJoystickEvent *)new wxJoystickEvent(arg1,arg2,arg3,arg4);
11172
11173 wxPyEndAllowThreads(__tstate);
11174 if (PyErr_Occurred()) SWIG_fail;
11175 }
11176 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxJoystickEvent, 1);
11177 return resultobj;
11178 fail:
11179 return NULL;
11180 }
11181
11182
11183 static PyObject *_wrap_JoystickEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
11184 PyObject *resultobj;
11185 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11186 wxPoint result;
11187 PyObject * obj0 = 0 ;
11188 char *kwnames[] = {
11189 (char *) "self", NULL
11190 };
11191
11192 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetPosition",kwnames,&obj0)) goto fail;
11193 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11194 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11195 {
11196 PyThreadState* __tstate = wxPyBeginAllowThreads();
11197 result = ((wxJoystickEvent const *)arg1)->GetPosition();
11198
11199 wxPyEndAllowThreads(__tstate);
11200 if (PyErr_Occurred()) SWIG_fail;
11201 }
11202 {
11203 wxPoint * resultptr;
11204 resultptr = new wxPoint((wxPoint &) result);
11205 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
11206 }
11207 return resultobj;
11208 fail:
11209 return NULL;
11210 }
11211
11212
11213 static PyObject *_wrap_JoystickEvent_GetZPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
11214 PyObject *resultobj;
11215 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11216 int result;
11217 PyObject * obj0 = 0 ;
11218 char *kwnames[] = {
11219 (char *) "self", NULL
11220 };
11221
11222 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetZPosition",kwnames,&obj0)) goto fail;
11223 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11224 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11225 {
11226 PyThreadState* __tstate = wxPyBeginAllowThreads();
11227 result = (int)((wxJoystickEvent const *)arg1)->GetZPosition();
11228
11229 wxPyEndAllowThreads(__tstate);
11230 if (PyErr_Occurred()) SWIG_fail;
11231 }
11232 resultobj = SWIG_FromInt((int)result);
11233 return resultobj;
11234 fail:
11235 return NULL;
11236 }
11237
11238
11239 static PyObject *_wrap_JoystickEvent_GetButtonState(PyObject *self, PyObject *args, PyObject *kwargs) {
11240 PyObject *resultobj;
11241 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11242 int result;
11243 PyObject * obj0 = 0 ;
11244 char *kwnames[] = {
11245 (char *) "self", NULL
11246 };
11247
11248 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetButtonState",kwnames,&obj0)) goto fail;
11249 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11250 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11251 {
11252 PyThreadState* __tstate = wxPyBeginAllowThreads();
11253 result = (int)((wxJoystickEvent const *)arg1)->GetButtonState();
11254
11255 wxPyEndAllowThreads(__tstate);
11256 if (PyErr_Occurred()) SWIG_fail;
11257 }
11258 resultobj = SWIG_FromInt((int)result);
11259 return resultobj;
11260 fail:
11261 return NULL;
11262 }
11263
11264
11265 static PyObject *_wrap_JoystickEvent_GetButtonChange(PyObject *self, PyObject *args, PyObject *kwargs) {
11266 PyObject *resultobj;
11267 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11268 int result;
11269 PyObject * obj0 = 0 ;
11270 char *kwnames[] = {
11271 (char *) "self", NULL
11272 };
11273
11274 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetButtonChange",kwnames,&obj0)) goto fail;
11275 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11276 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11277 {
11278 PyThreadState* __tstate = wxPyBeginAllowThreads();
11279 result = (int)((wxJoystickEvent const *)arg1)->GetButtonChange();
11280
11281 wxPyEndAllowThreads(__tstate);
11282 if (PyErr_Occurred()) SWIG_fail;
11283 }
11284 resultobj = SWIG_FromInt((int)result);
11285 return resultobj;
11286 fail:
11287 return NULL;
11288 }
11289
11290
11291 static PyObject *_wrap_JoystickEvent_GetJoystick(PyObject *self, PyObject *args, PyObject *kwargs) {
11292 PyObject *resultobj;
11293 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11294 int result;
11295 PyObject * obj0 = 0 ;
11296 char *kwnames[] = {
11297 (char *) "self", NULL
11298 };
11299
11300 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetJoystick",kwnames,&obj0)) goto fail;
11301 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11302 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11303 {
11304 PyThreadState* __tstate = wxPyBeginAllowThreads();
11305 result = (int)((wxJoystickEvent const *)arg1)->GetJoystick();
11306
11307 wxPyEndAllowThreads(__tstate);
11308 if (PyErr_Occurred()) SWIG_fail;
11309 }
11310 resultobj = SWIG_FromInt((int)result);
11311 return resultobj;
11312 fail:
11313 return NULL;
11314 }
11315
11316
11317 static PyObject *_wrap_JoystickEvent_SetJoystick(PyObject *self, PyObject *args, PyObject *kwargs) {
11318 PyObject *resultobj;
11319 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11320 int arg2 ;
11321 PyObject * obj0 = 0 ;
11322 PyObject * obj1 = 0 ;
11323 char *kwnames[] = {
11324 (char *) "self",(char *) "stick", NULL
11325 };
11326
11327 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetJoystick",kwnames,&obj0,&obj1)) goto fail;
11328 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11329 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11330 arg2 = (int) SWIG_AsInt(obj1);
11331 if (PyErr_Occurred()) SWIG_fail;
11332 {
11333 PyThreadState* __tstate = wxPyBeginAllowThreads();
11334 (arg1)->SetJoystick(arg2);
11335
11336 wxPyEndAllowThreads(__tstate);
11337 if (PyErr_Occurred()) SWIG_fail;
11338 }
11339 Py_INCREF(Py_None); resultobj = Py_None;
11340 return resultobj;
11341 fail:
11342 return NULL;
11343 }
11344
11345
11346 static PyObject *_wrap_JoystickEvent_SetButtonState(PyObject *self, PyObject *args, PyObject *kwargs) {
11347 PyObject *resultobj;
11348 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11349 int arg2 ;
11350 PyObject * obj0 = 0 ;
11351 PyObject * obj1 = 0 ;
11352 char *kwnames[] = {
11353 (char *) "self",(char *) "state", NULL
11354 };
11355
11356 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetButtonState",kwnames,&obj0,&obj1)) goto fail;
11357 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11358 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11359 arg2 = (int) SWIG_AsInt(obj1);
11360 if (PyErr_Occurred()) SWIG_fail;
11361 {
11362 PyThreadState* __tstate = wxPyBeginAllowThreads();
11363 (arg1)->SetButtonState(arg2);
11364
11365 wxPyEndAllowThreads(__tstate);
11366 if (PyErr_Occurred()) SWIG_fail;
11367 }
11368 Py_INCREF(Py_None); resultobj = Py_None;
11369 return resultobj;
11370 fail:
11371 return NULL;
11372 }
11373
11374
11375 static PyObject *_wrap_JoystickEvent_SetButtonChange(PyObject *self, PyObject *args, PyObject *kwargs) {
11376 PyObject *resultobj;
11377 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11378 int arg2 ;
11379 PyObject * obj0 = 0 ;
11380 PyObject * obj1 = 0 ;
11381 char *kwnames[] = {
11382 (char *) "self",(char *) "change", NULL
11383 };
11384
11385 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetButtonChange",kwnames,&obj0,&obj1)) goto fail;
11386 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11387 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11388 arg2 = (int) SWIG_AsInt(obj1);
11389 if (PyErr_Occurred()) SWIG_fail;
11390 {
11391 PyThreadState* __tstate = wxPyBeginAllowThreads();
11392 (arg1)->SetButtonChange(arg2);
11393
11394 wxPyEndAllowThreads(__tstate);
11395 if (PyErr_Occurred()) SWIG_fail;
11396 }
11397 Py_INCREF(Py_None); resultobj = Py_None;
11398 return resultobj;
11399 fail:
11400 return NULL;
11401 }
11402
11403
11404 static PyObject *_wrap_JoystickEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
11405 PyObject *resultobj;
11406 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11407 wxPoint *arg2 = 0 ;
11408 wxPoint temp2 ;
11409 PyObject * obj0 = 0 ;
11410 PyObject * obj1 = 0 ;
11411 char *kwnames[] = {
11412 (char *) "self",(char *) "pos", NULL
11413 };
11414
11415 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail;
11416 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11417 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11418 {
11419 arg2 = &temp2;
11420 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11421 }
11422 {
11423 PyThreadState* __tstate = wxPyBeginAllowThreads();
11424 (arg1)->SetPosition((wxPoint const &)*arg2);
11425
11426 wxPyEndAllowThreads(__tstate);
11427 if (PyErr_Occurred()) SWIG_fail;
11428 }
11429 Py_INCREF(Py_None); resultobj = Py_None;
11430 return resultobj;
11431 fail:
11432 return NULL;
11433 }
11434
11435
11436 static PyObject *_wrap_JoystickEvent_SetZPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
11437 PyObject *resultobj;
11438 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11439 int arg2 ;
11440 PyObject * obj0 = 0 ;
11441 PyObject * obj1 = 0 ;
11442 char *kwnames[] = {
11443 (char *) "self",(char *) "zPos", NULL
11444 };
11445
11446 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetZPosition",kwnames,&obj0,&obj1)) goto fail;
11447 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11448 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11449 arg2 = (int) SWIG_AsInt(obj1);
11450 if (PyErr_Occurred()) SWIG_fail;
11451 {
11452 PyThreadState* __tstate = wxPyBeginAllowThreads();
11453 (arg1)->SetZPosition(arg2);
11454
11455 wxPyEndAllowThreads(__tstate);
11456 if (PyErr_Occurred()) SWIG_fail;
11457 }
11458 Py_INCREF(Py_None); resultobj = Py_None;
11459 return resultobj;
11460 fail:
11461 return NULL;
11462 }
11463
11464
11465 static PyObject *_wrap_JoystickEvent_IsButton(PyObject *self, PyObject *args, PyObject *kwargs) {
11466 PyObject *resultobj;
11467 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11468 bool result;
11469 PyObject * obj0 = 0 ;
11470 char *kwnames[] = {
11471 (char *) "self", NULL
11472 };
11473
11474 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsButton",kwnames,&obj0)) goto fail;
11475 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11476 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11477 {
11478 PyThreadState* __tstate = wxPyBeginAllowThreads();
11479 result = (bool)((wxJoystickEvent const *)arg1)->IsButton();
11480
11481 wxPyEndAllowThreads(__tstate);
11482 if (PyErr_Occurred()) SWIG_fail;
11483 }
11484 {
11485 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11486 }
11487 return resultobj;
11488 fail:
11489 return NULL;
11490 }
11491
11492
11493 static PyObject *_wrap_JoystickEvent_IsMove(PyObject *self, PyObject *args, PyObject *kwargs) {
11494 PyObject *resultobj;
11495 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11496 bool result;
11497 PyObject * obj0 = 0 ;
11498 char *kwnames[] = {
11499 (char *) "self", NULL
11500 };
11501
11502 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsMove",kwnames,&obj0)) goto fail;
11503 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11504 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11505 {
11506 PyThreadState* __tstate = wxPyBeginAllowThreads();
11507 result = (bool)((wxJoystickEvent const *)arg1)->IsMove();
11508
11509 wxPyEndAllowThreads(__tstate);
11510 if (PyErr_Occurred()) SWIG_fail;
11511 }
11512 {
11513 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11514 }
11515 return resultobj;
11516 fail:
11517 return NULL;
11518 }
11519
11520
11521 static PyObject *_wrap_JoystickEvent_IsZMove(PyObject *self, PyObject *args, PyObject *kwargs) {
11522 PyObject *resultobj;
11523 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11524 bool result;
11525 PyObject * obj0 = 0 ;
11526 char *kwnames[] = {
11527 (char *) "self", NULL
11528 };
11529
11530 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsZMove",kwnames,&obj0)) goto fail;
11531 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11532 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11533 {
11534 PyThreadState* __tstate = wxPyBeginAllowThreads();
11535 result = (bool)((wxJoystickEvent const *)arg1)->IsZMove();
11536
11537 wxPyEndAllowThreads(__tstate);
11538 if (PyErr_Occurred()) SWIG_fail;
11539 }
11540 {
11541 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11542 }
11543 return resultobj;
11544 fail:
11545 return NULL;
11546 }
11547
11548
11549 static PyObject *_wrap_JoystickEvent_ButtonDown(PyObject *self, PyObject *args, PyObject *kwargs) {
11550 PyObject *resultobj;
11551 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11552 int arg2 = (int) wxJOY_BUTTON_ANY ;
11553 bool result;
11554 PyObject * obj0 = 0 ;
11555 PyObject * obj1 = 0 ;
11556 char *kwnames[] = {
11557 (char *) "self",(char *) "but", NULL
11558 };
11559
11560 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonDown",kwnames,&obj0,&obj1)) goto fail;
11561 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11562 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11563 if (obj1) {
11564 arg2 = (int) SWIG_AsInt(obj1);
11565 if (PyErr_Occurred()) SWIG_fail;
11566 }
11567 {
11568 PyThreadState* __tstate = wxPyBeginAllowThreads();
11569 result = (bool)((wxJoystickEvent const *)arg1)->ButtonDown(arg2);
11570
11571 wxPyEndAllowThreads(__tstate);
11572 if (PyErr_Occurred()) SWIG_fail;
11573 }
11574 {
11575 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11576 }
11577 return resultobj;
11578 fail:
11579 return NULL;
11580 }
11581
11582
11583 static PyObject *_wrap_JoystickEvent_ButtonUp(PyObject *self, PyObject *args, PyObject *kwargs) {
11584 PyObject *resultobj;
11585 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11586 int arg2 = (int) wxJOY_BUTTON_ANY ;
11587 bool result;
11588 PyObject * obj0 = 0 ;
11589 PyObject * obj1 = 0 ;
11590 char *kwnames[] = {
11591 (char *) "self",(char *) "but", NULL
11592 };
11593
11594 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonUp",kwnames,&obj0,&obj1)) goto fail;
11595 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11596 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11597 if (obj1) {
11598 arg2 = (int) SWIG_AsInt(obj1);
11599 if (PyErr_Occurred()) SWIG_fail;
11600 }
11601 {
11602 PyThreadState* __tstate = wxPyBeginAllowThreads();
11603 result = (bool)((wxJoystickEvent const *)arg1)->ButtonUp(arg2);
11604
11605 wxPyEndAllowThreads(__tstate);
11606 if (PyErr_Occurred()) SWIG_fail;
11607 }
11608 {
11609 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11610 }
11611 return resultobj;
11612 fail:
11613 return NULL;
11614 }
11615
11616
11617 static PyObject *_wrap_JoystickEvent_ButtonIsDown(PyObject *self, PyObject *args, PyObject *kwargs) {
11618 PyObject *resultobj;
11619 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11620 int arg2 = (int) wxJOY_BUTTON_ANY ;
11621 bool result;
11622 PyObject * obj0 = 0 ;
11623 PyObject * obj1 = 0 ;
11624 char *kwnames[] = {
11625 (char *) "self",(char *) "but", NULL
11626 };
11627
11628 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonIsDown",kwnames,&obj0,&obj1)) goto fail;
11629 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11630 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11631 if (obj1) {
11632 arg2 = (int) SWIG_AsInt(obj1);
11633 if (PyErr_Occurred()) SWIG_fail;
11634 }
11635 {
11636 PyThreadState* __tstate = wxPyBeginAllowThreads();
11637 result = (bool)((wxJoystickEvent const *)arg1)->ButtonIsDown(arg2);
11638
11639 wxPyEndAllowThreads(__tstate);
11640 if (PyErr_Occurred()) SWIG_fail;
11641 }
11642 {
11643 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11644 }
11645 return resultobj;
11646 fail:
11647 return NULL;
11648 }
11649
11650
11651 static PyObject * JoystickEvent_swigregister(PyObject *self, PyObject *args) {
11652 PyObject *obj;
11653 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11654 SWIG_TypeClientData(SWIGTYPE_p_wxJoystickEvent, obj);
11655 Py_INCREF(obj);
11656 return Py_BuildValue((char *)"");
11657 }
11658 static PyObject *_wrap_new_Sound(PyObject *self, PyObject *args, PyObject *kwargs) {
11659 PyObject *resultobj;
11660 wxString const &arg1_defvalue = wxPyEmptyString ;
11661 wxString *arg1 = (wxString *) &arg1_defvalue ;
11662 wxSound *result;
11663 bool temp1 = False ;
11664 PyObject * obj0 = 0 ;
11665 char *kwnames[] = {
11666 (char *) "fileName", NULL
11667 };
11668
11669 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Sound",kwnames,&obj0)) goto fail;
11670 if (obj0) {
11671 {
11672 arg1 = wxString_in_helper(obj0);
11673 if (arg1 == NULL) SWIG_fail;
11674 temp1 = True;
11675 }
11676 }
11677 {
11678 if (!wxPyCheckForApp()) SWIG_fail;
11679 PyThreadState* __tstate = wxPyBeginAllowThreads();
11680 result = (wxSound *)new_wxSound((wxString const &)*arg1);
11681
11682 wxPyEndAllowThreads(__tstate);
11683 if (PyErr_Occurred()) SWIG_fail;
11684 }
11685 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSound, 1);
11686 {
11687 if (temp1)
11688 delete arg1;
11689 }
11690 return resultobj;
11691 fail:
11692 {
11693 if (temp1)
11694 delete arg1;
11695 }
11696 return NULL;
11697 }
11698
11699
11700 static PyObject *_wrap_new_SoundFromData(PyObject *self, PyObject *args, PyObject *kwargs) {
11701 PyObject *resultobj;
11702 PyObject *arg1 = (PyObject *) 0 ;
11703 wxSound *result;
11704 PyObject * obj0 = 0 ;
11705 char *kwnames[] = {
11706 (char *) "data", NULL
11707 };
11708
11709 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_SoundFromData",kwnames,&obj0)) goto fail;
11710 arg1 = obj0;
11711 {
11712 if (!wxPyCheckForApp()) SWIG_fail;
11713 PyThreadState* __tstate = wxPyBeginAllowThreads();
11714 result = (wxSound *)new_wxSound(arg1);
11715
11716 wxPyEndAllowThreads(__tstate);
11717 if (PyErr_Occurred()) SWIG_fail;
11718 }
11719 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSound, 1);
11720 return resultobj;
11721 fail:
11722 return NULL;
11723 }
11724
11725
11726 static PyObject *_wrap_delete_Sound(PyObject *self, PyObject *args, PyObject *kwargs) {
11727 PyObject *resultobj;
11728 wxSound *arg1 = (wxSound *) 0 ;
11729 PyObject * obj0 = 0 ;
11730 char *kwnames[] = {
11731 (char *) "self", NULL
11732 };
11733
11734 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Sound",kwnames,&obj0)) goto fail;
11735 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound,
11736 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11737 {
11738 PyThreadState* __tstate = wxPyBeginAllowThreads();
11739 delete arg1;
11740
11741 wxPyEndAllowThreads(__tstate);
11742 if (PyErr_Occurred()) SWIG_fail;
11743 }
11744 Py_INCREF(Py_None); resultobj = Py_None;
11745 return resultobj;
11746 fail:
11747 return NULL;
11748 }
11749
11750
11751 static PyObject *_wrap_Sound_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
11752 PyObject *resultobj;
11753 wxSound *arg1 = (wxSound *) 0 ;
11754 wxString *arg2 = 0 ;
11755 bool result;
11756 bool temp2 = False ;
11757 PyObject * obj0 = 0 ;
11758 PyObject * obj1 = 0 ;
11759 char *kwnames[] = {
11760 (char *) "self",(char *) "fileName", NULL
11761 };
11762
11763 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sound_Create",kwnames,&obj0,&obj1)) goto fail;
11764 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound,
11765 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11766 {
11767 arg2 = wxString_in_helper(obj1);
11768 if (arg2 == NULL) SWIG_fail;
11769 temp2 = True;
11770 }
11771 {
11772 PyThreadState* __tstate = wxPyBeginAllowThreads();
11773 result = (bool)(arg1)->Create((wxString const &)*arg2);
11774
11775 wxPyEndAllowThreads(__tstate);
11776 if (PyErr_Occurred()) SWIG_fail;
11777 }
11778 {
11779 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11780 }
11781 {
11782 if (temp2)
11783 delete arg2;
11784 }
11785 return resultobj;
11786 fail:
11787 {
11788 if (temp2)
11789 delete arg2;
11790 }
11791 return NULL;
11792 }
11793
11794
11795 static PyObject *_wrap_Sound_CreateFromData(PyObject *self, PyObject *args, PyObject *kwargs) {
11796 PyObject *resultobj;
11797 wxSound *arg1 = (wxSound *) 0 ;
11798 PyObject *arg2 = (PyObject *) 0 ;
11799 bool result;
11800 PyObject * obj0 = 0 ;
11801 PyObject * obj1 = 0 ;
11802 char *kwnames[] = {
11803 (char *) "self",(char *) "data", NULL
11804 };
11805
11806 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sound_CreateFromData",kwnames,&obj0,&obj1)) goto fail;
11807 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound,
11808 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11809 arg2 = obj1;
11810 {
11811 PyThreadState* __tstate = wxPyBeginAllowThreads();
11812 result = (bool)wxSound_CreateFromData(arg1,arg2);
11813
11814 wxPyEndAllowThreads(__tstate);
11815 if (PyErr_Occurred()) SWIG_fail;
11816 }
11817 {
11818 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11819 }
11820 return resultobj;
11821 fail:
11822 return NULL;
11823 }
11824
11825
11826 static PyObject *_wrap_Sound_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
11827 PyObject *resultobj;
11828 wxSound *arg1 = (wxSound *) 0 ;
11829 bool result;
11830 PyObject * obj0 = 0 ;
11831 char *kwnames[] = {
11832 (char *) "self", NULL
11833 };
11834
11835 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sound_IsOk",kwnames,&obj0)) goto fail;
11836 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound,
11837 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11838 {
11839 PyThreadState* __tstate = wxPyBeginAllowThreads();
11840 result = (bool)(arg1)->IsOk();
11841
11842 wxPyEndAllowThreads(__tstate);
11843 if (PyErr_Occurred()) SWIG_fail;
11844 }
11845 {
11846 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11847 }
11848 return resultobj;
11849 fail:
11850 return NULL;
11851 }
11852
11853
11854 static PyObject *_wrap_Sound_Play(PyObject *self, PyObject *args, PyObject *kwargs) {
11855 PyObject *resultobj;
11856 wxSound *arg1 = (wxSound *) 0 ;
11857 unsigned int arg2 = (unsigned int) wxSOUND_ASYNC ;
11858 bool result;
11859 PyObject * obj0 = 0 ;
11860 PyObject * obj1 = 0 ;
11861 char *kwnames[] = {
11862 (char *) "self",(char *) "flags", NULL
11863 };
11864
11865 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Sound_Play",kwnames,&obj0,&obj1)) goto fail;
11866 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound,
11867 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11868 if (obj1) {
11869 arg2 = (unsigned int) SWIG_AsUnsignedInt(obj1);
11870 if (PyErr_Occurred()) SWIG_fail;
11871 }
11872 {
11873 if (!wxPyCheckForApp()) SWIG_fail;
11874 PyThreadState* __tstate = wxPyBeginAllowThreads();
11875 result = (bool)((wxSound const *)arg1)->Play(arg2);
11876
11877 wxPyEndAllowThreads(__tstate);
11878 if (PyErr_Occurred()) SWIG_fail;
11879 }
11880 {
11881 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11882 }
11883 return resultobj;
11884 fail:
11885 return NULL;
11886 }
11887
11888
11889 static PyObject *_wrap_Sound_PlaySound(PyObject *self, PyObject *args, PyObject *kwargs) {
11890 PyObject *resultobj;
11891 wxString *arg1 = 0 ;
11892 unsigned int arg2 = (unsigned int) wxSOUND_ASYNC ;
11893 bool result;
11894 bool temp1 = False ;
11895 PyObject * obj0 = 0 ;
11896 PyObject * obj1 = 0 ;
11897 char *kwnames[] = {
11898 (char *) "filename",(char *) "flags", NULL
11899 };
11900
11901 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Sound_PlaySound",kwnames,&obj0,&obj1)) goto fail;
11902 {
11903 arg1 = wxString_in_helper(obj0);
11904 if (arg1 == NULL) SWIG_fail;
11905 temp1 = True;
11906 }
11907 if (obj1) {
11908 arg2 = (unsigned int) SWIG_AsUnsignedInt(obj1);
11909 if (PyErr_Occurred()) SWIG_fail;
11910 }
11911 {
11912 if (!wxPyCheckForApp()) SWIG_fail;
11913 PyThreadState* __tstate = wxPyBeginAllowThreads();
11914 result = (bool)wxSound::Play((wxString const &)*arg1,arg2);
11915
11916 wxPyEndAllowThreads(__tstate);
11917 if (PyErr_Occurred()) SWIG_fail;
11918 }
11919 {
11920 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11921 }
11922 {
11923 if (temp1)
11924 delete arg1;
11925 }
11926 return resultobj;
11927 fail:
11928 {
11929 if (temp1)
11930 delete arg1;
11931 }
11932 return NULL;
11933 }
11934
11935
11936 static PyObject *_wrap_Sound_Stop(PyObject *self, PyObject *args, PyObject *kwargs) {
11937 PyObject *resultobj;
11938 char *kwnames[] = {
11939 NULL
11940 };
11941
11942 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Sound_Stop",kwnames)) goto fail;
11943 {
11944 if (!wxPyCheckForApp()) SWIG_fail;
11945 PyThreadState* __tstate = wxPyBeginAllowThreads();
11946 wxSound::Stop();
11947
11948 wxPyEndAllowThreads(__tstate);
11949 if (PyErr_Occurred()) SWIG_fail;
11950 }
11951 Py_INCREF(Py_None); resultobj = Py_None;
11952 return resultobj;
11953 fail:
11954 return NULL;
11955 }
11956
11957
11958 static PyObject * Sound_swigregister(PyObject *self, PyObject *args) {
11959 PyObject *obj;
11960 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11961 SWIG_TypeClientData(SWIGTYPE_p_wxSound, obj);
11962 Py_INCREF(obj);
11963 return Py_BuildValue((char *)"");
11964 }
11965 static PyObject *_wrap_new_FileTypeInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
11966 PyObject *resultobj;
11967 wxString *arg1 = 0 ;
11968 wxString *arg2 = 0 ;
11969 wxString *arg3 = 0 ;
11970 wxString *arg4 = 0 ;
11971 wxFileTypeInfo *result;
11972 bool temp1 = False ;
11973 bool temp2 = False ;
11974 bool temp3 = False ;
11975 bool temp4 = False ;
11976 PyObject * obj0 = 0 ;
11977 PyObject * obj1 = 0 ;
11978 PyObject * obj2 = 0 ;
11979 PyObject * obj3 = 0 ;
11980 char *kwnames[] = {
11981 (char *) "mimeType",(char *) "openCmd",(char *) "printCmd",(char *) "desc", NULL
11982 };
11983
11984 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_FileTypeInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11985 {
11986 arg1 = wxString_in_helper(obj0);
11987 if (arg1 == NULL) SWIG_fail;
11988 temp1 = True;
11989 }
11990 {
11991 arg2 = wxString_in_helper(obj1);
11992 if (arg2 == NULL) SWIG_fail;
11993 temp2 = True;
11994 }
11995 {
11996 arg3 = wxString_in_helper(obj2);
11997 if (arg3 == NULL) SWIG_fail;
11998 temp3 = True;
11999 }
12000 {
12001 arg4 = wxString_in_helper(obj3);
12002 if (arg4 == NULL) SWIG_fail;
12003 temp4 = True;
12004 }
12005 {
12006 PyThreadState* __tstate = wxPyBeginAllowThreads();
12007 result = (wxFileTypeInfo *)new wxFileTypeInfo((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4);
12008
12009 wxPyEndAllowThreads(__tstate);
12010 if (PyErr_Occurred()) SWIG_fail;
12011 }
12012 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileTypeInfo, 1);
12013 {
12014 if (temp1)
12015 delete arg1;
12016 }
12017 {
12018 if (temp2)
12019 delete arg2;
12020 }
12021 {
12022 if (temp3)
12023 delete arg3;
12024 }
12025 {
12026 if (temp4)
12027 delete arg4;
12028 }
12029 return resultobj;
12030 fail:
12031 {
12032 if (temp1)
12033 delete arg1;
12034 }
12035 {
12036 if (temp2)
12037 delete arg2;
12038 }
12039 {
12040 if (temp3)
12041 delete arg3;
12042 }
12043 {
12044 if (temp4)
12045 delete arg4;
12046 }
12047 return NULL;
12048 }
12049
12050
12051 static PyObject *_wrap_new_FileTypeInfoSequence(PyObject *self, PyObject *args, PyObject *kwargs) {
12052 PyObject *resultobj;
12053 wxArrayString *arg1 = 0 ;
12054 wxFileTypeInfo *result;
12055 bool temp1 = False ;
12056 PyObject * obj0 = 0 ;
12057 char *kwnames[] = {
12058 (char *) "sArray", NULL
12059 };
12060
12061 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FileTypeInfoSequence",kwnames,&obj0)) goto fail;
12062 {
12063 if (! PySequence_Check(obj0)) {
12064 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
12065 SWIG_fail;
12066 }
12067 arg1 = new wxArrayString;
12068 temp1 = True;
12069 int i, len=PySequence_Length(obj0);
12070 for (i=0; i<len; i++) {
12071 PyObject* item = PySequence_GetItem(obj0, i);
12072 #if wxUSE_UNICODE
12073 PyObject* str = PyObject_Unicode(item);
12074 #else
12075 PyObject* str = PyObject_Str(item);
12076 #endif
12077 if (PyErr_Occurred()) SWIG_fail;
12078 arg1->Add(Py2wxString(str));
12079 Py_DECREF(item);
12080 Py_DECREF(str);
12081 }
12082 }
12083 {
12084 PyThreadState* __tstate = wxPyBeginAllowThreads();
12085 result = (wxFileTypeInfo *)new wxFileTypeInfo((wxArrayString const &)*arg1);
12086
12087 wxPyEndAllowThreads(__tstate);
12088 if (PyErr_Occurred()) SWIG_fail;
12089 }
12090 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileTypeInfo, 1);
12091 {
12092 if (temp1) delete arg1;
12093 }
12094 return resultobj;
12095 fail:
12096 {
12097 if (temp1) delete arg1;
12098 }
12099 return NULL;
12100 }
12101
12102
12103 static PyObject *_wrap_new_NullFileTypeInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
12104 PyObject *resultobj;
12105 wxFileTypeInfo *result;
12106 char *kwnames[] = {
12107 NULL
12108 };
12109
12110 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NullFileTypeInfo",kwnames)) goto fail;
12111 {
12112 PyThreadState* __tstate = wxPyBeginAllowThreads();
12113 result = (wxFileTypeInfo *)new wxFileTypeInfo();
12114
12115 wxPyEndAllowThreads(__tstate);
12116 if (PyErr_Occurred()) SWIG_fail;
12117 }
12118 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileTypeInfo, 1);
12119 return resultobj;
12120 fail:
12121 return NULL;
12122 }
12123
12124
12125 static PyObject *_wrap_FileTypeInfo_IsValid(PyObject *self, PyObject *args, PyObject *kwargs) {
12126 PyObject *resultobj;
12127 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12128 bool result;
12129 PyObject * obj0 = 0 ;
12130 char *kwnames[] = {
12131 (char *) "self", NULL
12132 };
12133
12134 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_IsValid",kwnames,&obj0)) goto fail;
12135 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12136 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12137 {
12138 PyThreadState* __tstate = wxPyBeginAllowThreads();
12139 result = (bool)((wxFileTypeInfo const *)arg1)->IsValid();
12140
12141 wxPyEndAllowThreads(__tstate);
12142 if (PyErr_Occurred()) SWIG_fail;
12143 }
12144 {
12145 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12146 }
12147 return resultobj;
12148 fail:
12149 return NULL;
12150 }
12151
12152
12153 static PyObject *_wrap_FileTypeInfo_SetIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
12154 PyObject *resultobj;
12155 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12156 wxString *arg2 = 0 ;
12157 int arg3 = (int) 0 ;
12158 bool temp2 = False ;
12159 PyObject * obj0 = 0 ;
12160 PyObject * obj1 = 0 ;
12161 PyObject * obj2 = 0 ;
12162 char *kwnames[] = {
12163 (char *) "self",(char *) "iconFile",(char *) "iconIndex", NULL
12164 };
12165
12166 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileTypeInfo_SetIcon",kwnames,&obj0,&obj1,&obj2)) goto fail;
12167 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12168 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12169 {
12170 arg2 = wxString_in_helper(obj1);
12171 if (arg2 == NULL) SWIG_fail;
12172 temp2 = True;
12173 }
12174 if (obj2) {
12175 arg3 = (int) SWIG_AsInt(obj2);
12176 if (PyErr_Occurred()) SWIG_fail;
12177 }
12178 {
12179 PyThreadState* __tstate = wxPyBeginAllowThreads();
12180 (arg1)->SetIcon((wxString const &)*arg2,arg3);
12181
12182 wxPyEndAllowThreads(__tstate);
12183 if (PyErr_Occurred()) SWIG_fail;
12184 }
12185 Py_INCREF(Py_None); resultobj = Py_None;
12186 {
12187 if (temp2)
12188 delete arg2;
12189 }
12190 return resultobj;
12191 fail:
12192 {
12193 if (temp2)
12194 delete arg2;
12195 }
12196 return NULL;
12197 }
12198
12199
12200 static PyObject *_wrap_FileTypeInfo_SetShortDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
12201 PyObject *resultobj;
12202 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12203 wxString *arg2 = 0 ;
12204 bool temp2 = False ;
12205 PyObject * obj0 = 0 ;
12206 PyObject * obj1 = 0 ;
12207 char *kwnames[] = {
12208 (char *) "self",(char *) "shortDesc", NULL
12209 };
12210
12211 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileTypeInfo_SetShortDesc",kwnames,&obj0,&obj1)) goto fail;
12212 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12213 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12214 {
12215 arg2 = wxString_in_helper(obj1);
12216 if (arg2 == NULL) SWIG_fail;
12217 temp2 = True;
12218 }
12219 {
12220 PyThreadState* __tstate = wxPyBeginAllowThreads();
12221 (arg1)->SetShortDesc((wxString const &)*arg2);
12222
12223 wxPyEndAllowThreads(__tstate);
12224 if (PyErr_Occurred()) SWIG_fail;
12225 }
12226 Py_INCREF(Py_None); resultobj = Py_None;
12227 {
12228 if (temp2)
12229 delete arg2;
12230 }
12231 return resultobj;
12232 fail:
12233 {
12234 if (temp2)
12235 delete arg2;
12236 }
12237 return NULL;
12238 }
12239
12240
12241 static PyObject *_wrap_FileTypeInfo_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) {
12242 PyObject *resultobj;
12243 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12244 wxString *result;
12245 PyObject * obj0 = 0 ;
12246 char *kwnames[] = {
12247 (char *) "self", NULL
12248 };
12249
12250 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetMimeType",kwnames,&obj0)) goto fail;
12251 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12252 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12253 {
12254 PyThreadState* __tstate = wxPyBeginAllowThreads();
12255 {
12256 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetMimeType();
12257 result = (wxString *) &_result_ref;
12258 }
12259
12260 wxPyEndAllowThreads(__tstate);
12261 if (PyErr_Occurred()) SWIG_fail;
12262 }
12263 {
12264 #if wxUSE_UNICODE
12265 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12266 #else
12267 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12268 #endif
12269 }
12270 return resultobj;
12271 fail:
12272 return NULL;
12273 }
12274
12275
12276 static PyObject *_wrap_FileTypeInfo_GetOpenCommand(PyObject *self, PyObject *args, PyObject *kwargs) {
12277 PyObject *resultobj;
12278 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12279 wxString *result;
12280 PyObject * obj0 = 0 ;
12281 char *kwnames[] = {
12282 (char *) "self", NULL
12283 };
12284
12285 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetOpenCommand",kwnames,&obj0)) goto fail;
12286 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12287 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12288 {
12289 PyThreadState* __tstate = wxPyBeginAllowThreads();
12290 {
12291 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetOpenCommand();
12292 result = (wxString *) &_result_ref;
12293 }
12294
12295 wxPyEndAllowThreads(__tstate);
12296 if (PyErr_Occurred()) SWIG_fail;
12297 }
12298 {
12299 #if wxUSE_UNICODE
12300 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12301 #else
12302 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12303 #endif
12304 }
12305 return resultobj;
12306 fail:
12307 return NULL;
12308 }
12309
12310
12311 static PyObject *_wrap_FileTypeInfo_GetPrintCommand(PyObject *self, PyObject *args, PyObject *kwargs) {
12312 PyObject *resultobj;
12313 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12314 wxString *result;
12315 PyObject * obj0 = 0 ;
12316 char *kwnames[] = {
12317 (char *) "self", NULL
12318 };
12319
12320 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetPrintCommand",kwnames,&obj0)) goto fail;
12321 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12322 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12323 {
12324 PyThreadState* __tstate = wxPyBeginAllowThreads();
12325 {
12326 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetPrintCommand();
12327 result = (wxString *) &_result_ref;
12328 }
12329
12330 wxPyEndAllowThreads(__tstate);
12331 if (PyErr_Occurred()) SWIG_fail;
12332 }
12333 {
12334 #if wxUSE_UNICODE
12335 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12336 #else
12337 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12338 #endif
12339 }
12340 return resultobj;
12341 fail:
12342 return NULL;
12343 }
12344
12345
12346 static PyObject *_wrap_FileTypeInfo_GetShortDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
12347 PyObject *resultobj;
12348 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12349 wxString *result;
12350 PyObject * obj0 = 0 ;
12351 char *kwnames[] = {
12352 (char *) "self", NULL
12353 };
12354
12355 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetShortDesc",kwnames,&obj0)) goto fail;
12356 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12357 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12358 {
12359 PyThreadState* __tstate = wxPyBeginAllowThreads();
12360 {
12361 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetShortDesc();
12362 result = (wxString *) &_result_ref;
12363 }
12364
12365 wxPyEndAllowThreads(__tstate);
12366 if (PyErr_Occurred()) SWIG_fail;
12367 }
12368 {
12369 #if wxUSE_UNICODE
12370 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12371 #else
12372 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12373 #endif
12374 }
12375 return resultobj;
12376 fail:
12377 return NULL;
12378 }
12379
12380
12381 static PyObject *_wrap_FileTypeInfo_GetDescription(PyObject *self, PyObject *args, PyObject *kwargs) {
12382 PyObject *resultobj;
12383 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12384 wxString *result;
12385 PyObject * obj0 = 0 ;
12386 char *kwnames[] = {
12387 (char *) "self", NULL
12388 };
12389
12390 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetDescription",kwnames,&obj0)) goto fail;
12391 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12392 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12393 {
12394 PyThreadState* __tstate = wxPyBeginAllowThreads();
12395 {
12396 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetDescription();
12397 result = (wxString *) &_result_ref;
12398 }
12399
12400 wxPyEndAllowThreads(__tstate);
12401 if (PyErr_Occurred()) SWIG_fail;
12402 }
12403 {
12404 #if wxUSE_UNICODE
12405 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12406 #else
12407 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12408 #endif
12409 }
12410 return resultobj;
12411 fail:
12412 return NULL;
12413 }
12414
12415
12416 static PyObject *_wrap_FileTypeInfo_GetExtensions(PyObject *self, PyObject *args, PyObject *kwargs) {
12417 PyObject *resultobj;
12418 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12419 wxArrayString *result;
12420 PyObject * obj0 = 0 ;
12421 char *kwnames[] = {
12422 (char *) "self", NULL
12423 };
12424
12425 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetExtensions",kwnames,&obj0)) goto fail;
12426 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12427 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12428 {
12429 PyThreadState* __tstate = wxPyBeginAllowThreads();
12430 {
12431 wxArrayString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetExtensions();
12432 result = (wxArrayString *) &_result_ref;
12433 }
12434
12435 wxPyEndAllowThreads(__tstate);
12436 if (PyErr_Occurred()) SWIG_fail;
12437 }
12438 {
12439 resultobj = wxArrayString2PyList_helper(*result);
12440 }
12441 return resultobj;
12442 fail:
12443 return NULL;
12444 }
12445
12446
12447 static PyObject *_wrap_FileTypeInfo_GetExtensionsCount(PyObject *self, PyObject *args, PyObject *kwargs) {
12448 PyObject *resultobj;
12449 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12450 int result;
12451 PyObject * obj0 = 0 ;
12452 char *kwnames[] = {
12453 (char *) "self", NULL
12454 };
12455
12456 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetExtensionsCount",kwnames,&obj0)) goto fail;
12457 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12458 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12459 {
12460 PyThreadState* __tstate = wxPyBeginAllowThreads();
12461 result = (int)((wxFileTypeInfo const *)arg1)->GetExtensionsCount();
12462
12463 wxPyEndAllowThreads(__tstate);
12464 if (PyErr_Occurred()) SWIG_fail;
12465 }
12466 resultobj = SWIG_FromInt((int)result);
12467 return resultobj;
12468 fail:
12469 return NULL;
12470 }
12471
12472
12473 static PyObject *_wrap_FileTypeInfo_GetIconFile(PyObject *self, PyObject *args, PyObject *kwargs) {
12474 PyObject *resultobj;
12475 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12476 wxString *result;
12477 PyObject * obj0 = 0 ;
12478 char *kwnames[] = {
12479 (char *) "self", NULL
12480 };
12481
12482 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetIconFile",kwnames,&obj0)) goto fail;
12483 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12484 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12485 {
12486 PyThreadState* __tstate = wxPyBeginAllowThreads();
12487 {
12488 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetIconFile();
12489 result = (wxString *) &_result_ref;
12490 }
12491
12492 wxPyEndAllowThreads(__tstate);
12493 if (PyErr_Occurred()) SWIG_fail;
12494 }
12495 {
12496 #if wxUSE_UNICODE
12497 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12498 #else
12499 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12500 #endif
12501 }
12502 return resultobj;
12503 fail:
12504 return NULL;
12505 }
12506
12507
12508 static PyObject *_wrap_FileTypeInfo_GetIconIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
12509 PyObject *resultobj;
12510 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12511 int result;
12512 PyObject * obj0 = 0 ;
12513 char *kwnames[] = {
12514 (char *) "self", NULL
12515 };
12516
12517 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetIconIndex",kwnames,&obj0)) goto fail;
12518 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12519 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12520 {
12521 PyThreadState* __tstate = wxPyBeginAllowThreads();
12522 result = (int)((wxFileTypeInfo const *)arg1)->GetIconIndex();
12523
12524 wxPyEndAllowThreads(__tstate);
12525 if (PyErr_Occurred()) SWIG_fail;
12526 }
12527 resultobj = SWIG_FromInt((int)result);
12528 return resultobj;
12529 fail:
12530 return NULL;
12531 }
12532
12533
12534 static PyObject * FileTypeInfo_swigregister(PyObject *self, PyObject *args) {
12535 PyObject *obj;
12536 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
12537 SWIG_TypeClientData(SWIGTYPE_p_wxFileTypeInfo, obj);
12538 Py_INCREF(obj);
12539 return Py_BuildValue((char *)"");
12540 }
12541 static PyObject *_wrap_new_FileType(PyObject *self, PyObject *args, PyObject *kwargs) {
12542 PyObject *resultobj;
12543 wxFileTypeInfo *arg1 = 0 ;
12544 wxFileType *result;
12545 PyObject * obj0 = 0 ;
12546 char *kwnames[] = {
12547 (char *) "ftInfo", NULL
12548 };
12549
12550 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FileType",kwnames,&obj0)) goto fail;
12551 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12552 SWIG_POINTER_EXCEPTION | 0)) == -1)
12553 SWIG_fail;
12554 if (arg1 == NULL) {
12555 PyErr_SetString(PyExc_TypeError,"null reference");
12556 SWIG_fail;
12557 }
12558 {
12559 PyThreadState* __tstate = wxPyBeginAllowThreads();
12560 result = (wxFileType *)new wxFileType((wxFileTypeInfo const &)*arg1);
12561
12562 wxPyEndAllowThreads(__tstate);
12563 if (PyErr_Occurred()) SWIG_fail;
12564 }
12565 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1);
12566 return resultobj;
12567 fail:
12568 return NULL;
12569 }
12570
12571
12572 static PyObject *_wrap_delete_FileType(PyObject *self, PyObject *args, PyObject *kwargs) {
12573 PyObject *resultobj;
12574 wxFileType *arg1 = (wxFileType *) 0 ;
12575 PyObject * obj0 = 0 ;
12576 char *kwnames[] = {
12577 (char *) "self", NULL
12578 };
12579
12580 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileType",kwnames,&obj0)) goto fail;
12581 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12582 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12583 {
12584 PyThreadState* __tstate = wxPyBeginAllowThreads();
12585 delete arg1;
12586
12587 wxPyEndAllowThreads(__tstate);
12588 if (PyErr_Occurred()) SWIG_fail;
12589 }
12590 Py_INCREF(Py_None); resultobj = Py_None;
12591 return resultobj;
12592 fail:
12593 return NULL;
12594 }
12595
12596
12597 static PyObject *_wrap_FileType_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) {
12598 PyObject *resultobj;
12599 wxFileType *arg1 = (wxFileType *) 0 ;
12600 PyObject *result;
12601 PyObject * obj0 = 0 ;
12602 char *kwnames[] = {
12603 (char *) "self", NULL
12604 };
12605
12606 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetMimeType",kwnames,&obj0)) goto fail;
12607 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12608 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12609 {
12610 PyThreadState* __tstate = wxPyBeginAllowThreads();
12611 result = (PyObject *)wxFileType_GetMimeType(arg1);
12612
12613 wxPyEndAllowThreads(__tstate);
12614 if (PyErr_Occurred()) SWIG_fail;
12615 }
12616 resultobj = result;
12617 return resultobj;
12618 fail:
12619 return NULL;
12620 }
12621
12622
12623 static PyObject *_wrap_FileType_GetMimeTypes(PyObject *self, PyObject *args, PyObject *kwargs) {
12624 PyObject *resultobj;
12625 wxFileType *arg1 = (wxFileType *) 0 ;
12626 PyObject *result;
12627 PyObject * obj0 = 0 ;
12628 char *kwnames[] = {
12629 (char *) "self", NULL
12630 };
12631
12632 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetMimeTypes",kwnames,&obj0)) goto fail;
12633 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12634 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12635 {
12636 PyThreadState* __tstate = wxPyBeginAllowThreads();
12637 result = (PyObject *)wxFileType_GetMimeTypes(arg1);
12638
12639 wxPyEndAllowThreads(__tstate);
12640 if (PyErr_Occurred()) SWIG_fail;
12641 }
12642 resultobj = result;
12643 return resultobj;
12644 fail:
12645 return NULL;
12646 }
12647
12648
12649 static PyObject *_wrap_FileType_GetExtensions(PyObject *self, PyObject *args, PyObject *kwargs) {
12650 PyObject *resultobj;
12651 wxFileType *arg1 = (wxFileType *) 0 ;
12652 PyObject *result;
12653 PyObject * obj0 = 0 ;
12654 char *kwnames[] = {
12655 (char *) "self", NULL
12656 };
12657
12658 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetExtensions",kwnames,&obj0)) goto fail;
12659 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12660 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12661 {
12662 PyThreadState* __tstate = wxPyBeginAllowThreads();
12663 result = (PyObject *)wxFileType_GetExtensions(arg1);
12664
12665 wxPyEndAllowThreads(__tstate);
12666 if (PyErr_Occurred()) SWIG_fail;
12667 }
12668 resultobj = result;
12669 return resultobj;
12670 fail:
12671 return NULL;
12672 }
12673
12674
12675 static PyObject *_wrap_FileType_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
12676 PyObject *resultobj;
12677 wxFileType *arg1 = (wxFileType *) 0 ;
12678 wxIcon *result;
12679 PyObject * obj0 = 0 ;
12680 char *kwnames[] = {
12681 (char *) "self", NULL
12682 };
12683
12684 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetIcon",kwnames,&obj0)) goto fail;
12685 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12686 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12687 {
12688 PyThreadState* __tstate = wxPyBeginAllowThreads();
12689 result = (wxIcon *)wxFileType_GetIcon(arg1);
12690
12691 wxPyEndAllowThreads(__tstate);
12692 if (PyErr_Occurred()) SWIG_fail;
12693 }
12694 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
12695 return resultobj;
12696 fail:
12697 return NULL;
12698 }
12699
12700
12701 static PyObject *_wrap_FileType_GetIconInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
12702 PyObject *resultobj;
12703 wxFileType *arg1 = (wxFileType *) 0 ;
12704 PyObject *result;
12705 PyObject * obj0 = 0 ;
12706 char *kwnames[] = {
12707 (char *) "self", NULL
12708 };
12709
12710 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetIconInfo",kwnames,&obj0)) goto fail;
12711 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12712 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12713 {
12714 PyThreadState* __tstate = wxPyBeginAllowThreads();
12715 result = (PyObject *)wxFileType_GetIconInfo(arg1);
12716
12717 wxPyEndAllowThreads(__tstate);
12718 if (PyErr_Occurred()) SWIG_fail;
12719 }
12720 resultobj = result;
12721 return resultobj;
12722 fail:
12723 return NULL;
12724 }
12725
12726
12727 static PyObject *_wrap_FileType_GetDescription(PyObject *self, PyObject *args, PyObject *kwargs) {
12728 PyObject *resultobj;
12729 wxFileType *arg1 = (wxFileType *) 0 ;
12730 PyObject *result;
12731 PyObject * obj0 = 0 ;
12732 char *kwnames[] = {
12733 (char *) "self", NULL
12734 };
12735
12736 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetDescription",kwnames,&obj0)) goto fail;
12737 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12738 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12739 {
12740 PyThreadState* __tstate = wxPyBeginAllowThreads();
12741 result = (PyObject *)wxFileType_GetDescription(arg1);
12742
12743 wxPyEndAllowThreads(__tstate);
12744 if (PyErr_Occurred()) SWIG_fail;
12745 }
12746 resultobj = result;
12747 return resultobj;
12748 fail:
12749 return NULL;
12750 }
12751
12752
12753 static PyObject *_wrap_FileType_GetOpenCommand(PyObject *self, PyObject *args, PyObject *kwargs) {
12754 PyObject *resultobj;
12755 wxFileType *arg1 = (wxFileType *) 0 ;
12756 wxString *arg2 = 0 ;
12757 wxString const &arg3_defvalue = wxPyEmptyString ;
12758 wxString *arg3 = (wxString *) &arg3_defvalue ;
12759 PyObject *result;
12760 bool temp2 = False ;
12761 bool temp3 = False ;
12762 PyObject * obj0 = 0 ;
12763 PyObject * obj1 = 0 ;
12764 PyObject * obj2 = 0 ;
12765 char *kwnames[] = {
12766 (char *) "self",(char *) "filename",(char *) "mimetype", NULL
12767 };
12768
12769 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetOpenCommand",kwnames,&obj0,&obj1,&obj2)) goto fail;
12770 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12771 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12772 {
12773 arg2 = wxString_in_helper(obj1);
12774 if (arg2 == NULL) SWIG_fail;
12775 temp2 = True;
12776 }
12777 if (obj2) {
12778 {
12779 arg3 = wxString_in_helper(obj2);
12780 if (arg3 == NULL) SWIG_fail;
12781 temp3 = True;
12782 }
12783 }
12784 {
12785 PyThreadState* __tstate = wxPyBeginAllowThreads();
12786 result = (PyObject *)wxFileType_GetOpenCommand(arg1,(wxString const &)*arg2,(wxString const &)*arg3);
12787
12788 wxPyEndAllowThreads(__tstate);
12789 if (PyErr_Occurred()) SWIG_fail;
12790 }
12791 resultobj = result;
12792 {
12793 if (temp2)
12794 delete arg2;
12795 }
12796 {
12797 if (temp3)
12798 delete arg3;
12799 }
12800 return resultobj;
12801 fail:
12802 {
12803 if (temp2)
12804 delete arg2;
12805 }
12806 {
12807 if (temp3)
12808 delete arg3;
12809 }
12810 return NULL;
12811 }
12812
12813
12814 static PyObject *_wrap_FileType_GetPrintCommand(PyObject *self, PyObject *args, PyObject *kwargs) {
12815 PyObject *resultobj;
12816 wxFileType *arg1 = (wxFileType *) 0 ;
12817 wxString *arg2 = 0 ;
12818 wxString const &arg3_defvalue = wxPyEmptyString ;
12819 wxString *arg3 = (wxString *) &arg3_defvalue ;
12820 PyObject *result;
12821 bool temp2 = False ;
12822 bool temp3 = False ;
12823 PyObject * obj0 = 0 ;
12824 PyObject * obj1 = 0 ;
12825 PyObject * obj2 = 0 ;
12826 char *kwnames[] = {
12827 (char *) "self",(char *) "filename",(char *) "mimetype", NULL
12828 };
12829
12830 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetPrintCommand",kwnames,&obj0,&obj1,&obj2)) goto fail;
12831 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12832 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12833 {
12834 arg2 = wxString_in_helper(obj1);
12835 if (arg2 == NULL) SWIG_fail;
12836 temp2 = True;
12837 }
12838 if (obj2) {
12839 {
12840 arg3 = wxString_in_helper(obj2);
12841 if (arg3 == NULL) SWIG_fail;
12842 temp3 = True;
12843 }
12844 }
12845 {
12846 PyThreadState* __tstate = wxPyBeginAllowThreads();
12847 result = (PyObject *)wxFileType_GetPrintCommand(arg1,(wxString const &)*arg2,(wxString const &)*arg3);
12848
12849 wxPyEndAllowThreads(__tstate);
12850 if (PyErr_Occurred()) SWIG_fail;
12851 }
12852 resultobj = result;
12853 {
12854 if (temp2)
12855 delete arg2;
12856 }
12857 {
12858 if (temp3)
12859 delete arg3;
12860 }
12861 return resultobj;
12862 fail:
12863 {
12864 if (temp2)
12865 delete arg2;
12866 }
12867 {
12868 if (temp3)
12869 delete arg3;
12870 }
12871 return NULL;
12872 }
12873
12874
12875 static PyObject *_wrap_FileType_GetAllCommands(PyObject *self, PyObject *args, PyObject *kwargs) {
12876 PyObject *resultobj;
12877 wxFileType *arg1 = (wxFileType *) 0 ;
12878 wxString *arg2 = 0 ;
12879 wxString const &arg3_defvalue = wxPyEmptyString ;
12880 wxString *arg3 = (wxString *) &arg3_defvalue ;
12881 PyObject *result;
12882 bool temp2 = False ;
12883 bool temp3 = False ;
12884 PyObject * obj0 = 0 ;
12885 PyObject * obj1 = 0 ;
12886 PyObject * obj2 = 0 ;
12887 char *kwnames[] = {
12888 (char *) "self",(char *) "filename",(char *) "mimetype", NULL
12889 };
12890
12891 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetAllCommands",kwnames,&obj0,&obj1,&obj2)) goto fail;
12892 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12893 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12894 {
12895 arg2 = wxString_in_helper(obj1);
12896 if (arg2 == NULL) SWIG_fail;
12897 temp2 = True;
12898 }
12899 if (obj2) {
12900 {
12901 arg3 = wxString_in_helper(obj2);
12902 if (arg3 == NULL) SWIG_fail;
12903 temp3 = True;
12904 }
12905 }
12906 {
12907 PyThreadState* __tstate = wxPyBeginAllowThreads();
12908 result = (PyObject *)wxFileType_GetAllCommands(arg1,(wxString const &)*arg2,(wxString const &)*arg3);
12909
12910 wxPyEndAllowThreads(__tstate);
12911 if (PyErr_Occurred()) SWIG_fail;
12912 }
12913 resultobj = result;
12914 {
12915 if (temp2)
12916 delete arg2;
12917 }
12918 {
12919 if (temp3)
12920 delete arg3;
12921 }
12922 return resultobj;
12923 fail:
12924 {
12925 if (temp2)
12926 delete arg2;
12927 }
12928 {
12929 if (temp3)
12930 delete arg3;
12931 }
12932 return NULL;
12933 }
12934
12935
12936 static PyObject *_wrap_FileType_SetCommand(PyObject *self, PyObject *args, PyObject *kwargs) {
12937 PyObject *resultobj;
12938 wxFileType *arg1 = (wxFileType *) 0 ;
12939 wxString *arg2 = 0 ;
12940 wxString *arg3 = 0 ;
12941 bool arg4 = (bool) True ;
12942 bool result;
12943 bool temp2 = False ;
12944 bool temp3 = False ;
12945 PyObject * obj0 = 0 ;
12946 PyObject * obj1 = 0 ;
12947 PyObject * obj2 = 0 ;
12948 PyObject * obj3 = 0 ;
12949 char *kwnames[] = {
12950 (char *) "self",(char *) "cmd",(char *) "verb",(char *) "overwriteprompt", NULL
12951 };
12952
12953 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:FileType_SetCommand",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12954 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12955 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12956 {
12957 arg2 = wxString_in_helper(obj1);
12958 if (arg2 == NULL) SWIG_fail;
12959 temp2 = True;
12960 }
12961 {
12962 arg3 = wxString_in_helper(obj2);
12963 if (arg3 == NULL) SWIG_fail;
12964 temp3 = True;
12965 }
12966 if (obj3) {
12967 arg4 = (bool) SWIG_AsBool(obj3);
12968 if (PyErr_Occurred()) SWIG_fail;
12969 }
12970 {
12971 PyThreadState* __tstate = wxPyBeginAllowThreads();
12972 result = (bool)(arg1)->SetCommand((wxString const &)*arg2,(wxString const &)*arg3,arg4);
12973
12974 wxPyEndAllowThreads(__tstate);
12975 if (PyErr_Occurred()) SWIG_fail;
12976 }
12977 {
12978 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12979 }
12980 {
12981 if (temp2)
12982 delete arg2;
12983 }
12984 {
12985 if (temp3)
12986 delete arg3;
12987 }
12988 return resultobj;
12989 fail:
12990 {
12991 if (temp2)
12992 delete arg2;
12993 }
12994 {
12995 if (temp3)
12996 delete arg3;
12997 }
12998 return NULL;
12999 }
13000
13001
13002 static PyObject *_wrap_FileType_SetDefaultIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
13003 PyObject *resultobj;
13004 wxFileType *arg1 = (wxFileType *) 0 ;
13005 wxString const &arg2_defvalue = wxPyEmptyString ;
13006 wxString *arg2 = (wxString *) &arg2_defvalue ;
13007 int arg3 = (int) 0 ;
13008 bool result;
13009 bool temp2 = False ;
13010 PyObject * obj0 = 0 ;
13011 PyObject * obj1 = 0 ;
13012 PyObject * obj2 = 0 ;
13013 char *kwnames[] = {
13014 (char *) "self",(char *) "cmd",(char *) "index", NULL
13015 };
13016
13017 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FileType_SetDefaultIcon",kwnames,&obj0,&obj1,&obj2)) goto fail;
13018 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
13019 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13020 if (obj1) {
13021 {
13022 arg2 = wxString_in_helper(obj1);
13023 if (arg2 == NULL) SWIG_fail;
13024 temp2 = True;
13025 }
13026 }
13027 if (obj2) {
13028 arg3 = (int) SWIG_AsInt(obj2);
13029 if (PyErr_Occurred()) SWIG_fail;
13030 }
13031 {
13032 PyThreadState* __tstate = wxPyBeginAllowThreads();
13033 result = (bool)(arg1)->SetDefaultIcon((wxString const &)*arg2,arg3);
13034
13035 wxPyEndAllowThreads(__tstate);
13036 if (PyErr_Occurred()) SWIG_fail;
13037 }
13038 {
13039 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13040 }
13041 {
13042 if (temp2)
13043 delete arg2;
13044 }
13045 return resultobj;
13046 fail:
13047 {
13048 if (temp2)
13049 delete arg2;
13050 }
13051 return NULL;
13052 }
13053
13054
13055 static PyObject *_wrap_FileType_Unassociate(PyObject *self, PyObject *args, PyObject *kwargs) {
13056 PyObject *resultobj;
13057 wxFileType *arg1 = (wxFileType *) 0 ;
13058 bool result;
13059 PyObject * obj0 = 0 ;
13060 char *kwnames[] = {
13061 (char *) "self", NULL
13062 };
13063
13064 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_Unassociate",kwnames,&obj0)) goto fail;
13065 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
13066 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13067 {
13068 PyThreadState* __tstate = wxPyBeginAllowThreads();
13069 result = (bool)(arg1)->Unassociate();
13070
13071 wxPyEndAllowThreads(__tstate);
13072 if (PyErr_Occurred()) SWIG_fail;
13073 }
13074 {
13075 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13076 }
13077 return resultobj;
13078 fail:
13079 return NULL;
13080 }
13081
13082
13083 static PyObject *_wrap_FileType_ExpandCommand(PyObject *self, PyObject *args, PyObject *kwargs) {
13084 PyObject *resultobj;
13085 wxString *arg1 = 0 ;
13086 wxString *arg2 = 0 ;
13087 wxString const &arg3_defvalue = wxPyEmptyString ;
13088 wxString *arg3 = (wxString *) &arg3_defvalue ;
13089 wxString result;
13090 bool temp1 = False ;
13091 bool temp2 = False ;
13092 bool temp3 = False ;
13093 PyObject * obj0 = 0 ;
13094 PyObject * obj1 = 0 ;
13095 PyObject * obj2 = 0 ;
13096 char *kwnames[] = {
13097 (char *) "command",(char *) "filename",(char *) "mimetype", NULL
13098 };
13099
13100 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_ExpandCommand",kwnames,&obj0,&obj1,&obj2)) goto fail;
13101 {
13102 arg1 = wxString_in_helper(obj0);
13103 if (arg1 == NULL) SWIG_fail;
13104 temp1 = True;
13105 }
13106 {
13107 arg2 = wxString_in_helper(obj1);
13108 if (arg2 == NULL) SWIG_fail;
13109 temp2 = True;
13110 }
13111 if (obj2) {
13112 {
13113 arg3 = wxString_in_helper(obj2);
13114 if (arg3 == NULL) SWIG_fail;
13115 temp3 = True;
13116 }
13117 }
13118 {
13119 PyThreadState* __tstate = wxPyBeginAllowThreads();
13120 result = FileType_ExpandCommand((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3);
13121
13122 wxPyEndAllowThreads(__tstate);
13123 if (PyErr_Occurred()) SWIG_fail;
13124 }
13125 {
13126 #if wxUSE_UNICODE
13127 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13128 #else
13129 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13130 #endif
13131 }
13132 {
13133 if (temp1)
13134 delete arg1;
13135 }
13136 {
13137 if (temp2)
13138 delete arg2;
13139 }
13140 {
13141 if (temp3)
13142 delete arg3;
13143 }
13144 return resultobj;
13145 fail:
13146 {
13147 if (temp1)
13148 delete arg1;
13149 }
13150 {
13151 if (temp2)
13152 delete arg2;
13153 }
13154 {
13155 if (temp3)
13156 delete arg3;
13157 }
13158 return NULL;
13159 }
13160
13161
13162 static PyObject * FileType_swigregister(PyObject *self, PyObject *args) {
13163 PyObject *obj;
13164 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13165 SWIG_TypeClientData(SWIGTYPE_p_wxFileType, obj);
13166 Py_INCREF(obj);
13167 return Py_BuildValue((char *)"");
13168 }
13169 static int _wrap_TheMimeTypesManager_set(PyObject *_val) {
13170 PyErr_SetString(PyExc_TypeError,"Variable TheMimeTypesManager is read-only.");
13171 return 1;
13172 }
13173
13174
13175 static PyObject *_wrap_TheMimeTypesManager_get() {
13176 PyObject *pyobj;
13177
13178 pyobj = SWIG_NewPointerObj((void *)(wxTheMimeTypesManager), SWIGTYPE_p_wxMimeTypesManager, 0);
13179 return pyobj;
13180 }
13181
13182
13183 static PyObject *_wrap_MimeTypesManager_IsOfType(PyObject *self, PyObject *args, PyObject *kwargs) {
13184 PyObject *resultobj;
13185 wxString *arg1 = 0 ;
13186 wxString *arg2 = 0 ;
13187 bool result;
13188 bool temp1 = False ;
13189 bool temp2 = False ;
13190 PyObject * obj0 = 0 ;
13191 PyObject * obj1 = 0 ;
13192 char *kwnames[] = {
13193 (char *) "mimeType",(char *) "wildcard", NULL
13194 };
13195
13196 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_IsOfType",kwnames,&obj0,&obj1)) goto fail;
13197 {
13198 arg1 = wxString_in_helper(obj0);
13199 if (arg1 == NULL) SWIG_fail;
13200 temp1 = True;
13201 }
13202 {
13203 arg2 = wxString_in_helper(obj1);
13204 if (arg2 == NULL) SWIG_fail;
13205 temp2 = True;
13206 }
13207 {
13208 PyThreadState* __tstate = wxPyBeginAllowThreads();
13209 result = (bool)wxMimeTypesManager::IsOfType((wxString const &)*arg1,(wxString const &)*arg2);
13210
13211 wxPyEndAllowThreads(__tstate);
13212 if (PyErr_Occurred()) SWIG_fail;
13213 }
13214 {
13215 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13216 }
13217 {
13218 if (temp1)
13219 delete arg1;
13220 }
13221 {
13222 if (temp2)
13223 delete arg2;
13224 }
13225 return resultobj;
13226 fail:
13227 {
13228 if (temp1)
13229 delete arg1;
13230 }
13231 {
13232 if (temp2)
13233 delete arg2;
13234 }
13235 return NULL;
13236 }
13237
13238
13239 static PyObject *_wrap_new_MimeTypesManager(PyObject *self, PyObject *args, PyObject *kwargs) {
13240 PyObject *resultobj;
13241 wxMimeTypesManager *result;
13242 char *kwnames[] = {
13243 NULL
13244 };
13245
13246 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MimeTypesManager",kwnames)) goto fail;
13247 {
13248 PyThreadState* __tstate = wxPyBeginAllowThreads();
13249 result = (wxMimeTypesManager *)new wxMimeTypesManager();
13250
13251 wxPyEndAllowThreads(__tstate);
13252 if (PyErr_Occurred()) SWIG_fail;
13253 }
13254 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMimeTypesManager, 1);
13255 return resultobj;
13256 fail:
13257 return NULL;
13258 }
13259
13260
13261 static PyObject *_wrap_MimeTypesManager_Initialize(PyObject *self, PyObject *args, PyObject *kwargs) {
13262 PyObject *resultobj;
13263 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13264 int arg2 = (int) wxMAILCAP_ALL ;
13265 wxString const &arg3_defvalue = wxPyEmptyString ;
13266 wxString *arg3 = (wxString *) &arg3_defvalue ;
13267 bool temp3 = False ;
13268 PyObject * obj0 = 0 ;
13269 PyObject * obj1 = 0 ;
13270 PyObject * obj2 = 0 ;
13271 char *kwnames[] = {
13272 (char *) "self",(char *) "mailcapStyle",(char *) "extraDir", NULL
13273 };
13274
13275 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MimeTypesManager_Initialize",kwnames,&obj0,&obj1,&obj2)) goto fail;
13276 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13277 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13278 if (obj1) {
13279 arg2 = (int) SWIG_AsInt(obj1);
13280 if (PyErr_Occurred()) SWIG_fail;
13281 }
13282 if (obj2) {
13283 {
13284 arg3 = wxString_in_helper(obj2);
13285 if (arg3 == NULL) SWIG_fail;
13286 temp3 = True;
13287 }
13288 }
13289 {
13290 PyThreadState* __tstate = wxPyBeginAllowThreads();
13291 (arg1)->Initialize(arg2,(wxString const &)*arg3);
13292
13293 wxPyEndAllowThreads(__tstate);
13294 if (PyErr_Occurred()) SWIG_fail;
13295 }
13296 Py_INCREF(Py_None); resultobj = Py_None;
13297 {
13298 if (temp3)
13299 delete arg3;
13300 }
13301 return resultobj;
13302 fail:
13303 {
13304 if (temp3)
13305 delete arg3;
13306 }
13307 return NULL;
13308 }
13309
13310
13311 static PyObject *_wrap_MimeTypesManager_ClearData(PyObject *self, PyObject *args, PyObject *kwargs) {
13312 PyObject *resultobj;
13313 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13314 PyObject * obj0 = 0 ;
13315 char *kwnames[] = {
13316 (char *) "self", NULL
13317 };
13318
13319 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MimeTypesManager_ClearData",kwnames,&obj0)) goto fail;
13320 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13321 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13322 {
13323 PyThreadState* __tstate = wxPyBeginAllowThreads();
13324 (arg1)->ClearData();
13325
13326 wxPyEndAllowThreads(__tstate);
13327 if (PyErr_Occurred()) SWIG_fail;
13328 }
13329 Py_INCREF(Py_None); resultobj = Py_None;
13330 return resultobj;
13331 fail:
13332 return NULL;
13333 }
13334
13335
13336 static PyObject *_wrap_MimeTypesManager_GetFileTypeFromExtension(PyObject *self, PyObject *args, PyObject *kwargs) {
13337 PyObject *resultobj;
13338 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13339 wxString *arg2 = 0 ;
13340 wxFileType *result;
13341 bool temp2 = False ;
13342 PyObject * obj0 = 0 ;
13343 PyObject * obj1 = 0 ;
13344 char *kwnames[] = {
13345 (char *) "self",(char *) "ext", NULL
13346 };
13347
13348 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_GetFileTypeFromExtension",kwnames,&obj0,&obj1)) goto fail;
13349 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13350 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13351 {
13352 arg2 = wxString_in_helper(obj1);
13353 if (arg2 == NULL) SWIG_fail;
13354 temp2 = True;
13355 }
13356 {
13357 PyThreadState* __tstate = wxPyBeginAllowThreads();
13358 result = (wxFileType *)(arg1)->GetFileTypeFromExtension((wxString const &)*arg2);
13359
13360 wxPyEndAllowThreads(__tstate);
13361 if (PyErr_Occurred()) SWIG_fail;
13362 }
13363 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1);
13364 {
13365 if (temp2)
13366 delete arg2;
13367 }
13368 return resultobj;
13369 fail:
13370 {
13371 if (temp2)
13372 delete arg2;
13373 }
13374 return NULL;
13375 }
13376
13377
13378 static PyObject *_wrap_MimeTypesManager_GetFileTypeFromMimeType(PyObject *self, PyObject *args, PyObject *kwargs) {
13379 PyObject *resultobj;
13380 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13381 wxString *arg2 = 0 ;
13382 wxFileType *result;
13383 bool temp2 = False ;
13384 PyObject * obj0 = 0 ;
13385 PyObject * obj1 = 0 ;
13386 char *kwnames[] = {
13387 (char *) "self",(char *) "mimeType", NULL
13388 };
13389
13390 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_GetFileTypeFromMimeType",kwnames,&obj0,&obj1)) goto fail;
13391 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13392 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13393 {
13394 arg2 = wxString_in_helper(obj1);
13395 if (arg2 == NULL) SWIG_fail;
13396 temp2 = True;
13397 }
13398 {
13399 PyThreadState* __tstate = wxPyBeginAllowThreads();
13400 result = (wxFileType *)(arg1)->GetFileTypeFromMimeType((wxString const &)*arg2);
13401
13402 wxPyEndAllowThreads(__tstate);
13403 if (PyErr_Occurred()) SWIG_fail;
13404 }
13405 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1);
13406 {
13407 if (temp2)
13408 delete arg2;
13409 }
13410 return resultobj;
13411 fail:
13412 {
13413 if (temp2)
13414 delete arg2;
13415 }
13416 return NULL;
13417 }
13418
13419
13420 static PyObject *_wrap_MimeTypesManager_ReadMailcap(PyObject *self, PyObject *args, PyObject *kwargs) {
13421 PyObject *resultobj;
13422 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13423 wxString *arg2 = 0 ;
13424 bool arg3 = (bool) False ;
13425 bool result;
13426 bool temp2 = False ;
13427 PyObject * obj0 = 0 ;
13428 PyObject * obj1 = 0 ;
13429 PyObject * obj2 = 0 ;
13430 char *kwnames[] = {
13431 (char *) "self",(char *) "filename",(char *) "fallback", NULL
13432 };
13433
13434 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:MimeTypesManager_ReadMailcap",kwnames,&obj0,&obj1,&obj2)) goto fail;
13435 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13436 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13437 {
13438 arg2 = wxString_in_helper(obj1);
13439 if (arg2 == NULL) SWIG_fail;
13440 temp2 = True;
13441 }
13442 if (obj2) {
13443 arg3 = (bool) SWIG_AsBool(obj2);
13444 if (PyErr_Occurred()) SWIG_fail;
13445 }
13446 {
13447 PyThreadState* __tstate = wxPyBeginAllowThreads();
13448 result = (bool)(arg1)->ReadMailcap((wxString const &)*arg2,arg3);
13449
13450 wxPyEndAllowThreads(__tstate);
13451 if (PyErr_Occurred()) SWIG_fail;
13452 }
13453 {
13454 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13455 }
13456 {
13457 if (temp2)
13458 delete arg2;
13459 }
13460 return resultobj;
13461 fail:
13462 {
13463 if (temp2)
13464 delete arg2;
13465 }
13466 return NULL;
13467 }
13468
13469
13470 static PyObject *_wrap_MimeTypesManager_ReadMimeTypes(PyObject *self, PyObject *args, PyObject *kwargs) {
13471 PyObject *resultobj;
13472 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13473 wxString *arg2 = 0 ;
13474 bool result;
13475 bool temp2 = False ;
13476 PyObject * obj0 = 0 ;
13477 PyObject * obj1 = 0 ;
13478 char *kwnames[] = {
13479 (char *) "self",(char *) "filename", NULL
13480 };
13481
13482 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_ReadMimeTypes",kwnames,&obj0,&obj1)) goto fail;
13483 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13484 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13485 {
13486 arg2 = wxString_in_helper(obj1);
13487 if (arg2 == NULL) SWIG_fail;
13488 temp2 = True;
13489 }
13490 {
13491 PyThreadState* __tstate = wxPyBeginAllowThreads();
13492 result = (bool)(arg1)->ReadMimeTypes((wxString const &)*arg2);
13493
13494 wxPyEndAllowThreads(__tstate);
13495 if (PyErr_Occurred()) SWIG_fail;
13496 }
13497 {
13498 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13499 }
13500 {
13501 if (temp2)
13502 delete arg2;
13503 }
13504 return resultobj;
13505 fail:
13506 {
13507 if (temp2)
13508 delete arg2;
13509 }
13510 return NULL;
13511 }
13512
13513
13514 static PyObject *_wrap_MimeTypesManager_EnumAllFileTypes(PyObject *self, PyObject *args, PyObject *kwargs) {
13515 PyObject *resultobj;
13516 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13517 PyObject *result;
13518 PyObject * obj0 = 0 ;
13519 char *kwnames[] = {
13520 (char *) "self", NULL
13521 };
13522
13523 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MimeTypesManager_EnumAllFileTypes",kwnames,&obj0)) goto fail;
13524 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13525 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13526 {
13527 PyThreadState* __tstate = wxPyBeginAllowThreads();
13528 result = (PyObject *)wxMimeTypesManager_EnumAllFileTypes(arg1);
13529
13530 wxPyEndAllowThreads(__tstate);
13531 if (PyErr_Occurred()) SWIG_fail;
13532 }
13533 resultobj = result;
13534 return resultobj;
13535 fail:
13536 return NULL;
13537 }
13538
13539
13540 static PyObject *_wrap_MimeTypesManager_AddFallback(PyObject *self, PyObject *args, PyObject *kwargs) {
13541 PyObject *resultobj;
13542 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13543 wxFileTypeInfo *arg2 = 0 ;
13544 PyObject * obj0 = 0 ;
13545 PyObject * obj1 = 0 ;
13546 char *kwnames[] = {
13547 (char *) "self",(char *) "ft", NULL
13548 };
13549
13550 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_AddFallback",kwnames,&obj0,&obj1)) goto fail;
13551 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13552 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13553 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileTypeInfo,
13554 SWIG_POINTER_EXCEPTION | 0)) == -1)
13555 SWIG_fail;
13556 if (arg2 == NULL) {
13557 PyErr_SetString(PyExc_TypeError,"null reference");
13558 SWIG_fail;
13559 }
13560 {
13561 PyThreadState* __tstate = wxPyBeginAllowThreads();
13562 (arg1)->AddFallback((wxFileTypeInfo const &)*arg2);
13563
13564 wxPyEndAllowThreads(__tstate);
13565 if (PyErr_Occurred()) SWIG_fail;
13566 }
13567 Py_INCREF(Py_None); resultobj = Py_None;
13568 return resultobj;
13569 fail:
13570 return NULL;
13571 }
13572
13573
13574 static PyObject *_wrap_MimeTypesManager_Associate(PyObject *self, PyObject *args, PyObject *kwargs) {
13575 PyObject *resultobj;
13576 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13577 wxFileTypeInfo *arg2 = 0 ;
13578 wxFileType *result;
13579 PyObject * obj0 = 0 ;
13580 PyObject * obj1 = 0 ;
13581 char *kwnames[] = {
13582 (char *) "self",(char *) "ftInfo", NULL
13583 };
13584
13585 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_Associate",kwnames,&obj0,&obj1)) goto fail;
13586 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13587 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13588 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileTypeInfo,
13589 SWIG_POINTER_EXCEPTION | 0)) == -1)
13590 SWIG_fail;
13591 if (arg2 == NULL) {
13592 PyErr_SetString(PyExc_TypeError,"null reference");
13593 SWIG_fail;
13594 }
13595 {
13596 PyThreadState* __tstate = wxPyBeginAllowThreads();
13597 result = (wxFileType *)(arg1)->Associate((wxFileTypeInfo const &)*arg2);
13598
13599 wxPyEndAllowThreads(__tstate);
13600 if (PyErr_Occurred()) SWIG_fail;
13601 }
13602 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1);
13603 return resultobj;
13604 fail:
13605 return NULL;
13606 }
13607
13608
13609 static PyObject *_wrap_MimeTypesManager_Unassociate(PyObject *self, PyObject *args, PyObject *kwargs) {
13610 PyObject *resultobj;
13611 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13612 wxFileType *arg2 = (wxFileType *) 0 ;
13613 bool result;
13614 PyObject * obj0 = 0 ;
13615 PyObject * obj1 = 0 ;
13616 char *kwnames[] = {
13617 (char *) "self",(char *) "ft", NULL
13618 };
13619
13620 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_Unassociate",kwnames,&obj0,&obj1)) goto fail;
13621 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13622 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13623 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileType,
13624 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13625 {
13626 PyThreadState* __tstate = wxPyBeginAllowThreads();
13627 result = (bool)(arg1)->Unassociate(arg2);
13628
13629 wxPyEndAllowThreads(__tstate);
13630 if (PyErr_Occurred()) SWIG_fail;
13631 }
13632 {
13633 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13634 }
13635 return resultobj;
13636 fail:
13637 return NULL;
13638 }
13639
13640
13641 static PyObject *_wrap_delete_MimeTypesManager(PyObject *self, PyObject *args, PyObject *kwargs) {
13642 PyObject *resultobj;
13643 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13644 PyObject * obj0 = 0 ;
13645 char *kwnames[] = {
13646 (char *) "self", NULL
13647 };
13648
13649 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MimeTypesManager",kwnames,&obj0)) goto fail;
13650 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13651 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13652 {
13653 PyThreadState* __tstate = wxPyBeginAllowThreads();
13654 delete arg1;
13655
13656 wxPyEndAllowThreads(__tstate);
13657 if (PyErr_Occurred()) SWIG_fail;
13658 }
13659 Py_INCREF(Py_None); resultobj = Py_None;
13660 return resultobj;
13661 fail:
13662 return NULL;
13663 }
13664
13665
13666 static PyObject * MimeTypesManager_swigregister(PyObject *self, PyObject *args) {
13667 PyObject *obj;
13668 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13669 SWIG_TypeClientData(SWIGTYPE_p_wxMimeTypesManager, obj);
13670 Py_INCREF(obj);
13671 return Py_BuildValue((char *)"");
13672 }
13673 static int _wrap_ART_TOOLBAR_set(PyObject *_val) {
13674 PyErr_SetString(PyExc_TypeError,"Variable ART_TOOLBAR is read-only.");
13675 return 1;
13676 }
13677
13678
13679 static PyObject *_wrap_ART_TOOLBAR_get() {
13680 PyObject *pyobj;
13681
13682 {
13683 #if wxUSE_UNICODE
13684 pyobj = PyUnicode_FromWideChar((&wxPyART_TOOLBAR)->c_str(), (&wxPyART_TOOLBAR)->Len());
13685 #else
13686 pyobj = PyString_FromStringAndSize((&wxPyART_TOOLBAR)->c_str(), (&wxPyART_TOOLBAR)->Len());
13687 #endif
13688 }
13689 return pyobj;
13690 }
13691
13692
13693 static int _wrap_ART_MENU_set(PyObject *_val) {
13694 PyErr_SetString(PyExc_TypeError,"Variable ART_MENU is read-only.");
13695 return 1;
13696 }
13697
13698
13699 static PyObject *_wrap_ART_MENU_get() {
13700 PyObject *pyobj;
13701
13702 {
13703 #if wxUSE_UNICODE
13704 pyobj = PyUnicode_FromWideChar((&wxPyART_MENU)->c_str(), (&wxPyART_MENU)->Len());
13705 #else
13706 pyobj = PyString_FromStringAndSize((&wxPyART_MENU)->c_str(), (&wxPyART_MENU)->Len());
13707 #endif
13708 }
13709 return pyobj;
13710 }
13711
13712
13713 static int _wrap_ART_FRAME_ICON_set(PyObject *_val) {
13714 PyErr_SetString(PyExc_TypeError,"Variable ART_FRAME_ICON is read-only.");
13715 return 1;
13716 }
13717
13718
13719 static PyObject *_wrap_ART_FRAME_ICON_get() {
13720 PyObject *pyobj;
13721
13722 {
13723 #if wxUSE_UNICODE
13724 pyobj = PyUnicode_FromWideChar((&wxPyART_FRAME_ICON)->c_str(), (&wxPyART_FRAME_ICON)->Len());
13725 #else
13726 pyobj = PyString_FromStringAndSize((&wxPyART_FRAME_ICON)->c_str(), (&wxPyART_FRAME_ICON)->Len());
13727 #endif
13728 }
13729 return pyobj;
13730 }
13731
13732
13733 static int _wrap_ART_CMN_DIALOG_set(PyObject *_val) {
13734 PyErr_SetString(PyExc_TypeError,"Variable ART_CMN_DIALOG is read-only.");
13735 return 1;
13736 }
13737
13738
13739 static PyObject *_wrap_ART_CMN_DIALOG_get() {
13740 PyObject *pyobj;
13741
13742 {
13743 #if wxUSE_UNICODE
13744 pyobj = PyUnicode_FromWideChar((&wxPyART_CMN_DIALOG)->c_str(), (&wxPyART_CMN_DIALOG)->Len());
13745 #else
13746 pyobj = PyString_FromStringAndSize((&wxPyART_CMN_DIALOG)->c_str(), (&wxPyART_CMN_DIALOG)->Len());
13747 #endif
13748 }
13749 return pyobj;
13750 }
13751
13752
13753 static int _wrap_ART_HELP_BROWSER_set(PyObject *_val) {
13754 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_BROWSER is read-only.");
13755 return 1;
13756 }
13757
13758
13759 static PyObject *_wrap_ART_HELP_BROWSER_get() {
13760 PyObject *pyobj;
13761
13762 {
13763 #if wxUSE_UNICODE
13764 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_BROWSER)->c_str(), (&wxPyART_HELP_BROWSER)->Len());
13765 #else
13766 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_BROWSER)->c_str(), (&wxPyART_HELP_BROWSER)->Len());
13767 #endif
13768 }
13769 return pyobj;
13770 }
13771
13772
13773 static int _wrap_ART_MESSAGE_BOX_set(PyObject *_val) {
13774 PyErr_SetString(PyExc_TypeError,"Variable ART_MESSAGE_BOX is read-only.");
13775 return 1;
13776 }
13777
13778
13779 static PyObject *_wrap_ART_MESSAGE_BOX_get() {
13780 PyObject *pyobj;
13781
13782 {
13783 #if wxUSE_UNICODE
13784 pyobj = PyUnicode_FromWideChar((&wxPyART_MESSAGE_BOX)->c_str(), (&wxPyART_MESSAGE_BOX)->Len());
13785 #else
13786 pyobj = PyString_FromStringAndSize((&wxPyART_MESSAGE_BOX)->c_str(), (&wxPyART_MESSAGE_BOX)->Len());
13787 #endif
13788 }
13789 return pyobj;
13790 }
13791
13792
13793 static int _wrap_ART_BUTTON_set(PyObject *_val) {
13794 PyErr_SetString(PyExc_TypeError,"Variable ART_BUTTON is read-only.");
13795 return 1;
13796 }
13797
13798
13799 static PyObject *_wrap_ART_BUTTON_get() {
13800 PyObject *pyobj;
13801
13802 {
13803 #if wxUSE_UNICODE
13804 pyobj = PyUnicode_FromWideChar((&wxPyART_BUTTON)->c_str(), (&wxPyART_BUTTON)->Len());
13805 #else
13806 pyobj = PyString_FromStringAndSize((&wxPyART_BUTTON)->c_str(), (&wxPyART_BUTTON)->Len());
13807 #endif
13808 }
13809 return pyobj;
13810 }
13811
13812
13813 static int _wrap_ART_OTHER_set(PyObject *_val) {
13814 PyErr_SetString(PyExc_TypeError,"Variable ART_OTHER is read-only.");
13815 return 1;
13816 }
13817
13818
13819 static PyObject *_wrap_ART_OTHER_get() {
13820 PyObject *pyobj;
13821
13822 {
13823 #if wxUSE_UNICODE
13824 pyobj = PyUnicode_FromWideChar((&wxPyART_OTHER)->c_str(), (&wxPyART_OTHER)->Len());
13825 #else
13826 pyobj = PyString_FromStringAndSize((&wxPyART_OTHER)->c_str(), (&wxPyART_OTHER)->Len());
13827 #endif
13828 }
13829 return pyobj;
13830 }
13831
13832
13833 static int _wrap_ART_ADD_BOOKMARK_set(PyObject *_val) {
13834 PyErr_SetString(PyExc_TypeError,"Variable ART_ADD_BOOKMARK is read-only.");
13835 return 1;
13836 }
13837
13838
13839 static PyObject *_wrap_ART_ADD_BOOKMARK_get() {
13840 PyObject *pyobj;
13841
13842 {
13843 #if wxUSE_UNICODE
13844 pyobj = PyUnicode_FromWideChar((&wxPyART_ADD_BOOKMARK)->c_str(), (&wxPyART_ADD_BOOKMARK)->Len());
13845 #else
13846 pyobj = PyString_FromStringAndSize((&wxPyART_ADD_BOOKMARK)->c_str(), (&wxPyART_ADD_BOOKMARK)->Len());
13847 #endif
13848 }
13849 return pyobj;
13850 }
13851
13852
13853 static int _wrap_ART_DEL_BOOKMARK_set(PyObject *_val) {
13854 PyErr_SetString(PyExc_TypeError,"Variable ART_DEL_BOOKMARK is read-only.");
13855 return 1;
13856 }
13857
13858
13859 static PyObject *_wrap_ART_DEL_BOOKMARK_get() {
13860 PyObject *pyobj;
13861
13862 {
13863 #if wxUSE_UNICODE
13864 pyobj = PyUnicode_FromWideChar((&wxPyART_DEL_BOOKMARK)->c_str(), (&wxPyART_DEL_BOOKMARK)->Len());
13865 #else
13866 pyobj = PyString_FromStringAndSize((&wxPyART_DEL_BOOKMARK)->c_str(), (&wxPyART_DEL_BOOKMARK)->Len());
13867 #endif
13868 }
13869 return pyobj;
13870 }
13871
13872
13873 static int _wrap_ART_HELP_SIDE_PANEL_set(PyObject *_val) {
13874 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_SIDE_PANEL is read-only.");
13875 return 1;
13876 }
13877
13878
13879 static PyObject *_wrap_ART_HELP_SIDE_PANEL_get() {
13880 PyObject *pyobj;
13881
13882 {
13883 #if wxUSE_UNICODE
13884 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_SIDE_PANEL)->c_str(), (&wxPyART_HELP_SIDE_PANEL)->Len());
13885 #else
13886 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_SIDE_PANEL)->c_str(), (&wxPyART_HELP_SIDE_PANEL)->Len());
13887 #endif
13888 }
13889 return pyobj;
13890 }
13891
13892
13893 static int _wrap_ART_HELP_SETTINGS_set(PyObject *_val) {
13894 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_SETTINGS is read-only.");
13895 return 1;
13896 }
13897
13898
13899 static PyObject *_wrap_ART_HELP_SETTINGS_get() {
13900 PyObject *pyobj;
13901
13902 {
13903 #if wxUSE_UNICODE
13904 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_SETTINGS)->c_str(), (&wxPyART_HELP_SETTINGS)->Len());
13905 #else
13906 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_SETTINGS)->c_str(), (&wxPyART_HELP_SETTINGS)->Len());
13907 #endif
13908 }
13909 return pyobj;
13910 }
13911
13912
13913 static int _wrap_ART_HELP_BOOK_set(PyObject *_val) {
13914 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_BOOK is read-only.");
13915 return 1;
13916 }
13917
13918
13919 static PyObject *_wrap_ART_HELP_BOOK_get() {
13920 PyObject *pyobj;
13921
13922 {
13923 #if wxUSE_UNICODE
13924 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_BOOK)->c_str(), (&wxPyART_HELP_BOOK)->Len());
13925 #else
13926 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_BOOK)->c_str(), (&wxPyART_HELP_BOOK)->Len());
13927 #endif
13928 }
13929 return pyobj;
13930 }
13931
13932
13933 static int _wrap_ART_HELP_FOLDER_set(PyObject *_val) {
13934 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_FOLDER is read-only.");
13935 return 1;
13936 }
13937
13938
13939 static PyObject *_wrap_ART_HELP_FOLDER_get() {
13940 PyObject *pyobj;
13941
13942 {
13943 #if wxUSE_UNICODE
13944 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_FOLDER)->c_str(), (&wxPyART_HELP_FOLDER)->Len());
13945 #else
13946 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_FOLDER)->c_str(), (&wxPyART_HELP_FOLDER)->Len());
13947 #endif
13948 }
13949 return pyobj;
13950 }
13951
13952
13953 static int _wrap_ART_HELP_PAGE_set(PyObject *_val) {
13954 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_PAGE is read-only.");
13955 return 1;
13956 }
13957
13958
13959 static PyObject *_wrap_ART_HELP_PAGE_get() {
13960 PyObject *pyobj;
13961
13962 {
13963 #if wxUSE_UNICODE
13964 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_PAGE)->c_str(), (&wxPyART_HELP_PAGE)->Len());
13965 #else
13966 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_PAGE)->c_str(), (&wxPyART_HELP_PAGE)->Len());
13967 #endif
13968 }
13969 return pyobj;
13970 }
13971
13972
13973 static int _wrap_ART_GO_BACK_set(PyObject *_val) {
13974 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_BACK is read-only.");
13975 return 1;
13976 }
13977
13978
13979 static PyObject *_wrap_ART_GO_BACK_get() {
13980 PyObject *pyobj;
13981
13982 {
13983 #if wxUSE_UNICODE
13984 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_BACK)->c_str(), (&wxPyART_GO_BACK)->Len());
13985 #else
13986 pyobj = PyString_FromStringAndSize((&wxPyART_GO_BACK)->c_str(), (&wxPyART_GO_BACK)->Len());
13987 #endif
13988 }
13989 return pyobj;
13990 }
13991
13992
13993 static int _wrap_ART_GO_FORWARD_set(PyObject *_val) {
13994 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_FORWARD is read-only.");
13995 return 1;
13996 }
13997
13998
13999 static PyObject *_wrap_ART_GO_FORWARD_get() {
14000 PyObject *pyobj;
14001
14002 {
14003 #if wxUSE_UNICODE
14004 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_FORWARD)->c_str(), (&wxPyART_GO_FORWARD)->Len());
14005 #else
14006 pyobj = PyString_FromStringAndSize((&wxPyART_GO_FORWARD)->c_str(), (&wxPyART_GO_FORWARD)->Len());
14007 #endif
14008 }
14009 return pyobj;
14010 }
14011
14012
14013 static int _wrap_ART_GO_UP_set(PyObject *_val) {
14014 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_UP is read-only.");
14015 return 1;
14016 }
14017
14018
14019 static PyObject *_wrap_ART_GO_UP_get() {
14020 PyObject *pyobj;
14021
14022 {
14023 #if wxUSE_UNICODE
14024 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_UP)->c_str(), (&wxPyART_GO_UP)->Len());
14025 #else
14026 pyobj = PyString_FromStringAndSize((&wxPyART_GO_UP)->c_str(), (&wxPyART_GO_UP)->Len());
14027 #endif
14028 }
14029 return pyobj;
14030 }
14031
14032
14033 static int _wrap_ART_GO_DOWN_set(PyObject *_val) {
14034 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_DOWN is read-only.");
14035 return 1;
14036 }
14037
14038
14039 static PyObject *_wrap_ART_GO_DOWN_get() {
14040 PyObject *pyobj;
14041
14042 {
14043 #if wxUSE_UNICODE
14044 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_DOWN)->c_str(), (&wxPyART_GO_DOWN)->Len());
14045 #else
14046 pyobj = PyString_FromStringAndSize((&wxPyART_GO_DOWN)->c_str(), (&wxPyART_GO_DOWN)->Len());
14047 #endif
14048 }
14049 return pyobj;
14050 }
14051
14052
14053 static int _wrap_ART_GO_TO_PARENT_set(PyObject *_val) {
14054 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_TO_PARENT is read-only.");
14055 return 1;
14056 }
14057
14058
14059 static PyObject *_wrap_ART_GO_TO_PARENT_get() {
14060 PyObject *pyobj;
14061
14062 {
14063 #if wxUSE_UNICODE
14064 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_TO_PARENT)->c_str(), (&wxPyART_GO_TO_PARENT)->Len());
14065 #else
14066 pyobj = PyString_FromStringAndSize((&wxPyART_GO_TO_PARENT)->c_str(), (&wxPyART_GO_TO_PARENT)->Len());
14067 #endif
14068 }
14069 return pyobj;
14070 }
14071
14072
14073 static int _wrap_ART_GO_HOME_set(PyObject *_val) {
14074 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_HOME is read-only.");
14075 return 1;
14076 }
14077
14078
14079 static PyObject *_wrap_ART_GO_HOME_get() {
14080 PyObject *pyobj;
14081
14082 {
14083 #if wxUSE_UNICODE
14084 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_HOME)->c_str(), (&wxPyART_GO_HOME)->Len());
14085 #else
14086 pyobj = PyString_FromStringAndSize((&wxPyART_GO_HOME)->c_str(), (&wxPyART_GO_HOME)->Len());
14087 #endif
14088 }
14089 return pyobj;
14090 }
14091
14092
14093 static int _wrap_ART_FILE_OPEN_set(PyObject *_val) {
14094 PyErr_SetString(PyExc_TypeError,"Variable ART_FILE_OPEN is read-only.");
14095 return 1;
14096 }
14097
14098
14099 static PyObject *_wrap_ART_FILE_OPEN_get() {
14100 PyObject *pyobj;
14101
14102 {
14103 #if wxUSE_UNICODE
14104 pyobj = PyUnicode_FromWideChar((&wxPyART_FILE_OPEN)->c_str(), (&wxPyART_FILE_OPEN)->Len());
14105 #else
14106 pyobj = PyString_FromStringAndSize((&wxPyART_FILE_OPEN)->c_str(), (&wxPyART_FILE_OPEN)->Len());
14107 #endif
14108 }
14109 return pyobj;
14110 }
14111
14112
14113 static int _wrap_ART_PRINT_set(PyObject *_val) {
14114 PyErr_SetString(PyExc_TypeError,"Variable ART_PRINT is read-only.");
14115 return 1;
14116 }
14117
14118
14119 static PyObject *_wrap_ART_PRINT_get() {
14120 PyObject *pyobj;
14121
14122 {
14123 #if wxUSE_UNICODE
14124 pyobj = PyUnicode_FromWideChar((&wxPyART_PRINT)->c_str(), (&wxPyART_PRINT)->Len());
14125 #else
14126 pyobj = PyString_FromStringAndSize((&wxPyART_PRINT)->c_str(), (&wxPyART_PRINT)->Len());
14127 #endif
14128 }
14129 return pyobj;
14130 }
14131
14132
14133 static int _wrap_ART_HELP_set(PyObject *_val) {
14134 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP is read-only.");
14135 return 1;
14136 }
14137
14138
14139 static PyObject *_wrap_ART_HELP_get() {
14140 PyObject *pyobj;
14141
14142 {
14143 #if wxUSE_UNICODE
14144 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP)->c_str(), (&wxPyART_HELP)->Len());
14145 #else
14146 pyobj = PyString_FromStringAndSize((&wxPyART_HELP)->c_str(), (&wxPyART_HELP)->Len());
14147 #endif
14148 }
14149 return pyobj;
14150 }
14151
14152
14153 static int _wrap_ART_TIP_set(PyObject *_val) {
14154 PyErr_SetString(PyExc_TypeError,"Variable ART_TIP is read-only.");
14155 return 1;
14156 }
14157
14158
14159 static PyObject *_wrap_ART_TIP_get() {
14160 PyObject *pyobj;
14161
14162 {
14163 #if wxUSE_UNICODE
14164 pyobj = PyUnicode_FromWideChar((&wxPyART_TIP)->c_str(), (&wxPyART_TIP)->Len());
14165 #else
14166 pyobj = PyString_FromStringAndSize((&wxPyART_TIP)->c_str(), (&wxPyART_TIP)->Len());
14167 #endif
14168 }
14169 return pyobj;
14170 }
14171
14172
14173 static int _wrap_ART_REPORT_VIEW_set(PyObject *_val) {
14174 PyErr_SetString(PyExc_TypeError,"Variable ART_REPORT_VIEW is read-only.");
14175 return 1;
14176 }
14177
14178
14179 static PyObject *_wrap_ART_REPORT_VIEW_get() {
14180 PyObject *pyobj;
14181
14182 {
14183 #if wxUSE_UNICODE
14184 pyobj = PyUnicode_FromWideChar((&wxPyART_REPORT_VIEW)->c_str(), (&wxPyART_REPORT_VIEW)->Len());
14185 #else
14186 pyobj = PyString_FromStringAndSize((&wxPyART_REPORT_VIEW)->c_str(), (&wxPyART_REPORT_VIEW)->Len());
14187 #endif
14188 }
14189 return pyobj;
14190 }
14191
14192
14193 static int _wrap_ART_LIST_VIEW_set(PyObject *_val) {
14194 PyErr_SetString(PyExc_TypeError,"Variable ART_LIST_VIEW is read-only.");
14195 return 1;
14196 }
14197
14198
14199 static PyObject *_wrap_ART_LIST_VIEW_get() {
14200 PyObject *pyobj;
14201
14202 {
14203 #if wxUSE_UNICODE
14204 pyobj = PyUnicode_FromWideChar((&wxPyART_LIST_VIEW)->c_str(), (&wxPyART_LIST_VIEW)->Len());
14205 #else
14206 pyobj = PyString_FromStringAndSize((&wxPyART_LIST_VIEW)->c_str(), (&wxPyART_LIST_VIEW)->Len());
14207 #endif
14208 }
14209 return pyobj;
14210 }
14211
14212
14213 static int _wrap_ART_NEW_DIR_set(PyObject *_val) {
14214 PyErr_SetString(PyExc_TypeError,"Variable ART_NEW_DIR is read-only.");
14215 return 1;
14216 }
14217
14218
14219 static PyObject *_wrap_ART_NEW_DIR_get() {
14220 PyObject *pyobj;
14221
14222 {
14223 #if wxUSE_UNICODE
14224 pyobj = PyUnicode_FromWideChar((&wxPyART_NEW_DIR)->c_str(), (&wxPyART_NEW_DIR)->Len());
14225 #else
14226 pyobj = PyString_FromStringAndSize((&wxPyART_NEW_DIR)->c_str(), (&wxPyART_NEW_DIR)->Len());
14227 #endif
14228 }
14229 return pyobj;
14230 }
14231
14232
14233 static int _wrap_ART_FOLDER_set(PyObject *_val) {
14234 PyErr_SetString(PyExc_TypeError,"Variable ART_FOLDER is read-only.");
14235 return 1;
14236 }
14237
14238
14239 static PyObject *_wrap_ART_FOLDER_get() {
14240 PyObject *pyobj;
14241
14242 {
14243 #if wxUSE_UNICODE
14244 pyobj = PyUnicode_FromWideChar((&wxPyART_FOLDER)->c_str(), (&wxPyART_FOLDER)->Len());
14245 #else
14246 pyobj = PyString_FromStringAndSize((&wxPyART_FOLDER)->c_str(), (&wxPyART_FOLDER)->Len());
14247 #endif
14248 }
14249 return pyobj;
14250 }
14251
14252
14253 static int _wrap_ART_GO_DIR_UP_set(PyObject *_val) {
14254 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_DIR_UP is read-only.");
14255 return 1;
14256 }
14257
14258
14259 static PyObject *_wrap_ART_GO_DIR_UP_get() {
14260 PyObject *pyobj;
14261
14262 {
14263 #if wxUSE_UNICODE
14264 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_DIR_UP)->c_str(), (&wxPyART_GO_DIR_UP)->Len());
14265 #else
14266 pyobj = PyString_FromStringAndSize((&wxPyART_GO_DIR_UP)->c_str(), (&wxPyART_GO_DIR_UP)->Len());
14267 #endif
14268 }
14269 return pyobj;
14270 }
14271
14272
14273 static int _wrap_ART_EXECUTABLE_FILE_set(PyObject *_val) {
14274 PyErr_SetString(PyExc_TypeError,"Variable ART_EXECUTABLE_FILE is read-only.");
14275 return 1;
14276 }
14277
14278
14279 static PyObject *_wrap_ART_EXECUTABLE_FILE_get() {
14280 PyObject *pyobj;
14281
14282 {
14283 #if wxUSE_UNICODE
14284 pyobj = PyUnicode_FromWideChar((&wxPyART_EXECUTABLE_FILE)->c_str(), (&wxPyART_EXECUTABLE_FILE)->Len());
14285 #else
14286 pyobj = PyString_FromStringAndSize((&wxPyART_EXECUTABLE_FILE)->c_str(), (&wxPyART_EXECUTABLE_FILE)->Len());
14287 #endif
14288 }
14289 return pyobj;
14290 }
14291
14292
14293 static int _wrap_ART_NORMAL_FILE_set(PyObject *_val) {
14294 PyErr_SetString(PyExc_TypeError,"Variable ART_NORMAL_FILE is read-only.");
14295 return 1;
14296 }
14297
14298
14299 static PyObject *_wrap_ART_NORMAL_FILE_get() {
14300 PyObject *pyobj;
14301
14302 {
14303 #if wxUSE_UNICODE
14304 pyobj = PyUnicode_FromWideChar((&wxPyART_NORMAL_FILE)->c_str(), (&wxPyART_NORMAL_FILE)->Len());
14305 #else
14306 pyobj = PyString_FromStringAndSize((&wxPyART_NORMAL_FILE)->c_str(), (&wxPyART_NORMAL_FILE)->Len());
14307 #endif
14308 }
14309 return pyobj;
14310 }
14311
14312
14313 static int _wrap_ART_TICK_MARK_set(PyObject *_val) {
14314 PyErr_SetString(PyExc_TypeError,"Variable ART_TICK_MARK is read-only.");
14315 return 1;
14316 }
14317
14318
14319 static PyObject *_wrap_ART_TICK_MARK_get() {
14320 PyObject *pyobj;
14321
14322 {
14323 #if wxUSE_UNICODE
14324 pyobj = PyUnicode_FromWideChar((&wxPyART_TICK_MARK)->c_str(), (&wxPyART_TICK_MARK)->Len());
14325 #else
14326 pyobj = PyString_FromStringAndSize((&wxPyART_TICK_MARK)->c_str(), (&wxPyART_TICK_MARK)->Len());
14327 #endif
14328 }
14329 return pyobj;
14330 }
14331
14332
14333 static int _wrap_ART_CROSS_MARK_set(PyObject *_val) {
14334 PyErr_SetString(PyExc_TypeError,"Variable ART_CROSS_MARK is read-only.");
14335 return 1;
14336 }
14337
14338
14339 static PyObject *_wrap_ART_CROSS_MARK_get() {
14340 PyObject *pyobj;
14341
14342 {
14343 #if wxUSE_UNICODE
14344 pyobj = PyUnicode_FromWideChar((&wxPyART_CROSS_MARK)->c_str(), (&wxPyART_CROSS_MARK)->Len());
14345 #else
14346 pyobj = PyString_FromStringAndSize((&wxPyART_CROSS_MARK)->c_str(), (&wxPyART_CROSS_MARK)->Len());
14347 #endif
14348 }
14349 return pyobj;
14350 }
14351
14352
14353 static int _wrap_ART_ERROR_set(PyObject *_val) {
14354 PyErr_SetString(PyExc_TypeError,"Variable ART_ERROR is read-only.");
14355 return 1;
14356 }
14357
14358
14359 static PyObject *_wrap_ART_ERROR_get() {
14360 PyObject *pyobj;
14361
14362 {
14363 #if wxUSE_UNICODE
14364 pyobj = PyUnicode_FromWideChar((&wxPyART_ERROR)->c_str(), (&wxPyART_ERROR)->Len());
14365 #else
14366 pyobj = PyString_FromStringAndSize((&wxPyART_ERROR)->c_str(), (&wxPyART_ERROR)->Len());
14367 #endif
14368 }
14369 return pyobj;
14370 }
14371
14372
14373 static int _wrap_ART_QUESTION_set(PyObject *_val) {
14374 PyErr_SetString(PyExc_TypeError,"Variable ART_QUESTION is read-only.");
14375 return 1;
14376 }
14377
14378
14379 static PyObject *_wrap_ART_QUESTION_get() {
14380 PyObject *pyobj;
14381
14382 {
14383 #if wxUSE_UNICODE
14384 pyobj = PyUnicode_FromWideChar((&wxPyART_QUESTION)->c_str(), (&wxPyART_QUESTION)->Len());
14385 #else
14386 pyobj = PyString_FromStringAndSize((&wxPyART_QUESTION)->c_str(), (&wxPyART_QUESTION)->Len());
14387 #endif
14388 }
14389 return pyobj;
14390 }
14391
14392
14393 static int _wrap_ART_WARNING_set(PyObject *_val) {
14394 PyErr_SetString(PyExc_TypeError,"Variable ART_WARNING is read-only.");
14395 return 1;
14396 }
14397
14398
14399 static PyObject *_wrap_ART_WARNING_get() {
14400 PyObject *pyobj;
14401
14402 {
14403 #if wxUSE_UNICODE
14404 pyobj = PyUnicode_FromWideChar((&wxPyART_WARNING)->c_str(), (&wxPyART_WARNING)->Len());
14405 #else
14406 pyobj = PyString_FromStringAndSize((&wxPyART_WARNING)->c_str(), (&wxPyART_WARNING)->Len());
14407 #endif
14408 }
14409 return pyobj;
14410 }
14411
14412
14413 static int _wrap_ART_INFORMATION_set(PyObject *_val) {
14414 PyErr_SetString(PyExc_TypeError,"Variable ART_INFORMATION is read-only.");
14415 return 1;
14416 }
14417
14418
14419 static PyObject *_wrap_ART_INFORMATION_get() {
14420 PyObject *pyobj;
14421
14422 {
14423 #if wxUSE_UNICODE
14424 pyobj = PyUnicode_FromWideChar((&wxPyART_INFORMATION)->c_str(), (&wxPyART_INFORMATION)->Len());
14425 #else
14426 pyobj = PyString_FromStringAndSize((&wxPyART_INFORMATION)->c_str(), (&wxPyART_INFORMATION)->Len());
14427 #endif
14428 }
14429 return pyobj;
14430 }
14431
14432
14433 static int _wrap_ART_MISSING_IMAGE_set(PyObject *_val) {
14434 PyErr_SetString(PyExc_TypeError,"Variable ART_MISSING_IMAGE is read-only.");
14435 return 1;
14436 }
14437
14438
14439 static PyObject *_wrap_ART_MISSING_IMAGE_get() {
14440 PyObject *pyobj;
14441
14442 {
14443 #if wxUSE_UNICODE
14444 pyobj = PyUnicode_FromWideChar((&wxPyART_MISSING_IMAGE)->c_str(), (&wxPyART_MISSING_IMAGE)->Len());
14445 #else
14446 pyobj = PyString_FromStringAndSize((&wxPyART_MISSING_IMAGE)->c_str(), (&wxPyART_MISSING_IMAGE)->Len());
14447 #endif
14448 }
14449 return pyobj;
14450 }
14451
14452
14453 static PyObject *_wrap_new_ArtProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
14454 PyObject *resultobj;
14455 wxPyArtProvider *result;
14456 char *kwnames[] = {
14457 NULL
14458 };
14459
14460 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ArtProvider",kwnames)) goto fail;
14461 {
14462 if (!wxPyCheckForApp()) SWIG_fail;
14463 PyThreadState* __tstate = wxPyBeginAllowThreads();
14464 result = (wxPyArtProvider *)new wxPyArtProvider();
14465
14466 wxPyEndAllowThreads(__tstate);
14467 if (PyErr_Occurred()) SWIG_fail;
14468 }
14469 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyArtProvider, 1);
14470 return resultobj;
14471 fail:
14472 return NULL;
14473 }
14474
14475
14476 static PyObject *_wrap_ArtProvider__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
14477 PyObject *resultobj;
14478 wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ;
14479 PyObject *arg2 = (PyObject *) 0 ;
14480 PyObject *arg3 = (PyObject *) 0 ;
14481 PyObject * obj0 = 0 ;
14482 PyObject * obj1 = 0 ;
14483 PyObject * obj2 = 0 ;
14484 char *kwnames[] = {
14485 (char *) "self",(char *) "self",(char *) "_class", NULL
14486 };
14487
14488 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ArtProvider__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
14489 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider,
14490 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14491 arg2 = obj1;
14492 arg3 = obj2;
14493 {
14494 PyThreadState* __tstate = wxPyBeginAllowThreads();
14495 (arg1)->_setCallbackInfo(arg2,arg3);
14496
14497 wxPyEndAllowThreads(__tstate);
14498 if (PyErr_Occurred()) SWIG_fail;
14499 }
14500 Py_INCREF(Py_None); resultobj = Py_None;
14501 return resultobj;
14502 fail:
14503 return NULL;
14504 }
14505
14506
14507 static PyObject *_wrap_ArtProvider_PushProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
14508 PyObject *resultobj;
14509 wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ;
14510 PyObject * obj0 = 0 ;
14511 char *kwnames[] = {
14512 (char *) "provider", NULL
14513 };
14514
14515 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_PushProvider",kwnames,&obj0)) goto fail;
14516 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider,
14517 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14518 {
14519 PyThreadState* __tstate = wxPyBeginAllowThreads();
14520 wxPyArtProvider::PushProvider(arg1);
14521
14522 wxPyEndAllowThreads(__tstate);
14523 if (PyErr_Occurred()) SWIG_fail;
14524 }
14525 Py_INCREF(Py_None); resultobj = Py_None;
14526 return resultobj;
14527 fail:
14528 return NULL;
14529 }
14530
14531
14532 static PyObject *_wrap_ArtProvider_PopProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
14533 PyObject *resultobj;
14534 bool result;
14535 char *kwnames[] = {
14536 NULL
14537 };
14538
14539 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ArtProvider_PopProvider",kwnames)) goto fail;
14540 {
14541 PyThreadState* __tstate = wxPyBeginAllowThreads();
14542 result = (bool)wxPyArtProvider::PopProvider();
14543
14544 wxPyEndAllowThreads(__tstate);
14545 if (PyErr_Occurred()) SWIG_fail;
14546 }
14547 {
14548 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14549 }
14550 return resultobj;
14551 fail:
14552 return NULL;
14553 }
14554
14555
14556 static PyObject *_wrap_ArtProvider_RemoveProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
14557 PyObject *resultobj;
14558 wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ;
14559 bool result;
14560 PyObject * obj0 = 0 ;
14561 char *kwnames[] = {
14562 (char *) "provider", NULL
14563 };
14564
14565 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_RemoveProvider",kwnames,&obj0)) goto fail;
14566 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider,
14567 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14568 {
14569 PyThreadState* __tstate = wxPyBeginAllowThreads();
14570 result = (bool)wxPyArtProvider::RemoveProvider(arg1);
14571
14572 wxPyEndAllowThreads(__tstate);
14573 if (PyErr_Occurred()) SWIG_fail;
14574 }
14575 {
14576 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14577 }
14578 return resultobj;
14579 fail:
14580 return NULL;
14581 }
14582
14583
14584 static PyObject *_wrap_ArtProvider_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
14585 PyObject *resultobj;
14586 wxString *arg1 = 0 ;
14587 wxString const &arg2_defvalue = wxPyART_OTHER ;
14588 wxString *arg2 = (wxString *) &arg2_defvalue ;
14589 wxSize const &arg3_defvalue = wxDefaultSize ;
14590 wxSize *arg3 = (wxSize *) &arg3_defvalue ;
14591 wxBitmap result;
14592 bool temp1 = False ;
14593 bool temp2 = False ;
14594 wxSize temp3 ;
14595 PyObject * obj0 = 0 ;
14596 PyObject * obj1 = 0 ;
14597 PyObject * obj2 = 0 ;
14598 char *kwnames[] = {
14599 (char *) "id",(char *) "client",(char *) "size", NULL
14600 };
14601
14602 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:ArtProvider_GetBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail;
14603 {
14604 arg1 = wxString_in_helper(obj0);
14605 if (arg1 == NULL) SWIG_fail;
14606 temp1 = True;
14607 }
14608 if (obj1) {
14609 {
14610 arg2 = wxString_in_helper(obj1);
14611 if (arg2 == NULL) SWIG_fail;
14612 temp2 = True;
14613 }
14614 }
14615 if (obj2) {
14616 {
14617 arg3 = &temp3;
14618 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
14619 }
14620 }
14621 {
14622 if (!wxPyCheckForApp()) SWIG_fail;
14623 PyThreadState* __tstate = wxPyBeginAllowThreads();
14624 result = wxPyArtProvider::GetBitmap((wxString const &)*arg1,(wxString const &)*arg2,(wxSize const &)*arg3);
14625
14626 wxPyEndAllowThreads(__tstate);
14627 if (PyErr_Occurred()) SWIG_fail;
14628 }
14629 {
14630 wxBitmap * resultptr;
14631 resultptr = new wxBitmap((wxBitmap &) result);
14632 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
14633 }
14634 {
14635 if (temp1)
14636 delete arg1;
14637 }
14638 {
14639 if (temp2)
14640 delete arg2;
14641 }
14642 return resultobj;
14643 fail:
14644 {
14645 if (temp1)
14646 delete arg1;
14647 }
14648 {
14649 if (temp2)
14650 delete arg2;
14651 }
14652 return NULL;
14653 }
14654
14655
14656 static PyObject *_wrap_ArtProvider_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
14657 PyObject *resultobj;
14658 wxString *arg1 = 0 ;
14659 wxString const &arg2_defvalue = wxPyART_OTHER ;
14660 wxString *arg2 = (wxString *) &arg2_defvalue ;
14661 wxSize const &arg3_defvalue = wxDefaultSize ;
14662 wxSize *arg3 = (wxSize *) &arg3_defvalue ;
14663 wxIcon result;
14664 bool temp1 = False ;
14665 bool temp2 = False ;
14666 wxSize temp3 ;
14667 PyObject * obj0 = 0 ;
14668 PyObject * obj1 = 0 ;
14669 PyObject * obj2 = 0 ;
14670 char *kwnames[] = {
14671 (char *) "id",(char *) "client",(char *) "size", NULL
14672 };
14673
14674 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:ArtProvider_GetIcon",kwnames,&obj0,&obj1,&obj2)) goto fail;
14675 {
14676 arg1 = wxString_in_helper(obj0);
14677 if (arg1 == NULL) SWIG_fail;
14678 temp1 = True;
14679 }
14680 if (obj1) {
14681 {
14682 arg2 = wxString_in_helper(obj1);
14683 if (arg2 == NULL) SWIG_fail;
14684 temp2 = True;
14685 }
14686 }
14687 if (obj2) {
14688 {
14689 arg3 = &temp3;
14690 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
14691 }
14692 }
14693 {
14694 if (!wxPyCheckForApp()) SWIG_fail;
14695 PyThreadState* __tstate = wxPyBeginAllowThreads();
14696 result = wxPyArtProvider::GetIcon((wxString const &)*arg1,(wxString const &)*arg2,(wxSize const &)*arg3);
14697
14698 wxPyEndAllowThreads(__tstate);
14699 if (PyErr_Occurred()) SWIG_fail;
14700 }
14701 {
14702 wxIcon * resultptr;
14703 resultptr = new wxIcon((wxIcon &) result);
14704 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxIcon, 1);
14705 }
14706 {
14707 if (temp1)
14708 delete arg1;
14709 }
14710 {
14711 if (temp2)
14712 delete arg2;
14713 }
14714 return resultobj;
14715 fail:
14716 {
14717 if (temp1)
14718 delete arg1;
14719 }
14720 {
14721 if (temp2)
14722 delete arg2;
14723 }
14724 return NULL;
14725 }
14726
14727
14728 static PyObject *_wrap_ArtProvider_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
14729 PyObject *resultobj;
14730 wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ;
14731 PyObject * obj0 = 0 ;
14732 char *kwnames[] = {
14733 (char *) "self", NULL
14734 };
14735
14736 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_Destroy",kwnames,&obj0)) goto fail;
14737 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider,
14738 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14739 {
14740 PyThreadState* __tstate = wxPyBeginAllowThreads();
14741 wxPyArtProvider_Destroy(arg1);
14742
14743 wxPyEndAllowThreads(__tstate);
14744 if (PyErr_Occurred()) SWIG_fail;
14745 }
14746 Py_INCREF(Py_None); resultobj = Py_None;
14747 return resultobj;
14748 fail:
14749 return NULL;
14750 }
14751
14752
14753 static PyObject * ArtProvider_swigregister(PyObject *self, PyObject *args) {
14754 PyObject *obj;
14755 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14756 SWIG_TypeClientData(SWIGTYPE_p_wxPyArtProvider, obj);
14757 Py_INCREF(obj);
14758 return Py_BuildValue((char *)"");
14759 }
14760 static PyObject *_wrap_delete_ConfigBase(PyObject *self, PyObject *args, PyObject *kwargs) {
14761 PyObject *resultobj;
14762 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14763 PyObject * obj0 = 0 ;
14764 char *kwnames[] = {
14765 (char *) "self", NULL
14766 };
14767
14768 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ConfigBase",kwnames,&obj0)) goto fail;
14769 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14770 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14771 {
14772 PyThreadState* __tstate = wxPyBeginAllowThreads();
14773 delete arg1;
14774
14775 wxPyEndAllowThreads(__tstate);
14776 if (PyErr_Occurred()) SWIG_fail;
14777 }
14778 Py_INCREF(Py_None); resultobj = Py_None;
14779 return resultobj;
14780 fail:
14781 return NULL;
14782 }
14783
14784
14785 static PyObject *_wrap_ConfigBase_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
14786 PyObject *resultobj;
14787 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14788 wxConfigBase *result;
14789 PyObject * obj0 = 0 ;
14790 char *kwnames[] = {
14791 (char *) "config", NULL
14792 };
14793
14794 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_Set",kwnames,&obj0)) goto fail;
14795 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14796 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14797 {
14798 PyThreadState* __tstate = wxPyBeginAllowThreads();
14799 result = (wxConfigBase *)wxConfigBase::Set(arg1);
14800
14801 wxPyEndAllowThreads(__tstate);
14802 if (PyErr_Occurred()) SWIG_fail;
14803 }
14804 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigBase, 0);
14805 return resultobj;
14806 fail:
14807 return NULL;
14808 }
14809
14810
14811 static PyObject *_wrap_ConfigBase_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
14812 PyObject *resultobj;
14813 bool arg1 = (bool) True ;
14814 wxConfigBase *result;
14815 PyObject * obj0 = 0 ;
14816 char *kwnames[] = {
14817 (char *) "createOnDemand", NULL
14818 };
14819
14820 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ConfigBase_Get",kwnames,&obj0)) goto fail;
14821 if (obj0) {
14822 arg1 = (bool) SWIG_AsBool(obj0);
14823 if (PyErr_Occurred()) SWIG_fail;
14824 }
14825 {
14826 PyThreadState* __tstate = wxPyBeginAllowThreads();
14827 result = (wxConfigBase *)wxConfigBase::Get(arg1);
14828
14829 wxPyEndAllowThreads(__tstate);
14830 if (PyErr_Occurred()) SWIG_fail;
14831 }
14832 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigBase, 0);
14833 return resultobj;
14834 fail:
14835 return NULL;
14836 }
14837
14838
14839 static PyObject *_wrap_ConfigBase_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
14840 PyObject *resultobj;
14841 wxConfigBase *result;
14842 char *kwnames[] = {
14843 NULL
14844 };
14845
14846 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ConfigBase_Create",kwnames)) goto fail;
14847 {
14848 PyThreadState* __tstate = wxPyBeginAllowThreads();
14849 result = (wxConfigBase *)wxConfigBase::Create();
14850
14851 wxPyEndAllowThreads(__tstate);
14852 if (PyErr_Occurred()) SWIG_fail;
14853 }
14854 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigBase, 0);
14855 return resultobj;
14856 fail:
14857 return NULL;
14858 }
14859
14860
14861 static PyObject *_wrap_ConfigBase_DontCreateOnDemand(PyObject *self, PyObject *args, PyObject *kwargs) {
14862 PyObject *resultobj;
14863 char *kwnames[] = {
14864 NULL
14865 };
14866
14867 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ConfigBase_DontCreateOnDemand",kwnames)) goto fail;
14868 {
14869 PyThreadState* __tstate = wxPyBeginAllowThreads();
14870 wxConfigBase::DontCreateOnDemand();
14871
14872 wxPyEndAllowThreads(__tstate);
14873 if (PyErr_Occurred()) SWIG_fail;
14874 }
14875 Py_INCREF(Py_None); resultobj = Py_None;
14876 return resultobj;
14877 fail:
14878 return NULL;
14879 }
14880
14881
14882 static PyObject *_wrap_ConfigBase_SetPath(PyObject *self, PyObject *args, PyObject *kwargs) {
14883 PyObject *resultobj;
14884 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14885 wxString *arg2 = 0 ;
14886 bool temp2 = False ;
14887 PyObject * obj0 = 0 ;
14888 PyObject * obj1 = 0 ;
14889 char *kwnames[] = {
14890 (char *) "self",(char *) "path", NULL
14891 };
14892
14893 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetPath",kwnames,&obj0,&obj1)) goto fail;
14894 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14895 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14896 {
14897 arg2 = wxString_in_helper(obj1);
14898 if (arg2 == NULL) SWIG_fail;
14899 temp2 = True;
14900 }
14901 {
14902 PyThreadState* __tstate = wxPyBeginAllowThreads();
14903 (arg1)->SetPath((wxString const &)*arg2);
14904
14905 wxPyEndAllowThreads(__tstate);
14906 if (PyErr_Occurred()) SWIG_fail;
14907 }
14908 Py_INCREF(Py_None); resultobj = Py_None;
14909 {
14910 if (temp2)
14911 delete arg2;
14912 }
14913 return resultobj;
14914 fail:
14915 {
14916 if (temp2)
14917 delete arg2;
14918 }
14919 return NULL;
14920 }
14921
14922
14923 static PyObject *_wrap_ConfigBase_GetPath(PyObject *self, PyObject *args, PyObject *kwargs) {
14924 PyObject *resultobj;
14925 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14926 wxString *result;
14927 PyObject * obj0 = 0 ;
14928 char *kwnames[] = {
14929 (char *) "self", NULL
14930 };
14931
14932 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetPath",kwnames,&obj0)) goto fail;
14933 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14934 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14935 {
14936 PyThreadState* __tstate = wxPyBeginAllowThreads();
14937 {
14938 wxString const &_result_ref = ((wxConfigBase const *)arg1)->GetPath();
14939 result = (wxString *) &_result_ref;
14940 }
14941
14942 wxPyEndAllowThreads(__tstate);
14943 if (PyErr_Occurred()) SWIG_fail;
14944 }
14945 {
14946 #if wxUSE_UNICODE
14947 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
14948 #else
14949 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
14950 #endif
14951 }
14952 return resultobj;
14953 fail:
14954 return NULL;
14955 }
14956
14957
14958 static PyObject *_wrap_ConfigBase_GetFirstGroup(PyObject *self, PyObject *args, PyObject *kwargs) {
14959 PyObject *resultobj;
14960 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14961 PyObject *result;
14962 PyObject * obj0 = 0 ;
14963 char *kwnames[] = {
14964 (char *) "self", NULL
14965 };
14966
14967 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetFirstGroup",kwnames,&obj0)) goto fail;
14968 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14969 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14970 {
14971 PyThreadState* __tstate = wxPyBeginAllowThreads();
14972 result = (PyObject *)wxConfigBase_GetFirstGroup(arg1);
14973
14974 wxPyEndAllowThreads(__tstate);
14975 if (PyErr_Occurred()) SWIG_fail;
14976 }
14977 resultobj = result;
14978 return resultobj;
14979 fail:
14980 return NULL;
14981 }
14982
14983
14984 static PyObject *_wrap_ConfigBase_GetNextGroup(PyObject *self, PyObject *args, PyObject *kwargs) {
14985 PyObject *resultobj;
14986 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14987 long arg2 ;
14988 PyObject *result;
14989 PyObject * obj0 = 0 ;
14990 PyObject * obj1 = 0 ;
14991 char *kwnames[] = {
14992 (char *) "self",(char *) "index", NULL
14993 };
14994
14995 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetNextGroup",kwnames,&obj0,&obj1)) goto fail;
14996 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14997 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14998 arg2 = (long) SWIG_AsLong(obj1);
14999 if (PyErr_Occurred()) SWIG_fail;
15000 {
15001 PyThreadState* __tstate = wxPyBeginAllowThreads();
15002 result = (PyObject *)wxConfigBase_GetNextGroup(arg1,arg2);
15003
15004 wxPyEndAllowThreads(__tstate);
15005 if (PyErr_Occurred()) SWIG_fail;
15006 }
15007 resultobj = result;
15008 return resultobj;
15009 fail:
15010 return NULL;
15011 }
15012
15013
15014 static PyObject *_wrap_ConfigBase_GetFirstEntry(PyObject *self, PyObject *args, PyObject *kwargs) {
15015 PyObject *resultobj;
15016 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15017 PyObject *result;
15018 PyObject * obj0 = 0 ;
15019 char *kwnames[] = {
15020 (char *) "self", NULL
15021 };
15022
15023 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetFirstEntry",kwnames,&obj0)) goto fail;
15024 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15025 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15026 {
15027 PyThreadState* __tstate = wxPyBeginAllowThreads();
15028 result = (PyObject *)wxConfigBase_GetFirstEntry(arg1);
15029
15030 wxPyEndAllowThreads(__tstate);
15031 if (PyErr_Occurred()) SWIG_fail;
15032 }
15033 resultobj = result;
15034 return resultobj;
15035 fail:
15036 return NULL;
15037 }
15038
15039
15040 static PyObject *_wrap_ConfigBase_GetNextEntry(PyObject *self, PyObject *args, PyObject *kwargs) {
15041 PyObject *resultobj;
15042 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15043 long arg2 ;
15044 PyObject *result;
15045 PyObject * obj0 = 0 ;
15046 PyObject * obj1 = 0 ;
15047 char *kwnames[] = {
15048 (char *) "self",(char *) "index", NULL
15049 };
15050
15051 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetNextEntry",kwnames,&obj0,&obj1)) goto fail;
15052 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15053 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15054 arg2 = (long) SWIG_AsLong(obj1);
15055 if (PyErr_Occurred()) SWIG_fail;
15056 {
15057 PyThreadState* __tstate = wxPyBeginAllowThreads();
15058 result = (PyObject *)wxConfigBase_GetNextEntry(arg1,arg2);
15059
15060 wxPyEndAllowThreads(__tstate);
15061 if (PyErr_Occurred()) SWIG_fail;
15062 }
15063 resultobj = result;
15064 return resultobj;
15065 fail:
15066 return NULL;
15067 }
15068
15069
15070 static PyObject *_wrap_ConfigBase_GetNumberOfEntries(PyObject *self, PyObject *args, PyObject *kwargs) {
15071 PyObject *resultobj;
15072 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15073 bool arg2 = (bool) False ;
15074 size_t result;
15075 PyObject * obj0 = 0 ;
15076 PyObject * obj1 = 0 ;
15077 char *kwnames[] = {
15078 (char *) "self",(char *) "recursive", NULL
15079 };
15080
15081 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_GetNumberOfEntries",kwnames,&obj0,&obj1)) goto fail;
15082 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15083 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15084 if (obj1) {
15085 arg2 = (bool) SWIG_AsBool(obj1);
15086 if (PyErr_Occurred()) SWIG_fail;
15087 }
15088 {
15089 PyThreadState* __tstate = wxPyBeginAllowThreads();
15090 result = (size_t)((wxConfigBase const *)arg1)->GetNumberOfEntries(arg2);
15091
15092 wxPyEndAllowThreads(__tstate);
15093 if (PyErr_Occurred()) SWIG_fail;
15094 }
15095 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
15096 return resultobj;
15097 fail:
15098 return NULL;
15099 }
15100
15101
15102 static PyObject *_wrap_ConfigBase_GetNumberOfGroups(PyObject *self, PyObject *args, PyObject *kwargs) {
15103 PyObject *resultobj;
15104 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15105 bool arg2 = (bool) False ;
15106 size_t result;
15107 PyObject * obj0 = 0 ;
15108 PyObject * obj1 = 0 ;
15109 char *kwnames[] = {
15110 (char *) "self",(char *) "recursive", NULL
15111 };
15112
15113 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_GetNumberOfGroups",kwnames,&obj0,&obj1)) goto fail;
15114 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15115 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15116 if (obj1) {
15117 arg2 = (bool) SWIG_AsBool(obj1);
15118 if (PyErr_Occurred()) SWIG_fail;
15119 }
15120 {
15121 PyThreadState* __tstate = wxPyBeginAllowThreads();
15122 result = (size_t)((wxConfigBase const *)arg1)->GetNumberOfGroups(arg2);
15123
15124 wxPyEndAllowThreads(__tstate);
15125 if (PyErr_Occurred()) SWIG_fail;
15126 }
15127 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
15128 return resultobj;
15129 fail:
15130 return NULL;
15131 }
15132
15133
15134 static PyObject *_wrap_ConfigBase_HasGroup(PyObject *self, PyObject *args, PyObject *kwargs) {
15135 PyObject *resultobj;
15136 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15137 wxString *arg2 = 0 ;
15138 bool result;
15139 bool temp2 = False ;
15140 PyObject * obj0 = 0 ;
15141 PyObject * obj1 = 0 ;
15142 char *kwnames[] = {
15143 (char *) "self",(char *) "name", NULL
15144 };
15145
15146 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_HasGroup",kwnames,&obj0,&obj1)) goto fail;
15147 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15148 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15149 {
15150 arg2 = wxString_in_helper(obj1);
15151 if (arg2 == NULL) SWIG_fail;
15152 temp2 = True;
15153 }
15154 {
15155 PyThreadState* __tstate = wxPyBeginAllowThreads();
15156 result = (bool)((wxConfigBase const *)arg1)->HasGroup((wxString const &)*arg2);
15157
15158 wxPyEndAllowThreads(__tstate);
15159 if (PyErr_Occurred()) SWIG_fail;
15160 }
15161 {
15162 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15163 }
15164 {
15165 if (temp2)
15166 delete arg2;
15167 }
15168 return resultobj;
15169 fail:
15170 {
15171 if (temp2)
15172 delete arg2;
15173 }
15174 return NULL;
15175 }
15176
15177
15178 static PyObject *_wrap_ConfigBase_HasEntry(PyObject *self, PyObject *args, PyObject *kwargs) {
15179 PyObject *resultobj;
15180 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15181 wxString *arg2 = 0 ;
15182 bool result;
15183 bool temp2 = False ;
15184 PyObject * obj0 = 0 ;
15185 PyObject * obj1 = 0 ;
15186 char *kwnames[] = {
15187 (char *) "self",(char *) "name", NULL
15188 };
15189
15190 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_HasEntry",kwnames,&obj0,&obj1)) goto fail;
15191 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15192 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15193 {
15194 arg2 = wxString_in_helper(obj1);
15195 if (arg2 == NULL) SWIG_fail;
15196 temp2 = True;
15197 }
15198 {
15199 PyThreadState* __tstate = wxPyBeginAllowThreads();
15200 result = (bool)((wxConfigBase const *)arg1)->HasEntry((wxString const &)*arg2);
15201
15202 wxPyEndAllowThreads(__tstate);
15203 if (PyErr_Occurred()) SWIG_fail;
15204 }
15205 {
15206 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15207 }
15208 {
15209 if (temp2)
15210 delete arg2;
15211 }
15212 return resultobj;
15213 fail:
15214 {
15215 if (temp2)
15216 delete arg2;
15217 }
15218 return NULL;
15219 }
15220
15221
15222 static PyObject *_wrap_ConfigBase_Exists(PyObject *self, PyObject *args, PyObject *kwargs) {
15223 PyObject *resultobj;
15224 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15225 wxString *arg2 = 0 ;
15226 bool result;
15227 bool temp2 = False ;
15228 PyObject * obj0 = 0 ;
15229 PyObject * obj1 = 0 ;
15230 char *kwnames[] = {
15231 (char *) "self",(char *) "name", NULL
15232 };
15233
15234 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_Exists",kwnames,&obj0,&obj1)) goto fail;
15235 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15236 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15237 {
15238 arg2 = wxString_in_helper(obj1);
15239 if (arg2 == NULL) SWIG_fail;
15240 temp2 = True;
15241 }
15242 {
15243 PyThreadState* __tstate = wxPyBeginAllowThreads();
15244 result = (bool)((wxConfigBase const *)arg1)->Exists((wxString const &)*arg2);
15245
15246 wxPyEndAllowThreads(__tstate);
15247 if (PyErr_Occurred()) SWIG_fail;
15248 }
15249 {
15250 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15251 }
15252 {
15253 if (temp2)
15254 delete arg2;
15255 }
15256 return resultobj;
15257 fail:
15258 {
15259 if (temp2)
15260 delete arg2;
15261 }
15262 return NULL;
15263 }
15264
15265
15266 static PyObject *_wrap_ConfigBase_GetEntryType(PyObject *self, PyObject *args, PyObject *kwargs) {
15267 PyObject *resultobj;
15268 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15269 wxString *arg2 = 0 ;
15270 int result;
15271 bool temp2 = False ;
15272 PyObject * obj0 = 0 ;
15273 PyObject * obj1 = 0 ;
15274 char *kwnames[] = {
15275 (char *) "self",(char *) "name", NULL
15276 };
15277
15278 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetEntryType",kwnames,&obj0,&obj1)) goto fail;
15279 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15280 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15281 {
15282 arg2 = wxString_in_helper(obj1);
15283 if (arg2 == NULL) SWIG_fail;
15284 temp2 = True;
15285 }
15286 {
15287 PyThreadState* __tstate = wxPyBeginAllowThreads();
15288 result = (int)((wxConfigBase const *)arg1)->GetEntryType((wxString const &)*arg2);
15289
15290 wxPyEndAllowThreads(__tstate);
15291 if (PyErr_Occurred()) SWIG_fail;
15292 }
15293 resultobj = SWIG_FromInt((int)result);
15294 {
15295 if (temp2)
15296 delete arg2;
15297 }
15298 return resultobj;
15299 fail:
15300 {
15301 if (temp2)
15302 delete arg2;
15303 }
15304 return NULL;
15305 }
15306
15307
15308 static PyObject *_wrap_ConfigBase_Read(PyObject *self, PyObject *args, PyObject *kwargs) {
15309 PyObject *resultobj;
15310 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15311 wxString *arg2 = 0 ;
15312 wxString const &arg3_defvalue = wxPyEmptyString ;
15313 wxString *arg3 = (wxString *) &arg3_defvalue ;
15314 wxString result;
15315 bool temp2 = False ;
15316 bool temp3 = False ;
15317 PyObject * obj0 = 0 ;
15318 PyObject * obj1 = 0 ;
15319 PyObject * obj2 = 0 ;
15320 char *kwnames[] = {
15321 (char *) "self",(char *) "key",(char *) "defaultVal", NULL
15322 };
15323
15324 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_Read",kwnames,&obj0,&obj1,&obj2)) goto fail;
15325 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15326 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15327 {
15328 arg2 = wxString_in_helper(obj1);
15329 if (arg2 == NULL) SWIG_fail;
15330 temp2 = True;
15331 }
15332 if (obj2) {
15333 {
15334 arg3 = wxString_in_helper(obj2);
15335 if (arg3 == NULL) SWIG_fail;
15336 temp3 = True;
15337 }
15338 }
15339 {
15340 PyThreadState* __tstate = wxPyBeginAllowThreads();
15341 result = (arg1)->Read((wxString const &)*arg2,(wxString const &)*arg3);
15342
15343 wxPyEndAllowThreads(__tstate);
15344 if (PyErr_Occurred()) SWIG_fail;
15345 }
15346 {
15347 #if wxUSE_UNICODE
15348 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15349 #else
15350 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15351 #endif
15352 }
15353 {
15354 if (temp2)
15355 delete arg2;
15356 }
15357 {
15358 if (temp3)
15359 delete arg3;
15360 }
15361 return resultobj;
15362 fail:
15363 {
15364 if (temp2)
15365 delete arg2;
15366 }
15367 {
15368 if (temp3)
15369 delete arg3;
15370 }
15371 return NULL;
15372 }
15373
15374
15375 static PyObject *_wrap_ConfigBase_ReadInt(PyObject *self, PyObject *args, PyObject *kwargs) {
15376 PyObject *resultobj;
15377 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15378 wxString *arg2 = 0 ;
15379 long arg3 = (long) 0 ;
15380 long result;
15381 bool temp2 = False ;
15382 PyObject * obj0 = 0 ;
15383 PyObject * obj1 = 0 ;
15384 PyObject * obj2 = 0 ;
15385 char *kwnames[] = {
15386 (char *) "self",(char *) "key",(char *) "defaultVal", NULL
15387 };
15388
15389 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadInt",kwnames,&obj0,&obj1,&obj2)) goto fail;
15390 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15391 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15392 {
15393 arg2 = wxString_in_helper(obj1);
15394 if (arg2 == NULL) SWIG_fail;
15395 temp2 = True;
15396 }
15397 if (obj2) {
15398 arg3 = (long) SWIG_AsLong(obj2);
15399 if (PyErr_Occurred()) SWIG_fail;
15400 }
15401 {
15402 PyThreadState* __tstate = wxPyBeginAllowThreads();
15403 result = (long)wxConfigBase_ReadInt(arg1,(wxString const &)*arg2,arg3);
15404
15405 wxPyEndAllowThreads(__tstate);
15406 if (PyErr_Occurred()) SWIG_fail;
15407 }
15408 resultobj = SWIG_FromLong((long)result);
15409 {
15410 if (temp2)
15411 delete arg2;
15412 }
15413 return resultobj;
15414 fail:
15415 {
15416 if (temp2)
15417 delete arg2;
15418 }
15419 return NULL;
15420 }
15421
15422
15423 static PyObject *_wrap_ConfigBase_ReadFloat(PyObject *self, PyObject *args, PyObject *kwargs) {
15424 PyObject *resultobj;
15425 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15426 wxString *arg2 = 0 ;
15427 double arg3 = (double) 0.0 ;
15428 double result;
15429 bool temp2 = False ;
15430 PyObject * obj0 = 0 ;
15431 PyObject * obj1 = 0 ;
15432 PyObject * obj2 = 0 ;
15433 char *kwnames[] = {
15434 (char *) "self",(char *) "key",(char *) "defaultVal", NULL
15435 };
15436
15437 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadFloat",kwnames,&obj0,&obj1,&obj2)) goto fail;
15438 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15439 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15440 {
15441 arg2 = wxString_in_helper(obj1);
15442 if (arg2 == NULL) SWIG_fail;
15443 temp2 = True;
15444 }
15445 if (obj2) {
15446 arg3 = (double) SWIG_AsDouble(obj2);
15447 if (PyErr_Occurred()) SWIG_fail;
15448 }
15449 {
15450 PyThreadState* __tstate = wxPyBeginAllowThreads();
15451 result = (double)wxConfigBase_ReadFloat(arg1,(wxString const &)*arg2,arg3);
15452
15453 wxPyEndAllowThreads(__tstate);
15454 if (PyErr_Occurred()) SWIG_fail;
15455 }
15456 resultobj = SWIG_FromDouble((double)result);
15457 {
15458 if (temp2)
15459 delete arg2;
15460 }
15461 return resultobj;
15462 fail:
15463 {
15464 if (temp2)
15465 delete arg2;
15466 }
15467 return NULL;
15468 }
15469
15470
15471 static PyObject *_wrap_ConfigBase_ReadBool(PyObject *self, PyObject *args, PyObject *kwargs) {
15472 PyObject *resultobj;
15473 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15474 wxString *arg2 = 0 ;
15475 bool arg3 = (bool) False ;
15476 bool result;
15477 bool temp2 = False ;
15478 PyObject * obj0 = 0 ;
15479 PyObject * obj1 = 0 ;
15480 PyObject * obj2 = 0 ;
15481 char *kwnames[] = {
15482 (char *) "self",(char *) "key",(char *) "defaultVal", NULL
15483 };
15484
15485 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadBool",kwnames,&obj0,&obj1,&obj2)) goto fail;
15486 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15487 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15488 {
15489 arg2 = wxString_in_helper(obj1);
15490 if (arg2 == NULL) SWIG_fail;
15491 temp2 = True;
15492 }
15493 if (obj2) {
15494 arg3 = (bool) SWIG_AsBool(obj2);
15495 if (PyErr_Occurred()) SWIG_fail;
15496 }
15497 {
15498 PyThreadState* __tstate = wxPyBeginAllowThreads();
15499 result = (bool)wxConfigBase_ReadBool(arg1,(wxString const &)*arg2,arg3);
15500
15501 wxPyEndAllowThreads(__tstate);
15502 if (PyErr_Occurred()) SWIG_fail;
15503 }
15504 {
15505 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15506 }
15507 {
15508 if (temp2)
15509 delete arg2;
15510 }
15511 return resultobj;
15512 fail:
15513 {
15514 if (temp2)
15515 delete arg2;
15516 }
15517 return NULL;
15518 }
15519
15520
15521 static PyObject *_wrap_ConfigBase_Write(PyObject *self, PyObject *args, PyObject *kwargs) {
15522 PyObject *resultobj;
15523 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15524 wxString *arg2 = 0 ;
15525 wxString *arg3 = 0 ;
15526 bool result;
15527 bool temp2 = False ;
15528 bool temp3 = False ;
15529 PyObject * obj0 = 0 ;
15530 PyObject * obj1 = 0 ;
15531 PyObject * obj2 = 0 ;
15532 char *kwnames[] = {
15533 (char *) "self",(char *) "key",(char *) "value", NULL
15534 };
15535
15536 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_Write",kwnames,&obj0,&obj1,&obj2)) goto fail;
15537 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15538 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15539 {
15540 arg2 = wxString_in_helper(obj1);
15541 if (arg2 == NULL) SWIG_fail;
15542 temp2 = True;
15543 }
15544 {
15545 arg3 = wxString_in_helper(obj2);
15546 if (arg3 == NULL) SWIG_fail;
15547 temp3 = True;
15548 }
15549 {
15550 PyThreadState* __tstate = wxPyBeginAllowThreads();
15551 result = (bool)(arg1)->Write((wxString const &)*arg2,(wxString const &)*arg3);
15552
15553 wxPyEndAllowThreads(__tstate);
15554 if (PyErr_Occurred()) SWIG_fail;
15555 }
15556 {
15557 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15558 }
15559 {
15560 if (temp2)
15561 delete arg2;
15562 }
15563 {
15564 if (temp3)
15565 delete arg3;
15566 }
15567 return resultobj;
15568 fail:
15569 {
15570 if (temp2)
15571 delete arg2;
15572 }
15573 {
15574 if (temp3)
15575 delete arg3;
15576 }
15577 return NULL;
15578 }
15579
15580
15581 static PyObject *_wrap_ConfigBase_WriteInt(PyObject *self, PyObject *args, PyObject *kwargs) {
15582 PyObject *resultobj;
15583 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15584 wxString *arg2 = 0 ;
15585 long arg3 ;
15586 bool result;
15587 bool temp2 = False ;
15588 PyObject * obj0 = 0 ;
15589 PyObject * obj1 = 0 ;
15590 PyObject * obj2 = 0 ;
15591 char *kwnames[] = {
15592 (char *) "self",(char *) "key",(char *) "value", NULL
15593 };
15594
15595 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteInt",kwnames,&obj0,&obj1,&obj2)) goto fail;
15596 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15597 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15598 {
15599 arg2 = wxString_in_helper(obj1);
15600 if (arg2 == NULL) SWIG_fail;
15601 temp2 = True;
15602 }
15603 arg3 = (long) SWIG_AsLong(obj2);
15604 if (PyErr_Occurred()) SWIG_fail;
15605 {
15606 PyThreadState* __tstate = wxPyBeginAllowThreads();
15607 result = (bool)(arg1)->Write((wxString const &)*arg2,arg3);
15608
15609 wxPyEndAllowThreads(__tstate);
15610 if (PyErr_Occurred()) SWIG_fail;
15611 }
15612 {
15613 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15614 }
15615 {
15616 if (temp2)
15617 delete arg2;
15618 }
15619 return resultobj;
15620 fail:
15621 {
15622 if (temp2)
15623 delete arg2;
15624 }
15625 return NULL;
15626 }
15627
15628
15629 static PyObject *_wrap_ConfigBase_WriteFloat(PyObject *self, PyObject *args, PyObject *kwargs) {
15630 PyObject *resultobj;
15631 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15632 wxString *arg2 = 0 ;
15633 double arg3 ;
15634 bool result;
15635 bool temp2 = False ;
15636 PyObject * obj0 = 0 ;
15637 PyObject * obj1 = 0 ;
15638 PyObject * obj2 = 0 ;
15639 char *kwnames[] = {
15640 (char *) "self",(char *) "key",(char *) "value", NULL
15641 };
15642
15643 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteFloat",kwnames,&obj0,&obj1,&obj2)) goto fail;
15644 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15645 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15646 {
15647 arg2 = wxString_in_helper(obj1);
15648 if (arg2 == NULL) SWIG_fail;
15649 temp2 = True;
15650 }
15651 arg3 = (double) SWIG_AsDouble(obj2);
15652 if (PyErr_Occurred()) SWIG_fail;
15653 {
15654 PyThreadState* __tstate = wxPyBeginAllowThreads();
15655 result = (bool)(arg1)->Write((wxString const &)*arg2,arg3);
15656
15657 wxPyEndAllowThreads(__tstate);
15658 if (PyErr_Occurred()) SWIG_fail;
15659 }
15660 {
15661 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15662 }
15663 {
15664 if (temp2)
15665 delete arg2;
15666 }
15667 return resultobj;
15668 fail:
15669 {
15670 if (temp2)
15671 delete arg2;
15672 }
15673 return NULL;
15674 }
15675
15676
15677 static PyObject *_wrap_ConfigBase_WriteBool(PyObject *self, PyObject *args, PyObject *kwargs) {
15678 PyObject *resultobj;
15679 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15680 wxString *arg2 = 0 ;
15681 bool arg3 ;
15682 bool result;
15683 bool temp2 = False ;
15684 PyObject * obj0 = 0 ;
15685 PyObject * obj1 = 0 ;
15686 PyObject * obj2 = 0 ;
15687 char *kwnames[] = {
15688 (char *) "self",(char *) "key",(char *) "value", NULL
15689 };
15690
15691 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteBool",kwnames,&obj0,&obj1,&obj2)) goto fail;
15692 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15693 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15694 {
15695 arg2 = wxString_in_helper(obj1);
15696 if (arg2 == NULL) SWIG_fail;
15697 temp2 = True;
15698 }
15699 arg3 = (bool) SWIG_AsBool(obj2);
15700 if (PyErr_Occurred()) SWIG_fail;
15701 {
15702 PyThreadState* __tstate = wxPyBeginAllowThreads();
15703 result = (bool)(arg1)->Write((wxString const &)*arg2,arg3);
15704
15705 wxPyEndAllowThreads(__tstate);
15706 if (PyErr_Occurred()) SWIG_fail;
15707 }
15708 {
15709 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15710 }
15711 {
15712 if (temp2)
15713 delete arg2;
15714 }
15715 return resultobj;
15716 fail:
15717 {
15718 if (temp2)
15719 delete arg2;
15720 }
15721 return NULL;
15722 }
15723
15724
15725 static PyObject *_wrap_ConfigBase_Flush(PyObject *self, PyObject *args, PyObject *kwargs) {
15726 PyObject *resultobj;
15727 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15728 bool arg2 = (bool) False ;
15729 bool result;
15730 PyObject * obj0 = 0 ;
15731 PyObject * obj1 = 0 ;
15732 char *kwnames[] = {
15733 (char *) "self",(char *) "currentOnly", NULL
15734 };
15735
15736 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_Flush",kwnames,&obj0,&obj1)) goto fail;
15737 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15738 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15739 if (obj1) {
15740 arg2 = (bool) SWIG_AsBool(obj1);
15741 if (PyErr_Occurred()) SWIG_fail;
15742 }
15743 {
15744 PyThreadState* __tstate = wxPyBeginAllowThreads();
15745 result = (bool)(arg1)->Flush(arg2);
15746
15747 wxPyEndAllowThreads(__tstate);
15748 if (PyErr_Occurred()) SWIG_fail;
15749 }
15750 {
15751 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15752 }
15753 return resultobj;
15754 fail:
15755 return NULL;
15756 }
15757
15758
15759 static PyObject *_wrap_ConfigBase_RenameEntry(PyObject *self, PyObject *args, PyObject *kwargs) {
15760 PyObject *resultobj;
15761 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15762 wxString *arg2 = 0 ;
15763 wxString *arg3 = 0 ;
15764 bool result;
15765 bool temp2 = False ;
15766 bool temp3 = False ;
15767 PyObject * obj0 = 0 ;
15768 PyObject * obj1 = 0 ;
15769 PyObject * obj2 = 0 ;
15770 char *kwnames[] = {
15771 (char *) "self",(char *) "oldName",(char *) "newName", NULL
15772 };
15773
15774 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_RenameEntry",kwnames,&obj0,&obj1,&obj2)) goto fail;
15775 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15776 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15777 {
15778 arg2 = wxString_in_helper(obj1);
15779 if (arg2 == NULL) SWIG_fail;
15780 temp2 = True;
15781 }
15782 {
15783 arg3 = wxString_in_helper(obj2);
15784 if (arg3 == NULL) SWIG_fail;
15785 temp3 = True;
15786 }
15787 {
15788 PyThreadState* __tstate = wxPyBeginAllowThreads();
15789 result = (bool)(arg1)->RenameEntry((wxString const &)*arg2,(wxString const &)*arg3);
15790
15791 wxPyEndAllowThreads(__tstate);
15792 if (PyErr_Occurred()) SWIG_fail;
15793 }
15794 {
15795 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15796 }
15797 {
15798 if (temp2)
15799 delete arg2;
15800 }
15801 {
15802 if (temp3)
15803 delete arg3;
15804 }
15805 return resultobj;
15806 fail:
15807 {
15808 if (temp2)
15809 delete arg2;
15810 }
15811 {
15812 if (temp3)
15813 delete arg3;
15814 }
15815 return NULL;
15816 }
15817
15818
15819 static PyObject *_wrap_ConfigBase_RenameGroup(PyObject *self, PyObject *args, PyObject *kwargs) {
15820 PyObject *resultobj;
15821 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15822 wxString *arg2 = 0 ;
15823 wxString *arg3 = 0 ;
15824 bool result;
15825 bool temp2 = False ;
15826 bool temp3 = False ;
15827 PyObject * obj0 = 0 ;
15828 PyObject * obj1 = 0 ;
15829 PyObject * obj2 = 0 ;
15830 char *kwnames[] = {
15831 (char *) "self",(char *) "oldName",(char *) "newName", NULL
15832 };
15833
15834 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_RenameGroup",kwnames,&obj0,&obj1,&obj2)) goto fail;
15835 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15836 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15837 {
15838 arg2 = wxString_in_helper(obj1);
15839 if (arg2 == NULL) SWIG_fail;
15840 temp2 = True;
15841 }
15842 {
15843 arg3 = wxString_in_helper(obj2);
15844 if (arg3 == NULL) SWIG_fail;
15845 temp3 = True;
15846 }
15847 {
15848 PyThreadState* __tstate = wxPyBeginAllowThreads();
15849 result = (bool)(arg1)->RenameGroup((wxString const &)*arg2,(wxString const &)*arg3);
15850
15851 wxPyEndAllowThreads(__tstate);
15852 if (PyErr_Occurred()) SWIG_fail;
15853 }
15854 {
15855 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15856 }
15857 {
15858 if (temp2)
15859 delete arg2;
15860 }
15861 {
15862 if (temp3)
15863 delete arg3;
15864 }
15865 return resultobj;
15866 fail:
15867 {
15868 if (temp2)
15869 delete arg2;
15870 }
15871 {
15872 if (temp3)
15873 delete arg3;
15874 }
15875 return NULL;
15876 }
15877
15878
15879 static PyObject *_wrap_ConfigBase_DeleteEntry(PyObject *self, PyObject *args, PyObject *kwargs) {
15880 PyObject *resultobj;
15881 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15882 wxString *arg2 = 0 ;
15883 bool arg3 = (bool) True ;
15884 bool result;
15885 bool temp2 = False ;
15886 PyObject * obj0 = 0 ;
15887 PyObject * obj1 = 0 ;
15888 PyObject * obj2 = 0 ;
15889 char *kwnames[] = {
15890 (char *) "self",(char *) "key",(char *) "deleteGroupIfEmpty", NULL
15891 };
15892
15893 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_DeleteEntry",kwnames,&obj0,&obj1,&obj2)) goto fail;
15894 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15895 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15896 {
15897 arg2 = wxString_in_helper(obj1);
15898 if (arg2 == NULL) SWIG_fail;
15899 temp2 = True;
15900 }
15901 if (obj2) {
15902 arg3 = (bool) SWIG_AsBool(obj2);
15903 if (PyErr_Occurred()) SWIG_fail;
15904 }
15905 {
15906 PyThreadState* __tstate = wxPyBeginAllowThreads();
15907 result = (bool)(arg1)->DeleteEntry((wxString const &)*arg2,arg3);
15908
15909 wxPyEndAllowThreads(__tstate);
15910 if (PyErr_Occurred()) SWIG_fail;
15911 }
15912 {
15913 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15914 }
15915 {
15916 if (temp2)
15917 delete arg2;
15918 }
15919 return resultobj;
15920 fail:
15921 {
15922 if (temp2)
15923 delete arg2;
15924 }
15925 return NULL;
15926 }
15927
15928
15929 static PyObject *_wrap_ConfigBase_DeleteGroup(PyObject *self, PyObject *args, PyObject *kwargs) {
15930 PyObject *resultobj;
15931 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15932 wxString *arg2 = 0 ;
15933 bool result;
15934 bool temp2 = False ;
15935 PyObject * obj0 = 0 ;
15936 PyObject * obj1 = 0 ;
15937 char *kwnames[] = {
15938 (char *) "self",(char *) "key", NULL
15939 };
15940
15941 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_DeleteGroup",kwnames,&obj0,&obj1)) goto fail;
15942 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15943 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15944 {
15945 arg2 = wxString_in_helper(obj1);
15946 if (arg2 == NULL) SWIG_fail;
15947 temp2 = True;
15948 }
15949 {
15950 PyThreadState* __tstate = wxPyBeginAllowThreads();
15951 result = (bool)(arg1)->DeleteGroup((wxString const &)*arg2);
15952
15953 wxPyEndAllowThreads(__tstate);
15954 if (PyErr_Occurred()) SWIG_fail;
15955 }
15956 {
15957 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15958 }
15959 {
15960 if (temp2)
15961 delete arg2;
15962 }
15963 return resultobj;
15964 fail:
15965 {
15966 if (temp2)
15967 delete arg2;
15968 }
15969 return NULL;
15970 }
15971
15972
15973 static PyObject *_wrap_ConfigBase_DeleteAll(PyObject *self, PyObject *args, PyObject *kwargs) {
15974 PyObject *resultobj;
15975 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15976 bool result;
15977 PyObject * obj0 = 0 ;
15978 char *kwnames[] = {
15979 (char *) "self", NULL
15980 };
15981
15982 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_DeleteAll",kwnames,&obj0)) goto fail;
15983 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15984 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15985 {
15986 PyThreadState* __tstate = wxPyBeginAllowThreads();
15987 result = (bool)(arg1)->DeleteAll();
15988
15989 wxPyEndAllowThreads(__tstate);
15990 if (PyErr_Occurred()) SWIG_fail;
15991 }
15992 {
15993 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15994 }
15995 return resultobj;
15996 fail:
15997 return NULL;
15998 }
15999
16000
16001 static PyObject *_wrap_ConfigBase_SetExpandEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) {
16002 PyObject *resultobj;
16003 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16004 bool arg2 = (bool) True ;
16005 PyObject * obj0 = 0 ;
16006 PyObject * obj1 = 0 ;
16007 char *kwnames[] = {
16008 (char *) "self",(char *) "doIt", NULL
16009 };
16010
16011 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_SetExpandEnvVars",kwnames,&obj0,&obj1)) goto fail;
16012 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16013 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16014 if (obj1) {
16015 arg2 = (bool) SWIG_AsBool(obj1);
16016 if (PyErr_Occurred()) SWIG_fail;
16017 }
16018 {
16019 PyThreadState* __tstate = wxPyBeginAllowThreads();
16020 (arg1)->SetExpandEnvVars(arg2);
16021
16022 wxPyEndAllowThreads(__tstate);
16023 if (PyErr_Occurred()) SWIG_fail;
16024 }
16025 Py_INCREF(Py_None); resultobj = Py_None;
16026 return resultobj;
16027 fail:
16028 return NULL;
16029 }
16030
16031
16032 static PyObject *_wrap_ConfigBase_IsExpandingEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) {
16033 PyObject *resultobj;
16034 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16035 bool result;
16036 PyObject * obj0 = 0 ;
16037 char *kwnames[] = {
16038 (char *) "self", NULL
16039 };
16040
16041 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_IsExpandingEnvVars",kwnames,&obj0)) goto fail;
16042 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16043 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16044 {
16045 PyThreadState* __tstate = wxPyBeginAllowThreads();
16046 result = (bool)((wxConfigBase const *)arg1)->IsExpandingEnvVars();
16047
16048 wxPyEndAllowThreads(__tstate);
16049 if (PyErr_Occurred()) SWIG_fail;
16050 }
16051 {
16052 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16053 }
16054 return resultobj;
16055 fail:
16056 return NULL;
16057 }
16058
16059
16060 static PyObject *_wrap_ConfigBase_SetRecordDefaults(PyObject *self, PyObject *args, PyObject *kwargs) {
16061 PyObject *resultobj;
16062 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16063 bool arg2 = (bool) True ;
16064 PyObject * obj0 = 0 ;
16065 PyObject * obj1 = 0 ;
16066 char *kwnames[] = {
16067 (char *) "self",(char *) "doIt", NULL
16068 };
16069
16070 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_SetRecordDefaults",kwnames,&obj0,&obj1)) goto fail;
16071 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16072 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16073 if (obj1) {
16074 arg2 = (bool) SWIG_AsBool(obj1);
16075 if (PyErr_Occurred()) SWIG_fail;
16076 }
16077 {
16078 PyThreadState* __tstate = wxPyBeginAllowThreads();
16079 (arg1)->SetRecordDefaults(arg2);
16080
16081 wxPyEndAllowThreads(__tstate);
16082 if (PyErr_Occurred()) SWIG_fail;
16083 }
16084 Py_INCREF(Py_None); resultobj = Py_None;
16085 return resultobj;
16086 fail:
16087 return NULL;
16088 }
16089
16090
16091 static PyObject *_wrap_ConfigBase_IsRecordingDefaults(PyObject *self, PyObject *args, PyObject *kwargs) {
16092 PyObject *resultobj;
16093 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16094 bool result;
16095 PyObject * obj0 = 0 ;
16096 char *kwnames[] = {
16097 (char *) "self", NULL
16098 };
16099
16100 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_IsRecordingDefaults",kwnames,&obj0)) goto fail;
16101 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16102 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16103 {
16104 PyThreadState* __tstate = wxPyBeginAllowThreads();
16105 result = (bool)((wxConfigBase const *)arg1)->IsRecordingDefaults();
16106
16107 wxPyEndAllowThreads(__tstate);
16108 if (PyErr_Occurred()) SWIG_fail;
16109 }
16110 {
16111 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16112 }
16113 return resultobj;
16114 fail:
16115 return NULL;
16116 }
16117
16118
16119 static PyObject *_wrap_ConfigBase_ExpandEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) {
16120 PyObject *resultobj;
16121 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16122 wxString *arg2 = 0 ;
16123 wxString result;
16124 bool temp2 = False ;
16125 PyObject * obj0 = 0 ;
16126 PyObject * obj1 = 0 ;
16127 char *kwnames[] = {
16128 (char *) "self",(char *) "str", NULL
16129 };
16130
16131 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_ExpandEnvVars",kwnames,&obj0,&obj1)) goto fail;
16132 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16133 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16134 {
16135 arg2 = wxString_in_helper(obj1);
16136 if (arg2 == NULL) SWIG_fail;
16137 temp2 = True;
16138 }
16139 {
16140 PyThreadState* __tstate = wxPyBeginAllowThreads();
16141 result = ((wxConfigBase const *)arg1)->ExpandEnvVars((wxString const &)*arg2);
16142
16143 wxPyEndAllowThreads(__tstate);
16144 if (PyErr_Occurred()) SWIG_fail;
16145 }
16146 {
16147 #if wxUSE_UNICODE
16148 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16149 #else
16150 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16151 #endif
16152 }
16153 {
16154 if (temp2)
16155 delete arg2;
16156 }
16157 return resultobj;
16158 fail:
16159 {
16160 if (temp2)
16161 delete arg2;
16162 }
16163 return NULL;
16164 }
16165
16166
16167 static PyObject *_wrap_ConfigBase_GetAppName(PyObject *self, PyObject *args, PyObject *kwargs) {
16168 PyObject *resultobj;
16169 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16170 wxString result;
16171 PyObject * obj0 = 0 ;
16172 char *kwnames[] = {
16173 (char *) "self", NULL
16174 };
16175
16176 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetAppName",kwnames,&obj0)) goto fail;
16177 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16178 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16179 {
16180 PyThreadState* __tstate = wxPyBeginAllowThreads();
16181 result = ((wxConfigBase const *)arg1)->GetAppName();
16182
16183 wxPyEndAllowThreads(__tstate);
16184 if (PyErr_Occurred()) SWIG_fail;
16185 }
16186 {
16187 #if wxUSE_UNICODE
16188 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16189 #else
16190 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16191 #endif
16192 }
16193 return resultobj;
16194 fail:
16195 return NULL;
16196 }
16197
16198
16199 static PyObject *_wrap_ConfigBase_GetVendorName(PyObject *self, PyObject *args, PyObject *kwargs) {
16200 PyObject *resultobj;
16201 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16202 wxString result;
16203 PyObject * obj0 = 0 ;
16204 char *kwnames[] = {
16205 (char *) "self", NULL
16206 };
16207
16208 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetVendorName",kwnames,&obj0)) goto fail;
16209 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16210 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16211 {
16212 PyThreadState* __tstate = wxPyBeginAllowThreads();
16213 result = ((wxConfigBase const *)arg1)->GetVendorName();
16214
16215 wxPyEndAllowThreads(__tstate);
16216 if (PyErr_Occurred()) SWIG_fail;
16217 }
16218 {
16219 #if wxUSE_UNICODE
16220 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16221 #else
16222 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16223 #endif
16224 }
16225 return resultobj;
16226 fail:
16227 return NULL;
16228 }
16229
16230
16231 static PyObject *_wrap_ConfigBase_SetAppName(PyObject *self, PyObject *args, PyObject *kwargs) {
16232 PyObject *resultobj;
16233 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16234 wxString *arg2 = 0 ;
16235 bool temp2 = False ;
16236 PyObject * obj0 = 0 ;
16237 PyObject * obj1 = 0 ;
16238 char *kwnames[] = {
16239 (char *) "self",(char *) "appName", NULL
16240 };
16241
16242 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetAppName",kwnames,&obj0,&obj1)) goto fail;
16243 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16244 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16245 {
16246 arg2 = wxString_in_helper(obj1);
16247 if (arg2 == NULL) SWIG_fail;
16248 temp2 = True;
16249 }
16250 {
16251 PyThreadState* __tstate = wxPyBeginAllowThreads();
16252 (arg1)->SetAppName((wxString const &)*arg2);
16253
16254 wxPyEndAllowThreads(__tstate);
16255 if (PyErr_Occurred()) SWIG_fail;
16256 }
16257 Py_INCREF(Py_None); resultobj = Py_None;
16258 {
16259 if (temp2)
16260 delete arg2;
16261 }
16262 return resultobj;
16263 fail:
16264 {
16265 if (temp2)
16266 delete arg2;
16267 }
16268 return NULL;
16269 }
16270
16271
16272 static PyObject *_wrap_ConfigBase_SetVendorName(PyObject *self, PyObject *args, PyObject *kwargs) {
16273 PyObject *resultobj;
16274 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16275 wxString *arg2 = 0 ;
16276 bool temp2 = False ;
16277 PyObject * obj0 = 0 ;
16278 PyObject * obj1 = 0 ;
16279 char *kwnames[] = {
16280 (char *) "self",(char *) "vendorName", NULL
16281 };
16282
16283 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetVendorName",kwnames,&obj0,&obj1)) goto fail;
16284 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16285 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16286 {
16287 arg2 = wxString_in_helper(obj1);
16288 if (arg2 == NULL) SWIG_fail;
16289 temp2 = True;
16290 }
16291 {
16292 PyThreadState* __tstate = wxPyBeginAllowThreads();
16293 (arg1)->SetVendorName((wxString const &)*arg2);
16294
16295 wxPyEndAllowThreads(__tstate);
16296 if (PyErr_Occurred()) SWIG_fail;
16297 }
16298 Py_INCREF(Py_None); resultobj = Py_None;
16299 {
16300 if (temp2)
16301 delete arg2;
16302 }
16303 return resultobj;
16304 fail:
16305 {
16306 if (temp2)
16307 delete arg2;
16308 }
16309 return NULL;
16310 }
16311
16312
16313 static PyObject *_wrap_ConfigBase_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
16314 PyObject *resultobj;
16315 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16316 long arg2 ;
16317 PyObject * obj0 = 0 ;
16318 PyObject * obj1 = 0 ;
16319 char *kwnames[] = {
16320 (char *) "self",(char *) "style", NULL
16321 };
16322
16323 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetStyle",kwnames,&obj0,&obj1)) goto fail;
16324 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16325 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16326 arg2 = (long) SWIG_AsLong(obj1);
16327 if (PyErr_Occurred()) SWIG_fail;
16328 {
16329 PyThreadState* __tstate = wxPyBeginAllowThreads();
16330 (arg1)->SetStyle(arg2);
16331
16332 wxPyEndAllowThreads(__tstate);
16333 if (PyErr_Occurred()) SWIG_fail;
16334 }
16335 Py_INCREF(Py_None); resultobj = Py_None;
16336 return resultobj;
16337 fail:
16338 return NULL;
16339 }
16340
16341
16342 static PyObject *_wrap_ConfigBase_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
16343 PyObject *resultobj;
16344 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16345 long result;
16346 PyObject * obj0 = 0 ;
16347 char *kwnames[] = {
16348 (char *) "self", NULL
16349 };
16350
16351 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetStyle",kwnames,&obj0)) goto fail;
16352 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16353 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16354 {
16355 PyThreadState* __tstate = wxPyBeginAllowThreads();
16356 result = (long)((wxConfigBase const *)arg1)->GetStyle();
16357
16358 wxPyEndAllowThreads(__tstate);
16359 if (PyErr_Occurred()) SWIG_fail;
16360 }
16361 resultobj = SWIG_FromLong((long)result);
16362 return resultobj;
16363 fail:
16364 return NULL;
16365 }
16366
16367
16368 static PyObject * ConfigBase_swigregister(PyObject *self, PyObject *args) {
16369 PyObject *obj;
16370 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16371 SWIG_TypeClientData(SWIGTYPE_p_wxConfigBase, obj);
16372 Py_INCREF(obj);
16373 return Py_BuildValue((char *)"");
16374 }
16375 static PyObject *_wrap_new_Config(PyObject *self, PyObject *args, PyObject *kwargs) {
16376 PyObject *resultobj;
16377 wxString const &arg1_defvalue = wxPyEmptyString ;
16378 wxString *arg1 = (wxString *) &arg1_defvalue ;
16379 wxString const &arg2_defvalue = wxPyEmptyString ;
16380 wxString *arg2 = (wxString *) &arg2_defvalue ;
16381 wxString const &arg3_defvalue = wxPyEmptyString ;
16382 wxString *arg3 = (wxString *) &arg3_defvalue ;
16383 wxString const &arg4_defvalue = wxPyEmptyString ;
16384 wxString *arg4 = (wxString *) &arg4_defvalue ;
16385 long arg5 = (long) wxCONFIG_USE_LOCAL_FILE|wxCONFIG_USE_GLOBAL_FILE ;
16386 wxConfig *result;
16387 bool temp1 = False ;
16388 bool temp2 = False ;
16389 bool temp3 = False ;
16390 bool temp4 = False ;
16391 PyObject * obj0 = 0 ;
16392 PyObject * obj1 = 0 ;
16393 PyObject * obj2 = 0 ;
16394 PyObject * obj3 = 0 ;
16395 PyObject * obj4 = 0 ;
16396 char *kwnames[] = {
16397 (char *) "appName",(char *) "vendorName",(char *) "localFilename",(char *) "globalFilename",(char *) "style", NULL
16398 };
16399
16400 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:new_Config",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
16401 if (obj0) {
16402 {
16403 arg1 = wxString_in_helper(obj0);
16404 if (arg1 == NULL) SWIG_fail;
16405 temp1 = True;
16406 }
16407 }
16408 if (obj1) {
16409 {
16410 arg2 = wxString_in_helper(obj1);
16411 if (arg2 == NULL) SWIG_fail;
16412 temp2 = True;
16413 }
16414 }
16415 if (obj2) {
16416 {
16417 arg3 = wxString_in_helper(obj2);
16418 if (arg3 == NULL) SWIG_fail;
16419 temp3 = True;
16420 }
16421 }
16422 if (obj3) {
16423 {
16424 arg4 = wxString_in_helper(obj3);
16425 if (arg4 == NULL) SWIG_fail;
16426 temp4 = True;
16427 }
16428 }
16429 if (obj4) {
16430 arg5 = (long) SWIG_AsLong(obj4);
16431 if (PyErr_Occurred()) SWIG_fail;
16432 }
16433 {
16434 PyThreadState* __tstate = wxPyBeginAllowThreads();
16435 result = (wxConfig *)new wxConfig((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5);
16436
16437 wxPyEndAllowThreads(__tstate);
16438 if (PyErr_Occurred()) SWIG_fail;
16439 }
16440 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfig, 1);
16441 {
16442 if (temp1)
16443 delete arg1;
16444 }
16445 {
16446 if (temp2)
16447 delete arg2;
16448 }
16449 {
16450 if (temp3)
16451 delete arg3;
16452 }
16453 {
16454 if (temp4)
16455 delete arg4;
16456 }
16457 return resultobj;
16458 fail:
16459 {
16460 if (temp1)
16461 delete arg1;
16462 }
16463 {
16464 if (temp2)
16465 delete arg2;
16466 }
16467 {
16468 if (temp3)
16469 delete arg3;
16470 }
16471 {
16472 if (temp4)
16473 delete arg4;
16474 }
16475 return NULL;
16476 }
16477
16478
16479 static PyObject *_wrap_delete_Config(PyObject *self, PyObject *args, PyObject *kwargs) {
16480 PyObject *resultobj;
16481 wxConfig *arg1 = (wxConfig *) 0 ;
16482 PyObject * obj0 = 0 ;
16483 char *kwnames[] = {
16484 (char *) "self", NULL
16485 };
16486
16487 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Config",kwnames,&obj0)) goto fail;
16488 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfig,
16489 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16490 {
16491 PyThreadState* __tstate = wxPyBeginAllowThreads();
16492 delete arg1;
16493
16494 wxPyEndAllowThreads(__tstate);
16495 if (PyErr_Occurred()) SWIG_fail;
16496 }
16497 Py_INCREF(Py_None); resultobj = Py_None;
16498 return resultobj;
16499 fail:
16500 return NULL;
16501 }
16502
16503
16504 static PyObject * Config_swigregister(PyObject *self, PyObject *args) {
16505 PyObject *obj;
16506 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16507 SWIG_TypeClientData(SWIGTYPE_p_wxConfig, obj);
16508 Py_INCREF(obj);
16509 return Py_BuildValue((char *)"");
16510 }
16511 static PyObject *_wrap_new_FileConfig(PyObject *self, PyObject *args, PyObject *kwargs) {
16512 PyObject *resultobj;
16513 wxString const &arg1_defvalue = wxPyEmptyString ;
16514 wxString *arg1 = (wxString *) &arg1_defvalue ;
16515 wxString const &arg2_defvalue = wxPyEmptyString ;
16516 wxString *arg2 = (wxString *) &arg2_defvalue ;
16517 wxString const &arg3_defvalue = wxPyEmptyString ;
16518 wxString *arg3 = (wxString *) &arg3_defvalue ;
16519 wxString const &arg4_defvalue = wxPyEmptyString ;
16520 wxString *arg4 = (wxString *) &arg4_defvalue ;
16521 long arg5 = (long) wxCONFIG_USE_LOCAL_FILE|wxCONFIG_USE_GLOBAL_FILE ;
16522 wxFileConfig *result;
16523 bool temp1 = False ;
16524 bool temp2 = False ;
16525 bool temp3 = False ;
16526 bool temp4 = False ;
16527 PyObject * obj0 = 0 ;
16528 PyObject * obj1 = 0 ;
16529 PyObject * obj2 = 0 ;
16530 PyObject * obj3 = 0 ;
16531 PyObject * obj4 = 0 ;
16532 char *kwnames[] = {
16533 (char *) "appName",(char *) "vendorName",(char *) "localFilename",(char *) "globalFilename",(char *) "style", NULL
16534 };
16535
16536 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:new_FileConfig",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
16537 if (obj0) {
16538 {
16539 arg1 = wxString_in_helper(obj0);
16540 if (arg1 == NULL) SWIG_fail;
16541 temp1 = True;
16542 }
16543 }
16544 if (obj1) {
16545 {
16546 arg2 = wxString_in_helper(obj1);
16547 if (arg2 == NULL) SWIG_fail;
16548 temp2 = True;
16549 }
16550 }
16551 if (obj2) {
16552 {
16553 arg3 = wxString_in_helper(obj2);
16554 if (arg3 == NULL) SWIG_fail;
16555 temp3 = True;
16556 }
16557 }
16558 if (obj3) {
16559 {
16560 arg4 = wxString_in_helper(obj3);
16561 if (arg4 == NULL) SWIG_fail;
16562 temp4 = True;
16563 }
16564 }
16565 if (obj4) {
16566 arg5 = (long) SWIG_AsLong(obj4);
16567 if (PyErr_Occurred()) SWIG_fail;
16568 }
16569 {
16570 PyThreadState* __tstate = wxPyBeginAllowThreads();
16571 result = (wxFileConfig *)new wxFileConfig((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5);
16572
16573 wxPyEndAllowThreads(__tstate);
16574 if (PyErr_Occurred()) SWIG_fail;
16575 }
16576 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileConfig, 1);
16577 {
16578 if (temp1)
16579 delete arg1;
16580 }
16581 {
16582 if (temp2)
16583 delete arg2;
16584 }
16585 {
16586 if (temp3)
16587 delete arg3;
16588 }
16589 {
16590 if (temp4)
16591 delete arg4;
16592 }
16593 return resultobj;
16594 fail:
16595 {
16596 if (temp1)
16597 delete arg1;
16598 }
16599 {
16600 if (temp2)
16601 delete arg2;
16602 }
16603 {
16604 if (temp3)
16605 delete arg3;
16606 }
16607 {
16608 if (temp4)
16609 delete arg4;
16610 }
16611 return NULL;
16612 }
16613
16614
16615 static PyObject *_wrap_delete_FileConfig(PyObject *self, PyObject *args, PyObject *kwargs) {
16616 PyObject *resultobj;
16617 wxFileConfig *arg1 = (wxFileConfig *) 0 ;
16618 PyObject * obj0 = 0 ;
16619 char *kwnames[] = {
16620 (char *) "self", NULL
16621 };
16622
16623 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileConfig",kwnames,&obj0)) goto fail;
16624 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileConfig,
16625 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16626 {
16627 PyThreadState* __tstate = wxPyBeginAllowThreads();
16628 delete arg1;
16629
16630 wxPyEndAllowThreads(__tstate);
16631 if (PyErr_Occurred()) SWIG_fail;
16632 }
16633 Py_INCREF(Py_None); resultobj = Py_None;
16634 return resultobj;
16635 fail:
16636 return NULL;
16637 }
16638
16639
16640 static PyObject * FileConfig_swigregister(PyObject *self, PyObject *args) {
16641 PyObject *obj;
16642 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16643 SWIG_TypeClientData(SWIGTYPE_p_wxFileConfig, obj);
16644 Py_INCREF(obj);
16645 return Py_BuildValue((char *)"");
16646 }
16647 static PyObject *_wrap_new_ConfigPathChanger(PyObject *self, PyObject *args, PyObject *kwargs) {
16648 PyObject *resultobj;
16649 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16650 wxString *arg2 = 0 ;
16651 wxConfigPathChanger *result;
16652 bool temp2 = False ;
16653 PyObject * obj0 = 0 ;
16654 PyObject * obj1 = 0 ;
16655 char *kwnames[] = {
16656 (char *) "config",(char *) "entry", NULL
16657 };
16658
16659 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_ConfigPathChanger",kwnames,&obj0,&obj1)) goto fail;
16660 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16661 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16662 {
16663 arg2 = wxString_in_helper(obj1);
16664 if (arg2 == NULL) SWIG_fail;
16665 temp2 = True;
16666 }
16667 {
16668 PyThreadState* __tstate = wxPyBeginAllowThreads();
16669 result = (wxConfigPathChanger *)new wxConfigPathChanger((wxConfigBase const *)arg1,(wxString const &)*arg2);
16670
16671 wxPyEndAllowThreads(__tstate);
16672 if (PyErr_Occurred()) SWIG_fail;
16673 }
16674 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigPathChanger, 1);
16675 {
16676 if (temp2)
16677 delete arg2;
16678 }
16679 return resultobj;
16680 fail:
16681 {
16682 if (temp2)
16683 delete arg2;
16684 }
16685 return NULL;
16686 }
16687
16688
16689 static PyObject *_wrap_delete_ConfigPathChanger(PyObject *self, PyObject *args, PyObject *kwargs) {
16690 PyObject *resultobj;
16691 wxConfigPathChanger *arg1 = (wxConfigPathChanger *) 0 ;
16692 PyObject * obj0 = 0 ;
16693 char *kwnames[] = {
16694 (char *) "self", NULL
16695 };
16696
16697 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ConfigPathChanger",kwnames,&obj0)) goto fail;
16698 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigPathChanger,
16699 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16700 {
16701 PyThreadState* __tstate = wxPyBeginAllowThreads();
16702 delete arg1;
16703
16704 wxPyEndAllowThreads(__tstate);
16705 if (PyErr_Occurred()) SWIG_fail;
16706 }
16707 Py_INCREF(Py_None); resultobj = Py_None;
16708 return resultobj;
16709 fail:
16710 return NULL;
16711 }
16712
16713
16714 static PyObject *_wrap_ConfigPathChanger_Name(PyObject *self, PyObject *args, PyObject *kwargs) {
16715 PyObject *resultobj;
16716 wxConfigPathChanger *arg1 = (wxConfigPathChanger *) 0 ;
16717 wxString *result;
16718 PyObject * obj0 = 0 ;
16719 char *kwnames[] = {
16720 (char *) "self", NULL
16721 };
16722
16723 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigPathChanger_Name",kwnames,&obj0)) goto fail;
16724 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigPathChanger,
16725 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16726 {
16727 PyThreadState* __tstate = wxPyBeginAllowThreads();
16728 {
16729 wxString const &_result_ref = ((wxConfigPathChanger const *)arg1)->Name();
16730 result = (wxString *) &_result_ref;
16731 }
16732
16733 wxPyEndAllowThreads(__tstate);
16734 if (PyErr_Occurred()) SWIG_fail;
16735 }
16736 {
16737 #if wxUSE_UNICODE
16738 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
16739 #else
16740 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
16741 #endif
16742 }
16743 return resultobj;
16744 fail:
16745 return NULL;
16746 }
16747
16748
16749 static PyObject * ConfigPathChanger_swigregister(PyObject *self, PyObject *args) {
16750 PyObject *obj;
16751 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16752 SWIG_TypeClientData(SWIGTYPE_p_wxConfigPathChanger, obj);
16753 Py_INCREF(obj);
16754 return Py_BuildValue((char *)"");
16755 }
16756 static PyObject *_wrap_ExpandEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) {
16757 PyObject *resultobj;
16758 wxString *arg1 = 0 ;
16759 wxString result;
16760 bool temp1 = False ;
16761 PyObject * obj0 = 0 ;
16762 char *kwnames[] = {
16763 (char *) "sz", NULL
16764 };
16765
16766 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ExpandEnvVars",kwnames,&obj0)) goto fail;
16767 {
16768 arg1 = wxString_in_helper(obj0);
16769 if (arg1 == NULL) SWIG_fail;
16770 temp1 = True;
16771 }
16772 {
16773 PyThreadState* __tstate = wxPyBeginAllowThreads();
16774 result = wxExpandEnvVars((wxString const &)*arg1);
16775
16776 wxPyEndAllowThreads(__tstate);
16777 if (PyErr_Occurred()) SWIG_fail;
16778 }
16779 {
16780 #if wxUSE_UNICODE
16781 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16782 #else
16783 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16784 #endif
16785 }
16786 {
16787 if (temp1)
16788 delete arg1;
16789 }
16790 return resultobj;
16791 fail:
16792 {
16793 if (temp1)
16794 delete arg1;
16795 }
16796 return NULL;
16797 }
16798
16799
16800 static int _wrap_DateFormatStr_set(PyObject *_val) {
16801 PyErr_SetString(PyExc_TypeError,"Variable DateFormatStr is read-only.");
16802 return 1;
16803 }
16804
16805
16806 static PyObject *_wrap_DateFormatStr_get() {
16807 PyObject *pyobj;
16808
16809 {
16810 #if wxUSE_UNICODE
16811 pyobj = PyUnicode_FromWideChar((&wxPyDateFormatStr)->c_str(), (&wxPyDateFormatStr)->Len());
16812 #else
16813 pyobj = PyString_FromStringAndSize((&wxPyDateFormatStr)->c_str(), (&wxPyDateFormatStr)->Len());
16814 #endif
16815 }
16816 return pyobj;
16817 }
16818
16819
16820 static int _wrap_TimeSpanFormatStr_set(PyObject *_val) {
16821 PyErr_SetString(PyExc_TypeError,"Variable TimeSpanFormatStr is read-only.");
16822 return 1;
16823 }
16824
16825
16826 static PyObject *_wrap_TimeSpanFormatStr_get() {
16827 PyObject *pyobj;
16828
16829 {
16830 #if wxUSE_UNICODE
16831 pyobj = PyUnicode_FromWideChar((&wxPyTimeSpanFormatStr)->c_str(), (&wxPyTimeSpanFormatStr)->Len());
16832 #else
16833 pyobj = PyString_FromStringAndSize((&wxPyTimeSpanFormatStr)->c_str(), (&wxPyTimeSpanFormatStr)->Len());
16834 #endif
16835 }
16836 return pyobj;
16837 }
16838
16839
16840 static PyObject *_wrap_DateTime_SetCountry(PyObject *self, PyObject *args, PyObject *kwargs) {
16841 PyObject *resultobj;
16842 int arg1 ;
16843 PyObject * obj0 = 0 ;
16844 char *kwnames[] = {
16845 (char *) "country", NULL
16846 };
16847
16848 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_SetCountry",kwnames,&obj0)) goto fail;
16849 arg1 = (wxDateTime::Country) SWIG_AsInt(obj0);
16850 if (PyErr_Occurred()) SWIG_fail;
16851 {
16852 PyThreadState* __tstate = wxPyBeginAllowThreads();
16853 wxDateTime::SetCountry((wxDateTime::Country )arg1);
16854
16855 wxPyEndAllowThreads(__tstate);
16856 if (PyErr_Occurred()) SWIG_fail;
16857 }
16858 Py_INCREF(Py_None); resultobj = Py_None;
16859 return resultobj;
16860 fail:
16861 return NULL;
16862 }
16863
16864
16865 static PyObject *_wrap_DateTime_GetCountry(PyObject *self, PyObject *args, PyObject *kwargs) {
16866 PyObject *resultobj;
16867 int result;
16868 char *kwnames[] = {
16869 NULL
16870 };
16871
16872 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_GetCountry",kwnames)) goto fail;
16873 {
16874 PyThreadState* __tstate = wxPyBeginAllowThreads();
16875 result = (int)wxDateTime::GetCountry();
16876
16877 wxPyEndAllowThreads(__tstate);
16878 if (PyErr_Occurred()) SWIG_fail;
16879 }
16880 resultobj = SWIG_FromInt((int)result);
16881 return resultobj;
16882 fail:
16883 return NULL;
16884 }
16885
16886
16887 static PyObject *_wrap_DateTime_IsWestEuropeanCountry(PyObject *self, PyObject *args, PyObject *kwargs) {
16888 PyObject *resultobj;
16889 int arg1 = (int) wxDateTime::Country_Default ;
16890 bool result;
16891 PyObject * obj0 = 0 ;
16892 char *kwnames[] = {
16893 (char *) "country", NULL
16894 };
16895
16896 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_IsWestEuropeanCountry",kwnames,&obj0)) goto fail;
16897 if (obj0) {
16898 arg1 = (wxDateTime::Country) SWIG_AsInt(obj0);
16899 if (PyErr_Occurred()) SWIG_fail;
16900 }
16901 {
16902 PyThreadState* __tstate = wxPyBeginAllowThreads();
16903 result = (bool)wxDateTime::IsWestEuropeanCountry((wxDateTime::Country )arg1);
16904
16905 wxPyEndAllowThreads(__tstate);
16906 if (PyErr_Occurred()) SWIG_fail;
16907 }
16908 {
16909 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16910 }
16911 return resultobj;
16912 fail:
16913 return NULL;
16914 }
16915
16916
16917 static PyObject *_wrap_DateTime_GetCurrentYear(PyObject *self, PyObject *args, PyObject *kwargs) {
16918 PyObject *resultobj;
16919 int arg1 = (int) wxDateTime::Gregorian ;
16920 int result;
16921 PyObject * obj0 = 0 ;
16922 char *kwnames[] = {
16923 (char *) "cal", NULL
16924 };
16925
16926 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCurrentYear",kwnames,&obj0)) goto fail;
16927 if (obj0) {
16928 arg1 = (wxDateTime::Calendar) SWIG_AsInt(obj0);
16929 if (PyErr_Occurred()) SWIG_fail;
16930 }
16931 {
16932 PyThreadState* __tstate = wxPyBeginAllowThreads();
16933 result = (int)wxDateTime::GetCurrentYear((wxDateTime::Calendar )arg1);
16934
16935 wxPyEndAllowThreads(__tstate);
16936 if (PyErr_Occurred()) SWIG_fail;
16937 }
16938 resultobj = SWIG_FromInt((int)result);
16939 return resultobj;
16940 fail:
16941 return NULL;
16942 }
16943
16944
16945 static PyObject *_wrap_DateTime_ConvertYearToBC(PyObject *self, PyObject *args, PyObject *kwargs) {
16946 PyObject *resultobj;
16947 int arg1 ;
16948 int result;
16949 PyObject * obj0 = 0 ;
16950 char *kwnames[] = {
16951 (char *) "year", NULL
16952 };
16953
16954 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_ConvertYearToBC",kwnames,&obj0)) goto fail;
16955 arg1 = (int) SWIG_AsInt(obj0);
16956 if (PyErr_Occurred()) SWIG_fail;
16957 {
16958 PyThreadState* __tstate = wxPyBeginAllowThreads();
16959 result = (int)wxDateTime::ConvertYearToBC(arg1);
16960
16961 wxPyEndAllowThreads(__tstate);
16962 if (PyErr_Occurred()) SWIG_fail;
16963 }
16964 resultobj = SWIG_FromInt((int)result);
16965 return resultobj;
16966 fail:
16967 return NULL;
16968 }
16969
16970
16971 static PyObject *_wrap_DateTime_GetCurrentMonth(PyObject *self, PyObject *args, PyObject *kwargs) {
16972 PyObject *resultobj;
16973 int arg1 = (int) wxDateTime::Gregorian ;
16974 int result;
16975 PyObject * obj0 = 0 ;
16976 char *kwnames[] = {
16977 (char *) "cal", NULL
16978 };
16979
16980 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCurrentMonth",kwnames,&obj0)) goto fail;
16981 if (obj0) {
16982 arg1 = (wxDateTime::Calendar) SWIG_AsInt(obj0);
16983 if (PyErr_Occurred()) SWIG_fail;
16984 }
16985 {
16986 PyThreadState* __tstate = wxPyBeginAllowThreads();
16987 result = (int)wxDateTime::GetCurrentMonth((wxDateTime::Calendar )arg1);
16988
16989 wxPyEndAllowThreads(__tstate);
16990 if (PyErr_Occurred()) SWIG_fail;
16991 }
16992 resultobj = SWIG_FromInt((int)result);
16993 return resultobj;
16994 fail:
16995 return NULL;
16996 }
16997
16998
16999 static PyObject *_wrap_DateTime_IsLeapYear(PyObject *self, PyObject *args, PyObject *kwargs) {
17000 PyObject *resultobj;
17001 int arg1 = (int) wxDateTime::Inv_Year ;
17002 int arg2 = (int) wxDateTime::Gregorian ;
17003 bool result;
17004 PyObject * obj0 = 0 ;
17005 PyObject * obj1 = 0 ;
17006 char *kwnames[] = {
17007 (char *) "year",(char *) "cal", NULL
17008 };
17009
17010 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_IsLeapYear",kwnames,&obj0,&obj1)) goto fail;
17011 if (obj0) {
17012 arg1 = (int) SWIG_AsInt(obj0);
17013 if (PyErr_Occurred()) SWIG_fail;
17014 }
17015 if (obj1) {
17016 arg2 = (wxDateTime::Calendar) SWIG_AsInt(obj1);
17017 if (PyErr_Occurred()) SWIG_fail;
17018 }
17019 {
17020 PyThreadState* __tstate = wxPyBeginAllowThreads();
17021 result = (bool)wxDateTime::IsLeapYear(arg1,(wxDateTime::Calendar )arg2);
17022
17023 wxPyEndAllowThreads(__tstate);
17024 if (PyErr_Occurred()) SWIG_fail;
17025 }
17026 {
17027 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17028 }
17029 return resultobj;
17030 fail:
17031 return NULL;
17032 }
17033
17034
17035 static PyObject *_wrap_DateTime_GetCentury(PyObject *self, PyObject *args, PyObject *kwargs) {
17036 PyObject *resultobj;
17037 int arg1 = (int) wxDateTime::Inv_Year ;
17038 int result;
17039 PyObject * obj0 = 0 ;
17040 char *kwnames[] = {
17041 (char *) "year", NULL
17042 };
17043
17044 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCentury",kwnames,&obj0)) goto fail;
17045 if (obj0) {
17046 arg1 = (int) SWIG_AsInt(obj0);
17047 if (PyErr_Occurred()) SWIG_fail;
17048 }
17049 {
17050 PyThreadState* __tstate = wxPyBeginAllowThreads();
17051 result = (int)wxDateTime::GetCentury(arg1);
17052
17053 wxPyEndAllowThreads(__tstate);
17054 if (PyErr_Occurred()) SWIG_fail;
17055 }
17056 resultobj = SWIG_FromInt((int)result);
17057 return resultobj;
17058 fail:
17059 return NULL;
17060 }
17061
17062
17063 static PyObject *_wrap_DateTime_GetNumberOfDaysinYear(PyObject *self, PyObject *args, PyObject *kwargs) {
17064 PyObject *resultobj;
17065 int arg1 ;
17066 int arg2 = (int) wxDateTime::Gregorian ;
17067 int result;
17068 PyObject * obj0 = 0 ;
17069 PyObject * obj1 = 0 ;
17070 char *kwnames[] = {
17071 (char *) "year",(char *) "cal", NULL
17072 };
17073
17074 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetNumberOfDaysinYear",kwnames,&obj0,&obj1)) goto fail;
17075 arg1 = (int) SWIG_AsInt(obj0);
17076 if (PyErr_Occurred()) SWIG_fail;
17077 if (obj1) {
17078 arg2 = (wxDateTime::Calendar) SWIG_AsInt(obj1);
17079 if (PyErr_Occurred()) SWIG_fail;
17080 }
17081 {
17082 PyThreadState* __tstate = wxPyBeginAllowThreads();
17083 result = (int)wxDateTime::GetNumberOfDays(arg1,(wxDateTime::Calendar )arg2);
17084
17085 wxPyEndAllowThreads(__tstate);
17086 if (PyErr_Occurred()) SWIG_fail;
17087 }
17088 resultobj = SWIG_FromInt((int)result);
17089 return resultobj;
17090 fail:
17091 return NULL;
17092 }
17093
17094
17095 static PyObject *_wrap_DateTime_GetNumberOfDaysInMonth(PyObject *self, PyObject *args, PyObject *kwargs) {
17096 PyObject *resultobj;
17097 int arg1 ;
17098 int arg2 = (int) wxDateTime::Inv_Year ;
17099 int arg3 = (int) wxDateTime::Gregorian ;
17100 int result;
17101 PyObject * obj0 = 0 ;
17102 PyObject * obj1 = 0 ;
17103 PyObject * obj2 = 0 ;
17104 char *kwnames[] = {
17105 (char *) "month",(char *) "year",(char *) "cal", NULL
17106 };
17107
17108 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetNumberOfDaysInMonth",kwnames,&obj0,&obj1,&obj2)) goto fail;
17109 arg1 = (wxDateTime::Month) SWIG_AsInt(obj0);
17110 if (PyErr_Occurred()) SWIG_fail;
17111 if (obj1) {
17112 arg2 = (int) SWIG_AsInt(obj1);
17113 if (PyErr_Occurred()) SWIG_fail;
17114 }
17115 if (obj2) {
17116 arg3 = (wxDateTime::Calendar) SWIG_AsInt(obj2);
17117 if (PyErr_Occurred()) SWIG_fail;
17118 }
17119 {
17120 PyThreadState* __tstate = wxPyBeginAllowThreads();
17121 result = (int)wxDateTime::GetNumberOfDays((wxDateTime::Month )arg1,arg2,(wxDateTime::Calendar )arg3);
17122
17123 wxPyEndAllowThreads(__tstate);
17124 if (PyErr_Occurred()) SWIG_fail;
17125 }
17126 resultobj = SWIG_FromInt((int)result);
17127 return resultobj;
17128 fail:
17129 return NULL;
17130 }
17131
17132
17133 static PyObject *_wrap_DateTime_GetMonthName(PyObject *self, PyObject *args, PyObject *kwargs) {
17134 PyObject *resultobj;
17135 int arg1 ;
17136 int arg2 = (int) wxDateTime::Name_Full ;
17137 wxString result;
17138 PyObject * obj0 = 0 ;
17139 PyObject * obj1 = 0 ;
17140 char *kwnames[] = {
17141 (char *) "month",(char *) "flags", NULL
17142 };
17143
17144 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMonthName",kwnames,&obj0,&obj1)) goto fail;
17145 arg1 = (wxDateTime::Month) SWIG_AsInt(obj0);
17146 if (PyErr_Occurred()) SWIG_fail;
17147 if (obj1) {
17148 arg2 = (wxDateTime::NameFlags) SWIG_AsInt(obj1);
17149 if (PyErr_Occurred()) SWIG_fail;
17150 }
17151 {
17152 PyThreadState* __tstate = wxPyBeginAllowThreads();
17153 result = wxDateTime::GetMonthName((wxDateTime::Month )arg1,(wxDateTime::NameFlags )arg2);
17154
17155 wxPyEndAllowThreads(__tstate);
17156 if (PyErr_Occurred()) SWIG_fail;
17157 }
17158 {
17159 #if wxUSE_UNICODE
17160 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17161 #else
17162 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17163 #endif
17164 }
17165 return resultobj;
17166 fail:
17167 return NULL;
17168 }
17169
17170
17171 static PyObject *_wrap_DateTime_GetWeekDayName(PyObject *self, PyObject *args, PyObject *kwargs) {
17172 PyObject *resultobj;
17173 int arg1 ;
17174 int arg2 = (int) wxDateTime::Name_Full ;
17175 wxString result;
17176 PyObject * obj0 = 0 ;
17177 PyObject * obj1 = 0 ;
17178 char *kwnames[] = {
17179 (char *) "weekday",(char *) "flags", NULL
17180 };
17181
17182 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetWeekDayName",kwnames,&obj0,&obj1)) goto fail;
17183 arg1 = (wxDateTime::WeekDay) SWIG_AsInt(obj0);
17184 if (PyErr_Occurred()) SWIG_fail;
17185 if (obj1) {
17186 arg2 = (wxDateTime::NameFlags) SWIG_AsInt(obj1);
17187 if (PyErr_Occurred()) SWIG_fail;
17188 }
17189 {
17190 PyThreadState* __tstate = wxPyBeginAllowThreads();
17191 result = wxDateTime::GetWeekDayName((wxDateTime::WeekDay )arg1,(wxDateTime::NameFlags )arg2);
17192
17193 wxPyEndAllowThreads(__tstate);
17194 if (PyErr_Occurred()) SWIG_fail;
17195 }
17196 {
17197 #if wxUSE_UNICODE
17198 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17199 #else
17200 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17201 #endif
17202 }
17203 return resultobj;
17204 fail:
17205 return NULL;
17206 }
17207
17208
17209 static PyObject *_wrap_DateTime_GetAmPmStrings(PyObject *self, PyObject *args, PyObject *kwargs) {
17210 PyObject *resultobj;
17211 wxString *arg1 = (wxString *) 0 ;
17212 wxString *arg2 = (wxString *) 0 ;
17213 bool temp1 = False ;
17214 bool temp2 = False ;
17215 PyObject * obj0 = 0 ;
17216 PyObject * obj1 = 0 ;
17217 char *kwnames[] = {
17218 (char *) "OUTPUT",(char *) "OUTPUT", NULL
17219 };
17220
17221 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetAmPmStrings",kwnames,&obj0,&obj1)) goto fail;
17222 {
17223 arg1 = wxString_in_helper(obj0);
17224 if (arg1 == NULL) SWIG_fail;
17225 temp1 = True;
17226 }
17227 {
17228 arg2 = wxString_in_helper(obj1);
17229 if (arg2 == NULL) SWIG_fail;
17230 temp2 = True;
17231 }
17232 {
17233 PyThreadState* __tstate = wxPyBeginAllowThreads();
17234 wxDateTime::GetAmPmStrings(arg1,arg2);
17235
17236 wxPyEndAllowThreads(__tstate);
17237 if (PyErr_Occurred()) SWIG_fail;
17238 }
17239 Py_INCREF(Py_None); resultobj = Py_None;
17240 {
17241 if (temp1)
17242 delete arg1;
17243 }
17244 {
17245 if (temp2)
17246 delete arg2;
17247 }
17248 return resultobj;
17249 fail:
17250 {
17251 if (temp1)
17252 delete arg1;
17253 }
17254 {
17255 if (temp2)
17256 delete arg2;
17257 }
17258 return NULL;
17259 }
17260
17261
17262 static PyObject *_wrap_DateTime_IsDSTApplicable(PyObject *self, PyObject *args, PyObject *kwargs) {
17263 PyObject *resultobj;
17264 int arg1 = (int) wxDateTime::Inv_Year ;
17265 int arg2 = (int) wxDateTime::Country_Default ;
17266 bool result;
17267 PyObject * obj0 = 0 ;
17268 PyObject * obj1 = 0 ;
17269 char *kwnames[] = {
17270 (char *) "year",(char *) "country", NULL
17271 };
17272
17273 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_IsDSTApplicable",kwnames,&obj0,&obj1)) goto fail;
17274 if (obj0) {
17275 arg1 = (int) SWIG_AsInt(obj0);
17276 if (PyErr_Occurred()) SWIG_fail;
17277 }
17278 if (obj1) {
17279 arg2 = (wxDateTime::Country) SWIG_AsInt(obj1);
17280 if (PyErr_Occurred()) SWIG_fail;
17281 }
17282 {
17283 PyThreadState* __tstate = wxPyBeginAllowThreads();
17284 result = (bool)wxDateTime::IsDSTApplicable(arg1,(wxDateTime::Country )arg2);
17285
17286 wxPyEndAllowThreads(__tstate);
17287 if (PyErr_Occurred()) SWIG_fail;
17288 }
17289 {
17290 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17291 }
17292 return resultobj;
17293 fail:
17294 return NULL;
17295 }
17296
17297
17298 static PyObject *_wrap_DateTime_GetBeginDST(PyObject *self, PyObject *args, PyObject *kwargs) {
17299 PyObject *resultobj;
17300 int arg1 = (int) wxDateTime::Inv_Year ;
17301 int arg2 = (int) wxDateTime::Country_Default ;
17302 wxDateTime result;
17303 PyObject * obj0 = 0 ;
17304 PyObject * obj1 = 0 ;
17305 char *kwnames[] = {
17306 (char *) "year",(char *) "country", NULL
17307 };
17308
17309 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_GetBeginDST",kwnames,&obj0,&obj1)) goto fail;
17310 if (obj0) {
17311 arg1 = (int) SWIG_AsInt(obj0);
17312 if (PyErr_Occurred()) SWIG_fail;
17313 }
17314 if (obj1) {
17315 arg2 = (wxDateTime::Country) SWIG_AsInt(obj1);
17316 if (PyErr_Occurred()) SWIG_fail;
17317 }
17318 {
17319 PyThreadState* __tstate = wxPyBeginAllowThreads();
17320 result = wxDateTime::GetBeginDST(arg1,(wxDateTime::Country )arg2);
17321
17322 wxPyEndAllowThreads(__tstate);
17323 if (PyErr_Occurred()) SWIG_fail;
17324 }
17325 {
17326 wxDateTime * resultptr;
17327 resultptr = new wxDateTime((wxDateTime &) result);
17328 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
17329 }
17330 return resultobj;
17331 fail:
17332 return NULL;
17333 }
17334
17335
17336 static PyObject *_wrap_DateTime_GetEndDST(PyObject *self, PyObject *args, PyObject *kwargs) {
17337 PyObject *resultobj;
17338 int arg1 = (int) wxDateTime::Inv_Year ;
17339 int arg2 = (int) wxDateTime::Country_Default ;
17340 wxDateTime result;
17341 PyObject * obj0 = 0 ;
17342 PyObject * obj1 = 0 ;
17343 char *kwnames[] = {
17344 (char *) "year",(char *) "country", NULL
17345 };
17346
17347 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_GetEndDST",kwnames,&obj0,&obj1)) goto fail;
17348 if (obj0) {
17349 arg1 = (int) SWIG_AsInt(obj0);
17350 if (PyErr_Occurred()) SWIG_fail;
17351 }
17352 if (obj1) {
17353 arg2 = (wxDateTime::Country) SWIG_AsInt(obj1);
17354 if (PyErr_Occurred()) SWIG_fail;
17355 }
17356 {
17357 PyThreadState* __tstate = wxPyBeginAllowThreads();
17358 result = wxDateTime::GetEndDST(arg1,(wxDateTime::Country )arg2);
17359
17360 wxPyEndAllowThreads(__tstate);
17361 if (PyErr_Occurred()) SWIG_fail;
17362 }
17363 {
17364 wxDateTime * resultptr;
17365 resultptr = new wxDateTime((wxDateTime &) result);
17366 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
17367 }
17368 return resultobj;
17369 fail:
17370 return NULL;
17371 }
17372
17373
17374 static PyObject *_wrap_DateTime_Now(PyObject *self, PyObject *args, PyObject *kwargs) {
17375 PyObject *resultobj;
17376 wxDateTime result;
17377 char *kwnames[] = {
17378 NULL
17379 };
17380
17381 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_Now",kwnames)) goto fail;
17382 {
17383 PyThreadState* __tstate = wxPyBeginAllowThreads();
17384 result = wxDateTime::Now();
17385
17386 wxPyEndAllowThreads(__tstate);
17387 if (PyErr_Occurred()) SWIG_fail;
17388 }
17389 {
17390 wxDateTime * resultptr;
17391 resultptr = new wxDateTime((wxDateTime &) result);
17392 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
17393 }
17394 return resultobj;
17395 fail:
17396 return NULL;
17397 }
17398
17399
17400 static PyObject *_wrap_DateTime_UNow(PyObject *self, PyObject *args, PyObject *kwargs) {
17401 PyObject *resultobj;
17402 wxDateTime result;
17403 char *kwnames[] = {
17404 NULL
17405 };
17406
17407 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_UNow",kwnames)) goto fail;
17408 {
17409 PyThreadState* __tstate = wxPyBeginAllowThreads();
17410 result = wxDateTime::UNow();
17411
17412 wxPyEndAllowThreads(__tstate);
17413 if (PyErr_Occurred()) SWIG_fail;
17414 }
17415 {
17416 wxDateTime * resultptr;
17417 resultptr = new wxDateTime((wxDateTime &) result);
17418 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
17419 }
17420 return resultobj;
17421 fail:
17422 return NULL;
17423 }
17424
17425
17426 static PyObject *_wrap_DateTime_Today(PyObject *self, PyObject *args, PyObject *kwargs) {
17427 PyObject *resultobj;
17428 wxDateTime result;
17429 char *kwnames[] = {
17430 NULL
17431 };
17432
17433 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_Today",kwnames)) goto fail;
17434 {
17435 PyThreadState* __tstate = wxPyBeginAllowThreads();
17436 result = wxDateTime::Today();
17437
17438 wxPyEndAllowThreads(__tstate);
17439 if (PyErr_Occurred()) SWIG_fail;
17440 }
17441 {
17442 wxDateTime * resultptr;
17443 resultptr = new wxDateTime((wxDateTime &) result);
17444 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
17445 }
17446 return resultobj;
17447 fail:
17448 return NULL;
17449 }
17450
17451
17452 static PyObject *_wrap_new_DateTime(PyObject *self, PyObject *args, PyObject *kwargs) {
17453 PyObject *resultobj;
17454 wxDateTime *result;
17455 char *kwnames[] = {
17456 NULL
17457 };
17458
17459 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DateTime",kwnames)) goto fail;
17460 {
17461 PyThreadState* __tstate = wxPyBeginAllowThreads();
17462 result = (wxDateTime *)new wxDateTime();
17463
17464 wxPyEndAllowThreads(__tstate);
17465 if (PyErr_Occurred()) SWIG_fail;
17466 }
17467 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
17468 return resultobj;
17469 fail:
17470 return NULL;
17471 }
17472
17473
17474 static PyObject *_wrap_new_DateTimeFromTimeT(PyObject *self, PyObject *args, PyObject *kwargs) {
17475 PyObject *resultobj;
17476 time_t arg1 ;
17477 wxDateTime *result;
17478 PyObject * obj0 = 0 ;
17479 char *kwnames[] = {
17480 (char *) "timet", NULL
17481 };
17482
17483 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DateTimeFromTimeT",kwnames,&obj0)) goto fail;
17484 arg1 = (time_t) SWIG_AsUnsignedInt(obj0);
17485 if (PyErr_Occurred()) SWIG_fail;
17486 {
17487 PyThreadState* __tstate = wxPyBeginAllowThreads();
17488 result = (wxDateTime *)new wxDateTime(arg1);
17489
17490 wxPyEndAllowThreads(__tstate);
17491 if (PyErr_Occurred()) SWIG_fail;
17492 }
17493 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
17494 return resultobj;
17495 fail:
17496 return NULL;
17497 }
17498
17499
17500 static PyObject *_wrap_new_DateTimeFromJDN(PyObject *self, PyObject *args, PyObject *kwargs) {
17501 PyObject *resultobj;
17502 double arg1 ;
17503 wxDateTime *result;
17504 PyObject * obj0 = 0 ;
17505 char *kwnames[] = {
17506 (char *) "jdn", NULL
17507 };
17508
17509 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DateTimeFromJDN",kwnames,&obj0)) goto fail;
17510 arg1 = (double) SWIG_AsDouble(obj0);
17511 if (PyErr_Occurred()) SWIG_fail;
17512 {
17513 PyThreadState* __tstate = wxPyBeginAllowThreads();
17514 result = (wxDateTime *)new wxDateTime(arg1);
17515
17516 wxPyEndAllowThreads(__tstate);
17517 if (PyErr_Occurred()) SWIG_fail;
17518 }
17519 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
17520 return resultobj;
17521 fail:
17522 return NULL;
17523 }
17524
17525
17526 static PyObject *_wrap_new_DateTimeFromHMS(PyObject *self, PyObject *args, PyObject *kwargs) {
17527 PyObject *resultobj;
17528 int arg1 ;
17529 int arg2 = (int) 0 ;
17530 int arg3 = (int) 0 ;
17531 int arg4 = (int) 0 ;
17532 wxDateTime *result;
17533 PyObject * obj0 = 0 ;
17534 PyObject * obj1 = 0 ;
17535 PyObject * obj2 = 0 ;
17536 PyObject * obj3 = 0 ;
17537 char *kwnames[] = {
17538 (char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL
17539 };
17540
17541 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:new_DateTimeFromHMS",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
17542 arg1 = (int) SWIG_AsInt(obj0);
17543 if (PyErr_Occurred()) SWIG_fail;
17544 if (obj1) {
17545 arg2 = (int) SWIG_AsInt(obj1);
17546 if (PyErr_Occurred()) SWIG_fail;
17547 }
17548 if (obj2) {
17549 arg3 = (int) SWIG_AsInt(obj2);
17550 if (PyErr_Occurred()) SWIG_fail;
17551 }
17552 if (obj3) {
17553 arg4 = (int) SWIG_AsInt(obj3);
17554 if (PyErr_Occurred()) SWIG_fail;
17555 }
17556 {
17557 PyThreadState* __tstate = wxPyBeginAllowThreads();
17558 result = (wxDateTime *)new wxDateTime(arg1,arg2,arg3,arg4);
17559
17560 wxPyEndAllowThreads(__tstate);
17561 if (PyErr_Occurred()) SWIG_fail;
17562 }
17563 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
17564 return resultobj;
17565 fail:
17566 return NULL;
17567 }
17568
17569
17570 static PyObject *_wrap_new_DateTimeFromDMY(PyObject *self, PyObject *args, PyObject *kwargs) {
17571 PyObject *resultobj;
17572 int arg1 ;
17573 int arg2 = (int) wxDateTime::Inv_Month ;
17574 int arg3 = (int) wxDateTime::Inv_Year ;
17575 int arg4 = (int) 0 ;
17576 int arg5 = (int) 0 ;
17577 int arg6 = (int) 0 ;
17578 int arg7 = (int) 0 ;
17579 wxDateTime *result;
17580 PyObject * obj0 = 0 ;
17581 PyObject * obj1 = 0 ;
17582 PyObject * obj2 = 0 ;
17583 PyObject * obj3 = 0 ;
17584 PyObject * obj4 = 0 ;
17585 PyObject * obj5 = 0 ;
17586 PyObject * obj6 = 0 ;
17587 char *kwnames[] = {
17588 (char *) "day",(char *) "month",(char *) "year",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL
17589 };
17590
17591 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_DateTimeFromDMY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
17592 arg1 = (int) SWIG_AsInt(obj0);
17593 if (PyErr_Occurred()) SWIG_fail;
17594 if (obj1) {
17595 arg2 = (wxDateTime::Month) SWIG_AsInt(obj1);
17596 if (PyErr_Occurred()) SWIG_fail;
17597 }
17598 if (obj2) {
17599 arg3 = (int) SWIG_AsInt(obj2);
17600 if (PyErr_Occurred()) SWIG_fail;
17601 }
17602 if (obj3) {
17603 arg4 = (int) SWIG_AsInt(obj3);
17604 if (PyErr_Occurred()) SWIG_fail;
17605 }
17606 if (obj4) {
17607 arg5 = (int) SWIG_AsInt(obj4);
17608 if (PyErr_Occurred()) SWIG_fail;
17609 }
17610 if (obj5) {
17611 arg6 = (int) SWIG_AsInt(obj5);
17612 if (PyErr_Occurred()) SWIG_fail;
17613 }
17614 if (obj6) {
17615 arg7 = (int) SWIG_AsInt(obj6);
17616 if (PyErr_Occurred()) SWIG_fail;
17617 }
17618 {
17619 PyThreadState* __tstate = wxPyBeginAllowThreads();
17620 result = (wxDateTime *)new wxDateTime(arg1,(wxDateTime::Month )arg2,arg3,arg4,arg5,arg6,arg7);
17621
17622 wxPyEndAllowThreads(__tstate);
17623 if (PyErr_Occurred()) SWIG_fail;
17624 }
17625 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
17626 return resultobj;
17627 fail:
17628 return NULL;
17629 }
17630
17631
17632 static PyObject *_wrap_delete_DateTime(PyObject *self, PyObject *args, PyObject *kwargs) {
17633 PyObject *resultobj;
17634 wxDateTime *arg1 = (wxDateTime *) 0 ;
17635 PyObject * obj0 = 0 ;
17636 char *kwnames[] = {
17637 (char *) "self", NULL
17638 };
17639
17640 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DateTime",kwnames,&obj0)) goto fail;
17641 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17642 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17643 {
17644 PyThreadState* __tstate = wxPyBeginAllowThreads();
17645 delete arg1;
17646
17647 wxPyEndAllowThreads(__tstate);
17648 if (PyErr_Occurred()) SWIG_fail;
17649 }
17650 Py_INCREF(Py_None); resultobj = Py_None;
17651 return resultobj;
17652 fail:
17653 return NULL;
17654 }
17655
17656
17657 static PyObject *_wrap_DateTime_SetToCurrent(PyObject *self, PyObject *args, PyObject *kwargs) {
17658 PyObject *resultobj;
17659 wxDateTime *arg1 = (wxDateTime *) 0 ;
17660 wxDateTime *result;
17661 PyObject * obj0 = 0 ;
17662 char *kwnames[] = {
17663 (char *) "self", NULL
17664 };
17665
17666 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_SetToCurrent",kwnames,&obj0)) goto fail;
17667 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17668 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17669 {
17670 PyThreadState* __tstate = wxPyBeginAllowThreads();
17671 {
17672 wxDateTime &_result_ref = (arg1)->SetToCurrent();
17673 result = (wxDateTime *) &_result_ref;
17674 }
17675
17676 wxPyEndAllowThreads(__tstate);
17677 if (PyErr_Occurred()) SWIG_fail;
17678 }
17679 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17680 return resultobj;
17681 fail:
17682 return NULL;
17683 }
17684
17685
17686 static PyObject *_wrap_DateTime_SetTimeT(PyObject *self, PyObject *args, PyObject *kwargs) {
17687 PyObject *resultobj;
17688 wxDateTime *arg1 = (wxDateTime *) 0 ;
17689 time_t arg2 ;
17690 wxDateTime *result;
17691 PyObject * obj0 = 0 ;
17692 PyObject * obj1 = 0 ;
17693 char *kwnames[] = {
17694 (char *) "self",(char *) "timet", NULL
17695 };
17696
17697 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetTimeT",kwnames,&obj0,&obj1)) goto fail;
17698 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17699 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17700 arg2 = (time_t) SWIG_AsUnsignedInt(obj1);
17701 if (PyErr_Occurred()) SWIG_fail;
17702 {
17703 PyThreadState* __tstate = wxPyBeginAllowThreads();
17704 {
17705 wxDateTime &_result_ref = (arg1)->Set(arg2);
17706 result = (wxDateTime *) &_result_ref;
17707 }
17708
17709 wxPyEndAllowThreads(__tstate);
17710 if (PyErr_Occurred()) SWIG_fail;
17711 }
17712 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17713 return resultobj;
17714 fail:
17715 return NULL;
17716 }
17717
17718
17719 static PyObject *_wrap_DateTime_SetJDN(PyObject *self, PyObject *args, PyObject *kwargs) {
17720 PyObject *resultobj;
17721 wxDateTime *arg1 = (wxDateTime *) 0 ;
17722 double arg2 ;
17723 wxDateTime *result;
17724 PyObject * obj0 = 0 ;
17725 PyObject * obj1 = 0 ;
17726 char *kwnames[] = {
17727 (char *) "self",(char *) "jdn", NULL
17728 };
17729
17730 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetJDN",kwnames,&obj0,&obj1)) goto fail;
17731 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17732 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17733 arg2 = (double) SWIG_AsDouble(obj1);
17734 if (PyErr_Occurred()) SWIG_fail;
17735 {
17736 PyThreadState* __tstate = wxPyBeginAllowThreads();
17737 {
17738 wxDateTime &_result_ref = (arg1)->Set(arg2);
17739 result = (wxDateTime *) &_result_ref;
17740 }
17741
17742 wxPyEndAllowThreads(__tstate);
17743 if (PyErr_Occurred()) SWIG_fail;
17744 }
17745 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17746 return resultobj;
17747 fail:
17748 return NULL;
17749 }
17750
17751
17752 static PyObject *_wrap_DateTime_SetHMS(PyObject *self, PyObject *args, PyObject *kwargs) {
17753 PyObject *resultobj;
17754 wxDateTime *arg1 = (wxDateTime *) 0 ;
17755 int arg2 ;
17756 int arg3 = (int) 0 ;
17757 int arg4 = (int) 0 ;
17758 int arg5 = (int) 0 ;
17759 wxDateTime *result;
17760 PyObject * obj0 = 0 ;
17761 PyObject * obj1 = 0 ;
17762 PyObject * obj2 = 0 ;
17763 PyObject * obj3 = 0 ;
17764 PyObject * obj4 = 0 ;
17765 char *kwnames[] = {
17766 (char *) "self",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL
17767 };
17768
17769 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DateTime_SetHMS",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
17770 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17771 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17772 arg2 = (int) SWIG_AsInt(obj1);
17773 if (PyErr_Occurred()) SWIG_fail;
17774 if (obj2) {
17775 arg3 = (int) SWIG_AsInt(obj2);
17776 if (PyErr_Occurred()) SWIG_fail;
17777 }
17778 if (obj3) {
17779 arg4 = (int) SWIG_AsInt(obj3);
17780 if (PyErr_Occurred()) SWIG_fail;
17781 }
17782 if (obj4) {
17783 arg5 = (int) SWIG_AsInt(obj4);
17784 if (PyErr_Occurred()) SWIG_fail;
17785 }
17786 {
17787 PyThreadState* __tstate = wxPyBeginAllowThreads();
17788 {
17789 wxDateTime &_result_ref = (arg1)->Set(arg2,arg3,arg4,arg5);
17790 result = (wxDateTime *) &_result_ref;
17791 }
17792
17793 wxPyEndAllowThreads(__tstate);
17794 if (PyErr_Occurred()) SWIG_fail;
17795 }
17796 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17797 return resultobj;
17798 fail:
17799 return NULL;
17800 }
17801
17802
17803 static PyObject *_wrap_DateTime_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
17804 PyObject *resultobj;
17805 wxDateTime *arg1 = (wxDateTime *) 0 ;
17806 int arg2 ;
17807 int arg3 = (int) wxDateTime::Inv_Month ;
17808 int arg4 = (int) wxDateTime::Inv_Year ;
17809 int arg5 = (int) 0 ;
17810 int arg6 = (int) 0 ;
17811 int arg7 = (int) 0 ;
17812 int arg8 = (int) 0 ;
17813 wxDateTime *result;
17814 PyObject * obj0 = 0 ;
17815 PyObject * obj1 = 0 ;
17816 PyObject * obj2 = 0 ;
17817 PyObject * obj3 = 0 ;
17818 PyObject * obj4 = 0 ;
17819 PyObject * obj5 = 0 ;
17820 PyObject * obj6 = 0 ;
17821 PyObject * obj7 = 0 ;
17822 char *kwnames[] = {
17823 (char *) "self",(char *) "day",(char *) "month",(char *) "year",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL
17824 };
17825
17826 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:DateTime_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
17827 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17828 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17829 arg2 = (int) SWIG_AsInt(obj1);
17830 if (PyErr_Occurred()) SWIG_fail;
17831 if (obj2) {
17832 arg3 = (wxDateTime::Month) SWIG_AsInt(obj2);
17833 if (PyErr_Occurred()) SWIG_fail;
17834 }
17835 if (obj3) {
17836 arg4 = (int) SWIG_AsInt(obj3);
17837 if (PyErr_Occurred()) SWIG_fail;
17838 }
17839 if (obj4) {
17840 arg5 = (int) SWIG_AsInt(obj4);
17841 if (PyErr_Occurred()) SWIG_fail;
17842 }
17843 if (obj5) {
17844 arg6 = (int) SWIG_AsInt(obj5);
17845 if (PyErr_Occurred()) SWIG_fail;
17846 }
17847 if (obj6) {
17848 arg7 = (int) SWIG_AsInt(obj6);
17849 if (PyErr_Occurred()) SWIG_fail;
17850 }
17851 if (obj7) {
17852 arg8 = (int) SWIG_AsInt(obj7);
17853 if (PyErr_Occurred()) SWIG_fail;
17854 }
17855 {
17856 PyThreadState* __tstate = wxPyBeginAllowThreads();
17857 {
17858 wxDateTime &_result_ref = (arg1)->Set(arg2,(wxDateTime::Month )arg3,arg4,arg5,arg6,arg7,arg8);
17859 result = (wxDateTime *) &_result_ref;
17860 }
17861
17862 wxPyEndAllowThreads(__tstate);
17863 if (PyErr_Occurred()) SWIG_fail;
17864 }
17865 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17866 return resultobj;
17867 fail:
17868 return NULL;
17869 }
17870
17871
17872 static PyObject *_wrap_DateTime_ResetTime(PyObject *self, PyObject *args, PyObject *kwargs) {
17873 PyObject *resultobj;
17874 wxDateTime *arg1 = (wxDateTime *) 0 ;
17875 wxDateTime *result;
17876 PyObject * obj0 = 0 ;
17877 char *kwnames[] = {
17878 (char *) "self", NULL
17879 };
17880
17881 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_ResetTime",kwnames,&obj0)) goto fail;
17882 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17883 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17884 {
17885 PyThreadState* __tstate = wxPyBeginAllowThreads();
17886 {
17887 wxDateTime &_result_ref = (arg1)->ResetTime();
17888 result = (wxDateTime *) &_result_ref;
17889 }
17890
17891 wxPyEndAllowThreads(__tstate);
17892 if (PyErr_Occurred()) SWIG_fail;
17893 }
17894 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17895 return resultobj;
17896 fail:
17897 return NULL;
17898 }
17899
17900
17901 static PyObject *_wrap_DateTime_SetYear(PyObject *self, PyObject *args, PyObject *kwargs) {
17902 PyObject *resultobj;
17903 wxDateTime *arg1 = (wxDateTime *) 0 ;
17904 int arg2 ;
17905 wxDateTime *result;
17906 PyObject * obj0 = 0 ;
17907 PyObject * obj1 = 0 ;
17908 char *kwnames[] = {
17909 (char *) "self",(char *) "year", NULL
17910 };
17911
17912 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetYear",kwnames,&obj0,&obj1)) goto fail;
17913 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17914 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17915 arg2 = (int) SWIG_AsInt(obj1);
17916 if (PyErr_Occurred()) SWIG_fail;
17917 {
17918 PyThreadState* __tstate = wxPyBeginAllowThreads();
17919 {
17920 wxDateTime &_result_ref = (arg1)->SetYear(arg2);
17921 result = (wxDateTime *) &_result_ref;
17922 }
17923
17924 wxPyEndAllowThreads(__tstate);
17925 if (PyErr_Occurred()) SWIG_fail;
17926 }
17927 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17928 return resultobj;
17929 fail:
17930 return NULL;
17931 }
17932
17933
17934 static PyObject *_wrap_DateTime_SetMonth(PyObject *self, PyObject *args, PyObject *kwargs) {
17935 PyObject *resultobj;
17936 wxDateTime *arg1 = (wxDateTime *) 0 ;
17937 int arg2 ;
17938 wxDateTime *result;
17939 PyObject * obj0 = 0 ;
17940 PyObject * obj1 = 0 ;
17941 char *kwnames[] = {
17942 (char *) "self",(char *) "month", NULL
17943 };
17944
17945 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMonth",kwnames,&obj0,&obj1)) goto fail;
17946 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17947 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17948 arg2 = (wxDateTime::Month) SWIG_AsInt(obj1);
17949 if (PyErr_Occurred()) SWIG_fail;
17950 {
17951 PyThreadState* __tstate = wxPyBeginAllowThreads();
17952 {
17953 wxDateTime &_result_ref = (arg1)->SetMonth((wxDateTime::Month )arg2);
17954 result = (wxDateTime *) &_result_ref;
17955 }
17956
17957 wxPyEndAllowThreads(__tstate);
17958 if (PyErr_Occurred()) SWIG_fail;
17959 }
17960 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17961 return resultobj;
17962 fail:
17963 return NULL;
17964 }
17965
17966
17967 static PyObject *_wrap_DateTime_SetDay(PyObject *self, PyObject *args, PyObject *kwargs) {
17968 PyObject *resultobj;
17969 wxDateTime *arg1 = (wxDateTime *) 0 ;
17970 int arg2 ;
17971 wxDateTime *result;
17972 PyObject * obj0 = 0 ;
17973 PyObject * obj1 = 0 ;
17974 char *kwnames[] = {
17975 (char *) "self",(char *) "day", NULL
17976 };
17977
17978 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetDay",kwnames,&obj0,&obj1)) goto fail;
17979 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17980 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17981 arg2 = (int) SWIG_AsInt(obj1);
17982 if (PyErr_Occurred()) SWIG_fail;
17983 {
17984 PyThreadState* __tstate = wxPyBeginAllowThreads();
17985 {
17986 wxDateTime &_result_ref = (arg1)->SetDay(arg2);
17987 result = (wxDateTime *) &_result_ref;
17988 }
17989
17990 wxPyEndAllowThreads(__tstate);
17991 if (PyErr_Occurred()) SWIG_fail;
17992 }
17993 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17994 return resultobj;
17995 fail:
17996 return NULL;
17997 }
17998
17999
18000 static PyObject *_wrap_DateTime_SetHour(PyObject *self, PyObject *args, PyObject *kwargs) {
18001 PyObject *resultobj;
18002 wxDateTime *arg1 = (wxDateTime *) 0 ;
18003 int arg2 ;
18004 wxDateTime *result;
18005 PyObject * obj0 = 0 ;
18006 PyObject * obj1 = 0 ;
18007 char *kwnames[] = {
18008 (char *) "self",(char *) "hour", NULL
18009 };
18010
18011 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetHour",kwnames,&obj0,&obj1)) goto fail;
18012 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18013 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18014 arg2 = (int) SWIG_AsInt(obj1);
18015 if (PyErr_Occurred()) SWIG_fail;
18016 {
18017 PyThreadState* __tstate = wxPyBeginAllowThreads();
18018 {
18019 wxDateTime &_result_ref = (arg1)->SetHour(arg2);
18020 result = (wxDateTime *) &_result_ref;
18021 }
18022
18023 wxPyEndAllowThreads(__tstate);
18024 if (PyErr_Occurred()) SWIG_fail;
18025 }
18026 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18027 return resultobj;
18028 fail:
18029 return NULL;
18030 }
18031
18032
18033 static PyObject *_wrap_DateTime_SetMinute(PyObject *self, PyObject *args, PyObject *kwargs) {
18034 PyObject *resultobj;
18035 wxDateTime *arg1 = (wxDateTime *) 0 ;
18036 int arg2 ;
18037 wxDateTime *result;
18038 PyObject * obj0 = 0 ;
18039 PyObject * obj1 = 0 ;
18040 char *kwnames[] = {
18041 (char *) "self",(char *) "minute", NULL
18042 };
18043
18044 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMinute",kwnames,&obj0,&obj1)) goto fail;
18045 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18046 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18047 arg2 = (int) SWIG_AsInt(obj1);
18048 if (PyErr_Occurred()) SWIG_fail;
18049 {
18050 PyThreadState* __tstate = wxPyBeginAllowThreads();
18051 {
18052 wxDateTime &_result_ref = (arg1)->SetMinute(arg2);
18053 result = (wxDateTime *) &_result_ref;
18054 }
18055
18056 wxPyEndAllowThreads(__tstate);
18057 if (PyErr_Occurred()) SWIG_fail;
18058 }
18059 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18060 return resultobj;
18061 fail:
18062 return NULL;
18063 }
18064
18065
18066 static PyObject *_wrap_DateTime_SetSecond(PyObject *self, PyObject *args, PyObject *kwargs) {
18067 PyObject *resultobj;
18068 wxDateTime *arg1 = (wxDateTime *) 0 ;
18069 int arg2 ;
18070 wxDateTime *result;
18071 PyObject * obj0 = 0 ;
18072 PyObject * obj1 = 0 ;
18073 char *kwnames[] = {
18074 (char *) "self",(char *) "second", NULL
18075 };
18076
18077 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetSecond",kwnames,&obj0,&obj1)) goto fail;
18078 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18079 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18080 arg2 = (int) SWIG_AsInt(obj1);
18081 if (PyErr_Occurred()) SWIG_fail;
18082 {
18083 PyThreadState* __tstate = wxPyBeginAllowThreads();
18084 {
18085 wxDateTime &_result_ref = (arg1)->SetSecond(arg2);
18086 result = (wxDateTime *) &_result_ref;
18087 }
18088
18089 wxPyEndAllowThreads(__tstate);
18090 if (PyErr_Occurred()) SWIG_fail;
18091 }
18092 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18093 return resultobj;
18094 fail:
18095 return NULL;
18096 }
18097
18098
18099 static PyObject *_wrap_DateTime_SetMillisecond(PyObject *self, PyObject *args, PyObject *kwargs) {
18100 PyObject *resultobj;
18101 wxDateTime *arg1 = (wxDateTime *) 0 ;
18102 int arg2 ;
18103 wxDateTime *result;
18104 PyObject * obj0 = 0 ;
18105 PyObject * obj1 = 0 ;
18106 char *kwnames[] = {
18107 (char *) "self",(char *) "millisecond", NULL
18108 };
18109
18110 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMillisecond",kwnames,&obj0,&obj1)) goto fail;
18111 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18112 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18113 arg2 = (int) SWIG_AsInt(obj1);
18114 if (PyErr_Occurred()) SWIG_fail;
18115 {
18116 PyThreadState* __tstate = wxPyBeginAllowThreads();
18117 {
18118 wxDateTime &_result_ref = (arg1)->SetMillisecond(arg2);
18119 result = (wxDateTime *) &_result_ref;
18120 }
18121
18122 wxPyEndAllowThreads(__tstate);
18123 if (PyErr_Occurred()) SWIG_fail;
18124 }
18125 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18126 return resultobj;
18127 fail:
18128 return NULL;
18129 }
18130
18131
18132 static PyObject *_wrap_DateTime_SetToWeekDayInSameWeek(PyObject *self, PyObject *args, PyObject *kwargs) {
18133 PyObject *resultobj;
18134 wxDateTime *arg1 = (wxDateTime *) 0 ;
18135 int arg2 ;
18136 int arg3 = (int) wxDateTime::Monday_First ;
18137 wxDateTime *result;
18138 PyObject * obj0 = 0 ;
18139 PyObject * obj1 = 0 ;
18140 PyObject * obj2 = 0 ;
18141 char *kwnames[] = {
18142 (char *) "self",(char *) "weekday",(char *) "flags", NULL
18143 };
18144
18145 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_SetToWeekDayInSameWeek",kwnames,&obj0,&obj1,&obj2)) goto fail;
18146 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18147 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18148 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
18149 if (PyErr_Occurred()) SWIG_fail;
18150 if (obj2) {
18151 arg3 = (wxDateTime::WeekFlags) SWIG_AsInt(obj2);
18152 if (PyErr_Occurred()) SWIG_fail;
18153 }
18154 {
18155 PyThreadState* __tstate = wxPyBeginAllowThreads();
18156 {
18157 wxDateTime &_result_ref = (arg1)->SetToWeekDayInSameWeek((wxDateTime::WeekDay )arg2,(wxDateTime::WeekFlags )arg3);
18158 result = (wxDateTime *) &_result_ref;
18159 }
18160
18161 wxPyEndAllowThreads(__tstate);
18162 if (PyErr_Occurred()) SWIG_fail;
18163 }
18164 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18165 return resultobj;
18166 fail:
18167 return NULL;
18168 }
18169
18170
18171 static PyObject *_wrap_DateTime_GetWeekDayInSameWeek(PyObject *self, PyObject *args, PyObject *kwargs) {
18172 PyObject *resultobj;
18173 wxDateTime *arg1 = (wxDateTime *) 0 ;
18174 int arg2 ;
18175 int arg3 = (int) wxDateTime::Monday_First ;
18176 wxDateTime result;
18177 PyObject * obj0 = 0 ;
18178 PyObject * obj1 = 0 ;
18179 PyObject * obj2 = 0 ;
18180 char *kwnames[] = {
18181 (char *) "self",(char *) "weekday",(char *) "flags", NULL
18182 };
18183
18184 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_GetWeekDayInSameWeek",kwnames,&obj0,&obj1,&obj2)) goto fail;
18185 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18186 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18187 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
18188 if (PyErr_Occurred()) SWIG_fail;
18189 if (obj2) {
18190 arg3 = (wxDateTime::WeekFlags) SWIG_AsInt(obj2);
18191 if (PyErr_Occurred()) SWIG_fail;
18192 }
18193 {
18194 PyThreadState* __tstate = wxPyBeginAllowThreads();
18195 result = (arg1)->GetWeekDayInSameWeek((wxDateTime::WeekDay )arg2,(wxDateTime::WeekFlags )arg3);
18196
18197 wxPyEndAllowThreads(__tstate);
18198 if (PyErr_Occurred()) SWIG_fail;
18199 }
18200 {
18201 wxDateTime * resultptr;
18202 resultptr = new wxDateTime((wxDateTime &) result);
18203 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18204 }
18205 return resultobj;
18206 fail:
18207 return NULL;
18208 }
18209
18210
18211 static PyObject *_wrap_DateTime_SetToNextWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18212 PyObject *resultobj;
18213 wxDateTime *arg1 = (wxDateTime *) 0 ;
18214 int arg2 ;
18215 wxDateTime *result;
18216 PyObject * obj0 = 0 ;
18217 PyObject * obj1 = 0 ;
18218 char *kwnames[] = {
18219 (char *) "self",(char *) "weekday", NULL
18220 };
18221
18222 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToNextWeekDay",kwnames,&obj0,&obj1)) goto fail;
18223 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18224 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18225 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
18226 if (PyErr_Occurred()) SWIG_fail;
18227 {
18228 PyThreadState* __tstate = wxPyBeginAllowThreads();
18229 {
18230 wxDateTime &_result_ref = (arg1)->SetToNextWeekDay((wxDateTime::WeekDay )arg2);
18231 result = (wxDateTime *) &_result_ref;
18232 }
18233
18234 wxPyEndAllowThreads(__tstate);
18235 if (PyErr_Occurred()) SWIG_fail;
18236 }
18237 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18238 return resultobj;
18239 fail:
18240 return NULL;
18241 }
18242
18243
18244 static PyObject *_wrap_DateTime_GetNextWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18245 PyObject *resultobj;
18246 wxDateTime *arg1 = (wxDateTime *) 0 ;
18247 int arg2 ;
18248 wxDateTime result;
18249 PyObject * obj0 = 0 ;
18250 PyObject * obj1 = 0 ;
18251 char *kwnames[] = {
18252 (char *) "self",(char *) "weekday", NULL
18253 };
18254
18255 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetNextWeekDay",kwnames,&obj0,&obj1)) goto fail;
18256 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18257 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18258 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
18259 if (PyErr_Occurred()) SWIG_fail;
18260 {
18261 PyThreadState* __tstate = wxPyBeginAllowThreads();
18262 result = (arg1)->GetNextWeekDay((wxDateTime::WeekDay )arg2);
18263
18264 wxPyEndAllowThreads(__tstate);
18265 if (PyErr_Occurred()) SWIG_fail;
18266 }
18267 {
18268 wxDateTime * resultptr;
18269 resultptr = new wxDateTime((wxDateTime &) result);
18270 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18271 }
18272 return resultobj;
18273 fail:
18274 return NULL;
18275 }
18276
18277
18278 static PyObject *_wrap_DateTime_SetToPrevWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18279 PyObject *resultobj;
18280 wxDateTime *arg1 = (wxDateTime *) 0 ;
18281 int arg2 ;
18282 wxDateTime *result;
18283 PyObject * obj0 = 0 ;
18284 PyObject * obj1 = 0 ;
18285 char *kwnames[] = {
18286 (char *) "self",(char *) "weekday", NULL
18287 };
18288
18289 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToPrevWeekDay",kwnames,&obj0,&obj1)) goto fail;
18290 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18291 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18292 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
18293 if (PyErr_Occurred()) SWIG_fail;
18294 {
18295 PyThreadState* __tstate = wxPyBeginAllowThreads();
18296 {
18297 wxDateTime &_result_ref = (arg1)->SetToPrevWeekDay((wxDateTime::WeekDay )arg2);
18298 result = (wxDateTime *) &_result_ref;
18299 }
18300
18301 wxPyEndAllowThreads(__tstate);
18302 if (PyErr_Occurred()) SWIG_fail;
18303 }
18304 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18305 return resultobj;
18306 fail:
18307 return NULL;
18308 }
18309
18310
18311 static PyObject *_wrap_DateTime_GetPrevWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18312 PyObject *resultobj;
18313 wxDateTime *arg1 = (wxDateTime *) 0 ;
18314 int arg2 ;
18315 wxDateTime result;
18316 PyObject * obj0 = 0 ;
18317 PyObject * obj1 = 0 ;
18318 char *kwnames[] = {
18319 (char *) "self",(char *) "weekday", NULL
18320 };
18321
18322 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetPrevWeekDay",kwnames,&obj0,&obj1)) goto fail;
18323 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18324 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18325 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
18326 if (PyErr_Occurred()) SWIG_fail;
18327 {
18328 PyThreadState* __tstate = wxPyBeginAllowThreads();
18329 result = (arg1)->GetPrevWeekDay((wxDateTime::WeekDay )arg2);
18330
18331 wxPyEndAllowThreads(__tstate);
18332 if (PyErr_Occurred()) SWIG_fail;
18333 }
18334 {
18335 wxDateTime * resultptr;
18336 resultptr = new wxDateTime((wxDateTime &) result);
18337 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18338 }
18339 return resultobj;
18340 fail:
18341 return NULL;
18342 }
18343
18344
18345 static PyObject *_wrap_DateTime_SetToWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18346 PyObject *resultobj;
18347 wxDateTime *arg1 = (wxDateTime *) 0 ;
18348 int arg2 ;
18349 int arg3 = (int) 1 ;
18350 int arg4 = (int) wxDateTime::Inv_Month ;
18351 int arg5 = (int) wxDateTime::Inv_Year ;
18352 bool result;
18353 PyObject * obj0 = 0 ;
18354 PyObject * obj1 = 0 ;
18355 PyObject * obj2 = 0 ;
18356 PyObject * obj3 = 0 ;
18357 PyObject * obj4 = 0 ;
18358 char *kwnames[] = {
18359 (char *) "self",(char *) "weekday",(char *) "n",(char *) "month",(char *) "year", NULL
18360 };
18361
18362 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DateTime_SetToWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
18363 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18364 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18365 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
18366 if (PyErr_Occurred()) SWIG_fail;
18367 if (obj2) {
18368 arg3 = (int) SWIG_AsInt(obj2);
18369 if (PyErr_Occurred()) SWIG_fail;
18370 }
18371 if (obj3) {
18372 arg4 = (wxDateTime::Month) SWIG_AsInt(obj3);
18373 if (PyErr_Occurred()) SWIG_fail;
18374 }
18375 if (obj4) {
18376 arg5 = (int) SWIG_AsInt(obj4);
18377 if (PyErr_Occurred()) SWIG_fail;
18378 }
18379 {
18380 PyThreadState* __tstate = wxPyBeginAllowThreads();
18381 result = (bool)(arg1)->SetToWeekDay((wxDateTime::WeekDay )arg2,arg3,(wxDateTime::Month )arg4,arg5);
18382
18383 wxPyEndAllowThreads(__tstate);
18384 if (PyErr_Occurred()) SWIG_fail;
18385 }
18386 {
18387 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18388 }
18389 return resultobj;
18390 fail:
18391 return NULL;
18392 }
18393
18394
18395 static PyObject *_wrap_DateTime_SetToLastWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18396 PyObject *resultobj;
18397 wxDateTime *arg1 = (wxDateTime *) 0 ;
18398 int arg2 ;
18399 int arg3 = (int) wxDateTime::Inv_Month ;
18400 int arg4 = (int) wxDateTime::Inv_Year ;
18401 bool result;
18402 PyObject * obj0 = 0 ;
18403 PyObject * obj1 = 0 ;
18404 PyObject * obj2 = 0 ;
18405 PyObject * obj3 = 0 ;
18406 char *kwnames[] = {
18407 (char *) "self",(char *) "weekday",(char *) "month",(char *) "year", NULL
18408 };
18409
18410 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_SetToLastWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18411 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18412 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18413 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
18414 if (PyErr_Occurred()) SWIG_fail;
18415 if (obj2) {
18416 arg3 = (wxDateTime::Month) SWIG_AsInt(obj2);
18417 if (PyErr_Occurred()) SWIG_fail;
18418 }
18419 if (obj3) {
18420 arg4 = (int) SWIG_AsInt(obj3);
18421 if (PyErr_Occurred()) SWIG_fail;
18422 }
18423 {
18424 PyThreadState* __tstate = wxPyBeginAllowThreads();
18425 result = (bool)(arg1)->SetToLastWeekDay((wxDateTime::WeekDay )arg2,(wxDateTime::Month )arg3,arg4);
18426
18427 wxPyEndAllowThreads(__tstate);
18428 if (PyErr_Occurred()) SWIG_fail;
18429 }
18430 {
18431 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18432 }
18433 return resultobj;
18434 fail:
18435 return NULL;
18436 }
18437
18438
18439 static PyObject *_wrap_DateTime_GetLastWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18440 PyObject *resultobj;
18441 wxDateTime *arg1 = (wxDateTime *) 0 ;
18442 int arg2 ;
18443 int arg3 = (int) wxDateTime::Inv_Month ;
18444 int arg4 = (int) wxDateTime::Inv_Year ;
18445 wxDateTime result;
18446 PyObject * obj0 = 0 ;
18447 PyObject * obj1 = 0 ;
18448 PyObject * obj2 = 0 ;
18449 PyObject * obj3 = 0 ;
18450 char *kwnames[] = {
18451 (char *) "self",(char *) "weekday",(char *) "month",(char *) "year", NULL
18452 };
18453
18454 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_GetLastWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18455 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18456 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18457 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
18458 if (PyErr_Occurred()) SWIG_fail;
18459 if (obj2) {
18460 arg3 = (wxDateTime::Month) SWIG_AsInt(obj2);
18461 if (PyErr_Occurred()) SWIG_fail;
18462 }
18463 if (obj3) {
18464 arg4 = (int) SWIG_AsInt(obj3);
18465 if (PyErr_Occurred()) SWIG_fail;
18466 }
18467 {
18468 PyThreadState* __tstate = wxPyBeginAllowThreads();
18469 result = (arg1)->GetLastWeekDay((wxDateTime::WeekDay )arg2,(wxDateTime::Month )arg3,arg4);
18470
18471 wxPyEndAllowThreads(__tstate);
18472 if (PyErr_Occurred()) SWIG_fail;
18473 }
18474 {
18475 wxDateTime * resultptr;
18476 resultptr = new wxDateTime((wxDateTime &) result);
18477 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18478 }
18479 return resultobj;
18480 fail:
18481 return NULL;
18482 }
18483
18484
18485 static PyObject *_wrap_DateTime_SetToTheWeek(PyObject *self, PyObject *args, PyObject *kwargs) {
18486 PyObject *resultobj;
18487 wxDateTime *arg1 = (wxDateTime *) 0 ;
18488 int arg2 ;
18489 int arg3 = (int) wxDateTime::Mon ;
18490 int arg4 = (int) wxDateTime::Monday_First ;
18491 bool result;
18492 PyObject * obj0 = 0 ;
18493 PyObject * obj1 = 0 ;
18494 PyObject * obj2 = 0 ;
18495 PyObject * obj3 = 0 ;
18496 char *kwnames[] = {
18497 (char *) "self",(char *) "numWeek",(char *) "weekday",(char *) "flags", NULL
18498 };
18499
18500 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_SetToTheWeek",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18501 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18502 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18503 arg2 = (int) SWIG_AsInt(obj1);
18504 if (PyErr_Occurred()) SWIG_fail;
18505 if (obj2) {
18506 arg3 = (wxDateTime::WeekDay) SWIG_AsInt(obj2);
18507 if (PyErr_Occurred()) SWIG_fail;
18508 }
18509 if (obj3) {
18510 arg4 = (wxDateTime::WeekFlags) SWIG_AsInt(obj3);
18511 if (PyErr_Occurred()) SWIG_fail;
18512 }
18513 {
18514 PyThreadState* __tstate = wxPyBeginAllowThreads();
18515 result = (bool)(arg1)->SetToTheWeek(arg2,(wxDateTime::WeekDay )arg3,(wxDateTime::WeekFlags )arg4);
18516
18517 wxPyEndAllowThreads(__tstate);
18518 if (PyErr_Occurred()) SWIG_fail;
18519 }
18520 {
18521 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18522 }
18523 return resultobj;
18524 fail:
18525 return NULL;
18526 }
18527
18528
18529 static PyObject *_wrap_DateTime_GetWeek(PyObject *self, PyObject *args, PyObject *kwargs) {
18530 PyObject *resultobj;
18531 wxDateTime *arg1 = (wxDateTime *) 0 ;
18532 int arg2 ;
18533 int arg3 = (int) wxDateTime::Mon ;
18534 int arg4 = (int) wxDateTime::Monday_First ;
18535 wxDateTime result;
18536 PyObject * obj0 = 0 ;
18537 PyObject * obj1 = 0 ;
18538 PyObject * obj2 = 0 ;
18539 PyObject * obj3 = 0 ;
18540 char *kwnames[] = {
18541 (char *) "self",(char *) "numWeek",(char *) "weekday",(char *) "flags", NULL
18542 };
18543
18544 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_GetWeek",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18545 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18546 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18547 arg2 = (int) SWIG_AsInt(obj1);
18548 if (PyErr_Occurred()) SWIG_fail;
18549 if (obj2) {
18550 arg3 = (wxDateTime::WeekDay) SWIG_AsInt(obj2);
18551 if (PyErr_Occurred()) SWIG_fail;
18552 }
18553 if (obj3) {
18554 arg4 = (wxDateTime::WeekFlags) SWIG_AsInt(obj3);
18555 if (PyErr_Occurred()) SWIG_fail;
18556 }
18557 {
18558 PyThreadState* __tstate = wxPyBeginAllowThreads();
18559 result = (arg1)->GetWeek(arg2,(wxDateTime::WeekDay )arg3,(wxDateTime::WeekFlags )arg4);
18560
18561 wxPyEndAllowThreads(__tstate);
18562 if (PyErr_Occurred()) SWIG_fail;
18563 }
18564 {
18565 wxDateTime * resultptr;
18566 resultptr = new wxDateTime((wxDateTime &) result);
18567 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18568 }
18569 return resultobj;
18570 fail:
18571 return NULL;
18572 }
18573
18574
18575 static PyObject *_wrap_DateTime_SetToLastMonthDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18576 PyObject *resultobj;
18577 wxDateTime *arg1 = (wxDateTime *) 0 ;
18578 int arg2 = (int) wxDateTime::Inv_Month ;
18579 int arg3 = (int) wxDateTime::Inv_Year ;
18580 wxDateTime *result;
18581 PyObject * obj0 = 0 ;
18582 PyObject * obj1 = 0 ;
18583 PyObject * obj2 = 0 ;
18584 char *kwnames[] = {
18585 (char *) "self",(char *) "month",(char *) "year", NULL
18586 };
18587
18588 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_SetToLastMonthDay",kwnames,&obj0,&obj1,&obj2)) goto fail;
18589 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18590 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18591 if (obj1) {
18592 arg2 = (wxDateTime::Month) SWIG_AsInt(obj1);
18593 if (PyErr_Occurred()) SWIG_fail;
18594 }
18595 if (obj2) {
18596 arg3 = (int) SWIG_AsInt(obj2);
18597 if (PyErr_Occurred()) SWIG_fail;
18598 }
18599 {
18600 PyThreadState* __tstate = wxPyBeginAllowThreads();
18601 {
18602 wxDateTime &_result_ref = (arg1)->SetToLastMonthDay((wxDateTime::Month )arg2,arg3);
18603 result = (wxDateTime *) &_result_ref;
18604 }
18605
18606 wxPyEndAllowThreads(__tstate);
18607 if (PyErr_Occurred()) SWIG_fail;
18608 }
18609 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18610 return resultobj;
18611 fail:
18612 return NULL;
18613 }
18614
18615
18616 static PyObject *_wrap_DateTime_GetLastMonthDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18617 PyObject *resultobj;
18618 wxDateTime *arg1 = (wxDateTime *) 0 ;
18619 int arg2 = (int) wxDateTime::Inv_Month ;
18620 int arg3 = (int) wxDateTime::Inv_Year ;
18621 wxDateTime result;
18622 PyObject * obj0 = 0 ;
18623 PyObject * obj1 = 0 ;
18624 PyObject * obj2 = 0 ;
18625 char *kwnames[] = {
18626 (char *) "self",(char *) "month",(char *) "year", NULL
18627 };
18628
18629 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetLastMonthDay",kwnames,&obj0,&obj1,&obj2)) goto fail;
18630 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18631 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18632 if (obj1) {
18633 arg2 = (wxDateTime::Month) SWIG_AsInt(obj1);
18634 if (PyErr_Occurred()) SWIG_fail;
18635 }
18636 if (obj2) {
18637 arg3 = (int) SWIG_AsInt(obj2);
18638 if (PyErr_Occurred()) SWIG_fail;
18639 }
18640 {
18641 PyThreadState* __tstate = wxPyBeginAllowThreads();
18642 result = (arg1)->GetLastMonthDay((wxDateTime::Month )arg2,arg3);
18643
18644 wxPyEndAllowThreads(__tstate);
18645 if (PyErr_Occurred()) SWIG_fail;
18646 }
18647 {
18648 wxDateTime * resultptr;
18649 resultptr = new wxDateTime((wxDateTime &) result);
18650 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18651 }
18652 return resultobj;
18653 fail:
18654 return NULL;
18655 }
18656
18657
18658 static PyObject *_wrap_DateTime_SetToYearDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18659 PyObject *resultobj;
18660 wxDateTime *arg1 = (wxDateTime *) 0 ;
18661 int arg2 ;
18662 wxDateTime *result;
18663 PyObject * obj0 = 0 ;
18664 PyObject * obj1 = 0 ;
18665 char *kwnames[] = {
18666 (char *) "self",(char *) "yday", NULL
18667 };
18668
18669 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToYearDay",kwnames,&obj0,&obj1)) goto fail;
18670 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18671 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18672 arg2 = (int) SWIG_AsInt(obj1);
18673 if (PyErr_Occurred()) SWIG_fail;
18674 {
18675 PyThreadState* __tstate = wxPyBeginAllowThreads();
18676 {
18677 wxDateTime &_result_ref = (arg1)->SetToYearDay(arg2);
18678 result = (wxDateTime *) &_result_ref;
18679 }
18680
18681 wxPyEndAllowThreads(__tstate);
18682 if (PyErr_Occurred()) SWIG_fail;
18683 }
18684 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18685 return resultobj;
18686 fail:
18687 return NULL;
18688 }
18689
18690
18691 static PyObject *_wrap_DateTime_GetYearDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18692 PyObject *resultobj;
18693 wxDateTime *arg1 = (wxDateTime *) 0 ;
18694 int arg2 ;
18695 wxDateTime result;
18696 PyObject * obj0 = 0 ;
18697 PyObject * obj1 = 0 ;
18698 char *kwnames[] = {
18699 (char *) "self",(char *) "yday", NULL
18700 };
18701
18702 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetYearDay",kwnames,&obj0,&obj1)) goto fail;
18703 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18704 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18705 arg2 = (int) SWIG_AsInt(obj1);
18706 if (PyErr_Occurred()) SWIG_fail;
18707 {
18708 PyThreadState* __tstate = wxPyBeginAllowThreads();
18709 result = (arg1)->GetYearDay(arg2);
18710
18711 wxPyEndAllowThreads(__tstate);
18712 if (PyErr_Occurred()) SWIG_fail;
18713 }
18714 {
18715 wxDateTime * resultptr;
18716 resultptr = new wxDateTime((wxDateTime &) result);
18717 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18718 }
18719 return resultobj;
18720 fail:
18721 return NULL;
18722 }
18723
18724
18725 static PyObject *_wrap_DateTime_GetJulianDayNumber(PyObject *self, PyObject *args, PyObject *kwargs) {
18726 PyObject *resultobj;
18727 wxDateTime *arg1 = (wxDateTime *) 0 ;
18728 double result;
18729 PyObject * obj0 = 0 ;
18730 char *kwnames[] = {
18731 (char *) "self", NULL
18732 };
18733
18734 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetJulianDayNumber",kwnames,&obj0)) goto fail;
18735 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18736 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18737 {
18738 PyThreadState* __tstate = wxPyBeginAllowThreads();
18739 result = (double)(arg1)->GetJulianDayNumber();
18740
18741 wxPyEndAllowThreads(__tstate);
18742 if (PyErr_Occurred()) SWIG_fail;
18743 }
18744 resultobj = SWIG_FromDouble((double)result);
18745 return resultobj;
18746 fail:
18747 return NULL;
18748 }
18749
18750
18751 static PyObject *_wrap_DateTime_GetJDN(PyObject *self, PyObject *args, PyObject *kwargs) {
18752 PyObject *resultobj;
18753 wxDateTime *arg1 = (wxDateTime *) 0 ;
18754 double result;
18755 PyObject * obj0 = 0 ;
18756 char *kwnames[] = {
18757 (char *) "self", NULL
18758 };
18759
18760 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetJDN",kwnames,&obj0)) goto fail;
18761 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18762 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18763 {
18764 PyThreadState* __tstate = wxPyBeginAllowThreads();
18765 result = (double)(arg1)->GetJDN();
18766
18767 wxPyEndAllowThreads(__tstate);
18768 if (PyErr_Occurred()) SWIG_fail;
18769 }
18770 resultobj = SWIG_FromDouble((double)result);
18771 return resultobj;
18772 fail:
18773 return NULL;
18774 }
18775
18776
18777 static PyObject *_wrap_DateTime_GetModifiedJulianDayNumber(PyObject *self, PyObject *args, PyObject *kwargs) {
18778 PyObject *resultobj;
18779 wxDateTime *arg1 = (wxDateTime *) 0 ;
18780 double result;
18781 PyObject * obj0 = 0 ;
18782 char *kwnames[] = {
18783 (char *) "self", NULL
18784 };
18785
18786 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetModifiedJulianDayNumber",kwnames,&obj0)) goto fail;
18787 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18788 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18789 {
18790 PyThreadState* __tstate = wxPyBeginAllowThreads();
18791 result = (double)((wxDateTime const *)arg1)->GetModifiedJulianDayNumber();
18792
18793 wxPyEndAllowThreads(__tstate);
18794 if (PyErr_Occurred()) SWIG_fail;
18795 }
18796 resultobj = SWIG_FromDouble((double)result);
18797 return resultobj;
18798 fail:
18799 return NULL;
18800 }
18801
18802
18803 static PyObject *_wrap_DateTime_GetMJD(PyObject *self, PyObject *args, PyObject *kwargs) {
18804 PyObject *resultobj;
18805 wxDateTime *arg1 = (wxDateTime *) 0 ;
18806 double result;
18807 PyObject * obj0 = 0 ;
18808 char *kwnames[] = {
18809 (char *) "self", NULL
18810 };
18811
18812 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetMJD",kwnames,&obj0)) goto fail;
18813 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18814 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18815 {
18816 PyThreadState* __tstate = wxPyBeginAllowThreads();
18817 result = (double)(arg1)->GetMJD();
18818
18819 wxPyEndAllowThreads(__tstate);
18820 if (PyErr_Occurred()) SWIG_fail;
18821 }
18822 resultobj = SWIG_FromDouble((double)result);
18823 return resultobj;
18824 fail:
18825 return NULL;
18826 }
18827
18828
18829 static PyObject *_wrap_DateTime_GetRataDie(PyObject *self, PyObject *args, PyObject *kwargs) {
18830 PyObject *resultobj;
18831 wxDateTime *arg1 = (wxDateTime *) 0 ;
18832 double result;
18833 PyObject * obj0 = 0 ;
18834 char *kwnames[] = {
18835 (char *) "self", NULL
18836 };
18837
18838 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetRataDie",kwnames,&obj0)) goto fail;
18839 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18840 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18841 {
18842 PyThreadState* __tstate = wxPyBeginAllowThreads();
18843 result = (double)(arg1)->GetRataDie();
18844
18845 wxPyEndAllowThreads(__tstate);
18846 if (PyErr_Occurred()) SWIG_fail;
18847 }
18848 resultobj = SWIG_FromDouble((double)result);
18849 return resultobj;
18850 fail:
18851 return NULL;
18852 }
18853
18854
18855 static PyObject *_wrap_DateTime_ToTimezone(PyObject *self, PyObject *args, PyObject *kwargs) {
18856 PyObject *resultobj;
18857 wxDateTime *arg1 = (wxDateTime *) 0 ;
18858 wxDateTime::TimeZone *arg2 = 0 ;
18859 bool arg3 = (bool) False ;
18860 wxDateTime result;
18861 bool temp2 = False ;
18862 PyObject * obj0 = 0 ;
18863 PyObject * obj1 = 0 ;
18864 PyObject * obj2 = 0 ;
18865 char *kwnames[] = {
18866 (char *) "self",(char *) "tz",(char *) "noDST", NULL
18867 };
18868
18869 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_ToTimezone",kwnames,&obj0,&obj1,&obj2)) goto fail;
18870 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18871 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18872 {
18873 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
18874 temp2 = True;
18875 }
18876 if (obj2) {
18877 arg3 = (bool) SWIG_AsBool(obj2);
18878 if (PyErr_Occurred()) SWIG_fail;
18879 }
18880 {
18881 PyThreadState* __tstate = wxPyBeginAllowThreads();
18882 result = (arg1)->ToTimezone((wxDateTime::TimeZone const &)*arg2,arg3);
18883
18884 wxPyEndAllowThreads(__tstate);
18885 if (PyErr_Occurred()) SWIG_fail;
18886 }
18887 {
18888 wxDateTime * resultptr;
18889 resultptr = new wxDateTime((wxDateTime &) result);
18890 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18891 }
18892 {
18893 if (temp2) delete arg2;
18894 }
18895 return resultobj;
18896 fail:
18897 {
18898 if (temp2) delete arg2;
18899 }
18900 return NULL;
18901 }
18902
18903
18904 static PyObject *_wrap_DateTime_MakeTimezone(PyObject *self, PyObject *args, PyObject *kwargs) {
18905 PyObject *resultobj;
18906 wxDateTime *arg1 = (wxDateTime *) 0 ;
18907 wxDateTime::TimeZone *arg2 = 0 ;
18908 bool arg3 = (bool) False ;
18909 wxDateTime *result;
18910 bool temp2 = False ;
18911 PyObject * obj0 = 0 ;
18912 PyObject * obj1 = 0 ;
18913 PyObject * obj2 = 0 ;
18914 char *kwnames[] = {
18915 (char *) "self",(char *) "tz",(char *) "noDST", NULL
18916 };
18917
18918 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_MakeTimezone",kwnames,&obj0,&obj1,&obj2)) goto fail;
18919 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18920 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18921 {
18922 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
18923 temp2 = True;
18924 }
18925 if (obj2) {
18926 arg3 = (bool) SWIG_AsBool(obj2);
18927 if (PyErr_Occurred()) SWIG_fail;
18928 }
18929 {
18930 PyThreadState* __tstate = wxPyBeginAllowThreads();
18931 {
18932 wxDateTime &_result_ref = (arg1)->MakeTimezone((wxDateTime::TimeZone const &)*arg2,arg3);
18933 result = (wxDateTime *) &_result_ref;
18934 }
18935
18936 wxPyEndAllowThreads(__tstate);
18937 if (PyErr_Occurred()) SWIG_fail;
18938 }
18939 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18940 {
18941 if (temp2) delete arg2;
18942 }
18943 return resultobj;
18944 fail:
18945 {
18946 if (temp2) delete arg2;
18947 }
18948 return NULL;
18949 }
18950
18951
18952 static PyObject *_wrap_DateTime_ToGMT(PyObject *self, PyObject *args, PyObject *kwargs) {
18953 PyObject *resultobj;
18954 wxDateTime *arg1 = (wxDateTime *) 0 ;
18955 bool arg2 = (bool) False ;
18956 wxDateTime result;
18957 PyObject * obj0 = 0 ;
18958 PyObject * obj1 = 0 ;
18959 char *kwnames[] = {
18960 (char *) "self",(char *) "noDST", NULL
18961 };
18962
18963 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_ToGMT",kwnames,&obj0,&obj1)) goto fail;
18964 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18965 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18966 if (obj1) {
18967 arg2 = (bool) SWIG_AsBool(obj1);
18968 if (PyErr_Occurred()) SWIG_fail;
18969 }
18970 {
18971 PyThreadState* __tstate = wxPyBeginAllowThreads();
18972 result = (arg1)->ToGMT(arg2);
18973
18974 wxPyEndAllowThreads(__tstate);
18975 if (PyErr_Occurred()) SWIG_fail;
18976 }
18977 {
18978 wxDateTime * resultptr;
18979 resultptr = new wxDateTime((wxDateTime &) result);
18980 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18981 }
18982 return resultobj;
18983 fail:
18984 return NULL;
18985 }
18986
18987
18988 static PyObject *_wrap_DateTime_MakeGMT(PyObject *self, PyObject *args, PyObject *kwargs) {
18989 PyObject *resultobj;
18990 wxDateTime *arg1 = (wxDateTime *) 0 ;
18991 bool arg2 = (bool) False ;
18992 wxDateTime *result;
18993 PyObject * obj0 = 0 ;
18994 PyObject * obj1 = 0 ;
18995 char *kwnames[] = {
18996 (char *) "self",(char *) "noDST", NULL
18997 };
18998
18999 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_MakeGMT",kwnames,&obj0,&obj1)) goto fail;
19000 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19001 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19002 if (obj1) {
19003 arg2 = (bool) SWIG_AsBool(obj1);
19004 if (PyErr_Occurred()) SWIG_fail;
19005 }
19006 {
19007 PyThreadState* __tstate = wxPyBeginAllowThreads();
19008 {
19009 wxDateTime &_result_ref = (arg1)->MakeGMT(arg2);
19010 result = (wxDateTime *) &_result_ref;
19011 }
19012
19013 wxPyEndAllowThreads(__tstate);
19014 if (PyErr_Occurred()) SWIG_fail;
19015 }
19016 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
19017 return resultobj;
19018 fail:
19019 return NULL;
19020 }
19021
19022
19023 static PyObject *_wrap_DateTime_IsDST(PyObject *self, PyObject *args, PyObject *kwargs) {
19024 PyObject *resultobj;
19025 wxDateTime *arg1 = (wxDateTime *) 0 ;
19026 int arg2 = (int) wxDateTime::Country_Default ;
19027 int result;
19028 PyObject * obj0 = 0 ;
19029 PyObject * obj1 = 0 ;
19030 char *kwnames[] = {
19031 (char *) "self",(char *) "country", NULL
19032 };
19033
19034 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_IsDST",kwnames,&obj0,&obj1)) goto fail;
19035 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19036 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19037 if (obj1) {
19038 arg2 = (wxDateTime::Country) SWIG_AsInt(obj1);
19039 if (PyErr_Occurred()) SWIG_fail;
19040 }
19041 {
19042 PyThreadState* __tstate = wxPyBeginAllowThreads();
19043 result = (int)(arg1)->IsDST((wxDateTime::Country )arg2);
19044
19045 wxPyEndAllowThreads(__tstate);
19046 if (PyErr_Occurred()) SWIG_fail;
19047 }
19048 resultobj = SWIG_FromInt((int)result);
19049 return resultobj;
19050 fail:
19051 return NULL;
19052 }
19053
19054
19055 static PyObject *_wrap_DateTime_IsValid(PyObject *self, PyObject *args, PyObject *kwargs) {
19056 PyObject *resultobj;
19057 wxDateTime *arg1 = (wxDateTime *) 0 ;
19058 bool result;
19059 PyObject * obj0 = 0 ;
19060 char *kwnames[] = {
19061 (char *) "self", NULL
19062 };
19063
19064 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_IsValid",kwnames,&obj0)) goto fail;
19065 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19066 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19067 {
19068 PyThreadState* __tstate = wxPyBeginAllowThreads();
19069 result = (bool)((wxDateTime const *)arg1)->IsValid();
19070
19071 wxPyEndAllowThreads(__tstate);
19072 if (PyErr_Occurred()) SWIG_fail;
19073 }
19074 {
19075 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19076 }
19077 return resultobj;
19078 fail:
19079 return NULL;
19080 }
19081
19082
19083 static PyObject *_wrap_DateTime_GetTicks(PyObject *self, PyObject *args, PyObject *kwargs) {
19084 PyObject *resultobj;
19085 wxDateTime *arg1 = (wxDateTime *) 0 ;
19086 time_t result;
19087 PyObject * obj0 = 0 ;
19088 char *kwnames[] = {
19089 (char *) "self", NULL
19090 };
19091
19092 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetTicks",kwnames,&obj0)) goto fail;
19093 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19094 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19095 {
19096 PyThreadState* __tstate = wxPyBeginAllowThreads();
19097 result = (time_t)((wxDateTime const *)arg1)->GetTicks();
19098
19099 wxPyEndAllowThreads(__tstate);
19100 if (PyErr_Occurred()) SWIG_fail;
19101 }
19102 resultobj = SWIG_FromUnsignedInt((unsigned int)result);
19103 return resultobj;
19104 fail:
19105 return NULL;
19106 }
19107
19108
19109 static PyObject *_wrap_DateTime_GetYear(PyObject *self, PyObject *args, PyObject *kwargs) {
19110 PyObject *resultobj;
19111 wxDateTime *arg1 = (wxDateTime *) 0 ;
19112 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19113 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19114 int result;
19115 bool temp2 = False ;
19116 PyObject * obj0 = 0 ;
19117 PyObject * obj1 = 0 ;
19118 char *kwnames[] = {
19119 (char *) "self",(char *) "tz", NULL
19120 };
19121
19122 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetYear",kwnames,&obj0,&obj1)) goto fail;
19123 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19124 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19125 if (obj1) {
19126 {
19127 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19128 temp2 = True;
19129 }
19130 }
19131 {
19132 PyThreadState* __tstate = wxPyBeginAllowThreads();
19133 result = (int)((wxDateTime const *)arg1)->GetYear((wxDateTime::TimeZone const &)*arg2);
19134
19135 wxPyEndAllowThreads(__tstate);
19136 if (PyErr_Occurred()) SWIG_fail;
19137 }
19138 resultobj = SWIG_FromInt((int)result);
19139 {
19140 if (temp2) delete arg2;
19141 }
19142 return resultobj;
19143 fail:
19144 {
19145 if (temp2) delete arg2;
19146 }
19147 return NULL;
19148 }
19149
19150
19151 static PyObject *_wrap_DateTime_GetMonth(PyObject *self, PyObject *args, PyObject *kwargs) {
19152 PyObject *resultobj;
19153 wxDateTime *arg1 = (wxDateTime *) 0 ;
19154 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19155 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19156 int result;
19157 bool temp2 = False ;
19158 PyObject * obj0 = 0 ;
19159 PyObject * obj1 = 0 ;
19160 char *kwnames[] = {
19161 (char *) "self",(char *) "tz", NULL
19162 };
19163
19164 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMonth",kwnames,&obj0,&obj1)) goto fail;
19165 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19166 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19167 if (obj1) {
19168 {
19169 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19170 temp2 = True;
19171 }
19172 }
19173 {
19174 PyThreadState* __tstate = wxPyBeginAllowThreads();
19175 result = (int)((wxDateTime const *)arg1)->GetMonth((wxDateTime::TimeZone const &)*arg2);
19176
19177 wxPyEndAllowThreads(__tstate);
19178 if (PyErr_Occurred()) SWIG_fail;
19179 }
19180 resultobj = SWIG_FromInt((int)result);
19181 {
19182 if (temp2) delete arg2;
19183 }
19184 return resultobj;
19185 fail:
19186 {
19187 if (temp2) delete arg2;
19188 }
19189 return NULL;
19190 }
19191
19192
19193 static PyObject *_wrap_DateTime_GetDay(PyObject *self, PyObject *args, PyObject *kwargs) {
19194 PyObject *resultobj;
19195 wxDateTime *arg1 = (wxDateTime *) 0 ;
19196 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19197 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19198 int result;
19199 bool temp2 = False ;
19200 PyObject * obj0 = 0 ;
19201 PyObject * obj1 = 0 ;
19202 char *kwnames[] = {
19203 (char *) "self",(char *) "tz", NULL
19204 };
19205
19206 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetDay",kwnames,&obj0,&obj1)) goto fail;
19207 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19208 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19209 if (obj1) {
19210 {
19211 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19212 temp2 = True;
19213 }
19214 }
19215 {
19216 PyThreadState* __tstate = wxPyBeginAllowThreads();
19217 result = (int)((wxDateTime const *)arg1)->GetDay((wxDateTime::TimeZone const &)*arg2);
19218
19219 wxPyEndAllowThreads(__tstate);
19220 if (PyErr_Occurred()) SWIG_fail;
19221 }
19222 resultobj = SWIG_FromInt((int)result);
19223 {
19224 if (temp2) delete arg2;
19225 }
19226 return resultobj;
19227 fail:
19228 {
19229 if (temp2) delete arg2;
19230 }
19231 return NULL;
19232 }
19233
19234
19235 static PyObject *_wrap_DateTime_GetWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
19236 PyObject *resultobj;
19237 wxDateTime *arg1 = (wxDateTime *) 0 ;
19238 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19239 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19240 int result;
19241 bool temp2 = False ;
19242 PyObject * obj0 = 0 ;
19243 PyObject * obj1 = 0 ;
19244 char *kwnames[] = {
19245 (char *) "self",(char *) "tz", NULL
19246 };
19247
19248 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetWeekDay",kwnames,&obj0,&obj1)) goto fail;
19249 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19250 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19251 if (obj1) {
19252 {
19253 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19254 temp2 = True;
19255 }
19256 }
19257 {
19258 PyThreadState* __tstate = wxPyBeginAllowThreads();
19259 result = (int)((wxDateTime const *)arg1)->GetWeekDay((wxDateTime::TimeZone const &)*arg2);
19260
19261 wxPyEndAllowThreads(__tstate);
19262 if (PyErr_Occurred()) SWIG_fail;
19263 }
19264 resultobj = SWIG_FromInt((int)result);
19265 {
19266 if (temp2) delete arg2;
19267 }
19268 return resultobj;
19269 fail:
19270 {
19271 if (temp2) delete arg2;
19272 }
19273 return NULL;
19274 }
19275
19276
19277 static PyObject *_wrap_DateTime_GetHour(PyObject *self, PyObject *args, PyObject *kwargs) {
19278 PyObject *resultobj;
19279 wxDateTime *arg1 = (wxDateTime *) 0 ;
19280 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19281 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19282 int result;
19283 bool temp2 = False ;
19284 PyObject * obj0 = 0 ;
19285 PyObject * obj1 = 0 ;
19286 char *kwnames[] = {
19287 (char *) "self",(char *) "tz", NULL
19288 };
19289
19290 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetHour",kwnames,&obj0,&obj1)) goto fail;
19291 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19292 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19293 if (obj1) {
19294 {
19295 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19296 temp2 = True;
19297 }
19298 }
19299 {
19300 PyThreadState* __tstate = wxPyBeginAllowThreads();
19301 result = (int)((wxDateTime const *)arg1)->GetHour((wxDateTime::TimeZone const &)*arg2);
19302
19303 wxPyEndAllowThreads(__tstate);
19304 if (PyErr_Occurred()) SWIG_fail;
19305 }
19306 resultobj = SWIG_FromInt((int)result);
19307 {
19308 if (temp2) delete arg2;
19309 }
19310 return resultobj;
19311 fail:
19312 {
19313 if (temp2) delete arg2;
19314 }
19315 return NULL;
19316 }
19317
19318
19319 static PyObject *_wrap_DateTime_GetMinute(PyObject *self, PyObject *args, PyObject *kwargs) {
19320 PyObject *resultobj;
19321 wxDateTime *arg1 = (wxDateTime *) 0 ;
19322 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19323 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19324 int result;
19325 bool temp2 = False ;
19326 PyObject * obj0 = 0 ;
19327 PyObject * obj1 = 0 ;
19328 char *kwnames[] = {
19329 (char *) "self",(char *) "tz", NULL
19330 };
19331
19332 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMinute",kwnames,&obj0,&obj1)) goto fail;
19333 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19334 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19335 if (obj1) {
19336 {
19337 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19338 temp2 = True;
19339 }
19340 }
19341 {
19342 PyThreadState* __tstate = wxPyBeginAllowThreads();
19343 result = (int)((wxDateTime const *)arg1)->GetMinute((wxDateTime::TimeZone const &)*arg2);
19344
19345 wxPyEndAllowThreads(__tstate);
19346 if (PyErr_Occurred()) SWIG_fail;
19347 }
19348 resultobj = SWIG_FromInt((int)result);
19349 {
19350 if (temp2) delete arg2;
19351 }
19352 return resultobj;
19353 fail:
19354 {
19355 if (temp2) delete arg2;
19356 }
19357 return NULL;
19358 }
19359
19360
19361 static PyObject *_wrap_DateTime_GetSecond(PyObject *self, PyObject *args, PyObject *kwargs) {
19362 PyObject *resultobj;
19363 wxDateTime *arg1 = (wxDateTime *) 0 ;
19364 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19365 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19366 int result;
19367 bool temp2 = False ;
19368 PyObject * obj0 = 0 ;
19369 PyObject * obj1 = 0 ;
19370 char *kwnames[] = {
19371 (char *) "self",(char *) "tz", NULL
19372 };
19373
19374 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetSecond",kwnames,&obj0,&obj1)) goto fail;
19375 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19376 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19377 if (obj1) {
19378 {
19379 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19380 temp2 = True;
19381 }
19382 }
19383 {
19384 PyThreadState* __tstate = wxPyBeginAllowThreads();
19385 result = (int)((wxDateTime const *)arg1)->GetSecond((wxDateTime::TimeZone const &)*arg2);
19386
19387 wxPyEndAllowThreads(__tstate);
19388 if (PyErr_Occurred()) SWIG_fail;
19389 }
19390 resultobj = SWIG_FromInt((int)result);
19391 {
19392 if (temp2) delete arg2;
19393 }
19394 return resultobj;
19395 fail:
19396 {
19397 if (temp2) delete arg2;
19398 }
19399 return NULL;
19400 }
19401
19402
19403 static PyObject *_wrap_DateTime_GetMillisecond(PyObject *self, PyObject *args, PyObject *kwargs) {
19404 PyObject *resultobj;
19405 wxDateTime *arg1 = (wxDateTime *) 0 ;
19406 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19407 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19408 int result;
19409 bool temp2 = False ;
19410 PyObject * obj0 = 0 ;
19411 PyObject * obj1 = 0 ;
19412 char *kwnames[] = {
19413 (char *) "self",(char *) "tz", NULL
19414 };
19415
19416 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMillisecond",kwnames,&obj0,&obj1)) goto fail;
19417 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19418 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19419 if (obj1) {
19420 {
19421 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19422 temp2 = True;
19423 }
19424 }
19425 {
19426 PyThreadState* __tstate = wxPyBeginAllowThreads();
19427 result = (int)((wxDateTime const *)arg1)->GetMillisecond((wxDateTime::TimeZone const &)*arg2);
19428
19429 wxPyEndAllowThreads(__tstate);
19430 if (PyErr_Occurred()) SWIG_fail;
19431 }
19432 resultobj = SWIG_FromInt((int)result);
19433 {
19434 if (temp2) delete arg2;
19435 }
19436 return resultobj;
19437 fail:
19438 {
19439 if (temp2) delete arg2;
19440 }
19441 return NULL;
19442 }
19443
19444
19445 static PyObject *_wrap_DateTime_GetDayOfYear(PyObject *self, PyObject *args, PyObject *kwargs) {
19446 PyObject *resultobj;
19447 wxDateTime *arg1 = (wxDateTime *) 0 ;
19448 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19449 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19450 int result;
19451 bool temp2 = False ;
19452 PyObject * obj0 = 0 ;
19453 PyObject * obj1 = 0 ;
19454 char *kwnames[] = {
19455 (char *) "self",(char *) "tz", NULL
19456 };
19457
19458 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetDayOfYear",kwnames,&obj0,&obj1)) goto fail;
19459 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19460 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19461 if (obj1) {
19462 {
19463 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19464 temp2 = True;
19465 }
19466 }
19467 {
19468 PyThreadState* __tstate = wxPyBeginAllowThreads();
19469 result = (int)((wxDateTime const *)arg1)->GetDayOfYear((wxDateTime::TimeZone const &)*arg2);
19470
19471 wxPyEndAllowThreads(__tstate);
19472 if (PyErr_Occurred()) SWIG_fail;
19473 }
19474 resultobj = SWIG_FromInt((int)result);
19475 {
19476 if (temp2) delete arg2;
19477 }
19478 return resultobj;
19479 fail:
19480 {
19481 if (temp2) delete arg2;
19482 }
19483 return NULL;
19484 }
19485
19486
19487 static PyObject *_wrap_DateTime_GetWeekOfYear(PyObject *self, PyObject *args, PyObject *kwargs) {
19488 PyObject *resultobj;
19489 wxDateTime *arg1 = (wxDateTime *) 0 ;
19490 int arg2 = (int) wxDateTime::Monday_First ;
19491 wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ;
19492 wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ;
19493 int result;
19494 bool temp3 = False ;
19495 PyObject * obj0 = 0 ;
19496 PyObject * obj1 = 0 ;
19497 PyObject * obj2 = 0 ;
19498 char *kwnames[] = {
19499 (char *) "self",(char *) "flags",(char *) "tz", NULL
19500 };
19501
19502 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetWeekOfYear",kwnames,&obj0,&obj1,&obj2)) goto fail;
19503 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19504 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19505 if (obj1) {
19506 arg2 = (wxDateTime::WeekFlags) SWIG_AsInt(obj1);
19507 if (PyErr_Occurred()) SWIG_fail;
19508 }
19509 if (obj2) {
19510 {
19511 arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2));
19512 temp3 = True;
19513 }
19514 }
19515 {
19516 PyThreadState* __tstate = wxPyBeginAllowThreads();
19517 result = (int)((wxDateTime const *)arg1)->GetWeekOfYear((wxDateTime::WeekFlags )arg2,(wxDateTime::TimeZone const &)*arg3);
19518
19519 wxPyEndAllowThreads(__tstate);
19520 if (PyErr_Occurred()) SWIG_fail;
19521 }
19522 resultobj = SWIG_FromInt((int)result);
19523 {
19524 if (temp3) delete arg3;
19525 }
19526 return resultobj;
19527 fail:
19528 {
19529 if (temp3) delete arg3;
19530 }
19531 return NULL;
19532 }
19533
19534
19535 static PyObject *_wrap_DateTime_GetWeekOfMonth(PyObject *self, PyObject *args, PyObject *kwargs) {
19536 PyObject *resultobj;
19537 wxDateTime *arg1 = (wxDateTime *) 0 ;
19538 int arg2 = (int) wxDateTime::Monday_First ;
19539 wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ;
19540 wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ;
19541 int result;
19542 bool temp3 = False ;
19543 PyObject * obj0 = 0 ;
19544 PyObject * obj1 = 0 ;
19545 PyObject * obj2 = 0 ;
19546 char *kwnames[] = {
19547 (char *) "self",(char *) "flags",(char *) "tz", NULL
19548 };
19549
19550 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetWeekOfMonth",kwnames,&obj0,&obj1,&obj2)) goto fail;
19551 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19552 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19553 if (obj1) {
19554 arg2 = (wxDateTime::WeekFlags) SWIG_AsInt(obj1);
19555 if (PyErr_Occurred()) SWIG_fail;
19556 }
19557 if (obj2) {
19558 {
19559 arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2));
19560 temp3 = True;
19561 }
19562 }
19563 {
19564 PyThreadState* __tstate = wxPyBeginAllowThreads();
19565 result = (int)((wxDateTime const *)arg1)->GetWeekOfMonth((wxDateTime::WeekFlags )arg2,(wxDateTime::TimeZone const &)*arg3);
19566
19567 wxPyEndAllowThreads(__tstate);
19568 if (PyErr_Occurred()) SWIG_fail;
19569 }
19570 resultobj = SWIG_FromInt((int)result);
19571 {
19572 if (temp3) delete arg3;
19573 }
19574 return resultobj;
19575 fail:
19576 {
19577 if (temp3) delete arg3;
19578 }
19579 return NULL;
19580 }
19581
19582
19583 static PyObject *_wrap_DateTime_IsWorkDay(PyObject *self, PyObject *args, PyObject *kwargs) {
19584 PyObject *resultobj;
19585 wxDateTime *arg1 = (wxDateTime *) 0 ;
19586 int arg2 = (int) wxDateTime::Country_Default ;
19587 bool result;
19588 PyObject * obj0 = 0 ;
19589 PyObject * obj1 = 0 ;
19590 char *kwnames[] = {
19591 (char *) "self",(char *) "country", NULL
19592 };
19593
19594 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_IsWorkDay",kwnames,&obj0,&obj1)) goto fail;
19595 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19596 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19597 if (obj1) {
19598 arg2 = (wxDateTime::Country) SWIG_AsInt(obj1);
19599 if (PyErr_Occurred()) SWIG_fail;
19600 }
19601 {
19602 PyThreadState* __tstate = wxPyBeginAllowThreads();
19603 result = (bool)((wxDateTime const *)arg1)->IsWorkDay((wxDateTime::Country )arg2);
19604
19605 wxPyEndAllowThreads(__tstate);
19606 if (PyErr_Occurred()) SWIG_fail;
19607 }
19608 {
19609 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19610 }
19611 return resultobj;
19612 fail:
19613 return NULL;
19614 }
19615
19616
19617 static PyObject *_wrap_DateTime_IsEqualTo(PyObject *self, PyObject *args, PyObject *kwargs) {
19618 PyObject *resultobj;
19619 wxDateTime *arg1 = (wxDateTime *) 0 ;
19620 wxDateTime *arg2 = 0 ;
19621 bool result;
19622 PyObject * obj0 = 0 ;
19623 PyObject * obj1 = 0 ;
19624 char *kwnames[] = {
19625 (char *) "self",(char *) "datetime", NULL
19626 };
19627
19628 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsEqualTo",kwnames,&obj0,&obj1)) goto fail;
19629 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19630 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19631 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19632 SWIG_POINTER_EXCEPTION | 0)) == -1)
19633 SWIG_fail;
19634 if (arg2 == NULL) {
19635 PyErr_SetString(PyExc_TypeError,"null reference");
19636 SWIG_fail;
19637 }
19638 {
19639 PyThreadState* __tstate = wxPyBeginAllowThreads();
19640 result = (bool)((wxDateTime const *)arg1)->IsEqualTo((wxDateTime const &)*arg2);
19641
19642 wxPyEndAllowThreads(__tstate);
19643 if (PyErr_Occurred()) SWIG_fail;
19644 }
19645 {
19646 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19647 }
19648 return resultobj;
19649 fail:
19650 return NULL;
19651 }
19652
19653
19654 static PyObject *_wrap_DateTime_IsEarlierThan(PyObject *self, PyObject *args, PyObject *kwargs) {
19655 PyObject *resultobj;
19656 wxDateTime *arg1 = (wxDateTime *) 0 ;
19657 wxDateTime *arg2 = 0 ;
19658 bool result;
19659 PyObject * obj0 = 0 ;
19660 PyObject * obj1 = 0 ;
19661 char *kwnames[] = {
19662 (char *) "self",(char *) "datetime", NULL
19663 };
19664
19665 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsEarlierThan",kwnames,&obj0,&obj1)) goto fail;
19666 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19667 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19668 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19669 SWIG_POINTER_EXCEPTION | 0)) == -1)
19670 SWIG_fail;
19671 if (arg2 == NULL) {
19672 PyErr_SetString(PyExc_TypeError,"null reference");
19673 SWIG_fail;
19674 }
19675 {
19676 PyThreadState* __tstate = wxPyBeginAllowThreads();
19677 result = (bool)((wxDateTime const *)arg1)->IsEarlierThan((wxDateTime const &)*arg2);
19678
19679 wxPyEndAllowThreads(__tstate);
19680 if (PyErr_Occurred()) SWIG_fail;
19681 }
19682 {
19683 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19684 }
19685 return resultobj;
19686 fail:
19687 return NULL;
19688 }
19689
19690
19691 static PyObject *_wrap_DateTime_IsLaterThan(PyObject *self, PyObject *args, PyObject *kwargs) {
19692 PyObject *resultobj;
19693 wxDateTime *arg1 = (wxDateTime *) 0 ;
19694 wxDateTime *arg2 = 0 ;
19695 bool result;
19696 PyObject * obj0 = 0 ;
19697 PyObject * obj1 = 0 ;
19698 char *kwnames[] = {
19699 (char *) "self",(char *) "datetime", NULL
19700 };
19701
19702 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsLaterThan",kwnames,&obj0,&obj1)) goto fail;
19703 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19704 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19705 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19706 SWIG_POINTER_EXCEPTION | 0)) == -1)
19707 SWIG_fail;
19708 if (arg2 == NULL) {
19709 PyErr_SetString(PyExc_TypeError,"null reference");
19710 SWIG_fail;
19711 }
19712 {
19713 PyThreadState* __tstate = wxPyBeginAllowThreads();
19714 result = (bool)((wxDateTime const *)arg1)->IsLaterThan((wxDateTime const &)*arg2);
19715
19716 wxPyEndAllowThreads(__tstate);
19717 if (PyErr_Occurred()) SWIG_fail;
19718 }
19719 {
19720 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19721 }
19722 return resultobj;
19723 fail:
19724 return NULL;
19725 }
19726
19727
19728 static PyObject *_wrap_DateTime_IsStrictlyBetween(PyObject *self, PyObject *args, PyObject *kwargs) {
19729 PyObject *resultobj;
19730 wxDateTime *arg1 = (wxDateTime *) 0 ;
19731 wxDateTime *arg2 = 0 ;
19732 wxDateTime *arg3 = 0 ;
19733 bool result;
19734 PyObject * obj0 = 0 ;
19735 PyObject * obj1 = 0 ;
19736 PyObject * obj2 = 0 ;
19737 char *kwnames[] = {
19738 (char *) "self",(char *) "t1",(char *) "t2", NULL
19739 };
19740
19741 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsStrictlyBetween",kwnames,&obj0,&obj1,&obj2)) goto fail;
19742 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19743 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19744 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19745 SWIG_POINTER_EXCEPTION | 0)) == -1)
19746 SWIG_fail;
19747 if (arg2 == NULL) {
19748 PyErr_SetString(PyExc_TypeError,"null reference");
19749 SWIG_fail;
19750 }
19751 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDateTime,
19752 SWIG_POINTER_EXCEPTION | 0)) == -1)
19753 SWIG_fail;
19754 if (arg3 == NULL) {
19755 PyErr_SetString(PyExc_TypeError,"null reference");
19756 SWIG_fail;
19757 }
19758 {
19759 PyThreadState* __tstate = wxPyBeginAllowThreads();
19760 result = (bool)((wxDateTime const *)arg1)->IsStrictlyBetween((wxDateTime const &)*arg2,(wxDateTime const &)*arg3);
19761
19762 wxPyEndAllowThreads(__tstate);
19763 if (PyErr_Occurred()) SWIG_fail;
19764 }
19765 {
19766 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19767 }
19768 return resultobj;
19769 fail:
19770 return NULL;
19771 }
19772
19773
19774 static PyObject *_wrap_DateTime_IsBetween(PyObject *self, PyObject *args, PyObject *kwargs) {
19775 PyObject *resultobj;
19776 wxDateTime *arg1 = (wxDateTime *) 0 ;
19777 wxDateTime *arg2 = 0 ;
19778 wxDateTime *arg3 = 0 ;
19779 bool result;
19780 PyObject * obj0 = 0 ;
19781 PyObject * obj1 = 0 ;
19782 PyObject * obj2 = 0 ;
19783 char *kwnames[] = {
19784 (char *) "self",(char *) "t1",(char *) "t2", NULL
19785 };
19786
19787 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsBetween",kwnames,&obj0,&obj1,&obj2)) goto fail;
19788 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19789 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19790 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19791 SWIG_POINTER_EXCEPTION | 0)) == -1)
19792 SWIG_fail;
19793 if (arg2 == NULL) {
19794 PyErr_SetString(PyExc_TypeError,"null reference");
19795 SWIG_fail;
19796 }
19797 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDateTime,
19798 SWIG_POINTER_EXCEPTION | 0)) == -1)
19799 SWIG_fail;
19800 if (arg3 == NULL) {
19801 PyErr_SetString(PyExc_TypeError,"null reference");
19802 SWIG_fail;
19803 }
19804 {
19805 PyThreadState* __tstate = wxPyBeginAllowThreads();
19806 result = (bool)((wxDateTime const *)arg1)->IsBetween((wxDateTime const &)*arg2,(wxDateTime const &)*arg3);
19807
19808 wxPyEndAllowThreads(__tstate);
19809 if (PyErr_Occurred()) SWIG_fail;
19810 }
19811 {
19812 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19813 }
19814 return resultobj;
19815 fail:
19816 return NULL;
19817 }
19818
19819
19820 static PyObject *_wrap_DateTime_IsSameDate(PyObject *self, PyObject *args, PyObject *kwargs) {
19821 PyObject *resultobj;
19822 wxDateTime *arg1 = (wxDateTime *) 0 ;
19823 wxDateTime *arg2 = 0 ;
19824 bool result;
19825 PyObject * obj0 = 0 ;
19826 PyObject * obj1 = 0 ;
19827 char *kwnames[] = {
19828 (char *) "self",(char *) "dt", NULL
19829 };
19830
19831 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsSameDate",kwnames,&obj0,&obj1)) goto fail;
19832 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19833 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19834 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19835 SWIG_POINTER_EXCEPTION | 0)) == -1)
19836 SWIG_fail;
19837 if (arg2 == NULL) {
19838 PyErr_SetString(PyExc_TypeError,"null reference");
19839 SWIG_fail;
19840 }
19841 {
19842 PyThreadState* __tstate = wxPyBeginAllowThreads();
19843 result = (bool)((wxDateTime const *)arg1)->IsSameDate((wxDateTime const &)*arg2);
19844
19845 wxPyEndAllowThreads(__tstate);
19846 if (PyErr_Occurred()) SWIG_fail;
19847 }
19848 {
19849 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19850 }
19851 return resultobj;
19852 fail:
19853 return NULL;
19854 }
19855
19856
19857 static PyObject *_wrap_DateTime_IsSameTime(PyObject *self, PyObject *args, PyObject *kwargs) {
19858 PyObject *resultobj;
19859 wxDateTime *arg1 = (wxDateTime *) 0 ;
19860 wxDateTime *arg2 = 0 ;
19861 bool result;
19862 PyObject * obj0 = 0 ;
19863 PyObject * obj1 = 0 ;
19864 char *kwnames[] = {
19865 (char *) "self",(char *) "dt", NULL
19866 };
19867
19868 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsSameTime",kwnames,&obj0,&obj1)) goto fail;
19869 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19870 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19871 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19872 SWIG_POINTER_EXCEPTION | 0)) == -1)
19873 SWIG_fail;
19874 if (arg2 == NULL) {
19875 PyErr_SetString(PyExc_TypeError,"null reference");
19876 SWIG_fail;
19877 }
19878 {
19879 PyThreadState* __tstate = wxPyBeginAllowThreads();
19880 result = (bool)((wxDateTime const *)arg1)->IsSameTime((wxDateTime const &)*arg2);
19881
19882 wxPyEndAllowThreads(__tstate);
19883 if (PyErr_Occurred()) SWIG_fail;
19884 }
19885 {
19886 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19887 }
19888 return resultobj;
19889 fail:
19890 return NULL;
19891 }
19892
19893
19894 static PyObject *_wrap_DateTime_IsEqualUpTo(PyObject *self, PyObject *args, PyObject *kwargs) {
19895 PyObject *resultobj;
19896 wxDateTime *arg1 = (wxDateTime *) 0 ;
19897 wxDateTime *arg2 = 0 ;
19898 wxTimeSpan *arg3 = 0 ;
19899 bool result;
19900 PyObject * obj0 = 0 ;
19901 PyObject * obj1 = 0 ;
19902 PyObject * obj2 = 0 ;
19903 char *kwnames[] = {
19904 (char *) "self",(char *) "dt",(char *) "ts", NULL
19905 };
19906
19907 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsEqualUpTo",kwnames,&obj0,&obj1,&obj2)) goto fail;
19908 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19909 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19910 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19911 SWIG_POINTER_EXCEPTION | 0)) == -1)
19912 SWIG_fail;
19913 if (arg2 == NULL) {
19914 PyErr_SetString(PyExc_TypeError,"null reference");
19915 SWIG_fail;
19916 }
19917 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxTimeSpan,
19918 SWIG_POINTER_EXCEPTION | 0)) == -1)
19919 SWIG_fail;
19920 if (arg3 == NULL) {
19921 PyErr_SetString(PyExc_TypeError,"null reference");
19922 SWIG_fail;
19923 }
19924 {
19925 PyThreadState* __tstate = wxPyBeginAllowThreads();
19926 result = (bool)((wxDateTime const *)arg1)->IsEqualUpTo((wxDateTime const &)*arg2,(wxTimeSpan const &)*arg3);
19927
19928 wxPyEndAllowThreads(__tstate);
19929 if (PyErr_Occurred()) SWIG_fail;
19930 }
19931 {
19932 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19933 }
19934 return resultobj;
19935 fail:
19936 return NULL;
19937 }
19938
19939
19940 static PyObject *_wrap_DateTime_AddTS(PyObject *self, PyObject *args, PyObject *kwargs) {
19941 PyObject *resultobj;
19942 wxDateTime *arg1 = (wxDateTime *) 0 ;
19943 wxTimeSpan *arg2 = 0 ;
19944 wxDateTime *result;
19945 PyObject * obj0 = 0 ;
19946 PyObject * obj1 = 0 ;
19947 char *kwnames[] = {
19948 (char *) "self",(char *) "diff", NULL
19949 };
19950
19951 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_AddTS",kwnames,&obj0,&obj1)) goto fail;
19952 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19953 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19954 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
19955 SWIG_POINTER_EXCEPTION | 0)) == -1)
19956 SWIG_fail;
19957 if (arg2 == NULL) {
19958 PyErr_SetString(PyExc_TypeError,"null reference");
19959 SWIG_fail;
19960 }
19961 {
19962 PyThreadState* __tstate = wxPyBeginAllowThreads();
19963 {
19964 wxDateTime &_result_ref = (arg1)->Add((wxTimeSpan const &)*arg2);
19965 result = (wxDateTime *) &_result_ref;
19966 }
19967
19968 wxPyEndAllowThreads(__tstate);
19969 if (PyErr_Occurred()) SWIG_fail;
19970 }
19971 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
19972 return resultobj;
19973 fail:
19974 return NULL;
19975 }
19976
19977
19978 static PyObject *_wrap_DateTime_AddDS(PyObject *self, PyObject *args, PyObject *kwargs) {
19979 PyObject *resultobj;
19980 wxDateTime *arg1 = (wxDateTime *) 0 ;
19981 wxDateSpan *arg2 = 0 ;
19982 wxDateTime *result;
19983 PyObject * obj0 = 0 ;
19984 PyObject * obj1 = 0 ;
19985 char *kwnames[] = {
19986 (char *) "self",(char *) "diff", NULL
19987 };
19988
19989 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_AddDS",kwnames,&obj0,&obj1)) goto fail;
19990 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19991 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19992 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
19993 SWIG_POINTER_EXCEPTION | 0)) == -1)
19994 SWIG_fail;
19995 if (arg2 == NULL) {
19996 PyErr_SetString(PyExc_TypeError,"null reference");
19997 SWIG_fail;
19998 }
19999 {
20000 PyThreadState* __tstate = wxPyBeginAllowThreads();
20001 {
20002 wxDateTime &_result_ref = (arg1)->Add((wxDateSpan const &)*arg2);
20003 result = (wxDateTime *) &_result_ref;
20004 }
20005
20006 wxPyEndAllowThreads(__tstate);
20007 if (PyErr_Occurred()) SWIG_fail;
20008 }
20009 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
20010 return resultobj;
20011 fail:
20012 return NULL;
20013 }
20014
20015
20016 static PyObject *_wrap_DateTime_SubtractTS(PyObject *self, PyObject *args, PyObject *kwargs) {
20017 PyObject *resultobj;
20018 wxDateTime *arg1 = (wxDateTime *) 0 ;
20019 wxTimeSpan *arg2 = 0 ;
20020 wxDateTime *result;
20021 PyObject * obj0 = 0 ;
20022 PyObject * obj1 = 0 ;
20023 char *kwnames[] = {
20024 (char *) "self",(char *) "diff", NULL
20025 };
20026
20027 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SubtractTS",kwnames,&obj0,&obj1)) goto fail;
20028 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20029 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20030 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
20031 SWIG_POINTER_EXCEPTION | 0)) == -1)
20032 SWIG_fail;
20033 if (arg2 == NULL) {
20034 PyErr_SetString(PyExc_TypeError,"null reference");
20035 SWIG_fail;
20036 }
20037 {
20038 PyThreadState* __tstate = wxPyBeginAllowThreads();
20039 {
20040 wxDateTime &_result_ref = (arg1)->Subtract((wxTimeSpan const &)*arg2);
20041 result = (wxDateTime *) &_result_ref;
20042 }
20043
20044 wxPyEndAllowThreads(__tstate);
20045 if (PyErr_Occurred()) SWIG_fail;
20046 }
20047 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
20048 return resultobj;
20049 fail:
20050 return NULL;
20051 }
20052
20053
20054 static PyObject *_wrap_DateTime_SubtractDS(PyObject *self, PyObject *args, PyObject *kwargs) {
20055 PyObject *resultobj;
20056 wxDateTime *arg1 = (wxDateTime *) 0 ;
20057 wxDateSpan *arg2 = 0 ;
20058 wxDateTime *result;
20059 PyObject * obj0 = 0 ;
20060 PyObject * obj1 = 0 ;
20061 char *kwnames[] = {
20062 (char *) "self",(char *) "diff", NULL
20063 };
20064
20065 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SubtractDS",kwnames,&obj0,&obj1)) goto fail;
20066 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20067 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20068 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
20069 SWIG_POINTER_EXCEPTION | 0)) == -1)
20070 SWIG_fail;
20071 if (arg2 == NULL) {
20072 PyErr_SetString(PyExc_TypeError,"null reference");
20073 SWIG_fail;
20074 }
20075 {
20076 PyThreadState* __tstate = wxPyBeginAllowThreads();
20077 {
20078 wxDateTime &_result_ref = (arg1)->Subtract((wxDateSpan const &)*arg2);
20079 result = (wxDateTime *) &_result_ref;
20080 }
20081
20082 wxPyEndAllowThreads(__tstate);
20083 if (PyErr_Occurred()) SWIG_fail;
20084 }
20085 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
20086 return resultobj;
20087 fail:
20088 return NULL;
20089 }
20090
20091
20092 static PyObject *_wrap_DateTime_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) {
20093 PyObject *resultobj;
20094 wxDateTime *arg1 = (wxDateTime *) 0 ;
20095 wxDateTime *arg2 = 0 ;
20096 wxTimeSpan result;
20097 PyObject * obj0 = 0 ;
20098 PyObject * obj1 = 0 ;
20099 char *kwnames[] = {
20100 (char *) "self",(char *) "dt", NULL
20101 };
20102
20103 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_Subtract",kwnames,&obj0,&obj1)) goto fail;
20104 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20105 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20106 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20107 SWIG_POINTER_EXCEPTION | 0)) == -1)
20108 SWIG_fail;
20109 if (arg2 == NULL) {
20110 PyErr_SetString(PyExc_TypeError,"null reference");
20111 SWIG_fail;
20112 }
20113 {
20114 PyThreadState* __tstate = wxPyBeginAllowThreads();
20115 result = ((wxDateTime const *)arg1)->Subtract((wxDateTime const &)*arg2);
20116
20117 wxPyEndAllowThreads(__tstate);
20118 if (PyErr_Occurred()) SWIG_fail;
20119 }
20120 {
20121 wxTimeSpan * resultptr;
20122 resultptr = new wxTimeSpan((wxTimeSpan &) result);
20123 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
20124 }
20125 return resultobj;
20126 fail:
20127 return NULL;
20128 }
20129
20130
20131 static PyObject *_wrap_DateTime___iadd____SWIG_0(PyObject *self, PyObject *args) {
20132 PyObject *resultobj;
20133 wxDateTime *arg1 = (wxDateTime *) 0 ;
20134 wxTimeSpan *arg2 = 0 ;
20135 wxDateTime *result;
20136 PyObject * obj0 = 0 ;
20137 PyObject * obj1 = 0 ;
20138
20139 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___iadd__",&obj0,&obj1)) goto fail;
20140 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20141 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20142 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
20143 SWIG_POINTER_EXCEPTION | 0)) == -1)
20144 SWIG_fail;
20145 if (arg2 == NULL) {
20146 PyErr_SetString(PyExc_TypeError,"null reference");
20147 SWIG_fail;
20148 }
20149 {
20150 PyThreadState* __tstate = wxPyBeginAllowThreads();
20151 {
20152 wxDateTime &_result_ref = (arg1)->operator +=((wxTimeSpan const &)*arg2);
20153 result = (wxDateTime *) &_result_ref;
20154 }
20155
20156 wxPyEndAllowThreads(__tstate);
20157 if (PyErr_Occurred()) SWIG_fail;
20158 }
20159 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
20160 return resultobj;
20161 fail:
20162 return NULL;
20163 }
20164
20165
20166 static PyObject *_wrap_DateTime___iadd____SWIG_1(PyObject *self, PyObject *args) {
20167 PyObject *resultobj;
20168 wxDateTime *arg1 = (wxDateTime *) 0 ;
20169 wxDateSpan *arg2 = 0 ;
20170 wxDateTime *result;
20171 PyObject * obj0 = 0 ;
20172 PyObject * obj1 = 0 ;
20173
20174 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___iadd__",&obj0,&obj1)) goto fail;
20175 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20176 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20177 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
20178 SWIG_POINTER_EXCEPTION | 0)) == -1)
20179 SWIG_fail;
20180 if (arg2 == NULL) {
20181 PyErr_SetString(PyExc_TypeError,"null reference");
20182 SWIG_fail;
20183 }
20184 {
20185 PyThreadState* __tstate = wxPyBeginAllowThreads();
20186 {
20187 wxDateTime &_result_ref = (arg1)->operator +=((wxDateSpan const &)*arg2);
20188 result = (wxDateTime *) &_result_ref;
20189 }
20190
20191 wxPyEndAllowThreads(__tstate);
20192 if (PyErr_Occurred()) SWIG_fail;
20193 }
20194 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
20195 return resultobj;
20196 fail:
20197 return NULL;
20198 }
20199
20200
20201 static PyObject *_wrap_DateTime___iadd__(PyObject *self, PyObject *args) {
20202 int argc;
20203 PyObject *argv[3];
20204 int ii;
20205
20206 argc = PyObject_Length(args);
20207 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
20208 argv[ii] = PyTuple_GetItem(args,ii);
20209 }
20210 if (argc == 2) {
20211 int _v;
20212 {
20213 void *ptr;
20214 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20215 _v = 0;
20216 PyErr_Clear();
20217 } else {
20218 _v = 1;
20219 }
20220 }
20221 if (_v) {
20222 {
20223 void *ptr;
20224 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) {
20225 _v = 0;
20226 PyErr_Clear();
20227 } else {
20228 _v = 1;
20229 }
20230 }
20231 if (_v) {
20232 return _wrap_DateTime___iadd____SWIG_0(self,args);
20233 }
20234 }
20235 }
20236 if (argc == 2) {
20237 int _v;
20238 {
20239 void *ptr;
20240 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20241 _v = 0;
20242 PyErr_Clear();
20243 } else {
20244 _v = 1;
20245 }
20246 }
20247 if (_v) {
20248 {
20249 void *ptr;
20250 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) {
20251 _v = 0;
20252 PyErr_Clear();
20253 } else {
20254 _v = 1;
20255 }
20256 }
20257 if (_v) {
20258 return _wrap_DateTime___iadd____SWIG_1(self,args);
20259 }
20260 }
20261 }
20262
20263 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___iadd__'");
20264 return NULL;
20265 }
20266
20267
20268 static PyObject *_wrap_DateTime___isub____SWIG_0(PyObject *self, PyObject *args) {
20269 PyObject *resultobj;
20270 wxDateTime *arg1 = (wxDateTime *) 0 ;
20271 wxTimeSpan *arg2 = 0 ;
20272 wxDateTime *result;
20273 PyObject * obj0 = 0 ;
20274 PyObject * obj1 = 0 ;
20275
20276 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___isub__",&obj0,&obj1)) goto fail;
20277 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20278 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20279 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
20280 SWIG_POINTER_EXCEPTION | 0)) == -1)
20281 SWIG_fail;
20282 if (arg2 == NULL) {
20283 PyErr_SetString(PyExc_TypeError,"null reference");
20284 SWIG_fail;
20285 }
20286 {
20287 PyThreadState* __tstate = wxPyBeginAllowThreads();
20288 {
20289 wxDateTime &_result_ref = (arg1)->operator -=((wxTimeSpan const &)*arg2);
20290 result = (wxDateTime *) &_result_ref;
20291 }
20292
20293 wxPyEndAllowThreads(__tstate);
20294 if (PyErr_Occurred()) SWIG_fail;
20295 }
20296 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
20297 return resultobj;
20298 fail:
20299 return NULL;
20300 }
20301
20302
20303 static PyObject *_wrap_DateTime___isub____SWIG_1(PyObject *self, PyObject *args) {
20304 PyObject *resultobj;
20305 wxDateTime *arg1 = (wxDateTime *) 0 ;
20306 wxDateSpan *arg2 = 0 ;
20307 wxDateTime *result;
20308 PyObject * obj0 = 0 ;
20309 PyObject * obj1 = 0 ;
20310
20311 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___isub__",&obj0,&obj1)) goto fail;
20312 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20313 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20314 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
20315 SWIG_POINTER_EXCEPTION | 0)) == -1)
20316 SWIG_fail;
20317 if (arg2 == NULL) {
20318 PyErr_SetString(PyExc_TypeError,"null reference");
20319 SWIG_fail;
20320 }
20321 {
20322 PyThreadState* __tstate = wxPyBeginAllowThreads();
20323 {
20324 wxDateTime &_result_ref = (arg1)->operator -=((wxDateSpan const &)*arg2);
20325 result = (wxDateTime *) &_result_ref;
20326 }
20327
20328 wxPyEndAllowThreads(__tstate);
20329 if (PyErr_Occurred()) SWIG_fail;
20330 }
20331 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
20332 return resultobj;
20333 fail:
20334 return NULL;
20335 }
20336
20337
20338 static PyObject *_wrap_DateTime___isub__(PyObject *self, PyObject *args) {
20339 int argc;
20340 PyObject *argv[3];
20341 int ii;
20342
20343 argc = PyObject_Length(args);
20344 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
20345 argv[ii] = PyTuple_GetItem(args,ii);
20346 }
20347 if (argc == 2) {
20348 int _v;
20349 {
20350 void *ptr;
20351 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20352 _v = 0;
20353 PyErr_Clear();
20354 } else {
20355 _v = 1;
20356 }
20357 }
20358 if (_v) {
20359 {
20360 void *ptr;
20361 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) {
20362 _v = 0;
20363 PyErr_Clear();
20364 } else {
20365 _v = 1;
20366 }
20367 }
20368 if (_v) {
20369 return _wrap_DateTime___isub____SWIG_0(self,args);
20370 }
20371 }
20372 }
20373 if (argc == 2) {
20374 int _v;
20375 {
20376 void *ptr;
20377 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20378 _v = 0;
20379 PyErr_Clear();
20380 } else {
20381 _v = 1;
20382 }
20383 }
20384 if (_v) {
20385 {
20386 void *ptr;
20387 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) {
20388 _v = 0;
20389 PyErr_Clear();
20390 } else {
20391 _v = 1;
20392 }
20393 }
20394 if (_v) {
20395 return _wrap_DateTime___isub____SWIG_1(self,args);
20396 }
20397 }
20398 }
20399
20400 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___isub__'");
20401 return NULL;
20402 }
20403
20404
20405 static PyObject *_wrap_DateTime___add____SWIG_0(PyObject *self, PyObject *args) {
20406 PyObject *resultobj;
20407 wxDateTime *arg1 = (wxDateTime *) 0 ;
20408 wxTimeSpan *arg2 = 0 ;
20409 wxDateTime result;
20410 PyObject * obj0 = 0 ;
20411 PyObject * obj1 = 0 ;
20412
20413 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___add__",&obj0,&obj1)) goto fail;
20414 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20415 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20416 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
20417 SWIG_POINTER_EXCEPTION | 0)) == -1)
20418 SWIG_fail;
20419 if (arg2 == NULL) {
20420 PyErr_SetString(PyExc_TypeError,"null reference");
20421 SWIG_fail;
20422 }
20423 {
20424 PyThreadState* __tstate = wxPyBeginAllowThreads();
20425 result = wxDateTime___add____SWIG_0(arg1,(wxTimeSpan const &)*arg2);
20426
20427 wxPyEndAllowThreads(__tstate);
20428 if (PyErr_Occurred()) SWIG_fail;
20429 }
20430 {
20431 wxDateTime * resultptr;
20432 resultptr = new wxDateTime((wxDateTime &) result);
20433 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
20434 }
20435 return resultobj;
20436 fail:
20437 return NULL;
20438 }
20439
20440
20441 static PyObject *_wrap_DateTime___add____SWIG_1(PyObject *self, PyObject *args) {
20442 PyObject *resultobj;
20443 wxDateTime *arg1 = (wxDateTime *) 0 ;
20444 wxDateSpan *arg2 = 0 ;
20445 wxDateTime result;
20446 PyObject * obj0 = 0 ;
20447 PyObject * obj1 = 0 ;
20448
20449 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___add__",&obj0,&obj1)) goto fail;
20450 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20451 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20452 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
20453 SWIG_POINTER_EXCEPTION | 0)) == -1)
20454 SWIG_fail;
20455 if (arg2 == NULL) {
20456 PyErr_SetString(PyExc_TypeError,"null reference");
20457 SWIG_fail;
20458 }
20459 {
20460 PyThreadState* __tstate = wxPyBeginAllowThreads();
20461 result = wxDateTime___add____SWIG_1(arg1,(wxDateSpan const &)*arg2);
20462
20463 wxPyEndAllowThreads(__tstate);
20464 if (PyErr_Occurred()) SWIG_fail;
20465 }
20466 {
20467 wxDateTime * resultptr;
20468 resultptr = new wxDateTime((wxDateTime &) result);
20469 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
20470 }
20471 return resultobj;
20472 fail:
20473 return NULL;
20474 }
20475
20476
20477 static PyObject *_wrap_DateTime___add__(PyObject *self, PyObject *args) {
20478 int argc;
20479 PyObject *argv[3];
20480 int ii;
20481
20482 argc = PyObject_Length(args);
20483 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
20484 argv[ii] = PyTuple_GetItem(args,ii);
20485 }
20486 if (argc == 2) {
20487 int _v;
20488 {
20489 void *ptr;
20490 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20491 _v = 0;
20492 PyErr_Clear();
20493 } else {
20494 _v = 1;
20495 }
20496 }
20497 if (_v) {
20498 {
20499 void *ptr;
20500 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) {
20501 _v = 0;
20502 PyErr_Clear();
20503 } else {
20504 _v = 1;
20505 }
20506 }
20507 if (_v) {
20508 return _wrap_DateTime___add____SWIG_0(self,args);
20509 }
20510 }
20511 }
20512 if (argc == 2) {
20513 int _v;
20514 {
20515 void *ptr;
20516 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20517 _v = 0;
20518 PyErr_Clear();
20519 } else {
20520 _v = 1;
20521 }
20522 }
20523 if (_v) {
20524 {
20525 void *ptr;
20526 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) {
20527 _v = 0;
20528 PyErr_Clear();
20529 } else {
20530 _v = 1;
20531 }
20532 }
20533 if (_v) {
20534 return _wrap_DateTime___add____SWIG_1(self,args);
20535 }
20536 }
20537 }
20538
20539 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___add__'");
20540 return NULL;
20541 }
20542
20543
20544 static PyObject *_wrap_DateTime___sub____SWIG_0(PyObject *self, PyObject *args) {
20545 PyObject *resultobj;
20546 wxDateTime *arg1 = (wxDateTime *) 0 ;
20547 wxDateTime *arg2 = 0 ;
20548 wxTimeSpan result;
20549 PyObject * obj0 = 0 ;
20550 PyObject * obj1 = 0 ;
20551
20552 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail;
20553 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20554 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20555 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20556 SWIG_POINTER_EXCEPTION | 0)) == -1)
20557 SWIG_fail;
20558 if (arg2 == NULL) {
20559 PyErr_SetString(PyExc_TypeError,"null reference");
20560 SWIG_fail;
20561 }
20562 {
20563 PyThreadState* __tstate = wxPyBeginAllowThreads();
20564 result = wxDateTime___sub____SWIG_0(arg1,(wxDateTime const &)*arg2);
20565
20566 wxPyEndAllowThreads(__tstate);
20567 if (PyErr_Occurred()) SWIG_fail;
20568 }
20569 {
20570 wxTimeSpan * resultptr;
20571 resultptr = new wxTimeSpan((wxTimeSpan &) result);
20572 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
20573 }
20574 return resultobj;
20575 fail:
20576 return NULL;
20577 }
20578
20579
20580 static PyObject *_wrap_DateTime___sub____SWIG_1(PyObject *self, PyObject *args) {
20581 PyObject *resultobj;
20582 wxDateTime *arg1 = (wxDateTime *) 0 ;
20583 wxTimeSpan *arg2 = 0 ;
20584 wxDateTime result;
20585 PyObject * obj0 = 0 ;
20586 PyObject * obj1 = 0 ;
20587
20588 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail;
20589 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20590 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20591 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
20592 SWIG_POINTER_EXCEPTION | 0)) == -1)
20593 SWIG_fail;
20594 if (arg2 == NULL) {
20595 PyErr_SetString(PyExc_TypeError,"null reference");
20596 SWIG_fail;
20597 }
20598 {
20599 PyThreadState* __tstate = wxPyBeginAllowThreads();
20600 result = wxDateTime___sub____SWIG_1(arg1,(wxTimeSpan const &)*arg2);
20601
20602 wxPyEndAllowThreads(__tstate);
20603 if (PyErr_Occurred()) SWIG_fail;
20604 }
20605 {
20606 wxDateTime * resultptr;
20607 resultptr = new wxDateTime((wxDateTime &) result);
20608 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
20609 }
20610 return resultobj;
20611 fail:
20612 return NULL;
20613 }
20614
20615
20616 static PyObject *_wrap_DateTime___sub____SWIG_2(PyObject *self, PyObject *args) {
20617 PyObject *resultobj;
20618 wxDateTime *arg1 = (wxDateTime *) 0 ;
20619 wxDateSpan *arg2 = 0 ;
20620 wxDateTime result;
20621 PyObject * obj0 = 0 ;
20622 PyObject * obj1 = 0 ;
20623
20624 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail;
20625 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20626 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20627 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
20628 SWIG_POINTER_EXCEPTION | 0)) == -1)
20629 SWIG_fail;
20630 if (arg2 == NULL) {
20631 PyErr_SetString(PyExc_TypeError,"null reference");
20632 SWIG_fail;
20633 }
20634 {
20635 PyThreadState* __tstate = wxPyBeginAllowThreads();
20636 result = wxDateTime___sub____SWIG_2(arg1,(wxDateSpan const &)*arg2);
20637
20638 wxPyEndAllowThreads(__tstate);
20639 if (PyErr_Occurred()) SWIG_fail;
20640 }
20641 {
20642 wxDateTime * resultptr;
20643 resultptr = new wxDateTime((wxDateTime &) result);
20644 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
20645 }
20646 return resultobj;
20647 fail:
20648 return NULL;
20649 }
20650
20651
20652 static PyObject *_wrap_DateTime___sub__(PyObject *self, PyObject *args) {
20653 int argc;
20654 PyObject *argv[3];
20655 int ii;
20656
20657 argc = PyObject_Length(args);
20658 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
20659 argv[ii] = PyTuple_GetItem(args,ii);
20660 }
20661 if (argc == 2) {
20662 int _v;
20663 {
20664 void *ptr;
20665 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20666 _v = 0;
20667 PyErr_Clear();
20668 } else {
20669 _v = 1;
20670 }
20671 }
20672 if (_v) {
20673 {
20674 void *ptr;
20675 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20676 _v = 0;
20677 PyErr_Clear();
20678 } else {
20679 _v = 1;
20680 }
20681 }
20682 if (_v) {
20683 return _wrap_DateTime___sub____SWIG_0(self,args);
20684 }
20685 }
20686 }
20687 if (argc == 2) {
20688 int _v;
20689 {
20690 void *ptr;
20691 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20692 _v = 0;
20693 PyErr_Clear();
20694 } else {
20695 _v = 1;
20696 }
20697 }
20698 if (_v) {
20699 {
20700 void *ptr;
20701 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) {
20702 _v = 0;
20703 PyErr_Clear();
20704 } else {
20705 _v = 1;
20706 }
20707 }
20708 if (_v) {
20709 return _wrap_DateTime___sub____SWIG_1(self,args);
20710 }
20711 }
20712 }
20713 if (argc == 2) {
20714 int _v;
20715 {
20716 void *ptr;
20717 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20718 _v = 0;
20719 PyErr_Clear();
20720 } else {
20721 _v = 1;
20722 }
20723 }
20724 if (_v) {
20725 {
20726 void *ptr;
20727 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) {
20728 _v = 0;
20729 PyErr_Clear();
20730 } else {
20731 _v = 1;
20732 }
20733 }
20734 if (_v) {
20735 return _wrap_DateTime___sub____SWIG_2(self,args);
20736 }
20737 }
20738 }
20739
20740 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___sub__'");
20741 return NULL;
20742 }
20743
20744
20745 static PyObject *_wrap_DateTime___lt__(PyObject *self, PyObject *args) {
20746 PyObject *resultobj;
20747 wxDateTime *arg1 = (wxDateTime *) 0 ;
20748 wxDateTime *arg2 = (wxDateTime *) 0 ;
20749 bool result;
20750 PyObject * obj0 = 0 ;
20751 PyObject * obj1 = 0 ;
20752
20753 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___lt__",&obj0,&obj1)) goto fail;
20754 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20755 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20756 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20757 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20758 {
20759 PyThreadState* __tstate = wxPyBeginAllowThreads();
20760 result = (bool)wxDateTime___lt__(arg1,(wxDateTime const *)arg2);
20761
20762 wxPyEndAllowThreads(__tstate);
20763 if (PyErr_Occurred()) SWIG_fail;
20764 }
20765 {
20766 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20767 }
20768 return resultobj;
20769 fail:
20770 return NULL;
20771 }
20772
20773
20774 static PyObject *_wrap_DateTime___le__(PyObject *self, PyObject *args) {
20775 PyObject *resultobj;
20776 wxDateTime *arg1 = (wxDateTime *) 0 ;
20777 wxDateTime *arg2 = (wxDateTime *) 0 ;
20778 bool result;
20779 PyObject * obj0 = 0 ;
20780 PyObject * obj1 = 0 ;
20781
20782 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___le__",&obj0,&obj1)) goto fail;
20783 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20784 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20785 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20786 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20787 {
20788 PyThreadState* __tstate = wxPyBeginAllowThreads();
20789 result = (bool)wxDateTime___le__(arg1,(wxDateTime const *)arg2);
20790
20791 wxPyEndAllowThreads(__tstate);
20792 if (PyErr_Occurred()) SWIG_fail;
20793 }
20794 {
20795 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20796 }
20797 return resultobj;
20798 fail:
20799 return NULL;
20800 }
20801
20802
20803 static PyObject *_wrap_DateTime___gt__(PyObject *self, PyObject *args) {
20804 PyObject *resultobj;
20805 wxDateTime *arg1 = (wxDateTime *) 0 ;
20806 wxDateTime *arg2 = (wxDateTime *) 0 ;
20807 bool result;
20808 PyObject * obj0 = 0 ;
20809 PyObject * obj1 = 0 ;
20810
20811 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___gt__",&obj0,&obj1)) goto fail;
20812 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20813 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20814 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20815 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20816 {
20817 PyThreadState* __tstate = wxPyBeginAllowThreads();
20818 result = (bool)wxDateTime___gt__(arg1,(wxDateTime const *)arg2);
20819
20820 wxPyEndAllowThreads(__tstate);
20821 if (PyErr_Occurred()) SWIG_fail;
20822 }
20823 {
20824 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20825 }
20826 return resultobj;
20827 fail:
20828 return NULL;
20829 }
20830
20831
20832 static PyObject *_wrap_DateTime___ge__(PyObject *self, PyObject *args) {
20833 PyObject *resultobj;
20834 wxDateTime *arg1 = (wxDateTime *) 0 ;
20835 wxDateTime *arg2 = (wxDateTime *) 0 ;
20836 bool result;
20837 PyObject * obj0 = 0 ;
20838 PyObject * obj1 = 0 ;
20839
20840 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___ge__",&obj0,&obj1)) goto fail;
20841 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20842 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20843 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20844 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20845 {
20846 PyThreadState* __tstate = wxPyBeginAllowThreads();
20847 result = (bool)wxDateTime___ge__(arg1,(wxDateTime const *)arg2);
20848
20849 wxPyEndAllowThreads(__tstate);
20850 if (PyErr_Occurred()) SWIG_fail;
20851 }
20852 {
20853 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20854 }
20855 return resultobj;
20856 fail:
20857 return NULL;
20858 }
20859
20860
20861 static PyObject *_wrap_DateTime___eq__(PyObject *self, PyObject *args) {
20862 PyObject *resultobj;
20863 wxDateTime *arg1 = (wxDateTime *) 0 ;
20864 wxDateTime *arg2 = (wxDateTime *) 0 ;
20865 bool result;
20866 PyObject * obj0 = 0 ;
20867 PyObject * obj1 = 0 ;
20868
20869 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___eq__",&obj0,&obj1)) goto fail;
20870 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20871 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20872 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20873 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20874 {
20875 PyThreadState* __tstate = wxPyBeginAllowThreads();
20876 result = (bool)wxDateTime___eq__(arg1,(wxDateTime const *)arg2);
20877
20878 wxPyEndAllowThreads(__tstate);
20879 if (PyErr_Occurred()) SWIG_fail;
20880 }
20881 {
20882 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20883 }
20884 return resultobj;
20885 fail:
20886 return NULL;
20887 }
20888
20889
20890 static PyObject *_wrap_DateTime___ne__(PyObject *self, PyObject *args) {
20891 PyObject *resultobj;
20892 wxDateTime *arg1 = (wxDateTime *) 0 ;
20893 wxDateTime *arg2 = (wxDateTime *) 0 ;
20894 bool result;
20895 PyObject * obj0 = 0 ;
20896 PyObject * obj1 = 0 ;
20897
20898 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___ne__",&obj0,&obj1)) goto fail;
20899 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20900 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20901 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20902 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20903 {
20904 PyThreadState* __tstate = wxPyBeginAllowThreads();
20905 result = (bool)wxDateTime___ne__(arg1,(wxDateTime const *)arg2);
20906
20907 wxPyEndAllowThreads(__tstate);
20908 if (PyErr_Occurred()) SWIG_fail;
20909 }
20910 {
20911 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20912 }
20913 return resultobj;
20914 fail:
20915 return NULL;
20916 }
20917
20918
20919 static PyObject *_wrap_DateTime_ParseRfc822Date(PyObject *self, PyObject *args, PyObject *kwargs) {
20920 PyObject *resultobj;
20921 wxDateTime *arg1 = (wxDateTime *) 0 ;
20922 wxString *arg2 = 0 ;
20923 int result;
20924 bool temp2 = False ;
20925 PyObject * obj0 = 0 ;
20926 PyObject * obj1 = 0 ;
20927 char *kwnames[] = {
20928 (char *) "self",(char *) "date", NULL
20929 };
20930
20931 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseRfc822Date",kwnames,&obj0,&obj1)) goto fail;
20932 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20933 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20934 {
20935 arg2 = wxString_in_helper(obj1);
20936 if (arg2 == NULL) SWIG_fail;
20937 temp2 = True;
20938 }
20939 {
20940 PyThreadState* __tstate = wxPyBeginAllowThreads();
20941 result = (int)wxDateTime_ParseRfc822Date(arg1,(wxString const &)*arg2);
20942
20943 wxPyEndAllowThreads(__tstate);
20944 if (PyErr_Occurred()) SWIG_fail;
20945 }
20946 resultobj = SWIG_FromInt((int)result);
20947 {
20948 if (temp2)
20949 delete arg2;
20950 }
20951 return resultobj;
20952 fail:
20953 {
20954 if (temp2)
20955 delete arg2;
20956 }
20957 return NULL;
20958 }
20959
20960
20961 static PyObject *_wrap_DateTime_ParseFormat(PyObject *self, PyObject *args, PyObject *kwargs) {
20962 PyObject *resultobj;
20963 wxDateTime *arg1 = (wxDateTime *) 0 ;
20964 wxString *arg2 = 0 ;
20965 wxString const &arg3_defvalue = wxPyDateFormatStr ;
20966 wxString *arg3 = (wxString *) &arg3_defvalue ;
20967 wxDateTime const &arg4_defvalue = wxDefaultDateTime ;
20968 wxDateTime *arg4 = (wxDateTime *) &arg4_defvalue ;
20969 int result;
20970 bool temp2 = False ;
20971 bool temp3 = False ;
20972 PyObject * obj0 = 0 ;
20973 PyObject * obj1 = 0 ;
20974 PyObject * obj2 = 0 ;
20975 PyObject * obj3 = 0 ;
20976 char *kwnames[] = {
20977 (char *) "self",(char *) "date",(char *) "format",(char *) "dateDef", NULL
20978 };
20979
20980 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_ParseFormat",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
20981 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20982 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20983 {
20984 arg2 = wxString_in_helper(obj1);
20985 if (arg2 == NULL) SWIG_fail;
20986 temp2 = True;
20987 }
20988 if (obj2) {
20989 {
20990 arg3 = wxString_in_helper(obj2);
20991 if (arg3 == NULL) SWIG_fail;
20992 temp3 = True;
20993 }
20994 }
20995 if (obj3) {
20996 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxDateTime,
20997 SWIG_POINTER_EXCEPTION | 0)) == -1)
20998 SWIG_fail;
20999 if (arg4 == NULL) {
21000 PyErr_SetString(PyExc_TypeError,"null reference");
21001 SWIG_fail;
21002 }
21003 }
21004 {
21005 PyThreadState* __tstate = wxPyBeginAllowThreads();
21006 result = (int)wxDateTime_ParseFormat(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxDateTime const &)*arg4);
21007
21008 wxPyEndAllowThreads(__tstate);
21009 if (PyErr_Occurred()) SWIG_fail;
21010 }
21011 resultobj = SWIG_FromInt((int)result);
21012 {
21013 if (temp2)
21014 delete arg2;
21015 }
21016 {
21017 if (temp3)
21018 delete arg3;
21019 }
21020 return resultobj;
21021 fail:
21022 {
21023 if (temp2)
21024 delete arg2;
21025 }
21026 {
21027 if (temp3)
21028 delete arg3;
21029 }
21030 return NULL;
21031 }
21032
21033
21034 static PyObject *_wrap_DateTime_ParseDateTime(PyObject *self, PyObject *args, PyObject *kwargs) {
21035 PyObject *resultobj;
21036 wxDateTime *arg1 = (wxDateTime *) 0 ;
21037 wxString *arg2 = 0 ;
21038 int result;
21039 bool temp2 = False ;
21040 PyObject * obj0 = 0 ;
21041 PyObject * obj1 = 0 ;
21042 char *kwnames[] = {
21043 (char *) "self",(char *) "datetime", NULL
21044 };
21045
21046 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseDateTime",kwnames,&obj0,&obj1)) goto fail;
21047 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21048 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21049 {
21050 arg2 = wxString_in_helper(obj1);
21051 if (arg2 == NULL) SWIG_fail;
21052 temp2 = True;
21053 }
21054 {
21055 PyThreadState* __tstate = wxPyBeginAllowThreads();
21056 result = (int)wxDateTime_ParseDateTime(arg1,(wxString const &)*arg2);
21057
21058 wxPyEndAllowThreads(__tstate);
21059 if (PyErr_Occurred()) SWIG_fail;
21060 }
21061 resultobj = SWIG_FromInt((int)result);
21062 {
21063 if (temp2)
21064 delete arg2;
21065 }
21066 return resultobj;
21067 fail:
21068 {
21069 if (temp2)
21070 delete arg2;
21071 }
21072 return NULL;
21073 }
21074
21075
21076 static PyObject *_wrap_DateTime_ParseDate(PyObject *self, PyObject *args, PyObject *kwargs) {
21077 PyObject *resultobj;
21078 wxDateTime *arg1 = (wxDateTime *) 0 ;
21079 wxString *arg2 = 0 ;
21080 int result;
21081 bool temp2 = False ;
21082 PyObject * obj0 = 0 ;
21083 PyObject * obj1 = 0 ;
21084 char *kwnames[] = {
21085 (char *) "self",(char *) "date", NULL
21086 };
21087
21088 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseDate",kwnames,&obj0,&obj1)) goto fail;
21089 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21090 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21091 {
21092 arg2 = wxString_in_helper(obj1);
21093 if (arg2 == NULL) SWIG_fail;
21094 temp2 = True;
21095 }
21096 {
21097 PyThreadState* __tstate = wxPyBeginAllowThreads();
21098 result = (int)wxDateTime_ParseDate(arg1,(wxString const &)*arg2);
21099
21100 wxPyEndAllowThreads(__tstate);
21101 if (PyErr_Occurred()) SWIG_fail;
21102 }
21103 resultobj = SWIG_FromInt((int)result);
21104 {
21105 if (temp2)
21106 delete arg2;
21107 }
21108 return resultobj;
21109 fail:
21110 {
21111 if (temp2)
21112 delete arg2;
21113 }
21114 return NULL;
21115 }
21116
21117
21118 static PyObject *_wrap_DateTime_ParseTime(PyObject *self, PyObject *args, PyObject *kwargs) {
21119 PyObject *resultobj;
21120 wxDateTime *arg1 = (wxDateTime *) 0 ;
21121 wxString *arg2 = 0 ;
21122 int result;
21123 bool temp2 = False ;
21124 PyObject * obj0 = 0 ;
21125 PyObject * obj1 = 0 ;
21126 char *kwnames[] = {
21127 (char *) "self",(char *) "time", NULL
21128 };
21129
21130 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseTime",kwnames,&obj0,&obj1)) goto fail;
21131 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21132 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21133 {
21134 arg2 = wxString_in_helper(obj1);
21135 if (arg2 == NULL) SWIG_fail;
21136 temp2 = True;
21137 }
21138 {
21139 PyThreadState* __tstate = wxPyBeginAllowThreads();
21140 result = (int)wxDateTime_ParseTime(arg1,(wxString const &)*arg2);
21141
21142 wxPyEndAllowThreads(__tstate);
21143 if (PyErr_Occurred()) SWIG_fail;
21144 }
21145 resultobj = SWIG_FromInt((int)result);
21146 {
21147 if (temp2)
21148 delete arg2;
21149 }
21150 return resultobj;
21151 fail:
21152 {
21153 if (temp2)
21154 delete arg2;
21155 }
21156 return NULL;
21157 }
21158
21159
21160 static PyObject *_wrap_DateTime_Format(PyObject *self, PyObject *args, PyObject *kwargs) {
21161 PyObject *resultobj;
21162 wxDateTime *arg1 = (wxDateTime *) 0 ;
21163 wxString const &arg2_defvalue = wxPyDateFormatStr ;
21164 wxString *arg2 = (wxString *) &arg2_defvalue ;
21165 wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ;
21166 wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ;
21167 wxString result;
21168 bool temp2 = False ;
21169 bool temp3 = False ;
21170 PyObject * obj0 = 0 ;
21171 PyObject * obj1 = 0 ;
21172 PyObject * obj2 = 0 ;
21173 char *kwnames[] = {
21174 (char *) "self",(char *) "format",(char *) "tz", NULL
21175 };
21176
21177 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_Format",kwnames,&obj0,&obj1,&obj2)) goto fail;
21178 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21179 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21180 if (obj1) {
21181 {
21182 arg2 = wxString_in_helper(obj1);
21183 if (arg2 == NULL) SWIG_fail;
21184 temp2 = True;
21185 }
21186 }
21187 if (obj2) {
21188 {
21189 arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2));
21190 temp3 = True;
21191 }
21192 }
21193 {
21194 PyThreadState* __tstate = wxPyBeginAllowThreads();
21195 result = ((wxDateTime const *)arg1)->Format((wxString const &)*arg2,(wxDateTime::TimeZone const &)*arg3);
21196
21197 wxPyEndAllowThreads(__tstate);
21198 if (PyErr_Occurred()) SWIG_fail;
21199 }
21200 {
21201 #if wxUSE_UNICODE
21202 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
21203 #else
21204 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
21205 #endif
21206 }
21207 {
21208 if (temp2)
21209 delete arg2;
21210 }
21211 {
21212 if (temp3) delete arg3;
21213 }
21214 return resultobj;
21215 fail:
21216 {
21217 if (temp2)
21218 delete arg2;
21219 }
21220 {
21221 if (temp3) delete arg3;
21222 }
21223 return NULL;
21224 }
21225
21226
21227 static PyObject *_wrap_DateTime_FormatDate(PyObject *self, PyObject *args, PyObject *kwargs) {
21228 PyObject *resultobj;
21229 wxDateTime *arg1 = (wxDateTime *) 0 ;
21230 wxString result;
21231 PyObject * obj0 = 0 ;
21232 char *kwnames[] = {
21233 (char *) "self", NULL
21234 };
21235
21236 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatDate",kwnames,&obj0)) goto fail;
21237 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21238 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21239 {
21240 PyThreadState* __tstate = wxPyBeginAllowThreads();
21241 result = ((wxDateTime const *)arg1)->FormatDate();
21242
21243 wxPyEndAllowThreads(__tstate);
21244 if (PyErr_Occurred()) SWIG_fail;
21245 }
21246 {
21247 #if wxUSE_UNICODE
21248 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
21249 #else
21250 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
21251 #endif
21252 }
21253 return resultobj;
21254 fail:
21255 return NULL;
21256 }
21257
21258
21259 static PyObject *_wrap_DateTime_FormatTime(PyObject *self, PyObject *args, PyObject *kwargs) {
21260 PyObject *resultobj;
21261 wxDateTime *arg1 = (wxDateTime *) 0 ;
21262 wxString result;
21263 PyObject * obj0 = 0 ;
21264 char *kwnames[] = {
21265 (char *) "self", NULL
21266 };
21267
21268 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatTime",kwnames,&obj0)) goto fail;
21269 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21270 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21271 {
21272 PyThreadState* __tstate = wxPyBeginAllowThreads();
21273 result = ((wxDateTime const *)arg1)->FormatTime();
21274
21275 wxPyEndAllowThreads(__tstate);
21276 if (PyErr_Occurred()) SWIG_fail;
21277 }
21278 {
21279 #if wxUSE_UNICODE
21280 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
21281 #else
21282 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
21283 #endif
21284 }
21285 return resultobj;
21286 fail:
21287 return NULL;
21288 }
21289
21290
21291 static PyObject *_wrap_DateTime_FormatISODate(PyObject *self, PyObject *args, PyObject *kwargs) {
21292 PyObject *resultobj;
21293 wxDateTime *arg1 = (wxDateTime *) 0 ;
21294 wxString result;
21295 PyObject * obj0 = 0 ;
21296 char *kwnames[] = {
21297 (char *) "self", NULL
21298 };
21299
21300 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatISODate",kwnames,&obj0)) goto fail;
21301 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21302 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21303 {
21304 PyThreadState* __tstate = wxPyBeginAllowThreads();
21305 result = ((wxDateTime const *)arg1)->FormatISODate();
21306
21307 wxPyEndAllowThreads(__tstate);
21308 if (PyErr_Occurred()) SWIG_fail;
21309 }
21310 {
21311 #if wxUSE_UNICODE
21312 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
21313 #else
21314 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
21315 #endif
21316 }
21317 return resultobj;
21318 fail:
21319 return NULL;
21320 }
21321
21322
21323 static PyObject *_wrap_DateTime_FormatISOTime(PyObject *self, PyObject *args, PyObject *kwargs) {
21324 PyObject *resultobj;
21325 wxDateTime *arg1 = (wxDateTime *) 0 ;
21326 wxString result;
21327 PyObject * obj0 = 0 ;
21328 char *kwnames[] = {
21329 (char *) "self", NULL
21330 };
21331
21332 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatISOTime",kwnames,&obj0)) goto fail;
21333 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21334 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21335 {
21336 PyThreadState* __tstate = wxPyBeginAllowThreads();
21337 result = ((wxDateTime const *)arg1)->FormatISOTime();
21338
21339 wxPyEndAllowThreads(__tstate);
21340 if (PyErr_Occurred()) SWIG_fail;
21341 }
21342 {
21343 #if wxUSE_UNICODE
21344 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
21345 #else
21346 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
21347 #endif
21348 }
21349 return resultobj;
21350 fail:
21351 return NULL;
21352 }
21353
21354
21355 static PyObject * DateTime_swigregister(PyObject *self, PyObject *args) {
21356 PyObject *obj;
21357 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
21358 SWIG_TypeClientData(SWIGTYPE_p_wxDateTime, obj);
21359 Py_INCREF(obj);
21360 return Py_BuildValue((char *)"");
21361 }
21362 static PyObject *_wrap_TimeSpan_Seconds(PyObject *self, PyObject *args, PyObject *kwargs) {
21363 PyObject *resultobj;
21364 long arg1 ;
21365 wxTimeSpan result;
21366 PyObject * obj0 = 0 ;
21367 char *kwnames[] = {
21368 (char *) "sec", NULL
21369 };
21370
21371 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Seconds",kwnames,&obj0)) goto fail;
21372 arg1 = (long) SWIG_AsLong(obj0);
21373 if (PyErr_Occurred()) SWIG_fail;
21374 {
21375 PyThreadState* __tstate = wxPyBeginAllowThreads();
21376 result = wxTimeSpan::Seconds(arg1);
21377
21378 wxPyEndAllowThreads(__tstate);
21379 if (PyErr_Occurred()) SWIG_fail;
21380 }
21381 {
21382 wxTimeSpan * resultptr;
21383 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21384 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21385 }
21386 return resultobj;
21387 fail:
21388 return NULL;
21389 }
21390
21391
21392 static PyObject *_wrap_TimeSpan_Second(PyObject *self, PyObject *args, PyObject *kwargs) {
21393 PyObject *resultobj;
21394 wxTimeSpan result;
21395 char *kwnames[] = {
21396 NULL
21397 };
21398
21399 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Second",kwnames)) goto fail;
21400 {
21401 PyThreadState* __tstate = wxPyBeginAllowThreads();
21402 result = wxTimeSpan::Second();
21403
21404 wxPyEndAllowThreads(__tstate);
21405 if (PyErr_Occurred()) SWIG_fail;
21406 }
21407 {
21408 wxTimeSpan * resultptr;
21409 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21410 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21411 }
21412 return resultobj;
21413 fail:
21414 return NULL;
21415 }
21416
21417
21418 static PyObject *_wrap_TimeSpan_Minutes(PyObject *self, PyObject *args, PyObject *kwargs) {
21419 PyObject *resultobj;
21420 long arg1 ;
21421 wxTimeSpan result;
21422 PyObject * obj0 = 0 ;
21423 char *kwnames[] = {
21424 (char *) "min", NULL
21425 };
21426
21427 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Minutes",kwnames,&obj0)) goto fail;
21428 arg1 = (long) SWIG_AsLong(obj0);
21429 if (PyErr_Occurred()) SWIG_fail;
21430 {
21431 PyThreadState* __tstate = wxPyBeginAllowThreads();
21432 result = wxTimeSpan::Minutes(arg1);
21433
21434 wxPyEndAllowThreads(__tstate);
21435 if (PyErr_Occurred()) SWIG_fail;
21436 }
21437 {
21438 wxTimeSpan * resultptr;
21439 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21440 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21441 }
21442 return resultobj;
21443 fail:
21444 return NULL;
21445 }
21446
21447
21448 static PyObject *_wrap_TimeSpan_Minute(PyObject *self, PyObject *args, PyObject *kwargs) {
21449 PyObject *resultobj;
21450 wxTimeSpan result;
21451 char *kwnames[] = {
21452 NULL
21453 };
21454
21455 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Minute",kwnames)) goto fail;
21456 {
21457 PyThreadState* __tstate = wxPyBeginAllowThreads();
21458 result = wxTimeSpan::Minute();
21459
21460 wxPyEndAllowThreads(__tstate);
21461 if (PyErr_Occurred()) SWIG_fail;
21462 }
21463 {
21464 wxTimeSpan * resultptr;
21465 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21466 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21467 }
21468 return resultobj;
21469 fail:
21470 return NULL;
21471 }
21472
21473
21474 static PyObject *_wrap_TimeSpan_Hours(PyObject *self, PyObject *args, PyObject *kwargs) {
21475 PyObject *resultobj;
21476 long arg1 ;
21477 wxTimeSpan result;
21478 PyObject * obj0 = 0 ;
21479 char *kwnames[] = {
21480 (char *) "hours", NULL
21481 };
21482
21483 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Hours",kwnames,&obj0)) goto fail;
21484 arg1 = (long) SWIG_AsLong(obj0);
21485 if (PyErr_Occurred()) SWIG_fail;
21486 {
21487 PyThreadState* __tstate = wxPyBeginAllowThreads();
21488 result = wxTimeSpan::Hours(arg1);
21489
21490 wxPyEndAllowThreads(__tstate);
21491 if (PyErr_Occurred()) SWIG_fail;
21492 }
21493 {
21494 wxTimeSpan * resultptr;
21495 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21496 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21497 }
21498 return resultobj;
21499 fail:
21500 return NULL;
21501 }
21502
21503
21504 static PyObject *_wrap_TimeSpan_Hour(PyObject *self, PyObject *args, PyObject *kwargs) {
21505 PyObject *resultobj;
21506 wxTimeSpan result;
21507 char *kwnames[] = {
21508 NULL
21509 };
21510
21511 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Hour",kwnames)) goto fail;
21512 {
21513 PyThreadState* __tstate = wxPyBeginAllowThreads();
21514 result = wxTimeSpan::Hour();
21515
21516 wxPyEndAllowThreads(__tstate);
21517 if (PyErr_Occurred()) SWIG_fail;
21518 }
21519 {
21520 wxTimeSpan * resultptr;
21521 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21522 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21523 }
21524 return resultobj;
21525 fail:
21526 return NULL;
21527 }
21528
21529
21530 static PyObject *_wrap_TimeSpan_Days(PyObject *self, PyObject *args, PyObject *kwargs) {
21531 PyObject *resultobj;
21532 long arg1 ;
21533 wxTimeSpan result;
21534 PyObject * obj0 = 0 ;
21535 char *kwnames[] = {
21536 (char *) "days", NULL
21537 };
21538
21539 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Days",kwnames,&obj0)) goto fail;
21540 arg1 = (long) SWIG_AsLong(obj0);
21541 if (PyErr_Occurred()) SWIG_fail;
21542 {
21543 PyThreadState* __tstate = wxPyBeginAllowThreads();
21544 result = wxTimeSpan::Days(arg1);
21545
21546 wxPyEndAllowThreads(__tstate);
21547 if (PyErr_Occurred()) SWIG_fail;
21548 }
21549 {
21550 wxTimeSpan * resultptr;
21551 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21552 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21553 }
21554 return resultobj;
21555 fail:
21556 return NULL;
21557 }
21558
21559
21560 static PyObject *_wrap_TimeSpan_Day(PyObject *self, PyObject *args, PyObject *kwargs) {
21561 PyObject *resultobj;
21562 wxTimeSpan result;
21563 char *kwnames[] = {
21564 NULL
21565 };
21566
21567 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Day",kwnames)) goto fail;
21568 {
21569 PyThreadState* __tstate = wxPyBeginAllowThreads();
21570 result = wxTimeSpan::Day();
21571
21572 wxPyEndAllowThreads(__tstate);
21573 if (PyErr_Occurred()) SWIG_fail;
21574 }
21575 {
21576 wxTimeSpan * resultptr;
21577 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21578 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21579 }
21580 return resultobj;
21581 fail:
21582 return NULL;
21583 }
21584
21585
21586 static PyObject *_wrap_TimeSpan_Weeks(PyObject *self, PyObject *args, PyObject *kwargs) {
21587 PyObject *resultobj;
21588 long arg1 ;
21589 wxTimeSpan result;
21590 PyObject * obj0 = 0 ;
21591 char *kwnames[] = {
21592 (char *) "days", NULL
21593 };
21594
21595 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Weeks",kwnames,&obj0)) goto fail;
21596 arg1 = (long) SWIG_AsLong(obj0);
21597 if (PyErr_Occurred()) SWIG_fail;
21598 {
21599 PyThreadState* __tstate = wxPyBeginAllowThreads();
21600 result = wxTimeSpan::Weeks(arg1);
21601
21602 wxPyEndAllowThreads(__tstate);
21603 if (PyErr_Occurred()) SWIG_fail;
21604 }
21605 {
21606 wxTimeSpan * resultptr;
21607 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21608 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21609 }
21610 return resultobj;
21611 fail:
21612 return NULL;
21613 }
21614
21615
21616 static PyObject *_wrap_TimeSpan_Week(PyObject *self, PyObject *args, PyObject *kwargs) {
21617 PyObject *resultobj;
21618 wxTimeSpan result;
21619 char *kwnames[] = {
21620 NULL
21621 };
21622
21623 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Week",kwnames)) goto fail;
21624 {
21625 PyThreadState* __tstate = wxPyBeginAllowThreads();
21626 result = wxTimeSpan::Week();
21627
21628 wxPyEndAllowThreads(__tstate);
21629 if (PyErr_Occurred()) SWIG_fail;
21630 }
21631 {
21632 wxTimeSpan * resultptr;
21633 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21634 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21635 }
21636 return resultobj;
21637 fail:
21638 return NULL;
21639 }
21640
21641
21642 static PyObject *_wrap_new_TimeSpan(PyObject *self, PyObject *args, PyObject *kwargs) {
21643 PyObject *resultobj;
21644 long arg1 = (long) 0 ;
21645 long arg2 = (long) 0 ;
21646 long arg3 = (long) 0 ;
21647 long arg4 = (long) 0 ;
21648 wxTimeSpan *result;
21649 PyObject * obj0 = 0 ;
21650 PyObject * obj1 = 0 ;
21651 PyObject * obj2 = 0 ;
21652 PyObject * obj3 = 0 ;
21653 char *kwnames[] = {
21654 (char *) "hours",(char *) "minutes",(char *) "seconds",(char *) "milliseconds", NULL
21655 };
21656
21657 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TimeSpan",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
21658 if (obj0) {
21659 arg1 = (long) SWIG_AsLong(obj0);
21660 if (PyErr_Occurred()) SWIG_fail;
21661 }
21662 if (obj1) {
21663 arg2 = (long) SWIG_AsLong(obj1);
21664 if (PyErr_Occurred()) SWIG_fail;
21665 }
21666 if (obj2) {
21667 arg3 = (long) SWIG_AsLong(obj2);
21668 if (PyErr_Occurred()) SWIG_fail;
21669 }
21670 if (obj3) {
21671 arg4 = (long) SWIG_AsLong(obj3);
21672 if (PyErr_Occurred()) SWIG_fail;
21673 }
21674 {
21675 PyThreadState* __tstate = wxPyBeginAllowThreads();
21676 result = (wxTimeSpan *)new wxTimeSpan(arg1,arg2,arg3,arg4);
21677
21678 wxPyEndAllowThreads(__tstate);
21679 if (PyErr_Occurred()) SWIG_fail;
21680 }
21681 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 1);
21682 return resultobj;
21683 fail:
21684 return NULL;
21685 }
21686
21687
21688 static PyObject *_wrap_delete_TimeSpan(PyObject *self, PyObject *args, PyObject *kwargs) {
21689 PyObject *resultobj;
21690 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21691 PyObject * obj0 = 0 ;
21692 char *kwnames[] = {
21693 (char *) "self", NULL
21694 };
21695
21696 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TimeSpan",kwnames,&obj0)) goto fail;
21697 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21698 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21699 {
21700 PyThreadState* __tstate = wxPyBeginAllowThreads();
21701 delete arg1;
21702
21703 wxPyEndAllowThreads(__tstate);
21704 if (PyErr_Occurred()) SWIG_fail;
21705 }
21706 Py_INCREF(Py_None); resultobj = Py_None;
21707 return resultobj;
21708 fail:
21709 return NULL;
21710 }
21711
21712
21713 static PyObject *_wrap_TimeSpan_Add(PyObject *self, PyObject *args, PyObject *kwargs) {
21714 PyObject *resultobj;
21715 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21716 wxTimeSpan *arg2 = 0 ;
21717 wxTimeSpan *result;
21718 PyObject * obj0 = 0 ;
21719 PyObject * obj1 = 0 ;
21720 char *kwnames[] = {
21721 (char *) "self",(char *) "diff", NULL
21722 };
21723
21724 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Add",kwnames,&obj0,&obj1)) goto fail;
21725 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21726 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21727 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
21728 SWIG_POINTER_EXCEPTION | 0)) == -1)
21729 SWIG_fail;
21730 if (arg2 == NULL) {
21731 PyErr_SetString(PyExc_TypeError,"null reference");
21732 SWIG_fail;
21733 }
21734 {
21735 PyThreadState* __tstate = wxPyBeginAllowThreads();
21736 {
21737 wxTimeSpan &_result_ref = (arg1)->Add((wxTimeSpan const &)*arg2);
21738 result = (wxTimeSpan *) &_result_ref;
21739 }
21740
21741 wxPyEndAllowThreads(__tstate);
21742 if (PyErr_Occurred()) SWIG_fail;
21743 }
21744 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
21745 return resultobj;
21746 fail:
21747 return NULL;
21748 }
21749
21750
21751 static PyObject *_wrap_TimeSpan_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) {
21752 PyObject *resultobj;
21753 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21754 wxTimeSpan *arg2 = 0 ;
21755 wxTimeSpan *result;
21756 PyObject * obj0 = 0 ;
21757 PyObject * obj1 = 0 ;
21758 char *kwnames[] = {
21759 (char *) "self",(char *) "diff", NULL
21760 };
21761
21762 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Subtract",kwnames,&obj0,&obj1)) goto fail;
21763 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21764 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21765 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
21766 SWIG_POINTER_EXCEPTION | 0)) == -1)
21767 SWIG_fail;
21768 if (arg2 == NULL) {
21769 PyErr_SetString(PyExc_TypeError,"null reference");
21770 SWIG_fail;
21771 }
21772 {
21773 PyThreadState* __tstate = wxPyBeginAllowThreads();
21774 {
21775 wxTimeSpan &_result_ref = (arg1)->Subtract((wxTimeSpan const &)*arg2);
21776 result = (wxTimeSpan *) &_result_ref;
21777 }
21778
21779 wxPyEndAllowThreads(__tstate);
21780 if (PyErr_Occurred()) SWIG_fail;
21781 }
21782 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
21783 return resultobj;
21784 fail:
21785 return NULL;
21786 }
21787
21788
21789 static PyObject *_wrap_TimeSpan_Multiply(PyObject *self, PyObject *args, PyObject *kwargs) {
21790 PyObject *resultobj;
21791 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21792 int arg2 ;
21793 wxTimeSpan *result;
21794 PyObject * obj0 = 0 ;
21795 PyObject * obj1 = 0 ;
21796 char *kwnames[] = {
21797 (char *) "self",(char *) "n", NULL
21798 };
21799
21800 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Multiply",kwnames,&obj0,&obj1)) goto fail;
21801 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21802 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21803 arg2 = (int) SWIG_AsInt(obj1);
21804 if (PyErr_Occurred()) SWIG_fail;
21805 {
21806 PyThreadState* __tstate = wxPyBeginAllowThreads();
21807 {
21808 wxTimeSpan &_result_ref = (arg1)->Multiply(arg2);
21809 result = (wxTimeSpan *) &_result_ref;
21810 }
21811
21812 wxPyEndAllowThreads(__tstate);
21813 if (PyErr_Occurred()) SWIG_fail;
21814 }
21815 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
21816 return resultobj;
21817 fail:
21818 return NULL;
21819 }
21820
21821
21822 static PyObject *_wrap_TimeSpan_Neg(PyObject *self, PyObject *args, PyObject *kwargs) {
21823 PyObject *resultobj;
21824 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21825 wxTimeSpan *result;
21826 PyObject * obj0 = 0 ;
21827 char *kwnames[] = {
21828 (char *) "self", NULL
21829 };
21830
21831 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Neg",kwnames,&obj0)) goto fail;
21832 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21833 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21834 {
21835 PyThreadState* __tstate = wxPyBeginAllowThreads();
21836 {
21837 wxTimeSpan &_result_ref = (arg1)->Neg();
21838 result = (wxTimeSpan *) &_result_ref;
21839 }
21840
21841 wxPyEndAllowThreads(__tstate);
21842 if (PyErr_Occurred()) SWIG_fail;
21843 }
21844 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
21845 return resultobj;
21846 fail:
21847 return NULL;
21848 }
21849
21850
21851 static PyObject *_wrap_TimeSpan_Abs(PyObject *self, PyObject *args, PyObject *kwargs) {
21852 PyObject *resultobj;
21853 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21854 wxTimeSpan result;
21855 PyObject * obj0 = 0 ;
21856 char *kwnames[] = {
21857 (char *) "self", NULL
21858 };
21859
21860 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Abs",kwnames,&obj0)) goto fail;
21861 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21862 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21863 {
21864 PyThreadState* __tstate = wxPyBeginAllowThreads();
21865 result = ((wxTimeSpan const *)arg1)->Abs();
21866
21867 wxPyEndAllowThreads(__tstate);
21868 if (PyErr_Occurred()) SWIG_fail;
21869 }
21870 {
21871 wxTimeSpan * resultptr;
21872 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21873 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21874 }
21875 return resultobj;
21876 fail:
21877 return NULL;
21878 }
21879
21880
21881 static PyObject *_wrap_TimeSpan___iadd__(PyObject *self, PyObject *args, PyObject *kwargs) {
21882 PyObject *resultobj;
21883 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21884 wxTimeSpan *arg2 = 0 ;
21885 wxTimeSpan *result;
21886 PyObject * obj0 = 0 ;
21887 PyObject * obj1 = 0 ;
21888 char *kwnames[] = {
21889 (char *) "self",(char *) "diff", NULL
21890 };
21891
21892 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___iadd__",kwnames,&obj0,&obj1)) goto fail;
21893 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21894 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21895 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
21896 SWIG_POINTER_EXCEPTION | 0)) == -1)
21897 SWIG_fail;
21898 if (arg2 == NULL) {
21899 PyErr_SetString(PyExc_TypeError,"null reference");
21900 SWIG_fail;
21901 }
21902 {
21903 PyThreadState* __tstate = wxPyBeginAllowThreads();
21904 {
21905 wxTimeSpan &_result_ref = (arg1)->operator +=((wxTimeSpan const &)*arg2);
21906 result = (wxTimeSpan *) &_result_ref;
21907 }
21908
21909 wxPyEndAllowThreads(__tstate);
21910 if (PyErr_Occurred()) SWIG_fail;
21911 }
21912 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
21913 return resultobj;
21914 fail:
21915 return NULL;
21916 }
21917
21918
21919 static PyObject *_wrap_TimeSpan___isub__(PyObject *self, PyObject *args, PyObject *kwargs) {
21920 PyObject *resultobj;
21921 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21922 wxTimeSpan *arg2 = 0 ;
21923 wxTimeSpan *result;
21924 PyObject * obj0 = 0 ;
21925 PyObject * obj1 = 0 ;
21926 char *kwnames[] = {
21927 (char *) "self",(char *) "diff", NULL
21928 };
21929
21930 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___isub__",kwnames,&obj0,&obj1)) goto fail;
21931 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21932 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21933 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
21934 SWIG_POINTER_EXCEPTION | 0)) == -1)
21935 SWIG_fail;
21936 if (arg2 == NULL) {
21937 PyErr_SetString(PyExc_TypeError,"null reference");
21938 SWIG_fail;
21939 }
21940 {
21941 PyThreadState* __tstate = wxPyBeginAllowThreads();
21942 {
21943 wxTimeSpan &_result_ref = (arg1)->operator -=((wxTimeSpan const &)*arg2);
21944 result = (wxTimeSpan *) &_result_ref;
21945 }
21946
21947 wxPyEndAllowThreads(__tstate);
21948 if (PyErr_Occurred()) SWIG_fail;
21949 }
21950 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
21951 return resultobj;
21952 fail:
21953 return NULL;
21954 }
21955
21956
21957 static PyObject *_wrap_TimeSpan___imul__(PyObject *self, PyObject *args, PyObject *kwargs) {
21958 PyObject *resultobj;
21959 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21960 int arg2 ;
21961 wxTimeSpan *result;
21962 PyObject * obj0 = 0 ;
21963 PyObject * obj1 = 0 ;
21964 char *kwnames[] = {
21965 (char *) "self",(char *) "n", NULL
21966 };
21967
21968 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___imul__",kwnames,&obj0,&obj1)) goto fail;
21969 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21970 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21971 arg2 = (int) SWIG_AsInt(obj1);
21972 if (PyErr_Occurred()) SWIG_fail;
21973 {
21974 PyThreadState* __tstate = wxPyBeginAllowThreads();
21975 {
21976 wxTimeSpan &_result_ref = (arg1)->operator *=(arg2);
21977 result = (wxTimeSpan *) &_result_ref;
21978 }
21979
21980 wxPyEndAllowThreads(__tstate);
21981 if (PyErr_Occurred()) SWIG_fail;
21982 }
21983 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
21984 return resultobj;
21985 fail:
21986 return NULL;
21987 }
21988
21989
21990 static PyObject *_wrap_TimeSpan___neg__(PyObject *self, PyObject *args, PyObject *kwargs) {
21991 PyObject *resultobj;
21992 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21993 wxTimeSpan *result;
21994 PyObject * obj0 = 0 ;
21995 char *kwnames[] = {
21996 (char *) "self", NULL
21997 };
21998
21999 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan___neg__",kwnames,&obj0)) goto fail;
22000 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22001 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22002 {
22003 PyThreadState* __tstate = wxPyBeginAllowThreads();
22004 {
22005 wxTimeSpan &_result_ref = (arg1)->operator -();
22006 result = (wxTimeSpan *) &_result_ref;
22007 }
22008
22009 wxPyEndAllowThreads(__tstate);
22010 if (PyErr_Occurred()) SWIG_fail;
22011 }
22012 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
22013 return resultobj;
22014 fail:
22015 return NULL;
22016 }
22017
22018
22019 static PyObject *_wrap_TimeSpan___add__(PyObject *self, PyObject *args, PyObject *kwargs) {
22020 PyObject *resultobj;
22021 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22022 wxTimeSpan *arg2 = 0 ;
22023 wxTimeSpan result;
22024 PyObject * obj0 = 0 ;
22025 PyObject * obj1 = 0 ;
22026 char *kwnames[] = {
22027 (char *) "self",(char *) "other", NULL
22028 };
22029
22030 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___add__",kwnames,&obj0,&obj1)) goto fail;
22031 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22032 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22033 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22034 SWIG_POINTER_EXCEPTION | 0)) == -1)
22035 SWIG_fail;
22036 if (arg2 == NULL) {
22037 PyErr_SetString(PyExc_TypeError,"null reference");
22038 SWIG_fail;
22039 }
22040 {
22041 PyThreadState* __tstate = wxPyBeginAllowThreads();
22042 result = wxTimeSpan___add__(arg1,(wxTimeSpan const &)*arg2);
22043
22044 wxPyEndAllowThreads(__tstate);
22045 if (PyErr_Occurred()) SWIG_fail;
22046 }
22047 {
22048 wxTimeSpan * resultptr;
22049 resultptr = new wxTimeSpan((wxTimeSpan &) result);
22050 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
22051 }
22052 return resultobj;
22053 fail:
22054 return NULL;
22055 }
22056
22057
22058 static PyObject *_wrap_TimeSpan___sub__(PyObject *self, PyObject *args, PyObject *kwargs) {
22059 PyObject *resultobj;
22060 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22061 wxTimeSpan *arg2 = 0 ;
22062 wxTimeSpan result;
22063 PyObject * obj0 = 0 ;
22064 PyObject * obj1 = 0 ;
22065 char *kwnames[] = {
22066 (char *) "self",(char *) "other", NULL
22067 };
22068
22069 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___sub__",kwnames,&obj0,&obj1)) goto fail;
22070 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22071 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22072 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22073 SWIG_POINTER_EXCEPTION | 0)) == -1)
22074 SWIG_fail;
22075 if (arg2 == NULL) {
22076 PyErr_SetString(PyExc_TypeError,"null reference");
22077 SWIG_fail;
22078 }
22079 {
22080 PyThreadState* __tstate = wxPyBeginAllowThreads();
22081 result = wxTimeSpan___sub__(arg1,(wxTimeSpan const &)*arg2);
22082
22083 wxPyEndAllowThreads(__tstate);
22084 if (PyErr_Occurred()) SWIG_fail;
22085 }
22086 {
22087 wxTimeSpan * resultptr;
22088 resultptr = new wxTimeSpan((wxTimeSpan &) result);
22089 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
22090 }
22091 return resultobj;
22092 fail:
22093 return NULL;
22094 }
22095
22096
22097 static PyObject *_wrap_TimeSpan___mul__(PyObject *self, PyObject *args, PyObject *kwargs) {
22098 PyObject *resultobj;
22099 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22100 int arg2 ;
22101 wxTimeSpan result;
22102 PyObject * obj0 = 0 ;
22103 PyObject * obj1 = 0 ;
22104 char *kwnames[] = {
22105 (char *) "self",(char *) "n", NULL
22106 };
22107
22108 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___mul__",kwnames,&obj0,&obj1)) goto fail;
22109 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22110 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22111 arg2 = (int) SWIG_AsInt(obj1);
22112 if (PyErr_Occurred()) SWIG_fail;
22113 {
22114 PyThreadState* __tstate = wxPyBeginAllowThreads();
22115 result = wxTimeSpan___mul__(arg1,arg2);
22116
22117 wxPyEndAllowThreads(__tstate);
22118 if (PyErr_Occurred()) SWIG_fail;
22119 }
22120 {
22121 wxTimeSpan * resultptr;
22122 resultptr = new wxTimeSpan((wxTimeSpan &) result);
22123 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
22124 }
22125 return resultobj;
22126 fail:
22127 return NULL;
22128 }
22129
22130
22131 static PyObject *_wrap_TimeSpan___rmul__(PyObject *self, PyObject *args, PyObject *kwargs) {
22132 PyObject *resultobj;
22133 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22134 int arg2 ;
22135 wxTimeSpan result;
22136 PyObject * obj0 = 0 ;
22137 PyObject * obj1 = 0 ;
22138 char *kwnames[] = {
22139 (char *) "self",(char *) "n", NULL
22140 };
22141
22142 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___rmul__",kwnames,&obj0,&obj1)) goto fail;
22143 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22144 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22145 arg2 = (int) SWIG_AsInt(obj1);
22146 if (PyErr_Occurred()) SWIG_fail;
22147 {
22148 PyThreadState* __tstate = wxPyBeginAllowThreads();
22149 result = wxTimeSpan___rmul__(arg1,arg2);
22150
22151 wxPyEndAllowThreads(__tstate);
22152 if (PyErr_Occurred()) SWIG_fail;
22153 }
22154 {
22155 wxTimeSpan * resultptr;
22156 resultptr = new wxTimeSpan((wxTimeSpan &) result);
22157 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
22158 }
22159 return resultobj;
22160 fail:
22161 return NULL;
22162 }
22163
22164
22165 static PyObject *_wrap_TimeSpan___lt__(PyObject *self, PyObject *args, PyObject *kwargs) {
22166 PyObject *resultobj;
22167 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22168 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
22169 bool result;
22170 PyObject * obj0 = 0 ;
22171 PyObject * obj1 = 0 ;
22172 char *kwnames[] = {
22173 (char *) "self",(char *) "other", NULL
22174 };
22175
22176 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___lt__",kwnames,&obj0,&obj1)) goto fail;
22177 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22178 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22179 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22180 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22181 {
22182 PyThreadState* __tstate = wxPyBeginAllowThreads();
22183 result = (bool)wxTimeSpan___lt__(arg1,(wxTimeSpan const *)arg2);
22184
22185 wxPyEndAllowThreads(__tstate);
22186 if (PyErr_Occurred()) SWIG_fail;
22187 }
22188 {
22189 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22190 }
22191 return resultobj;
22192 fail:
22193 return NULL;
22194 }
22195
22196
22197 static PyObject *_wrap_TimeSpan___le__(PyObject *self, PyObject *args, PyObject *kwargs) {
22198 PyObject *resultobj;
22199 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22200 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
22201 bool result;
22202 PyObject * obj0 = 0 ;
22203 PyObject * obj1 = 0 ;
22204 char *kwnames[] = {
22205 (char *) "self",(char *) "other", NULL
22206 };
22207
22208 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___le__",kwnames,&obj0,&obj1)) goto fail;
22209 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22210 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22211 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22212 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22213 {
22214 PyThreadState* __tstate = wxPyBeginAllowThreads();
22215 result = (bool)wxTimeSpan___le__(arg1,(wxTimeSpan const *)arg2);
22216
22217 wxPyEndAllowThreads(__tstate);
22218 if (PyErr_Occurred()) SWIG_fail;
22219 }
22220 {
22221 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22222 }
22223 return resultobj;
22224 fail:
22225 return NULL;
22226 }
22227
22228
22229 static PyObject *_wrap_TimeSpan___gt__(PyObject *self, PyObject *args, PyObject *kwargs) {
22230 PyObject *resultobj;
22231 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22232 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
22233 bool result;
22234 PyObject * obj0 = 0 ;
22235 PyObject * obj1 = 0 ;
22236 char *kwnames[] = {
22237 (char *) "self",(char *) "other", NULL
22238 };
22239
22240 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___gt__",kwnames,&obj0,&obj1)) goto fail;
22241 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22242 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22243 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22244 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22245 {
22246 PyThreadState* __tstate = wxPyBeginAllowThreads();
22247 result = (bool)wxTimeSpan___gt__(arg1,(wxTimeSpan const *)arg2);
22248
22249 wxPyEndAllowThreads(__tstate);
22250 if (PyErr_Occurred()) SWIG_fail;
22251 }
22252 {
22253 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22254 }
22255 return resultobj;
22256 fail:
22257 return NULL;
22258 }
22259
22260
22261 static PyObject *_wrap_TimeSpan___ge__(PyObject *self, PyObject *args, PyObject *kwargs) {
22262 PyObject *resultobj;
22263 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22264 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
22265 bool result;
22266 PyObject * obj0 = 0 ;
22267 PyObject * obj1 = 0 ;
22268 char *kwnames[] = {
22269 (char *) "self",(char *) "other", NULL
22270 };
22271
22272 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___ge__",kwnames,&obj0,&obj1)) goto fail;
22273 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22274 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22275 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22276 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22277 {
22278 PyThreadState* __tstate = wxPyBeginAllowThreads();
22279 result = (bool)wxTimeSpan___ge__(arg1,(wxTimeSpan const *)arg2);
22280
22281 wxPyEndAllowThreads(__tstate);
22282 if (PyErr_Occurred()) SWIG_fail;
22283 }
22284 {
22285 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22286 }
22287 return resultobj;
22288 fail:
22289 return NULL;
22290 }
22291
22292
22293 static PyObject *_wrap_TimeSpan___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
22294 PyObject *resultobj;
22295 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22296 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
22297 bool result;
22298 PyObject * obj0 = 0 ;
22299 PyObject * obj1 = 0 ;
22300 char *kwnames[] = {
22301 (char *) "self",(char *) "other", NULL
22302 };
22303
22304 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___eq__",kwnames,&obj0,&obj1)) goto fail;
22305 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22306 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22307 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22308 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22309 {
22310 PyThreadState* __tstate = wxPyBeginAllowThreads();
22311 result = (bool)wxTimeSpan___eq__(arg1,(wxTimeSpan const *)arg2);
22312
22313 wxPyEndAllowThreads(__tstate);
22314 if (PyErr_Occurred()) SWIG_fail;
22315 }
22316 {
22317 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22318 }
22319 return resultobj;
22320 fail:
22321 return NULL;
22322 }
22323
22324
22325 static PyObject *_wrap_TimeSpan___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
22326 PyObject *resultobj;
22327 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22328 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
22329 bool result;
22330 PyObject * obj0 = 0 ;
22331 PyObject * obj1 = 0 ;
22332 char *kwnames[] = {
22333 (char *) "self",(char *) "other", NULL
22334 };
22335
22336 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___ne__",kwnames,&obj0,&obj1)) goto fail;
22337 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22338 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22339 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22340 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22341 {
22342 PyThreadState* __tstate = wxPyBeginAllowThreads();
22343 result = (bool)wxTimeSpan___ne__(arg1,(wxTimeSpan const *)arg2);
22344
22345 wxPyEndAllowThreads(__tstate);
22346 if (PyErr_Occurred()) SWIG_fail;
22347 }
22348 {
22349 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22350 }
22351 return resultobj;
22352 fail:
22353 return NULL;
22354 }
22355
22356
22357 static PyObject *_wrap_TimeSpan_IsNull(PyObject *self, PyObject *args, PyObject *kwargs) {
22358 PyObject *resultobj;
22359 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22360 bool result;
22361 PyObject * obj0 = 0 ;
22362 char *kwnames[] = {
22363 (char *) "self", NULL
22364 };
22365
22366 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsNull",kwnames,&obj0)) goto fail;
22367 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22368 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22369 {
22370 PyThreadState* __tstate = wxPyBeginAllowThreads();
22371 result = (bool)((wxTimeSpan const *)arg1)->IsNull();
22372
22373 wxPyEndAllowThreads(__tstate);
22374 if (PyErr_Occurred()) SWIG_fail;
22375 }
22376 {
22377 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22378 }
22379 return resultobj;
22380 fail:
22381 return NULL;
22382 }
22383
22384
22385 static PyObject *_wrap_TimeSpan_IsPositive(PyObject *self, PyObject *args, PyObject *kwargs) {
22386 PyObject *resultobj;
22387 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22388 bool result;
22389 PyObject * obj0 = 0 ;
22390 char *kwnames[] = {
22391 (char *) "self", NULL
22392 };
22393
22394 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsPositive",kwnames,&obj0)) goto fail;
22395 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22396 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22397 {
22398 PyThreadState* __tstate = wxPyBeginAllowThreads();
22399 result = (bool)((wxTimeSpan const *)arg1)->IsPositive();
22400
22401 wxPyEndAllowThreads(__tstate);
22402 if (PyErr_Occurred()) SWIG_fail;
22403 }
22404 {
22405 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22406 }
22407 return resultobj;
22408 fail:
22409 return NULL;
22410 }
22411
22412
22413 static PyObject *_wrap_TimeSpan_IsNegative(PyObject *self, PyObject *args, PyObject *kwargs) {
22414 PyObject *resultobj;
22415 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22416 bool result;
22417 PyObject * obj0 = 0 ;
22418 char *kwnames[] = {
22419 (char *) "self", NULL
22420 };
22421
22422 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsNegative",kwnames,&obj0)) goto fail;
22423 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22424 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22425 {
22426 PyThreadState* __tstate = wxPyBeginAllowThreads();
22427 result = (bool)((wxTimeSpan const *)arg1)->IsNegative();
22428
22429 wxPyEndAllowThreads(__tstate);
22430 if (PyErr_Occurred()) SWIG_fail;
22431 }
22432 {
22433 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22434 }
22435 return resultobj;
22436 fail:
22437 return NULL;
22438 }
22439
22440
22441 static PyObject *_wrap_TimeSpan_IsEqualTo(PyObject *self, PyObject *args, PyObject *kwargs) {
22442 PyObject *resultobj;
22443 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22444 wxTimeSpan *arg2 = 0 ;
22445 bool result;
22446 PyObject * obj0 = 0 ;
22447 PyObject * obj1 = 0 ;
22448 char *kwnames[] = {
22449 (char *) "self",(char *) "ts", NULL
22450 };
22451
22452 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsEqualTo",kwnames,&obj0,&obj1)) goto fail;
22453 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22454 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22455 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22456 SWIG_POINTER_EXCEPTION | 0)) == -1)
22457 SWIG_fail;
22458 if (arg2 == NULL) {
22459 PyErr_SetString(PyExc_TypeError,"null reference");
22460 SWIG_fail;
22461 }
22462 {
22463 PyThreadState* __tstate = wxPyBeginAllowThreads();
22464 result = (bool)((wxTimeSpan const *)arg1)->IsEqualTo((wxTimeSpan const &)*arg2);
22465
22466 wxPyEndAllowThreads(__tstate);
22467 if (PyErr_Occurred()) SWIG_fail;
22468 }
22469 {
22470 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22471 }
22472 return resultobj;
22473 fail:
22474 return NULL;
22475 }
22476
22477
22478 static PyObject *_wrap_TimeSpan_IsLongerThan(PyObject *self, PyObject *args, PyObject *kwargs) {
22479 PyObject *resultobj;
22480 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22481 wxTimeSpan *arg2 = 0 ;
22482 bool result;
22483 PyObject * obj0 = 0 ;
22484 PyObject * obj1 = 0 ;
22485 char *kwnames[] = {
22486 (char *) "self",(char *) "ts", NULL
22487 };
22488
22489 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsLongerThan",kwnames,&obj0,&obj1)) goto fail;
22490 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22491 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22492 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22493 SWIG_POINTER_EXCEPTION | 0)) == -1)
22494 SWIG_fail;
22495 if (arg2 == NULL) {
22496 PyErr_SetString(PyExc_TypeError,"null reference");
22497 SWIG_fail;
22498 }
22499 {
22500 PyThreadState* __tstate = wxPyBeginAllowThreads();
22501 result = (bool)((wxTimeSpan const *)arg1)->IsLongerThan((wxTimeSpan const &)*arg2);
22502
22503 wxPyEndAllowThreads(__tstate);
22504 if (PyErr_Occurred()) SWIG_fail;
22505 }
22506 {
22507 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22508 }
22509 return resultobj;
22510 fail:
22511 return NULL;
22512 }
22513
22514
22515 static PyObject *_wrap_TimeSpan_IsShorterThan(PyObject *self, PyObject *args, PyObject *kwargs) {
22516 PyObject *resultobj;
22517 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22518 wxTimeSpan *arg2 = 0 ;
22519 bool result;
22520 PyObject * obj0 = 0 ;
22521 PyObject * obj1 = 0 ;
22522 char *kwnames[] = {
22523 (char *) "self",(char *) "t", NULL
22524 };
22525
22526 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsShorterThan",kwnames,&obj0,&obj1)) goto fail;
22527 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22528 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22529 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22530 SWIG_POINTER_EXCEPTION | 0)) == -1)
22531 SWIG_fail;
22532 if (arg2 == NULL) {
22533 PyErr_SetString(PyExc_TypeError,"null reference");
22534 SWIG_fail;
22535 }
22536 {
22537 PyThreadState* __tstate = wxPyBeginAllowThreads();
22538 result = (bool)((wxTimeSpan const *)arg1)->IsShorterThan((wxTimeSpan const &)*arg2);
22539
22540 wxPyEndAllowThreads(__tstate);
22541 if (PyErr_Occurred()) SWIG_fail;
22542 }
22543 {
22544 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22545 }
22546 return resultobj;
22547 fail:
22548 return NULL;
22549 }
22550
22551
22552 static PyObject *_wrap_TimeSpan_GetWeeks(PyObject *self, PyObject *args, PyObject *kwargs) {
22553 PyObject *resultobj;
22554 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22555 int result;
22556 PyObject * obj0 = 0 ;
22557 char *kwnames[] = {
22558 (char *) "self", NULL
22559 };
22560
22561 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetWeeks",kwnames,&obj0)) goto fail;
22562 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22563 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22564 {
22565 PyThreadState* __tstate = wxPyBeginAllowThreads();
22566 result = (int)((wxTimeSpan const *)arg1)->GetWeeks();
22567
22568 wxPyEndAllowThreads(__tstate);
22569 if (PyErr_Occurred()) SWIG_fail;
22570 }
22571 resultobj = SWIG_FromInt((int)result);
22572 return resultobj;
22573 fail:
22574 return NULL;
22575 }
22576
22577
22578 static PyObject *_wrap_TimeSpan_GetDays(PyObject *self, PyObject *args, PyObject *kwargs) {
22579 PyObject *resultobj;
22580 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22581 int result;
22582 PyObject * obj0 = 0 ;
22583 char *kwnames[] = {
22584 (char *) "self", NULL
22585 };
22586
22587 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetDays",kwnames,&obj0)) goto fail;
22588 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22589 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22590 {
22591 PyThreadState* __tstate = wxPyBeginAllowThreads();
22592 result = (int)((wxTimeSpan const *)arg1)->GetDays();
22593
22594 wxPyEndAllowThreads(__tstate);
22595 if (PyErr_Occurred()) SWIG_fail;
22596 }
22597 resultobj = SWIG_FromInt((int)result);
22598 return resultobj;
22599 fail:
22600 return NULL;
22601 }
22602
22603
22604 static PyObject *_wrap_TimeSpan_GetHours(PyObject *self, PyObject *args, PyObject *kwargs) {
22605 PyObject *resultobj;
22606 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22607 int result;
22608 PyObject * obj0 = 0 ;
22609 char *kwnames[] = {
22610 (char *) "self", NULL
22611 };
22612
22613 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetHours",kwnames,&obj0)) goto fail;
22614 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22615 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22616 {
22617 PyThreadState* __tstate = wxPyBeginAllowThreads();
22618 result = (int)((wxTimeSpan const *)arg1)->GetHours();
22619
22620 wxPyEndAllowThreads(__tstate);
22621 if (PyErr_Occurred()) SWIG_fail;
22622 }
22623 resultobj = SWIG_FromInt((int)result);
22624 return resultobj;
22625 fail:
22626 return NULL;
22627 }
22628
22629
22630 static PyObject *_wrap_TimeSpan_GetMinutes(PyObject *self, PyObject *args, PyObject *kwargs) {
22631 PyObject *resultobj;
22632 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22633 int result;
22634 PyObject * obj0 = 0 ;
22635 char *kwnames[] = {
22636 (char *) "self", NULL
22637 };
22638
22639 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetMinutes",kwnames,&obj0)) goto fail;
22640 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22641 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22642 {
22643 PyThreadState* __tstate = wxPyBeginAllowThreads();
22644 result = (int)((wxTimeSpan const *)arg1)->GetMinutes();
22645
22646 wxPyEndAllowThreads(__tstate);
22647 if (PyErr_Occurred()) SWIG_fail;
22648 }
22649 resultobj = SWIG_FromInt((int)result);
22650 return resultobj;
22651 fail:
22652 return NULL;
22653 }
22654
22655
22656 static PyObject *_wrap_TimeSpan_GetSeconds(PyObject *self, PyObject *args, PyObject *kwargs) {
22657 PyObject *resultobj;
22658 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22659 wxLongLong result;
22660 PyObject * obj0 = 0 ;
22661 char *kwnames[] = {
22662 (char *) "self", NULL
22663 };
22664
22665 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetSeconds",kwnames,&obj0)) goto fail;
22666 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22667 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22668 {
22669 PyThreadState* __tstate = wxPyBeginAllowThreads();
22670 result = ((wxTimeSpan const *)arg1)->GetSeconds();
22671
22672 wxPyEndAllowThreads(__tstate);
22673 if (PyErr_Occurred()) SWIG_fail;
22674 }
22675 {
22676 PyObject *hi, *lo, *shifter, *shifted;
22677 hi = PyLong_FromLong( (&result)->GetHi() );
22678 lo = PyLong_FromLong( (&result)->GetLo() );
22679 shifter = PyLong_FromLong(32);
22680 shifted = PyNumber_Lshift(hi, shifter);
22681 resultobj = PyNumber_Or(shifted, lo);
22682 Py_DECREF(hi);
22683 Py_DECREF(lo);
22684 Py_DECREF(shifter);
22685 Py_DECREF(shifted);
22686 }
22687 return resultobj;
22688 fail:
22689 return NULL;
22690 }
22691
22692
22693 static PyObject *_wrap_TimeSpan_GetMilliseconds(PyObject *self, PyObject *args, PyObject *kwargs) {
22694 PyObject *resultobj;
22695 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22696 wxLongLong result;
22697 PyObject * obj0 = 0 ;
22698 char *kwnames[] = {
22699 (char *) "self", NULL
22700 };
22701
22702 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetMilliseconds",kwnames,&obj0)) goto fail;
22703 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22704 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22705 {
22706 PyThreadState* __tstate = wxPyBeginAllowThreads();
22707 result = ((wxTimeSpan const *)arg1)->GetMilliseconds();
22708
22709 wxPyEndAllowThreads(__tstate);
22710 if (PyErr_Occurred()) SWIG_fail;
22711 }
22712 {
22713 PyObject *hi, *lo, *shifter, *shifted;
22714 hi = PyLong_FromLong( (&result)->GetHi() );
22715 lo = PyLong_FromLong( (&result)->GetLo() );
22716 shifter = PyLong_FromLong(32);
22717 shifted = PyNumber_Lshift(hi, shifter);
22718 resultobj = PyNumber_Or(shifted, lo);
22719 Py_DECREF(hi);
22720 Py_DECREF(lo);
22721 Py_DECREF(shifter);
22722 Py_DECREF(shifted);
22723 }
22724 return resultobj;
22725 fail:
22726 return NULL;
22727 }
22728
22729
22730 static PyObject *_wrap_TimeSpan_Format(PyObject *self, PyObject *args, PyObject *kwargs) {
22731 PyObject *resultobj;
22732 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22733 wxString const &arg2_defvalue = wxPyTimeSpanFormatStr ;
22734 wxString *arg2 = (wxString *) &arg2_defvalue ;
22735 wxString result;
22736 bool temp2 = False ;
22737 PyObject * obj0 = 0 ;
22738 PyObject * obj1 = 0 ;
22739 char *kwnames[] = {
22740 (char *) "self",(char *) "format", NULL
22741 };
22742
22743 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TimeSpan_Format",kwnames,&obj0,&obj1)) goto fail;
22744 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22745 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22746 if (obj1) {
22747 {
22748 arg2 = wxString_in_helper(obj1);
22749 if (arg2 == NULL) SWIG_fail;
22750 temp2 = True;
22751 }
22752 }
22753 {
22754 PyThreadState* __tstate = wxPyBeginAllowThreads();
22755 result = ((wxTimeSpan const *)arg1)->Format((wxString const &)*arg2);
22756
22757 wxPyEndAllowThreads(__tstate);
22758 if (PyErr_Occurred()) SWIG_fail;
22759 }
22760 {
22761 #if wxUSE_UNICODE
22762 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
22763 #else
22764 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
22765 #endif
22766 }
22767 {
22768 if (temp2)
22769 delete arg2;
22770 }
22771 return resultobj;
22772 fail:
22773 {
22774 if (temp2)
22775 delete arg2;
22776 }
22777 return NULL;
22778 }
22779
22780
22781 static PyObject * TimeSpan_swigregister(PyObject *self, PyObject *args) {
22782 PyObject *obj;
22783 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
22784 SWIG_TypeClientData(SWIGTYPE_p_wxTimeSpan, obj);
22785 Py_INCREF(obj);
22786 return Py_BuildValue((char *)"");
22787 }
22788 static PyObject *_wrap_new_DateSpan(PyObject *self, PyObject *args, PyObject *kwargs) {
22789 PyObject *resultobj;
22790 int arg1 = (int) 0 ;
22791 int arg2 = (int) 0 ;
22792 int arg3 = (int) 0 ;
22793 int arg4 = (int) 0 ;
22794 wxDateSpan *result;
22795 PyObject * obj0 = 0 ;
22796 PyObject * obj1 = 0 ;
22797 PyObject * obj2 = 0 ;
22798 PyObject * obj3 = 0 ;
22799 char *kwnames[] = {
22800 (char *) "years",(char *) "months",(char *) "weeks",(char *) "days", NULL
22801 };
22802
22803 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_DateSpan",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
22804 if (obj0) {
22805 arg1 = (int) SWIG_AsInt(obj0);
22806 if (PyErr_Occurred()) SWIG_fail;
22807 }
22808 if (obj1) {
22809 arg2 = (int) SWIG_AsInt(obj1);
22810 if (PyErr_Occurred()) SWIG_fail;
22811 }
22812 if (obj2) {
22813 arg3 = (int) SWIG_AsInt(obj2);
22814 if (PyErr_Occurred()) SWIG_fail;
22815 }
22816 if (obj3) {
22817 arg4 = (int) SWIG_AsInt(obj3);
22818 if (PyErr_Occurred()) SWIG_fail;
22819 }
22820 {
22821 PyThreadState* __tstate = wxPyBeginAllowThreads();
22822 result = (wxDateSpan *)new wxDateSpan(arg1,arg2,arg3,arg4);
22823
22824 wxPyEndAllowThreads(__tstate);
22825 if (PyErr_Occurred()) SWIG_fail;
22826 }
22827 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 1);
22828 return resultobj;
22829 fail:
22830 return NULL;
22831 }
22832
22833
22834 static PyObject *_wrap_delete_DateSpan(PyObject *self, PyObject *args, PyObject *kwargs) {
22835 PyObject *resultobj;
22836 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
22837 PyObject * obj0 = 0 ;
22838 char *kwnames[] = {
22839 (char *) "self", NULL
22840 };
22841
22842 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DateSpan",kwnames,&obj0)) goto fail;
22843 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
22844 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22845 {
22846 PyThreadState* __tstate = wxPyBeginAllowThreads();
22847 delete arg1;
22848
22849 wxPyEndAllowThreads(__tstate);
22850 if (PyErr_Occurred()) SWIG_fail;
22851 }
22852 Py_INCREF(Py_None); resultobj = Py_None;
22853 return resultobj;
22854 fail:
22855 return NULL;
22856 }
22857
22858
22859 static PyObject *_wrap_DateSpan_Days(PyObject *self, PyObject *args, PyObject *kwargs) {
22860 PyObject *resultobj;
22861 int arg1 ;
22862 wxDateSpan result;
22863 PyObject * obj0 = 0 ;
22864 char *kwnames[] = {
22865 (char *) "days", NULL
22866 };
22867
22868 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Days",kwnames,&obj0)) goto fail;
22869 arg1 = (int) SWIG_AsInt(obj0);
22870 if (PyErr_Occurred()) SWIG_fail;
22871 {
22872 PyThreadState* __tstate = wxPyBeginAllowThreads();
22873 result = wxDateSpan::Days(arg1);
22874
22875 wxPyEndAllowThreads(__tstate);
22876 if (PyErr_Occurred()) SWIG_fail;
22877 }
22878 {
22879 wxDateSpan * resultptr;
22880 resultptr = new wxDateSpan((wxDateSpan &) result);
22881 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
22882 }
22883 return resultobj;
22884 fail:
22885 return NULL;
22886 }
22887
22888
22889 static PyObject *_wrap_DateSpan_Day(PyObject *self, PyObject *args, PyObject *kwargs) {
22890 PyObject *resultobj;
22891 wxDateSpan result;
22892 char *kwnames[] = {
22893 NULL
22894 };
22895
22896 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Day",kwnames)) goto fail;
22897 {
22898 PyThreadState* __tstate = wxPyBeginAllowThreads();
22899 result = wxDateSpan::Day();
22900
22901 wxPyEndAllowThreads(__tstate);
22902 if (PyErr_Occurred()) SWIG_fail;
22903 }
22904 {
22905 wxDateSpan * resultptr;
22906 resultptr = new wxDateSpan((wxDateSpan &) result);
22907 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
22908 }
22909 return resultobj;
22910 fail:
22911 return NULL;
22912 }
22913
22914
22915 static PyObject *_wrap_DateSpan_Weeks(PyObject *self, PyObject *args, PyObject *kwargs) {
22916 PyObject *resultobj;
22917 int arg1 ;
22918 wxDateSpan result;
22919 PyObject * obj0 = 0 ;
22920 char *kwnames[] = {
22921 (char *) "weeks", NULL
22922 };
22923
22924 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Weeks",kwnames,&obj0)) goto fail;
22925 arg1 = (int) SWIG_AsInt(obj0);
22926 if (PyErr_Occurred()) SWIG_fail;
22927 {
22928 PyThreadState* __tstate = wxPyBeginAllowThreads();
22929 result = wxDateSpan::Weeks(arg1);
22930
22931 wxPyEndAllowThreads(__tstate);
22932 if (PyErr_Occurred()) SWIG_fail;
22933 }
22934 {
22935 wxDateSpan * resultptr;
22936 resultptr = new wxDateSpan((wxDateSpan &) result);
22937 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
22938 }
22939 return resultobj;
22940 fail:
22941 return NULL;
22942 }
22943
22944
22945 static PyObject *_wrap_DateSpan_Week(PyObject *self, PyObject *args, PyObject *kwargs) {
22946 PyObject *resultobj;
22947 wxDateSpan result;
22948 char *kwnames[] = {
22949 NULL
22950 };
22951
22952 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Week",kwnames)) goto fail;
22953 {
22954 PyThreadState* __tstate = wxPyBeginAllowThreads();
22955 result = wxDateSpan::Week();
22956
22957 wxPyEndAllowThreads(__tstate);
22958 if (PyErr_Occurred()) SWIG_fail;
22959 }
22960 {
22961 wxDateSpan * resultptr;
22962 resultptr = new wxDateSpan((wxDateSpan &) result);
22963 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
22964 }
22965 return resultobj;
22966 fail:
22967 return NULL;
22968 }
22969
22970
22971 static PyObject *_wrap_DateSpan_Months(PyObject *self, PyObject *args, PyObject *kwargs) {
22972 PyObject *resultobj;
22973 int arg1 ;
22974 wxDateSpan result;
22975 PyObject * obj0 = 0 ;
22976 char *kwnames[] = {
22977 (char *) "mon", NULL
22978 };
22979
22980 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Months",kwnames,&obj0)) goto fail;
22981 arg1 = (int) SWIG_AsInt(obj0);
22982 if (PyErr_Occurred()) SWIG_fail;
22983 {
22984 PyThreadState* __tstate = wxPyBeginAllowThreads();
22985 result = wxDateSpan::Months(arg1);
22986
22987 wxPyEndAllowThreads(__tstate);
22988 if (PyErr_Occurred()) SWIG_fail;
22989 }
22990 {
22991 wxDateSpan * resultptr;
22992 resultptr = new wxDateSpan((wxDateSpan &) result);
22993 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
22994 }
22995 return resultobj;
22996 fail:
22997 return NULL;
22998 }
22999
23000
23001 static PyObject *_wrap_DateSpan_Month(PyObject *self, PyObject *args, PyObject *kwargs) {
23002 PyObject *resultobj;
23003 wxDateSpan result;
23004 char *kwnames[] = {
23005 NULL
23006 };
23007
23008 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Month",kwnames)) goto fail;
23009 {
23010 PyThreadState* __tstate = wxPyBeginAllowThreads();
23011 result = wxDateSpan::Month();
23012
23013 wxPyEndAllowThreads(__tstate);
23014 if (PyErr_Occurred()) SWIG_fail;
23015 }
23016 {
23017 wxDateSpan * resultptr;
23018 resultptr = new wxDateSpan((wxDateSpan &) result);
23019 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
23020 }
23021 return resultobj;
23022 fail:
23023 return NULL;
23024 }
23025
23026
23027 static PyObject *_wrap_DateSpan_Years(PyObject *self, PyObject *args, PyObject *kwargs) {
23028 PyObject *resultobj;
23029 int arg1 ;
23030 wxDateSpan result;
23031 PyObject * obj0 = 0 ;
23032 char *kwnames[] = {
23033 (char *) "years", NULL
23034 };
23035
23036 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Years",kwnames,&obj0)) goto fail;
23037 arg1 = (int) SWIG_AsInt(obj0);
23038 if (PyErr_Occurred()) SWIG_fail;
23039 {
23040 PyThreadState* __tstate = wxPyBeginAllowThreads();
23041 result = wxDateSpan::Years(arg1);
23042
23043 wxPyEndAllowThreads(__tstate);
23044 if (PyErr_Occurred()) SWIG_fail;
23045 }
23046 {
23047 wxDateSpan * resultptr;
23048 resultptr = new wxDateSpan((wxDateSpan &) result);
23049 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
23050 }
23051 return resultobj;
23052 fail:
23053 return NULL;
23054 }
23055
23056
23057 static PyObject *_wrap_DateSpan_Year(PyObject *self, PyObject *args, PyObject *kwargs) {
23058 PyObject *resultobj;
23059 wxDateSpan result;
23060 char *kwnames[] = {
23061 NULL
23062 };
23063
23064 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Year",kwnames)) goto fail;
23065 {
23066 PyThreadState* __tstate = wxPyBeginAllowThreads();
23067 result = wxDateSpan::Year();
23068
23069 wxPyEndAllowThreads(__tstate);
23070 if (PyErr_Occurred()) SWIG_fail;
23071 }
23072 {
23073 wxDateSpan * resultptr;
23074 resultptr = new wxDateSpan((wxDateSpan &) result);
23075 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
23076 }
23077 return resultobj;
23078 fail:
23079 return NULL;
23080 }
23081
23082
23083 static PyObject *_wrap_DateSpan_SetYears(PyObject *self, PyObject *args, PyObject *kwargs) {
23084 PyObject *resultobj;
23085 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23086 int arg2 ;
23087 wxDateSpan *result;
23088 PyObject * obj0 = 0 ;
23089 PyObject * obj1 = 0 ;
23090 char *kwnames[] = {
23091 (char *) "self",(char *) "n", NULL
23092 };
23093
23094 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetYears",kwnames,&obj0,&obj1)) goto fail;
23095 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23096 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23097 arg2 = (int) SWIG_AsInt(obj1);
23098 if (PyErr_Occurred()) SWIG_fail;
23099 {
23100 PyThreadState* __tstate = wxPyBeginAllowThreads();
23101 {
23102 wxDateSpan &_result_ref = (arg1)->SetYears(arg2);
23103 result = (wxDateSpan *) &_result_ref;
23104 }
23105
23106 wxPyEndAllowThreads(__tstate);
23107 if (PyErr_Occurred()) SWIG_fail;
23108 }
23109 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23110 return resultobj;
23111 fail:
23112 return NULL;
23113 }
23114
23115
23116 static PyObject *_wrap_DateSpan_SetMonths(PyObject *self, PyObject *args, PyObject *kwargs) {
23117 PyObject *resultobj;
23118 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23119 int arg2 ;
23120 wxDateSpan *result;
23121 PyObject * obj0 = 0 ;
23122 PyObject * obj1 = 0 ;
23123 char *kwnames[] = {
23124 (char *) "self",(char *) "n", NULL
23125 };
23126
23127 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetMonths",kwnames,&obj0,&obj1)) goto fail;
23128 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23129 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23130 arg2 = (int) SWIG_AsInt(obj1);
23131 if (PyErr_Occurred()) SWIG_fail;
23132 {
23133 PyThreadState* __tstate = wxPyBeginAllowThreads();
23134 {
23135 wxDateSpan &_result_ref = (arg1)->SetMonths(arg2);
23136 result = (wxDateSpan *) &_result_ref;
23137 }
23138
23139 wxPyEndAllowThreads(__tstate);
23140 if (PyErr_Occurred()) SWIG_fail;
23141 }
23142 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23143 return resultobj;
23144 fail:
23145 return NULL;
23146 }
23147
23148
23149 static PyObject *_wrap_DateSpan_SetWeeks(PyObject *self, PyObject *args, PyObject *kwargs) {
23150 PyObject *resultobj;
23151 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23152 int arg2 ;
23153 wxDateSpan *result;
23154 PyObject * obj0 = 0 ;
23155 PyObject * obj1 = 0 ;
23156 char *kwnames[] = {
23157 (char *) "self",(char *) "n", NULL
23158 };
23159
23160 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetWeeks",kwnames,&obj0,&obj1)) goto fail;
23161 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23162 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23163 arg2 = (int) SWIG_AsInt(obj1);
23164 if (PyErr_Occurred()) SWIG_fail;
23165 {
23166 PyThreadState* __tstate = wxPyBeginAllowThreads();
23167 {
23168 wxDateSpan &_result_ref = (arg1)->SetWeeks(arg2);
23169 result = (wxDateSpan *) &_result_ref;
23170 }
23171
23172 wxPyEndAllowThreads(__tstate);
23173 if (PyErr_Occurred()) SWIG_fail;
23174 }
23175 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23176 return resultobj;
23177 fail:
23178 return NULL;
23179 }
23180
23181
23182 static PyObject *_wrap_DateSpan_SetDays(PyObject *self, PyObject *args, PyObject *kwargs) {
23183 PyObject *resultobj;
23184 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23185 int arg2 ;
23186 wxDateSpan *result;
23187 PyObject * obj0 = 0 ;
23188 PyObject * obj1 = 0 ;
23189 char *kwnames[] = {
23190 (char *) "self",(char *) "n", NULL
23191 };
23192
23193 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetDays",kwnames,&obj0,&obj1)) goto fail;
23194 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23195 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23196 arg2 = (int) SWIG_AsInt(obj1);
23197 if (PyErr_Occurred()) SWIG_fail;
23198 {
23199 PyThreadState* __tstate = wxPyBeginAllowThreads();
23200 {
23201 wxDateSpan &_result_ref = (arg1)->SetDays(arg2);
23202 result = (wxDateSpan *) &_result_ref;
23203 }
23204
23205 wxPyEndAllowThreads(__tstate);
23206 if (PyErr_Occurred()) SWIG_fail;
23207 }
23208 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23209 return resultobj;
23210 fail:
23211 return NULL;
23212 }
23213
23214
23215 static PyObject *_wrap_DateSpan_GetYears(PyObject *self, PyObject *args, PyObject *kwargs) {
23216 PyObject *resultobj;
23217 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23218 int result;
23219 PyObject * obj0 = 0 ;
23220 char *kwnames[] = {
23221 (char *) "self", NULL
23222 };
23223
23224 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetYears",kwnames,&obj0)) goto fail;
23225 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23226 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23227 {
23228 PyThreadState* __tstate = wxPyBeginAllowThreads();
23229 result = (int)((wxDateSpan const *)arg1)->GetYears();
23230
23231 wxPyEndAllowThreads(__tstate);
23232 if (PyErr_Occurred()) SWIG_fail;
23233 }
23234 resultobj = SWIG_FromInt((int)result);
23235 return resultobj;
23236 fail:
23237 return NULL;
23238 }
23239
23240
23241 static PyObject *_wrap_DateSpan_GetMonths(PyObject *self, PyObject *args, PyObject *kwargs) {
23242 PyObject *resultobj;
23243 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23244 int result;
23245 PyObject * obj0 = 0 ;
23246 char *kwnames[] = {
23247 (char *) "self", NULL
23248 };
23249
23250 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetMonths",kwnames,&obj0)) goto fail;
23251 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23252 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23253 {
23254 PyThreadState* __tstate = wxPyBeginAllowThreads();
23255 result = (int)((wxDateSpan const *)arg1)->GetMonths();
23256
23257 wxPyEndAllowThreads(__tstate);
23258 if (PyErr_Occurred()) SWIG_fail;
23259 }
23260 resultobj = SWIG_FromInt((int)result);
23261 return resultobj;
23262 fail:
23263 return NULL;
23264 }
23265
23266
23267 static PyObject *_wrap_DateSpan_GetWeeks(PyObject *self, PyObject *args, PyObject *kwargs) {
23268 PyObject *resultobj;
23269 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23270 int result;
23271 PyObject * obj0 = 0 ;
23272 char *kwnames[] = {
23273 (char *) "self", NULL
23274 };
23275
23276 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetWeeks",kwnames,&obj0)) goto fail;
23277 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23278 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23279 {
23280 PyThreadState* __tstate = wxPyBeginAllowThreads();
23281 result = (int)((wxDateSpan const *)arg1)->GetWeeks();
23282
23283 wxPyEndAllowThreads(__tstate);
23284 if (PyErr_Occurred()) SWIG_fail;
23285 }
23286 resultobj = SWIG_FromInt((int)result);
23287 return resultobj;
23288 fail:
23289 return NULL;
23290 }
23291
23292
23293 static PyObject *_wrap_DateSpan_GetDays(PyObject *self, PyObject *args, PyObject *kwargs) {
23294 PyObject *resultobj;
23295 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23296 int result;
23297 PyObject * obj0 = 0 ;
23298 char *kwnames[] = {
23299 (char *) "self", NULL
23300 };
23301
23302 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetDays",kwnames,&obj0)) goto fail;
23303 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23304 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23305 {
23306 PyThreadState* __tstate = wxPyBeginAllowThreads();
23307 result = (int)((wxDateSpan const *)arg1)->GetDays();
23308
23309 wxPyEndAllowThreads(__tstate);
23310 if (PyErr_Occurred()) SWIG_fail;
23311 }
23312 resultobj = SWIG_FromInt((int)result);
23313 return resultobj;
23314 fail:
23315 return NULL;
23316 }
23317
23318
23319 static PyObject *_wrap_DateSpan_GetTotalDays(PyObject *self, PyObject *args, PyObject *kwargs) {
23320 PyObject *resultobj;
23321 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23322 int result;
23323 PyObject * obj0 = 0 ;
23324 char *kwnames[] = {
23325 (char *) "self", NULL
23326 };
23327
23328 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetTotalDays",kwnames,&obj0)) goto fail;
23329 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23330 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23331 {
23332 PyThreadState* __tstate = wxPyBeginAllowThreads();
23333 result = (int)((wxDateSpan const *)arg1)->GetTotalDays();
23334
23335 wxPyEndAllowThreads(__tstate);
23336 if (PyErr_Occurred()) SWIG_fail;
23337 }
23338 resultobj = SWIG_FromInt((int)result);
23339 return resultobj;
23340 fail:
23341 return NULL;
23342 }
23343
23344
23345 static PyObject *_wrap_DateSpan_Add(PyObject *self, PyObject *args, PyObject *kwargs) {
23346 PyObject *resultobj;
23347 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23348 wxDateSpan *arg2 = 0 ;
23349 wxDateSpan *result;
23350 PyObject * obj0 = 0 ;
23351 PyObject * obj1 = 0 ;
23352 char *kwnames[] = {
23353 (char *) "self",(char *) "other", NULL
23354 };
23355
23356 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Add",kwnames,&obj0,&obj1)) goto fail;
23357 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23358 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23359 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23360 SWIG_POINTER_EXCEPTION | 0)) == -1)
23361 SWIG_fail;
23362 if (arg2 == NULL) {
23363 PyErr_SetString(PyExc_TypeError,"null reference");
23364 SWIG_fail;
23365 }
23366 {
23367 PyThreadState* __tstate = wxPyBeginAllowThreads();
23368 {
23369 wxDateSpan &_result_ref = (arg1)->Add((wxDateSpan const &)*arg2);
23370 result = (wxDateSpan *) &_result_ref;
23371 }
23372
23373 wxPyEndAllowThreads(__tstate);
23374 if (PyErr_Occurred()) SWIG_fail;
23375 }
23376 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23377 return resultobj;
23378 fail:
23379 return NULL;
23380 }
23381
23382
23383 static PyObject *_wrap_DateSpan_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) {
23384 PyObject *resultobj;
23385 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23386 wxDateSpan *arg2 = 0 ;
23387 wxDateSpan *result;
23388 PyObject * obj0 = 0 ;
23389 PyObject * obj1 = 0 ;
23390 char *kwnames[] = {
23391 (char *) "self",(char *) "other", NULL
23392 };
23393
23394 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Subtract",kwnames,&obj0,&obj1)) goto fail;
23395 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23396 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23397 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23398 SWIG_POINTER_EXCEPTION | 0)) == -1)
23399 SWIG_fail;
23400 if (arg2 == NULL) {
23401 PyErr_SetString(PyExc_TypeError,"null reference");
23402 SWIG_fail;
23403 }
23404 {
23405 PyThreadState* __tstate = wxPyBeginAllowThreads();
23406 {
23407 wxDateSpan &_result_ref = (arg1)->Subtract((wxDateSpan const &)*arg2);
23408 result = (wxDateSpan *) &_result_ref;
23409 }
23410
23411 wxPyEndAllowThreads(__tstate);
23412 if (PyErr_Occurred()) SWIG_fail;
23413 }
23414 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23415 return resultobj;
23416 fail:
23417 return NULL;
23418 }
23419
23420
23421 static PyObject *_wrap_DateSpan_Neg(PyObject *self, PyObject *args, PyObject *kwargs) {
23422 PyObject *resultobj;
23423 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23424 wxDateSpan *result;
23425 PyObject * obj0 = 0 ;
23426 char *kwnames[] = {
23427 (char *) "self", NULL
23428 };
23429
23430 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Neg",kwnames,&obj0)) goto fail;
23431 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23432 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23433 {
23434 PyThreadState* __tstate = wxPyBeginAllowThreads();
23435 {
23436 wxDateSpan &_result_ref = (arg1)->Neg();
23437 result = (wxDateSpan *) &_result_ref;
23438 }
23439
23440 wxPyEndAllowThreads(__tstate);
23441 if (PyErr_Occurred()) SWIG_fail;
23442 }
23443 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23444 return resultobj;
23445 fail:
23446 return NULL;
23447 }
23448
23449
23450 static PyObject *_wrap_DateSpan_Multiply(PyObject *self, PyObject *args, PyObject *kwargs) {
23451 PyObject *resultobj;
23452 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23453 int arg2 ;
23454 wxDateSpan *result;
23455 PyObject * obj0 = 0 ;
23456 PyObject * obj1 = 0 ;
23457 char *kwnames[] = {
23458 (char *) "self",(char *) "factor", NULL
23459 };
23460
23461 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Multiply",kwnames,&obj0,&obj1)) goto fail;
23462 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23463 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23464 arg2 = (int) SWIG_AsInt(obj1);
23465 if (PyErr_Occurred()) SWIG_fail;
23466 {
23467 PyThreadState* __tstate = wxPyBeginAllowThreads();
23468 {
23469 wxDateSpan &_result_ref = (arg1)->Multiply(arg2);
23470 result = (wxDateSpan *) &_result_ref;
23471 }
23472
23473 wxPyEndAllowThreads(__tstate);
23474 if (PyErr_Occurred()) SWIG_fail;
23475 }
23476 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23477 return resultobj;
23478 fail:
23479 return NULL;
23480 }
23481
23482
23483 static PyObject *_wrap_DateSpan___iadd__(PyObject *self, PyObject *args, PyObject *kwargs) {
23484 PyObject *resultobj;
23485 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23486 wxDateSpan *arg2 = 0 ;
23487 wxDateSpan *result;
23488 PyObject * obj0 = 0 ;
23489 PyObject * obj1 = 0 ;
23490 char *kwnames[] = {
23491 (char *) "self",(char *) "other", NULL
23492 };
23493
23494 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___iadd__",kwnames,&obj0,&obj1)) goto fail;
23495 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23496 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23497 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23498 SWIG_POINTER_EXCEPTION | 0)) == -1)
23499 SWIG_fail;
23500 if (arg2 == NULL) {
23501 PyErr_SetString(PyExc_TypeError,"null reference");
23502 SWIG_fail;
23503 }
23504 {
23505 PyThreadState* __tstate = wxPyBeginAllowThreads();
23506 {
23507 wxDateSpan &_result_ref = (arg1)->operator +=((wxDateSpan const &)*arg2);
23508 result = (wxDateSpan *) &_result_ref;
23509 }
23510
23511 wxPyEndAllowThreads(__tstate);
23512 if (PyErr_Occurred()) SWIG_fail;
23513 }
23514 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23515 return resultobj;
23516 fail:
23517 return NULL;
23518 }
23519
23520
23521 static PyObject *_wrap_DateSpan___isub__(PyObject *self, PyObject *args, PyObject *kwargs) {
23522 PyObject *resultobj;
23523 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23524 wxDateSpan *arg2 = 0 ;
23525 wxDateSpan *result;
23526 PyObject * obj0 = 0 ;
23527 PyObject * obj1 = 0 ;
23528 char *kwnames[] = {
23529 (char *) "self",(char *) "other", NULL
23530 };
23531
23532 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___isub__",kwnames,&obj0,&obj1)) goto fail;
23533 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23534 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23535 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23536 SWIG_POINTER_EXCEPTION | 0)) == -1)
23537 SWIG_fail;
23538 if (arg2 == NULL) {
23539 PyErr_SetString(PyExc_TypeError,"null reference");
23540 SWIG_fail;
23541 }
23542 {
23543 PyThreadState* __tstate = wxPyBeginAllowThreads();
23544 {
23545 wxDateSpan &_result_ref = (arg1)->operator -=((wxDateSpan const &)*arg2);
23546 result = (wxDateSpan *) &_result_ref;
23547 }
23548
23549 wxPyEndAllowThreads(__tstate);
23550 if (PyErr_Occurred()) SWIG_fail;
23551 }
23552 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23553 return resultobj;
23554 fail:
23555 return NULL;
23556 }
23557
23558
23559 static PyObject *_wrap_DateSpan___neg__(PyObject *self, PyObject *args, PyObject *kwargs) {
23560 PyObject *resultobj;
23561 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23562 wxDateSpan *result;
23563 PyObject * obj0 = 0 ;
23564 char *kwnames[] = {
23565 (char *) "self", NULL
23566 };
23567
23568 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan___neg__",kwnames,&obj0)) goto fail;
23569 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23570 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23571 {
23572 PyThreadState* __tstate = wxPyBeginAllowThreads();
23573 {
23574 wxDateSpan &_result_ref = (arg1)->operator -();
23575 result = (wxDateSpan *) &_result_ref;
23576 }
23577
23578 wxPyEndAllowThreads(__tstate);
23579 if (PyErr_Occurred()) SWIG_fail;
23580 }
23581 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23582 return resultobj;
23583 fail:
23584 return NULL;
23585 }
23586
23587
23588 static PyObject *_wrap_DateSpan___imul__(PyObject *self, PyObject *args, PyObject *kwargs) {
23589 PyObject *resultobj;
23590 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23591 int arg2 ;
23592 wxDateSpan *result;
23593 PyObject * obj0 = 0 ;
23594 PyObject * obj1 = 0 ;
23595 char *kwnames[] = {
23596 (char *) "self",(char *) "factor", NULL
23597 };
23598
23599 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___imul__",kwnames,&obj0,&obj1)) goto fail;
23600 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23601 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23602 arg2 = (int) SWIG_AsInt(obj1);
23603 if (PyErr_Occurred()) SWIG_fail;
23604 {
23605 PyThreadState* __tstate = wxPyBeginAllowThreads();
23606 {
23607 wxDateSpan &_result_ref = (arg1)->operator *=(arg2);
23608 result = (wxDateSpan *) &_result_ref;
23609 }
23610
23611 wxPyEndAllowThreads(__tstate);
23612 if (PyErr_Occurred()) SWIG_fail;
23613 }
23614 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23615 return resultobj;
23616 fail:
23617 return NULL;
23618 }
23619
23620
23621 static PyObject *_wrap_DateSpan___add__(PyObject *self, PyObject *args, PyObject *kwargs) {
23622 PyObject *resultobj;
23623 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23624 wxDateSpan *arg2 = 0 ;
23625 wxDateSpan result;
23626 PyObject * obj0 = 0 ;
23627 PyObject * obj1 = 0 ;
23628 char *kwnames[] = {
23629 (char *) "self",(char *) "other", NULL
23630 };
23631
23632 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___add__",kwnames,&obj0,&obj1)) goto fail;
23633 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23634 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23635 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23636 SWIG_POINTER_EXCEPTION | 0)) == -1)
23637 SWIG_fail;
23638 if (arg2 == NULL) {
23639 PyErr_SetString(PyExc_TypeError,"null reference");
23640 SWIG_fail;
23641 }
23642 {
23643 PyThreadState* __tstate = wxPyBeginAllowThreads();
23644 result = wxDateSpan___add__(arg1,(wxDateSpan const &)*arg2);
23645
23646 wxPyEndAllowThreads(__tstate);
23647 if (PyErr_Occurred()) SWIG_fail;
23648 }
23649 {
23650 wxDateSpan * resultptr;
23651 resultptr = new wxDateSpan((wxDateSpan &) result);
23652 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
23653 }
23654 return resultobj;
23655 fail:
23656 return NULL;
23657 }
23658
23659
23660 static PyObject *_wrap_DateSpan___sub__(PyObject *self, PyObject *args, PyObject *kwargs) {
23661 PyObject *resultobj;
23662 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23663 wxDateSpan *arg2 = 0 ;
23664 wxDateSpan result;
23665 PyObject * obj0 = 0 ;
23666 PyObject * obj1 = 0 ;
23667 char *kwnames[] = {
23668 (char *) "self",(char *) "other", NULL
23669 };
23670
23671 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___sub__",kwnames,&obj0,&obj1)) goto fail;
23672 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23673 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23674 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23675 SWIG_POINTER_EXCEPTION | 0)) == -1)
23676 SWIG_fail;
23677 if (arg2 == NULL) {
23678 PyErr_SetString(PyExc_TypeError,"null reference");
23679 SWIG_fail;
23680 }
23681 {
23682 PyThreadState* __tstate = wxPyBeginAllowThreads();
23683 result = wxDateSpan___sub__(arg1,(wxDateSpan const &)*arg2);
23684
23685 wxPyEndAllowThreads(__tstate);
23686 if (PyErr_Occurred()) SWIG_fail;
23687 }
23688 {
23689 wxDateSpan * resultptr;
23690 resultptr = new wxDateSpan((wxDateSpan &) result);
23691 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
23692 }
23693 return resultobj;
23694 fail:
23695 return NULL;
23696 }
23697
23698
23699 static PyObject *_wrap_DateSpan___mul__(PyObject *self, PyObject *args, PyObject *kwargs) {
23700 PyObject *resultobj;
23701 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23702 int arg2 ;
23703 wxDateSpan result;
23704 PyObject * obj0 = 0 ;
23705 PyObject * obj1 = 0 ;
23706 char *kwnames[] = {
23707 (char *) "self",(char *) "n", NULL
23708 };
23709
23710 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___mul__",kwnames,&obj0,&obj1)) goto fail;
23711 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23712 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23713 arg2 = (int) SWIG_AsInt(obj1);
23714 if (PyErr_Occurred()) SWIG_fail;
23715 {
23716 PyThreadState* __tstate = wxPyBeginAllowThreads();
23717 result = wxDateSpan___mul__(arg1,arg2);
23718
23719 wxPyEndAllowThreads(__tstate);
23720 if (PyErr_Occurred()) SWIG_fail;
23721 }
23722 {
23723 wxDateSpan * resultptr;
23724 resultptr = new wxDateSpan((wxDateSpan &) result);
23725 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
23726 }
23727 return resultobj;
23728 fail:
23729 return NULL;
23730 }
23731
23732
23733 static PyObject *_wrap_DateSpan___rmul__(PyObject *self, PyObject *args, PyObject *kwargs) {
23734 PyObject *resultobj;
23735 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23736 int arg2 ;
23737 wxDateSpan result;
23738 PyObject * obj0 = 0 ;
23739 PyObject * obj1 = 0 ;
23740 char *kwnames[] = {
23741 (char *) "self",(char *) "n", NULL
23742 };
23743
23744 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___rmul__",kwnames,&obj0,&obj1)) goto fail;
23745 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23746 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23747 arg2 = (int) SWIG_AsInt(obj1);
23748 if (PyErr_Occurred()) SWIG_fail;
23749 {
23750 PyThreadState* __tstate = wxPyBeginAllowThreads();
23751 result = wxDateSpan___rmul__(arg1,arg2);
23752
23753 wxPyEndAllowThreads(__tstate);
23754 if (PyErr_Occurred()) SWIG_fail;
23755 }
23756 {
23757 wxDateSpan * resultptr;
23758 resultptr = new wxDateSpan((wxDateSpan &) result);
23759 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
23760 }
23761 return resultobj;
23762 fail:
23763 return NULL;
23764 }
23765
23766
23767 static PyObject *_wrap_DateSpan___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
23768 PyObject *resultobj;
23769 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23770 wxDateSpan *arg2 = (wxDateSpan *) 0 ;
23771 bool result;
23772 PyObject * obj0 = 0 ;
23773 PyObject * obj1 = 0 ;
23774 char *kwnames[] = {
23775 (char *) "self",(char *) "other", NULL
23776 };
23777
23778 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___eq__",kwnames,&obj0,&obj1)) goto fail;
23779 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23780 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23781 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23782 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23783 {
23784 PyThreadState* __tstate = wxPyBeginAllowThreads();
23785 result = (bool)wxDateSpan___eq__(arg1,(wxDateSpan const *)arg2);
23786
23787 wxPyEndAllowThreads(__tstate);
23788 if (PyErr_Occurred()) SWIG_fail;
23789 }
23790 {
23791 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23792 }
23793 return resultobj;
23794 fail:
23795 return NULL;
23796 }
23797
23798
23799 static PyObject *_wrap_DateSpan___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
23800 PyObject *resultobj;
23801 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23802 wxDateSpan *arg2 = (wxDateSpan *) 0 ;
23803 bool result;
23804 PyObject * obj0 = 0 ;
23805 PyObject * obj1 = 0 ;
23806 char *kwnames[] = {
23807 (char *) "self",(char *) "other", NULL
23808 };
23809
23810 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___ne__",kwnames,&obj0,&obj1)) goto fail;
23811 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23812 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23813 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23814 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23815 {
23816 PyThreadState* __tstate = wxPyBeginAllowThreads();
23817 result = (bool)wxDateSpan___ne__(arg1,(wxDateSpan const *)arg2);
23818
23819 wxPyEndAllowThreads(__tstate);
23820 if (PyErr_Occurred()) SWIG_fail;
23821 }
23822 {
23823 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23824 }
23825 return resultobj;
23826 fail:
23827 return NULL;
23828 }
23829
23830
23831 static PyObject * DateSpan_swigregister(PyObject *self, PyObject *args) {
23832 PyObject *obj;
23833 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
23834 SWIG_TypeClientData(SWIGTYPE_p_wxDateSpan, obj);
23835 Py_INCREF(obj);
23836 return Py_BuildValue((char *)"");
23837 }
23838 static PyObject *_wrap_GetLocalTime(PyObject *self, PyObject *args, PyObject *kwargs) {
23839 PyObject *resultobj;
23840 long result;
23841 char *kwnames[] = {
23842 NULL
23843 };
23844
23845 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocalTime",kwnames)) goto fail;
23846 {
23847 PyThreadState* __tstate = wxPyBeginAllowThreads();
23848 result = (long)wxGetLocalTime();
23849
23850 wxPyEndAllowThreads(__tstate);
23851 if (PyErr_Occurred()) SWIG_fail;
23852 }
23853 resultobj = SWIG_FromLong((long)result);
23854 return resultobj;
23855 fail:
23856 return NULL;
23857 }
23858
23859
23860 static PyObject *_wrap_GetUTCTime(PyObject *self, PyObject *args, PyObject *kwargs) {
23861 PyObject *resultobj;
23862 long result;
23863 char *kwnames[] = {
23864 NULL
23865 };
23866
23867 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUTCTime",kwnames)) goto fail;
23868 {
23869 PyThreadState* __tstate = wxPyBeginAllowThreads();
23870 result = (long)wxGetUTCTime();
23871
23872 wxPyEndAllowThreads(__tstate);
23873 if (PyErr_Occurred()) SWIG_fail;
23874 }
23875 resultobj = SWIG_FromLong((long)result);
23876 return resultobj;
23877 fail:
23878 return NULL;
23879 }
23880
23881
23882 static PyObject *_wrap_GetCurrentTime(PyObject *self, PyObject *args, PyObject *kwargs) {
23883 PyObject *resultobj;
23884 long result;
23885 char *kwnames[] = {
23886 NULL
23887 };
23888
23889 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetCurrentTime",kwnames)) goto fail;
23890 {
23891 PyThreadState* __tstate = wxPyBeginAllowThreads();
23892 result = (long)wxGetCurrentTime();
23893
23894 wxPyEndAllowThreads(__tstate);
23895 if (PyErr_Occurred()) SWIG_fail;
23896 }
23897 resultobj = SWIG_FromLong((long)result);
23898 return resultobj;
23899 fail:
23900 return NULL;
23901 }
23902
23903
23904 static PyObject *_wrap_GetLocalTimeMillis(PyObject *self, PyObject *args, PyObject *kwargs) {
23905 PyObject *resultobj;
23906 wxLongLong result;
23907 char *kwnames[] = {
23908 NULL
23909 };
23910
23911 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocalTimeMillis",kwnames)) goto fail;
23912 {
23913 PyThreadState* __tstate = wxPyBeginAllowThreads();
23914 result = wxGetLocalTimeMillis();
23915
23916 wxPyEndAllowThreads(__tstate);
23917 if (PyErr_Occurred()) SWIG_fail;
23918 }
23919 {
23920 PyObject *hi, *lo, *shifter, *shifted;
23921 hi = PyLong_FromLong( (&result)->GetHi() );
23922 lo = PyLong_FromLong( (&result)->GetLo() );
23923 shifter = PyLong_FromLong(32);
23924 shifted = PyNumber_Lshift(hi, shifter);
23925 resultobj = PyNumber_Or(shifted, lo);
23926 Py_DECREF(hi);
23927 Py_DECREF(lo);
23928 Py_DECREF(shifter);
23929 Py_DECREF(shifted);
23930 }
23931 return resultobj;
23932 fail:
23933 return NULL;
23934 }
23935
23936
23937 static int _wrap_DefaultDateTime_set(PyObject *_val) {
23938 PyErr_SetString(PyExc_TypeError,"Variable DefaultDateTime is read-only.");
23939 return 1;
23940 }
23941
23942
23943 static PyObject *_wrap_DefaultDateTime_get() {
23944 PyObject *pyobj;
23945
23946 pyobj = SWIG_NewPointerObj((void *)(&wxDefaultDateTime), SWIGTYPE_p_wxDateTime, 0);
23947 return pyobj;
23948 }
23949
23950
23951 static PyObject *_wrap_new_DataFormat(PyObject *self, PyObject *args, PyObject *kwargs) {
23952 PyObject *resultobj;
23953 int arg1 ;
23954 wxDataFormat *result;
23955 PyObject * obj0 = 0 ;
23956 char *kwnames[] = {
23957 (char *) "type", NULL
23958 };
23959
23960 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DataFormat",kwnames,&obj0)) goto fail;
23961 arg1 = (wxDataFormatId) SWIG_AsInt(obj0);
23962 if (PyErr_Occurred()) SWIG_fail;
23963 {
23964 PyThreadState* __tstate = wxPyBeginAllowThreads();
23965 result = (wxDataFormat *)new wxDataFormat((wxDataFormatId )arg1);
23966
23967 wxPyEndAllowThreads(__tstate);
23968 if (PyErr_Occurred()) SWIG_fail;
23969 }
23970 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataFormat, 1);
23971 return resultobj;
23972 fail:
23973 return NULL;
23974 }
23975
23976
23977 static PyObject *_wrap_new_CustomDataFormat(PyObject *self, PyObject *args, PyObject *kwargs) {
23978 PyObject *resultobj;
23979 wxString *arg1 = 0 ;
23980 wxDataFormat *result;
23981 bool temp1 = False ;
23982 PyObject * obj0 = 0 ;
23983 char *kwnames[] = {
23984 (char *) "format", NULL
23985 };
23986
23987 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CustomDataFormat",kwnames,&obj0)) goto fail;
23988 {
23989 arg1 = wxString_in_helper(obj0);
23990 if (arg1 == NULL) SWIG_fail;
23991 temp1 = True;
23992 }
23993 {
23994 PyThreadState* __tstate = wxPyBeginAllowThreads();
23995 result = (wxDataFormat *)new wxDataFormat((wxString const &)*arg1);
23996
23997 wxPyEndAllowThreads(__tstate);
23998 if (PyErr_Occurred()) SWIG_fail;
23999 }
24000 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataFormat, 1);
24001 {
24002 if (temp1)
24003 delete arg1;
24004 }
24005 return resultobj;
24006 fail:
24007 {
24008 if (temp1)
24009 delete arg1;
24010 }
24011 return NULL;
24012 }
24013
24014
24015 static PyObject *_wrap_delete_DataFormat(PyObject *self, PyObject *args, PyObject *kwargs) {
24016 PyObject *resultobj;
24017 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
24018 PyObject * obj0 = 0 ;
24019 char *kwnames[] = {
24020 (char *) "self", NULL
24021 };
24022
24023 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DataFormat",kwnames,&obj0)) goto fail;
24024 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24025 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24026 {
24027 PyThreadState* __tstate = wxPyBeginAllowThreads();
24028 delete arg1;
24029
24030 wxPyEndAllowThreads(__tstate);
24031 if (PyErr_Occurred()) SWIG_fail;
24032 }
24033 Py_INCREF(Py_None); resultobj = Py_None;
24034 return resultobj;
24035 fail:
24036 return NULL;
24037 }
24038
24039
24040 static PyObject *_wrap_DataFormat___eq____SWIG_0(PyObject *self, PyObject *args) {
24041 PyObject *resultobj;
24042 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
24043 int arg2 ;
24044 bool result;
24045 PyObject * obj0 = 0 ;
24046 PyObject * obj1 = 0 ;
24047
24048 if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___eq__",&obj0,&obj1)) goto fail;
24049 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24050 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24051 arg2 = (wxDataFormatId) SWIG_AsInt(obj1);
24052 if (PyErr_Occurred()) SWIG_fail;
24053 {
24054 PyThreadState* __tstate = wxPyBeginAllowThreads();
24055 result = (bool)((wxDataFormat const *)arg1)->operator ==((wxDataFormatId )arg2);
24056
24057 wxPyEndAllowThreads(__tstate);
24058 if (PyErr_Occurred()) SWIG_fail;
24059 }
24060 {
24061 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24062 }
24063 return resultobj;
24064 fail:
24065 return NULL;
24066 }
24067
24068
24069 static PyObject *_wrap_DataFormat___ne____SWIG_0(PyObject *self, PyObject *args) {
24070 PyObject *resultobj;
24071 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
24072 int arg2 ;
24073 bool result;
24074 PyObject * obj0 = 0 ;
24075 PyObject * obj1 = 0 ;
24076
24077 if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___ne__",&obj0,&obj1)) goto fail;
24078 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24079 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24080 arg2 = (wxDataFormatId) SWIG_AsInt(obj1);
24081 if (PyErr_Occurred()) SWIG_fail;
24082 {
24083 PyThreadState* __tstate = wxPyBeginAllowThreads();
24084 result = (bool)((wxDataFormat const *)arg1)->operator !=((wxDataFormatId )arg2);
24085
24086 wxPyEndAllowThreads(__tstate);
24087 if (PyErr_Occurred()) SWIG_fail;
24088 }
24089 {
24090 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24091 }
24092 return resultobj;
24093 fail:
24094 return NULL;
24095 }
24096
24097
24098 static PyObject *_wrap_DataFormat___eq____SWIG_1(PyObject *self, PyObject *args) {
24099 PyObject *resultobj;
24100 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
24101 wxDataFormat *arg2 = 0 ;
24102 bool result;
24103 PyObject * obj0 = 0 ;
24104 PyObject * obj1 = 0 ;
24105
24106 if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___eq__",&obj0,&obj1)) goto fail;
24107 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24108 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24109 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
24110 SWIG_POINTER_EXCEPTION | 0)) == -1)
24111 SWIG_fail;
24112 if (arg2 == NULL) {
24113 PyErr_SetString(PyExc_TypeError,"null reference");
24114 SWIG_fail;
24115 }
24116 {
24117 PyThreadState* __tstate = wxPyBeginAllowThreads();
24118 result = (bool)((wxDataFormat const *)arg1)->operator ==((wxDataFormat const &)*arg2);
24119
24120 wxPyEndAllowThreads(__tstate);
24121 if (PyErr_Occurred()) SWIG_fail;
24122 }
24123 {
24124 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24125 }
24126 return resultobj;
24127 fail:
24128 return NULL;
24129 }
24130
24131
24132 static PyObject *_wrap_DataFormat___eq__(PyObject *self, PyObject *args) {
24133 int argc;
24134 PyObject *argv[3];
24135 int ii;
24136
24137 argc = PyObject_Length(args);
24138 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
24139 argv[ii] = PyTuple_GetItem(args,ii);
24140 }
24141 if (argc == 2) {
24142 int _v;
24143 {
24144 void *ptr;
24145 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
24146 _v = 0;
24147 PyErr_Clear();
24148 } else {
24149 _v = 1;
24150 }
24151 }
24152 if (_v) {
24153 {
24154 void *ptr;
24155 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
24156 _v = 0;
24157 PyErr_Clear();
24158 } else {
24159 _v = 1;
24160 }
24161 }
24162 if (_v) {
24163 return _wrap_DataFormat___eq____SWIG_1(self,args);
24164 }
24165 }
24166 }
24167 if (argc == 2) {
24168 int _v;
24169 {
24170 void *ptr;
24171 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
24172 _v = 0;
24173 PyErr_Clear();
24174 } else {
24175 _v = 1;
24176 }
24177 }
24178 if (_v) {
24179 _v = SWIG_CheckInt(argv[1]);
24180 if (_v) {
24181 return _wrap_DataFormat___eq____SWIG_0(self,args);
24182 }
24183 }
24184 }
24185
24186 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DataFormat___eq__'");
24187 return NULL;
24188 }
24189
24190
24191 static PyObject *_wrap_DataFormat___ne____SWIG_1(PyObject *self, PyObject *args) {
24192 PyObject *resultobj;
24193 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
24194 wxDataFormat *arg2 = 0 ;
24195 bool result;
24196 PyObject * obj0 = 0 ;
24197 PyObject * obj1 = 0 ;
24198
24199 if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___ne__",&obj0,&obj1)) goto fail;
24200 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24201 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24202 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
24203 SWIG_POINTER_EXCEPTION | 0)) == -1)
24204 SWIG_fail;
24205 if (arg2 == NULL) {
24206 PyErr_SetString(PyExc_TypeError,"null reference");
24207 SWIG_fail;
24208 }
24209 {
24210 PyThreadState* __tstate = wxPyBeginAllowThreads();
24211 result = (bool)((wxDataFormat const *)arg1)->operator !=((wxDataFormat const &)*arg2);
24212
24213 wxPyEndAllowThreads(__tstate);
24214 if (PyErr_Occurred()) SWIG_fail;
24215 }
24216 {
24217 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24218 }
24219 return resultobj;
24220 fail:
24221 return NULL;
24222 }
24223
24224
24225 static PyObject *_wrap_DataFormat___ne__(PyObject *self, PyObject *args) {
24226 int argc;
24227 PyObject *argv[3];
24228 int ii;
24229
24230 argc = PyObject_Length(args);
24231 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
24232 argv[ii] = PyTuple_GetItem(args,ii);
24233 }
24234 if (argc == 2) {
24235 int _v;
24236 {
24237 void *ptr;
24238 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
24239 _v = 0;
24240 PyErr_Clear();
24241 } else {
24242 _v = 1;
24243 }
24244 }
24245 if (_v) {
24246 {
24247 void *ptr;
24248 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
24249 _v = 0;
24250 PyErr_Clear();
24251 } else {
24252 _v = 1;
24253 }
24254 }
24255 if (_v) {
24256 return _wrap_DataFormat___ne____SWIG_1(self,args);
24257 }
24258 }
24259 }
24260 if (argc == 2) {
24261 int _v;
24262 {
24263 void *ptr;
24264 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
24265 _v = 0;
24266 PyErr_Clear();
24267 } else {
24268 _v = 1;
24269 }
24270 }
24271 if (_v) {
24272 _v = SWIG_CheckInt(argv[1]);
24273 if (_v) {
24274 return _wrap_DataFormat___ne____SWIG_0(self,args);
24275 }
24276 }
24277 }
24278
24279 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DataFormat___ne__'");
24280 return NULL;
24281 }
24282
24283
24284 static PyObject *_wrap_DataFormat_SetType(PyObject *self, PyObject *args, PyObject *kwargs) {
24285 PyObject *resultobj;
24286 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
24287 int arg2 ;
24288 PyObject * obj0 = 0 ;
24289 PyObject * obj1 = 0 ;
24290 char *kwnames[] = {
24291 (char *) "self",(char *) "format", NULL
24292 };
24293
24294 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataFormat_SetType",kwnames,&obj0,&obj1)) goto fail;
24295 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24296 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24297 arg2 = (wxDataFormatId) SWIG_AsInt(obj1);
24298 if (PyErr_Occurred()) SWIG_fail;
24299 {
24300 PyThreadState* __tstate = wxPyBeginAllowThreads();
24301 (arg1)->SetType((wxDataFormatId )arg2);
24302
24303 wxPyEndAllowThreads(__tstate);
24304 if (PyErr_Occurred()) SWIG_fail;
24305 }
24306 Py_INCREF(Py_None); resultobj = Py_None;
24307 return resultobj;
24308 fail:
24309 return NULL;
24310 }
24311
24312
24313 static PyObject *_wrap_DataFormat_GetType(PyObject *self, PyObject *args, PyObject *kwargs) {
24314 PyObject *resultobj;
24315 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
24316 int result;
24317 PyObject * obj0 = 0 ;
24318 char *kwnames[] = {
24319 (char *) "self", NULL
24320 };
24321
24322 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataFormat_GetType",kwnames,&obj0)) goto fail;
24323 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24324 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24325 {
24326 PyThreadState* __tstate = wxPyBeginAllowThreads();
24327 result = (int)((wxDataFormat const *)arg1)->GetType();
24328
24329 wxPyEndAllowThreads(__tstate);
24330 if (PyErr_Occurred()) SWIG_fail;
24331 }
24332 resultobj = SWIG_FromInt((int)result);
24333 return resultobj;
24334 fail:
24335 return NULL;
24336 }
24337
24338
24339 static PyObject *_wrap_DataFormat_GetId(PyObject *self, PyObject *args, PyObject *kwargs) {
24340 PyObject *resultobj;
24341 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
24342 wxString result;
24343 PyObject * obj0 = 0 ;
24344 char *kwnames[] = {
24345 (char *) "self", NULL
24346 };
24347
24348 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataFormat_GetId",kwnames,&obj0)) goto fail;
24349 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24350 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24351 {
24352 PyThreadState* __tstate = wxPyBeginAllowThreads();
24353 result = ((wxDataFormat const *)arg1)->GetId();
24354
24355 wxPyEndAllowThreads(__tstate);
24356 if (PyErr_Occurred()) SWIG_fail;
24357 }
24358 {
24359 #if wxUSE_UNICODE
24360 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
24361 #else
24362 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
24363 #endif
24364 }
24365 return resultobj;
24366 fail:
24367 return NULL;
24368 }
24369
24370
24371 static PyObject *_wrap_DataFormat_SetId(PyObject *self, PyObject *args, PyObject *kwargs) {
24372 PyObject *resultobj;
24373 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
24374 wxString *arg2 = 0 ;
24375 bool temp2 = False ;
24376 PyObject * obj0 = 0 ;
24377 PyObject * obj1 = 0 ;
24378 char *kwnames[] = {
24379 (char *) "self",(char *) "format", NULL
24380 };
24381
24382 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataFormat_SetId",kwnames,&obj0,&obj1)) goto fail;
24383 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24384 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24385 {
24386 arg2 = wxString_in_helper(obj1);
24387 if (arg2 == NULL) SWIG_fail;
24388 temp2 = True;
24389 }
24390 {
24391 PyThreadState* __tstate = wxPyBeginAllowThreads();
24392 (arg1)->SetId((wxString const &)*arg2);
24393
24394 wxPyEndAllowThreads(__tstate);
24395 if (PyErr_Occurred()) SWIG_fail;
24396 }
24397 Py_INCREF(Py_None); resultobj = Py_None;
24398 {
24399 if (temp2)
24400 delete arg2;
24401 }
24402 return resultobj;
24403 fail:
24404 {
24405 if (temp2)
24406 delete arg2;
24407 }
24408 return NULL;
24409 }
24410
24411
24412 static PyObject * DataFormat_swigregister(PyObject *self, PyObject *args) {
24413 PyObject *obj;
24414 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24415 SWIG_TypeClientData(SWIGTYPE_p_wxDataFormat, obj);
24416 Py_INCREF(obj);
24417 return Py_BuildValue((char *)"");
24418 }
24419 static int _wrap_FormatInvalid_set(PyObject *_val) {
24420 PyErr_SetString(PyExc_TypeError,"Variable FormatInvalid is read-only.");
24421 return 1;
24422 }
24423
24424
24425 static PyObject *_wrap_FormatInvalid_get() {
24426 PyObject *pyobj;
24427
24428 pyobj = SWIG_NewPointerObj((void *)(&wxFormatInvalid), SWIGTYPE_p_wxDataFormat, 0);
24429 return pyobj;
24430 }
24431
24432
24433 static PyObject *_wrap_delete_DataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
24434 PyObject *resultobj;
24435 wxDataObject *arg1 = (wxDataObject *) 0 ;
24436 PyObject * obj0 = 0 ;
24437 char *kwnames[] = {
24438 (char *) "self", NULL
24439 };
24440
24441 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DataObject",kwnames,&obj0)) goto fail;
24442 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24443 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24444 {
24445 PyThreadState* __tstate = wxPyBeginAllowThreads();
24446 delete arg1;
24447
24448 wxPyEndAllowThreads(__tstate);
24449 if (PyErr_Occurred()) SWIG_fail;
24450 }
24451 Py_INCREF(Py_None); resultobj = Py_None;
24452 return resultobj;
24453 fail:
24454 return NULL;
24455 }
24456
24457
24458 static PyObject *_wrap_DataObject_GetPreferredFormat(PyObject *self, PyObject *args, PyObject *kwargs) {
24459 PyObject *resultobj;
24460 wxDataObject *arg1 = (wxDataObject *) 0 ;
24461 int arg2 = (int) wxDataObject::Get ;
24462 SwigValueWrapper< wxDataFormat > result;
24463 PyObject * obj0 = 0 ;
24464 PyObject * obj1 = 0 ;
24465 char *kwnames[] = {
24466 (char *) "self",(char *) "dir", NULL
24467 };
24468
24469 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DataObject_GetPreferredFormat",kwnames,&obj0,&obj1)) goto fail;
24470 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24471 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24472 if (obj1) {
24473 arg2 = (wxDataObject::Direction) SWIG_AsInt(obj1);
24474 if (PyErr_Occurred()) SWIG_fail;
24475 }
24476 {
24477 PyThreadState* __tstate = wxPyBeginAllowThreads();
24478 result = ((wxDataObject const *)arg1)->GetPreferredFormat((wxDataObject::Direction )arg2);
24479
24480 wxPyEndAllowThreads(__tstate);
24481 if (PyErr_Occurred()) SWIG_fail;
24482 }
24483 {
24484 wxDataFormat * resultptr;
24485 resultptr = new wxDataFormat((wxDataFormat &) result);
24486 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDataFormat, 1);
24487 }
24488 return resultobj;
24489 fail:
24490 return NULL;
24491 }
24492
24493
24494 static PyObject *_wrap_DataObject_GetFormatCount(PyObject *self, PyObject *args, PyObject *kwargs) {
24495 PyObject *resultobj;
24496 wxDataObject *arg1 = (wxDataObject *) 0 ;
24497 int arg2 = (int) wxDataObject::Get ;
24498 size_t result;
24499 PyObject * obj0 = 0 ;
24500 PyObject * obj1 = 0 ;
24501 char *kwnames[] = {
24502 (char *) "self",(char *) "dir", NULL
24503 };
24504
24505 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DataObject_GetFormatCount",kwnames,&obj0,&obj1)) goto fail;
24506 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24507 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24508 if (obj1) {
24509 arg2 = (wxDataObject::Direction) SWIG_AsInt(obj1);
24510 if (PyErr_Occurred()) SWIG_fail;
24511 }
24512 {
24513 PyThreadState* __tstate = wxPyBeginAllowThreads();
24514 result = (size_t)((wxDataObject const *)arg1)->GetFormatCount((wxDataObject::Direction )arg2);
24515
24516 wxPyEndAllowThreads(__tstate);
24517 if (PyErr_Occurred()) SWIG_fail;
24518 }
24519 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
24520 return resultobj;
24521 fail:
24522 return NULL;
24523 }
24524
24525
24526 static PyObject *_wrap_DataObject_IsSupported(PyObject *self, PyObject *args, PyObject *kwargs) {
24527 PyObject *resultobj;
24528 wxDataObject *arg1 = (wxDataObject *) 0 ;
24529 wxDataFormat *arg2 = 0 ;
24530 int arg3 = (int) wxDataObject::Get ;
24531 bool result;
24532 PyObject * obj0 = 0 ;
24533 PyObject * obj1 = 0 ;
24534 PyObject * obj2 = 0 ;
24535 char *kwnames[] = {
24536 (char *) "self",(char *) "format",(char *) "dir", NULL
24537 };
24538
24539 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DataObject_IsSupported",kwnames,&obj0,&obj1,&obj2)) goto fail;
24540 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24541 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24542 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
24543 SWIG_POINTER_EXCEPTION | 0)) == -1)
24544 SWIG_fail;
24545 if (arg2 == NULL) {
24546 PyErr_SetString(PyExc_TypeError,"null reference");
24547 SWIG_fail;
24548 }
24549 if (obj2) {
24550 arg3 = (wxDataObject::Direction) SWIG_AsInt(obj2);
24551 if (PyErr_Occurred()) SWIG_fail;
24552 }
24553 {
24554 PyThreadState* __tstate = wxPyBeginAllowThreads();
24555 result = (bool)((wxDataObject const *)arg1)->IsSupported((wxDataFormat const &)*arg2,(wxDataObject::Direction )arg3);
24556
24557 wxPyEndAllowThreads(__tstate);
24558 if (PyErr_Occurred()) SWIG_fail;
24559 }
24560 {
24561 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24562 }
24563 return resultobj;
24564 fail:
24565 return NULL;
24566 }
24567
24568
24569 static PyObject *_wrap_DataObject_GetDataSize(PyObject *self, PyObject *args, PyObject *kwargs) {
24570 PyObject *resultobj;
24571 wxDataObject *arg1 = (wxDataObject *) 0 ;
24572 wxDataFormat *arg2 = 0 ;
24573 size_t result;
24574 PyObject * obj0 = 0 ;
24575 PyObject * obj1 = 0 ;
24576 char *kwnames[] = {
24577 (char *) "self",(char *) "format", NULL
24578 };
24579
24580 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObject_GetDataSize",kwnames,&obj0,&obj1)) goto fail;
24581 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24582 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24583 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
24584 SWIG_POINTER_EXCEPTION | 0)) == -1)
24585 SWIG_fail;
24586 if (arg2 == NULL) {
24587 PyErr_SetString(PyExc_TypeError,"null reference");
24588 SWIG_fail;
24589 }
24590 {
24591 PyThreadState* __tstate = wxPyBeginAllowThreads();
24592 result = (size_t)((wxDataObject const *)arg1)->GetDataSize((wxDataFormat const &)*arg2);
24593
24594 wxPyEndAllowThreads(__tstate);
24595 if (PyErr_Occurred()) SWIG_fail;
24596 }
24597 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
24598 return resultobj;
24599 fail:
24600 return NULL;
24601 }
24602
24603
24604 static PyObject *_wrap_DataObject_GetAllFormats(PyObject *self, PyObject *args, PyObject *kwargs) {
24605 PyObject *resultobj;
24606 wxDataObject *arg1 = (wxDataObject *) 0 ;
24607 int arg2 = (int) wxDataObject::Get ;
24608 PyObject *result;
24609 PyObject * obj0 = 0 ;
24610 PyObject * obj1 = 0 ;
24611 char *kwnames[] = {
24612 (char *) "self",(char *) "dir", NULL
24613 };
24614
24615 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DataObject_GetAllFormats",kwnames,&obj0,&obj1)) goto fail;
24616 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24617 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24618 if (obj1) {
24619 arg2 = (wxDataObject::Direction) SWIG_AsInt(obj1);
24620 if (PyErr_Occurred()) SWIG_fail;
24621 }
24622 {
24623 PyThreadState* __tstate = wxPyBeginAllowThreads();
24624 result = (PyObject *)wxDataObject_GetAllFormats(arg1,(wxDataObject::Direction )arg2);
24625
24626 wxPyEndAllowThreads(__tstate);
24627 if (PyErr_Occurred()) SWIG_fail;
24628 }
24629 resultobj = result;
24630 return resultobj;
24631 fail:
24632 return NULL;
24633 }
24634
24635
24636 static PyObject *_wrap_DataObject_GetDataHere(PyObject *self, PyObject *args, PyObject *kwargs) {
24637 PyObject *resultobj;
24638 wxDataObject *arg1 = (wxDataObject *) 0 ;
24639 wxDataFormat *arg2 = 0 ;
24640 PyObject *result;
24641 PyObject * obj0 = 0 ;
24642 PyObject * obj1 = 0 ;
24643 char *kwnames[] = {
24644 (char *) "self",(char *) "format", NULL
24645 };
24646
24647 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObject_GetDataHere",kwnames,&obj0,&obj1)) goto fail;
24648 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24649 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24650 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
24651 SWIG_POINTER_EXCEPTION | 0)) == -1)
24652 SWIG_fail;
24653 if (arg2 == NULL) {
24654 PyErr_SetString(PyExc_TypeError,"null reference");
24655 SWIG_fail;
24656 }
24657 {
24658 PyThreadState* __tstate = wxPyBeginAllowThreads();
24659 result = (PyObject *)wxDataObject_GetDataHere(arg1,(wxDataFormat const &)*arg2);
24660
24661 wxPyEndAllowThreads(__tstate);
24662 if (PyErr_Occurred()) SWIG_fail;
24663 }
24664 resultobj = result;
24665 return resultobj;
24666 fail:
24667 return NULL;
24668 }
24669
24670
24671 static PyObject *_wrap_DataObject_SetData(PyObject *self, PyObject *args, PyObject *kwargs) {
24672 PyObject *resultobj;
24673 wxDataObject *arg1 = (wxDataObject *) 0 ;
24674 wxDataFormat *arg2 = 0 ;
24675 PyObject *arg3 = (PyObject *) 0 ;
24676 bool result;
24677 PyObject * obj0 = 0 ;
24678 PyObject * obj1 = 0 ;
24679 PyObject * obj2 = 0 ;
24680 char *kwnames[] = {
24681 (char *) "self",(char *) "format",(char *) "data", NULL
24682 };
24683
24684 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DataObject_SetData",kwnames,&obj0,&obj1,&obj2)) goto fail;
24685 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24686 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24687 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
24688 SWIG_POINTER_EXCEPTION | 0)) == -1)
24689 SWIG_fail;
24690 if (arg2 == NULL) {
24691 PyErr_SetString(PyExc_TypeError,"null reference");
24692 SWIG_fail;
24693 }
24694 arg3 = obj2;
24695 {
24696 PyThreadState* __tstate = wxPyBeginAllowThreads();
24697 result = (bool)wxDataObject_SetData(arg1,(wxDataFormat const &)*arg2,arg3);
24698
24699 wxPyEndAllowThreads(__tstate);
24700 if (PyErr_Occurred()) SWIG_fail;
24701 }
24702 {
24703 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24704 }
24705 return resultobj;
24706 fail:
24707 return NULL;
24708 }
24709
24710
24711 static PyObject * DataObject_swigregister(PyObject *self, PyObject *args) {
24712 PyObject *obj;
24713 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24714 SWIG_TypeClientData(SWIGTYPE_p_wxDataObject, obj);
24715 Py_INCREF(obj);
24716 return Py_BuildValue((char *)"");
24717 }
24718 static PyObject *_wrap_new_DataObjectSimple(PyObject *self, PyObject *args, PyObject *kwargs) {
24719 PyObject *resultobj;
24720 wxDataFormat const &arg1_defvalue = wxFormatInvalid ;
24721 wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ;
24722 wxDataObjectSimple *result;
24723 PyObject * obj0 = 0 ;
24724 char *kwnames[] = {
24725 (char *) "format", NULL
24726 };
24727
24728 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_DataObjectSimple",kwnames,&obj0)) goto fail;
24729 if (obj0) {
24730 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24731 SWIG_POINTER_EXCEPTION | 0)) == -1)
24732 SWIG_fail;
24733 if (arg1 == NULL) {
24734 PyErr_SetString(PyExc_TypeError,"null reference");
24735 SWIG_fail;
24736 }
24737 }
24738 {
24739 PyThreadState* __tstate = wxPyBeginAllowThreads();
24740 result = (wxDataObjectSimple *)new wxDataObjectSimple((wxDataFormat const &)*arg1);
24741
24742 wxPyEndAllowThreads(__tstate);
24743 if (PyErr_Occurred()) SWIG_fail;
24744 }
24745 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObjectSimple, 1);
24746 return resultobj;
24747 fail:
24748 return NULL;
24749 }
24750
24751
24752 static PyObject *_wrap_DataObjectSimple_GetFormat(PyObject *self, PyObject *args, PyObject *kwargs) {
24753 PyObject *resultobj;
24754 wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ;
24755 wxDataFormat *result;
24756 PyObject * obj0 = 0 ;
24757 char *kwnames[] = {
24758 (char *) "self", NULL
24759 };
24760
24761 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataObjectSimple_GetFormat",kwnames,&obj0)) goto fail;
24762 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple,
24763 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24764 {
24765 PyThreadState* __tstate = wxPyBeginAllowThreads();
24766 {
24767 wxDataFormat const &_result_ref = (arg1)->GetFormat();
24768 result = (wxDataFormat *) &_result_ref;
24769 }
24770
24771 wxPyEndAllowThreads(__tstate);
24772 if (PyErr_Occurred()) SWIG_fail;
24773 }
24774 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataFormat, 0);
24775 return resultobj;
24776 fail:
24777 return NULL;
24778 }
24779
24780
24781 static PyObject *_wrap_DataObjectSimple_SetFormat(PyObject *self, PyObject *args, PyObject *kwargs) {
24782 PyObject *resultobj;
24783 wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ;
24784 wxDataFormat *arg2 = 0 ;
24785 PyObject * obj0 = 0 ;
24786 PyObject * obj1 = 0 ;
24787 char *kwnames[] = {
24788 (char *) "self",(char *) "format", NULL
24789 };
24790
24791 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObjectSimple_SetFormat",kwnames,&obj0,&obj1)) goto fail;
24792 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple,
24793 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24794 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
24795 SWIG_POINTER_EXCEPTION | 0)) == -1)
24796 SWIG_fail;
24797 if (arg2 == NULL) {
24798 PyErr_SetString(PyExc_TypeError,"null reference");
24799 SWIG_fail;
24800 }
24801 {
24802 PyThreadState* __tstate = wxPyBeginAllowThreads();
24803 (arg1)->SetFormat((wxDataFormat const &)*arg2);
24804
24805 wxPyEndAllowThreads(__tstate);
24806 if (PyErr_Occurred()) SWIG_fail;
24807 }
24808 Py_INCREF(Py_None); resultobj = Py_None;
24809 return resultobj;
24810 fail:
24811 return NULL;
24812 }
24813
24814
24815 static PyObject *_wrap_DataObjectSimple_GetDataSize(PyObject *self, PyObject *args, PyObject *kwargs) {
24816 PyObject *resultobj;
24817 wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ;
24818 size_t result;
24819 PyObject * obj0 = 0 ;
24820 char *kwnames[] = {
24821 (char *) "self", NULL
24822 };
24823
24824 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataObjectSimple_GetDataSize",kwnames,&obj0)) goto fail;
24825 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple,
24826 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24827 {
24828 PyThreadState* __tstate = wxPyBeginAllowThreads();
24829 result = (size_t)((wxDataObjectSimple const *)arg1)->GetDataSize();
24830
24831 wxPyEndAllowThreads(__tstate);
24832 if (PyErr_Occurred()) SWIG_fail;
24833 }
24834 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
24835 return resultobj;
24836 fail:
24837 return NULL;
24838 }
24839
24840
24841 static PyObject *_wrap_DataObjectSimple_GetDataHere(PyObject *self, PyObject *args, PyObject *kwargs) {
24842 PyObject *resultobj;
24843 wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ;
24844 PyObject *result;
24845 PyObject * obj0 = 0 ;
24846 char *kwnames[] = {
24847 (char *) "self", NULL
24848 };
24849
24850 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataObjectSimple_GetDataHere",kwnames,&obj0)) goto fail;
24851 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple,
24852 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24853 {
24854 PyThreadState* __tstate = wxPyBeginAllowThreads();
24855 result = (PyObject *)wxDataObjectSimple_GetDataHere(arg1);
24856
24857 wxPyEndAllowThreads(__tstate);
24858 if (PyErr_Occurred()) SWIG_fail;
24859 }
24860 resultobj = result;
24861 return resultobj;
24862 fail:
24863 return NULL;
24864 }
24865
24866
24867 static PyObject *_wrap_DataObjectSimple_SetData(PyObject *self, PyObject *args, PyObject *kwargs) {
24868 PyObject *resultobj;
24869 wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ;
24870 PyObject *arg2 = (PyObject *) 0 ;
24871 bool result;
24872 PyObject * obj0 = 0 ;
24873 PyObject * obj1 = 0 ;
24874 char *kwnames[] = {
24875 (char *) "self",(char *) "data", NULL
24876 };
24877
24878 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObjectSimple_SetData",kwnames,&obj0,&obj1)) goto fail;
24879 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple,
24880 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24881 arg2 = obj1;
24882 {
24883 PyThreadState* __tstate = wxPyBeginAllowThreads();
24884 result = (bool)wxDataObjectSimple_SetData(arg1,arg2);
24885
24886 wxPyEndAllowThreads(__tstate);
24887 if (PyErr_Occurred()) SWIG_fail;
24888 }
24889 {
24890 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24891 }
24892 return resultobj;
24893 fail:
24894 return NULL;
24895 }
24896
24897
24898 static PyObject * DataObjectSimple_swigregister(PyObject *self, PyObject *args) {
24899 PyObject *obj;
24900 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24901 SWIG_TypeClientData(SWIGTYPE_p_wxDataObjectSimple, obj);
24902 Py_INCREF(obj);
24903 return Py_BuildValue((char *)"");
24904 }
24905 static PyObject *_wrap_new_PyDataObjectSimple(PyObject *self, PyObject *args, PyObject *kwargs) {
24906 PyObject *resultobj;
24907 wxDataFormat const &arg1_defvalue = wxFormatInvalid ;
24908 wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ;
24909 wxPyDataObjectSimple *result;
24910 PyObject * obj0 = 0 ;
24911 char *kwnames[] = {
24912 (char *) "format", NULL
24913 };
24914
24915 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyDataObjectSimple",kwnames,&obj0)) goto fail;
24916 if (obj0) {
24917 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24918 SWIG_POINTER_EXCEPTION | 0)) == -1)
24919 SWIG_fail;
24920 if (arg1 == NULL) {
24921 PyErr_SetString(PyExc_TypeError,"null reference");
24922 SWIG_fail;
24923 }
24924 }
24925 {
24926 PyThreadState* __tstate = wxPyBeginAllowThreads();
24927 result = (wxPyDataObjectSimple *)new wxPyDataObjectSimple((wxDataFormat const &)*arg1);
24928
24929 wxPyEndAllowThreads(__tstate);
24930 if (PyErr_Occurred()) SWIG_fail;
24931 }
24932 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDataObjectSimple, 1);
24933 return resultobj;
24934 fail:
24935 return NULL;
24936 }
24937
24938
24939 static PyObject *_wrap_PyDataObjectSimple__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
24940 PyObject *resultobj;
24941 wxPyDataObjectSimple *arg1 = (wxPyDataObjectSimple *) 0 ;
24942 PyObject *arg2 = (PyObject *) 0 ;
24943 PyObject *arg3 = (PyObject *) 0 ;
24944 PyObject * obj0 = 0 ;
24945 PyObject * obj1 = 0 ;
24946 PyObject * obj2 = 0 ;
24947 char *kwnames[] = {
24948 (char *) "self",(char *) "self",(char *) "_class", NULL
24949 };
24950
24951 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyDataObjectSimple__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
24952 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDataObjectSimple,
24953 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24954 arg2 = obj1;
24955 arg3 = obj2;
24956 {
24957 PyThreadState* __tstate = wxPyBeginAllowThreads();
24958 (arg1)->_setCallbackInfo(arg2,arg3);
24959
24960 wxPyEndAllowThreads(__tstate);
24961 if (PyErr_Occurred()) SWIG_fail;
24962 }
24963 Py_INCREF(Py_None); resultobj = Py_None;
24964 return resultobj;
24965 fail:
24966 return NULL;
24967 }
24968
24969
24970 static PyObject * PyDataObjectSimple_swigregister(PyObject *self, PyObject *args) {
24971 PyObject *obj;
24972 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24973 SWIG_TypeClientData(SWIGTYPE_p_wxPyDataObjectSimple, obj);
24974 Py_INCREF(obj);
24975 return Py_BuildValue((char *)"");
24976 }
24977 static PyObject *_wrap_new_DataObjectComposite(PyObject *self, PyObject *args, PyObject *kwargs) {
24978 PyObject *resultobj;
24979 wxDataObjectComposite *result;
24980 char *kwnames[] = {
24981 NULL
24982 };
24983
24984 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DataObjectComposite",kwnames)) goto fail;
24985 {
24986 PyThreadState* __tstate = wxPyBeginAllowThreads();
24987 result = (wxDataObjectComposite *)new wxDataObjectComposite();
24988
24989 wxPyEndAllowThreads(__tstate);
24990 if (PyErr_Occurred()) SWIG_fail;
24991 }
24992 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObjectComposite, 1);
24993 return resultobj;
24994 fail:
24995 return NULL;
24996 }
24997
24998
24999 static PyObject *_wrap_DataObjectComposite_Add(PyObject *self, PyObject *args, PyObject *kwargs) {
25000 PyObject *resultobj;
25001 wxDataObjectComposite *arg1 = (wxDataObjectComposite *) 0 ;
25002 wxDataObjectSimple *arg2 = (wxDataObjectSimple *) 0 ;
25003 bool arg3 = (bool) False ;
25004 PyObject * obj0 = 0 ;
25005 PyObject * obj1 = 0 ;
25006 PyObject * obj2 = 0 ;
25007 char *kwnames[] = {
25008 (char *) "self",(char *) "dataObject",(char *) "preferred", NULL
25009 };
25010
25011 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DataObjectComposite_Add",kwnames,&obj0,&obj1,&obj2)) goto fail;
25012 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectComposite,
25013 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25014 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObjectSimple,
25015 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
25016 if (obj2) {
25017 arg3 = (bool) SWIG_AsBool(obj2);
25018 if (PyErr_Occurred()) SWIG_fail;
25019 }
25020 {
25021 PyThreadState* __tstate = wxPyBeginAllowThreads();
25022 (arg1)->Add(arg2,arg3);
25023
25024 wxPyEndAllowThreads(__tstate);
25025 if (PyErr_Occurred()) SWIG_fail;
25026 }
25027 Py_INCREF(Py_None); resultobj = Py_None;
25028 return resultobj;
25029 fail:
25030 return NULL;
25031 }
25032
25033
25034 static PyObject * DataObjectComposite_swigregister(PyObject *self, PyObject *args) {
25035 PyObject *obj;
25036 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25037 SWIG_TypeClientData(SWIGTYPE_p_wxDataObjectComposite, obj);
25038 Py_INCREF(obj);
25039 return Py_BuildValue((char *)"");
25040 }
25041 static PyObject *_wrap_new_TextDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
25042 PyObject *resultobj;
25043 wxString const &arg1_defvalue = wxPyEmptyString ;
25044 wxString *arg1 = (wxString *) &arg1_defvalue ;
25045 wxTextDataObject *result;
25046 bool temp1 = False ;
25047 PyObject * obj0 = 0 ;
25048 char *kwnames[] = {
25049 (char *) "text", NULL
25050 };
25051
25052 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TextDataObject",kwnames,&obj0)) goto fail;
25053 if (obj0) {
25054 {
25055 arg1 = wxString_in_helper(obj0);
25056 if (arg1 == NULL) SWIG_fail;
25057 temp1 = True;
25058 }
25059 }
25060 {
25061 PyThreadState* __tstate = wxPyBeginAllowThreads();
25062 result = (wxTextDataObject *)new wxTextDataObject((wxString const &)*arg1);
25063
25064 wxPyEndAllowThreads(__tstate);
25065 if (PyErr_Occurred()) SWIG_fail;
25066 }
25067 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextDataObject, 1);
25068 {
25069 if (temp1)
25070 delete arg1;
25071 }
25072 return resultobj;
25073 fail:
25074 {
25075 if (temp1)
25076 delete arg1;
25077 }
25078 return NULL;
25079 }
25080
25081
25082 static PyObject *_wrap_TextDataObject_GetTextLength(PyObject *self, PyObject *args, PyObject *kwargs) {
25083 PyObject *resultobj;
25084 wxTextDataObject *arg1 = (wxTextDataObject *) 0 ;
25085 size_t result;
25086 PyObject * obj0 = 0 ;
25087 char *kwnames[] = {
25088 (char *) "self", NULL
25089 };
25090
25091 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDataObject_GetTextLength",kwnames,&obj0)) goto fail;
25092 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextDataObject,
25093 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25094 {
25095 PyThreadState* __tstate = wxPyBeginAllowThreads();
25096 result = (size_t)(arg1)->GetTextLength();
25097
25098 wxPyEndAllowThreads(__tstate);
25099 if (PyErr_Occurred()) SWIG_fail;
25100 }
25101 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
25102 return resultobj;
25103 fail:
25104 return NULL;
25105 }
25106
25107
25108 static PyObject *_wrap_TextDataObject_GetText(PyObject *self, PyObject *args, PyObject *kwargs) {
25109 PyObject *resultobj;
25110 wxTextDataObject *arg1 = (wxTextDataObject *) 0 ;
25111 wxString result;
25112 PyObject * obj0 = 0 ;
25113 char *kwnames[] = {
25114 (char *) "self", NULL
25115 };
25116
25117 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDataObject_GetText",kwnames,&obj0)) goto fail;
25118 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextDataObject,
25119 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25120 {
25121 PyThreadState* __tstate = wxPyBeginAllowThreads();
25122 result = (arg1)->GetText();
25123
25124 wxPyEndAllowThreads(__tstate);
25125 if (PyErr_Occurred()) SWIG_fail;
25126 }
25127 {
25128 #if wxUSE_UNICODE
25129 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
25130 #else
25131 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
25132 #endif
25133 }
25134 return resultobj;
25135 fail:
25136 return NULL;
25137 }
25138
25139
25140 static PyObject *_wrap_TextDataObject_SetText(PyObject *self, PyObject *args, PyObject *kwargs) {
25141 PyObject *resultobj;
25142 wxTextDataObject *arg1 = (wxTextDataObject *) 0 ;
25143 wxString *arg2 = 0 ;
25144 bool temp2 = False ;
25145 PyObject * obj0 = 0 ;
25146 PyObject * obj1 = 0 ;
25147 char *kwnames[] = {
25148 (char *) "self",(char *) "text", NULL
25149 };
25150
25151 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextDataObject_SetText",kwnames,&obj0,&obj1)) goto fail;
25152 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextDataObject,
25153 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25154 {
25155 arg2 = wxString_in_helper(obj1);
25156 if (arg2 == NULL) SWIG_fail;
25157 temp2 = True;
25158 }
25159 {
25160 PyThreadState* __tstate = wxPyBeginAllowThreads();
25161 (arg1)->SetText((wxString const &)*arg2);
25162
25163 wxPyEndAllowThreads(__tstate);
25164 if (PyErr_Occurred()) SWIG_fail;
25165 }
25166 Py_INCREF(Py_None); resultobj = Py_None;
25167 {
25168 if (temp2)
25169 delete arg2;
25170 }
25171 return resultobj;
25172 fail:
25173 {
25174 if (temp2)
25175 delete arg2;
25176 }
25177 return NULL;
25178 }
25179
25180
25181 static PyObject * TextDataObject_swigregister(PyObject *self, PyObject *args) {
25182 PyObject *obj;
25183 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25184 SWIG_TypeClientData(SWIGTYPE_p_wxTextDataObject, obj);
25185 Py_INCREF(obj);
25186 return Py_BuildValue((char *)"");
25187 }
25188 static PyObject *_wrap_new_PyTextDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
25189 PyObject *resultobj;
25190 wxString const &arg1_defvalue = wxPyEmptyString ;
25191 wxString *arg1 = (wxString *) &arg1_defvalue ;
25192 wxPyTextDataObject *result;
25193 bool temp1 = False ;
25194 PyObject * obj0 = 0 ;
25195 char *kwnames[] = {
25196 (char *) "text", NULL
25197 };
25198
25199 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyTextDataObject",kwnames,&obj0)) goto fail;
25200 if (obj0) {
25201 {
25202 arg1 = wxString_in_helper(obj0);
25203 if (arg1 == NULL) SWIG_fail;
25204 temp1 = True;
25205 }
25206 }
25207 {
25208 PyThreadState* __tstate = wxPyBeginAllowThreads();
25209 result = (wxPyTextDataObject *)new wxPyTextDataObject((wxString const &)*arg1);
25210
25211 wxPyEndAllowThreads(__tstate);
25212 if (PyErr_Occurred()) SWIG_fail;
25213 }
25214 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTextDataObject, 1);
25215 {
25216 if (temp1)
25217 delete arg1;
25218 }
25219 return resultobj;
25220 fail:
25221 {
25222 if (temp1)
25223 delete arg1;
25224 }
25225 return NULL;
25226 }
25227
25228
25229 static PyObject *_wrap_PyTextDataObject__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
25230 PyObject *resultobj;
25231 wxPyTextDataObject *arg1 = (wxPyTextDataObject *) 0 ;
25232 PyObject *arg2 = (PyObject *) 0 ;
25233 PyObject *arg3 = (PyObject *) 0 ;
25234 PyObject * obj0 = 0 ;
25235 PyObject * obj1 = 0 ;
25236 PyObject * obj2 = 0 ;
25237 char *kwnames[] = {
25238 (char *) "self",(char *) "self",(char *) "_class", NULL
25239 };
25240
25241 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyTextDataObject__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
25242 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDataObject,
25243 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25244 arg2 = obj1;
25245 arg3 = obj2;
25246 {
25247 PyThreadState* __tstate = wxPyBeginAllowThreads();
25248 (arg1)->_setCallbackInfo(arg2,arg3);
25249
25250 wxPyEndAllowThreads(__tstate);
25251 if (PyErr_Occurred()) SWIG_fail;
25252 }
25253 Py_INCREF(Py_None); resultobj = Py_None;
25254 return resultobj;
25255 fail:
25256 return NULL;
25257 }
25258
25259
25260 static PyObject * PyTextDataObject_swigregister(PyObject *self, PyObject *args) {
25261 PyObject *obj;
25262 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25263 SWIG_TypeClientData(SWIGTYPE_p_wxPyTextDataObject, obj);
25264 Py_INCREF(obj);
25265 return Py_BuildValue((char *)"");
25266 }
25267 static PyObject *_wrap_new_BitmapDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
25268 PyObject *resultobj;
25269 wxBitmap const &arg1_defvalue = wxNullBitmap ;
25270 wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ;
25271 wxBitmapDataObject *result;
25272 PyObject * obj0 = 0 ;
25273 char *kwnames[] = {
25274 (char *) "bitmap", NULL
25275 };
25276
25277 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BitmapDataObject",kwnames,&obj0)) goto fail;
25278 if (obj0) {
25279 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
25280 SWIG_POINTER_EXCEPTION | 0)) == -1)
25281 SWIG_fail;
25282 if (arg1 == NULL) {
25283 PyErr_SetString(PyExc_TypeError,"null reference");
25284 SWIG_fail;
25285 }
25286 }
25287 {
25288 PyThreadState* __tstate = wxPyBeginAllowThreads();
25289 result = (wxBitmapDataObject *)new wxBitmapDataObject((wxBitmap const &)*arg1);
25290
25291 wxPyEndAllowThreads(__tstate);
25292 if (PyErr_Occurred()) SWIG_fail;
25293 }
25294 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmapDataObject, 1);
25295 return resultobj;
25296 fail:
25297 return NULL;
25298 }
25299
25300
25301 static PyObject *_wrap_BitmapDataObject_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
25302 PyObject *resultobj;
25303 wxBitmapDataObject *arg1 = (wxBitmapDataObject *) 0 ;
25304 wxBitmap result;
25305 PyObject * obj0 = 0 ;
25306 char *kwnames[] = {
25307 (char *) "self", NULL
25308 };
25309
25310 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapDataObject_GetBitmap",kwnames,&obj0)) goto fail;
25311 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapDataObject,
25312 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25313 {
25314 PyThreadState* __tstate = wxPyBeginAllowThreads();
25315 result = ((wxBitmapDataObject const *)arg1)->GetBitmap();
25316
25317 wxPyEndAllowThreads(__tstate);
25318 if (PyErr_Occurred()) SWIG_fail;
25319 }
25320 {
25321 wxBitmap * resultptr;
25322 resultptr = new wxBitmap((wxBitmap &) result);
25323 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
25324 }
25325 return resultobj;
25326 fail:
25327 return NULL;
25328 }
25329
25330
25331 static PyObject *_wrap_BitmapDataObject_SetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
25332 PyObject *resultobj;
25333 wxBitmapDataObject *arg1 = (wxBitmapDataObject *) 0 ;
25334 wxBitmap *arg2 = 0 ;
25335 PyObject * obj0 = 0 ;
25336 PyObject * obj1 = 0 ;
25337 char *kwnames[] = {
25338 (char *) "self",(char *) "bitmap", NULL
25339 };
25340
25341 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapDataObject_SetBitmap",kwnames,&obj0,&obj1)) goto fail;
25342 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapDataObject,
25343 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25344 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
25345 SWIG_POINTER_EXCEPTION | 0)) == -1)
25346 SWIG_fail;
25347 if (arg2 == NULL) {
25348 PyErr_SetString(PyExc_TypeError,"null reference");
25349 SWIG_fail;
25350 }
25351 {
25352 PyThreadState* __tstate = wxPyBeginAllowThreads();
25353 (arg1)->SetBitmap((wxBitmap const &)*arg2);
25354
25355 wxPyEndAllowThreads(__tstate);
25356 if (PyErr_Occurred()) SWIG_fail;
25357 }
25358 Py_INCREF(Py_None); resultobj = Py_None;
25359 return resultobj;
25360 fail:
25361 return NULL;
25362 }
25363
25364
25365 static PyObject * BitmapDataObject_swigregister(PyObject *self, PyObject *args) {
25366 PyObject *obj;
25367 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25368 SWIG_TypeClientData(SWIGTYPE_p_wxBitmapDataObject, obj);
25369 Py_INCREF(obj);
25370 return Py_BuildValue((char *)"");
25371 }
25372 static PyObject *_wrap_new_PyBitmapDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
25373 PyObject *resultobj;
25374 wxBitmap const &arg1_defvalue = wxNullBitmap ;
25375 wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ;
25376 wxPyBitmapDataObject *result;
25377 PyObject * obj0 = 0 ;
25378 char *kwnames[] = {
25379 (char *) "bitmap", NULL
25380 };
25381
25382 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyBitmapDataObject",kwnames,&obj0)) goto fail;
25383 if (obj0) {
25384 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
25385 SWIG_POINTER_EXCEPTION | 0)) == -1)
25386 SWIG_fail;
25387 if (arg1 == NULL) {
25388 PyErr_SetString(PyExc_TypeError,"null reference");
25389 SWIG_fail;
25390 }
25391 }
25392 {
25393 PyThreadState* __tstate = wxPyBeginAllowThreads();
25394 result = (wxPyBitmapDataObject *)new wxPyBitmapDataObject((wxBitmap const &)*arg1);
25395
25396 wxPyEndAllowThreads(__tstate);
25397 if (PyErr_Occurred()) SWIG_fail;
25398 }
25399 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyBitmapDataObject, 1);
25400 return resultobj;
25401 fail:
25402 return NULL;
25403 }
25404
25405
25406 static PyObject *_wrap_PyBitmapDataObject__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
25407 PyObject *resultobj;
25408 wxPyBitmapDataObject *arg1 = (wxPyBitmapDataObject *) 0 ;
25409 PyObject *arg2 = (PyObject *) 0 ;
25410 PyObject *arg3 = (PyObject *) 0 ;
25411 PyObject * obj0 = 0 ;
25412 PyObject * obj1 = 0 ;
25413 PyObject * obj2 = 0 ;
25414 char *kwnames[] = {
25415 (char *) "self",(char *) "self",(char *) "_class", NULL
25416 };
25417
25418 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyBitmapDataObject__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
25419 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyBitmapDataObject,
25420 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25421 arg2 = obj1;
25422 arg3 = obj2;
25423 {
25424 PyThreadState* __tstate = wxPyBeginAllowThreads();
25425 (arg1)->_setCallbackInfo(arg2,arg3);
25426
25427 wxPyEndAllowThreads(__tstate);
25428 if (PyErr_Occurred()) SWIG_fail;
25429 }
25430 Py_INCREF(Py_None); resultobj = Py_None;
25431 return resultobj;
25432 fail:
25433 return NULL;
25434 }
25435
25436
25437 static PyObject * PyBitmapDataObject_swigregister(PyObject *self, PyObject *args) {
25438 PyObject *obj;
25439 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25440 SWIG_TypeClientData(SWIGTYPE_p_wxPyBitmapDataObject, obj);
25441 Py_INCREF(obj);
25442 return Py_BuildValue((char *)"");
25443 }
25444 static PyObject *_wrap_new_FileDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
25445 PyObject *resultobj;
25446 wxFileDataObject *result;
25447 char *kwnames[] = {
25448 NULL
25449 };
25450
25451 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileDataObject",kwnames)) goto fail;
25452 {
25453 PyThreadState* __tstate = wxPyBeginAllowThreads();
25454 result = (wxFileDataObject *)new wxFileDataObject();
25455
25456 wxPyEndAllowThreads(__tstate);
25457 if (PyErr_Occurred()) SWIG_fail;
25458 }
25459 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileDataObject, 1);
25460 return resultobj;
25461 fail:
25462 return NULL;
25463 }
25464
25465
25466 static PyObject *_wrap_FileDataObject_GetFilenames(PyObject *self, PyObject *args, PyObject *kwargs) {
25467 PyObject *resultobj;
25468 wxFileDataObject *arg1 = (wxFileDataObject *) 0 ;
25469 wxArrayString *result;
25470 PyObject * obj0 = 0 ;
25471 char *kwnames[] = {
25472 (char *) "self", NULL
25473 };
25474
25475 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDataObject_GetFilenames",kwnames,&obj0)) goto fail;
25476 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDataObject,
25477 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25478 {
25479 PyThreadState* __tstate = wxPyBeginAllowThreads();
25480 {
25481 wxArrayString const &_result_ref = (arg1)->GetFilenames();
25482 result = (wxArrayString *) &_result_ref;
25483 }
25484
25485 wxPyEndAllowThreads(__tstate);
25486 if (PyErr_Occurred()) SWIG_fail;
25487 }
25488 {
25489 resultobj = wxArrayString2PyList_helper(*result);
25490 }
25491 return resultobj;
25492 fail:
25493 return NULL;
25494 }
25495
25496
25497 static PyObject *_wrap_FileDataObject_AddFile(PyObject *self, PyObject *args, PyObject *kwargs) {
25498 PyObject *resultobj;
25499 wxFileDataObject *arg1 = (wxFileDataObject *) 0 ;
25500 wxString *arg2 = 0 ;
25501 bool temp2 = False ;
25502 PyObject * obj0 = 0 ;
25503 PyObject * obj1 = 0 ;
25504 char *kwnames[] = {
25505 (char *) "self",(char *) "filename", NULL
25506 };
25507
25508 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDataObject_AddFile",kwnames,&obj0,&obj1)) goto fail;
25509 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDataObject,
25510 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25511 {
25512 arg2 = wxString_in_helper(obj1);
25513 if (arg2 == NULL) SWIG_fail;
25514 temp2 = True;
25515 }
25516 {
25517 PyThreadState* __tstate = wxPyBeginAllowThreads();
25518 (arg1)->AddFile((wxString const &)*arg2);
25519
25520 wxPyEndAllowThreads(__tstate);
25521 if (PyErr_Occurred()) SWIG_fail;
25522 }
25523 Py_INCREF(Py_None); resultobj = Py_None;
25524 {
25525 if (temp2)
25526 delete arg2;
25527 }
25528 return resultobj;
25529 fail:
25530 {
25531 if (temp2)
25532 delete arg2;
25533 }
25534 return NULL;
25535 }
25536
25537
25538 static PyObject * FileDataObject_swigregister(PyObject *self, PyObject *args) {
25539 PyObject *obj;
25540 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25541 SWIG_TypeClientData(SWIGTYPE_p_wxFileDataObject, obj);
25542 Py_INCREF(obj);
25543 return Py_BuildValue((char *)"");
25544 }
25545 static PyObject *_wrap_new_CustomDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
25546 PyObject *resultobj;
25547 wxDataFormat const &arg1_defvalue = wxFormatInvalid ;
25548 wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ;
25549 wxCustomDataObject *result;
25550 PyObject * obj0 = 0 ;
25551 char *kwnames[] = {
25552 (char *) "format", NULL
25553 };
25554
25555 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_CustomDataObject",kwnames,&obj0)) goto fail;
25556 if (obj0) {
25557 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
25558 SWIG_POINTER_EXCEPTION | 0)) == -1)
25559 SWIG_fail;
25560 if (arg1 == NULL) {
25561 PyErr_SetString(PyExc_TypeError,"null reference");
25562 SWIG_fail;
25563 }
25564 }
25565 {
25566 PyThreadState* __tstate = wxPyBeginAllowThreads();
25567 result = (wxCustomDataObject *)new wxCustomDataObject((wxDataFormat const &)*arg1);
25568
25569 wxPyEndAllowThreads(__tstate);
25570 if (PyErr_Occurred()) SWIG_fail;
25571 }
25572 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCustomDataObject, 1);
25573 return resultobj;
25574 fail:
25575 return NULL;
25576 }
25577
25578
25579 static PyObject *_wrap_CustomDataObject_SetData(PyObject *self, PyObject *args, PyObject *kwargs) {
25580 PyObject *resultobj;
25581 wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ;
25582 PyObject *arg2 = (PyObject *) 0 ;
25583 bool result;
25584 PyObject * obj0 = 0 ;
25585 PyObject * obj1 = 0 ;
25586 char *kwnames[] = {
25587 (char *) "self",(char *) "data", NULL
25588 };
25589
25590 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CustomDataObject_SetData",kwnames,&obj0,&obj1)) goto fail;
25591 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCustomDataObject,
25592 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25593 arg2 = obj1;
25594 {
25595 PyThreadState* __tstate = wxPyBeginAllowThreads();
25596 result = (bool)wxCustomDataObject_SetData(arg1,arg2);
25597
25598 wxPyEndAllowThreads(__tstate);
25599 if (PyErr_Occurred()) SWIG_fail;
25600 }
25601 {
25602 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25603 }
25604 return resultobj;
25605 fail:
25606 return NULL;
25607 }
25608
25609
25610 static PyObject *_wrap_CustomDataObject_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
25611 PyObject *resultobj;
25612 wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ;
25613 size_t result;
25614 PyObject * obj0 = 0 ;
25615 char *kwnames[] = {
25616 (char *) "self", NULL
25617 };
25618
25619 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CustomDataObject_GetSize",kwnames,&obj0)) goto fail;
25620 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCustomDataObject,
25621 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25622 {
25623 PyThreadState* __tstate = wxPyBeginAllowThreads();
25624 result = (size_t)(arg1)->GetSize();
25625
25626 wxPyEndAllowThreads(__tstate);
25627 if (PyErr_Occurred()) SWIG_fail;
25628 }
25629 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
25630 return resultobj;
25631 fail:
25632 return NULL;
25633 }
25634
25635
25636 static PyObject *_wrap_CustomDataObject_GetData(PyObject *self, PyObject *args, PyObject *kwargs) {
25637 PyObject *resultobj;
25638 wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ;
25639 PyObject *result;
25640 PyObject * obj0 = 0 ;
25641 char *kwnames[] = {
25642 (char *) "self", NULL
25643 };
25644
25645 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CustomDataObject_GetData",kwnames,&obj0)) goto fail;
25646 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCustomDataObject,
25647 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25648 {
25649 PyThreadState* __tstate = wxPyBeginAllowThreads();
25650 result = (PyObject *)wxCustomDataObject_GetData(arg1);
25651
25652 wxPyEndAllowThreads(__tstate);
25653 if (PyErr_Occurred()) SWIG_fail;
25654 }
25655 resultobj = result;
25656 return resultobj;
25657 fail:
25658 return NULL;
25659 }
25660
25661
25662 static PyObject * CustomDataObject_swigregister(PyObject *self, PyObject *args) {
25663 PyObject *obj;
25664 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25665 SWIG_TypeClientData(SWIGTYPE_p_wxCustomDataObject, obj);
25666 Py_INCREF(obj);
25667 return Py_BuildValue((char *)"");
25668 }
25669 static PyObject *_wrap_new_URLDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
25670 PyObject *resultobj;
25671 wxURLDataObject *result;
25672 char *kwnames[] = {
25673 NULL
25674 };
25675
25676 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_URLDataObject",kwnames)) goto fail;
25677 {
25678 PyThreadState* __tstate = wxPyBeginAllowThreads();
25679 result = (wxURLDataObject *)new wxURLDataObject();
25680
25681 wxPyEndAllowThreads(__tstate);
25682 if (PyErr_Occurred()) SWIG_fail;
25683 }
25684 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxURLDataObject, 1);
25685 return resultobj;
25686 fail:
25687 return NULL;
25688 }
25689
25690
25691 static PyObject *_wrap_URLDataObject_GetURL(PyObject *self, PyObject *args, PyObject *kwargs) {
25692 PyObject *resultobj;
25693 wxURLDataObject *arg1 = (wxURLDataObject *) 0 ;
25694 wxString result;
25695 PyObject * obj0 = 0 ;
25696 char *kwnames[] = {
25697 (char *) "self", NULL
25698 };
25699
25700 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:URLDataObject_GetURL",kwnames,&obj0)) goto fail;
25701 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxURLDataObject,
25702 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25703 {
25704 PyThreadState* __tstate = wxPyBeginAllowThreads();
25705 result = (arg1)->GetURL();
25706
25707 wxPyEndAllowThreads(__tstate);
25708 if (PyErr_Occurred()) SWIG_fail;
25709 }
25710 {
25711 #if wxUSE_UNICODE
25712 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
25713 #else
25714 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
25715 #endif
25716 }
25717 return resultobj;
25718 fail:
25719 return NULL;
25720 }
25721
25722
25723 static PyObject *_wrap_URLDataObject_SetURL(PyObject *self, PyObject *args, PyObject *kwargs) {
25724 PyObject *resultobj;
25725 wxURLDataObject *arg1 = (wxURLDataObject *) 0 ;
25726 wxString *arg2 = 0 ;
25727 bool temp2 = False ;
25728 PyObject * obj0 = 0 ;
25729 PyObject * obj1 = 0 ;
25730 char *kwnames[] = {
25731 (char *) "self",(char *) "url", NULL
25732 };
25733
25734 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:URLDataObject_SetURL",kwnames,&obj0,&obj1)) goto fail;
25735 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxURLDataObject,
25736 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25737 {
25738 arg2 = wxString_in_helper(obj1);
25739 if (arg2 == NULL) SWIG_fail;
25740 temp2 = True;
25741 }
25742 {
25743 PyThreadState* __tstate = wxPyBeginAllowThreads();
25744 (arg1)->SetURL((wxString const &)*arg2);
25745
25746 wxPyEndAllowThreads(__tstate);
25747 if (PyErr_Occurred()) SWIG_fail;
25748 }
25749 Py_INCREF(Py_None); resultobj = Py_None;
25750 {
25751 if (temp2)
25752 delete arg2;
25753 }
25754 return resultobj;
25755 fail:
25756 {
25757 if (temp2)
25758 delete arg2;
25759 }
25760 return NULL;
25761 }
25762
25763
25764 static PyObject * URLDataObject_swigregister(PyObject *self, PyObject *args) {
25765 PyObject *obj;
25766 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25767 SWIG_TypeClientData(SWIGTYPE_p_wxURLDataObject, obj);
25768 Py_INCREF(obj);
25769 return Py_BuildValue((char *)"");
25770 }
25771 static PyObject *_wrap_new_MetafileDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
25772 PyObject *resultobj;
25773 wxMetafileDataObject *result;
25774 char *kwnames[] = {
25775 NULL
25776 };
25777
25778 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MetafileDataObject",kwnames)) goto fail;
25779 {
25780 PyThreadState* __tstate = wxPyBeginAllowThreads();
25781 result = (wxMetafileDataObject *)new wxMetafileDataObject();
25782
25783 wxPyEndAllowThreads(__tstate);
25784 if (PyErr_Occurred()) SWIG_fail;
25785 }
25786 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetafileDataObject, 1);
25787 return resultobj;
25788 fail:
25789 return NULL;
25790 }
25791
25792
25793 static PyObject *_wrap_MetafileDataObject_SetMetafile(PyObject *self, PyObject *args, PyObject *kwargs) {
25794 PyObject *resultobj;
25795 wxMetafileDataObject *arg1 = (wxMetafileDataObject *) 0 ;
25796 wxMetafile *arg2 = 0 ;
25797 PyObject * obj0 = 0 ;
25798 PyObject * obj1 = 0 ;
25799 char *kwnames[] = {
25800 (char *) "self",(char *) "metafile", NULL
25801 };
25802
25803 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MetafileDataObject_SetMetafile",kwnames,&obj0,&obj1)) goto fail;
25804 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetafileDataObject,
25805 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25806 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMetafile,
25807 SWIG_POINTER_EXCEPTION | 0)) == -1)
25808 SWIG_fail;
25809 if (arg2 == NULL) {
25810 PyErr_SetString(PyExc_TypeError,"null reference");
25811 SWIG_fail;
25812 }
25813 {
25814 PyThreadState* __tstate = wxPyBeginAllowThreads();
25815 (arg1)->SetMetafile((wxMetafile const &)*arg2);
25816
25817 wxPyEndAllowThreads(__tstate);
25818 if (PyErr_Occurred()) SWIG_fail;
25819 }
25820 Py_INCREF(Py_None); resultobj = Py_None;
25821 return resultobj;
25822 fail:
25823 return NULL;
25824 }
25825
25826
25827 static PyObject *_wrap_MetafileDataObject_GetMetafile(PyObject *self, PyObject *args, PyObject *kwargs) {
25828 PyObject *resultobj;
25829 wxMetafileDataObject *arg1 = (wxMetafileDataObject *) 0 ;
25830 wxMetafile result;
25831 PyObject * obj0 = 0 ;
25832 char *kwnames[] = {
25833 (char *) "self", NULL
25834 };
25835
25836 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetafileDataObject_GetMetafile",kwnames,&obj0)) goto fail;
25837 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetafileDataObject,
25838 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25839 {
25840 PyThreadState* __tstate = wxPyBeginAllowThreads();
25841 result = ((wxMetafileDataObject const *)arg1)->GetMetafile();
25842
25843 wxPyEndAllowThreads(__tstate);
25844 if (PyErr_Occurred()) SWIG_fail;
25845 }
25846 {
25847 wxMetafile * resultptr;
25848 resultptr = new wxMetafile((wxMetafile &) result);
25849 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxMetafile, 1);
25850 }
25851 return resultobj;
25852 fail:
25853 return NULL;
25854 }
25855
25856
25857 static PyObject * MetafileDataObject_swigregister(PyObject *self, PyObject *args) {
25858 PyObject *obj;
25859 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25860 SWIG_TypeClientData(SWIGTYPE_p_wxMetafileDataObject, obj);
25861 Py_INCREF(obj);
25862 return Py_BuildValue((char *)"");
25863 }
25864 static PyObject *_wrap_IsDragResultOk(PyObject *self, PyObject *args, PyObject *kwargs) {
25865 PyObject *resultobj;
25866 int arg1 ;
25867 bool result;
25868 PyObject * obj0 = 0 ;
25869 char *kwnames[] = {
25870 (char *) "res", NULL
25871 };
25872
25873 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IsDragResultOk",kwnames,&obj0)) goto fail;
25874 arg1 = (wxDragResult) SWIG_AsInt(obj0);
25875 if (PyErr_Occurred()) SWIG_fail;
25876 {
25877 PyThreadState* __tstate = wxPyBeginAllowThreads();
25878 result = (bool)wxIsDragResultOk((wxDragResult )arg1);
25879
25880 wxPyEndAllowThreads(__tstate);
25881 if (PyErr_Occurred()) SWIG_fail;
25882 }
25883 {
25884 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25885 }
25886 return resultobj;
25887 fail:
25888 return NULL;
25889 }
25890
25891
25892 static PyObject *_wrap_new_DropSource(PyObject *self, PyObject *args, PyObject *kwargs) {
25893 PyObject *resultobj;
25894 wxWindow *arg1 = (wxWindow *) 0 ;
25895 wxCursor const &arg2_defvalue = wxNullCursor ;
25896 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
25897 wxCursor const &arg3_defvalue = wxNullCursor ;
25898 wxCursor *arg3 = (wxCursor *) &arg3_defvalue ;
25899 wxCursor const &arg4_defvalue = wxNullCursor ;
25900 wxCursor *arg4 = (wxCursor *) &arg4_defvalue ;
25901 wxPyDropSource *result;
25902 PyObject * obj0 = 0 ;
25903 PyObject * obj1 = 0 ;
25904 PyObject * obj2 = 0 ;
25905 PyObject * obj3 = 0 ;
25906 char *kwnames[] = {
25907 (char *) "win",(char *) "copy",(char *) "move",(char *) "none", NULL
25908 };
25909
25910 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:new_DropSource",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
25911 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25912 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25913 if (obj1) {
25914 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor,
25915 SWIG_POINTER_EXCEPTION | 0)) == -1)
25916 SWIG_fail;
25917 if (arg2 == NULL) {
25918 PyErr_SetString(PyExc_TypeError,"null reference");
25919 SWIG_fail;
25920 }
25921 }
25922 if (obj2) {
25923 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxCursor,
25924 SWIG_POINTER_EXCEPTION | 0)) == -1)
25925 SWIG_fail;
25926 if (arg3 == NULL) {
25927 PyErr_SetString(PyExc_TypeError,"null reference");
25928 SWIG_fail;
25929 }
25930 }
25931 if (obj3) {
25932 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxCursor,
25933 SWIG_POINTER_EXCEPTION | 0)) == -1)
25934 SWIG_fail;
25935 if (arg4 == NULL) {
25936 PyErr_SetString(PyExc_TypeError,"null reference");
25937 SWIG_fail;
25938 }
25939 }
25940 {
25941 PyThreadState* __tstate = wxPyBeginAllowThreads();
25942 result = (wxPyDropSource *)new wxPyDropSource(arg1,(wxCursor const &)*arg2,(wxCursor const &)*arg3,(wxCursor const &)*arg4);
25943
25944 wxPyEndAllowThreads(__tstate);
25945 if (PyErr_Occurred()) SWIG_fail;
25946 }
25947 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDropSource, 1);
25948 return resultobj;
25949 fail:
25950 return NULL;
25951 }
25952
25953
25954 static PyObject *_wrap_DropSource__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
25955 PyObject *resultobj;
25956 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
25957 PyObject *arg2 = (PyObject *) 0 ;
25958 PyObject *arg3 = (PyObject *) 0 ;
25959 int arg4 ;
25960 PyObject * obj0 = 0 ;
25961 PyObject * obj1 = 0 ;
25962 PyObject * obj2 = 0 ;
25963 PyObject * obj3 = 0 ;
25964 char *kwnames[] = {
25965 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
25966 };
25967
25968 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropSource__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
25969 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
25970 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25971 arg2 = obj1;
25972 arg3 = obj2;
25973 arg4 = (int) SWIG_AsInt(obj3);
25974 if (PyErr_Occurred()) SWIG_fail;
25975 {
25976 PyThreadState* __tstate = wxPyBeginAllowThreads();
25977 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
25978
25979 wxPyEndAllowThreads(__tstate);
25980 if (PyErr_Occurred()) SWIG_fail;
25981 }
25982 Py_INCREF(Py_None); resultobj = Py_None;
25983 return resultobj;
25984 fail:
25985 return NULL;
25986 }
25987
25988
25989 static PyObject *_wrap_delete_DropSource(PyObject *self, PyObject *args, PyObject *kwargs) {
25990 PyObject *resultobj;
25991 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
25992 PyObject * obj0 = 0 ;
25993 char *kwnames[] = {
25994 (char *) "self", NULL
25995 };
25996
25997 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DropSource",kwnames,&obj0)) goto fail;
25998 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
25999 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26000 {
26001 PyThreadState* __tstate = wxPyBeginAllowThreads();
26002 delete arg1;
26003
26004 wxPyEndAllowThreads(__tstate);
26005 if (PyErr_Occurred()) SWIG_fail;
26006 }
26007 Py_INCREF(Py_None); resultobj = Py_None;
26008 return resultobj;
26009 fail:
26010 return NULL;
26011 }
26012
26013
26014 static PyObject *_wrap_DropSource_SetData(PyObject *self, PyObject *args, PyObject *kwargs) {
26015 PyObject *resultobj;
26016 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
26017 wxDataObject *arg2 = 0 ;
26018 PyObject * obj0 = 0 ;
26019 PyObject * obj1 = 0 ;
26020 char *kwnames[] = {
26021 (char *) "self",(char *) "data", NULL
26022 };
26023
26024 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropSource_SetData",kwnames,&obj0,&obj1)) goto fail;
26025 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
26026 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26027 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject,
26028 SWIG_POINTER_EXCEPTION | 0)) == -1)
26029 SWIG_fail;
26030 if (arg2 == NULL) {
26031 PyErr_SetString(PyExc_TypeError,"null reference");
26032 SWIG_fail;
26033 }
26034 {
26035 PyThreadState* __tstate = wxPyBeginAllowThreads();
26036 (arg1)->SetData(*arg2);
26037
26038 wxPyEndAllowThreads(__tstate);
26039 if (PyErr_Occurred()) SWIG_fail;
26040 }
26041 Py_INCREF(Py_None); resultobj = Py_None;
26042 return resultobj;
26043 fail:
26044 return NULL;
26045 }
26046
26047
26048 static PyObject *_wrap_DropSource_GetDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
26049 PyObject *resultobj;
26050 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
26051 wxDataObject *result;
26052 PyObject * obj0 = 0 ;
26053 char *kwnames[] = {
26054 (char *) "self", NULL
26055 };
26056
26057 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropSource_GetDataObject",kwnames,&obj0)) goto fail;
26058 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
26059 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26060 {
26061 PyThreadState* __tstate = wxPyBeginAllowThreads();
26062 result = (wxDataObject *)(arg1)->GetDataObject();
26063
26064 wxPyEndAllowThreads(__tstate);
26065 if (PyErr_Occurred()) SWIG_fail;
26066 }
26067 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObject, 0);
26068 return resultobj;
26069 fail:
26070 return NULL;
26071 }
26072
26073
26074 static PyObject *_wrap_DropSource_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
26075 PyObject *resultobj;
26076 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
26077 int arg2 ;
26078 wxCursor *arg3 = 0 ;
26079 PyObject * obj0 = 0 ;
26080 PyObject * obj1 = 0 ;
26081 PyObject * obj2 = 0 ;
26082 char *kwnames[] = {
26083 (char *) "self",(char *) "res",(char *) "cursor", NULL
26084 };
26085
26086 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropSource_SetCursor",kwnames,&obj0,&obj1,&obj2)) goto fail;
26087 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
26088 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26089 arg2 = (wxDragResult) SWIG_AsInt(obj1);
26090 if (PyErr_Occurred()) SWIG_fail;
26091 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxCursor,
26092 SWIG_POINTER_EXCEPTION | 0)) == -1)
26093 SWIG_fail;
26094 if (arg3 == NULL) {
26095 PyErr_SetString(PyExc_TypeError,"null reference");
26096 SWIG_fail;
26097 }
26098 {
26099 PyThreadState* __tstate = wxPyBeginAllowThreads();
26100 (arg1)->SetCursor((wxDragResult )arg2,(wxCursor const &)*arg3);
26101
26102 wxPyEndAllowThreads(__tstate);
26103 if (PyErr_Occurred()) SWIG_fail;
26104 }
26105 Py_INCREF(Py_None); resultobj = Py_None;
26106 return resultobj;
26107 fail:
26108 return NULL;
26109 }
26110
26111
26112 static PyObject *_wrap_DropSource_DoDragDrop(PyObject *self, PyObject *args, PyObject *kwargs) {
26113 PyObject *resultobj;
26114 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
26115 int arg2 = (int) wxDrag_CopyOnly ;
26116 int result;
26117 PyObject * obj0 = 0 ;
26118 PyObject * obj1 = 0 ;
26119 char *kwnames[] = {
26120 (char *) "self",(char *) "flags", NULL
26121 };
26122
26123 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DropSource_DoDragDrop",kwnames,&obj0,&obj1)) goto fail;
26124 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
26125 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26126 if (obj1) {
26127 arg2 = (int) SWIG_AsInt(obj1);
26128 if (PyErr_Occurred()) SWIG_fail;
26129 }
26130 {
26131 PyThreadState* __tstate = wxPyBeginAllowThreads();
26132 result = (int)(arg1)->DoDragDrop(arg2);
26133
26134 wxPyEndAllowThreads(__tstate);
26135 if (PyErr_Occurred()) SWIG_fail;
26136 }
26137 resultobj = SWIG_FromInt((int)result);
26138 return resultobj;
26139 fail:
26140 return NULL;
26141 }
26142
26143
26144 static PyObject *_wrap_DropSource_base_GiveFeedback(PyObject *self, PyObject *args, PyObject *kwargs) {
26145 PyObject *resultobj;
26146 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
26147 int arg2 ;
26148 bool result;
26149 PyObject * obj0 = 0 ;
26150 PyObject * obj1 = 0 ;
26151 char *kwnames[] = {
26152 (char *) "self",(char *) "effect", NULL
26153 };
26154
26155 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropSource_base_GiveFeedback",kwnames,&obj0,&obj1)) goto fail;
26156 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
26157 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26158 arg2 = (wxDragResult) SWIG_AsInt(obj1);
26159 if (PyErr_Occurred()) SWIG_fail;
26160 {
26161 PyThreadState* __tstate = wxPyBeginAllowThreads();
26162 result = (bool)(arg1)->base_GiveFeedback((wxDragResult )arg2);
26163
26164 wxPyEndAllowThreads(__tstate);
26165 if (PyErr_Occurred()) SWIG_fail;
26166 }
26167 {
26168 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26169 }
26170 return resultobj;
26171 fail:
26172 return NULL;
26173 }
26174
26175
26176 static PyObject * DropSource_swigregister(PyObject *self, PyObject *args) {
26177 PyObject *obj;
26178 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
26179 SWIG_TypeClientData(SWIGTYPE_p_wxPyDropSource, obj);
26180 Py_INCREF(obj);
26181 return Py_BuildValue((char *)"");
26182 }
26183 static PyObject *_wrap_new_DropTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
26184 PyObject *resultobj;
26185 wxDataObject *arg1 = (wxDataObject *) NULL ;
26186 wxPyDropTarget *result;
26187 PyObject * obj0 = 0 ;
26188 char *kwnames[] = {
26189 (char *) "dataObject", NULL
26190 };
26191
26192 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_DropTarget",kwnames,&obj0)) goto fail;
26193 if (obj0) {
26194 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
26195 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
26196 }
26197 {
26198 PyThreadState* __tstate = wxPyBeginAllowThreads();
26199 result = (wxPyDropTarget *)new wxPyDropTarget(arg1);
26200
26201 wxPyEndAllowThreads(__tstate);
26202 if (PyErr_Occurred()) SWIG_fail;
26203 }
26204 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDropTarget, 1);
26205 return resultobj;
26206 fail:
26207 return NULL;
26208 }
26209
26210
26211 static PyObject *_wrap_DropTarget__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
26212 PyObject *resultobj;
26213 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26214 PyObject *arg2 = (PyObject *) 0 ;
26215 PyObject *arg3 = (PyObject *) 0 ;
26216 PyObject * obj0 = 0 ;
26217 PyObject * obj1 = 0 ;
26218 PyObject * obj2 = 0 ;
26219 char *kwnames[] = {
26220 (char *) "self",(char *) "self",(char *) "_class", NULL
26221 };
26222
26223 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
26224 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26225 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26226 arg2 = obj1;
26227 arg3 = obj2;
26228 {
26229 PyThreadState* __tstate = wxPyBeginAllowThreads();
26230 (arg1)->_setCallbackInfo(arg2,arg3);
26231
26232 wxPyEndAllowThreads(__tstate);
26233 if (PyErr_Occurred()) SWIG_fail;
26234 }
26235 Py_INCREF(Py_None); resultobj = Py_None;
26236 return resultobj;
26237 fail:
26238 return NULL;
26239 }
26240
26241
26242 static PyObject *_wrap_delete_DropTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
26243 PyObject *resultobj;
26244 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26245 PyObject * obj0 = 0 ;
26246 char *kwnames[] = {
26247 (char *) "self", NULL
26248 };
26249
26250 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DropTarget",kwnames,&obj0)) goto fail;
26251 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26252 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26253 {
26254 PyThreadState* __tstate = wxPyBeginAllowThreads();
26255 delete arg1;
26256
26257 wxPyEndAllowThreads(__tstate);
26258 if (PyErr_Occurred()) SWIG_fail;
26259 }
26260 Py_INCREF(Py_None); resultobj = Py_None;
26261 return resultobj;
26262 fail:
26263 return NULL;
26264 }
26265
26266
26267 static PyObject *_wrap_DropTarget_GetDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
26268 PyObject *resultobj;
26269 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26270 wxDataObject *result;
26271 PyObject * obj0 = 0 ;
26272 char *kwnames[] = {
26273 (char *) "self", NULL
26274 };
26275
26276 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_GetDataObject",kwnames,&obj0)) goto fail;
26277 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26278 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26279 {
26280 PyThreadState* __tstate = wxPyBeginAllowThreads();
26281 result = (wxDataObject *)(arg1)->GetDataObject();
26282
26283 wxPyEndAllowThreads(__tstate);
26284 if (PyErr_Occurred()) SWIG_fail;
26285 }
26286 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObject, 0);
26287 return resultobj;
26288 fail:
26289 return NULL;
26290 }
26291
26292
26293 static PyObject *_wrap_DropTarget_SetDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
26294 PyObject *resultobj;
26295 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26296 wxDataObject *arg2 = (wxDataObject *) 0 ;
26297 PyObject * obj0 = 0 ;
26298 PyObject * obj1 = 0 ;
26299 char *kwnames[] = {
26300 (char *) "self",(char *) "dataObject", NULL
26301 };
26302
26303 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropTarget_SetDataObject",kwnames,&obj0,&obj1)) goto fail;
26304 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26305 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26306 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject,
26307 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
26308 {
26309 PyThreadState* __tstate = wxPyBeginAllowThreads();
26310 (arg1)->SetDataObject(arg2);
26311
26312 wxPyEndAllowThreads(__tstate);
26313 if (PyErr_Occurred()) SWIG_fail;
26314 }
26315 Py_INCREF(Py_None); resultobj = Py_None;
26316 return resultobj;
26317 fail:
26318 return NULL;
26319 }
26320
26321
26322 static PyObject *_wrap_DropTarget_base_OnEnter(PyObject *self, PyObject *args, PyObject *kwargs) {
26323 PyObject *resultobj;
26324 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26325 int arg2 ;
26326 int arg3 ;
26327 int arg4 ;
26328 int result;
26329 PyObject * obj0 = 0 ;
26330 PyObject * obj1 = 0 ;
26331 PyObject * obj2 = 0 ;
26332 PyObject * obj3 = 0 ;
26333 char *kwnames[] = {
26334 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26335 };
26336
26337 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropTarget_base_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26338 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26339 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26340 arg2 = (int) SWIG_AsInt(obj1);
26341 if (PyErr_Occurred()) SWIG_fail;
26342 arg3 = (int) SWIG_AsInt(obj2);
26343 if (PyErr_Occurred()) SWIG_fail;
26344 arg4 = (wxDragResult) SWIG_AsInt(obj3);
26345 if (PyErr_Occurred()) SWIG_fail;
26346 {
26347 PyThreadState* __tstate = wxPyBeginAllowThreads();
26348 result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4);
26349
26350 wxPyEndAllowThreads(__tstate);
26351 if (PyErr_Occurred()) SWIG_fail;
26352 }
26353 resultobj = SWIG_FromInt((int)result);
26354 return resultobj;
26355 fail:
26356 return NULL;
26357 }
26358
26359
26360 static PyObject *_wrap_DropTarget_base_OnDragOver(PyObject *self, PyObject *args, PyObject *kwargs) {
26361 PyObject *resultobj;
26362 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26363 int arg2 ;
26364 int arg3 ;
26365 int arg4 ;
26366 int result;
26367 PyObject * obj0 = 0 ;
26368 PyObject * obj1 = 0 ;
26369 PyObject * obj2 = 0 ;
26370 PyObject * obj3 = 0 ;
26371 char *kwnames[] = {
26372 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26373 };
26374
26375 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropTarget_base_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26376 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26377 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26378 arg2 = (int) SWIG_AsInt(obj1);
26379 if (PyErr_Occurred()) SWIG_fail;
26380 arg3 = (int) SWIG_AsInt(obj2);
26381 if (PyErr_Occurred()) SWIG_fail;
26382 arg4 = (wxDragResult) SWIG_AsInt(obj3);
26383 if (PyErr_Occurred()) SWIG_fail;
26384 {
26385 PyThreadState* __tstate = wxPyBeginAllowThreads();
26386 result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4);
26387
26388 wxPyEndAllowThreads(__tstate);
26389 if (PyErr_Occurred()) SWIG_fail;
26390 }
26391 resultobj = SWIG_FromInt((int)result);
26392 return resultobj;
26393 fail:
26394 return NULL;
26395 }
26396
26397
26398 static PyObject *_wrap_DropTarget_base_OnLeave(PyObject *self, PyObject *args, PyObject *kwargs) {
26399 PyObject *resultobj;
26400 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26401 PyObject * obj0 = 0 ;
26402 char *kwnames[] = {
26403 (char *) "self", NULL
26404 };
26405
26406 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_base_OnLeave",kwnames,&obj0)) goto fail;
26407 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26408 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26409 {
26410 PyThreadState* __tstate = wxPyBeginAllowThreads();
26411 (arg1)->base_OnLeave();
26412
26413 wxPyEndAllowThreads(__tstate);
26414 if (PyErr_Occurred()) SWIG_fail;
26415 }
26416 Py_INCREF(Py_None); resultobj = Py_None;
26417 return resultobj;
26418 fail:
26419 return NULL;
26420 }
26421
26422
26423 static PyObject *_wrap_DropTarget_base_OnDrop(PyObject *self, PyObject *args, PyObject *kwargs) {
26424 PyObject *resultobj;
26425 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26426 int arg2 ;
26427 int arg3 ;
26428 bool result;
26429 PyObject * obj0 = 0 ;
26430 PyObject * obj1 = 0 ;
26431 PyObject * obj2 = 0 ;
26432 char *kwnames[] = {
26433 (char *) "self",(char *) "x",(char *) "y", NULL
26434 };
26435
26436 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropTarget_base_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail;
26437 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26438 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26439 arg2 = (int) SWIG_AsInt(obj1);
26440 if (PyErr_Occurred()) SWIG_fail;
26441 arg3 = (int) SWIG_AsInt(obj2);
26442 if (PyErr_Occurred()) SWIG_fail;
26443 {
26444 PyThreadState* __tstate = wxPyBeginAllowThreads();
26445 result = (bool)(arg1)->base_OnDrop(arg2,arg3);
26446
26447 wxPyEndAllowThreads(__tstate);
26448 if (PyErr_Occurred()) SWIG_fail;
26449 }
26450 {
26451 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26452 }
26453 return resultobj;
26454 fail:
26455 return NULL;
26456 }
26457
26458
26459 static PyObject *_wrap_DropTarget_GetData(PyObject *self, PyObject *args, PyObject *kwargs) {
26460 PyObject *resultobj;
26461 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26462 bool result;
26463 PyObject * obj0 = 0 ;
26464 char *kwnames[] = {
26465 (char *) "self", NULL
26466 };
26467
26468 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_GetData",kwnames,&obj0)) goto fail;
26469 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26470 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26471 {
26472 PyThreadState* __tstate = wxPyBeginAllowThreads();
26473 result = (bool)(arg1)->GetData();
26474
26475 wxPyEndAllowThreads(__tstate);
26476 if (PyErr_Occurred()) SWIG_fail;
26477 }
26478 {
26479 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26480 }
26481 return resultobj;
26482 fail:
26483 return NULL;
26484 }
26485
26486
26487 static PyObject * DropTarget_swigregister(PyObject *self, PyObject *args) {
26488 PyObject *obj;
26489 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
26490 SWIG_TypeClientData(SWIGTYPE_p_wxPyDropTarget, obj);
26491 Py_INCREF(obj);
26492 return Py_BuildValue((char *)"");
26493 }
26494 static PyObject *_wrap_new_TextDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
26495 PyObject *resultobj;
26496 wxPyTextDropTarget *result;
26497 char *kwnames[] = {
26498 NULL
26499 };
26500
26501 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TextDropTarget",kwnames)) goto fail;
26502 {
26503 PyThreadState* __tstate = wxPyBeginAllowThreads();
26504 result = (wxPyTextDropTarget *)new wxPyTextDropTarget();
26505
26506 wxPyEndAllowThreads(__tstate);
26507 if (PyErr_Occurred()) SWIG_fail;
26508 }
26509 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTextDropTarget, 1);
26510 return resultobj;
26511 fail:
26512 return NULL;
26513 }
26514
26515
26516 static PyObject *_wrap_TextDropTarget__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
26517 PyObject *resultobj;
26518 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
26519 PyObject *arg2 = (PyObject *) 0 ;
26520 PyObject *arg3 = (PyObject *) 0 ;
26521 PyObject * obj0 = 0 ;
26522 PyObject * obj1 = 0 ;
26523 PyObject * obj2 = 0 ;
26524 char *kwnames[] = {
26525 (char *) "self",(char *) "self",(char *) "_class", NULL
26526 };
26527
26528 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextDropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
26529 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget,
26530 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26531 arg2 = obj1;
26532 arg3 = obj2;
26533 {
26534 PyThreadState* __tstate = wxPyBeginAllowThreads();
26535 (arg1)->_setCallbackInfo(arg2,arg3);
26536
26537 wxPyEndAllowThreads(__tstate);
26538 if (PyErr_Occurred()) SWIG_fail;
26539 }
26540 Py_INCREF(Py_None); resultobj = Py_None;
26541 return resultobj;
26542 fail:
26543 return NULL;
26544 }
26545
26546
26547 static PyObject *_wrap_TextDropTarget_base_OnEnter(PyObject *self, PyObject *args, PyObject *kwargs) {
26548 PyObject *resultobj;
26549 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
26550 int arg2 ;
26551 int arg3 ;
26552 int arg4 ;
26553 int result;
26554 PyObject * obj0 = 0 ;
26555 PyObject * obj1 = 0 ;
26556 PyObject * obj2 = 0 ;
26557 PyObject * obj3 = 0 ;
26558 char *kwnames[] = {
26559 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26560 };
26561
26562 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_base_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26563 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget,
26564 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26565 arg2 = (int) SWIG_AsInt(obj1);
26566 if (PyErr_Occurred()) SWIG_fail;
26567 arg3 = (int) SWIG_AsInt(obj2);
26568 if (PyErr_Occurred()) SWIG_fail;
26569 arg4 = (wxDragResult) SWIG_AsInt(obj3);
26570 if (PyErr_Occurred()) SWIG_fail;
26571 {
26572 PyThreadState* __tstate = wxPyBeginAllowThreads();
26573 result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4);
26574
26575 wxPyEndAllowThreads(__tstate);
26576 if (PyErr_Occurred()) SWIG_fail;
26577 }
26578 resultobj = SWIG_FromInt((int)result);
26579 return resultobj;
26580 fail:
26581 return NULL;
26582 }
26583
26584
26585 static PyObject *_wrap_TextDropTarget_base_OnDragOver(PyObject *self, PyObject *args, PyObject *kwargs) {
26586 PyObject *resultobj;
26587 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
26588 int arg2 ;
26589 int arg3 ;
26590 int arg4 ;
26591 int result;
26592 PyObject * obj0 = 0 ;
26593 PyObject * obj1 = 0 ;
26594 PyObject * obj2 = 0 ;
26595 PyObject * obj3 = 0 ;
26596 char *kwnames[] = {
26597 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26598 };
26599
26600 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_base_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26601 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget,
26602 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26603 arg2 = (int) SWIG_AsInt(obj1);
26604 if (PyErr_Occurred()) SWIG_fail;
26605 arg3 = (int) SWIG_AsInt(obj2);
26606 if (PyErr_Occurred()) SWIG_fail;
26607 arg4 = (wxDragResult) SWIG_AsInt(obj3);
26608 if (PyErr_Occurred()) SWIG_fail;
26609 {
26610 PyThreadState* __tstate = wxPyBeginAllowThreads();
26611 result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4);
26612
26613 wxPyEndAllowThreads(__tstate);
26614 if (PyErr_Occurred()) SWIG_fail;
26615 }
26616 resultobj = SWIG_FromInt((int)result);
26617 return resultobj;
26618 fail:
26619 return NULL;
26620 }
26621
26622
26623 static PyObject *_wrap_TextDropTarget_base_OnLeave(PyObject *self, PyObject *args, PyObject *kwargs) {
26624 PyObject *resultobj;
26625 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
26626 PyObject * obj0 = 0 ;
26627 char *kwnames[] = {
26628 (char *) "self", NULL
26629 };
26630
26631 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDropTarget_base_OnLeave",kwnames,&obj0)) goto fail;
26632 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget,
26633 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26634 {
26635 PyThreadState* __tstate = wxPyBeginAllowThreads();
26636 (arg1)->base_OnLeave();
26637
26638 wxPyEndAllowThreads(__tstate);
26639 if (PyErr_Occurred()) SWIG_fail;
26640 }
26641 Py_INCREF(Py_None); resultobj = Py_None;
26642 return resultobj;
26643 fail:
26644 return NULL;
26645 }
26646
26647
26648 static PyObject *_wrap_TextDropTarget_base_OnDrop(PyObject *self, PyObject *args, PyObject *kwargs) {
26649 PyObject *resultobj;
26650 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
26651 int arg2 ;
26652 int arg3 ;
26653 bool result;
26654 PyObject * obj0 = 0 ;
26655 PyObject * obj1 = 0 ;
26656 PyObject * obj2 = 0 ;
26657 char *kwnames[] = {
26658 (char *) "self",(char *) "x",(char *) "y", NULL
26659 };
26660
26661 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextDropTarget_base_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail;
26662 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget,
26663 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26664 arg2 = (int) SWIG_AsInt(obj1);
26665 if (PyErr_Occurred()) SWIG_fail;
26666 arg3 = (int) SWIG_AsInt(obj2);
26667 if (PyErr_Occurred()) SWIG_fail;
26668 {
26669 PyThreadState* __tstate = wxPyBeginAllowThreads();
26670 result = (bool)(arg1)->base_OnDrop(arg2,arg3);
26671
26672 wxPyEndAllowThreads(__tstate);
26673 if (PyErr_Occurred()) SWIG_fail;
26674 }
26675 {
26676 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26677 }
26678 return resultobj;
26679 fail:
26680 return NULL;
26681 }
26682
26683
26684 static PyObject *_wrap_TextDropTarget_base_OnData(PyObject *self, PyObject *args, PyObject *kwargs) {
26685 PyObject *resultobj;
26686 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
26687 int arg2 ;
26688 int arg3 ;
26689 int arg4 ;
26690 int result;
26691 PyObject * obj0 = 0 ;
26692 PyObject * obj1 = 0 ;
26693 PyObject * obj2 = 0 ;
26694 PyObject * obj3 = 0 ;
26695 char *kwnames[] = {
26696 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26697 };
26698
26699 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_base_OnData",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26700 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget,
26701 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26702 arg2 = (int) SWIG_AsInt(obj1);
26703 if (PyErr_Occurred()) SWIG_fail;
26704 arg3 = (int) SWIG_AsInt(obj2);
26705 if (PyErr_Occurred()) SWIG_fail;
26706 arg4 = (wxDragResult) SWIG_AsInt(obj3);
26707 if (PyErr_Occurred()) SWIG_fail;
26708 {
26709 PyThreadState* __tstate = wxPyBeginAllowThreads();
26710 result = (int)(arg1)->base_OnData(arg2,arg3,(wxDragResult )arg4);
26711
26712 wxPyEndAllowThreads(__tstate);
26713 if (PyErr_Occurred()) SWIG_fail;
26714 }
26715 resultobj = SWIG_FromInt((int)result);
26716 return resultobj;
26717 fail:
26718 return NULL;
26719 }
26720
26721
26722 static PyObject * TextDropTarget_swigregister(PyObject *self, PyObject *args) {
26723 PyObject *obj;
26724 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
26725 SWIG_TypeClientData(SWIGTYPE_p_wxPyTextDropTarget, obj);
26726 Py_INCREF(obj);
26727 return Py_BuildValue((char *)"");
26728 }
26729 static PyObject *_wrap_new_FileDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
26730 PyObject *resultobj;
26731 wxPyFileDropTarget *result;
26732 char *kwnames[] = {
26733 NULL
26734 };
26735
26736 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileDropTarget",kwnames)) goto fail;
26737 {
26738 PyThreadState* __tstate = wxPyBeginAllowThreads();
26739 result = (wxPyFileDropTarget *)new wxPyFileDropTarget();
26740
26741 wxPyEndAllowThreads(__tstate);
26742 if (PyErr_Occurred()) SWIG_fail;
26743 }
26744 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyFileDropTarget, 1);
26745 return resultobj;
26746 fail:
26747 return NULL;
26748 }
26749
26750
26751 static PyObject *_wrap_FileDropTarget__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
26752 PyObject *resultobj;
26753 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
26754 PyObject *arg2 = (PyObject *) 0 ;
26755 PyObject *arg3 = (PyObject *) 0 ;
26756 PyObject * obj0 = 0 ;
26757 PyObject * obj1 = 0 ;
26758 PyObject * obj2 = 0 ;
26759 char *kwnames[] = {
26760 (char *) "self",(char *) "self",(char *) "_class", NULL
26761 };
26762
26763 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileDropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
26764 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget,
26765 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26766 arg2 = obj1;
26767 arg3 = obj2;
26768 {
26769 PyThreadState* __tstate = wxPyBeginAllowThreads();
26770 (arg1)->_setCallbackInfo(arg2,arg3);
26771
26772 wxPyEndAllowThreads(__tstate);
26773 if (PyErr_Occurred()) SWIG_fail;
26774 }
26775 Py_INCREF(Py_None); resultobj = Py_None;
26776 return resultobj;
26777 fail:
26778 return NULL;
26779 }
26780
26781
26782 static PyObject *_wrap_FileDropTarget_base_OnEnter(PyObject *self, PyObject *args, PyObject *kwargs) {
26783 PyObject *resultobj;
26784 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
26785 int arg2 ;
26786 int arg3 ;
26787 int arg4 ;
26788 int result;
26789 PyObject * obj0 = 0 ;
26790 PyObject * obj1 = 0 ;
26791 PyObject * obj2 = 0 ;
26792 PyObject * obj3 = 0 ;
26793 char *kwnames[] = {
26794 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26795 };
26796
26797 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_base_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26798 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget,
26799 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26800 arg2 = (int) SWIG_AsInt(obj1);
26801 if (PyErr_Occurred()) SWIG_fail;
26802 arg3 = (int) SWIG_AsInt(obj2);
26803 if (PyErr_Occurred()) SWIG_fail;
26804 arg4 = (wxDragResult) SWIG_AsInt(obj3);
26805 if (PyErr_Occurred()) SWIG_fail;
26806 {
26807 PyThreadState* __tstate = wxPyBeginAllowThreads();
26808 result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4);
26809
26810 wxPyEndAllowThreads(__tstate);
26811 if (PyErr_Occurred()) SWIG_fail;
26812 }
26813 resultobj = SWIG_FromInt((int)result);
26814 return resultobj;
26815 fail:
26816 return NULL;
26817 }
26818
26819
26820 static PyObject *_wrap_FileDropTarget_base_OnDragOver(PyObject *self, PyObject *args, PyObject *kwargs) {
26821 PyObject *resultobj;
26822 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
26823 int arg2 ;
26824 int arg3 ;
26825 int arg4 ;
26826 int result;
26827 PyObject * obj0 = 0 ;
26828 PyObject * obj1 = 0 ;
26829 PyObject * obj2 = 0 ;
26830 PyObject * obj3 = 0 ;
26831 char *kwnames[] = {
26832 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26833 };
26834
26835 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_base_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26836 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget,
26837 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26838 arg2 = (int) SWIG_AsInt(obj1);
26839 if (PyErr_Occurred()) SWIG_fail;
26840 arg3 = (int) SWIG_AsInt(obj2);
26841 if (PyErr_Occurred()) SWIG_fail;
26842 arg4 = (wxDragResult) SWIG_AsInt(obj3);
26843 if (PyErr_Occurred()) SWIG_fail;
26844 {
26845 PyThreadState* __tstate = wxPyBeginAllowThreads();
26846 result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4);
26847
26848 wxPyEndAllowThreads(__tstate);
26849 if (PyErr_Occurred()) SWIG_fail;
26850 }
26851 resultobj = SWIG_FromInt((int)result);
26852 return resultobj;
26853 fail:
26854 return NULL;
26855 }
26856
26857
26858 static PyObject *_wrap_FileDropTarget_base_OnLeave(PyObject *self, PyObject *args, PyObject *kwargs) {
26859 PyObject *resultobj;
26860 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
26861 PyObject * obj0 = 0 ;
26862 char *kwnames[] = {
26863 (char *) "self", NULL
26864 };
26865
26866 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDropTarget_base_OnLeave",kwnames,&obj0)) goto fail;
26867 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget,
26868 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26869 {
26870 PyThreadState* __tstate = wxPyBeginAllowThreads();
26871 (arg1)->base_OnLeave();
26872
26873 wxPyEndAllowThreads(__tstate);
26874 if (PyErr_Occurred()) SWIG_fail;
26875 }
26876 Py_INCREF(Py_None); resultobj = Py_None;
26877 return resultobj;
26878 fail:
26879 return NULL;
26880 }
26881
26882
26883 static PyObject *_wrap_FileDropTarget_base_OnDrop(PyObject *self, PyObject *args, PyObject *kwargs) {
26884 PyObject *resultobj;
26885 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
26886 int arg2 ;
26887 int arg3 ;
26888 bool result;
26889 PyObject * obj0 = 0 ;
26890 PyObject * obj1 = 0 ;
26891 PyObject * obj2 = 0 ;
26892 char *kwnames[] = {
26893 (char *) "self",(char *) "x",(char *) "y", NULL
26894 };
26895
26896 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileDropTarget_base_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail;
26897 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget,
26898 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26899 arg2 = (int) SWIG_AsInt(obj1);
26900 if (PyErr_Occurred()) SWIG_fail;
26901 arg3 = (int) SWIG_AsInt(obj2);
26902 if (PyErr_Occurred()) SWIG_fail;
26903 {
26904 PyThreadState* __tstate = wxPyBeginAllowThreads();
26905 result = (bool)(arg1)->base_OnDrop(arg2,arg3);
26906
26907 wxPyEndAllowThreads(__tstate);
26908 if (PyErr_Occurred()) SWIG_fail;
26909 }
26910 {
26911 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26912 }
26913 return resultobj;
26914 fail:
26915 return NULL;
26916 }
26917
26918
26919 static PyObject *_wrap_FileDropTarget_base_OnData(PyObject *self, PyObject *args, PyObject *kwargs) {
26920 PyObject *resultobj;
26921 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
26922 int arg2 ;
26923 int arg3 ;
26924 int arg4 ;
26925 int result;
26926 PyObject * obj0 = 0 ;
26927 PyObject * obj1 = 0 ;
26928 PyObject * obj2 = 0 ;
26929 PyObject * obj3 = 0 ;
26930 char *kwnames[] = {
26931 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26932 };
26933
26934 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_base_OnData",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26935 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget,
26936 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26937 arg2 = (int) SWIG_AsInt(obj1);
26938 if (PyErr_Occurred()) SWIG_fail;
26939 arg3 = (int) SWIG_AsInt(obj2);
26940 if (PyErr_Occurred()) SWIG_fail;
26941 arg4 = (wxDragResult) SWIG_AsInt(obj3);
26942 if (PyErr_Occurred()) SWIG_fail;
26943 {
26944 PyThreadState* __tstate = wxPyBeginAllowThreads();
26945 result = (int)(arg1)->base_OnData(arg2,arg3,(wxDragResult )arg4);
26946
26947 wxPyEndAllowThreads(__tstate);
26948 if (PyErr_Occurred()) SWIG_fail;
26949 }
26950 resultobj = SWIG_FromInt((int)result);
26951 return resultobj;
26952 fail:
26953 return NULL;
26954 }
26955
26956
26957 static PyObject * FileDropTarget_swigregister(PyObject *self, PyObject *args) {
26958 PyObject *obj;
26959 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
26960 SWIG_TypeClientData(SWIGTYPE_p_wxPyFileDropTarget, obj);
26961 Py_INCREF(obj);
26962 return Py_BuildValue((char *)"");
26963 }
26964 static PyObject *_wrap_new_Clipboard(PyObject *self, PyObject *args, PyObject *kwargs) {
26965 PyObject *resultobj;
26966 wxClipboard *result;
26967 char *kwnames[] = {
26968 NULL
26969 };
26970
26971 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Clipboard",kwnames)) goto fail;
26972 {
26973 PyThreadState* __tstate = wxPyBeginAllowThreads();
26974 result = (wxClipboard *)new wxClipboard();
26975
26976 wxPyEndAllowThreads(__tstate);
26977 if (PyErr_Occurred()) SWIG_fail;
26978 }
26979 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClipboard, 1);
26980 return resultobj;
26981 fail:
26982 return NULL;
26983 }
26984
26985
26986 static PyObject *_wrap_delete_Clipboard(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:delete_Clipboard",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 delete arg1;
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_Open(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_Open",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)(arg1)->Open();
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_Close(PyObject *self, PyObject *args, PyObject *kwargs) {
27040 PyObject *resultobj;
27041 wxClipboard *arg1 = (wxClipboard *) 0 ;
27042 PyObject * obj0 = 0 ;
27043 char *kwnames[] = {
27044 (char *) "self", NULL
27045 };
27046
27047 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Close",kwnames,&obj0)) goto fail;
27048 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27049 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27050 {
27051 PyThreadState* __tstate = wxPyBeginAllowThreads();
27052 (arg1)->Close();
27053
27054 wxPyEndAllowThreads(__tstate);
27055 if (PyErr_Occurred()) SWIG_fail;
27056 }
27057 Py_INCREF(Py_None); resultobj = Py_None;
27058 return resultobj;
27059 fail:
27060 return NULL;
27061 }
27062
27063
27064 static PyObject *_wrap_Clipboard_IsOpened(PyObject *self, PyObject *args, PyObject *kwargs) {
27065 PyObject *resultobj;
27066 wxClipboard *arg1 = (wxClipboard *) 0 ;
27067 bool result;
27068 PyObject * obj0 = 0 ;
27069 char *kwnames[] = {
27070 (char *) "self", NULL
27071 };
27072
27073 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_IsOpened",kwnames,&obj0)) goto fail;
27074 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27075 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27076 {
27077 PyThreadState* __tstate = wxPyBeginAllowThreads();
27078 result = (bool)((wxClipboard const *)arg1)->IsOpened();
27079
27080 wxPyEndAllowThreads(__tstate);
27081 if (PyErr_Occurred()) SWIG_fail;
27082 }
27083 {
27084 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27085 }
27086 return resultobj;
27087 fail:
27088 return NULL;
27089 }
27090
27091
27092 static PyObject *_wrap_Clipboard_AddData(PyObject *self, PyObject *args, PyObject *kwargs) {
27093 PyObject *resultobj;
27094 wxClipboard *arg1 = (wxClipboard *) 0 ;
27095 wxDataObject *arg2 = (wxDataObject *) 0 ;
27096 bool result;
27097 PyObject * obj0 = 0 ;
27098 PyObject * obj1 = 0 ;
27099 char *kwnames[] = {
27100 (char *) "self",(char *) "data", NULL
27101 };
27102
27103 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_AddData",kwnames,&obj0,&obj1)) goto fail;
27104 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27105 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27106 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject,
27107 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
27108 {
27109 PyThreadState* __tstate = wxPyBeginAllowThreads();
27110 result = (bool)(arg1)->AddData(arg2);
27111
27112 wxPyEndAllowThreads(__tstate);
27113 if (PyErr_Occurred()) SWIG_fail;
27114 }
27115 {
27116 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27117 }
27118 return resultobj;
27119 fail:
27120 return NULL;
27121 }
27122
27123
27124 static PyObject *_wrap_Clipboard_SetData(PyObject *self, PyObject *args, PyObject *kwargs) {
27125 PyObject *resultobj;
27126 wxClipboard *arg1 = (wxClipboard *) 0 ;
27127 wxDataObject *arg2 = (wxDataObject *) 0 ;
27128 bool result;
27129 PyObject * obj0 = 0 ;
27130 PyObject * obj1 = 0 ;
27131 char *kwnames[] = {
27132 (char *) "self",(char *) "data", NULL
27133 };
27134
27135 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_SetData",kwnames,&obj0,&obj1)) goto fail;
27136 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27137 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27138 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject,
27139 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
27140 {
27141 PyThreadState* __tstate = wxPyBeginAllowThreads();
27142 result = (bool)(arg1)->SetData(arg2);
27143
27144 wxPyEndAllowThreads(__tstate);
27145 if (PyErr_Occurred()) SWIG_fail;
27146 }
27147 {
27148 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27149 }
27150 return resultobj;
27151 fail:
27152 return NULL;
27153 }
27154
27155
27156 static PyObject *_wrap_Clipboard_IsSupported(PyObject *self, PyObject *args, PyObject *kwargs) {
27157 PyObject *resultobj;
27158 wxClipboard *arg1 = (wxClipboard *) 0 ;
27159 wxDataFormat *arg2 = 0 ;
27160 bool result;
27161 PyObject * obj0 = 0 ;
27162 PyObject * obj1 = 0 ;
27163 char *kwnames[] = {
27164 (char *) "self",(char *) "format", NULL
27165 };
27166
27167 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_IsSupported",kwnames,&obj0,&obj1)) goto fail;
27168 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27169 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27170 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
27171 SWIG_POINTER_EXCEPTION | 0)) == -1)
27172 SWIG_fail;
27173 if (arg2 == NULL) {
27174 PyErr_SetString(PyExc_TypeError,"null reference");
27175 SWIG_fail;
27176 }
27177 {
27178 PyThreadState* __tstate = wxPyBeginAllowThreads();
27179 result = (bool)(arg1)->IsSupported((wxDataFormat const &)*arg2);
27180
27181 wxPyEndAllowThreads(__tstate);
27182 if (PyErr_Occurred()) SWIG_fail;
27183 }
27184 {
27185 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27186 }
27187 return resultobj;
27188 fail:
27189 return NULL;
27190 }
27191
27192
27193 static PyObject *_wrap_Clipboard_GetData(PyObject *self, PyObject *args, PyObject *kwargs) {
27194 PyObject *resultobj;
27195 wxClipboard *arg1 = (wxClipboard *) 0 ;
27196 wxDataObject *arg2 = 0 ;
27197 bool result;
27198 PyObject * obj0 = 0 ;
27199 PyObject * obj1 = 0 ;
27200 char *kwnames[] = {
27201 (char *) "self",(char *) "data", NULL
27202 };
27203
27204 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_GetData",kwnames,&obj0,&obj1)) goto fail;
27205 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27206 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27207 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject,
27208 SWIG_POINTER_EXCEPTION | 0)) == -1)
27209 SWIG_fail;
27210 if (arg2 == NULL) {
27211 PyErr_SetString(PyExc_TypeError,"null reference");
27212 SWIG_fail;
27213 }
27214 {
27215 PyThreadState* __tstate = wxPyBeginAllowThreads();
27216 result = (bool)(arg1)->GetData(*arg2);
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_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
27231 PyObject *resultobj;
27232 wxClipboard *arg1 = (wxClipboard *) 0 ;
27233 PyObject * obj0 = 0 ;
27234 char *kwnames[] = {
27235 (char *) "self", NULL
27236 };
27237
27238 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Clear",kwnames,&obj0)) goto fail;
27239 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27240 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27241 {
27242 PyThreadState* __tstate = wxPyBeginAllowThreads();
27243 (arg1)->Clear();
27244
27245 wxPyEndAllowThreads(__tstate);
27246 if (PyErr_Occurred()) SWIG_fail;
27247 }
27248 Py_INCREF(Py_None); resultobj = Py_None;
27249 return resultobj;
27250 fail:
27251 return NULL;
27252 }
27253
27254
27255 static PyObject *_wrap_Clipboard_Flush(PyObject *self, PyObject *args, PyObject *kwargs) {
27256 PyObject *resultobj;
27257 wxClipboard *arg1 = (wxClipboard *) 0 ;
27258 bool result;
27259 PyObject * obj0 = 0 ;
27260 char *kwnames[] = {
27261 (char *) "self", NULL
27262 };
27263
27264 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Flush",kwnames,&obj0)) goto fail;
27265 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27266 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27267 {
27268 PyThreadState* __tstate = wxPyBeginAllowThreads();
27269 result = (bool)(arg1)->Flush();
27270
27271 wxPyEndAllowThreads(__tstate);
27272 if (PyErr_Occurred()) SWIG_fail;
27273 }
27274 {
27275 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27276 }
27277 return resultobj;
27278 fail:
27279 return NULL;
27280 }
27281
27282
27283 static PyObject *_wrap_Clipboard_UsePrimarySelection(PyObject *self, PyObject *args, PyObject *kwargs) {
27284 PyObject *resultobj;
27285 wxClipboard *arg1 = (wxClipboard *) 0 ;
27286 bool arg2 = (bool) True ;
27287 PyObject * obj0 = 0 ;
27288 PyObject * obj1 = 0 ;
27289 char *kwnames[] = {
27290 (char *) "self",(char *) "primary", NULL
27291 };
27292
27293 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Clipboard_UsePrimarySelection",kwnames,&obj0,&obj1)) goto fail;
27294 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27295 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27296 if (obj1) {
27297 arg2 = (bool) SWIG_AsBool(obj1);
27298 if (PyErr_Occurred()) SWIG_fail;
27299 }
27300 {
27301 PyThreadState* __tstate = wxPyBeginAllowThreads();
27302 (arg1)->UsePrimarySelection(arg2);
27303
27304 wxPyEndAllowThreads(__tstate);
27305 if (PyErr_Occurred()) SWIG_fail;
27306 }
27307 Py_INCREF(Py_None); resultobj = Py_None;
27308 return resultobj;
27309 fail:
27310 return NULL;
27311 }
27312
27313
27314 static PyObject *_wrap_Clipboard_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
27315 PyObject *resultobj;
27316 wxClipboard *result;
27317 char *kwnames[] = {
27318 NULL
27319 };
27320
27321 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Clipboard_Get",kwnames)) goto fail;
27322 {
27323 PyThreadState* __tstate = wxPyBeginAllowThreads();
27324 result = (wxClipboard *)wxClipboard::Get();
27325
27326 wxPyEndAllowThreads(__tstate);
27327 if (PyErr_Occurred()) SWIG_fail;
27328 }
27329 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClipboard, 0);
27330 return resultobj;
27331 fail:
27332 return NULL;
27333 }
27334
27335
27336 static PyObject * Clipboard_swigregister(PyObject *self, PyObject *args) {
27337 PyObject *obj;
27338 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
27339 SWIG_TypeClientData(SWIGTYPE_p_wxClipboard, obj);
27340 Py_INCREF(obj);
27341 return Py_BuildValue((char *)"");
27342 }
27343 static PyObject *_wrap_new_ClipboardLocker(PyObject *self, PyObject *args, PyObject *kwargs) {
27344 PyObject *resultobj;
27345 wxClipboard *arg1 = (wxClipboard *) NULL ;
27346 wxClipboardLocker *result;
27347 PyObject * obj0 = 0 ;
27348 char *kwnames[] = {
27349 (char *) "clipboard", NULL
27350 };
27351
27352 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_ClipboardLocker",kwnames,&obj0)) goto fail;
27353 if (obj0) {
27354 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27355 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27356 }
27357 {
27358 PyThreadState* __tstate = wxPyBeginAllowThreads();
27359 result = (wxClipboardLocker *)new wxClipboardLocker(arg1);
27360
27361 wxPyEndAllowThreads(__tstate);
27362 if (PyErr_Occurred()) SWIG_fail;
27363 }
27364 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClipboardLocker, 1);
27365 return resultobj;
27366 fail:
27367 return NULL;
27368 }
27369
27370
27371 static PyObject *_wrap_delete_ClipboardLocker(PyObject *self, PyObject *args, PyObject *kwargs) {
27372 PyObject *resultobj;
27373 wxClipboardLocker *arg1 = (wxClipboardLocker *) 0 ;
27374 PyObject * obj0 = 0 ;
27375 char *kwnames[] = {
27376 (char *) "self", NULL
27377 };
27378
27379 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ClipboardLocker",kwnames,&obj0)) goto fail;
27380 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboardLocker,
27381 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27382 {
27383 PyThreadState* __tstate = wxPyBeginAllowThreads();
27384 delete arg1;
27385
27386 wxPyEndAllowThreads(__tstate);
27387 if (PyErr_Occurred()) SWIG_fail;
27388 }
27389 Py_INCREF(Py_None); resultobj = Py_None;
27390 return resultobj;
27391 fail:
27392 return NULL;
27393 }
27394
27395
27396 static PyObject *_wrap_ClipboardLocker___nonzero__(PyObject *self, PyObject *args, PyObject *kwargs) {
27397 PyObject *resultobj;
27398 wxClipboardLocker *arg1 = (wxClipboardLocker *) 0 ;
27399 bool result;
27400 PyObject * obj0 = 0 ;
27401 char *kwnames[] = {
27402 (char *) "self", NULL
27403 };
27404
27405 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ClipboardLocker___nonzero__",kwnames,&obj0)) goto fail;
27406 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboardLocker,
27407 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27408 {
27409 PyThreadState* __tstate = wxPyBeginAllowThreads();
27410 result = (bool)wxClipboardLocker___nonzero__(arg1);
27411
27412 wxPyEndAllowThreads(__tstate);
27413 if (PyErr_Occurred()) SWIG_fail;
27414 }
27415 {
27416 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27417 }
27418 return resultobj;
27419 fail:
27420 return NULL;
27421 }
27422
27423
27424 static PyObject * ClipboardLocker_swigregister(PyObject *self, PyObject *args) {
27425 PyObject *obj;
27426 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
27427 SWIG_TypeClientData(SWIGTYPE_p_wxClipboardLocker, obj);
27428 Py_INCREF(obj);
27429 return Py_BuildValue((char *)"");
27430 }
27431 static PyObject *_wrap_new_VideoMode(PyObject *self, PyObject *args, PyObject *kwargs) {
27432 PyObject *resultobj;
27433 int arg1 = (int) 0 ;
27434 int arg2 = (int) 0 ;
27435 int arg3 = (int) 0 ;
27436 int arg4 = (int) 0 ;
27437 wxVideoMode *result;
27438 PyObject * obj0 = 0 ;
27439 PyObject * obj1 = 0 ;
27440 PyObject * obj2 = 0 ;
27441 PyObject * obj3 = 0 ;
27442 char *kwnames[] = {
27443 (char *) "width",(char *) "height",(char *) "depth",(char *) "freq", NULL
27444 };
27445
27446 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_VideoMode",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
27447 if (obj0) {
27448 arg1 = (int) SWIG_AsInt(obj0);
27449 if (PyErr_Occurred()) SWIG_fail;
27450 }
27451 if (obj1) {
27452 arg2 = (int) SWIG_AsInt(obj1);
27453 if (PyErr_Occurred()) SWIG_fail;
27454 }
27455 if (obj2) {
27456 arg3 = (int) SWIG_AsInt(obj2);
27457 if (PyErr_Occurred()) SWIG_fail;
27458 }
27459 if (obj3) {
27460 arg4 = (int) SWIG_AsInt(obj3);
27461 if (PyErr_Occurred()) SWIG_fail;
27462 }
27463 {
27464 PyThreadState* __tstate = wxPyBeginAllowThreads();
27465 result = (wxVideoMode *)new wxVideoMode(arg1,arg2,arg3,arg4);
27466
27467 wxPyEndAllowThreads(__tstate);
27468 if (PyErr_Occurred()) SWIG_fail;
27469 }
27470 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxVideoMode, 1);
27471 return resultobj;
27472 fail:
27473 return NULL;
27474 }
27475
27476
27477 static PyObject *_wrap_delete_VideoMode(PyObject *self, PyObject *args, PyObject *kwargs) {
27478 PyObject *resultobj;
27479 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27480 PyObject * obj0 = 0 ;
27481 char *kwnames[] = {
27482 (char *) "self", NULL
27483 };
27484
27485 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_VideoMode",kwnames,&obj0)) goto fail;
27486 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27487 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27488 {
27489 PyThreadState* __tstate = wxPyBeginAllowThreads();
27490 delete arg1;
27491
27492 wxPyEndAllowThreads(__tstate);
27493 if (PyErr_Occurred()) SWIG_fail;
27494 }
27495 Py_INCREF(Py_None); resultobj = Py_None;
27496 return resultobj;
27497 fail:
27498 return NULL;
27499 }
27500
27501
27502 static PyObject *_wrap_VideoMode_Matches(PyObject *self, PyObject *args, PyObject *kwargs) {
27503 PyObject *resultobj;
27504 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27505 wxVideoMode *arg2 = 0 ;
27506 bool result;
27507 PyObject * obj0 = 0 ;
27508 PyObject * obj1 = 0 ;
27509 char *kwnames[] = {
27510 (char *) "self",(char *) "other", NULL
27511 };
27512
27513 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_Matches",kwnames,&obj0,&obj1)) goto fail;
27514 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27515 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27516 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode,
27517 SWIG_POINTER_EXCEPTION | 0)) == -1)
27518 SWIG_fail;
27519 if (arg2 == NULL) {
27520 PyErr_SetString(PyExc_TypeError,"null reference");
27521 SWIG_fail;
27522 }
27523 {
27524 PyThreadState* __tstate = wxPyBeginAllowThreads();
27525 result = (bool)((wxVideoMode const *)arg1)->Matches((wxVideoMode const &)*arg2);
27526
27527 wxPyEndAllowThreads(__tstate);
27528 if (PyErr_Occurred()) SWIG_fail;
27529 }
27530 {
27531 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27532 }
27533 return resultobj;
27534 fail:
27535 return NULL;
27536 }
27537
27538
27539 static PyObject *_wrap_VideoMode_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
27540 PyObject *resultobj;
27541 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27542 int result;
27543 PyObject * obj0 = 0 ;
27544 char *kwnames[] = {
27545 (char *) "self", NULL
27546 };
27547
27548 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_GetWidth",kwnames,&obj0)) goto fail;
27549 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27550 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27551 {
27552 PyThreadState* __tstate = wxPyBeginAllowThreads();
27553 result = (int)((wxVideoMode const *)arg1)->GetWidth();
27554
27555 wxPyEndAllowThreads(__tstate);
27556 if (PyErr_Occurred()) SWIG_fail;
27557 }
27558 resultobj = SWIG_FromInt((int)result);
27559 return resultobj;
27560 fail:
27561 return NULL;
27562 }
27563
27564
27565 static PyObject *_wrap_VideoMode_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
27566 PyObject *resultobj;
27567 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27568 int result;
27569 PyObject * obj0 = 0 ;
27570 char *kwnames[] = {
27571 (char *) "self", NULL
27572 };
27573
27574 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_GetHeight",kwnames,&obj0)) goto fail;
27575 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27576 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27577 {
27578 PyThreadState* __tstate = wxPyBeginAllowThreads();
27579 result = (int)((wxVideoMode const *)arg1)->GetHeight();
27580
27581 wxPyEndAllowThreads(__tstate);
27582 if (PyErr_Occurred()) SWIG_fail;
27583 }
27584 resultobj = SWIG_FromInt((int)result);
27585 return resultobj;
27586 fail:
27587 return NULL;
27588 }
27589
27590
27591 static PyObject *_wrap_VideoMode_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
27592 PyObject *resultobj;
27593 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27594 int result;
27595 PyObject * obj0 = 0 ;
27596 char *kwnames[] = {
27597 (char *) "self", NULL
27598 };
27599
27600 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_GetDepth",kwnames,&obj0)) goto fail;
27601 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27602 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27603 {
27604 PyThreadState* __tstate = wxPyBeginAllowThreads();
27605 result = (int)((wxVideoMode const *)arg1)->GetDepth();
27606
27607 wxPyEndAllowThreads(__tstate);
27608 if (PyErr_Occurred()) SWIG_fail;
27609 }
27610 resultobj = SWIG_FromInt((int)result);
27611 return resultobj;
27612 fail:
27613 return NULL;
27614 }
27615
27616
27617 static PyObject *_wrap_VideoMode_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
27618 PyObject *resultobj;
27619 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27620 bool result;
27621 PyObject * obj0 = 0 ;
27622 char *kwnames[] = {
27623 (char *) "self", NULL
27624 };
27625
27626 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_IsOk",kwnames,&obj0)) goto fail;
27627 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27628 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27629 {
27630 PyThreadState* __tstate = wxPyBeginAllowThreads();
27631 result = (bool)((wxVideoMode const *)arg1)->IsOk();
27632
27633 wxPyEndAllowThreads(__tstate);
27634 if (PyErr_Occurred()) SWIG_fail;
27635 }
27636 {
27637 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27638 }
27639 return resultobj;
27640 fail:
27641 return NULL;
27642 }
27643
27644
27645 static PyObject *_wrap_VideoMode___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
27646 PyObject *resultobj;
27647 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27648 wxVideoMode *arg2 = (wxVideoMode *) 0 ;
27649 bool result;
27650 PyObject * obj0 = 0 ;
27651 PyObject * obj1 = 0 ;
27652 char *kwnames[] = {
27653 (char *) "self",(char *) "other", NULL
27654 };
27655
27656 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode___eq__",kwnames,&obj0,&obj1)) goto fail;
27657 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27658 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27659 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode,
27660 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27661 {
27662 PyThreadState* __tstate = wxPyBeginAllowThreads();
27663 result = (bool)wxVideoMode___eq__(arg1,(wxVideoMode const *)arg2);
27664
27665 wxPyEndAllowThreads(__tstate);
27666 if (PyErr_Occurred()) SWIG_fail;
27667 }
27668 {
27669 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27670 }
27671 return resultobj;
27672 fail:
27673 return NULL;
27674 }
27675
27676
27677 static PyObject *_wrap_VideoMode___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
27678 PyObject *resultobj;
27679 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27680 wxVideoMode *arg2 = (wxVideoMode *) 0 ;
27681 bool result;
27682 PyObject * obj0 = 0 ;
27683 PyObject * obj1 = 0 ;
27684 char *kwnames[] = {
27685 (char *) "self",(char *) "other", NULL
27686 };
27687
27688 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode___ne__",kwnames,&obj0,&obj1)) goto fail;
27689 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27690 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27691 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode,
27692 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27693 {
27694 PyThreadState* __tstate = wxPyBeginAllowThreads();
27695 result = (bool)wxVideoMode___ne__(arg1,(wxVideoMode const *)arg2);
27696
27697 wxPyEndAllowThreads(__tstate);
27698 if (PyErr_Occurred()) SWIG_fail;
27699 }
27700 {
27701 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27702 }
27703 return resultobj;
27704 fail:
27705 return NULL;
27706 }
27707
27708
27709 static PyObject *_wrap_VideoMode_w_set(PyObject *self, PyObject *args, PyObject *kwargs) {
27710 PyObject *resultobj;
27711 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27712 int arg2 ;
27713 PyObject * obj0 = 0 ;
27714 PyObject * obj1 = 0 ;
27715 char *kwnames[] = {
27716 (char *) "self",(char *) "w", NULL
27717 };
27718
27719 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_w_set",kwnames,&obj0,&obj1)) goto fail;
27720 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27721 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27722 arg2 = (int) SWIG_AsInt(obj1);
27723 if (PyErr_Occurred()) SWIG_fail;
27724 if (arg1) (arg1)->w = arg2;
27725
27726 Py_INCREF(Py_None); resultobj = Py_None;
27727 return resultobj;
27728 fail:
27729 return NULL;
27730 }
27731
27732
27733 static PyObject *_wrap_VideoMode_w_get(PyObject *self, PyObject *args, PyObject *kwargs) {
27734 PyObject *resultobj;
27735 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27736 int result;
27737 PyObject * obj0 = 0 ;
27738 char *kwnames[] = {
27739 (char *) "self", NULL
27740 };
27741
27742 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_w_get",kwnames,&obj0)) goto fail;
27743 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27744 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27745 result = (int) ((arg1)->w);
27746
27747 resultobj = SWIG_FromInt((int)result);
27748 return resultobj;
27749 fail:
27750 return NULL;
27751 }
27752
27753
27754 static PyObject *_wrap_VideoMode_h_set(PyObject *self, PyObject *args, PyObject *kwargs) {
27755 PyObject *resultobj;
27756 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27757 int arg2 ;
27758 PyObject * obj0 = 0 ;
27759 PyObject * obj1 = 0 ;
27760 char *kwnames[] = {
27761 (char *) "self",(char *) "h", NULL
27762 };
27763
27764 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_h_set",kwnames,&obj0,&obj1)) goto fail;
27765 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27766 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27767 arg2 = (int) SWIG_AsInt(obj1);
27768 if (PyErr_Occurred()) SWIG_fail;
27769 if (arg1) (arg1)->h = arg2;
27770
27771 Py_INCREF(Py_None); resultobj = Py_None;
27772 return resultobj;
27773 fail:
27774 return NULL;
27775 }
27776
27777
27778 static PyObject *_wrap_VideoMode_h_get(PyObject *self, PyObject *args, PyObject *kwargs) {
27779 PyObject *resultobj;
27780 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27781 int result;
27782 PyObject * obj0 = 0 ;
27783 char *kwnames[] = {
27784 (char *) "self", NULL
27785 };
27786
27787 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_h_get",kwnames,&obj0)) goto fail;
27788 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27789 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27790 result = (int) ((arg1)->h);
27791
27792 resultobj = SWIG_FromInt((int)result);
27793 return resultobj;
27794 fail:
27795 return NULL;
27796 }
27797
27798
27799 static PyObject *_wrap_VideoMode_bpp_set(PyObject *self, PyObject *args, PyObject *kwargs) {
27800 PyObject *resultobj;
27801 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27802 int arg2 ;
27803 PyObject * obj0 = 0 ;
27804 PyObject * obj1 = 0 ;
27805 char *kwnames[] = {
27806 (char *) "self",(char *) "bpp", NULL
27807 };
27808
27809 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_bpp_set",kwnames,&obj0,&obj1)) goto fail;
27810 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27811 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27812 arg2 = (int) SWIG_AsInt(obj1);
27813 if (PyErr_Occurred()) SWIG_fail;
27814 if (arg1) (arg1)->bpp = arg2;
27815
27816 Py_INCREF(Py_None); resultobj = Py_None;
27817 return resultobj;
27818 fail:
27819 return NULL;
27820 }
27821
27822
27823 static PyObject *_wrap_VideoMode_bpp_get(PyObject *self, PyObject *args, PyObject *kwargs) {
27824 PyObject *resultobj;
27825 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27826 int result;
27827 PyObject * obj0 = 0 ;
27828 char *kwnames[] = {
27829 (char *) "self", NULL
27830 };
27831
27832 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_bpp_get",kwnames,&obj0)) goto fail;
27833 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27834 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27835 result = (int) ((arg1)->bpp);
27836
27837 resultobj = SWIG_FromInt((int)result);
27838 return resultobj;
27839 fail:
27840 return NULL;
27841 }
27842
27843
27844 static PyObject *_wrap_VideoMode_refresh_set(PyObject *self, PyObject *args, PyObject *kwargs) {
27845 PyObject *resultobj;
27846 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27847 int arg2 ;
27848 PyObject * obj0 = 0 ;
27849 PyObject * obj1 = 0 ;
27850 char *kwnames[] = {
27851 (char *) "self",(char *) "refresh", NULL
27852 };
27853
27854 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_refresh_set",kwnames,&obj0,&obj1)) goto fail;
27855 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27856 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27857 arg2 = (int) SWIG_AsInt(obj1);
27858 if (PyErr_Occurred()) SWIG_fail;
27859 if (arg1) (arg1)->refresh = arg2;
27860
27861 Py_INCREF(Py_None); resultobj = Py_None;
27862 return resultobj;
27863 fail:
27864 return NULL;
27865 }
27866
27867
27868 static PyObject *_wrap_VideoMode_refresh_get(PyObject *self, PyObject *args, PyObject *kwargs) {
27869 PyObject *resultobj;
27870 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27871 int result;
27872 PyObject * obj0 = 0 ;
27873 char *kwnames[] = {
27874 (char *) "self", NULL
27875 };
27876
27877 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_refresh_get",kwnames,&obj0)) goto fail;
27878 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27879 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27880 result = (int) ((arg1)->refresh);
27881
27882 resultobj = SWIG_FromInt((int)result);
27883 return resultobj;
27884 fail:
27885 return NULL;
27886 }
27887
27888
27889 static PyObject * VideoMode_swigregister(PyObject *self, PyObject *args) {
27890 PyObject *obj;
27891 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
27892 SWIG_TypeClientData(SWIGTYPE_p_wxVideoMode, obj);
27893 Py_INCREF(obj);
27894 return Py_BuildValue((char *)"");
27895 }
27896 static int _wrap_DefaultVideoMode_set(PyObject *_val) {
27897 PyErr_SetString(PyExc_TypeError,"Variable DefaultVideoMode is read-only.");
27898 return 1;
27899 }
27900
27901
27902 static PyObject *_wrap_DefaultVideoMode_get() {
27903 PyObject *pyobj;
27904
27905 pyobj = SWIG_NewPointerObj((void *)(&wxDefaultVideoMode), SWIGTYPE_p_wxVideoMode, 0);
27906 return pyobj;
27907 }
27908
27909
27910 static PyObject *_wrap_new_Display(PyObject *self, PyObject *args, PyObject *kwargs) {
27911 PyObject *resultobj;
27912 size_t arg1 = (size_t) 0 ;
27913 wxDisplay *result;
27914 PyObject * obj0 = 0 ;
27915 char *kwnames[] = {
27916 (char *) "index", NULL
27917 };
27918
27919 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Display",kwnames,&obj0)) goto fail;
27920 if (obj0) {
27921 arg1 = (size_t) SWIG_AsUnsignedLong(obj0);
27922 if (PyErr_Occurred()) SWIG_fail;
27923 }
27924 {
27925 PyThreadState* __tstate = wxPyBeginAllowThreads();
27926 result = (wxDisplay *)new wxDisplay(arg1);
27927
27928 wxPyEndAllowThreads(__tstate);
27929 if (PyErr_Occurred()) SWIG_fail;
27930 }
27931 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDisplay, 1);
27932 return resultobj;
27933 fail:
27934 return NULL;
27935 }
27936
27937
27938 static PyObject *_wrap_delete_Display(PyObject *self, PyObject *args, PyObject *kwargs) {
27939 PyObject *resultobj;
27940 wxDisplay *arg1 = (wxDisplay *) 0 ;
27941 PyObject * obj0 = 0 ;
27942 char *kwnames[] = {
27943 (char *) "self", NULL
27944 };
27945
27946 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Display",kwnames,&obj0)) goto fail;
27947 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
27948 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27949 {
27950 PyThreadState* __tstate = wxPyBeginAllowThreads();
27951 delete arg1;
27952
27953 wxPyEndAllowThreads(__tstate);
27954 if (PyErr_Occurred()) SWIG_fail;
27955 }
27956 Py_INCREF(Py_None); resultobj = Py_None;
27957 return resultobj;
27958 fail:
27959 return NULL;
27960 }
27961
27962
27963 static PyObject *_wrap_Display_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
27964 PyObject *resultobj;
27965 size_t result;
27966 char *kwnames[] = {
27967 NULL
27968 };
27969
27970 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Display_GetCount",kwnames)) goto fail;
27971 {
27972 PyThreadState* __tstate = wxPyBeginAllowThreads();
27973 result = (size_t)wxDisplay::GetCount();
27974
27975 wxPyEndAllowThreads(__tstate);
27976 if (PyErr_Occurred()) SWIG_fail;
27977 }
27978 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
27979 return resultobj;
27980 fail:
27981 return NULL;
27982 }
27983
27984
27985 static PyObject *_wrap_Display_GetFromPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
27986 PyObject *resultobj;
27987 wxPoint *arg1 = 0 ;
27988 int result;
27989 wxPoint temp1 ;
27990 PyObject * obj0 = 0 ;
27991 char *kwnames[] = {
27992 (char *) "pt", NULL
27993 };
27994
27995 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetFromPoint",kwnames,&obj0)) goto fail;
27996 {
27997 arg1 = &temp1;
27998 if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail;
27999 }
28000 {
28001 PyThreadState* __tstate = wxPyBeginAllowThreads();
28002 result = (int)wxDisplay::GetFromPoint((wxPoint const &)*arg1);
28003
28004 wxPyEndAllowThreads(__tstate);
28005 if (PyErr_Occurred()) SWIG_fail;
28006 }
28007 resultobj = SWIG_FromInt((int)result);
28008 return resultobj;
28009 fail:
28010 return NULL;
28011 }
28012
28013
28014 static PyObject *_wrap_Display_GetFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
28015 PyObject *resultobj;
28016 wxWindow *arg1 = (wxWindow *) 0 ;
28017 int result;
28018 PyObject * obj0 = 0 ;
28019 char *kwnames[] = {
28020 (char *) "window", NULL
28021 };
28022
28023 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetFromWindow",kwnames,&obj0)) goto fail;
28024 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
28025 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28026 {
28027 PyThreadState* __tstate = wxPyBeginAllowThreads();
28028 result = (int)wxDisplay::GetFromWindow(arg1);
28029
28030 wxPyEndAllowThreads(__tstate);
28031 if (PyErr_Occurred()) SWIG_fail;
28032 }
28033 resultobj = SWIG_FromInt((int)result);
28034 return resultobj;
28035 fail:
28036 return NULL;
28037 }
28038
28039
28040 static PyObject *_wrap_Display_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
28041 PyObject *resultobj;
28042 wxDisplay *arg1 = (wxDisplay *) 0 ;
28043 bool result;
28044 PyObject * obj0 = 0 ;
28045 char *kwnames[] = {
28046 (char *) "self", NULL
28047 };
28048
28049 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_IsOk",kwnames,&obj0)) goto fail;
28050 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
28051 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28052 {
28053 PyThreadState* __tstate = wxPyBeginAllowThreads();
28054 result = (bool)((wxDisplay const *)arg1)->IsOk();
28055
28056 wxPyEndAllowThreads(__tstate);
28057 if (PyErr_Occurred()) SWIG_fail;
28058 }
28059 {
28060 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28061 }
28062 return resultobj;
28063 fail:
28064 return NULL;
28065 }
28066
28067
28068 static PyObject *_wrap_Display_GetGeometry(PyObject *self, PyObject *args, PyObject *kwargs) {
28069 PyObject *resultobj;
28070 wxDisplay *arg1 = (wxDisplay *) 0 ;
28071 wxRect result;
28072 PyObject * obj0 = 0 ;
28073 char *kwnames[] = {
28074 (char *) "self", NULL
28075 };
28076
28077 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetGeometry",kwnames,&obj0)) goto fail;
28078 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
28079 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28080 {
28081 PyThreadState* __tstate = wxPyBeginAllowThreads();
28082 result = ((wxDisplay const *)arg1)->GetGeometry();
28083
28084 wxPyEndAllowThreads(__tstate);
28085 if (PyErr_Occurred()) SWIG_fail;
28086 }
28087 {
28088 wxRect * resultptr;
28089 resultptr = new wxRect((wxRect &) result);
28090 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
28091 }
28092 return resultobj;
28093 fail:
28094 return NULL;
28095 }
28096
28097
28098 static PyObject *_wrap_Display_GetName(PyObject *self, PyObject *args, PyObject *kwargs) {
28099 PyObject *resultobj;
28100 wxDisplay *arg1 = (wxDisplay *) 0 ;
28101 wxString result;
28102 PyObject * obj0 = 0 ;
28103 char *kwnames[] = {
28104 (char *) "self", NULL
28105 };
28106
28107 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetName",kwnames,&obj0)) goto fail;
28108 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
28109 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28110 {
28111 PyThreadState* __tstate = wxPyBeginAllowThreads();
28112 result = ((wxDisplay const *)arg1)->GetName();
28113
28114 wxPyEndAllowThreads(__tstate);
28115 if (PyErr_Occurred()) SWIG_fail;
28116 }
28117 {
28118 #if wxUSE_UNICODE
28119 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
28120 #else
28121 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
28122 #endif
28123 }
28124 return resultobj;
28125 fail:
28126 return NULL;
28127 }
28128
28129
28130 static PyObject *_wrap_Display_IsPrimary(PyObject *self, PyObject *args, PyObject *kwargs) {
28131 PyObject *resultobj;
28132 wxDisplay *arg1 = (wxDisplay *) 0 ;
28133 bool result;
28134 PyObject * obj0 = 0 ;
28135 char *kwnames[] = {
28136 (char *) "self", NULL
28137 };
28138
28139 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_IsPrimary",kwnames,&obj0)) goto fail;
28140 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
28141 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28142 {
28143 PyThreadState* __tstate = wxPyBeginAllowThreads();
28144 result = (bool)((wxDisplay const *)arg1)->IsPrimary();
28145
28146 wxPyEndAllowThreads(__tstate);
28147 if (PyErr_Occurred()) SWIG_fail;
28148 }
28149 {
28150 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28151 }
28152 return resultobj;
28153 fail:
28154 return NULL;
28155 }
28156
28157
28158 static PyObject *_wrap_Display_GetModes(PyObject *self, PyObject *args, PyObject *kwargs) {
28159 PyObject *resultobj;
28160 wxDisplay *arg1 = (wxDisplay *) 0 ;
28161 wxVideoMode const &arg2_defvalue = wxDefaultVideoMode ;
28162 wxVideoMode *arg2 = (wxVideoMode *) &arg2_defvalue ;
28163 PyObject *result;
28164 PyObject * obj0 = 0 ;
28165 PyObject * obj1 = 0 ;
28166 char *kwnames[] = {
28167 (char *) "self",(char *) "mode", NULL
28168 };
28169
28170 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Display_GetModes",kwnames,&obj0,&obj1)) goto fail;
28171 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
28172 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28173 if (obj1) {
28174 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode,
28175 SWIG_POINTER_EXCEPTION | 0)) == -1)
28176 SWIG_fail;
28177 if (arg2 == NULL) {
28178 PyErr_SetString(PyExc_TypeError,"null reference");
28179 SWIG_fail;
28180 }
28181 }
28182 {
28183 PyThreadState* __tstate = wxPyBeginAllowThreads();
28184 result = (PyObject *)wxDisplay_GetModes(arg1,(wxVideoMode const &)*arg2);
28185
28186 wxPyEndAllowThreads(__tstate);
28187 if (PyErr_Occurred()) SWIG_fail;
28188 }
28189 resultobj = result;
28190 return resultobj;
28191 fail:
28192 return NULL;
28193 }
28194
28195
28196 static PyObject *_wrap_Display_GetCurrentMode(PyObject *self, PyObject *args, PyObject *kwargs) {
28197 PyObject *resultobj;
28198 wxDisplay *arg1 = (wxDisplay *) 0 ;
28199 wxVideoMode result;
28200 PyObject * obj0 = 0 ;
28201 char *kwnames[] = {
28202 (char *) "self", NULL
28203 };
28204
28205 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetCurrentMode",kwnames,&obj0)) goto fail;
28206 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
28207 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28208 {
28209 PyThreadState* __tstate = wxPyBeginAllowThreads();
28210 result = ((wxDisplay const *)arg1)->GetCurrentMode();
28211
28212 wxPyEndAllowThreads(__tstate);
28213 if (PyErr_Occurred()) SWIG_fail;
28214 }
28215 {
28216 wxVideoMode * resultptr;
28217 resultptr = new wxVideoMode((wxVideoMode &) result);
28218 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVideoMode, 1);
28219 }
28220 return resultobj;
28221 fail:
28222 return NULL;
28223 }
28224
28225
28226 static PyObject *_wrap_Display_ChangeMode(PyObject *self, PyObject *args, PyObject *kwargs) {
28227 PyObject *resultobj;
28228 wxDisplay *arg1 = (wxDisplay *) 0 ;
28229 wxVideoMode const &arg2_defvalue = wxDefaultVideoMode ;
28230 wxVideoMode *arg2 = (wxVideoMode *) &arg2_defvalue ;
28231 bool result;
28232 PyObject * obj0 = 0 ;
28233 PyObject * obj1 = 0 ;
28234 char *kwnames[] = {
28235 (char *) "self",(char *) "mode", NULL
28236 };
28237
28238 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Display_ChangeMode",kwnames,&obj0,&obj1)) goto fail;
28239 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
28240 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28241 if (obj1) {
28242 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode,
28243 SWIG_POINTER_EXCEPTION | 0)) == -1)
28244 SWIG_fail;
28245 if (arg2 == NULL) {
28246 PyErr_SetString(PyExc_TypeError,"null reference");
28247 SWIG_fail;
28248 }
28249 }
28250 {
28251 PyThreadState* __tstate = wxPyBeginAllowThreads();
28252 result = (bool)(arg1)->ChangeMode((wxVideoMode const &)*arg2);
28253
28254 wxPyEndAllowThreads(__tstate);
28255 if (PyErr_Occurred()) SWIG_fail;
28256 }
28257 {
28258 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28259 }
28260 return resultobj;
28261 fail:
28262 return NULL;
28263 }
28264
28265
28266 static PyObject *_wrap_Display_ResetMode(PyObject *self, PyObject *args, PyObject *kwargs) {
28267 PyObject *resultobj;
28268 wxDisplay *arg1 = (wxDisplay *) 0 ;
28269 PyObject * obj0 = 0 ;
28270 char *kwnames[] = {
28271 (char *) "self", NULL
28272 };
28273
28274 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_ResetMode",kwnames,&obj0)) goto fail;
28275 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
28276 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28277 {
28278 PyThreadState* __tstate = wxPyBeginAllowThreads();
28279 (arg1)->ResetMode();
28280
28281 wxPyEndAllowThreads(__tstate);
28282 if (PyErr_Occurred()) SWIG_fail;
28283 }
28284 Py_INCREF(Py_None); resultobj = Py_None;
28285 return resultobj;
28286 fail:
28287 return NULL;
28288 }
28289
28290
28291 static PyObject * Display_swigregister(PyObject *self, PyObject *args) {
28292 PyObject *obj;
28293 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
28294 SWIG_TypeClientData(SWIGTYPE_p_wxDisplay, obj);
28295 Py_INCREF(obj);
28296 return Py_BuildValue((char *)"");
28297 }
28298 static PyMethodDef SwigMethods[] = {
28299 { (char *)"SystemSettings_GetColour", (PyCFunction) _wrap_SystemSettings_GetColour, METH_VARARGS | METH_KEYWORDS },
28300 { (char *)"SystemSettings_GetFont", (PyCFunction) _wrap_SystemSettings_GetFont, METH_VARARGS | METH_KEYWORDS },
28301 { (char *)"SystemSettings_GetMetric", (PyCFunction) _wrap_SystemSettings_GetMetric, METH_VARARGS | METH_KEYWORDS },
28302 { (char *)"SystemSettings_HasFeature", (PyCFunction) _wrap_SystemSettings_HasFeature, METH_VARARGS | METH_KEYWORDS },
28303 { (char *)"SystemSettings_GetScreenType", (PyCFunction) _wrap_SystemSettings_GetScreenType, METH_VARARGS | METH_KEYWORDS },
28304 { (char *)"SystemSettings_SetScreenType", (PyCFunction) _wrap_SystemSettings_SetScreenType, METH_VARARGS | METH_KEYWORDS },
28305 { (char *)"SystemSettings_swigregister", SystemSettings_swigregister, METH_VARARGS },
28306 { (char *)"new_SystemOptions", (PyCFunction) _wrap_new_SystemOptions, METH_VARARGS | METH_KEYWORDS },
28307 { (char *)"SystemOptions_SetOption", (PyCFunction) _wrap_SystemOptions_SetOption, METH_VARARGS | METH_KEYWORDS },
28308 { (char *)"SystemOptions_SetOptionInt", (PyCFunction) _wrap_SystemOptions_SetOptionInt, METH_VARARGS | METH_KEYWORDS },
28309 { (char *)"SystemOptions_GetOption", (PyCFunction) _wrap_SystemOptions_GetOption, METH_VARARGS | METH_KEYWORDS },
28310 { (char *)"SystemOptions_GetOptionInt", (PyCFunction) _wrap_SystemOptions_GetOptionInt, METH_VARARGS | METH_KEYWORDS },
28311 { (char *)"SystemOptions_HasOption", (PyCFunction) _wrap_SystemOptions_HasOption, METH_VARARGS | METH_KEYWORDS },
28312 { (char *)"SystemOptions_swigregister", SystemOptions_swigregister, METH_VARARGS },
28313 { (char *)"NewId", (PyCFunction) _wrap_NewId, METH_VARARGS | METH_KEYWORDS },
28314 { (char *)"RegisterId", (PyCFunction) _wrap_RegisterId, METH_VARARGS | METH_KEYWORDS },
28315 { (char *)"GetCurrentId", (PyCFunction) _wrap_GetCurrentId, METH_VARARGS | METH_KEYWORDS },
28316 { (char *)"Bell", (PyCFunction) _wrap_Bell, METH_VARARGS | METH_KEYWORDS },
28317 { (char *)"EndBusyCursor", (PyCFunction) _wrap_EndBusyCursor, METH_VARARGS | METH_KEYWORDS },
28318 { (char *)"GetElapsedTime", (PyCFunction) _wrap_GetElapsedTime, METH_VARARGS | METH_KEYWORDS },
28319 { (char *)"GetMousePosition", (PyCFunction) _wrap_GetMousePosition, METH_VARARGS | METH_KEYWORDS },
28320 { (char *)"IsBusy", (PyCFunction) _wrap_IsBusy, METH_VARARGS | METH_KEYWORDS },
28321 { (char *)"Now", (PyCFunction) _wrap_Now, METH_VARARGS | METH_KEYWORDS },
28322 { (char *)"Shell", (PyCFunction) _wrap_Shell, METH_VARARGS | METH_KEYWORDS },
28323 { (char *)"StartTimer", (PyCFunction) _wrap_StartTimer, METH_VARARGS | METH_KEYWORDS },
28324 { (char *)"GetOsVersion", (PyCFunction) _wrap_GetOsVersion, METH_VARARGS | METH_KEYWORDS },
28325 { (char *)"GetOsDescription", (PyCFunction) _wrap_GetOsDescription, METH_VARARGS | METH_KEYWORDS },
28326 { (char *)"GetFreeMemory", (PyCFunction) _wrap_GetFreeMemory, METH_VARARGS | METH_KEYWORDS },
28327 { (char *)"Shutdown", (PyCFunction) _wrap_Shutdown, METH_VARARGS | METH_KEYWORDS },
28328 { (char *)"Sleep", (PyCFunction) _wrap_Sleep, METH_VARARGS | METH_KEYWORDS },
28329 { (char *)"MilliSleep", (PyCFunction) _wrap_MilliSleep, METH_VARARGS | METH_KEYWORDS },
28330 { (char *)"MicroSleep", (PyCFunction) _wrap_MicroSleep, METH_VARARGS | METH_KEYWORDS },
28331 { (char *)"EnableTopLevelWindows", (PyCFunction) _wrap_EnableTopLevelWindows, METH_VARARGS | METH_KEYWORDS },
28332 { (char *)"StripMenuCodes", (PyCFunction) _wrap_StripMenuCodes, METH_VARARGS | METH_KEYWORDS },
28333 { (char *)"GetEmailAddress", (PyCFunction) _wrap_GetEmailAddress, METH_VARARGS | METH_KEYWORDS },
28334 { (char *)"GetHostName", (PyCFunction) _wrap_GetHostName, METH_VARARGS | METH_KEYWORDS },
28335 { (char *)"GetFullHostName", (PyCFunction) _wrap_GetFullHostName, METH_VARARGS | METH_KEYWORDS },
28336 { (char *)"GetUserId", (PyCFunction) _wrap_GetUserId, METH_VARARGS | METH_KEYWORDS },
28337 { (char *)"GetUserName", (PyCFunction) _wrap_GetUserName, METH_VARARGS | METH_KEYWORDS },
28338 { (char *)"GetHomeDir", (PyCFunction) _wrap_GetHomeDir, METH_VARARGS | METH_KEYWORDS },
28339 { (char *)"GetUserHome", (PyCFunction) _wrap_GetUserHome, METH_VARARGS | METH_KEYWORDS },
28340 { (char *)"GetProcessId", (PyCFunction) _wrap_GetProcessId, METH_VARARGS | METH_KEYWORDS },
28341 { (char *)"Trap", (PyCFunction) _wrap_Trap, METH_VARARGS | METH_KEYWORDS },
28342 { (char *)"FileSelector", (PyCFunction) _wrap_FileSelector, METH_VARARGS | METH_KEYWORDS },
28343 { (char *)"LoadFileSelector", (PyCFunction) _wrap_LoadFileSelector, METH_VARARGS | METH_KEYWORDS },
28344 { (char *)"SaveFileSelector", (PyCFunction) _wrap_SaveFileSelector, METH_VARARGS | METH_KEYWORDS },
28345 { (char *)"DirSelector", (PyCFunction) _wrap_DirSelector, METH_VARARGS | METH_KEYWORDS },
28346 { (char *)"GetTextFromUser", (PyCFunction) _wrap_GetTextFromUser, METH_VARARGS | METH_KEYWORDS },
28347 { (char *)"GetPasswordFromUser", (PyCFunction) _wrap_GetPasswordFromUser, METH_VARARGS | METH_KEYWORDS },
28348 { (char *)"GetSingleChoice", (PyCFunction) _wrap_GetSingleChoice, METH_VARARGS | METH_KEYWORDS },
28349 { (char *)"GetSingleChoiceIndex", (PyCFunction) _wrap_GetSingleChoiceIndex, METH_VARARGS | METH_KEYWORDS },
28350 { (char *)"MessageBox", (PyCFunction) _wrap_MessageBox, METH_VARARGS | METH_KEYWORDS },
28351 { (char *)"GetNumberFromUser", (PyCFunction) _wrap_GetNumberFromUser, METH_VARARGS | METH_KEYWORDS },
28352 { (char *)"ColourDisplay", (PyCFunction) _wrap_ColourDisplay, METH_VARARGS | METH_KEYWORDS },
28353 { (char *)"DisplayDepth", (PyCFunction) _wrap_DisplayDepth, METH_VARARGS | METH_KEYWORDS },
28354 { (char *)"GetDisplayDepth", (PyCFunction) _wrap_GetDisplayDepth, METH_VARARGS | METH_KEYWORDS },
28355 { (char *)"DisplaySize", (PyCFunction) _wrap_DisplaySize, METH_VARARGS | METH_KEYWORDS },
28356 { (char *)"GetDisplaySize", (PyCFunction) _wrap_GetDisplaySize, METH_VARARGS | METH_KEYWORDS },
28357 { (char *)"DisplaySizeMM", (PyCFunction) _wrap_DisplaySizeMM, METH_VARARGS | METH_KEYWORDS },
28358 { (char *)"GetDisplaySizeMM", (PyCFunction) _wrap_GetDisplaySizeMM, METH_VARARGS | METH_KEYWORDS },
28359 { (char *)"ClientDisplayRect", (PyCFunction) _wrap_ClientDisplayRect, METH_VARARGS | METH_KEYWORDS },
28360 { (char *)"GetClientDisplayRect", (PyCFunction) _wrap_GetClientDisplayRect, METH_VARARGS | METH_KEYWORDS },
28361 { (char *)"SetCursor", (PyCFunction) _wrap_SetCursor, METH_VARARGS | METH_KEYWORDS },
28362 { (char *)"BeginBusyCursor", (PyCFunction) _wrap_BeginBusyCursor, METH_VARARGS | METH_KEYWORDS },
28363 { (char *)"GetActiveWindow", (PyCFunction) _wrap_GetActiveWindow, METH_VARARGS | METH_KEYWORDS },
28364 { (char *)"GenericFindWindowAtPoint", (PyCFunction) _wrap_GenericFindWindowAtPoint, METH_VARARGS | METH_KEYWORDS },
28365 { (char *)"FindWindowAtPoint", (PyCFunction) _wrap_FindWindowAtPoint, METH_VARARGS | METH_KEYWORDS },
28366 { (char *)"GetTopLevelParent", (PyCFunction) _wrap_GetTopLevelParent, METH_VARARGS | METH_KEYWORDS },
28367 { (char *)"GetKeyState", (PyCFunction) _wrap_GetKeyState, METH_VARARGS | METH_KEYWORDS },
28368 { (char *)"WakeUpMainThread", (PyCFunction) _wrap_WakeUpMainThread, METH_VARARGS | METH_KEYWORDS },
28369 { (char *)"MutexGuiEnter", (PyCFunction) _wrap_MutexGuiEnter, METH_VARARGS | METH_KEYWORDS },
28370 { (char *)"MutexGuiLeave", (PyCFunction) _wrap_MutexGuiLeave, METH_VARARGS | METH_KEYWORDS },
28371 { (char *)"new_MutexGuiLocker", (PyCFunction) _wrap_new_MutexGuiLocker, METH_VARARGS | METH_KEYWORDS },
28372 { (char *)"delete_MutexGuiLocker", (PyCFunction) _wrap_delete_MutexGuiLocker, METH_VARARGS | METH_KEYWORDS },
28373 { (char *)"MutexGuiLocker_swigregister", MutexGuiLocker_swigregister, METH_VARARGS },
28374 { (char *)"Thread_IsMain", (PyCFunction) _wrap_Thread_IsMain, METH_VARARGS | METH_KEYWORDS },
28375 { (char *)"new_ToolTip", (PyCFunction) _wrap_new_ToolTip, METH_VARARGS | METH_KEYWORDS },
28376 { (char *)"ToolTip_SetTip", (PyCFunction) _wrap_ToolTip_SetTip, METH_VARARGS | METH_KEYWORDS },
28377 { (char *)"ToolTip_GetTip", (PyCFunction) _wrap_ToolTip_GetTip, METH_VARARGS | METH_KEYWORDS },
28378 { (char *)"ToolTip_GetWindow", (PyCFunction) _wrap_ToolTip_GetWindow, METH_VARARGS | METH_KEYWORDS },
28379 { (char *)"ToolTip_Enable", (PyCFunction) _wrap_ToolTip_Enable, METH_VARARGS | METH_KEYWORDS },
28380 { (char *)"ToolTip_SetDelay", (PyCFunction) _wrap_ToolTip_SetDelay, METH_VARARGS | METH_KEYWORDS },
28381 { (char *)"ToolTip_swigregister", ToolTip_swigregister, METH_VARARGS },
28382 { (char *)"new_Caret", (PyCFunction) _wrap_new_Caret, METH_VARARGS | METH_KEYWORDS },
28383 { (char *)"delete_Caret", (PyCFunction) _wrap_delete_Caret, METH_VARARGS | METH_KEYWORDS },
28384 { (char *)"Caret_IsOk", (PyCFunction) _wrap_Caret_IsOk, METH_VARARGS | METH_KEYWORDS },
28385 { (char *)"Caret_IsVisible", (PyCFunction) _wrap_Caret_IsVisible, METH_VARARGS | METH_KEYWORDS },
28386 { (char *)"Caret_GetPosition", (PyCFunction) _wrap_Caret_GetPosition, METH_VARARGS | METH_KEYWORDS },
28387 { (char *)"Caret_GetPositionTuple", (PyCFunction) _wrap_Caret_GetPositionTuple, METH_VARARGS | METH_KEYWORDS },
28388 { (char *)"Caret_GetSize", (PyCFunction) _wrap_Caret_GetSize, METH_VARARGS | METH_KEYWORDS },
28389 { (char *)"Caret_GetSizeTuple", (PyCFunction) _wrap_Caret_GetSizeTuple, METH_VARARGS | METH_KEYWORDS },
28390 { (char *)"Caret_GetWindow", (PyCFunction) _wrap_Caret_GetWindow, METH_VARARGS | METH_KEYWORDS },
28391 { (char *)"Caret_MoveXY", (PyCFunction) _wrap_Caret_MoveXY, METH_VARARGS | METH_KEYWORDS },
28392 { (char *)"Caret_Move", (PyCFunction) _wrap_Caret_Move, METH_VARARGS | METH_KEYWORDS },
28393 { (char *)"Caret_SetSizeWH", (PyCFunction) _wrap_Caret_SetSizeWH, METH_VARARGS | METH_KEYWORDS },
28394 { (char *)"Caret_SetSize", (PyCFunction) _wrap_Caret_SetSize, METH_VARARGS | METH_KEYWORDS },
28395 { (char *)"Caret_Show", (PyCFunction) _wrap_Caret_Show, METH_VARARGS | METH_KEYWORDS },
28396 { (char *)"Caret_Hide", (PyCFunction) _wrap_Caret_Hide, METH_VARARGS | METH_KEYWORDS },
28397 { (char *)"Caret_swigregister", Caret_swigregister, METH_VARARGS },
28398 { (char *)"Caret_GetBlinkTime", (PyCFunction) _wrap_Caret_GetBlinkTime, METH_VARARGS | METH_KEYWORDS },
28399 { (char *)"Caret_SetBlinkTime", (PyCFunction) _wrap_Caret_SetBlinkTime, METH_VARARGS | METH_KEYWORDS },
28400 { (char *)"new_BusyCursor", (PyCFunction) _wrap_new_BusyCursor, METH_VARARGS | METH_KEYWORDS },
28401 { (char *)"delete_BusyCursor", (PyCFunction) _wrap_delete_BusyCursor, METH_VARARGS | METH_KEYWORDS },
28402 { (char *)"BusyCursor_swigregister", BusyCursor_swigregister, METH_VARARGS },
28403 { (char *)"new_WindowDisabler", (PyCFunction) _wrap_new_WindowDisabler, METH_VARARGS | METH_KEYWORDS },
28404 { (char *)"delete_WindowDisabler", (PyCFunction) _wrap_delete_WindowDisabler, METH_VARARGS | METH_KEYWORDS },
28405 { (char *)"WindowDisabler_swigregister", WindowDisabler_swigregister, METH_VARARGS },
28406 { (char *)"new_BusyInfo", (PyCFunction) _wrap_new_BusyInfo, METH_VARARGS | METH_KEYWORDS },
28407 { (char *)"delete_BusyInfo", (PyCFunction) _wrap_delete_BusyInfo, METH_VARARGS | METH_KEYWORDS },
28408 { (char *)"BusyInfo_swigregister", BusyInfo_swigregister, METH_VARARGS },
28409 { (char *)"new_StopWatch", (PyCFunction) _wrap_new_StopWatch, METH_VARARGS | METH_KEYWORDS },
28410 { (char *)"StopWatch_Start", (PyCFunction) _wrap_StopWatch_Start, METH_VARARGS | METH_KEYWORDS },
28411 { (char *)"StopWatch_Pause", (PyCFunction) _wrap_StopWatch_Pause, METH_VARARGS | METH_KEYWORDS },
28412 { (char *)"StopWatch_Resume", (PyCFunction) _wrap_StopWatch_Resume, METH_VARARGS | METH_KEYWORDS },
28413 { (char *)"StopWatch_Time", (PyCFunction) _wrap_StopWatch_Time, METH_VARARGS | METH_KEYWORDS },
28414 { (char *)"StopWatch_swigregister", StopWatch_swigregister, METH_VARARGS },
28415 { (char *)"new_FileHistory", (PyCFunction) _wrap_new_FileHistory, METH_VARARGS | METH_KEYWORDS },
28416 { (char *)"delete_FileHistory", (PyCFunction) _wrap_delete_FileHistory, METH_VARARGS | METH_KEYWORDS },
28417 { (char *)"FileHistory_AddFileToHistory", (PyCFunction) _wrap_FileHistory_AddFileToHistory, METH_VARARGS | METH_KEYWORDS },
28418 { (char *)"FileHistory_RemoveFileFromHistory", (PyCFunction) _wrap_FileHistory_RemoveFileFromHistory, METH_VARARGS | METH_KEYWORDS },
28419 { (char *)"FileHistory_GetMaxFiles", (PyCFunction) _wrap_FileHistory_GetMaxFiles, METH_VARARGS | METH_KEYWORDS },
28420 { (char *)"FileHistory_UseMenu", (PyCFunction) _wrap_FileHistory_UseMenu, METH_VARARGS | METH_KEYWORDS },
28421 { (char *)"FileHistory_RemoveMenu", (PyCFunction) _wrap_FileHistory_RemoveMenu, METH_VARARGS | METH_KEYWORDS },
28422 { (char *)"FileHistory_Load", (PyCFunction) _wrap_FileHistory_Load, METH_VARARGS | METH_KEYWORDS },
28423 { (char *)"FileHistory_Save", (PyCFunction) _wrap_FileHistory_Save, METH_VARARGS | METH_KEYWORDS },
28424 { (char *)"FileHistory_AddFilesToMenu", (PyCFunction) _wrap_FileHistory_AddFilesToMenu, METH_VARARGS | METH_KEYWORDS },
28425 { (char *)"FileHistory_AddFilesToThisMenu", (PyCFunction) _wrap_FileHistory_AddFilesToThisMenu, METH_VARARGS | METH_KEYWORDS },
28426 { (char *)"FileHistory_GetHistoryFile", (PyCFunction) _wrap_FileHistory_GetHistoryFile, METH_VARARGS | METH_KEYWORDS },
28427 { (char *)"FileHistory_GetCount", (PyCFunction) _wrap_FileHistory_GetCount, METH_VARARGS | METH_KEYWORDS },
28428 { (char *)"FileHistory_swigregister", FileHistory_swigregister, METH_VARARGS },
28429 { (char *)"new_SingleInstanceChecker", (PyCFunction) _wrap_new_SingleInstanceChecker, METH_VARARGS | METH_KEYWORDS },
28430 { (char *)"new_PreSingleInstanceChecker", (PyCFunction) _wrap_new_PreSingleInstanceChecker, METH_VARARGS | METH_KEYWORDS },
28431 { (char *)"delete_SingleInstanceChecker", (PyCFunction) _wrap_delete_SingleInstanceChecker, METH_VARARGS | METH_KEYWORDS },
28432 { (char *)"SingleInstanceChecker_Create", (PyCFunction) _wrap_SingleInstanceChecker_Create, METH_VARARGS | METH_KEYWORDS },
28433 { (char *)"SingleInstanceChecker_IsAnotherRunning", (PyCFunction) _wrap_SingleInstanceChecker_IsAnotherRunning, METH_VARARGS | METH_KEYWORDS },
28434 { (char *)"SingleInstanceChecker_swigregister", SingleInstanceChecker_swigregister, METH_VARARGS },
28435 { (char *)"DrawWindowOnDC", (PyCFunction) _wrap_DrawWindowOnDC, METH_VARARGS | METH_KEYWORDS },
28436 { (char *)"delete_TipProvider", (PyCFunction) _wrap_delete_TipProvider, METH_VARARGS | METH_KEYWORDS },
28437 { (char *)"TipProvider_GetTip", (PyCFunction) _wrap_TipProvider_GetTip, METH_VARARGS | METH_KEYWORDS },
28438 { (char *)"TipProvider_GetCurrentTip", (PyCFunction) _wrap_TipProvider_GetCurrentTip, METH_VARARGS | METH_KEYWORDS },
28439 { (char *)"TipProvider_PreprocessTip", (PyCFunction) _wrap_TipProvider_PreprocessTip, METH_VARARGS | METH_KEYWORDS },
28440 { (char *)"TipProvider_swigregister", TipProvider_swigregister, METH_VARARGS },
28441 { (char *)"new_PyTipProvider", (PyCFunction) _wrap_new_PyTipProvider, METH_VARARGS | METH_KEYWORDS },
28442 { (char *)"PyTipProvider__setCallbackInfo", (PyCFunction) _wrap_PyTipProvider__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
28443 { (char *)"PyTipProvider_swigregister", PyTipProvider_swigregister, METH_VARARGS },
28444 { (char *)"ShowTip", (PyCFunction) _wrap_ShowTip, METH_VARARGS | METH_KEYWORDS },
28445 { (char *)"CreateFileTipProvider", (PyCFunction) _wrap_CreateFileTipProvider, METH_VARARGS | METH_KEYWORDS },
28446 { (char *)"new_Timer", (PyCFunction) _wrap_new_Timer, METH_VARARGS | METH_KEYWORDS },
28447 { (char *)"delete_Timer", (PyCFunction) _wrap_delete_Timer, METH_VARARGS | METH_KEYWORDS },
28448 { (char *)"Timer__setCallbackInfo", (PyCFunction) _wrap_Timer__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
28449 { (char *)"Timer_SetOwner", (PyCFunction) _wrap_Timer_SetOwner, METH_VARARGS | METH_KEYWORDS },
28450 { (char *)"Timer_GetOwner", (PyCFunction) _wrap_Timer_GetOwner, METH_VARARGS | METH_KEYWORDS },
28451 { (char *)"Timer_Start", (PyCFunction) _wrap_Timer_Start, METH_VARARGS | METH_KEYWORDS },
28452 { (char *)"Timer_Stop", (PyCFunction) _wrap_Timer_Stop, METH_VARARGS | METH_KEYWORDS },
28453 { (char *)"Timer_IsRunning", (PyCFunction) _wrap_Timer_IsRunning, METH_VARARGS | METH_KEYWORDS },
28454 { (char *)"Timer_GetInterval", (PyCFunction) _wrap_Timer_GetInterval, METH_VARARGS | METH_KEYWORDS },
28455 { (char *)"Timer_IsOneShot", (PyCFunction) _wrap_Timer_IsOneShot, METH_VARARGS | METH_KEYWORDS },
28456 { (char *)"Timer_GetId", (PyCFunction) _wrap_Timer_GetId, METH_VARARGS | METH_KEYWORDS },
28457 { (char *)"Timer_swigregister", Timer_swigregister, METH_VARARGS },
28458 { (char *)"new_TimerEvent", (PyCFunction) _wrap_new_TimerEvent, METH_VARARGS | METH_KEYWORDS },
28459 { (char *)"TimerEvent_GetInterval", (PyCFunction) _wrap_TimerEvent_GetInterval, METH_VARARGS | METH_KEYWORDS },
28460 { (char *)"TimerEvent_swigregister", TimerEvent_swigregister, METH_VARARGS },
28461 { (char *)"new_TimerRunner", _wrap_new_TimerRunner, METH_VARARGS },
28462 { (char *)"delete_TimerRunner", (PyCFunction) _wrap_delete_TimerRunner, METH_VARARGS | METH_KEYWORDS },
28463 { (char *)"TimerRunner_Start", (PyCFunction) _wrap_TimerRunner_Start, METH_VARARGS | METH_KEYWORDS },
28464 { (char *)"TimerRunner_swigregister", TimerRunner_swigregister, METH_VARARGS },
28465 { (char *)"new_Log", (PyCFunction) _wrap_new_Log, METH_VARARGS | METH_KEYWORDS },
28466 { (char *)"Log_IsEnabled", (PyCFunction) _wrap_Log_IsEnabled, METH_VARARGS | METH_KEYWORDS },
28467 { (char *)"Log_EnableLogging", (PyCFunction) _wrap_Log_EnableLogging, METH_VARARGS | METH_KEYWORDS },
28468 { (char *)"Log_OnLog", (PyCFunction) _wrap_Log_OnLog, METH_VARARGS | METH_KEYWORDS },
28469 { (char *)"Log_Flush", (PyCFunction) _wrap_Log_Flush, METH_VARARGS | METH_KEYWORDS },
28470 { (char *)"Log_FlushActive", (PyCFunction) _wrap_Log_FlushActive, METH_VARARGS | METH_KEYWORDS },
28471 { (char *)"Log_GetActiveTarget", (PyCFunction) _wrap_Log_GetActiveTarget, METH_VARARGS | METH_KEYWORDS },
28472 { (char *)"Log_SetActiveTarget", (PyCFunction) _wrap_Log_SetActiveTarget, METH_VARARGS | METH_KEYWORDS },
28473 { (char *)"Log_Suspend", (PyCFunction) _wrap_Log_Suspend, METH_VARARGS | METH_KEYWORDS },
28474 { (char *)"Log_Resume", (PyCFunction) _wrap_Log_Resume, METH_VARARGS | METH_KEYWORDS },
28475 { (char *)"Log_SetVerbose", (PyCFunction) _wrap_Log_SetVerbose, METH_VARARGS | METH_KEYWORDS },
28476 { (char *)"Log_SetLogLevel", (PyCFunction) _wrap_Log_SetLogLevel, METH_VARARGS | METH_KEYWORDS },
28477 { (char *)"Log_DontCreateOnDemand", (PyCFunction) _wrap_Log_DontCreateOnDemand, METH_VARARGS | METH_KEYWORDS },
28478 { (char *)"Log_SetTraceMask", (PyCFunction) _wrap_Log_SetTraceMask, METH_VARARGS | METH_KEYWORDS },
28479 { (char *)"Log_AddTraceMask", (PyCFunction) _wrap_Log_AddTraceMask, METH_VARARGS | METH_KEYWORDS },
28480 { (char *)"Log_RemoveTraceMask", (PyCFunction) _wrap_Log_RemoveTraceMask, METH_VARARGS | METH_KEYWORDS },
28481 { (char *)"Log_ClearTraceMasks", (PyCFunction) _wrap_Log_ClearTraceMasks, METH_VARARGS | METH_KEYWORDS },
28482 { (char *)"Log_GetTraceMasks", (PyCFunction) _wrap_Log_GetTraceMasks, METH_VARARGS | METH_KEYWORDS },
28483 { (char *)"Log_SetTimestamp", (PyCFunction) _wrap_Log_SetTimestamp, METH_VARARGS | METH_KEYWORDS },
28484 { (char *)"Log_GetVerbose", (PyCFunction) _wrap_Log_GetVerbose, METH_VARARGS | METH_KEYWORDS },
28485 { (char *)"Log_GetTraceMask", (PyCFunction) _wrap_Log_GetTraceMask, METH_VARARGS | METH_KEYWORDS },
28486 { (char *)"Log_IsAllowedTraceMask", (PyCFunction) _wrap_Log_IsAllowedTraceMask, METH_VARARGS | METH_KEYWORDS },
28487 { (char *)"Log_GetLogLevel", (PyCFunction) _wrap_Log_GetLogLevel, METH_VARARGS | METH_KEYWORDS },
28488 { (char *)"Log_GetTimestamp", (PyCFunction) _wrap_Log_GetTimestamp, METH_VARARGS | METH_KEYWORDS },
28489 { (char *)"Log_TimeStamp", (PyCFunction) _wrap_Log_TimeStamp, METH_VARARGS | METH_KEYWORDS },
28490 { (char *)"Log_Destroy", (PyCFunction) _wrap_Log_Destroy, METH_VARARGS | METH_KEYWORDS },
28491 { (char *)"Log_swigregister", Log_swigregister, METH_VARARGS },
28492 { (char *)"new_LogStderr", (PyCFunction) _wrap_new_LogStderr, METH_VARARGS | METH_KEYWORDS },
28493 { (char *)"LogStderr_swigregister", LogStderr_swigregister, METH_VARARGS },
28494 { (char *)"new_LogTextCtrl", (PyCFunction) _wrap_new_LogTextCtrl, METH_VARARGS | METH_KEYWORDS },
28495 { (char *)"LogTextCtrl_swigregister", LogTextCtrl_swigregister, METH_VARARGS },
28496 { (char *)"new_LogGui", (PyCFunction) _wrap_new_LogGui, METH_VARARGS | METH_KEYWORDS },
28497 { (char *)"LogGui_swigregister", LogGui_swigregister, METH_VARARGS },
28498 { (char *)"new_LogWindow", (PyCFunction) _wrap_new_LogWindow, METH_VARARGS | METH_KEYWORDS },
28499 { (char *)"LogWindow_Show", (PyCFunction) _wrap_LogWindow_Show, METH_VARARGS | METH_KEYWORDS },
28500 { (char *)"LogWindow_GetFrame", (PyCFunction) _wrap_LogWindow_GetFrame, METH_VARARGS | METH_KEYWORDS },
28501 { (char *)"LogWindow_GetOldLog", (PyCFunction) _wrap_LogWindow_GetOldLog, METH_VARARGS | METH_KEYWORDS },
28502 { (char *)"LogWindow_IsPassingMessages", (PyCFunction) _wrap_LogWindow_IsPassingMessages, METH_VARARGS | METH_KEYWORDS },
28503 { (char *)"LogWindow_PassMessages", (PyCFunction) _wrap_LogWindow_PassMessages, METH_VARARGS | METH_KEYWORDS },
28504 { (char *)"LogWindow_swigregister", LogWindow_swigregister, METH_VARARGS },
28505 { (char *)"new_LogChain", (PyCFunction) _wrap_new_LogChain, METH_VARARGS | METH_KEYWORDS },
28506 { (char *)"LogChain_SetLog", (PyCFunction) _wrap_LogChain_SetLog, METH_VARARGS | METH_KEYWORDS },
28507 { (char *)"LogChain_PassMessages", (PyCFunction) _wrap_LogChain_PassMessages, METH_VARARGS | METH_KEYWORDS },
28508 { (char *)"LogChain_IsPassingMessages", (PyCFunction) _wrap_LogChain_IsPassingMessages, METH_VARARGS | METH_KEYWORDS },
28509 { (char *)"LogChain_GetOldLog", (PyCFunction) _wrap_LogChain_GetOldLog, METH_VARARGS | METH_KEYWORDS },
28510 { (char *)"LogChain_swigregister", LogChain_swigregister, METH_VARARGS },
28511 { (char *)"SysErrorCode", (PyCFunction) _wrap_SysErrorCode, METH_VARARGS | METH_KEYWORDS },
28512 { (char *)"SysErrorMsg", (PyCFunction) _wrap_SysErrorMsg, METH_VARARGS | METH_KEYWORDS },
28513 { (char *)"LogFatalError", (PyCFunction) _wrap_LogFatalError, METH_VARARGS | METH_KEYWORDS },
28514 { (char *)"LogError", (PyCFunction) _wrap_LogError, METH_VARARGS | METH_KEYWORDS },
28515 { (char *)"LogWarning", (PyCFunction) _wrap_LogWarning, METH_VARARGS | METH_KEYWORDS },
28516 { (char *)"LogMessage", (PyCFunction) _wrap_LogMessage, METH_VARARGS | METH_KEYWORDS },
28517 { (char *)"LogInfo", (PyCFunction) _wrap_LogInfo, METH_VARARGS | METH_KEYWORDS },
28518 { (char *)"LogDebug", (PyCFunction) _wrap_LogDebug, METH_VARARGS | METH_KEYWORDS },
28519 { (char *)"LogVerbose", (PyCFunction) _wrap_LogVerbose, METH_VARARGS | METH_KEYWORDS },
28520 { (char *)"LogStatus", (PyCFunction) _wrap_LogStatus, METH_VARARGS | METH_KEYWORDS },
28521 { (char *)"LogStatusFrame", (PyCFunction) _wrap_LogStatusFrame, METH_VARARGS | METH_KEYWORDS },
28522 { (char *)"LogSysError", (PyCFunction) _wrap_LogSysError, METH_VARARGS | METH_KEYWORDS },
28523 { (char *)"LogTrace", _wrap_LogTrace, METH_VARARGS },
28524 { (char *)"LogGeneric", (PyCFunction) _wrap_LogGeneric, METH_VARARGS | METH_KEYWORDS },
28525 { (char *)"SafeShowMessage", (PyCFunction) _wrap_SafeShowMessage, METH_VARARGS | METH_KEYWORDS },
28526 { (char *)"new_LogNull", (PyCFunction) _wrap_new_LogNull, METH_VARARGS | METH_KEYWORDS },
28527 { (char *)"delete_LogNull", (PyCFunction) _wrap_delete_LogNull, METH_VARARGS | METH_KEYWORDS },
28528 { (char *)"LogNull_swigregister", LogNull_swigregister, METH_VARARGS },
28529 { (char *)"new_PyLog", (PyCFunction) _wrap_new_PyLog, METH_VARARGS | METH_KEYWORDS },
28530 { (char *)"PyLog__setCallbackInfo", (PyCFunction) _wrap_PyLog__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
28531 { (char *)"PyLog_swigregister", PyLog_swigregister, METH_VARARGS },
28532 { (char *)"Process_Kill", (PyCFunction) _wrap_Process_Kill, METH_VARARGS | METH_KEYWORDS },
28533 { (char *)"Process_Exists", (PyCFunction) _wrap_Process_Exists, METH_VARARGS | METH_KEYWORDS },
28534 { (char *)"Process_Open", (PyCFunction) _wrap_Process_Open, METH_VARARGS | METH_KEYWORDS },
28535 { (char *)"new_Process", (PyCFunction) _wrap_new_Process, METH_VARARGS | METH_KEYWORDS },
28536 { (char *)"Process__setCallbackInfo", (PyCFunction) _wrap_Process__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
28537 { (char *)"Process_base_OnTerminate", (PyCFunction) _wrap_Process_base_OnTerminate, METH_VARARGS | METH_KEYWORDS },
28538 { (char *)"Process_Redirect", (PyCFunction) _wrap_Process_Redirect, METH_VARARGS | METH_KEYWORDS },
28539 { (char *)"Process_IsRedirected", (PyCFunction) _wrap_Process_IsRedirected, METH_VARARGS | METH_KEYWORDS },
28540 { (char *)"Process_Detach", (PyCFunction) _wrap_Process_Detach, METH_VARARGS | METH_KEYWORDS },
28541 { (char *)"Process_GetInputStream", (PyCFunction) _wrap_Process_GetInputStream, METH_VARARGS | METH_KEYWORDS },
28542 { (char *)"Process_GetErrorStream", (PyCFunction) _wrap_Process_GetErrorStream, METH_VARARGS | METH_KEYWORDS },
28543 { (char *)"Process_GetOutputStream", (PyCFunction) _wrap_Process_GetOutputStream, METH_VARARGS | METH_KEYWORDS },
28544 { (char *)"Process_CloseOutput", (PyCFunction) _wrap_Process_CloseOutput, METH_VARARGS | METH_KEYWORDS },
28545 { (char *)"Process_IsInputOpened", (PyCFunction) _wrap_Process_IsInputOpened, METH_VARARGS | METH_KEYWORDS },
28546 { (char *)"Process_IsInputAvailable", (PyCFunction) _wrap_Process_IsInputAvailable, METH_VARARGS | METH_KEYWORDS },
28547 { (char *)"Process_IsErrorAvailable", (PyCFunction) _wrap_Process_IsErrorAvailable, METH_VARARGS | METH_KEYWORDS },
28548 { (char *)"Process_swigregister", Process_swigregister, METH_VARARGS },
28549 { (char *)"new_ProcessEvent", (PyCFunction) _wrap_new_ProcessEvent, METH_VARARGS | METH_KEYWORDS },
28550 { (char *)"ProcessEvent_GetPid", (PyCFunction) _wrap_ProcessEvent_GetPid, METH_VARARGS | METH_KEYWORDS },
28551 { (char *)"ProcessEvent_GetExitCode", (PyCFunction) _wrap_ProcessEvent_GetExitCode, METH_VARARGS | METH_KEYWORDS },
28552 { (char *)"ProcessEvent_m_pid_set", (PyCFunction) _wrap_ProcessEvent_m_pid_set, METH_VARARGS | METH_KEYWORDS },
28553 { (char *)"ProcessEvent_m_pid_get", (PyCFunction) _wrap_ProcessEvent_m_pid_get, METH_VARARGS | METH_KEYWORDS },
28554 { (char *)"ProcessEvent_m_exitcode_set", (PyCFunction) _wrap_ProcessEvent_m_exitcode_set, METH_VARARGS | METH_KEYWORDS },
28555 { (char *)"ProcessEvent_m_exitcode_get", (PyCFunction) _wrap_ProcessEvent_m_exitcode_get, METH_VARARGS | METH_KEYWORDS },
28556 { (char *)"ProcessEvent_swigregister", ProcessEvent_swigregister, METH_VARARGS },
28557 { (char *)"Execute", (PyCFunction) _wrap_Execute, METH_VARARGS | METH_KEYWORDS },
28558 { (char *)"new_Joystick", (PyCFunction) _wrap_new_Joystick, METH_VARARGS | METH_KEYWORDS },
28559 { (char *)"delete_Joystick", (PyCFunction) _wrap_delete_Joystick, METH_VARARGS | METH_KEYWORDS },
28560 { (char *)"Joystick_GetPosition", (PyCFunction) _wrap_Joystick_GetPosition, METH_VARARGS | METH_KEYWORDS },
28561 { (char *)"Joystick_GetZPosition", (PyCFunction) _wrap_Joystick_GetZPosition, METH_VARARGS | METH_KEYWORDS },
28562 { (char *)"Joystick_GetButtonState", (PyCFunction) _wrap_Joystick_GetButtonState, METH_VARARGS | METH_KEYWORDS },
28563 { (char *)"Joystick_GetPOVPosition", (PyCFunction) _wrap_Joystick_GetPOVPosition, METH_VARARGS | METH_KEYWORDS },
28564 { (char *)"Joystick_GetPOVCTSPosition", (PyCFunction) _wrap_Joystick_GetPOVCTSPosition, METH_VARARGS | METH_KEYWORDS },
28565 { (char *)"Joystick_GetRudderPosition", (PyCFunction) _wrap_Joystick_GetRudderPosition, METH_VARARGS | METH_KEYWORDS },
28566 { (char *)"Joystick_GetUPosition", (PyCFunction) _wrap_Joystick_GetUPosition, METH_VARARGS | METH_KEYWORDS },
28567 { (char *)"Joystick_GetVPosition", (PyCFunction) _wrap_Joystick_GetVPosition, METH_VARARGS | METH_KEYWORDS },
28568 { (char *)"Joystick_GetMovementThreshold", (PyCFunction) _wrap_Joystick_GetMovementThreshold, METH_VARARGS | METH_KEYWORDS },
28569 { (char *)"Joystick_SetMovementThreshold", (PyCFunction) _wrap_Joystick_SetMovementThreshold, METH_VARARGS | METH_KEYWORDS },
28570 { (char *)"Joystick_IsOk", (PyCFunction) _wrap_Joystick_IsOk, METH_VARARGS | METH_KEYWORDS },
28571 { (char *)"Joystick_GetNumberJoysticks", (PyCFunction) _wrap_Joystick_GetNumberJoysticks, METH_VARARGS | METH_KEYWORDS },
28572 { (char *)"Joystick_GetManufacturerId", (PyCFunction) _wrap_Joystick_GetManufacturerId, METH_VARARGS | METH_KEYWORDS },
28573 { (char *)"Joystick_GetProductId", (PyCFunction) _wrap_Joystick_GetProductId, METH_VARARGS | METH_KEYWORDS },
28574 { (char *)"Joystick_GetProductName", (PyCFunction) _wrap_Joystick_GetProductName, METH_VARARGS | METH_KEYWORDS },
28575 { (char *)"Joystick_GetXMin", (PyCFunction) _wrap_Joystick_GetXMin, METH_VARARGS | METH_KEYWORDS },
28576 { (char *)"Joystick_GetYMin", (PyCFunction) _wrap_Joystick_GetYMin, METH_VARARGS | METH_KEYWORDS },
28577 { (char *)"Joystick_GetZMin", (PyCFunction) _wrap_Joystick_GetZMin, METH_VARARGS | METH_KEYWORDS },
28578 { (char *)"Joystick_GetXMax", (PyCFunction) _wrap_Joystick_GetXMax, METH_VARARGS | METH_KEYWORDS },
28579 { (char *)"Joystick_GetYMax", (PyCFunction) _wrap_Joystick_GetYMax, METH_VARARGS | METH_KEYWORDS },
28580 { (char *)"Joystick_GetZMax", (PyCFunction) _wrap_Joystick_GetZMax, METH_VARARGS | METH_KEYWORDS },
28581 { (char *)"Joystick_GetNumberButtons", (PyCFunction) _wrap_Joystick_GetNumberButtons, METH_VARARGS | METH_KEYWORDS },
28582 { (char *)"Joystick_GetNumberAxes", (PyCFunction) _wrap_Joystick_GetNumberAxes, METH_VARARGS | METH_KEYWORDS },
28583 { (char *)"Joystick_GetMaxButtons", (PyCFunction) _wrap_Joystick_GetMaxButtons, METH_VARARGS | METH_KEYWORDS },
28584 { (char *)"Joystick_GetMaxAxes", (PyCFunction) _wrap_Joystick_GetMaxAxes, METH_VARARGS | METH_KEYWORDS },
28585 { (char *)"Joystick_GetPollingMin", (PyCFunction) _wrap_Joystick_GetPollingMin, METH_VARARGS | METH_KEYWORDS },
28586 { (char *)"Joystick_GetPollingMax", (PyCFunction) _wrap_Joystick_GetPollingMax, METH_VARARGS | METH_KEYWORDS },
28587 { (char *)"Joystick_GetRudderMin", (PyCFunction) _wrap_Joystick_GetRudderMin, METH_VARARGS | METH_KEYWORDS },
28588 { (char *)"Joystick_GetRudderMax", (PyCFunction) _wrap_Joystick_GetRudderMax, METH_VARARGS | METH_KEYWORDS },
28589 { (char *)"Joystick_GetUMin", (PyCFunction) _wrap_Joystick_GetUMin, METH_VARARGS | METH_KEYWORDS },
28590 { (char *)"Joystick_GetUMax", (PyCFunction) _wrap_Joystick_GetUMax, METH_VARARGS | METH_KEYWORDS },
28591 { (char *)"Joystick_GetVMin", (PyCFunction) _wrap_Joystick_GetVMin, METH_VARARGS | METH_KEYWORDS },
28592 { (char *)"Joystick_GetVMax", (PyCFunction) _wrap_Joystick_GetVMax, METH_VARARGS | METH_KEYWORDS },
28593 { (char *)"Joystick_HasRudder", (PyCFunction) _wrap_Joystick_HasRudder, METH_VARARGS | METH_KEYWORDS },
28594 { (char *)"Joystick_HasZ", (PyCFunction) _wrap_Joystick_HasZ, METH_VARARGS | METH_KEYWORDS },
28595 { (char *)"Joystick_HasU", (PyCFunction) _wrap_Joystick_HasU, METH_VARARGS | METH_KEYWORDS },
28596 { (char *)"Joystick_HasV", (PyCFunction) _wrap_Joystick_HasV, METH_VARARGS | METH_KEYWORDS },
28597 { (char *)"Joystick_HasPOV", (PyCFunction) _wrap_Joystick_HasPOV, METH_VARARGS | METH_KEYWORDS },
28598 { (char *)"Joystick_HasPOV4Dir", (PyCFunction) _wrap_Joystick_HasPOV4Dir, METH_VARARGS | METH_KEYWORDS },
28599 { (char *)"Joystick_HasPOVCTS", (PyCFunction) _wrap_Joystick_HasPOVCTS, METH_VARARGS | METH_KEYWORDS },
28600 { (char *)"Joystick_SetCapture", (PyCFunction) _wrap_Joystick_SetCapture, METH_VARARGS | METH_KEYWORDS },
28601 { (char *)"Joystick_ReleaseCapture", (PyCFunction) _wrap_Joystick_ReleaseCapture, METH_VARARGS | METH_KEYWORDS },
28602 { (char *)"Joystick_swigregister", Joystick_swigregister, METH_VARARGS },
28603 { (char *)"JoystickEvent_m_pos_set", (PyCFunction) _wrap_JoystickEvent_m_pos_set, METH_VARARGS | METH_KEYWORDS },
28604 { (char *)"JoystickEvent_m_pos_get", (PyCFunction) _wrap_JoystickEvent_m_pos_get, METH_VARARGS | METH_KEYWORDS },
28605 { (char *)"JoystickEvent_m_zPosition_set", (PyCFunction) _wrap_JoystickEvent_m_zPosition_set, METH_VARARGS | METH_KEYWORDS },
28606 { (char *)"JoystickEvent_m_zPosition_get", (PyCFunction) _wrap_JoystickEvent_m_zPosition_get, METH_VARARGS | METH_KEYWORDS },
28607 { (char *)"JoystickEvent_m_buttonChange_set", (PyCFunction) _wrap_JoystickEvent_m_buttonChange_set, METH_VARARGS | METH_KEYWORDS },
28608 { (char *)"JoystickEvent_m_buttonChange_get", (PyCFunction) _wrap_JoystickEvent_m_buttonChange_get, METH_VARARGS | METH_KEYWORDS },
28609 { (char *)"JoystickEvent_m_buttonState_set", (PyCFunction) _wrap_JoystickEvent_m_buttonState_set, METH_VARARGS | METH_KEYWORDS },
28610 { (char *)"JoystickEvent_m_buttonState_get", (PyCFunction) _wrap_JoystickEvent_m_buttonState_get, METH_VARARGS | METH_KEYWORDS },
28611 { (char *)"JoystickEvent_m_joyStick_set", (PyCFunction) _wrap_JoystickEvent_m_joyStick_set, METH_VARARGS | METH_KEYWORDS },
28612 { (char *)"JoystickEvent_m_joyStick_get", (PyCFunction) _wrap_JoystickEvent_m_joyStick_get, METH_VARARGS | METH_KEYWORDS },
28613 { (char *)"new_JoystickEvent", (PyCFunction) _wrap_new_JoystickEvent, METH_VARARGS | METH_KEYWORDS },
28614 { (char *)"JoystickEvent_GetPosition", (PyCFunction) _wrap_JoystickEvent_GetPosition, METH_VARARGS | METH_KEYWORDS },
28615 { (char *)"JoystickEvent_GetZPosition", (PyCFunction) _wrap_JoystickEvent_GetZPosition, METH_VARARGS | METH_KEYWORDS },
28616 { (char *)"JoystickEvent_GetButtonState", (PyCFunction) _wrap_JoystickEvent_GetButtonState, METH_VARARGS | METH_KEYWORDS },
28617 { (char *)"JoystickEvent_GetButtonChange", (PyCFunction) _wrap_JoystickEvent_GetButtonChange, METH_VARARGS | METH_KEYWORDS },
28618 { (char *)"JoystickEvent_GetJoystick", (PyCFunction) _wrap_JoystickEvent_GetJoystick, METH_VARARGS | METH_KEYWORDS },
28619 { (char *)"JoystickEvent_SetJoystick", (PyCFunction) _wrap_JoystickEvent_SetJoystick, METH_VARARGS | METH_KEYWORDS },
28620 { (char *)"JoystickEvent_SetButtonState", (PyCFunction) _wrap_JoystickEvent_SetButtonState, METH_VARARGS | METH_KEYWORDS },
28621 { (char *)"JoystickEvent_SetButtonChange", (PyCFunction) _wrap_JoystickEvent_SetButtonChange, METH_VARARGS | METH_KEYWORDS },
28622 { (char *)"JoystickEvent_SetPosition", (PyCFunction) _wrap_JoystickEvent_SetPosition, METH_VARARGS | METH_KEYWORDS },
28623 { (char *)"JoystickEvent_SetZPosition", (PyCFunction) _wrap_JoystickEvent_SetZPosition, METH_VARARGS | METH_KEYWORDS },
28624 { (char *)"JoystickEvent_IsButton", (PyCFunction) _wrap_JoystickEvent_IsButton, METH_VARARGS | METH_KEYWORDS },
28625 { (char *)"JoystickEvent_IsMove", (PyCFunction) _wrap_JoystickEvent_IsMove, METH_VARARGS | METH_KEYWORDS },
28626 { (char *)"JoystickEvent_IsZMove", (PyCFunction) _wrap_JoystickEvent_IsZMove, METH_VARARGS | METH_KEYWORDS },
28627 { (char *)"JoystickEvent_ButtonDown", (PyCFunction) _wrap_JoystickEvent_ButtonDown, METH_VARARGS | METH_KEYWORDS },
28628 { (char *)"JoystickEvent_ButtonUp", (PyCFunction) _wrap_JoystickEvent_ButtonUp, METH_VARARGS | METH_KEYWORDS },
28629 { (char *)"JoystickEvent_ButtonIsDown", (PyCFunction) _wrap_JoystickEvent_ButtonIsDown, METH_VARARGS | METH_KEYWORDS },
28630 { (char *)"JoystickEvent_swigregister", JoystickEvent_swigregister, METH_VARARGS },
28631 { (char *)"new_Sound", (PyCFunction) _wrap_new_Sound, METH_VARARGS | METH_KEYWORDS },
28632 { (char *)"new_SoundFromData", (PyCFunction) _wrap_new_SoundFromData, METH_VARARGS | METH_KEYWORDS },
28633 { (char *)"delete_Sound", (PyCFunction) _wrap_delete_Sound, METH_VARARGS | METH_KEYWORDS },
28634 { (char *)"Sound_Create", (PyCFunction) _wrap_Sound_Create, METH_VARARGS | METH_KEYWORDS },
28635 { (char *)"Sound_CreateFromData", (PyCFunction) _wrap_Sound_CreateFromData, METH_VARARGS | METH_KEYWORDS },
28636 { (char *)"Sound_IsOk", (PyCFunction) _wrap_Sound_IsOk, METH_VARARGS | METH_KEYWORDS },
28637 { (char *)"Sound_Play", (PyCFunction) _wrap_Sound_Play, METH_VARARGS | METH_KEYWORDS },
28638 { (char *)"Sound_PlaySound", (PyCFunction) _wrap_Sound_PlaySound, METH_VARARGS | METH_KEYWORDS },
28639 { (char *)"Sound_Stop", (PyCFunction) _wrap_Sound_Stop, METH_VARARGS | METH_KEYWORDS },
28640 { (char *)"Sound_swigregister", Sound_swigregister, METH_VARARGS },
28641 { (char *)"new_FileTypeInfo", (PyCFunction) _wrap_new_FileTypeInfo, METH_VARARGS | METH_KEYWORDS },
28642 { (char *)"new_FileTypeInfoSequence", (PyCFunction) _wrap_new_FileTypeInfoSequence, METH_VARARGS | METH_KEYWORDS },
28643 { (char *)"new_NullFileTypeInfo", (PyCFunction) _wrap_new_NullFileTypeInfo, METH_VARARGS | METH_KEYWORDS },
28644 { (char *)"FileTypeInfo_IsValid", (PyCFunction) _wrap_FileTypeInfo_IsValid, METH_VARARGS | METH_KEYWORDS },
28645 { (char *)"FileTypeInfo_SetIcon", (PyCFunction) _wrap_FileTypeInfo_SetIcon, METH_VARARGS | METH_KEYWORDS },
28646 { (char *)"FileTypeInfo_SetShortDesc", (PyCFunction) _wrap_FileTypeInfo_SetShortDesc, METH_VARARGS | METH_KEYWORDS },
28647 { (char *)"FileTypeInfo_GetMimeType", (PyCFunction) _wrap_FileTypeInfo_GetMimeType, METH_VARARGS | METH_KEYWORDS },
28648 { (char *)"FileTypeInfo_GetOpenCommand", (PyCFunction) _wrap_FileTypeInfo_GetOpenCommand, METH_VARARGS | METH_KEYWORDS },
28649 { (char *)"FileTypeInfo_GetPrintCommand", (PyCFunction) _wrap_FileTypeInfo_GetPrintCommand, METH_VARARGS | METH_KEYWORDS },
28650 { (char *)"FileTypeInfo_GetShortDesc", (PyCFunction) _wrap_FileTypeInfo_GetShortDesc, METH_VARARGS | METH_KEYWORDS },
28651 { (char *)"FileTypeInfo_GetDescription", (PyCFunction) _wrap_FileTypeInfo_GetDescription, METH_VARARGS | METH_KEYWORDS },
28652 { (char *)"FileTypeInfo_GetExtensions", (PyCFunction) _wrap_FileTypeInfo_GetExtensions, METH_VARARGS | METH_KEYWORDS },
28653 { (char *)"FileTypeInfo_GetExtensionsCount", (PyCFunction) _wrap_FileTypeInfo_GetExtensionsCount, METH_VARARGS | METH_KEYWORDS },
28654 { (char *)"FileTypeInfo_GetIconFile", (PyCFunction) _wrap_FileTypeInfo_GetIconFile, METH_VARARGS | METH_KEYWORDS },
28655 { (char *)"FileTypeInfo_GetIconIndex", (PyCFunction) _wrap_FileTypeInfo_GetIconIndex, METH_VARARGS | METH_KEYWORDS },
28656 { (char *)"FileTypeInfo_swigregister", FileTypeInfo_swigregister, METH_VARARGS },
28657 { (char *)"new_FileType", (PyCFunction) _wrap_new_FileType, METH_VARARGS | METH_KEYWORDS },
28658 { (char *)"delete_FileType", (PyCFunction) _wrap_delete_FileType, METH_VARARGS | METH_KEYWORDS },
28659 { (char *)"FileType_GetMimeType", (PyCFunction) _wrap_FileType_GetMimeType, METH_VARARGS | METH_KEYWORDS },
28660 { (char *)"FileType_GetMimeTypes", (PyCFunction) _wrap_FileType_GetMimeTypes, METH_VARARGS | METH_KEYWORDS },
28661 { (char *)"FileType_GetExtensions", (PyCFunction) _wrap_FileType_GetExtensions, METH_VARARGS | METH_KEYWORDS },
28662 { (char *)"FileType_GetIcon", (PyCFunction) _wrap_FileType_GetIcon, METH_VARARGS | METH_KEYWORDS },
28663 { (char *)"FileType_GetIconInfo", (PyCFunction) _wrap_FileType_GetIconInfo, METH_VARARGS | METH_KEYWORDS },
28664 { (char *)"FileType_GetDescription", (PyCFunction) _wrap_FileType_GetDescription, METH_VARARGS | METH_KEYWORDS },
28665 { (char *)"FileType_GetOpenCommand", (PyCFunction) _wrap_FileType_GetOpenCommand, METH_VARARGS | METH_KEYWORDS },
28666 { (char *)"FileType_GetPrintCommand", (PyCFunction) _wrap_FileType_GetPrintCommand, METH_VARARGS | METH_KEYWORDS },
28667 { (char *)"FileType_GetAllCommands", (PyCFunction) _wrap_FileType_GetAllCommands, METH_VARARGS | METH_KEYWORDS },
28668 { (char *)"FileType_SetCommand", (PyCFunction) _wrap_FileType_SetCommand, METH_VARARGS | METH_KEYWORDS },
28669 { (char *)"FileType_SetDefaultIcon", (PyCFunction) _wrap_FileType_SetDefaultIcon, METH_VARARGS | METH_KEYWORDS },
28670 { (char *)"FileType_Unassociate", (PyCFunction) _wrap_FileType_Unassociate, METH_VARARGS | METH_KEYWORDS },
28671 { (char *)"FileType_ExpandCommand", (PyCFunction) _wrap_FileType_ExpandCommand, METH_VARARGS | METH_KEYWORDS },
28672 { (char *)"FileType_swigregister", FileType_swigregister, METH_VARARGS },
28673 { (char *)"MimeTypesManager_IsOfType", (PyCFunction) _wrap_MimeTypesManager_IsOfType, METH_VARARGS | METH_KEYWORDS },
28674 { (char *)"new_MimeTypesManager", (PyCFunction) _wrap_new_MimeTypesManager, METH_VARARGS | METH_KEYWORDS },
28675 { (char *)"MimeTypesManager_Initialize", (PyCFunction) _wrap_MimeTypesManager_Initialize, METH_VARARGS | METH_KEYWORDS },
28676 { (char *)"MimeTypesManager_ClearData", (PyCFunction) _wrap_MimeTypesManager_ClearData, METH_VARARGS | METH_KEYWORDS },
28677 { (char *)"MimeTypesManager_GetFileTypeFromExtension", (PyCFunction) _wrap_MimeTypesManager_GetFileTypeFromExtension, METH_VARARGS | METH_KEYWORDS },
28678 { (char *)"MimeTypesManager_GetFileTypeFromMimeType", (PyCFunction) _wrap_MimeTypesManager_GetFileTypeFromMimeType, METH_VARARGS | METH_KEYWORDS },
28679 { (char *)"MimeTypesManager_ReadMailcap", (PyCFunction) _wrap_MimeTypesManager_ReadMailcap, METH_VARARGS | METH_KEYWORDS },
28680 { (char *)"MimeTypesManager_ReadMimeTypes", (PyCFunction) _wrap_MimeTypesManager_ReadMimeTypes, METH_VARARGS | METH_KEYWORDS },
28681 { (char *)"MimeTypesManager_EnumAllFileTypes", (PyCFunction) _wrap_MimeTypesManager_EnumAllFileTypes, METH_VARARGS | METH_KEYWORDS },
28682 { (char *)"MimeTypesManager_AddFallback", (PyCFunction) _wrap_MimeTypesManager_AddFallback, METH_VARARGS | METH_KEYWORDS },
28683 { (char *)"MimeTypesManager_Associate", (PyCFunction) _wrap_MimeTypesManager_Associate, METH_VARARGS | METH_KEYWORDS },
28684 { (char *)"MimeTypesManager_Unassociate", (PyCFunction) _wrap_MimeTypesManager_Unassociate, METH_VARARGS | METH_KEYWORDS },
28685 { (char *)"delete_MimeTypesManager", (PyCFunction) _wrap_delete_MimeTypesManager, METH_VARARGS | METH_KEYWORDS },
28686 { (char *)"MimeTypesManager_swigregister", MimeTypesManager_swigregister, METH_VARARGS },
28687 { (char *)"new_ArtProvider", (PyCFunction) _wrap_new_ArtProvider, METH_VARARGS | METH_KEYWORDS },
28688 { (char *)"ArtProvider__setCallbackInfo", (PyCFunction) _wrap_ArtProvider__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
28689 { (char *)"ArtProvider_PushProvider", (PyCFunction) _wrap_ArtProvider_PushProvider, METH_VARARGS | METH_KEYWORDS },
28690 { (char *)"ArtProvider_PopProvider", (PyCFunction) _wrap_ArtProvider_PopProvider, METH_VARARGS | METH_KEYWORDS },
28691 { (char *)"ArtProvider_RemoveProvider", (PyCFunction) _wrap_ArtProvider_RemoveProvider, METH_VARARGS | METH_KEYWORDS },
28692 { (char *)"ArtProvider_GetBitmap", (PyCFunction) _wrap_ArtProvider_GetBitmap, METH_VARARGS | METH_KEYWORDS },
28693 { (char *)"ArtProvider_GetIcon", (PyCFunction) _wrap_ArtProvider_GetIcon, METH_VARARGS | METH_KEYWORDS },
28694 { (char *)"ArtProvider_Destroy", (PyCFunction) _wrap_ArtProvider_Destroy, METH_VARARGS | METH_KEYWORDS },
28695 { (char *)"ArtProvider_swigregister", ArtProvider_swigregister, METH_VARARGS },
28696 { (char *)"delete_ConfigBase", (PyCFunction) _wrap_delete_ConfigBase, METH_VARARGS | METH_KEYWORDS },
28697 { (char *)"ConfigBase_Set", (PyCFunction) _wrap_ConfigBase_Set, METH_VARARGS | METH_KEYWORDS },
28698 { (char *)"ConfigBase_Get", (PyCFunction) _wrap_ConfigBase_Get, METH_VARARGS | METH_KEYWORDS },
28699 { (char *)"ConfigBase_Create", (PyCFunction) _wrap_ConfigBase_Create, METH_VARARGS | METH_KEYWORDS },
28700 { (char *)"ConfigBase_DontCreateOnDemand", (PyCFunction) _wrap_ConfigBase_DontCreateOnDemand, METH_VARARGS | METH_KEYWORDS },
28701 { (char *)"ConfigBase_SetPath", (PyCFunction) _wrap_ConfigBase_SetPath, METH_VARARGS | METH_KEYWORDS },
28702 { (char *)"ConfigBase_GetPath", (PyCFunction) _wrap_ConfigBase_GetPath, METH_VARARGS | METH_KEYWORDS },
28703 { (char *)"ConfigBase_GetFirstGroup", (PyCFunction) _wrap_ConfigBase_GetFirstGroup, METH_VARARGS | METH_KEYWORDS },
28704 { (char *)"ConfigBase_GetNextGroup", (PyCFunction) _wrap_ConfigBase_GetNextGroup, METH_VARARGS | METH_KEYWORDS },
28705 { (char *)"ConfigBase_GetFirstEntry", (PyCFunction) _wrap_ConfigBase_GetFirstEntry, METH_VARARGS | METH_KEYWORDS },
28706 { (char *)"ConfigBase_GetNextEntry", (PyCFunction) _wrap_ConfigBase_GetNextEntry, METH_VARARGS | METH_KEYWORDS },
28707 { (char *)"ConfigBase_GetNumberOfEntries", (PyCFunction) _wrap_ConfigBase_GetNumberOfEntries, METH_VARARGS | METH_KEYWORDS },
28708 { (char *)"ConfigBase_GetNumberOfGroups", (PyCFunction) _wrap_ConfigBase_GetNumberOfGroups, METH_VARARGS | METH_KEYWORDS },
28709 { (char *)"ConfigBase_HasGroup", (PyCFunction) _wrap_ConfigBase_HasGroup, METH_VARARGS | METH_KEYWORDS },
28710 { (char *)"ConfigBase_HasEntry", (PyCFunction) _wrap_ConfigBase_HasEntry, METH_VARARGS | METH_KEYWORDS },
28711 { (char *)"ConfigBase_Exists", (PyCFunction) _wrap_ConfigBase_Exists, METH_VARARGS | METH_KEYWORDS },
28712 { (char *)"ConfigBase_GetEntryType", (PyCFunction) _wrap_ConfigBase_GetEntryType, METH_VARARGS | METH_KEYWORDS },
28713 { (char *)"ConfigBase_Read", (PyCFunction) _wrap_ConfigBase_Read, METH_VARARGS | METH_KEYWORDS },
28714 { (char *)"ConfigBase_ReadInt", (PyCFunction) _wrap_ConfigBase_ReadInt, METH_VARARGS | METH_KEYWORDS },
28715 { (char *)"ConfigBase_ReadFloat", (PyCFunction) _wrap_ConfigBase_ReadFloat, METH_VARARGS | METH_KEYWORDS },
28716 { (char *)"ConfigBase_ReadBool", (PyCFunction) _wrap_ConfigBase_ReadBool, METH_VARARGS | METH_KEYWORDS },
28717 { (char *)"ConfigBase_Write", (PyCFunction) _wrap_ConfigBase_Write, METH_VARARGS | METH_KEYWORDS },
28718 { (char *)"ConfigBase_WriteInt", (PyCFunction) _wrap_ConfigBase_WriteInt, METH_VARARGS | METH_KEYWORDS },
28719 { (char *)"ConfigBase_WriteFloat", (PyCFunction) _wrap_ConfigBase_WriteFloat, METH_VARARGS | METH_KEYWORDS },
28720 { (char *)"ConfigBase_WriteBool", (PyCFunction) _wrap_ConfigBase_WriteBool, METH_VARARGS | METH_KEYWORDS },
28721 { (char *)"ConfigBase_Flush", (PyCFunction) _wrap_ConfigBase_Flush, METH_VARARGS | METH_KEYWORDS },
28722 { (char *)"ConfigBase_RenameEntry", (PyCFunction) _wrap_ConfigBase_RenameEntry, METH_VARARGS | METH_KEYWORDS },
28723 { (char *)"ConfigBase_RenameGroup", (PyCFunction) _wrap_ConfigBase_RenameGroup, METH_VARARGS | METH_KEYWORDS },
28724 { (char *)"ConfigBase_DeleteEntry", (PyCFunction) _wrap_ConfigBase_DeleteEntry, METH_VARARGS | METH_KEYWORDS },
28725 { (char *)"ConfigBase_DeleteGroup", (PyCFunction) _wrap_ConfigBase_DeleteGroup, METH_VARARGS | METH_KEYWORDS },
28726 { (char *)"ConfigBase_DeleteAll", (PyCFunction) _wrap_ConfigBase_DeleteAll, METH_VARARGS | METH_KEYWORDS },
28727 { (char *)"ConfigBase_SetExpandEnvVars", (PyCFunction) _wrap_ConfigBase_SetExpandEnvVars, METH_VARARGS | METH_KEYWORDS },
28728 { (char *)"ConfigBase_IsExpandingEnvVars", (PyCFunction) _wrap_ConfigBase_IsExpandingEnvVars, METH_VARARGS | METH_KEYWORDS },
28729 { (char *)"ConfigBase_SetRecordDefaults", (PyCFunction) _wrap_ConfigBase_SetRecordDefaults, METH_VARARGS | METH_KEYWORDS },
28730 { (char *)"ConfigBase_IsRecordingDefaults", (PyCFunction) _wrap_ConfigBase_IsRecordingDefaults, METH_VARARGS | METH_KEYWORDS },
28731 { (char *)"ConfigBase_ExpandEnvVars", (PyCFunction) _wrap_ConfigBase_ExpandEnvVars, METH_VARARGS | METH_KEYWORDS },
28732 { (char *)"ConfigBase_GetAppName", (PyCFunction) _wrap_ConfigBase_GetAppName, METH_VARARGS | METH_KEYWORDS },
28733 { (char *)"ConfigBase_GetVendorName", (PyCFunction) _wrap_ConfigBase_GetVendorName, METH_VARARGS | METH_KEYWORDS },
28734 { (char *)"ConfigBase_SetAppName", (PyCFunction) _wrap_ConfigBase_SetAppName, METH_VARARGS | METH_KEYWORDS },
28735 { (char *)"ConfigBase_SetVendorName", (PyCFunction) _wrap_ConfigBase_SetVendorName, METH_VARARGS | METH_KEYWORDS },
28736 { (char *)"ConfigBase_SetStyle", (PyCFunction) _wrap_ConfigBase_SetStyle, METH_VARARGS | METH_KEYWORDS },
28737 { (char *)"ConfigBase_GetStyle", (PyCFunction) _wrap_ConfigBase_GetStyle, METH_VARARGS | METH_KEYWORDS },
28738 { (char *)"ConfigBase_swigregister", ConfigBase_swigregister, METH_VARARGS },
28739 { (char *)"new_Config", (PyCFunction) _wrap_new_Config, METH_VARARGS | METH_KEYWORDS },
28740 { (char *)"delete_Config", (PyCFunction) _wrap_delete_Config, METH_VARARGS | METH_KEYWORDS },
28741 { (char *)"Config_swigregister", Config_swigregister, METH_VARARGS },
28742 { (char *)"new_FileConfig", (PyCFunction) _wrap_new_FileConfig, METH_VARARGS | METH_KEYWORDS },
28743 { (char *)"delete_FileConfig", (PyCFunction) _wrap_delete_FileConfig, METH_VARARGS | METH_KEYWORDS },
28744 { (char *)"FileConfig_swigregister", FileConfig_swigregister, METH_VARARGS },
28745 { (char *)"new_ConfigPathChanger", (PyCFunction) _wrap_new_ConfigPathChanger, METH_VARARGS | METH_KEYWORDS },
28746 { (char *)"delete_ConfigPathChanger", (PyCFunction) _wrap_delete_ConfigPathChanger, METH_VARARGS | METH_KEYWORDS },
28747 { (char *)"ConfigPathChanger_Name", (PyCFunction) _wrap_ConfigPathChanger_Name, METH_VARARGS | METH_KEYWORDS },
28748 { (char *)"ConfigPathChanger_swigregister", ConfigPathChanger_swigregister, METH_VARARGS },
28749 { (char *)"ExpandEnvVars", (PyCFunction) _wrap_ExpandEnvVars, METH_VARARGS | METH_KEYWORDS },
28750 { (char *)"DateTime_SetCountry", (PyCFunction) _wrap_DateTime_SetCountry, METH_VARARGS | METH_KEYWORDS },
28751 { (char *)"DateTime_GetCountry", (PyCFunction) _wrap_DateTime_GetCountry, METH_VARARGS | METH_KEYWORDS },
28752 { (char *)"DateTime_IsWestEuropeanCountry", (PyCFunction) _wrap_DateTime_IsWestEuropeanCountry, METH_VARARGS | METH_KEYWORDS },
28753 { (char *)"DateTime_GetCurrentYear", (PyCFunction) _wrap_DateTime_GetCurrentYear, METH_VARARGS | METH_KEYWORDS },
28754 { (char *)"DateTime_ConvertYearToBC", (PyCFunction) _wrap_DateTime_ConvertYearToBC, METH_VARARGS | METH_KEYWORDS },
28755 { (char *)"DateTime_GetCurrentMonth", (PyCFunction) _wrap_DateTime_GetCurrentMonth, METH_VARARGS | METH_KEYWORDS },
28756 { (char *)"DateTime_IsLeapYear", (PyCFunction) _wrap_DateTime_IsLeapYear, METH_VARARGS | METH_KEYWORDS },
28757 { (char *)"DateTime_GetCentury", (PyCFunction) _wrap_DateTime_GetCentury, METH_VARARGS | METH_KEYWORDS },
28758 { (char *)"DateTime_GetNumberOfDaysinYear", (PyCFunction) _wrap_DateTime_GetNumberOfDaysinYear, METH_VARARGS | METH_KEYWORDS },
28759 { (char *)"DateTime_GetNumberOfDaysInMonth", (PyCFunction) _wrap_DateTime_GetNumberOfDaysInMonth, METH_VARARGS | METH_KEYWORDS },
28760 { (char *)"DateTime_GetMonthName", (PyCFunction) _wrap_DateTime_GetMonthName, METH_VARARGS | METH_KEYWORDS },
28761 { (char *)"DateTime_GetWeekDayName", (PyCFunction) _wrap_DateTime_GetWeekDayName, METH_VARARGS | METH_KEYWORDS },
28762 { (char *)"DateTime_GetAmPmStrings", (PyCFunction) _wrap_DateTime_GetAmPmStrings, METH_VARARGS | METH_KEYWORDS },
28763 { (char *)"DateTime_IsDSTApplicable", (PyCFunction) _wrap_DateTime_IsDSTApplicable, METH_VARARGS | METH_KEYWORDS },
28764 { (char *)"DateTime_GetBeginDST", (PyCFunction) _wrap_DateTime_GetBeginDST, METH_VARARGS | METH_KEYWORDS },
28765 { (char *)"DateTime_GetEndDST", (PyCFunction) _wrap_DateTime_GetEndDST, METH_VARARGS | METH_KEYWORDS },
28766 { (char *)"DateTime_Now", (PyCFunction) _wrap_DateTime_Now, METH_VARARGS | METH_KEYWORDS },
28767 { (char *)"DateTime_UNow", (PyCFunction) _wrap_DateTime_UNow, METH_VARARGS | METH_KEYWORDS },
28768 { (char *)"DateTime_Today", (PyCFunction) _wrap_DateTime_Today, METH_VARARGS | METH_KEYWORDS },
28769 { (char *)"new_DateTime", (PyCFunction) _wrap_new_DateTime, METH_VARARGS | METH_KEYWORDS },
28770 { (char *)"new_DateTimeFromTimeT", (PyCFunction) _wrap_new_DateTimeFromTimeT, METH_VARARGS | METH_KEYWORDS },
28771 { (char *)"new_DateTimeFromJDN", (PyCFunction) _wrap_new_DateTimeFromJDN, METH_VARARGS | METH_KEYWORDS },
28772 { (char *)"new_DateTimeFromHMS", (PyCFunction) _wrap_new_DateTimeFromHMS, METH_VARARGS | METH_KEYWORDS },
28773 { (char *)"new_DateTimeFromDMY", (PyCFunction) _wrap_new_DateTimeFromDMY, METH_VARARGS | METH_KEYWORDS },
28774 { (char *)"delete_DateTime", (PyCFunction) _wrap_delete_DateTime, METH_VARARGS | METH_KEYWORDS },
28775 { (char *)"DateTime_SetToCurrent", (PyCFunction) _wrap_DateTime_SetToCurrent, METH_VARARGS | METH_KEYWORDS },
28776 { (char *)"DateTime_SetTimeT", (PyCFunction) _wrap_DateTime_SetTimeT, METH_VARARGS | METH_KEYWORDS },
28777 { (char *)"DateTime_SetJDN", (PyCFunction) _wrap_DateTime_SetJDN, METH_VARARGS | METH_KEYWORDS },
28778 { (char *)"DateTime_SetHMS", (PyCFunction) _wrap_DateTime_SetHMS, METH_VARARGS | METH_KEYWORDS },
28779 { (char *)"DateTime_Set", (PyCFunction) _wrap_DateTime_Set, METH_VARARGS | METH_KEYWORDS },
28780 { (char *)"DateTime_ResetTime", (PyCFunction) _wrap_DateTime_ResetTime, METH_VARARGS | METH_KEYWORDS },
28781 { (char *)"DateTime_SetYear", (PyCFunction) _wrap_DateTime_SetYear, METH_VARARGS | METH_KEYWORDS },
28782 { (char *)"DateTime_SetMonth", (PyCFunction) _wrap_DateTime_SetMonth, METH_VARARGS | METH_KEYWORDS },
28783 { (char *)"DateTime_SetDay", (PyCFunction) _wrap_DateTime_SetDay, METH_VARARGS | METH_KEYWORDS },
28784 { (char *)"DateTime_SetHour", (PyCFunction) _wrap_DateTime_SetHour, METH_VARARGS | METH_KEYWORDS },
28785 { (char *)"DateTime_SetMinute", (PyCFunction) _wrap_DateTime_SetMinute, METH_VARARGS | METH_KEYWORDS },
28786 { (char *)"DateTime_SetSecond", (PyCFunction) _wrap_DateTime_SetSecond, METH_VARARGS | METH_KEYWORDS },
28787 { (char *)"DateTime_SetMillisecond", (PyCFunction) _wrap_DateTime_SetMillisecond, METH_VARARGS | METH_KEYWORDS },
28788 { (char *)"DateTime_SetToWeekDayInSameWeek", (PyCFunction) _wrap_DateTime_SetToWeekDayInSameWeek, METH_VARARGS | METH_KEYWORDS },
28789 { (char *)"DateTime_GetWeekDayInSameWeek", (PyCFunction) _wrap_DateTime_GetWeekDayInSameWeek, METH_VARARGS | METH_KEYWORDS },
28790 { (char *)"DateTime_SetToNextWeekDay", (PyCFunction) _wrap_DateTime_SetToNextWeekDay, METH_VARARGS | METH_KEYWORDS },
28791 { (char *)"DateTime_GetNextWeekDay", (PyCFunction) _wrap_DateTime_GetNextWeekDay, METH_VARARGS | METH_KEYWORDS },
28792 { (char *)"DateTime_SetToPrevWeekDay", (PyCFunction) _wrap_DateTime_SetToPrevWeekDay, METH_VARARGS | METH_KEYWORDS },
28793 { (char *)"DateTime_GetPrevWeekDay", (PyCFunction) _wrap_DateTime_GetPrevWeekDay, METH_VARARGS | METH_KEYWORDS },
28794 { (char *)"DateTime_SetToWeekDay", (PyCFunction) _wrap_DateTime_SetToWeekDay, METH_VARARGS | METH_KEYWORDS },
28795 { (char *)"DateTime_SetToLastWeekDay", (PyCFunction) _wrap_DateTime_SetToLastWeekDay, METH_VARARGS | METH_KEYWORDS },
28796 { (char *)"DateTime_GetLastWeekDay", (PyCFunction) _wrap_DateTime_GetLastWeekDay, METH_VARARGS | METH_KEYWORDS },
28797 { (char *)"DateTime_SetToTheWeek", (PyCFunction) _wrap_DateTime_SetToTheWeek, METH_VARARGS | METH_KEYWORDS },
28798 { (char *)"DateTime_GetWeek", (PyCFunction) _wrap_DateTime_GetWeek, METH_VARARGS | METH_KEYWORDS },
28799 { (char *)"DateTime_SetToLastMonthDay", (PyCFunction) _wrap_DateTime_SetToLastMonthDay, METH_VARARGS | METH_KEYWORDS },
28800 { (char *)"DateTime_GetLastMonthDay", (PyCFunction) _wrap_DateTime_GetLastMonthDay, METH_VARARGS | METH_KEYWORDS },
28801 { (char *)"DateTime_SetToYearDay", (PyCFunction) _wrap_DateTime_SetToYearDay, METH_VARARGS | METH_KEYWORDS },
28802 { (char *)"DateTime_GetYearDay", (PyCFunction) _wrap_DateTime_GetYearDay, METH_VARARGS | METH_KEYWORDS },
28803 { (char *)"DateTime_GetJulianDayNumber", (PyCFunction) _wrap_DateTime_GetJulianDayNumber, METH_VARARGS | METH_KEYWORDS },
28804 { (char *)"DateTime_GetJDN", (PyCFunction) _wrap_DateTime_GetJDN, METH_VARARGS | METH_KEYWORDS },
28805 { (char *)"DateTime_GetModifiedJulianDayNumber", (PyCFunction) _wrap_DateTime_GetModifiedJulianDayNumber, METH_VARARGS | METH_KEYWORDS },
28806 { (char *)"DateTime_GetMJD", (PyCFunction) _wrap_DateTime_GetMJD, METH_VARARGS | METH_KEYWORDS },
28807 { (char *)"DateTime_GetRataDie", (PyCFunction) _wrap_DateTime_GetRataDie, METH_VARARGS | METH_KEYWORDS },
28808 { (char *)"DateTime_ToTimezone", (PyCFunction) _wrap_DateTime_ToTimezone, METH_VARARGS | METH_KEYWORDS },
28809 { (char *)"DateTime_MakeTimezone", (PyCFunction) _wrap_DateTime_MakeTimezone, METH_VARARGS | METH_KEYWORDS },
28810 { (char *)"DateTime_ToGMT", (PyCFunction) _wrap_DateTime_ToGMT, METH_VARARGS | METH_KEYWORDS },
28811 { (char *)"DateTime_MakeGMT", (PyCFunction) _wrap_DateTime_MakeGMT, METH_VARARGS | METH_KEYWORDS },
28812 { (char *)"DateTime_IsDST", (PyCFunction) _wrap_DateTime_IsDST, METH_VARARGS | METH_KEYWORDS },
28813 { (char *)"DateTime_IsValid", (PyCFunction) _wrap_DateTime_IsValid, METH_VARARGS | METH_KEYWORDS },
28814 { (char *)"DateTime_GetTicks", (PyCFunction) _wrap_DateTime_GetTicks, METH_VARARGS | METH_KEYWORDS },
28815 { (char *)"DateTime_GetYear", (PyCFunction) _wrap_DateTime_GetYear, METH_VARARGS | METH_KEYWORDS },
28816 { (char *)"DateTime_GetMonth", (PyCFunction) _wrap_DateTime_GetMonth, METH_VARARGS | METH_KEYWORDS },
28817 { (char *)"DateTime_GetDay", (PyCFunction) _wrap_DateTime_GetDay, METH_VARARGS | METH_KEYWORDS },
28818 { (char *)"DateTime_GetWeekDay", (PyCFunction) _wrap_DateTime_GetWeekDay, METH_VARARGS | METH_KEYWORDS },
28819 { (char *)"DateTime_GetHour", (PyCFunction) _wrap_DateTime_GetHour, METH_VARARGS | METH_KEYWORDS },
28820 { (char *)"DateTime_GetMinute", (PyCFunction) _wrap_DateTime_GetMinute, METH_VARARGS | METH_KEYWORDS },
28821 { (char *)"DateTime_GetSecond", (PyCFunction) _wrap_DateTime_GetSecond, METH_VARARGS | METH_KEYWORDS },
28822 { (char *)"DateTime_GetMillisecond", (PyCFunction) _wrap_DateTime_GetMillisecond, METH_VARARGS | METH_KEYWORDS },
28823 { (char *)"DateTime_GetDayOfYear", (PyCFunction) _wrap_DateTime_GetDayOfYear, METH_VARARGS | METH_KEYWORDS },
28824 { (char *)"DateTime_GetWeekOfYear", (PyCFunction) _wrap_DateTime_GetWeekOfYear, METH_VARARGS | METH_KEYWORDS },
28825 { (char *)"DateTime_GetWeekOfMonth", (PyCFunction) _wrap_DateTime_GetWeekOfMonth, METH_VARARGS | METH_KEYWORDS },
28826 { (char *)"DateTime_IsWorkDay", (PyCFunction) _wrap_DateTime_IsWorkDay, METH_VARARGS | METH_KEYWORDS },
28827 { (char *)"DateTime_IsEqualTo", (PyCFunction) _wrap_DateTime_IsEqualTo, METH_VARARGS | METH_KEYWORDS },
28828 { (char *)"DateTime_IsEarlierThan", (PyCFunction) _wrap_DateTime_IsEarlierThan, METH_VARARGS | METH_KEYWORDS },
28829 { (char *)"DateTime_IsLaterThan", (PyCFunction) _wrap_DateTime_IsLaterThan, METH_VARARGS | METH_KEYWORDS },
28830 { (char *)"DateTime_IsStrictlyBetween", (PyCFunction) _wrap_DateTime_IsStrictlyBetween, METH_VARARGS | METH_KEYWORDS },
28831 { (char *)"DateTime_IsBetween", (PyCFunction) _wrap_DateTime_IsBetween, METH_VARARGS | METH_KEYWORDS },
28832 { (char *)"DateTime_IsSameDate", (PyCFunction) _wrap_DateTime_IsSameDate, METH_VARARGS | METH_KEYWORDS },
28833 { (char *)"DateTime_IsSameTime", (PyCFunction) _wrap_DateTime_IsSameTime, METH_VARARGS | METH_KEYWORDS },
28834 { (char *)"DateTime_IsEqualUpTo", (PyCFunction) _wrap_DateTime_IsEqualUpTo, METH_VARARGS | METH_KEYWORDS },
28835 { (char *)"DateTime_AddTS", (PyCFunction) _wrap_DateTime_AddTS, METH_VARARGS | METH_KEYWORDS },
28836 { (char *)"DateTime_AddDS", (PyCFunction) _wrap_DateTime_AddDS, METH_VARARGS | METH_KEYWORDS },
28837 { (char *)"DateTime_SubtractTS", (PyCFunction) _wrap_DateTime_SubtractTS, METH_VARARGS | METH_KEYWORDS },
28838 { (char *)"DateTime_SubtractDS", (PyCFunction) _wrap_DateTime_SubtractDS, METH_VARARGS | METH_KEYWORDS },
28839 { (char *)"DateTime_Subtract", (PyCFunction) _wrap_DateTime_Subtract, METH_VARARGS | METH_KEYWORDS },
28840 { (char *)"DateTime___iadd__", _wrap_DateTime___iadd__, METH_VARARGS },
28841 { (char *)"DateTime___isub__", _wrap_DateTime___isub__, METH_VARARGS },
28842 { (char *)"DateTime___add__", _wrap_DateTime___add__, METH_VARARGS },
28843 { (char *)"DateTime___sub__", _wrap_DateTime___sub__, METH_VARARGS },
28844 { (char *)"DateTime___lt__", _wrap_DateTime___lt__, METH_VARARGS },
28845 { (char *)"DateTime___le__", _wrap_DateTime___le__, METH_VARARGS },
28846 { (char *)"DateTime___gt__", _wrap_DateTime___gt__, METH_VARARGS },
28847 { (char *)"DateTime___ge__", _wrap_DateTime___ge__, METH_VARARGS },
28848 { (char *)"DateTime___eq__", _wrap_DateTime___eq__, METH_VARARGS },
28849 { (char *)"DateTime___ne__", _wrap_DateTime___ne__, METH_VARARGS },
28850 { (char *)"DateTime_ParseRfc822Date", (PyCFunction) _wrap_DateTime_ParseRfc822Date, METH_VARARGS | METH_KEYWORDS },
28851 { (char *)"DateTime_ParseFormat", (PyCFunction) _wrap_DateTime_ParseFormat, METH_VARARGS | METH_KEYWORDS },
28852 { (char *)"DateTime_ParseDateTime", (PyCFunction) _wrap_DateTime_ParseDateTime, METH_VARARGS | METH_KEYWORDS },
28853 { (char *)"DateTime_ParseDate", (PyCFunction) _wrap_DateTime_ParseDate, METH_VARARGS | METH_KEYWORDS },
28854 { (char *)"DateTime_ParseTime", (PyCFunction) _wrap_DateTime_ParseTime, METH_VARARGS | METH_KEYWORDS },
28855 { (char *)"DateTime_Format", (PyCFunction) _wrap_DateTime_Format, METH_VARARGS | METH_KEYWORDS },
28856 { (char *)"DateTime_FormatDate", (PyCFunction) _wrap_DateTime_FormatDate, METH_VARARGS | METH_KEYWORDS },
28857 { (char *)"DateTime_FormatTime", (PyCFunction) _wrap_DateTime_FormatTime, METH_VARARGS | METH_KEYWORDS },
28858 { (char *)"DateTime_FormatISODate", (PyCFunction) _wrap_DateTime_FormatISODate, METH_VARARGS | METH_KEYWORDS },
28859 { (char *)"DateTime_FormatISOTime", (PyCFunction) _wrap_DateTime_FormatISOTime, METH_VARARGS | METH_KEYWORDS },
28860 { (char *)"DateTime_swigregister", DateTime_swigregister, METH_VARARGS },
28861 { (char *)"TimeSpan_Seconds", (PyCFunction) _wrap_TimeSpan_Seconds, METH_VARARGS | METH_KEYWORDS },
28862 { (char *)"TimeSpan_Second", (PyCFunction) _wrap_TimeSpan_Second, METH_VARARGS | METH_KEYWORDS },
28863 { (char *)"TimeSpan_Minutes", (PyCFunction) _wrap_TimeSpan_Minutes, METH_VARARGS | METH_KEYWORDS },
28864 { (char *)"TimeSpan_Minute", (PyCFunction) _wrap_TimeSpan_Minute, METH_VARARGS | METH_KEYWORDS },
28865 { (char *)"TimeSpan_Hours", (PyCFunction) _wrap_TimeSpan_Hours, METH_VARARGS | METH_KEYWORDS },
28866 { (char *)"TimeSpan_Hour", (PyCFunction) _wrap_TimeSpan_Hour, METH_VARARGS | METH_KEYWORDS },
28867 { (char *)"TimeSpan_Days", (PyCFunction) _wrap_TimeSpan_Days, METH_VARARGS | METH_KEYWORDS },
28868 { (char *)"TimeSpan_Day", (PyCFunction) _wrap_TimeSpan_Day, METH_VARARGS | METH_KEYWORDS },
28869 { (char *)"TimeSpan_Weeks", (PyCFunction) _wrap_TimeSpan_Weeks, METH_VARARGS | METH_KEYWORDS },
28870 { (char *)"TimeSpan_Week", (PyCFunction) _wrap_TimeSpan_Week, METH_VARARGS | METH_KEYWORDS },
28871 { (char *)"new_TimeSpan", (PyCFunction) _wrap_new_TimeSpan, METH_VARARGS | METH_KEYWORDS },
28872 { (char *)"delete_TimeSpan", (PyCFunction) _wrap_delete_TimeSpan, METH_VARARGS | METH_KEYWORDS },
28873 { (char *)"TimeSpan_Add", (PyCFunction) _wrap_TimeSpan_Add, METH_VARARGS | METH_KEYWORDS },
28874 { (char *)"TimeSpan_Subtract", (PyCFunction) _wrap_TimeSpan_Subtract, METH_VARARGS | METH_KEYWORDS },
28875 { (char *)"TimeSpan_Multiply", (PyCFunction) _wrap_TimeSpan_Multiply, METH_VARARGS | METH_KEYWORDS },
28876 { (char *)"TimeSpan_Neg", (PyCFunction) _wrap_TimeSpan_Neg, METH_VARARGS | METH_KEYWORDS },
28877 { (char *)"TimeSpan_Abs", (PyCFunction) _wrap_TimeSpan_Abs, METH_VARARGS | METH_KEYWORDS },
28878 { (char *)"TimeSpan___iadd__", (PyCFunction) _wrap_TimeSpan___iadd__, METH_VARARGS | METH_KEYWORDS },
28879 { (char *)"TimeSpan___isub__", (PyCFunction) _wrap_TimeSpan___isub__, METH_VARARGS | METH_KEYWORDS },
28880 { (char *)"TimeSpan___imul__", (PyCFunction) _wrap_TimeSpan___imul__, METH_VARARGS | METH_KEYWORDS },
28881 { (char *)"TimeSpan___neg__", (PyCFunction) _wrap_TimeSpan___neg__, METH_VARARGS | METH_KEYWORDS },
28882 { (char *)"TimeSpan___add__", (PyCFunction) _wrap_TimeSpan___add__, METH_VARARGS | METH_KEYWORDS },
28883 { (char *)"TimeSpan___sub__", (PyCFunction) _wrap_TimeSpan___sub__, METH_VARARGS | METH_KEYWORDS },
28884 { (char *)"TimeSpan___mul__", (PyCFunction) _wrap_TimeSpan___mul__, METH_VARARGS | METH_KEYWORDS },
28885 { (char *)"TimeSpan___rmul__", (PyCFunction) _wrap_TimeSpan___rmul__, METH_VARARGS | METH_KEYWORDS },
28886 { (char *)"TimeSpan___lt__", (PyCFunction) _wrap_TimeSpan___lt__, METH_VARARGS | METH_KEYWORDS },
28887 { (char *)"TimeSpan___le__", (PyCFunction) _wrap_TimeSpan___le__, METH_VARARGS | METH_KEYWORDS },
28888 { (char *)"TimeSpan___gt__", (PyCFunction) _wrap_TimeSpan___gt__, METH_VARARGS | METH_KEYWORDS },
28889 { (char *)"TimeSpan___ge__", (PyCFunction) _wrap_TimeSpan___ge__, METH_VARARGS | METH_KEYWORDS },
28890 { (char *)"TimeSpan___eq__", (PyCFunction) _wrap_TimeSpan___eq__, METH_VARARGS | METH_KEYWORDS },
28891 { (char *)"TimeSpan___ne__", (PyCFunction) _wrap_TimeSpan___ne__, METH_VARARGS | METH_KEYWORDS },
28892 { (char *)"TimeSpan_IsNull", (PyCFunction) _wrap_TimeSpan_IsNull, METH_VARARGS | METH_KEYWORDS },
28893 { (char *)"TimeSpan_IsPositive", (PyCFunction) _wrap_TimeSpan_IsPositive, METH_VARARGS | METH_KEYWORDS },
28894 { (char *)"TimeSpan_IsNegative", (PyCFunction) _wrap_TimeSpan_IsNegative, METH_VARARGS | METH_KEYWORDS },
28895 { (char *)"TimeSpan_IsEqualTo", (PyCFunction) _wrap_TimeSpan_IsEqualTo, METH_VARARGS | METH_KEYWORDS },
28896 { (char *)"TimeSpan_IsLongerThan", (PyCFunction) _wrap_TimeSpan_IsLongerThan, METH_VARARGS | METH_KEYWORDS },
28897 { (char *)"TimeSpan_IsShorterThan", (PyCFunction) _wrap_TimeSpan_IsShorterThan, METH_VARARGS | METH_KEYWORDS },
28898 { (char *)"TimeSpan_GetWeeks", (PyCFunction) _wrap_TimeSpan_GetWeeks, METH_VARARGS | METH_KEYWORDS },
28899 { (char *)"TimeSpan_GetDays", (PyCFunction) _wrap_TimeSpan_GetDays, METH_VARARGS | METH_KEYWORDS },
28900 { (char *)"TimeSpan_GetHours", (PyCFunction) _wrap_TimeSpan_GetHours, METH_VARARGS | METH_KEYWORDS },
28901 { (char *)"TimeSpan_GetMinutes", (PyCFunction) _wrap_TimeSpan_GetMinutes, METH_VARARGS | METH_KEYWORDS },
28902 { (char *)"TimeSpan_GetSeconds", (PyCFunction) _wrap_TimeSpan_GetSeconds, METH_VARARGS | METH_KEYWORDS },
28903 { (char *)"TimeSpan_GetMilliseconds", (PyCFunction) _wrap_TimeSpan_GetMilliseconds, METH_VARARGS | METH_KEYWORDS },
28904 { (char *)"TimeSpan_Format", (PyCFunction) _wrap_TimeSpan_Format, METH_VARARGS | METH_KEYWORDS },
28905 { (char *)"TimeSpan_swigregister", TimeSpan_swigregister, METH_VARARGS },
28906 { (char *)"new_DateSpan", (PyCFunction) _wrap_new_DateSpan, METH_VARARGS | METH_KEYWORDS },
28907 { (char *)"delete_DateSpan", (PyCFunction) _wrap_delete_DateSpan, METH_VARARGS | METH_KEYWORDS },
28908 { (char *)"DateSpan_Days", (PyCFunction) _wrap_DateSpan_Days, METH_VARARGS | METH_KEYWORDS },
28909 { (char *)"DateSpan_Day", (PyCFunction) _wrap_DateSpan_Day, METH_VARARGS | METH_KEYWORDS },
28910 { (char *)"DateSpan_Weeks", (PyCFunction) _wrap_DateSpan_Weeks, METH_VARARGS | METH_KEYWORDS },
28911 { (char *)"DateSpan_Week", (PyCFunction) _wrap_DateSpan_Week, METH_VARARGS | METH_KEYWORDS },
28912 { (char *)"DateSpan_Months", (PyCFunction) _wrap_DateSpan_Months, METH_VARARGS | METH_KEYWORDS },
28913 { (char *)"DateSpan_Month", (PyCFunction) _wrap_DateSpan_Month, METH_VARARGS | METH_KEYWORDS },
28914 { (char *)"DateSpan_Years", (PyCFunction) _wrap_DateSpan_Years, METH_VARARGS | METH_KEYWORDS },
28915 { (char *)"DateSpan_Year", (PyCFunction) _wrap_DateSpan_Year, METH_VARARGS | METH_KEYWORDS },
28916 { (char *)"DateSpan_SetYears", (PyCFunction) _wrap_DateSpan_SetYears, METH_VARARGS | METH_KEYWORDS },
28917 { (char *)"DateSpan_SetMonths", (PyCFunction) _wrap_DateSpan_SetMonths, METH_VARARGS | METH_KEYWORDS },
28918 { (char *)"DateSpan_SetWeeks", (PyCFunction) _wrap_DateSpan_SetWeeks, METH_VARARGS | METH_KEYWORDS },
28919 { (char *)"DateSpan_SetDays", (PyCFunction) _wrap_DateSpan_SetDays, METH_VARARGS | METH_KEYWORDS },
28920 { (char *)"DateSpan_GetYears", (PyCFunction) _wrap_DateSpan_GetYears, METH_VARARGS | METH_KEYWORDS },
28921 { (char *)"DateSpan_GetMonths", (PyCFunction) _wrap_DateSpan_GetMonths, METH_VARARGS | METH_KEYWORDS },
28922 { (char *)"DateSpan_GetWeeks", (PyCFunction) _wrap_DateSpan_GetWeeks, METH_VARARGS | METH_KEYWORDS },
28923 { (char *)"DateSpan_GetDays", (PyCFunction) _wrap_DateSpan_GetDays, METH_VARARGS | METH_KEYWORDS },
28924 { (char *)"DateSpan_GetTotalDays", (PyCFunction) _wrap_DateSpan_GetTotalDays, METH_VARARGS | METH_KEYWORDS },
28925 { (char *)"DateSpan_Add", (PyCFunction) _wrap_DateSpan_Add, METH_VARARGS | METH_KEYWORDS },
28926 { (char *)"DateSpan_Subtract", (PyCFunction) _wrap_DateSpan_Subtract, METH_VARARGS | METH_KEYWORDS },
28927 { (char *)"DateSpan_Neg", (PyCFunction) _wrap_DateSpan_Neg, METH_VARARGS | METH_KEYWORDS },
28928 { (char *)"DateSpan_Multiply", (PyCFunction) _wrap_DateSpan_Multiply, METH_VARARGS | METH_KEYWORDS },
28929 { (char *)"DateSpan___iadd__", (PyCFunction) _wrap_DateSpan___iadd__, METH_VARARGS | METH_KEYWORDS },
28930 { (char *)"DateSpan___isub__", (PyCFunction) _wrap_DateSpan___isub__, METH_VARARGS | METH_KEYWORDS },
28931 { (char *)"DateSpan___neg__", (PyCFunction) _wrap_DateSpan___neg__, METH_VARARGS | METH_KEYWORDS },
28932 { (char *)"DateSpan___imul__", (PyCFunction) _wrap_DateSpan___imul__, METH_VARARGS | METH_KEYWORDS },
28933 { (char *)"DateSpan___add__", (PyCFunction) _wrap_DateSpan___add__, METH_VARARGS | METH_KEYWORDS },
28934 { (char *)"DateSpan___sub__", (PyCFunction) _wrap_DateSpan___sub__, METH_VARARGS | METH_KEYWORDS },
28935 { (char *)"DateSpan___mul__", (PyCFunction) _wrap_DateSpan___mul__, METH_VARARGS | METH_KEYWORDS },
28936 { (char *)"DateSpan___rmul__", (PyCFunction) _wrap_DateSpan___rmul__, METH_VARARGS | METH_KEYWORDS },
28937 { (char *)"DateSpan___eq__", (PyCFunction) _wrap_DateSpan___eq__, METH_VARARGS | METH_KEYWORDS },
28938 { (char *)"DateSpan___ne__", (PyCFunction) _wrap_DateSpan___ne__, METH_VARARGS | METH_KEYWORDS },
28939 { (char *)"DateSpan_swigregister", DateSpan_swigregister, METH_VARARGS },
28940 { (char *)"GetLocalTime", (PyCFunction) _wrap_GetLocalTime, METH_VARARGS | METH_KEYWORDS },
28941 { (char *)"GetUTCTime", (PyCFunction) _wrap_GetUTCTime, METH_VARARGS | METH_KEYWORDS },
28942 { (char *)"GetCurrentTime", (PyCFunction) _wrap_GetCurrentTime, METH_VARARGS | METH_KEYWORDS },
28943 { (char *)"GetLocalTimeMillis", (PyCFunction) _wrap_GetLocalTimeMillis, METH_VARARGS | METH_KEYWORDS },
28944 { (char *)"new_DataFormat", (PyCFunction) _wrap_new_DataFormat, METH_VARARGS | METH_KEYWORDS },
28945 { (char *)"new_CustomDataFormat", (PyCFunction) _wrap_new_CustomDataFormat, METH_VARARGS | METH_KEYWORDS },
28946 { (char *)"delete_DataFormat", (PyCFunction) _wrap_delete_DataFormat, METH_VARARGS | METH_KEYWORDS },
28947 { (char *)"DataFormat___eq__", _wrap_DataFormat___eq__, METH_VARARGS },
28948 { (char *)"DataFormat___ne__", _wrap_DataFormat___ne__, METH_VARARGS },
28949 { (char *)"DataFormat_SetType", (PyCFunction) _wrap_DataFormat_SetType, METH_VARARGS | METH_KEYWORDS },
28950 { (char *)"DataFormat_GetType", (PyCFunction) _wrap_DataFormat_GetType, METH_VARARGS | METH_KEYWORDS },
28951 { (char *)"DataFormat_GetId", (PyCFunction) _wrap_DataFormat_GetId, METH_VARARGS | METH_KEYWORDS },
28952 { (char *)"DataFormat_SetId", (PyCFunction) _wrap_DataFormat_SetId, METH_VARARGS | METH_KEYWORDS },
28953 { (char *)"DataFormat_swigregister", DataFormat_swigregister, METH_VARARGS },
28954 { (char *)"delete_DataObject", (PyCFunction) _wrap_delete_DataObject, METH_VARARGS | METH_KEYWORDS },
28955 { (char *)"DataObject_GetPreferredFormat", (PyCFunction) _wrap_DataObject_GetPreferredFormat, METH_VARARGS | METH_KEYWORDS },
28956 { (char *)"DataObject_GetFormatCount", (PyCFunction) _wrap_DataObject_GetFormatCount, METH_VARARGS | METH_KEYWORDS },
28957 { (char *)"DataObject_IsSupported", (PyCFunction) _wrap_DataObject_IsSupported, METH_VARARGS | METH_KEYWORDS },
28958 { (char *)"DataObject_GetDataSize", (PyCFunction) _wrap_DataObject_GetDataSize, METH_VARARGS | METH_KEYWORDS },
28959 { (char *)"DataObject_GetAllFormats", (PyCFunction) _wrap_DataObject_GetAllFormats, METH_VARARGS | METH_KEYWORDS },
28960 { (char *)"DataObject_GetDataHere", (PyCFunction) _wrap_DataObject_GetDataHere, METH_VARARGS | METH_KEYWORDS },
28961 { (char *)"DataObject_SetData", (PyCFunction) _wrap_DataObject_SetData, METH_VARARGS | METH_KEYWORDS },
28962 { (char *)"DataObject_swigregister", DataObject_swigregister, METH_VARARGS },
28963 { (char *)"new_DataObjectSimple", (PyCFunction) _wrap_new_DataObjectSimple, METH_VARARGS | METH_KEYWORDS },
28964 { (char *)"DataObjectSimple_GetFormat", (PyCFunction) _wrap_DataObjectSimple_GetFormat, METH_VARARGS | METH_KEYWORDS },
28965 { (char *)"DataObjectSimple_SetFormat", (PyCFunction) _wrap_DataObjectSimple_SetFormat, METH_VARARGS | METH_KEYWORDS },
28966 { (char *)"DataObjectSimple_GetDataSize", (PyCFunction) _wrap_DataObjectSimple_GetDataSize, METH_VARARGS | METH_KEYWORDS },
28967 { (char *)"DataObjectSimple_GetDataHere", (PyCFunction) _wrap_DataObjectSimple_GetDataHere, METH_VARARGS | METH_KEYWORDS },
28968 { (char *)"DataObjectSimple_SetData", (PyCFunction) _wrap_DataObjectSimple_SetData, METH_VARARGS | METH_KEYWORDS },
28969 { (char *)"DataObjectSimple_swigregister", DataObjectSimple_swigregister, METH_VARARGS },
28970 { (char *)"new_PyDataObjectSimple", (PyCFunction) _wrap_new_PyDataObjectSimple, METH_VARARGS | METH_KEYWORDS },
28971 { (char *)"PyDataObjectSimple__setCallbackInfo", (PyCFunction) _wrap_PyDataObjectSimple__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
28972 { (char *)"PyDataObjectSimple_swigregister", PyDataObjectSimple_swigregister, METH_VARARGS },
28973 { (char *)"new_DataObjectComposite", (PyCFunction) _wrap_new_DataObjectComposite, METH_VARARGS | METH_KEYWORDS },
28974 { (char *)"DataObjectComposite_Add", (PyCFunction) _wrap_DataObjectComposite_Add, METH_VARARGS | METH_KEYWORDS },
28975 { (char *)"DataObjectComposite_swigregister", DataObjectComposite_swigregister, METH_VARARGS },
28976 { (char *)"new_TextDataObject", (PyCFunction) _wrap_new_TextDataObject, METH_VARARGS | METH_KEYWORDS },
28977 { (char *)"TextDataObject_GetTextLength", (PyCFunction) _wrap_TextDataObject_GetTextLength, METH_VARARGS | METH_KEYWORDS },
28978 { (char *)"TextDataObject_GetText", (PyCFunction) _wrap_TextDataObject_GetText, METH_VARARGS | METH_KEYWORDS },
28979 { (char *)"TextDataObject_SetText", (PyCFunction) _wrap_TextDataObject_SetText, METH_VARARGS | METH_KEYWORDS },
28980 { (char *)"TextDataObject_swigregister", TextDataObject_swigregister, METH_VARARGS },
28981 { (char *)"new_PyTextDataObject", (PyCFunction) _wrap_new_PyTextDataObject, METH_VARARGS | METH_KEYWORDS },
28982 { (char *)"PyTextDataObject__setCallbackInfo", (PyCFunction) _wrap_PyTextDataObject__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
28983 { (char *)"PyTextDataObject_swigregister", PyTextDataObject_swigregister, METH_VARARGS },
28984 { (char *)"new_BitmapDataObject", (PyCFunction) _wrap_new_BitmapDataObject, METH_VARARGS | METH_KEYWORDS },
28985 { (char *)"BitmapDataObject_GetBitmap", (PyCFunction) _wrap_BitmapDataObject_GetBitmap, METH_VARARGS | METH_KEYWORDS },
28986 { (char *)"BitmapDataObject_SetBitmap", (PyCFunction) _wrap_BitmapDataObject_SetBitmap, METH_VARARGS | METH_KEYWORDS },
28987 { (char *)"BitmapDataObject_swigregister", BitmapDataObject_swigregister, METH_VARARGS },
28988 { (char *)"new_PyBitmapDataObject", (PyCFunction) _wrap_new_PyBitmapDataObject, METH_VARARGS | METH_KEYWORDS },
28989 { (char *)"PyBitmapDataObject__setCallbackInfo", (PyCFunction) _wrap_PyBitmapDataObject__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
28990 { (char *)"PyBitmapDataObject_swigregister", PyBitmapDataObject_swigregister, METH_VARARGS },
28991 { (char *)"new_FileDataObject", (PyCFunction) _wrap_new_FileDataObject, METH_VARARGS | METH_KEYWORDS },
28992 { (char *)"FileDataObject_GetFilenames", (PyCFunction) _wrap_FileDataObject_GetFilenames, METH_VARARGS | METH_KEYWORDS },
28993 { (char *)"FileDataObject_AddFile", (PyCFunction) _wrap_FileDataObject_AddFile, METH_VARARGS | METH_KEYWORDS },
28994 { (char *)"FileDataObject_swigregister", FileDataObject_swigregister, METH_VARARGS },
28995 { (char *)"new_CustomDataObject", (PyCFunction) _wrap_new_CustomDataObject, METH_VARARGS | METH_KEYWORDS },
28996 { (char *)"CustomDataObject_SetData", (PyCFunction) _wrap_CustomDataObject_SetData, METH_VARARGS | METH_KEYWORDS },
28997 { (char *)"CustomDataObject_GetSize", (PyCFunction) _wrap_CustomDataObject_GetSize, METH_VARARGS | METH_KEYWORDS },
28998 { (char *)"CustomDataObject_GetData", (PyCFunction) _wrap_CustomDataObject_GetData, METH_VARARGS | METH_KEYWORDS },
28999 { (char *)"CustomDataObject_swigregister", CustomDataObject_swigregister, METH_VARARGS },
29000 { (char *)"new_URLDataObject", (PyCFunction) _wrap_new_URLDataObject, METH_VARARGS | METH_KEYWORDS },
29001 { (char *)"URLDataObject_GetURL", (PyCFunction) _wrap_URLDataObject_GetURL, METH_VARARGS | METH_KEYWORDS },
29002 { (char *)"URLDataObject_SetURL", (PyCFunction) _wrap_URLDataObject_SetURL, METH_VARARGS | METH_KEYWORDS },
29003 { (char *)"URLDataObject_swigregister", URLDataObject_swigregister, METH_VARARGS },
29004 { (char *)"new_MetafileDataObject", (PyCFunction) _wrap_new_MetafileDataObject, METH_VARARGS | METH_KEYWORDS },
29005 { (char *)"MetafileDataObject_SetMetafile", (PyCFunction) _wrap_MetafileDataObject_SetMetafile, METH_VARARGS | METH_KEYWORDS },
29006 { (char *)"MetafileDataObject_GetMetafile", (PyCFunction) _wrap_MetafileDataObject_GetMetafile, METH_VARARGS | METH_KEYWORDS },
29007 { (char *)"MetafileDataObject_swigregister", MetafileDataObject_swigregister, METH_VARARGS },
29008 { (char *)"IsDragResultOk", (PyCFunction) _wrap_IsDragResultOk, METH_VARARGS | METH_KEYWORDS },
29009 { (char *)"new_DropSource", (PyCFunction) _wrap_new_DropSource, METH_VARARGS | METH_KEYWORDS },
29010 { (char *)"DropSource__setCallbackInfo", (PyCFunction) _wrap_DropSource__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
29011 { (char *)"delete_DropSource", (PyCFunction) _wrap_delete_DropSource, METH_VARARGS | METH_KEYWORDS },
29012 { (char *)"DropSource_SetData", (PyCFunction) _wrap_DropSource_SetData, METH_VARARGS | METH_KEYWORDS },
29013 { (char *)"DropSource_GetDataObject", (PyCFunction) _wrap_DropSource_GetDataObject, METH_VARARGS | METH_KEYWORDS },
29014 { (char *)"DropSource_SetCursor", (PyCFunction) _wrap_DropSource_SetCursor, METH_VARARGS | METH_KEYWORDS },
29015 { (char *)"DropSource_DoDragDrop", (PyCFunction) _wrap_DropSource_DoDragDrop, METH_VARARGS | METH_KEYWORDS },
29016 { (char *)"DropSource_base_GiveFeedback", (PyCFunction) _wrap_DropSource_base_GiveFeedback, METH_VARARGS | METH_KEYWORDS },
29017 { (char *)"DropSource_swigregister", DropSource_swigregister, METH_VARARGS },
29018 { (char *)"new_DropTarget", (PyCFunction) _wrap_new_DropTarget, METH_VARARGS | METH_KEYWORDS },
29019 { (char *)"DropTarget__setCallbackInfo", (PyCFunction) _wrap_DropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
29020 { (char *)"delete_DropTarget", (PyCFunction) _wrap_delete_DropTarget, METH_VARARGS | METH_KEYWORDS },
29021 { (char *)"DropTarget_GetDataObject", (PyCFunction) _wrap_DropTarget_GetDataObject, METH_VARARGS | METH_KEYWORDS },
29022 { (char *)"DropTarget_SetDataObject", (PyCFunction) _wrap_DropTarget_SetDataObject, METH_VARARGS | METH_KEYWORDS },
29023 { (char *)"DropTarget_base_OnEnter", (PyCFunction) _wrap_DropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS },
29024 { (char *)"DropTarget_base_OnDragOver", (PyCFunction) _wrap_DropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS },
29025 { (char *)"DropTarget_base_OnLeave", (PyCFunction) _wrap_DropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS },
29026 { (char *)"DropTarget_base_OnDrop", (PyCFunction) _wrap_DropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS },
29027 { (char *)"DropTarget_GetData", (PyCFunction) _wrap_DropTarget_GetData, METH_VARARGS | METH_KEYWORDS },
29028 { (char *)"DropTarget_swigregister", DropTarget_swigregister, METH_VARARGS },
29029 { (char *)"new_TextDropTarget", (PyCFunction) _wrap_new_TextDropTarget, METH_VARARGS | METH_KEYWORDS },
29030 { (char *)"TextDropTarget__setCallbackInfo", (PyCFunction) _wrap_TextDropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
29031 { (char *)"TextDropTarget_base_OnEnter", (PyCFunction) _wrap_TextDropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS },
29032 { (char *)"TextDropTarget_base_OnDragOver", (PyCFunction) _wrap_TextDropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS },
29033 { (char *)"TextDropTarget_base_OnLeave", (PyCFunction) _wrap_TextDropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS },
29034 { (char *)"TextDropTarget_base_OnDrop", (PyCFunction) _wrap_TextDropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS },
29035 { (char *)"TextDropTarget_base_OnData", (PyCFunction) _wrap_TextDropTarget_base_OnData, METH_VARARGS | METH_KEYWORDS },
29036 { (char *)"TextDropTarget_swigregister", TextDropTarget_swigregister, METH_VARARGS },
29037 { (char *)"new_FileDropTarget", (PyCFunction) _wrap_new_FileDropTarget, METH_VARARGS | METH_KEYWORDS },
29038 { (char *)"FileDropTarget__setCallbackInfo", (PyCFunction) _wrap_FileDropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
29039 { (char *)"FileDropTarget_base_OnEnter", (PyCFunction) _wrap_FileDropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS },
29040 { (char *)"FileDropTarget_base_OnDragOver", (PyCFunction) _wrap_FileDropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS },
29041 { (char *)"FileDropTarget_base_OnLeave", (PyCFunction) _wrap_FileDropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS },
29042 { (char *)"FileDropTarget_base_OnDrop", (PyCFunction) _wrap_FileDropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS },
29043 { (char *)"FileDropTarget_base_OnData", (PyCFunction) _wrap_FileDropTarget_base_OnData, METH_VARARGS | METH_KEYWORDS },
29044 { (char *)"FileDropTarget_swigregister", FileDropTarget_swigregister, METH_VARARGS },
29045 { (char *)"new_Clipboard", (PyCFunction) _wrap_new_Clipboard, METH_VARARGS | METH_KEYWORDS },
29046 { (char *)"delete_Clipboard", (PyCFunction) _wrap_delete_Clipboard, METH_VARARGS | METH_KEYWORDS },
29047 { (char *)"Clipboard_Open", (PyCFunction) _wrap_Clipboard_Open, METH_VARARGS | METH_KEYWORDS },
29048 { (char *)"Clipboard_Close", (PyCFunction) _wrap_Clipboard_Close, METH_VARARGS | METH_KEYWORDS },
29049 { (char *)"Clipboard_IsOpened", (PyCFunction) _wrap_Clipboard_IsOpened, METH_VARARGS | METH_KEYWORDS },
29050 { (char *)"Clipboard_AddData", (PyCFunction) _wrap_Clipboard_AddData, METH_VARARGS | METH_KEYWORDS },
29051 { (char *)"Clipboard_SetData", (PyCFunction) _wrap_Clipboard_SetData, METH_VARARGS | METH_KEYWORDS },
29052 { (char *)"Clipboard_IsSupported", (PyCFunction) _wrap_Clipboard_IsSupported, METH_VARARGS | METH_KEYWORDS },
29053 { (char *)"Clipboard_GetData", (PyCFunction) _wrap_Clipboard_GetData, METH_VARARGS | METH_KEYWORDS },
29054 { (char *)"Clipboard_Clear", (PyCFunction) _wrap_Clipboard_Clear, METH_VARARGS | METH_KEYWORDS },
29055 { (char *)"Clipboard_Flush", (PyCFunction) _wrap_Clipboard_Flush, METH_VARARGS | METH_KEYWORDS },
29056 { (char *)"Clipboard_UsePrimarySelection", (PyCFunction) _wrap_Clipboard_UsePrimarySelection, METH_VARARGS | METH_KEYWORDS },
29057 { (char *)"Clipboard_Get", (PyCFunction) _wrap_Clipboard_Get, METH_VARARGS | METH_KEYWORDS },
29058 { (char *)"Clipboard_swigregister", Clipboard_swigregister, METH_VARARGS },
29059 { (char *)"new_ClipboardLocker", (PyCFunction) _wrap_new_ClipboardLocker, METH_VARARGS | METH_KEYWORDS },
29060 { (char *)"delete_ClipboardLocker", (PyCFunction) _wrap_delete_ClipboardLocker, METH_VARARGS | METH_KEYWORDS },
29061 { (char *)"ClipboardLocker___nonzero__", (PyCFunction) _wrap_ClipboardLocker___nonzero__, METH_VARARGS | METH_KEYWORDS },
29062 { (char *)"ClipboardLocker_swigregister", ClipboardLocker_swigregister, METH_VARARGS },
29063 { (char *)"new_VideoMode", (PyCFunction) _wrap_new_VideoMode, METH_VARARGS | METH_KEYWORDS },
29064 { (char *)"delete_VideoMode", (PyCFunction) _wrap_delete_VideoMode, METH_VARARGS | METH_KEYWORDS },
29065 { (char *)"VideoMode_Matches", (PyCFunction) _wrap_VideoMode_Matches, METH_VARARGS | METH_KEYWORDS },
29066 { (char *)"VideoMode_GetWidth", (PyCFunction) _wrap_VideoMode_GetWidth, METH_VARARGS | METH_KEYWORDS },
29067 { (char *)"VideoMode_GetHeight", (PyCFunction) _wrap_VideoMode_GetHeight, METH_VARARGS | METH_KEYWORDS },
29068 { (char *)"VideoMode_GetDepth", (PyCFunction) _wrap_VideoMode_GetDepth, METH_VARARGS | METH_KEYWORDS },
29069 { (char *)"VideoMode_IsOk", (PyCFunction) _wrap_VideoMode_IsOk, METH_VARARGS | METH_KEYWORDS },
29070 { (char *)"VideoMode___eq__", (PyCFunction) _wrap_VideoMode___eq__, METH_VARARGS | METH_KEYWORDS },
29071 { (char *)"VideoMode___ne__", (PyCFunction) _wrap_VideoMode___ne__, METH_VARARGS | METH_KEYWORDS },
29072 { (char *)"VideoMode_w_set", (PyCFunction) _wrap_VideoMode_w_set, METH_VARARGS | METH_KEYWORDS },
29073 { (char *)"VideoMode_w_get", (PyCFunction) _wrap_VideoMode_w_get, METH_VARARGS | METH_KEYWORDS },
29074 { (char *)"VideoMode_h_set", (PyCFunction) _wrap_VideoMode_h_set, METH_VARARGS | METH_KEYWORDS },
29075 { (char *)"VideoMode_h_get", (PyCFunction) _wrap_VideoMode_h_get, METH_VARARGS | METH_KEYWORDS },
29076 { (char *)"VideoMode_bpp_set", (PyCFunction) _wrap_VideoMode_bpp_set, METH_VARARGS | METH_KEYWORDS },
29077 { (char *)"VideoMode_bpp_get", (PyCFunction) _wrap_VideoMode_bpp_get, METH_VARARGS | METH_KEYWORDS },
29078 { (char *)"VideoMode_refresh_set", (PyCFunction) _wrap_VideoMode_refresh_set, METH_VARARGS | METH_KEYWORDS },
29079 { (char *)"VideoMode_refresh_get", (PyCFunction) _wrap_VideoMode_refresh_get, METH_VARARGS | METH_KEYWORDS },
29080 { (char *)"VideoMode_swigregister", VideoMode_swigregister, METH_VARARGS },
29081 { (char *)"new_Display", (PyCFunction) _wrap_new_Display, METH_VARARGS | METH_KEYWORDS },
29082 { (char *)"delete_Display", (PyCFunction) _wrap_delete_Display, METH_VARARGS | METH_KEYWORDS },
29083 { (char *)"Display_GetCount", (PyCFunction) _wrap_Display_GetCount, METH_VARARGS | METH_KEYWORDS },
29084 { (char *)"Display_GetFromPoint", (PyCFunction) _wrap_Display_GetFromPoint, METH_VARARGS | METH_KEYWORDS },
29085 { (char *)"Display_GetFromWindow", (PyCFunction) _wrap_Display_GetFromWindow, METH_VARARGS | METH_KEYWORDS },
29086 { (char *)"Display_IsOk", (PyCFunction) _wrap_Display_IsOk, METH_VARARGS | METH_KEYWORDS },
29087 { (char *)"Display_GetGeometry", (PyCFunction) _wrap_Display_GetGeometry, METH_VARARGS | METH_KEYWORDS },
29088 { (char *)"Display_GetName", (PyCFunction) _wrap_Display_GetName, METH_VARARGS | METH_KEYWORDS },
29089 { (char *)"Display_IsPrimary", (PyCFunction) _wrap_Display_IsPrimary, METH_VARARGS | METH_KEYWORDS },
29090 { (char *)"Display_GetModes", (PyCFunction) _wrap_Display_GetModes, METH_VARARGS | METH_KEYWORDS },
29091 { (char *)"Display_GetCurrentMode", (PyCFunction) _wrap_Display_GetCurrentMode, METH_VARARGS | METH_KEYWORDS },
29092 { (char *)"Display_ChangeMode", (PyCFunction) _wrap_Display_ChangeMode, METH_VARARGS | METH_KEYWORDS },
29093 { (char *)"Display_ResetMode", (PyCFunction) _wrap_Display_ResetMode, METH_VARARGS | METH_KEYWORDS },
29094 { (char *)"Display_swigregister", Display_swigregister, METH_VARARGS },
29095 { NULL, NULL }
29096 };
29097
29098
29099 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
29100
29101 static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) {
29102 return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x));
29103 }
29104 static void *_p_wxMenuEventTo_p_wxEvent(void *x) {
29105 return (void *)((wxEvent *) ((wxMenuEvent *) x));
29106 }
29107 static void *_p_wxCloseEventTo_p_wxEvent(void *x) {
29108 return (void *)((wxEvent *) ((wxCloseEvent *) x));
29109 }
29110 static void *_p_wxMouseEventTo_p_wxEvent(void *x) {
29111 return (void *)((wxEvent *) ((wxMouseEvent *) x));
29112 }
29113 static void *_p_wxEraseEventTo_p_wxEvent(void *x) {
29114 return (void *)((wxEvent *) ((wxEraseEvent *) x));
29115 }
29116 static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) {
29117 return (void *)((wxEvent *) ((wxSetCursorEvent *) x));
29118 }
29119 static void *_p_wxTimerEventTo_p_wxEvent(void *x) {
29120 return (void *)((wxEvent *) ((wxTimerEvent *) x));
29121 }
29122 static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) {
29123 return (void *)((wxEvent *) ((wxInitDialogEvent *) x));
29124 }
29125 static void *_p_wxScrollEventTo_p_wxEvent(void *x) {
29126 return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x));
29127 }
29128 static void *_p_wxPyEventTo_p_wxEvent(void *x) {
29129 return (void *)((wxEvent *) ((wxPyEvent *) x));
29130 }
29131 static void *_p_wxNotifyEventTo_p_wxEvent(void *x) {
29132 return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x));
29133 }
29134 static void *_p_wxJoystickEventTo_p_wxEvent(void *x) {
29135 return (void *)((wxEvent *) ((wxJoystickEvent *) x));
29136 }
29137 static void *_p_wxIdleEventTo_p_wxEvent(void *x) {
29138 return (void *)((wxEvent *) ((wxIdleEvent *) x));
29139 }
29140 static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) {
29141 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x));
29142 }
29143 static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) {
29144 return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x));
29145 }
29146 static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) {
29147 return (void *)((wxEvent *) ((wxMaximizeEvent *) x));
29148 }
29149 static void *_p_wxIconizeEventTo_p_wxEvent(void *x) {
29150 return (void *)((wxEvent *) ((wxIconizeEvent *) x));
29151 }
29152 static void *_p_wxActivateEventTo_p_wxEvent(void *x) {
29153 return (void *)((wxEvent *) ((wxActivateEvent *) x));
29154 }
29155 static void *_p_wxSizeEventTo_p_wxEvent(void *x) {
29156 return (void *)((wxEvent *) ((wxSizeEvent *) x));
29157 }
29158 static void *_p_wxMoveEventTo_p_wxEvent(void *x) {
29159 return (void *)((wxEvent *) ((wxMoveEvent *) x));
29160 }
29161 static void *_p_wxPaintEventTo_p_wxEvent(void *x) {
29162 return (void *)((wxEvent *) ((wxPaintEvent *) x));
29163 }
29164 static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) {
29165 return (void *)((wxEvent *) ((wxNcPaintEvent *) x));
29166 }
29167 static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) {
29168 return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x));
29169 }
29170 static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) {
29171 return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x));
29172 }
29173 static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) {
29174 return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x));
29175 }
29176 static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) {
29177 return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x));
29178 }
29179 static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) {
29180 return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x));
29181 }
29182 static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) {
29183 return (void *)((wxEvent *) ((wxDropFilesEvent *) x));
29184 }
29185 static void *_p_wxFocusEventTo_p_wxEvent(void *x) {
29186 return (void *)((wxEvent *) ((wxFocusEvent *) x));
29187 }
29188 static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) {
29189 return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x));
29190 }
29191 static void *_p_wxProcessEventTo_p_wxEvent(void *x) {
29192 return (void *)((wxEvent *) ((wxProcessEvent *) x));
29193 }
29194 static void *_p_wxShowEventTo_p_wxEvent(void *x) {
29195 return (void *)((wxEvent *) ((wxShowEvent *) x));
29196 }
29197 static void *_p_wxCommandEventTo_p_wxEvent(void *x) {
29198 return (void *)((wxEvent *) ((wxCommandEvent *) x));
29199 }
29200 static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) {
29201 return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x));
29202 }
29203 static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) {
29204 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x));
29205 }
29206 static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) {
29207 return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x));
29208 }
29209 static void *_p_wxKeyEventTo_p_wxEvent(void *x) {
29210 return (void *)((wxEvent *) ((wxKeyEvent *) x));
29211 }
29212 static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) {
29213 return (void *)((wxEvent *) ((wxScrollWinEvent *) x));
29214 }
29215 static void *_p_wxFileConfigTo_p_wxConfigBase(void *x) {
29216 return (void *)((wxConfigBase *) ((wxFileConfig *) x));
29217 }
29218 static void *_p_wxConfigTo_p_wxConfigBase(void *x) {
29219 return (void *)((wxConfigBase *) ((wxConfig *) x));
29220 }
29221 static void *_p_wxPyBitmapDataObjectTo_p_wxBitmapDataObject(void *x) {
29222 return (void *)((wxBitmapDataObject *) ((wxPyBitmapDataObject *) x));
29223 }
29224 static void *_p_wxPyTextDataObjectTo_p_wxTextDataObject(void *x) {
29225 return (void *)((wxTextDataObject *) ((wxPyTextDataObject *) x));
29226 }
29227 static void *_p_wxDataObjectSimpleTo_p_wxDataObject(void *x) {
29228 return (void *)((wxDataObject *) ((wxDataObjectSimple *) x));
29229 }
29230 static void *_p_wxPyDataObjectSimpleTo_p_wxDataObject(void *x) {
29231 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxPyDataObjectSimple *) x));
29232 }
29233 static void *_p_wxDataObjectCompositeTo_p_wxDataObject(void *x) {
29234 return (void *)((wxDataObject *) ((wxDataObjectComposite *) x));
29235 }
29236 static void *_p_wxTextDataObjectTo_p_wxDataObject(void *x) {
29237 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxTextDataObject *) x));
29238 }
29239 static void *_p_wxPyTextDataObjectTo_p_wxDataObject(void *x) {
29240 return (void *)((wxDataObject *) (wxDataObjectSimple *)(wxTextDataObject *) ((wxPyTextDataObject *) x));
29241 }
29242 static void *_p_wxBitmapDataObjectTo_p_wxDataObject(void *x) {
29243 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxBitmapDataObject *) x));
29244 }
29245 static void *_p_wxPyBitmapDataObjectTo_p_wxDataObject(void *x) {
29246 return (void *)((wxDataObject *) (wxDataObjectSimple *)(wxBitmapDataObject *) ((wxPyBitmapDataObject *) x));
29247 }
29248 static void *_p_wxFileDataObjectTo_p_wxDataObject(void *x) {
29249 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxFileDataObject *) x));
29250 }
29251 static void *_p_wxCustomDataObjectTo_p_wxDataObject(void *x) {
29252 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxCustomDataObject *) x));
29253 }
29254 static void *_p_wxURLDataObjectTo_p_wxDataObject(void *x) {
29255 return (void *)((wxDataObject *) (wxDataObjectComposite *) ((wxURLDataObject *) x));
29256 }
29257 static void *_p_wxMetafileDataObjectTo_p_wxDataObject(void *x) {
29258 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxMetafileDataObject *) x));
29259 }
29260 static void *_p_wxURLDataObjectTo_p_wxDataObjectComposite(void *x) {
29261 return (void *)((wxDataObjectComposite *) ((wxURLDataObject *) x));
29262 }
29263 static void *_p_wxPyDataObjectSimpleTo_p_wxDataObjectSimple(void *x) {
29264 return (void *)((wxDataObjectSimple *) ((wxPyDataObjectSimple *) x));
29265 }
29266 static void *_p_wxTextDataObjectTo_p_wxDataObjectSimple(void *x) {
29267 return (void *)((wxDataObjectSimple *) ((wxTextDataObject *) x));
29268 }
29269 static void *_p_wxPyTextDataObjectTo_p_wxDataObjectSimple(void *x) {
29270 return (void *)((wxDataObjectSimple *) (wxTextDataObject *) ((wxPyTextDataObject *) x));
29271 }
29272 static void *_p_wxBitmapDataObjectTo_p_wxDataObjectSimple(void *x) {
29273 return (void *)((wxDataObjectSimple *) ((wxBitmapDataObject *) x));
29274 }
29275 static void *_p_wxPyBitmapDataObjectTo_p_wxDataObjectSimple(void *x) {
29276 return (void *)((wxDataObjectSimple *) (wxBitmapDataObject *) ((wxPyBitmapDataObject *) x));
29277 }
29278 static void *_p_wxFileDataObjectTo_p_wxDataObjectSimple(void *x) {
29279 return (void *)((wxDataObjectSimple *) ((wxFileDataObject *) x));
29280 }
29281 static void *_p_wxCustomDataObjectTo_p_wxDataObjectSimple(void *x) {
29282 return (void *)((wxDataObjectSimple *) ((wxCustomDataObject *) x));
29283 }
29284 static void *_p_wxMetafileDataObjectTo_p_wxDataObjectSimple(void *x) {
29285 return (void *)((wxDataObjectSimple *) ((wxMetafileDataObject *) x));
29286 }
29287 static void *_p_wxControlTo_p_wxEvtHandler(void *x) {
29288 return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x));
29289 }
29290 static void *_p_wxWindowTo_p_wxEvtHandler(void *x) {
29291 return (void *)((wxEvtHandler *) ((wxWindow *) x));
29292 }
29293 static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) {
29294 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x));
29295 }
29296 static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) {
29297 return (void *)((wxEvtHandler *) ((wxPyApp *) x));
29298 }
29299 static void *_p_wxPyTimerTo_p_wxEvtHandler(void *x) {
29300 return (void *)((wxEvtHandler *) ((wxPyTimer *) x));
29301 }
29302 static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) {
29303 return (void *)((wxEvtHandler *) ((wxValidator *) x));
29304 }
29305 static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) {
29306 return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x));
29307 }
29308 static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) {
29309 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x));
29310 }
29311 static void *_p_wxMenuTo_p_wxEvtHandler(void *x) {
29312 return (void *)((wxEvtHandler *) ((wxMenu *) x));
29313 }
29314 static void *_p_wxPyProcessTo_p_wxEvtHandler(void *x) {
29315 return (void *)((wxEvtHandler *) ((wxPyProcess *) x));
29316 }
29317 static void *_p_wxPyTipProviderTo_p_wxTipProvider(void *x) {
29318 return (void *)((wxTipProvider *) ((wxPyTipProvider *) x));
29319 }
29320 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
29321 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
29322 }
29323 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
29324 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
29325 }
29326 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
29327 return (void *)((wxObject *) ((wxSizerItem *) x));
29328 }
29329 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
29330 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
29331 }
29332 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
29333 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
29334 }
29335 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
29336 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
29337 }
29338 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
29339 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
29340 }
29341 static void *_p_wxSizerTo_p_wxObject(void *x) {
29342 return (void *)((wxObject *) ((wxSizer *) x));
29343 }
29344 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
29345 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
29346 }
29347 static void *_p_wxFileHistoryTo_p_wxObject(void *x) {
29348 return (void *)((wxObject *) ((wxFileHistory *) x));
29349 }
29350 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
29351 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
29352 }
29353 static void *_p_wxEventTo_p_wxObject(void *x) {
29354 return (void *)((wxObject *) ((wxEvent *) x));
29355 }
29356 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
29357 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
29358 }
29359 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
29360 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
29361 }
29362 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
29363 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
29364 }
29365 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
29366 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
29367 }
29368 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
29369 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
29370 }
29371 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
29372 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
29373 }
29374 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
29375 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
29376 }
29377 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
29378 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
29379 }
29380 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
29381 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
29382 }
29383 static void *_p_wxControlTo_p_wxObject(void *x) {
29384 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
29385 }
29386 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
29387 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
29388 }
29389 static void *_p_wxTimerEventTo_p_wxObject(void *x) {
29390 return (void *)((wxObject *) (wxEvent *) ((wxTimerEvent *) x));
29391 }
29392 static void *_p_wxFSFileTo_p_wxObject(void *x) {
29393 return (void *)((wxObject *) ((wxFSFile *) x));
29394 }
29395 static void *_p_wxClipboardTo_p_wxObject(void *x) {
29396 return (void *)((wxObject *) ((wxClipboard *) x));
29397 }
29398 static void *_p_wxPySizerTo_p_wxObject(void *x) {
29399 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
29400 }
29401 static void *_p_wxPyEventTo_p_wxObject(void *x) {
29402 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
29403 }
29404 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
29405 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
29406 }
29407 static void *_p_wxShowEventTo_p_wxObject(void *x) {
29408 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
29409 }
29410 static void *_p_wxToolTipTo_p_wxObject(void *x) {
29411 return (void *)((wxObject *) ((wxToolTip *) x));
29412 }
29413 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
29414 return (void *)((wxObject *) ((wxMenuItem *) x));
29415 }
29416 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
29417 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
29418 }
29419 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
29420 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
29421 }
29422 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
29423 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
29424 }
29425 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
29426 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
29427 }
29428 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
29429 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
29430 }
29431 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
29432 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
29433 }
29434 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
29435 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
29436 }
29437 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
29438 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
29439 }
29440 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
29441 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
29442 }
29443 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
29444 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
29445 }
29446 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
29447 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
29448 }
29449 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
29450 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
29451 }
29452 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
29453 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
29454 }
29455 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
29456 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
29457 }
29458 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
29459 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
29460 }
29461 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
29462 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
29463 }
29464 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
29465 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
29466 }
29467 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
29468 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
29469 }
29470 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
29471 return (void *)((wxObject *) ((wxImageHandler *) x));
29472 }
29473 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
29474 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
29475 }
29476 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
29477 return (void *)((wxObject *) ((wxEvtHandler *) x));
29478 }
29479 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
29480 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
29481 }
29482 static void *_p_wxImageTo_p_wxObject(void *x) {
29483 return (void *)((wxObject *) ((wxImage *) x));
29484 }
29485 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
29486 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
29487 }
29488 static void *_p_wxSystemOptionsTo_p_wxObject(void *x) {
29489 return (void *)((wxObject *) ((wxSystemOptions *) x));
29490 }
29491 static void *_p_wxJoystickEventTo_p_wxObject(void *x) {
29492 return (void *)((wxObject *) (wxEvent *) ((wxJoystickEvent *) x));
29493 }
29494 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
29495 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
29496 }
29497 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
29498 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
29499 }
29500 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
29501 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
29502 }
29503 static void *_p_wxWindowTo_p_wxObject(void *x) {
29504 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
29505 }
29506 static void *_p_wxMenuTo_p_wxObject(void *x) {
29507 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
29508 }
29509 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
29510 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
29511 }
29512 static void *_p_wxPyProcessTo_p_wxObject(void *x) {
29513 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyProcess *) x));
29514 }
29515 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
29516 return (void *)((wxObject *) ((wxFileSystem *) x));
29517 }
29518 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
29519 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
29520 }
29521 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
29522 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
29523 }
29524 static void *_p_wxPyAppTo_p_wxObject(void *x) {
29525 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
29526 }
29527 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
29528 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
29529 }
29530 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
29531 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
29532 }
29533 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
29534 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
29535 }
29536 static void *_p_wxBusyInfoTo_p_wxObject(void *x) {
29537 return (void *)((wxObject *) ((wxBusyInfo *) x));
29538 }
29539 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
29540 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
29541 }
29542 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
29543 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
29544 }
29545 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
29546 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
29547 }
29548 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
29549 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
29550 }
29551 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
29552 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
29553 }
29554 static void *_p_wxProcessEventTo_p_wxObject(void *x) {
29555 return (void *)((wxObject *) (wxEvent *) ((wxProcessEvent *) x));
29556 }
29557 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
29558 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
29559 }
29560 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
29561 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
29562 }
29563 static void *_p_wxValidatorTo_p_wxObject(void *x) {
29564 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
29565 }
29566 static void *_p_wxPyTimerTo_p_wxObject(void *x) {
29567 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyTimer *) x));
29568 }
29569 static void *_p_wxLogStderrTo_p_wxLog(void *x) {
29570 return (void *)((wxLog *) ((wxLogStderr *) x));
29571 }
29572 static void *_p_wxLogTextCtrlTo_p_wxLog(void *x) {
29573 return (void *)((wxLog *) ((wxLogTextCtrl *) x));
29574 }
29575 static void *_p_wxLogWindowTo_p_wxLog(void *x) {
29576 return (void *)((wxLog *) ((wxLogWindow *) x));
29577 }
29578 static void *_p_wxLogChainTo_p_wxLog(void *x) {
29579 return (void *)((wxLog *) ((wxLogChain *) x));
29580 }
29581 static void *_p_wxLogGuiTo_p_wxLog(void *x) {
29582 return (void *)((wxLog *) ((wxLogGui *) x));
29583 }
29584 static void *_p_wxPyLogTo_p_wxLog(void *x) {
29585 return (void *)((wxLog *) ((wxPyLog *) x));
29586 }
29587 static void *_p_wxControlTo_p_wxWindow(void *x) {
29588 return (void *)((wxWindow *) ((wxControl *) x));
29589 }
29590 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
29591 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
29592 }
29593 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
29594 return (void *)((wxWindow *) ((wxMenuBar *) x));
29595 }
29596 static void *_p_wxPyTextDropTargetTo_p_wxPyDropTarget(void *x) {
29597 return (void *)((wxPyDropTarget *) ((wxPyTextDropTarget *) x));
29598 }
29599 static void *_p_wxPyFileDropTargetTo_p_wxPyDropTarget(void *x) {
29600 return (void *)((wxPyDropTarget *) ((wxPyFileDropTarget *) x));
29601 }
29602 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}};
29603 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}};
29604 static swig_type_info _swigt__p_wxMetafile[] = {{"_p_wxMetafile", 0, "wxMetafile *", 0, 0, 0, 0},{"_p_wxMetafile", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
29605 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}};
29606 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}};
29607 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}};
29608 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}};
29609 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}};
29610 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}};
29611 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}};
29612 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}};
29613 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}};
29614 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}};
29615 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}};
29616 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}};
29617 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}};
29618 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}};
29619 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}};
29620 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}};
29621 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}};
29622 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}};
29623 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}};
29624 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}};
29625 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}};
29626 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}};
29627 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}};
29628 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}};
29629 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}};
29630 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}};
29631 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}};
29632 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}};
29633 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}};
29634 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}};
29635 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}};
29636 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}};
29637 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}};
29638 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}};
29639 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}};
29640 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}};
29641 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}};
29642 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}};
29643 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}};
29644 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}};
29645 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}};
29646 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}};
29647 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}};
29648 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}};
29649 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}};
29650 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}};
29651 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}};
29652 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}};
29653 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}};
29654 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}};
29655 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}};
29656 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}};
29657 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}};
29658 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}};
29659 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}};
29660 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}};
29661 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}};
29662 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}};
29663 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}};
29664 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}};
29665 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}};
29666 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}};
29667 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}};
29668 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}};
29669 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}};
29670 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}};
29671 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}};
29672 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}};
29673 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}};
29674 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}};
29675 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}};
29676 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}};
29677 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}};
29678 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}};
29679 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}};
29680 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}};
29681 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}};
29682 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}};
29683 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}};
29684 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}};
29685 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}};
29686 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}};
29687 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}};
29688
29689 static swig_type_info *swig_types_initial[] = {
29690 _swigt__p_wxLogChain,
29691 _swigt__p_wxMutexGuiLocker,
29692 _swigt__p_wxMetafile,
29693 _swigt__p_wxFileHistory,
29694 _swigt__p_wxLog,
29695 _swigt__p_wxDateTime__TimeZone,
29696 _swigt__p_wxMenu,
29697 _swigt__p_wxEvent,
29698 _swigt__p_wxConfigBase,
29699 _swigt__p_wxDisplay,
29700 _swigt__p_wxFileType,
29701 _swigt__p_wxLogGui,
29702 _swigt__p_wxFont,
29703 _swigt__p_wxDataFormat,
29704 _swigt__p_wxTimerEvent,
29705 _swigt__p_wxCaret,
29706 _swigt__p_int,
29707 _swigt__p_wxSize,
29708 _swigt__p_wxClipboard,
29709 _swigt__p_wxStopWatch,
29710 _swigt__p_wxDC,
29711 _swigt__p_wxClipboardLocker,
29712 _swigt__p_wxIcon,
29713 _swigt__p_wxLogStderr,
29714 _swigt__p_wxLogTextCtrl,
29715 _swigt__p_wxTextCtrl,
29716 _swigt__p_wxBusyCursor,
29717 _swigt__p_wxPyBitmapDataObject,
29718 _swigt__p_wxPyTextDataObject,
29719 _swigt__p_wxBitmapDataObject,
29720 _swigt__p_wxTextDataObject,
29721 _swigt__p_wxDataObject,
29722 _swigt__p_wxFileDataObject,
29723 _swigt__p_wxCustomDataObject,
29724 _swigt__p_wxURLDataObject,
29725 _swigt__p_wxMetafileDataObject,
29726 _swigt__p_wxSound,
29727 _swigt__p_wxTimerRunner,
29728 _swigt__p_wxLogWindow,
29729 _swigt__p_wxTimeSpan,
29730 _swigt__p_wxArrayString,
29731 _swigt__p_wxWindowDisabler,
29732 _swigt__p_wxToolTip,
29733 _swigt__p_wxDataObjectComposite,
29734 _swigt__p_wxFileConfig,
29735 _swigt__p_wxSystemSettings,
29736 _swigt__p_wxVideoMode,
29737 _swigt__p_wxPyDataObjectSimple,
29738 _swigt__p_wxDataObjectSimple,
29739 _swigt__p_wxEvtHandler,
29740 _swigt__p_wxRect,
29741 _swigt__p_char,
29742 _swigt__p_wxSingleInstanceChecker,
29743 _swigt__p_wxFileTypeInfo,
29744 _swigt__p_wxFrame,
29745 _swigt__p_wxTimer,
29746 _swigt__p_wxMimeTypesManager,
29747 _swigt__p_wxPyArtProvider,
29748 _swigt__p_wxPyTipProvider,
29749 _swigt__p_wxTipProvider,
29750 _swigt__p_wxJoystick,
29751 _swigt__p_wxSystemOptions,
29752 _swigt__p_wxPoint,
29753 _swigt__p_wxJoystickEvent,
29754 _swigt__p_wxCursor,
29755 _swigt__p_wxObject,
29756 _swigt__p_wxOutputStream,
29757 _swigt__p_wxDateTime,
29758 _swigt__p_wxPyDropSource,
29759 _swigt__p_wxWindow,
29760 _swigt__p_wxString,
29761 _swigt__p_wxPyProcess,
29762 _swigt__p_wxBitmap,
29763 _swigt__p_wxConfig,
29764 _swigt__p_wxChar,
29765 _swigt__p_wxBusyInfo,
29766 _swigt__p_wxPyDropTarget,
29767 _swigt__p_wxPyTextDropTarget,
29768 _swigt__p_wxPyFileDropTarget,
29769 _swigt__p_wxProcessEvent,
29770 _swigt__p_wxPyLog,
29771 _swigt__p_wxLogNull,
29772 _swigt__p_wxColour,
29773 _swigt__p_wxConfigPathChanger,
29774 _swigt__p_wxPyTimer,
29775 _swigt__p_wxDateSpan,
29776 0
29777 };
29778
29779
29780 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
29781
29782 static swig_const_info swig_const_table[] = {
29783 { SWIG_PY_POINTER, (char*)"TRACE_MemAlloc", 0, 0, (void *)"memalloc", &SWIGTYPE_p_char},
29784 { SWIG_PY_POINTER, (char*)"TRACE_Messages", 0, 0, (void *)"messages", &SWIGTYPE_p_char},
29785 { SWIG_PY_POINTER, (char*)"TRACE_ResAlloc", 0, 0, (void *)"resalloc", &SWIGTYPE_p_char},
29786 { SWIG_PY_POINTER, (char*)"TRACE_RefCount", 0, 0, (void *)"refcount", &SWIGTYPE_p_char},
29787 { SWIG_PY_POINTER, (char*)"TRACE_OleCalls", 0, 0, (void *)"ole", &SWIGTYPE_p_char},
29788 {0}};
29789
29790 #ifdef __cplusplus
29791 }
29792 #endif
29793
29794 #ifdef __cplusplus
29795 extern "C"
29796 #endif
29797 SWIGEXPORT(void) SWIG_init(void) {
29798 static PyObject *SWIG_globals = 0;
29799 static int typeinit = 0;
29800 PyObject *m, *d;
29801 int i;
29802 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
29803 m = Py_InitModule((char *) SWIG_name, SwigMethods);
29804 d = PyModule_GetDict(m);
29805
29806 if (!typeinit) {
29807 for (i = 0; swig_types_initial[i]; i++) {
29808 swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
29809 }
29810 typeinit = 1;
29811 }
29812 SWIG_InstallConstants(d,swig_const_table);
29813
29814 PyDict_SetItemString(d,"SYS_OEM_FIXED_FONT", SWIG_FromInt((int)wxSYS_OEM_FIXED_FONT));
29815 PyDict_SetItemString(d,"SYS_ANSI_FIXED_FONT", SWIG_FromInt((int)wxSYS_ANSI_FIXED_FONT));
29816 PyDict_SetItemString(d,"SYS_ANSI_VAR_FONT", SWIG_FromInt((int)wxSYS_ANSI_VAR_FONT));
29817 PyDict_SetItemString(d,"SYS_SYSTEM_FONT", SWIG_FromInt((int)wxSYS_SYSTEM_FONT));
29818 PyDict_SetItemString(d,"SYS_DEVICE_DEFAULT_FONT", SWIG_FromInt((int)wxSYS_DEVICE_DEFAULT_FONT));
29819 PyDict_SetItemString(d,"SYS_DEFAULT_PALETTE", SWIG_FromInt((int)wxSYS_DEFAULT_PALETTE));
29820 PyDict_SetItemString(d,"SYS_SYSTEM_FIXED_FONT", SWIG_FromInt((int)wxSYS_SYSTEM_FIXED_FONT));
29821 PyDict_SetItemString(d,"SYS_DEFAULT_GUI_FONT", SWIG_FromInt((int)wxSYS_DEFAULT_GUI_FONT));
29822 PyDict_SetItemString(d,"SYS_ICONTITLE_FONT", SWIG_FromInt((int)wxSYS_ICONTITLE_FONT));
29823 PyDict_SetItemString(d,"SYS_COLOUR_SCROLLBAR", SWIG_FromInt((int)wxSYS_COLOUR_SCROLLBAR));
29824 PyDict_SetItemString(d,"SYS_COLOUR_BACKGROUND", SWIG_FromInt((int)wxSYS_COLOUR_BACKGROUND));
29825 PyDict_SetItemString(d,"SYS_COLOUR_DESKTOP", SWIG_FromInt((int)wxSYS_COLOUR_DESKTOP));
29826 PyDict_SetItemString(d,"SYS_COLOUR_ACTIVECAPTION", SWIG_FromInt((int)wxSYS_COLOUR_ACTIVECAPTION));
29827 PyDict_SetItemString(d,"SYS_COLOUR_INACTIVECAPTION", SWIG_FromInt((int)wxSYS_COLOUR_INACTIVECAPTION));
29828 PyDict_SetItemString(d,"SYS_COLOUR_MENU", SWIG_FromInt((int)wxSYS_COLOUR_MENU));
29829 PyDict_SetItemString(d,"SYS_COLOUR_WINDOW", SWIG_FromInt((int)wxSYS_COLOUR_WINDOW));
29830 PyDict_SetItemString(d,"SYS_COLOUR_WINDOWFRAME", SWIG_FromInt((int)wxSYS_COLOUR_WINDOWFRAME));
29831 PyDict_SetItemString(d,"SYS_COLOUR_MENUTEXT", SWIG_FromInt((int)wxSYS_COLOUR_MENUTEXT));
29832 PyDict_SetItemString(d,"SYS_COLOUR_WINDOWTEXT", SWIG_FromInt((int)wxSYS_COLOUR_WINDOWTEXT));
29833 PyDict_SetItemString(d,"SYS_COLOUR_CAPTIONTEXT", SWIG_FromInt((int)wxSYS_COLOUR_CAPTIONTEXT));
29834 PyDict_SetItemString(d,"SYS_COLOUR_ACTIVEBORDER", SWIG_FromInt((int)wxSYS_COLOUR_ACTIVEBORDER));
29835 PyDict_SetItemString(d,"SYS_COLOUR_INACTIVEBORDER", SWIG_FromInt((int)wxSYS_COLOUR_INACTIVEBORDER));
29836 PyDict_SetItemString(d,"SYS_COLOUR_APPWORKSPACE", SWIG_FromInt((int)wxSYS_COLOUR_APPWORKSPACE));
29837 PyDict_SetItemString(d,"SYS_COLOUR_HIGHLIGHT", SWIG_FromInt((int)wxSYS_COLOUR_HIGHLIGHT));
29838 PyDict_SetItemString(d,"SYS_COLOUR_HIGHLIGHTTEXT", SWIG_FromInt((int)wxSYS_COLOUR_HIGHLIGHTTEXT));
29839 PyDict_SetItemString(d,"SYS_COLOUR_BTNFACE", SWIG_FromInt((int)wxSYS_COLOUR_BTNFACE));
29840 PyDict_SetItemString(d,"SYS_COLOUR_3DFACE", SWIG_FromInt((int)wxSYS_COLOUR_3DFACE));
29841 PyDict_SetItemString(d,"SYS_COLOUR_BTNSHADOW", SWIG_FromInt((int)wxSYS_COLOUR_BTNSHADOW));
29842 PyDict_SetItemString(d,"SYS_COLOUR_3DSHADOW", SWIG_FromInt((int)wxSYS_COLOUR_3DSHADOW));
29843 PyDict_SetItemString(d,"SYS_COLOUR_GRAYTEXT", SWIG_FromInt((int)wxSYS_COLOUR_GRAYTEXT));
29844 PyDict_SetItemString(d,"SYS_COLOUR_BTNTEXT", SWIG_FromInt((int)wxSYS_COLOUR_BTNTEXT));
29845 PyDict_SetItemString(d,"SYS_COLOUR_INACTIVECAPTIONTEXT", SWIG_FromInt((int)wxSYS_COLOUR_INACTIVECAPTIONTEXT));
29846 PyDict_SetItemString(d,"SYS_COLOUR_BTNHIGHLIGHT", SWIG_FromInt((int)wxSYS_COLOUR_BTNHIGHLIGHT));
29847 PyDict_SetItemString(d,"SYS_COLOUR_BTNHILIGHT", SWIG_FromInt((int)wxSYS_COLOUR_BTNHILIGHT));
29848 PyDict_SetItemString(d,"SYS_COLOUR_3DHIGHLIGHT", SWIG_FromInt((int)wxSYS_COLOUR_3DHIGHLIGHT));
29849 PyDict_SetItemString(d,"SYS_COLOUR_3DHILIGHT", SWIG_FromInt((int)wxSYS_COLOUR_3DHILIGHT));
29850 PyDict_SetItemString(d,"SYS_COLOUR_3DDKSHADOW", SWIG_FromInt((int)wxSYS_COLOUR_3DDKSHADOW));
29851 PyDict_SetItemString(d,"SYS_COLOUR_3DLIGHT", SWIG_FromInt((int)wxSYS_COLOUR_3DLIGHT));
29852 PyDict_SetItemString(d,"SYS_COLOUR_INFOTEXT", SWIG_FromInt((int)wxSYS_COLOUR_INFOTEXT));
29853 PyDict_SetItemString(d,"SYS_COLOUR_INFOBK", SWIG_FromInt((int)wxSYS_COLOUR_INFOBK));
29854 PyDict_SetItemString(d,"SYS_COLOUR_LISTBOX", SWIG_FromInt((int)wxSYS_COLOUR_LISTBOX));
29855 PyDict_SetItemString(d,"SYS_COLOUR_HOTLIGHT", SWIG_FromInt((int)wxSYS_COLOUR_HOTLIGHT));
29856 PyDict_SetItemString(d,"SYS_COLOUR_GRADIENTACTIVECAPTION", SWIG_FromInt((int)wxSYS_COLOUR_GRADIENTACTIVECAPTION));
29857 PyDict_SetItemString(d,"SYS_COLOUR_GRADIENTINACTIVECAPTION", SWIG_FromInt((int)wxSYS_COLOUR_GRADIENTINACTIVECAPTION));
29858 PyDict_SetItemString(d,"SYS_COLOUR_MENUHILIGHT", SWIG_FromInt((int)wxSYS_COLOUR_MENUHILIGHT));
29859 PyDict_SetItemString(d,"SYS_COLOUR_MENUBAR", SWIG_FromInt((int)wxSYS_COLOUR_MENUBAR));
29860 PyDict_SetItemString(d,"SYS_COLOUR_MAX", SWIG_FromInt((int)wxSYS_COLOUR_MAX));
29861 PyDict_SetItemString(d,"SYS_MOUSE_BUTTONS", SWIG_FromInt((int)wxSYS_MOUSE_BUTTONS));
29862 PyDict_SetItemString(d,"SYS_BORDER_X", SWIG_FromInt((int)wxSYS_BORDER_X));
29863 PyDict_SetItemString(d,"SYS_BORDER_Y", SWIG_FromInt((int)wxSYS_BORDER_Y));
29864 PyDict_SetItemString(d,"SYS_CURSOR_X", SWIG_FromInt((int)wxSYS_CURSOR_X));
29865 PyDict_SetItemString(d,"SYS_CURSOR_Y", SWIG_FromInt((int)wxSYS_CURSOR_Y));
29866 PyDict_SetItemString(d,"SYS_DCLICK_X", SWIG_FromInt((int)wxSYS_DCLICK_X));
29867 PyDict_SetItemString(d,"SYS_DCLICK_Y", SWIG_FromInt((int)wxSYS_DCLICK_Y));
29868 PyDict_SetItemString(d,"SYS_DRAG_X", SWIG_FromInt((int)wxSYS_DRAG_X));
29869 PyDict_SetItemString(d,"SYS_DRAG_Y", SWIG_FromInt((int)wxSYS_DRAG_Y));
29870 PyDict_SetItemString(d,"SYS_EDGE_X", SWIG_FromInt((int)wxSYS_EDGE_X));
29871 PyDict_SetItemString(d,"SYS_EDGE_Y", SWIG_FromInt((int)wxSYS_EDGE_Y));
29872 PyDict_SetItemString(d,"SYS_HSCROLL_ARROW_X", SWIG_FromInt((int)wxSYS_HSCROLL_ARROW_X));
29873 PyDict_SetItemString(d,"SYS_HSCROLL_ARROW_Y", SWIG_FromInt((int)wxSYS_HSCROLL_ARROW_Y));
29874 PyDict_SetItemString(d,"SYS_HTHUMB_X", SWIG_FromInt((int)wxSYS_HTHUMB_X));
29875 PyDict_SetItemString(d,"SYS_ICON_X", SWIG_FromInt((int)wxSYS_ICON_X));
29876 PyDict_SetItemString(d,"SYS_ICON_Y", SWIG_FromInt((int)wxSYS_ICON_Y));
29877 PyDict_SetItemString(d,"SYS_ICONSPACING_X", SWIG_FromInt((int)wxSYS_ICONSPACING_X));
29878 PyDict_SetItemString(d,"SYS_ICONSPACING_Y", SWIG_FromInt((int)wxSYS_ICONSPACING_Y));
29879 PyDict_SetItemString(d,"SYS_WINDOWMIN_X", SWIG_FromInt((int)wxSYS_WINDOWMIN_X));
29880 PyDict_SetItemString(d,"SYS_WINDOWMIN_Y", SWIG_FromInt((int)wxSYS_WINDOWMIN_Y));
29881 PyDict_SetItemString(d,"SYS_SCREEN_X", SWIG_FromInt((int)wxSYS_SCREEN_X));
29882 PyDict_SetItemString(d,"SYS_SCREEN_Y", SWIG_FromInt((int)wxSYS_SCREEN_Y));
29883 PyDict_SetItemString(d,"SYS_FRAMESIZE_X", SWIG_FromInt((int)wxSYS_FRAMESIZE_X));
29884 PyDict_SetItemString(d,"SYS_FRAMESIZE_Y", SWIG_FromInt((int)wxSYS_FRAMESIZE_Y));
29885 PyDict_SetItemString(d,"SYS_SMALLICON_X", SWIG_FromInt((int)wxSYS_SMALLICON_X));
29886 PyDict_SetItemString(d,"SYS_SMALLICON_Y", SWIG_FromInt((int)wxSYS_SMALLICON_Y));
29887 PyDict_SetItemString(d,"SYS_HSCROLL_Y", SWIG_FromInt((int)wxSYS_HSCROLL_Y));
29888 PyDict_SetItemString(d,"SYS_VSCROLL_X", SWIG_FromInt((int)wxSYS_VSCROLL_X));
29889 PyDict_SetItemString(d,"SYS_VSCROLL_ARROW_X", SWIG_FromInt((int)wxSYS_VSCROLL_ARROW_X));
29890 PyDict_SetItemString(d,"SYS_VSCROLL_ARROW_Y", SWIG_FromInt((int)wxSYS_VSCROLL_ARROW_Y));
29891 PyDict_SetItemString(d,"SYS_VTHUMB_Y", SWIG_FromInt((int)wxSYS_VTHUMB_Y));
29892 PyDict_SetItemString(d,"SYS_CAPTION_Y", SWIG_FromInt((int)wxSYS_CAPTION_Y));
29893 PyDict_SetItemString(d,"SYS_MENU_Y", SWIG_FromInt((int)wxSYS_MENU_Y));
29894 PyDict_SetItemString(d,"SYS_NETWORK_PRESENT", SWIG_FromInt((int)wxSYS_NETWORK_PRESENT));
29895 PyDict_SetItemString(d,"SYS_PENWINDOWS_PRESENT", SWIG_FromInt((int)wxSYS_PENWINDOWS_PRESENT));
29896 PyDict_SetItemString(d,"SYS_SHOW_SOUNDS", SWIG_FromInt((int)wxSYS_SHOW_SOUNDS));
29897 PyDict_SetItemString(d,"SYS_SWAP_BUTTONS", SWIG_FromInt((int)wxSYS_SWAP_BUTTONS));
29898 PyDict_SetItemString(d,"SYS_CAN_DRAW_FRAME_DECORATIONS", SWIG_FromInt((int)wxSYS_CAN_DRAW_FRAME_DECORATIONS));
29899 PyDict_SetItemString(d,"SYS_CAN_ICONIZE_FRAME", SWIG_FromInt((int)wxSYS_CAN_ICONIZE_FRAME));
29900 PyDict_SetItemString(d,"SYS_SCREEN_NONE", SWIG_FromInt((int)wxSYS_SCREEN_NONE));
29901 PyDict_SetItemString(d,"SYS_SCREEN_TINY", SWIG_FromInt((int)wxSYS_SCREEN_TINY));
29902 PyDict_SetItemString(d,"SYS_SCREEN_PDA", SWIG_FromInt((int)wxSYS_SCREEN_PDA));
29903 PyDict_SetItemString(d,"SYS_SCREEN_SMALL", SWIG_FromInt((int)wxSYS_SCREEN_SMALL));
29904 PyDict_SetItemString(d,"SYS_SCREEN_DESKTOP", SWIG_FromInt((int)wxSYS_SCREEN_DESKTOP));
29905 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
29906 SWIG_addvarlink(SWIG_globals,(char*)"FileSelectorPromptStr",_wrap_FileSelectorPromptStr_get, _wrap_FileSelectorPromptStr_set);
29907 SWIG_addvarlink(SWIG_globals,(char*)"FileSelectorDefaultWildcardStr",_wrap_FileSelectorDefaultWildcardStr_get, _wrap_FileSelectorDefaultWildcardStr_set);
29908 SWIG_addvarlink(SWIG_globals,(char*)"DirSelectorPromptStr",_wrap_DirSelectorPromptStr_get, _wrap_DirSelectorPromptStr_set);
29909 PyDict_SetItemString(d,"SHUTDOWN_POWEROFF", SWIG_FromInt((int)wxSHUTDOWN_POWEROFF));
29910 PyDict_SetItemString(d,"SHUTDOWN_REBOOT", SWIG_FromInt((int)wxSHUTDOWN_REBOOT));
29911 PyDict_SetItemString(d,"TIMER_CONTINUOUS", SWIG_FromInt((int)wxTIMER_CONTINUOUS));
29912 PyDict_SetItemString(d,"TIMER_ONE_SHOT", SWIG_FromInt((int)wxTIMER_ONE_SHOT));
29913 PyDict_SetItemString(d, "wxEVT_TIMER", PyInt_FromLong(wxEVT_TIMER));
29914
29915 wxPyPtrTypeMap_Add("wxTimer", "wxPyTimer");
29916
29917 PyDict_SetItemString(d,"LOG_FatalError", SWIG_FromInt((int)wxLOG_FatalError));
29918 PyDict_SetItemString(d,"LOG_Error", SWIG_FromInt((int)wxLOG_Error));
29919 PyDict_SetItemString(d,"LOG_Warning", SWIG_FromInt((int)wxLOG_Warning));
29920 PyDict_SetItemString(d,"LOG_Message", SWIG_FromInt((int)wxLOG_Message));
29921 PyDict_SetItemString(d,"LOG_Status", SWIG_FromInt((int)wxLOG_Status));
29922 PyDict_SetItemString(d,"LOG_Info", SWIG_FromInt((int)wxLOG_Info));
29923 PyDict_SetItemString(d,"LOG_Debug", SWIG_FromInt((int)wxLOG_Debug));
29924 PyDict_SetItemString(d,"LOG_Trace", SWIG_FromInt((int)wxLOG_Trace));
29925 PyDict_SetItemString(d,"LOG_Progress", SWIG_FromInt((int)wxLOG_Progress));
29926 PyDict_SetItemString(d,"LOG_User", SWIG_FromInt((int)wxLOG_User));
29927 PyDict_SetItemString(d,"LOG_Max", SWIG_FromInt((int)wxLOG_Max));
29928 PyDict_SetItemString(d,"TRACE_MemAlloc", SWIG_FromCharPtr("memalloc"));
29929 PyDict_SetItemString(d,"TRACE_Messages", SWIG_FromCharPtr("messages"));
29930 PyDict_SetItemString(d,"TRACE_ResAlloc", SWIG_FromCharPtr("resalloc"));
29931 PyDict_SetItemString(d,"TRACE_RefCount", SWIG_FromCharPtr("refcount"));
29932 PyDict_SetItemString(d,"TRACE_OleCalls", SWIG_FromCharPtr("ole"));
29933 PyDict_SetItemString(d,"TraceMemAlloc", SWIG_FromInt((int)0x0001));
29934 PyDict_SetItemString(d,"TraceMessages", SWIG_FromInt((int)0x0002));
29935 PyDict_SetItemString(d,"TraceResAlloc", SWIG_FromInt((int)0x0004));
29936 PyDict_SetItemString(d,"TraceRefCount", SWIG_FromInt((int)0x0008));
29937 PyDict_SetItemString(d,"TraceOleCalls", SWIG_FromInt((int)0x0100));
29938 PyDict_SetItemString(d,"PROCESS_DEFAULT", SWIG_FromInt((int)wxPROCESS_DEFAULT));
29939 PyDict_SetItemString(d,"PROCESS_REDIRECT", SWIG_FromInt((int)wxPROCESS_REDIRECT));
29940 PyDict_SetItemString(d,"KILL_OK", SWIG_FromInt((int)wxKILL_OK));
29941 PyDict_SetItemString(d,"KILL_BAD_SIGNAL", SWIG_FromInt((int)wxKILL_BAD_SIGNAL));
29942 PyDict_SetItemString(d,"KILL_ACCESS_DENIED", SWIG_FromInt((int)wxKILL_ACCESS_DENIED));
29943 PyDict_SetItemString(d,"KILL_NO_PROCESS", SWIG_FromInt((int)wxKILL_NO_PROCESS));
29944 PyDict_SetItemString(d,"KILL_ERROR", SWIG_FromInt((int)wxKILL_ERROR));
29945 PyDict_SetItemString(d,"SIGNONE", SWIG_FromInt((int)wxSIGNONE));
29946 PyDict_SetItemString(d,"SIGHUP", SWIG_FromInt((int)wxSIGHUP));
29947 PyDict_SetItemString(d,"SIGINT", SWIG_FromInt((int)wxSIGINT));
29948 PyDict_SetItemString(d,"SIGQUIT", SWIG_FromInt((int)wxSIGQUIT));
29949 PyDict_SetItemString(d,"SIGILL", SWIG_FromInt((int)wxSIGILL));
29950 PyDict_SetItemString(d,"SIGTRAP", SWIG_FromInt((int)wxSIGTRAP));
29951 PyDict_SetItemString(d,"SIGABRT", SWIG_FromInt((int)wxSIGABRT));
29952 PyDict_SetItemString(d,"SIGIOT", SWIG_FromInt((int)wxSIGIOT));
29953 PyDict_SetItemString(d,"SIGEMT", SWIG_FromInt((int)wxSIGEMT));
29954 PyDict_SetItemString(d,"SIGFPE", SWIG_FromInt((int)wxSIGFPE));
29955 PyDict_SetItemString(d,"SIGKILL", SWIG_FromInt((int)wxSIGKILL));
29956 PyDict_SetItemString(d,"SIGBUS", SWIG_FromInt((int)wxSIGBUS));
29957 PyDict_SetItemString(d,"SIGSEGV", SWIG_FromInt((int)wxSIGSEGV));
29958 PyDict_SetItemString(d,"SIGSYS", SWIG_FromInt((int)wxSIGSYS));
29959 PyDict_SetItemString(d,"SIGPIPE", SWIG_FromInt((int)wxSIGPIPE));
29960 PyDict_SetItemString(d,"SIGALRM", SWIG_FromInt((int)wxSIGALRM));
29961 PyDict_SetItemString(d,"SIGTERM", SWIG_FromInt((int)wxSIGTERM));
29962 PyDict_SetItemString(d, "wxEVT_END_PROCESS", PyInt_FromLong(wxEVT_END_PROCESS));
29963 PyDict_SetItemString(d,"EXEC_ASYNC", SWIG_FromInt((int)wxEXEC_ASYNC));
29964 PyDict_SetItemString(d,"EXEC_SYNC", SWIG_FromInt((int)wxEXEC_SYNC));
29965 PyDict_SetItemString(d,"EXEC_NOHIDE", SWIG_FromInt((int)wxEXEC_NOHIDE));
29966 PyDict_SetItemString(d,"EXEC_MAKE_GROUP_LEADER", SWIG_FromInt((int)wxEXEC_MAKE_GROUP_LEADER));
29967
29968 wxPyPtrTypeMap_Add("wxProcess", "wxPyProcess");
29969
29970 PyDict_SetItemString(d,"JOYSTICK1", SWIG_FromInt((int)wxJOYSTICK1));
29971 PyDict_SetItemString(d,"JOYSTICK2", SWIG_FromInt((int)wxJOYSTICK2));
29972 PyDict_SetItemString(d,"JOY_BUTTON_ANY", SWIG_FromInt((int)wxJOY_BUTTON_ANY));
29973 PyDict_SetItemString(d,"JOY_BUTTON1", SWIG_FromInt((int)wxJOY_BUTTON1));
29974 PyDict_SetItemString(d,"JOY_BUTTON2", SWIG_FromInt((int)wxJOY_BUTTON2));
29975 PyDict_SetItemString(d,"JOY_BUTTON3", SWIG_FromInt((int)wxJOY_BUTTON3));
29976 PyDict_SetItemString(d,"JOY_BUTTON4", SWIG_FromInt((int)wxJOY_BUTTON4));
29977 PyDict_SetItemString(d, "wxEVT_JOY_BUTTON_DOWN", PyInt_FromLong(wxEVT_JOY_BUTTON_DOWN));
29978 PyDict_SetItemString(d, "wxEVT_JOY_BUTTON_UP", PyInt_FromLong(wxEVT_JOY_BUTTON_UP));
29979 PyDict_SetItemString(d, "wxEVT_JOY_MOVE", PyInt_FromLong(wxEVT_JOY_MOVE));
29980 PyDict_SetItemString(d, "wxEVT_JOY_ZMOVE", PyInt_FromLong(wxEVT_JOY_ZMOVE));
29981 PyDict_SetItemString(d,"SOUND_SYNC", SWIG_FromInt((int)wxSOUND_SYNC));
29982 PyDict_SetItemString(d,"SOUND_ASYNC", SWIG_FromInt((int)wxSOUND_ASYNC));
29983 PyDict_SetItemString(d,"SOUND_LOOP", SWIG_FromInt((int)wxSOUND_LOOP));
29984 PyDict_SetItemString(d,"MAILCAP_STANDARD", SWIG_FromInt((int)wxMAILCAP_STANDARD));
29985 PyDict_SetItemString(d,"MAILCAP_NETSCAPE", SWIG_FromInt((int)wxMAILCAP_NETSCAPE));
29986 PyDict_SetItemString(d,"MAILCAP_KDE", SWIG_FromInt((int)wxMAILCAP_KDE));
29987 PyDict_SetItemString(d,"MAILCAP_GNOME", SWIG_FromInt((int)wxMAILCAP_GNOME));
29988 PyDict_SetItemString(d,"MAILCAP_ALL", SWIG_FromInt((int)wxMAILCAP_ALL));
29989 SWIG_addvarlink(SWIG_globals,(char*)"TheMimeTypesManager",_wrap_TheMimeTypesManager_get, _wrap_TheMimeTypesManager_set);
29990 SWIG_addvarlink(SWIG_globals,(char*)"ART_TOOLBAR",_wrap_ART_TOOLBAR_get, _wrap_ART_TOOLBAR_set);
29991 SWIG_addvarlink(SWIG_globals,(char*)"ART_MENU",_wrap_ART_MENU_get, _wrap_ART_MENU_set);
29992 SWIG_addvarlink(SWIG_globals,(char*)"ART_FRAME_ICON",_wrap_ART_FRAME_ICON_get, _wrap_ART_FRAME_ICON_set);
29993 SWIG_addvarlink(SWIG_globals,(char*)"ART_CMN_DIALOG",_wrap_ART_CMN_DIALOG_get, _wrap_ART_CMN_DIALOG_set);
29994 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_BROWSER",_wrap_ART_HELP_BROWSER_get, _wrap_ART_HELP_BROWSER_set);
29995 SWIG_addvarlink(SWIG_globals,(char*)"ART_MESSAGE_BOX",_wrap_ART_MESSAGE_BOX_get, _wrap_ART_MESSAGE_BOX_set);
29996 SWIG_addvarlink(SWIG_globals,(char*)"ART_BUTTON",_wrap_ART_BUTTON_get, _wrap_ART_BUTTON_set);
29997 SWIG_addvarlink(SWIG_globals,(char*)"ART_OTHER",_wrap_ART_OTHER_get, _wrap_ART_OTHER_set);
29998 SWIG_addvarlink(SWIG_globals,(char*)"ART_ADD_BOOKMARK",_wrap_ART_ADD_BOOKMARK_get, _wrap_ART_ADD_BOOKMARK_set);
29999 SWIG_addvarlink(SWIG_globals,(char*)"ART_DEL_BOOKMARK",_wrap_ART_DEL_BOOKMARK_get, _wrap_ART_DEL_BOOKMARK_set);
30000 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_SIDE_PANEL",_wrap_ART_HELP_SIDE_PANEL_get, _wrap_ART_HELP_SIDE_PANEL_set);
30001 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_SETTINGS",_wrap_ART_HELP_SETTINGS_get, _wrap_ART_HELP_SETTINGS_set);
30002 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_BOOK",_wrap_ART_HELP_BOOK_get, _wrap_ART_HELP_BOOK_set);
30003 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_FOLDER",_wrap_ART_HELP_FOLDER_get, _wrap_ART_HELP_FOLDER_set);
30004 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_PAGE",_wrap_ART_HELP_PAGE_get, _wrap_ART_HELP_PAGE_set);
30005 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_BACK",_wrap_ART_GO_BACK_get, _wrap_ART_GO_BACK_set);
30006 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_FORWARD",_wrap_ART_GO_FORWARD_get, _wrap_ART_GO_FORWARD_set);
30007 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_UP",_wrap_ART_GO_UP_get, _wrap_ART_GO_UP_set);
30008 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_DOWN",_wrap_ART_GO_DOWN_get, _wrap_ART_GO_DOWN_set);
30009 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_TO_PARENT",_wrap_ART_GO_TO_PARENT_get, _wrap_ART_GO_TO_PARENT_set);
30010 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_HOME",_wrap_ART_GO_HOME_get, _wrap_ART_GO_HOME_set);
30011 SWIG_addvarlink(SWIG_globals,(char*)"ART_FILE_OPEN",_wrap_ART_FILE_OPEN_get, _wrap_ART_FILE_OPEN_set);
30012 SWIG_addvarlink(SWIG_globals,(char*)"ART_PRINT",_wrap_ART_PRINT_get, _wrap_ART_PRINT_set);
30013 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP",_wrap_ART_HELP_get, _wrap_ART_HELP_set);
30014 SWIG_addvarlink(SWIG_globals,(char*)"ART_TIP",_wrap_ART_TIP_get, _wrap_ART_TIP_set);
30015 SWIG_addvarlink(SWIG_globals,(char*)"ART_REPORT_VIEW",_wrap_ART_REPORT_VIEW_get, _wrap_ART_REPORT_VIEW_set);
30016 SWIG_addvarlink(SWIG_globals,(char*)"ART_LIST_VIEW",_wrap_ART_LIST_VIEW_get, _wrap_ART_LIST_VIEW_set);
30017 SWIG_addvarlink(SWIG_globals,(char*)"ART_NEW_DIR",_wrap_ART_NEW_DIR_get, _wrap_ART_NEW_DIR_set);
30018 SWIG_addvarlink(SWIG_globals,(char*)"ART_FOLDER",_wrap_ART_FOLDER_get, _wrap_ART_FOLDER_set);
30019 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_DIR_UP",_wrap_ART_GO_DIR_UP_get, _wrap_ART_GO_DIR_UP_set);
30020 SWIG_addvarlink(SWIG_globals,(char*)"ART_EXECUTABLE_FILE",_wrap_ART_EXECUTABLE_FILE_get, _wrap_ART_EXECUTABLE_FILE_set);
30021 SWIG_addvarlink(SWIG_globals,(char*)"ART_NORMAL_FILE",_wrap_ART_NORMAL_FILE_get, _wrap_ART_NORMAL_FILE_set);
30022 SWIG_addvarlink(SWIG_globals,(char*)"ART_TICK_MARK",_wrap_ART_TICK_MARK_get, _wrap_ART_TICK_MARK_set);
30023 SWIG_addvarlink(SWIG_globals,(char*)"ART_CROSS_MARK",_wrap_ART_CROSS_MARK_get, _wrap_ART_CROSS_MARK_set);
30024 SWIG_addvarlink(SWIG_globals,(char*)"ART_ERROR",_wrap_ART_ERROR_get, _wrap_ART_ERROR_set);
30025 SWIG_addvarlink(SWIG_globals,(char*)"ART_QUESTION",_wrap_ART_QUESTION_get, _wrap_ART_QUESTION_set);
30026 SWIG_addvarlink(SWIG_globals,(char*)"ART_WARNING",_wrap_ART_WARNING_get, _wrap_ART_WARNING_set);
30027 SWIG_addvarlink(SWIG_globals,(char*)"ART_INFORMATION",_wrap_ART_INFORMATION_get, _wrap_ART_INFORMATION_set);
30028 SWIG_addvarlink(SWIG_globals,(char*)"ART_MISSING_IMAGE",_wrap_ART_MISSING_IMAGE_get, _wrap_ART_MISSING_IMAGE_set);
30029
30030 wxPyPtrTypeMap_Add("wxArtProvider", "wxPyArtProvider");
30031
30032 PyDict_SetItemString(d,"CONFIG_USE_LOCAL_FILE", SWIG_FromInt((int)wxCONFIG_USE_LOCAL_FILE));
30033 PyDict_SetItemString(d,"CONFIG_USE_GLOBAL_FILE", SWIG_FromInt((int)wxCONFIG_USE_GLOBAL_FILE));
30034 PyDict_SetItemString(d,"CONFIG_USE_RELATIVE_PATH", SWIG_FromInt((int)wxCONFIG_USE_RELATIVE_PATH));
30035 PyDict_SetItemString(d,"CONFIG_USE_NO_ESCAPE_CHARACTERS", SWIG_FromInt((int)wxCONFIG_USE_NO_ESCAPE_CHARACTERS));
30036 PyDict_SetItemString(d,"ConfigBase_Type_Unknown", SWIG_FromInt((int)wxConfigBase::Type_Unknown));
30037 PyDict_SetItemString(d,"ConfigBase_Type_String", SWIG_FromInt((int)wxConfigBase::Type_String));
30038 PyDict_SetItemString(d,"ConfigBase_Type_Boolean", SWIG_FromInt((int)wxConfigBase::Type_Boolean));
30039 PyDict_SetItemString(d,"ConfigBase_Type_Integer", SWIG_FromInt((int)wxConfigBase::Type_Integer));
30040 PyDict_SetItemString(d,"ConfigBase_Type_Float", SWIG_FromInt((int)wxConfigBase::Type_Float));
30041 SWIG_addvarlink(SWIG_globals,(char*)"DateFormatStr",_wrap_DateFormatStr_get, _wrap_DateFormatStr_set);
30042 SWIG_addvarlink(SWIG_globals,(char*)"TimeSpanFormatStr",_wrap_TimeSpanFormatStr_get, _wrap_TimeSpanFormatStr_set);
30043 PyDict_SetItemString(d,"DateTime_Local", SWIG_FromInt((int)wxDateTime::Local));
30044 PyDict_SetItemString(d,"DateTime_GMT_12", SWIG_FromInt((int)wxDateTime::GMT_12));
30045 PyDict_SetItemString(d,"DateTime_GMT_11", SWIG_FromInt((int)wxDateTime::GMT_11));
30046 PyDict_SetItemString(d,"DateTime_GMT_10", SWIG_FromInt((int)wxDateTime::GMT_10));
30047 PyDict_SetItemString(d,"DateTime_GMT_9", SWIG_FromInt((int)wxDateTime::GMT_9));
30048 PyDict_SetItemString(d,"DateTime_GMT_8", SWIG_FromInt((int)wxDateTime::GMT_8));
30049 PyDict_SetItemString(d,"DateTime_GMT_7", SWIG_FromInt((int)wxDateTime::GMT_7));
30050 PyDict_SetItemString(d,"DateTime_GMT_6", SWIG_FromInt((int)wxDateTime::GMT_6));
30051 PyDict_SetItemString(d,"DateTime_GMT_5", SWIG_FromInt((int)wxDateTime::GMT_5));
30052 PyDict_SetItemString(d,"DateTime_GMT_4", SWIG_FromInt((int)wxDateTime::GMT_4));
30053 PyDict_SetItemString(d,"DateTime_GMT_3", SWIG_FromInt((int)wxDateTime::GMT_3));
30054 PyDict_SetItemString(d,"DateTime_GMT_2", SWIG_FromInt((int)wxDateTime::GMT_2));
30055 PyDict_SetItemString(d,"DateTime_GMT_1", SWIG_FromInt((int)wxDateTime::GMT_1));
30056 PyDict_SetItemString(d,"DateTime_GMT0", SWIG_FromInt((int)wxDateTime::GMT0));
30057 PyDict_SetItemString(d,"DateTime_GMT1", SWIG_FromInt((int)wxDateTime::GMT1));
30058 PyDict_SetItemString(d,"DateTime_GMT2", SWIG_FromInt((int)wxDateTime::GMT2));
30059 PyDict_SetItemString(d,"DateTime_GMT3", SWIG_FromInt((int)wxDateTime::GMT3));
30060 PyDict_SetItemString(d,"DateTime_GMT4", SWIG_FromInt((int)wxDateTime::GMT4));
30061 PyDict_SetItemString(d,"DateTime_GMT5", SWIG_FromInt((int)wxDateTime::GMT5));
30062 PyDict_SetItemString(d,"DateTime_GMT6", SWIG_FromInt((int)wxDateTime::GMT6));
30063 PyDict_SetItemString(d,"DateTime_GMT7", SWIG_FromInt((int)wxDateTime::GMT7));
30064 PyDict_SetItemString(d,"DateTime_GMT8", SWIG_FromInt((int)wxDateTime::GMT8));
30065 PyDict_SetItemString(d,"DateTime_GMT9", SWIG_FromInt((int)wxDateTime::GMT9));
30066 PyDict_SetItemString(d,"DateTime_GMT10", SWIG_FromInt((int)wxDateTime::GMT10));
30067 PyDict_SetItemString(d,"DateTime_GMT11", SWIG_FromInt((int)wxDateTime::GMT11));
30068 PyDict_SetItemString(d,"DateTime_GMT12", SWIG_FromInt((int)wxDateTime::GMT12));
30069 PyDict_SetItemString(d,"DateTime_WET", SWIG_FromInt((int)wxDateTime::WET));
30070 PyDict_SetItemString(d,"DateTime_WEST", SWIG_FromInt((int)wxDateTime::WEST));
30071 PyDict_SetItemString(d,"DateTime_CET", SWIG_FromInt((int)wxDateTime::CET));
30072 PyDict_SetItemString(d,"DateTime_CEST", SWIG_FromInt((int)wxDateTime::CEST));
30073 PyDict_SetItemString(d,"DateTime_EET", SWIG_FromInt((int)wxDateTime::EET));
30074 PyDict_SetItemString(d,"DateTime_EEST", SWIG_FromInt((int)wxDateTime::EEST));
30075 PyDict_SetItemString(d,"DateTime_MSK", SWIG_FromInt((int)wxDateTime::MSK));
30076 PyDict_SetItemString(d,"DateTime_MSD", SWIG_FromInt((int)wxDateTime::MSD));
30077 PyDict_SetItemString(d,"DateTime_AST", SWIG_FromInt((int)wxDateTime::AST));
30078 PyDict_SetItemString(d,"DateTime_ADT", SWIG_FromInt((int)wxDateTime::ADT));
30079 PyDict_SetItemString(d,"DateTime_EST", SWIG_FromInt((int)wxDateTime::EST));
30080 PyDict_SetItemString(d,"DateTime_EDT", SWIG_FromInt((int)wxDateTime::EDT));
30081 PyDict_SetItemString(d,"DateTime_CST", SWIG_FromInt((int)wxDateTime::CST));
30082 PyDict_SetItemString(d,"DateTime_CDT", SWIG_FromInt((int)wxDateTime::CDT));
30083 PyDict_SetItemString(d,"DateTime_MST", SWIG_FromInt((int)wxDateTime::MST));
30084 PyDict_SetItemString(d,"DateTime_MDT", SWIG_FromInt((int)wxDateTime::MDT));
30085 PyDict_SetItemString(d,"DateTime_PST", SWIG_FromInt((int)wxDateTime::PST));
30086 PyDict_SetItemString(d,"DateTime_PDT", SWIG_FromInt((int)wxDateTime::PDT));
30087 PyDict_SetItemString(d,"DateTime_HST", SWIG_FromInt((int)wxDateTime::HST));
30088 PyDict_SetItemString(d,"DateTime_AKST", SWIG_FromInt((int)wxDateTime::AKST));
30089 PyDict_SetItemString(d,"DateTime_AKDT", SWIG_FromInt((int)wxDateTime::AKDT));
30090 PyDict_SetItemString(d,"DateTime_A_WST", SWIG_FromInt((int)wxDateTime::A_WST));
30091 PyDict_SetItemString(d,"DateTime_A_CST", SWIG_FromInt((int)wxDateTime::A_CST));
30092 PyDict_SetItemString(d,"DateTime_A_EST", SWIG_FromInt((int)wxDateTime::A_EST));
30093 PyDict_SetItemString(d,"DateTime_A_ESST", SWIG_FromInt((int)wxDateTime::A_ESST));
30094 PyDict_SetItemString(d,"DateTime_UTC", SWIG_FromInt((int)wxDateTime::UTC));
30095 PyDict_SetItemString(d,"DateTime_Gregorian", SWIG_FromInt((int)wxDateTime::Gregorian));
30096 PyDict_SetItemString(d,"DateTime_Julian", SWIG_FromInt((int)wxDateTime::Julian));
30097 PyDict_SetItemString(d,"DateTime_Gr_Unknown", SWIG_FromInt((int)wxDateTime::Gr_Unknown));
30098 PyDict_SetItemString(d,"DateTime_Gr_Standard", SWIG_FromInt((int)wxDateTime::Gr_Standard));
30099 PyDict_SetItemString(d,"DateTime_Gr_Alaska", SWIG_FromInt((int)wxDateTime::Gr_Alaska));
30100 PyDict_SetItemString(d,"DateTime_Gr_Albania", SWIG_FromInt((int)wxDateTime::Gr_Albania));
30101 PyDict_SetItemString(d,"DateTime_Gr_Austria", SWIG_FromInt((int)wxDateTime::Gr_Austria));
30102 PyDict_SetItemString(d,"DateTime_Gr_Austria_Brixen", SWIG_FromInt((int)wxDateTime::Gr_Austria_Brixen));
30103 PyDict_SetItemString(d,"DateTime_Gr_Austria_Salzburg", SWIG_FromInt((int)wxDateTime::Gr_Austria_Salzburg));
30104 PyDict_SetItemString(d,"DateTime_Gr_Austria_Tyrol", SWIG_FromInt((int)wxDateTime::Gr_Austria_Tyrol));
30105 PyDict_SetItemString(d,"DateTime_Gr_Austria_Carinthia", SWIG_FromInt((int)wxDateTime::Gr_Austria_Carinthia));
30106 PyDict_SetItemString(d,"DateTime_Gr_Austria_Styria", SWIG_FromInt((int)wxDateTime::Gr_Austria_Styria));
30107 PyDict_SetItemString(d,"DateTime_Gr_Belgium", SWIG_FromInt((int)wxDateTime::Gr_Belgium));
30108 PyDict_SetItemString(d,"DateTime_Gr_Bulgaria", SWIG_FromInt((int)wxDateTime::Gr_Bulgaria));
30109 PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_1", SWIG_FromInt((int)wxDateTime::Gr_Bulgaria_1));
30110 PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_2", SWIG_FromInt((int)wxDateTime::Gr_Bulgaria_2));
30111 PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_3", SWIG_FromInt((int)wxDateTime::Gr_Bulgaria_3));
30112 PyDict_SetItemString(d,"DateTime_Gr_Canada", SWIG_FromInt((int)wxDateTime::Gr_Canada));
30113 PyDict_SetItemString(d,"DateTime_Gr_China", SWIG_FromInt((int)wxDateTime::Gr_China));
30114 PyDict_SetItemString(d,"DateTime_Gr_China_1", SWIG_FromInt((int)wxDateTime::Gr_China_1));
30115 PyDict_SetItemString(d,"DateTime_Gr_China_2", SWIG_FromInt((int)wxDateTime::Gr_China_2));
30116 PyDict_SetItemString(d,"DateTime_Gr_Czechoslovakia", SWIG_FromInt((int)wxDateTime::Gr_Czechoslovakia));
30117 PyDict_SetItemString(d,"DateTime_Gr_Denmark", SWIG_FromInt((int)wxDateTime::Gr_Denmark));
30118 PyDict_SetItemString(d,"DateTime_Gr_Egypt", SWIG_FromInt((int)wxDateTime::Gr_Egypt));
30119 PyDict_SetItemString(d,"DateTime_Gr_Estonia", SWIG_FromInt((int)wxDateTime::Gr_Estonia));
30120 PyDict_SetItemString(d,"DateTime_Gr_Finland", SWIG_FromInt((int)wxDateTime::Gr_Finland));
30121 PyDict_SetItemString(d,"DateTime_Gr_France", SWIG_FromInt((int)wxDateTime::Gr_France));
30122 PyDict_SetItemString(d,"DateTime_Gr_France_Alsace", SWIG_FromInt((int)wxDateTime::Gr_France_Alsace));
30123 PyDict_SetItemString(d,"DateTime_Gr_France_Lorraine", SWIG_FromInt((int)wxDateTime::Gr_France_Lorraine));
30124 PyDict_SetItemString(d,"DateTime_Gr_France_Strasbourg", SWIG_FromInt((int)wxDateTime::Gr_France_Strasbourg));
30125 PyDict_SetItemString(d,"DateTime_Gr_Germany", SWIG_FromInt((int)wxDateTime::Gr_Germany));
30126 PyDict_SetItemString(d,"DateTime_Gr_Germany_Catholic", SWIG_FromInt((int)wxDateTime::Gr_Germany_Catholic));
30127 PyDict_SetItemString(d,"DateTime_Gr_Germany_Prussia", SWIG_FromInt((int)wxDateTime::Gr_Germany_Prussia));
30128 PyDict_SetItemString(d,"DateTime_Gr_Germany_Protestant", SWIG_FromInt((int)wxDateTime::Gr_Germany_Protestant));
30129 PyDict_SetItemString(d,"DateTime_Gr_GreatBritain", SWIG_FromInt((int)wxDateTime::Gr_GreatBritain));
30130 PyDict_SetItemString(d,"DateTime_Gr_Greece", SWIG_FromInt((int)wxDateTime::Gr_Greece));
30131 PyDict_SetItemString(d,"DateTime_Gr_Hungary", SWIG_FromInt((int)wxDateTime::Gr_Hungary));
30132 PyDict_SetItemString(d,"DateTime_Gr_Ireland", SWIG_FromInt((int)wxDateTime::Gr_Ireland));
30133 PyDict_SetItemString(d,"DateTime_Gr_Italy", SWIG_FromInt((int)wxDateTime::Gr_Italy));
30134 PyDict_SetItemString(d,"DateTime_Gr_Japan", SWIG_FromInt((int)wxDateTime::Gr_Japan));
30135 PyDict_SetItemString(d,"DateTime_Gr_Japan_1", SWIG_FromInt((int)wxDateTime::Gr_Japan_1));
30136 PyDict_SetItemString(d,"DateTime_Gr_Japan_2", SWIG_FromInt((int)wxDateTime::Gr_Japan_2));
30137 PyDict_SetItemString(d,"DateTime_Gr_Japan_3", SWIG_FromInt((int)wxDateTime::Gr_Japan_3));
30138 PyDict_SetItemString(d,"DateTime_Gr_Latvia", SWIG_FromInt((int)wxDateTime::Gr_Latvia));
30139 PyDict_SetItemString(d,"DateTime_Gr_Lithuania", SWIG_FromInt((int)wxDateTime::Gr_Lithuania));
30140 PyDict_SetItemString(d,"DateTime_Gr_Luxemburg", SWIG_FromInt((int)wxDateTime::Gr_Luxemburg));
30141 PyDict_SetItemString(d,"DateTime_Gr_Netherlands", SWIG_FromInt((int)wxDateTime::Gr_Netherlands));
30142 PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Groningen", SWIG_FromInt((int)wxDateTime::Gr_Netherlands_Groningen));
30143 PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Gelderland", SWIG_FromInt((int)wxDateTime::Gr_Netherlands_Gelderland));
30144 PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Utrecht", SWIG_FromInt((int)wxDateTime::Gr_Netherlands_Utrecht));
30145 PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Friesland", SWIG_FromInt((int)wxDateTime::Gr_Netherlands_Friesland));
30146 PyDict_SetItemString(d,"DateTime_Gr_Norway", SWIG_FromInt((int)wxDateTime::Gr_Norway));
30147 PyDict_SetItemString(d,"DateTime_Gr_Poland", SWIG_FromInt((int)wxDateTime::Gr_Poland));
30148 PyDict_SetItemString(d,"DateTime_Gr_Portugal", SWIG_FromInt((int)wxDateTime::Gr_Portugal));
30149 PyDict_SetItemString(d,"DateTime_Gr_Romania", SWIG_FromInt((int)wxDateTime::Gr_Romania));
30150 PyDict_SetItemString(d,"DateTime_Gr_Russia", SWIG_FromInt((int)wxDateTime::Gr_Russia));
30151 PyDict_SetItemString(d,"DateTime_Gr_Scotland", SWIG_FromInt((int)wxDateTime::Gr_Scotland));
30152 PyDict_SetItemString(d,"DateTime_Gr_Spain", SWIG_FromInt((int)wxDateTime::Gr_Spain));
30153 PyDict_SetItemString(d,"DateTime_Gr_Sweden", SWIG_FromInt((int)wxDateTime::Gr_Sweden));
30154 PyDict_SetItemString(d,"DateTime_Gr_Switzerland", SWIG_FromInt((int)wxDateTime::Gr_Switzerland));
30155 PyDict_SetItemString(d,"DateTime_Gr_Switzerland_Catholic", SWIG_FromInt((int)wxDateTime::Gr_Switzerland_Catholic));
30156 PyDict_SetItemString(d,"DateTime_Gr_Switzerland_Protestant", SWIG_FromInt((int)wxDateTime::Gr_Switzerland_Protestant));
30157 PyDict_SetItemString(d,"DateTime_Gr_Turkey", SWIG_FromInt((int)wxDateTime::Gr_Turkey));
30158 PyDict_SetItemString(d,"DateTime_Gr_USA", SWIG_FromInt((int)wxDateTime::Gr_USA));
30159 PyDict_SetItemString(d,"DateTime_Gr_Wales", SWIG_FromInt((int)wxDateTime::Gr_Wales));
30160 PyDict_SetItemString(d,"DateTime_Gr_Yugoslavia", SWIG_FromInt((int)wxDateTime::Gr_Yugoslavia));
30161 PyDict_SetItemString(d,"DateTime_Country_Unknown", SWIG_FromInt((int)wxDateTime::Country_Unknown));
30162 PyDict_SetItemString(d,"DateTime_Country_Default", SWIG_FromInt((int)wxDateTime::Country_Default));
30163 PyDict_SetItemString(d,"DateTime_Country_WesternEurope_Start", SWIG_FromInt((int)wxDateTime::Country_WesternEurope_Start));
30164 PyDict_SetItemString(d,"DateTime_Country_EEC", SWIG_FromInt((int)wxDateTime::Country_EEC));
30165 PyDict_SetItemString(d,"DateTime_France", SWIG_FromInt((int)wxDateTime::France));
30166 PyDict_SetItemString(d,"DateTime_Germany", SWIG_FromInt((int)wxDateTime::Germany));
30167 PyDict_SetItemString(d,"DateTime_UK", SWIG_FromInt((int)wxDateTime::UK));
30168 PyDict_SetItemString(d,"DateTime_Country_WesternEurope_End", SWIG_FromInt((int)wxDateTime::Country_WesternEurope_End));
30169 PyDict_SetItemString(d,"DateTime_Russia", SWIG_FromInt((int)wxDateTime::Russia));
30170 PyDict_SetItemString(d,"DateTime_USA", SWIG_FromInt((int)wxDateTime::USA));
30171 PyDict_SetItemString(d,"DateTime_Jan", SWIG_FromInt((int)wxDateTime::Jan));
30172 PyDict_SetItemString(d,"DateTime_Feb", SWIG_FromInt((int)wxDateTime::Feb));
30173 PyDict_SetItemString(d,"DateTime_Mar", SWIG_FromInt((int)wxDateTime::Mar));
30174 PyDict_SetItemString(d,"DateTime_Apr", SWIG_FromInt((int)wxDateTime::Apr));
30175 PyDict_SetItemString(d,"DateTime_May", SWIG_FromInt((int)wxDateTime::May));
30176 PyDict_SetItemString(d,"DateTime_Jun", SWIG_FromInt((int)wxDateTime::Jun));
30177 PyDict_SetItemString(d,"DateTime_Jul", SWIG_FromInt((int)wxDateTime::Jul));
30178 PyDict_SetItemString(d,"DateTime_Aug", SWIG_FromInt((int)wxDateTime::Aug));
30179 PyDict_SetItemString(d,"DateTime_Sep", SWIG_FromInt((int)wxDateTime::Sep));
30180 PyDict_SetItemString(d,"DateTime_Oct", SWIG_FromInt((int)wxDateTime::Oct));
30181 PyDict_SetItemString(d,"DateTime_Nov", SWIG_FromInt((int)wxDateTime::Nov));
30182 PyDict_SetItemString(d,"DateTime_Dec", SWIG_FromInt((int)wxDateTime::Dec));
30183 PyDict_SetItemString(d,"DateTime_Inv_Month", SWIG_FromInt((int)wxDateTime::Inv_Month));
30184 PyDict_SetItemString(d,"DateTime_Sun", SWIG_FromInt((int)wxDateTime::Sun));
30185 PyDict_SetItemString(d,"DateTime_Mon", SWIG_FromInt((int)wxDateTime::Mon));
30186 PyDict_SetItemString(d,"DateTime_Tue", SWIG_FromInt((int)wxDateTime::Tue));
30187 PyDict_SetItemString(d,"DateTime_Wed", SWIG_FromInt((int)wxDateTime::Wed));
30188 PyDict_SetItemString(d,"DateTime_Thu", SWIG_FromInt((int)wxDateTime::Thu));
30189 PyDict_SetItemString(d,"DateTime_Fri", SWIG_FromInt((int)wxDateTime::Fri));
30190 PyDict_SetItemString(d,"DateTime_Sat", SWIG_FromInt((int)wxDateTime::Sat));
30191 PyDict_SetItemString(d,"DateTime_Inv_WeekDay", SWIG_FromInt((int)wxDateTime::Inv_WeekDay));
30192 PyDict_SetItemString(d,"DateTime_Inv_Year", SWIG_FromInt((int)wxDateTime::Inv_Year));
30193 PyDict_SetItemString(d,"DateTime_Name_Full", SWIG_FromInt((int)wxDateTime::Name_Full));
30194 PyDict_SetItemString(d,"DateTime_Name_Abbr", SWIG_FromInt((int)wxDateTime::Name_Abbr));
30195 PyDict_SetItemString(d,"DateTime_Default_First", SWIG_FromInt((int)wxDateTime::Default_First));
30196 PyDict_SetItemString(d,"DateTime_Monday_First", SWIG_FromInt((int)wxDateTime::Monday_First));
30197 PyDict_SetItemString(d,"DateTime_Sunday_First", SWIG_FromInt((int)wxDateTime::Sunday_First));
30198 SWIG_addvarlink(SWIG_globals,(char*)"DefaultDateTime",_wrap_DefaultDateTime_get, _wrap_DefaultDateTime_set);
30199 PyDict_SetItemString(d,"DF_INVALID", SWIG_FromInt((int)wxDF_INVALID));
30200 PyDict_SetItemString(d,"DF_TEXT", SWIG_FromInt((int)wxDF_TEXT));
30201 PyDict_SetItemString(d,"DF_BITMAP", SWIG_FromInt((int)wxDF_BITMAP));
30202 PyDict_SetItemString(d,"DF_METAFILE", SWIG_FromInt((int)wxDF_METAFILE));
30203 PyDict_SetItemString(d,"DF_SYLK", SWIG_FromInt((int)wxDF_SYLK));
30204 PyDict_SetItemString(d,"DF_DIF", SWIG_FromInt((int)wxDF_DIF));
30205 PyDict_SetItemString(d,"DF_TIFF", SWIG_FromInt((int)wxDF_TIFF));
30206 PyDict_SetItemString(d,"DF_OEMTEXT", SWIG_FromInt((int)wxDF_OEMTEXT));
30207 PyDict_SetItemString(d,"DF_DIB", SWIG_FromInt((int)wxDF_DIB));
30208 PyDict_SetItemString(d,"DF_PALETTE", SWIG_FromInt((int)wxDF_PALETTE));
30209 PyDict_SetItemString(d,"DF_PENDATA", SWIG_FromInt((int)wxDF_PENDATA));
30210 PyDict_SetItemString(d,"DF_RIFF", SWIG_FromInt((int)wxDF_RIFF));
30211 PyDict_SetItemString(d,"DF_WAVE", SWIG_FromInt((int)wxDF_WAVE));
30212 PyDict_SetItemString(d,"DF_UNICODETEXT", SWIG_FromInt((int)wxDF_UNICODETEXT));
30213 PyDict_SetItemString(d,"DF_ENHMETAFILE", SWIG_FromInt((int)wxDF_ENHMETAFILE));
30214 PyDict_SetItemString(d,"DF_FILENAME", SWIG_FromInt((int)wxDF_FILENAME));
30215 PyDict_SetItemString(d,"DF_LOCALE", SWIG_FromInt((int)wxDF_LOCALE));
30216 PyDict_SetItemString(d,"DF_PRIVATE", SWIG_FromInt((int)wxDF_PRIVATE));
30217 PyDict_SetItemString(d,"DF_HTML", SWIG_FromInt((int)wxDF_HTML));
30218 PyDict_SetItemString(d,"DF_MAX", SWIG_FromInt((int)wxDF_MAX));
30219 SWIG_addvarlink(SWIG_globals,(char*)"FormatInvalid",_wrap_FormatInvalid_get, _wrap_FormatInvalid_set);
30220 PyDict_SetItemString(d,"DataObject_Get", SWIG_FromInt((int)wxDataObject::Get));
30221 PyDict_SetItemString(d,"DataObject_Set", SWIG_FromInt((int)wxDataObject::Set));
30222 PyDict_SetItemString(d,"DataObject_Both", SWIG_FromInt((int)wxDataObject::Both));
30223 PyDict_SetItemString(d,"Drag_CopyOnly", SWIG_FromInt((int)wxDrag_CopyOnly));
30224 PyDict_SetItemString(d,"Drag_AllowMove", SWIG_FromInt((int)wxDrag_AllowMove));
30225 PyDict_SetItemString(d,"Drag_DefaultMove", SWIG_FromInt((int)wxDrag_DefaultMove));
30226 PyDict_SetItemString(d,"DragError", SWIG_FromInt((int)wxDragError));
30227 PyDict_SetItemString(d,"DragNone", SWIG_FromInt((int)wxDragNone));
30228 PyDict_SetItemString(d,"DragCopy", SWIG_FromInt((int)wxDragCopy));
30229 PyDict_SetItemString(d,"DragMove", SWIG_FromInt((int)wxDragMove));
30230 PyDict_SetItemString(d,"DragLink", SWIG_FromInt((int)wxDragLink));
30231 PyDict_SetItemString(d,"DragCancel", SWIG_FromInt((int)wxDragCancel));
30232
30233 wxPyPtrTypeMap_Add("wxDropSource", "wxPyDropSource");
30234 wxPyPtrTypeMap_Add("wxDropTarget", "wxPyDropTarget");
30235 wxPyPtrTypeMap_Add("wxTextDropTarget", "wxPyTextDropTarget");
30236 wxPyPtrTypeMap_Add("wxFileDropTarget", "wxPyFileDropTarget");
30237
30238 SWIG_addvarlink(SWIG_globals,(char*)"DefaultVideoMode",_wrap_DefaultVideoMode_get, _wrap_DefaultVideoMode_set);
30239 }
30240