]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/gtk/_misc_wrap.cpp
test wxString's char<->wchar_t ctors
[wxWidgets.git] / wxPython / src / gtk / _misc_wrap.cpp
1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 1.3.22
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11 #define SWIGPYTHON
12 #define SWIG_NOINCLUDE
13
14 #ifdef __cplusplus
15 template<class T> class SwigValueWrapper {
16 T *tt;
17 public:
18 SwigValueWrapper() : tt(0) { }
19 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
20 SwigValueWrapper(const T& t) : tt(new T(t)) { }
21 ~SwigValueWrapper() { delete tt; }
22 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
23 operator T&() const { return *tt; }
24 T *operator&() { return tt; }
25 private:
26 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
27 };
28 #endif
29
30
31 #include "Python.h"
32
33 /*************************************************************** -*- c -*-
34 * python/precommon.swg
35 *
36 * Rename all exported symbols from common.swg, to avoid symbol
37 * clashes if multiple interpreters are included
38 *
39 ************************************************************************/
40
41 #define SWIG_TypeRegister SWIG_Python_TypeRegister
42 #define SWIG_TypeCheck SWIG_Python_TypeCheck
43 #define SWIG_TypeCast SWIG_Python_TypeCast
44 #define SWIG_TypeDynamicCast SWIG_Python_TypeDynamicCast
45 #define SWIG_TypeName SWIG_Python_TypeName
46 #define SWIG_TypeQuery SWIG_Python_TypeQuery
47 #define SWIG_TypeClientData SWIG_Python_TypeClientData
48 #define SWIG_PackData SWIG_Python_PackData
49 #define SWIG_UnpackData SWIG_Python_UnpackData
50
51
52 /***********************************************************************
53 * common.swg for wxPython
54 *
55 * Include only the function prototypes and such from SWIG's common.swg,
56 * but not the runtime functions themselves. This helps keep the
57 * wrapper files clean of unnecessary stuff that is in the libpy.c file
58 * anyway.
59 *
60 ************************************************************************/
61
62 #include <string.h>
63
64 #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
65 # if defined(_MSC_VER) || defined(__GNUC__)
66 # if defined(STATIC_LINKED)
67 # define SWIGEXPORT(a) a
68 # define SWIGIMPORT(a) extern a
69 # else
70 # define SWIGEXPORT(a) __declspec(dllexport) a
71 # define SWIGIMPORT(a) extern a
72 # endif
73 # else
74 # if defined(__BORLANDC__)
75 # define SWIGEXPORT(a) a _export
76 # define SWIGIMPORT(a) a _export
77 # else
78 # define SWIGEXPORT(a) a
79 # define SWIGIMPORT(a) a
80 # endif
81 # endif
82 #else
83 # define SWIGEXPORT(a) a
84 # define SWIGIMPORT(a) a
85 #endif
86
87 #ifdef SWIG_GLOBAL
88 # define SWIGRUNTIME(a) SWIGEXPORT(a)
89 #else
90 # define SWIGRUNTIME(a) static a
91 #endif
92
93 #ifdef __cplusplus
94 extern "C" {
95 #endif
96
97 typedef void *(*swig_converter_func)(void *);
98 typedef struct swig_type_info *(*swig_dycast_func)(void **);
99
100 typedef struct swig_type_info {
101 const char *name;
102 swig_converter_func converter;
103 const char *str;
104 void *clientdata;
105 swig_dycast_func dcast;
106 struct swig_type_info *next;
107 struct swig_type_info *prev;
108 } swig_type_info;
109
110
111 SWIGIMPORT(swig_type_info *) SWIG_TypeRegister(swig_type_info *);
112 SWIGIMPORT(swig_type_info *) SWIG_TypeCheck(char *c, swig_type_info *);
113 SWIGIMPORT(void *) SWIG_TypeCast(swig_type_info *, void *);
114 SWIGIMPORT(swig_type_info *) SWIG_TypeDynamicCast(swig_type_info *, void **);
115 SWIGIMPORT(const char *) SWIG_TypeName(const swig_type_info *);
116 SWIGIMPORT(swig_type_info *) SWIG_TypeQuery(const char *);
117 SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info *, void *);
118 SWIGIMPORT(char *) SWIG_PackData(char *, void *, int);
119 SWIGIMPORT(char *) SWIG_UnpackData(char *, void *, int);
120
121
122 #ifdef __cplusplus
123 }
124 #endif
125
126 /***********************************************************************
127 * pyrun.swg for wxPython
128 *
129 * Include only the function prototypes and such from SWIG's pyrun.swg,
130 * but not the runtime functions themselves. This helps keep the
131 * wrapper files clean of unnecessary stuff that is in the libpy.c file
132 * anyway.
133 *
134 ************************************************************************/
135
136 #include "Python.h"
137
138 #ifdef __cplusplus
139 extern "C" {
140 #endif
141
142 #define SWIG_PY_INT 1
143 #define SWIG_PY_FLOAT 2
144 #define SWIG_PY_STRING 3
145 #define SWIG_PY_POINTER 4
146 #define SWIG_PY_BINARY 5
147
148 /* Flags for pointer conversion */
149
150 #define SWIG_POINTER_EXCEPTION 0x1
151 #define SWIG_POINTER_DISOWN 0x2
152
153 /* Exception handling in wrappers */
154 #define SWIG_fail goto fail
155
156 /* Constant information structure */
157 typedef struct swig_const_info {
158 int type;
159 char *name;
160 long lvalue;
161 double dvalue;
162 void *pvalue;
163 swig_type_info **ptype;
164 } swig_const_info;
165
166 /* Common SWIG API */
167 #define SWIG_ConvertPtr(obj, pp, type, flags) \
168 SWIG_Python_ConvertPtr(obj, pp, type, flags)
169 #define SWIG_NewPointerObj(p, type, flags) \
170 SWIG_Python_NewPointerObj(p, type, flags)
171 #define SWIG_MustGetPtr(p, type, argnum, flags) \
172 SWIG_Python_MustGetPtr(p, type, argnum, flags)
173
174 /* Python-specific SWIG API */
175 #define SWIG_newvarlink() \
176 SWIG_Python_newvarlink()
177 #define SWIG_addvarlink(p, name, get_attr, set_attr) \
178 SWIG_Python_addvarlink(p, name, get_attr, set_attr)
179 #define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) \
180 SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags)
181 #define SWIG_NewPackedObj(ptr, sz, type) \
182 SWIG_Python_NewPackedObj(ptr, sz, type)
183 #define SWIG_InstallConstants(d, constants) \
184 SWIG_Python_InstallConstants(d, constants)
185
186 typedef double (*py_objasdbl_conv)(PyObject *obj);
187
188 SWIGIMPORT(int) SWIG_Python_ConvertPtr(PyObject *, void **, swig_type_info *, int);
189 SWIGIMPORT(PyObject *) SWIG_Python_NewPointerObj(void *, swig_type_info *,int own);
190 SWIGIMPORT(void *) SWIG_Python_MustGetPtr(PyObject *, swig_type_info *, int, int);
191 SWIGIMPORT(PyObject *) SWIG_Python_newvarlink(void);
192 SWIGIMPORT(void) SWIG_Python_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *));
193 SWIGIMPORT(int) SWIG_Python_ConvertPacked(PyObject *, void *, int sz, swig_type_info *, int);
194 SWIGIMPORT(PyObject *) SWIG_Python_NewPackedObj(void *, int sz, swig_type_info *);
195 SWIGIMPORT(void) SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]);
196
197
198 /* Contract support */
199
200 #define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else
201
202 #ifdef __cplusplus
203 }
204 #endif
205
206
207 /* -------- TYPES TABLE (BEGIN) -------- */
208
209 #define SWIGTYPE_p_wxLogChain swig_types[0]
210 #define SWIGTYPE_p_wxMutexGuiLocker swig_types[1]
211 #define SWIGTYPE_p_wxFileHistory swig_types[2]
212 #define SWIGTYPE_p_wxLog swig_types[3]
213 #define SWIGTYPE_p_wxDateTime__TimeZone swig_types[4]
214 #define SWIGTYPE_p_wxMenu swig_types[5]
215 #define SWIGTYPE_p_wxEvent swig_types[6]
216 #define SWIGTYPE_p_wxConfigBase swig_types[7]
217 #define SWIGTYPE_p_wxDisplay swig_types[8]
218 #define SWIGTYPE_p_wxFileType swig_types[9]
219 #define SWIGTYPE_p_wxLogGui swig_types[10]
220 #define SWIGTYPE_p_wxFont swig_types[11]
221 #define SWIGTYPE_p_wxDataFormat swig_types[12]
222 #define SWIGTYPE_p_wxTimerEvent swig_types[13]
223 #define SWIGTYPE_p_wxCaret swig_types[14]
224 #define SWIGTYPE_p_int swig_types[15]
225 #define SWIGTYPE_p_wxSize swig_types[16]
226 #define SWIGTYPE_p_wxClipboard swig_types[17]
227 #define SWIGTYPE_p_wxStopWatch swig_types[18]
228 #define SWIGTYPE_p_wxDC swig_types[19]
229 #define SWIGTYPE_p_wxClipboardLocker swig_types[20]
230 #define SWIGTYPE_p_wxIcon swig_types[21]
231 #define SWIGTYPE_p_wxLogStderr swig_types[22]
232 #define SWIGTYPE_p_wxLogTextCtrl swig_types[23]
233 #define SWIGTYPE_p_wxTextCtrl swig_types[24]
234 #define SWIGTYPE_p_wxBusyCursor swig_types[25]
235 #define SWIGTYPE_p_wxPyBitmapDataObject swig_types[26]
236 #define SWIGTYPE_p_wxPyTextDataObject swig_types[27]
237 #define SWIGTYPE_p_wxBitmapDataObject swig_types[28]
238 #define SWIGTYPE_p_wxTextDataObject swig_types[29]
239 #define SWIGTYPE_p_wxDataObject swig_types[30]
240 #define SWIGTYPE_p_wxFileDataObject swig_types[31]
241 #define SWIGTYPE_p_wxCustomDataObject swig_types[32]
242 #define SWIGTYPE_p_wxURLDataObject swig_types[33]
243 #define SWIGTYPE_p_wxMetafileDataObject swig_types[34]
244 #define SWIGTYPE_p_wxSound swig_types[35]
245 #define SWIGTYPE_p_wxTimerRunner swig_types[36]
246 #define SWIGTYPE_p_wxLogWindow swig_types[37]
247 #define SWIGTYPE_p_wxTimeSpan swig_types[38]
248 #define SWIGTYPE_p_wxArrayString swig_types[39]
249 #define SWIGTYPE_p_wxWindowDisabler swig_types[40]
250 #define SWIGTYPE_p_wxToolTip swig_types[41]
251 #define SWIGTYPE_p_wxDataObjectComposite swig_types[42]
252 #define SWIGTYPE_p_wxFileConfig swig_types[43]
253 #define SWIGTYPE_p_wxSystemSettings swig_types[44]
254 #define SWIGTYPE_p_wxVideoMode swig_types[45]
255 #define SWIGTYPE_p_wxPyDataObjectSimple swig_types[46]
256 #define SWIGTYPE_p_wxDataObjectSimple swig_types[47]
257 #define SWIGTYPE_p_wxEvtHandler swig_types[48]
258 #define SWIGTYPE_p_wxRect swig_types[49]
259 #define SWIGTYPE_p_char swig_types[50]
260 #define SWIGTYPE_p_wxSingleInstanceChecker swig_types[51]
261 #define SWIGTYPE_p_wxFileTypeInfo swig_types[52]
262 #define SWIGTYPE_p_wxFrame swig_types[53]
263 #define SWIGTYPE_p_wxTimer swig_types[54]
264 #define SWIGTYPE_p_wxMimeTypesManager swig_types[55]
265 #define SWIGTYPE_p_wxPyArtProvider swig_types[56]
266 #define SWIGTYPE_p_wxPyTipProvider swig_types[57]
267 #define SWIGTYPE_p_wxTipProvider swig_types[58]
268 #define SWIGTYPE_p_wxJoystick swig_types[59]
269 #define SWIGTYPE_p_wxSystemOptions swig_types[60]
270 #define SWIGTYPE_p_wxPoint swig_types[61]
271 #define SWIGTYPE_p_wxJoystickEvent swig_types[62]
272 #define SWIGTYPE_p_wxCursor swig_types[63]
273 #define SWIGTYPE_p_wxObject swig_types[64]
274 #define SWIGTYPE_p_wxOutputStream swig_types[65]
275 #define SWIGTYPE_p_wxDateTime swig_types[66]
276 #define SWIGTYPE_p_wxPyDropSource swig_types[67]
277 #define SWIGTYPE_p_wxWindow swig_types[68]
278 #define SWIGTYPE_p_wxString swig_types[69]
279 #define SWIGTYPE_p_wxPyProcess swig_types[70]
280 #define SWIGTYPE_p_wxBitmap swig_types[71]
281 #define SWIGTYPE_p_wxConfig swig_types[72]
282 #define SWIGTYPE_p_wxChar swig_types[73]
283 #define SWIGTYPE_p_wxBusyInfo swig_types[74]
284 #define SWIGTYPE_p_wxPyDropTarget swig_types[75]
285 #define SWIGTYPE_p_wxPyTextDropTarget swig_types[76]
286 #define SWIGTYPE_p_wxPyFileDropTarget swig_types[77]
287 #define SWIGTYPE_p_wxProcessEvent swig_types[78]
288 #define SWIGTYPE_p_wxPyLog swig_types[79]
289 #define SWIGTYPE_p_wxLogNull swig_types[80]
290 #define SWIGTYPE_p_wxColour swig_types[81]
291 #define SWIGTYPE_p_wxConfigPathChanger swig_types[82]
292 #define SWIGTYPE_p_wxPyTimer swig_types[83]
293 #define SWIGTYPE_p_wxDateSpan swig_types[84]
294 static swig_type_info *swig_types[86];
295
296 /* -------- TYPES TABLE (END) -------- */
297
298
299 /*-----------------------------------------------
300 @(target):= _misc_.so
301 ------------------------------------------------*/
302 #define SWIG_init init_misc_
303
304 #define SWIG_name "_misc_"
305
306 /* Auxiliar swig macros */
307
308 #ifdef __cplusplus
309 #define SWIGSTATICINLINE(a) static inline a
310 #define SWIGSTATIC(a) static a
311 #define swig_new_array(type, size) (new type[(size)])
312 #define swig_delete_array(cptr) delete[] cptr
313 #define swig_const_cast(type,a) const_cast<type>(a)
314 #define swig_static_cast(type,a) static_cast<type>(a)
315 #define swig_reinterpret_cast(type,a) reinterpret_cast<type>(a)
316
317 #ifdef HAVE_NUMERIC_CAST
318 #define swig_numeric_cast(type,a) numeric_cast<type>(a)
319 #else
320 #define swig_numeric_cast(type,a) static_cast<type>(a)
321 #endif
322
323 #else /* C case */
324
325 #define SWIGSTATICINLINE(a) static a
326 #define SWIGSTATIC(a) static a
327 #define swig_new_array(type, size) ((type*) malloc((size)*sizeof(type)))
328 #define swig_delete_array(cptr) free((char*)cptr)
329 #define swig_const_cast(type,a) (type)(a)
330 #define swig_static_cast(type,a) (type)(a)
331 #define swig_reinterpret_cast(type,a) (type)(a)
332 #define swig_numeric_cast(type,a) (type)(a)
333
334 #endif /* __cplusplus */
335
336
337 #define SWIG_FromSignedChar PyInt_FromLong
338 #define SWIG_FromUnsignedChar PyInt_FromLong
339 #define SWIG_FromShort PyInt_FromLong
340 #define SWIG_FromUnsignedShort PyInt_FromLong
341 #define SWIG_FromInt PyInt_FromLong
342 #define SWIG_FromLong PyInt_FromLong
343 #define SWIG_FromFloat PyFloat_FromDouble
344 #define SWIG_FromDouble PyFloat_FromDouble
345 #define SWIG_FromFloat PyFloat_FromDouble
346 #define SWIG_FromDouble PyFloat_FromDouble
347
348
349 #include "wx/wxPython/wxPython.h"
350 #include "wx/wxPython/pyclasses.h"
351 #include "wx/wxPython/pyistream.h"
352
353 static const wxString wxPyEmptyString(wxEmptyString);
354
355
356
357 #include <limits.h>
358
359
360 SWIGSTATICINLINE(long)
361 SWIG_CheckLongInRange(long value, const char* type,
362 long min_value, long max_value)
363 {
364 if (!PyErr_Occurred()) {
365 if (value < min_value) {
366 PyObject *err =
367 PyString_FromFormat("value %ld is less than '%s' minimum %ld",
368 value, type, min_value);
369
370 PyErr_SetObject(PyExc_OverflowError, err);
371 Py_DECREF(err);
372 } else if (value > max_value) {
373 PyObject *err =
374 PyString_FromFormat("value %ld is greater than '%s' maximum %ld",
375 value, type, max_value);
376 PyErr_SetObject(PyExc_OverflowError, err);
377 Py_DECREF(err);
378 }
379 }
380 return value;
381 }
382
383
384 SWIGSTATICINLINE(long)
385 SWIG_AsLong(PyObject * obj)
386 {
387 if (PyNumber_Check(obj))
388 return PyInt_AsLong(obj);
389 else {
390 PyObject* errmsg = PyString_FromFormat("Expected number, got %s",
391 obj->ob_type->tp_name);
392 PyErr_SetObject(PyExc_TypeError, errmsg);
393 Py_DECREF(errmsg);
394 return 0;
395 }
396 }
397
398
399 #if INT_MAX != LONG_MAX
400 SWIGSTATICINLINE(int)
401 SWIG_AsInt(PyObject *obj)
402 {
403 return swig_numeric_cast(int,
404 SWIG_CheckLongInRange(SWIG_AsLong(obj),
405 "int", INT_MIN, INT_MAX));
406 }
407 #else
408 #define SWIG_AsInt SWIG_AsLong
409 #endif
410
411
412 SWIGSTATICINLINE(int)
413 SWIG_CheckInt(PyObject* obj)
414 {
415 SWIG_AsInt(obj);
416 if (PyErr_Occurred()) {
417 PyErr_Clear();
418 return 0;
419 } else {
420 return 1;
421 }
422 }
423
424 static const wxString wxPyFileSelectorPromptStr(wxFileSelectorPromptStr);
425 static const wxString wxPyFileSelectorDefaultWildcardStr(wxFileSelectorDefaultWildcardStr);
426 static const wxString wxPyDirSelectorPromptStr(wxDirSelectorPromptStr);
427
428 SWIGSTATICINLINE(int)
429 SWIG_CheckLong(PyObject* obj)
430 {
431 SWIG_AsLong(obj);
432 if (PyErr_Occurred()) {
433 PyErr_Clear();
434 return 0;
435 } else {
436 return 1;
437 }
438 }
439
440
441 SWIGSTATICINLINE(bool)
442 SWIG_AsBool(PyObject *obj)
443 {
444 return PyObject_IsTrue(obj) ? true : false;
445 }
446
447
448 SWIGSTATICINLINE(int)
449 SWIG_CheckBool(PyObject* obj)
450 {
451 SWIG_AsBool(obj);
452 if (PyErr_Occurred()) {
453 PyErr_Clear();
454 return 0;
455 } else {
456 return 1;
457 }
458 }
459
460
461 static PyObject* t_output_helper(PyObject* target, PyObject* o) {
462 PyObject* o2;
463 PyObject* o3;
464
465 if (!target) {
466 target = o;
467 } else if (target == Py_None) {
468 Py_DECREF(Py_None);
469 target = o;
470 } else {
471 if (!PyTuple_Check(target)) {
472 o2 = target;
473 target = PyTuple_New(1);
474 PyTuple_SetItem(target, 0, o2);
475 }
476 o3 = PyTuple_New(1);
477 PyTuple_SetItem(o3, 0, o);
478
479 o2 = target;
480 target = PySequence_Concat(o2, o3);
481 Py_DECREF(o2);
482 Py_DECREF(o3);
483 }
484 return target;
485 }
486
487
488 long wxGetFreeMemory()
489 { wxPyRaiseNotImplemented(); return 0; }
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 void wxWakeUpMainThread() {}
530
531
532 bool wxThread_IsMain() {
533 #ifdef WXP_WITH_THREAD
534 return wxThread::IsMain();
535 #else
536 return True;
537 #endif
538 }
539
540
541 int wxCaret_GetBlinkTime() {
542 return wxCaret::GetBlinkTime();
543 }
544
545 void wxCaret_SetBlinkTime(int milliseconds) {
546 wxCaret::SetBlinkTime(milliseconds);
547 }
548
549
550 #include <wx/snglinst.h>
551
552
553 #ifdef __WXMSW__
554 #include <wx/msw/private.h>
555 #include <wx/dynload.h>
556 #endif
557
558
559
560 void wxDrawWindowOnDC(wxWindow* window, const wxDC& dc, int method)
561 {
562 #ifdef __WXMSW__
563
564 switch (method)
565 {
566 case 1:
567 // This one only partially works. Appears to be an undocumented
568 // "standard" convention that not all widgets adhear to. For
569 // example, for some widgets backgrounds or non-client areas may
570 // not be painted.
571 ::SendMessage(GetHwndOf(window), WM_PAINT, (long)GetHdcOf(dc), 0);
572 break;
573
574 case 2:
575 // This one works much better, except for on XP. On Win2k nearly
576 // all widgets and their children are captured correctly[**]. On
577 // XP with Themes activated most native widgets draw only
578 // partially, if at all. Without themes it works just like on
579 // Win2k.
580 //
581 // ** For example the radio buttons in a wxRadioBox are not its
582 // children by default, but you can capture it via the panel
583 // instead, or change RADIOBTN_PARENT_IS_RADIOBOX in radiobox.cpp.
584 ::SendMessage(GetHwndOf(window), WM_PRINT, (long)GetHdcOf(dc),
585 PRF_CLIENT | PRF_NONCLIENT | PRF_CHILDREN |
586 PRF_ERASEBKGND | PRF_OWNED );
587 break;
588
589 case 3:
590 // This one is only defined in the latest SDK and is only
591 // available on XP. MSDN says it is similar to sending WM_PRINT
592 // so I expect that it will work similar to the above. Since it
593 // is avaialble only on XP, it can't be compiled like this and
594 // will have to be loaded dynamically.
595 // //::PrintWindow(GetHwndOf(window), GetHdcOf(dc), 0); //break;
596
597 // fall through
598
599 case 4:
600 // Use PrintWindow if available, or fallback to WM_PRINT
601 // otherwise. Unfortunately using PrintWindow is even worse than
602 // WM_PRINT. For most native widgets nothing is drawn to the dc
603 // at all, with or without Themes.
604 typedef BOOL (WINAPI *PrintWindow_t)(HWND, HDC, UINT);
605 static bool s_triedToLoad = False;
606 static PrintWindow_t pfnPrintWindow = NULL;
607 if ( !s_triedToLoad )
608 {
609
610 s_triedToLoad = True;
611 wxDynamicLibrary dllUser32(_T("user32.dll"));
612 if ( dllUser32.IsLoaded() )
613 {
614 wxLogNull nolog; // Don't report errors here
615 pfnPrintWindow = (PrintWindow_t)dllUser32.GetSymbol(_T("PrintWindow"));
616 }
617 }
618 if (pfnPrintWindow)
619 {
620 printf("Using PrintWindow\n");
621 pfnPrintWindow(GetHwndOf(window), GetHdcOf(dc), 0);
622 }
623 else
624 {
625 printf("Using WM_PRINT\n");
626 ::SendMessage(GetHwndOf(window), WM_PRINT, (long)GetHdcOf(dc),
627 PRF_CLIENT | PRF_NONCLIENT | PRF_CHILDREN | PRF_ERASEBKGND | PRF_OWNED );
628 }
629 }
630 #endif
631 }
632
633
634
635 #include <wx/tipdlg.h>
636
637
638 class wxPyTipProvider : public wxTipProvider {
639 public:
640 wxPyTipProvider(size_t currentTip)
641 : wxTipProvider(currentTip) {}
642
643 DEC_PYCALLBACK_STRING__pure(GetTip);
644 DEC_PYCALLBACK_STRING_STRING(PreprocessTip);
645 PYPRIVATE;
646 };
647
648 IMP_PYCALLBACK_STRING__pure( wxPyTipProvider, wxTipProvider, GetTip);
649 IMP_PYCALLBACK_STRING_STRING(wxPyTipProvider, wxTipProvider, PreprocessTip);
650
651
652 //IMP_PYCALLBACK__(wxPyTimer, wxTimer, Notify);
653
654 IMPLEMENT_ABSTRACT_CLASS(wxPyTimer, wxTimer);
655
656 void wxPyTimer::Notify() {
657 bool found;
658 bool blocked = wxPyBeginBlockThreads();
659 if ((found = wxPyCBH_findCallback(m_myInst, "Notify")))
660 wxPyCBH_callCallback(m_myInst, Py_BuildValue("()"));
661 wxPyEndBlockThreads(blocked);
662 if (! found)
663 wxTimer::Notify();
664 }
665 void wxPyTimer::base_Notify() {
666 wxTimer::Notify();
667 }
668
669
670
671 SWIGSTATICINLINE(PyObject *)
672 SWIG_FromCharPtr(const char* cptr)
673 {
674 size_t size = cptr ? strlen(cptr) : 0;
675 if (cptr) {
676 if (size > INT_MAX) {
677 return SWIG_NewPointerObj(swig_const_cast(char*,cptr),
678 SWIG_TypeQuery("char *"), 0);
679 } else {
680 return PyString_FromStringAndSize(cptr, swig_numeric_cast(int,size));
681 }
682 } else {
683 Py_INCREF(Py_None);
684 return Py_None;
685 }
686 }
687
688
689 SWIGSTATICINLINE(unsigned long)
690 SWIG_CheckUnsignedLongInRange(unsigned long value, const char* type,
691 unsigned long max_value)
692 {
693 if (!PyErr_Occurred()) {
694 if (value > max_value) {
695 PyObject *err =
696 PyString_FromFormat("value %ld is greater than '%s' minimum %ld",
697 value, type, max_value);
698 PyErr_SetObject(PyExc_OverflowError, err);
699 Py_DECREF(err);
700 }
701 }
702 return value;
703 }
704
705
706 #if UINT_MAX != ULONG_MAX
707 SWIGSTATICINLINE(unsigned int)
708 SWIG_AsUnsignedInt(PyObject *obj)
709 {
710 return swig_numeric_cast(unsigned int,
711 SWIG_CheckUnsignedLongInRange(SWIG_AsUnsignedLong(obj),
712 "unsigned int", UINT_MAX));
713 }
714 #else
715 #define SWIG_AsUnsignedInt SWIG_AsUnsignedLong
716 #endif
717
718
719 SWIGSTATICINLINE(int)
720 SWIG_CheckUnsignedInt(PyObject* obj)
721 {
722 SWIG_AsUnsignedInt(obj);
723 if (PyErr_Occurred()) {
724 PyErr_Clear();
725 return 0;
726 } else {
727 return 1;
728 }
729 }
730
731 wxString Log_TimeStamp(){
732 wxString msg;
733 wxLog::TimeStamp(&msg);
734 return msg;
735 }
736 void wxLog_Destroy(wxLog *self){ delete self; }
737
738 // A wxLog class that can be derived from in wxPython
739 class wxPyLog : public wxLog {
740 public:
741 wxPyLog() : wxLog() {}
742
743 virtual void DoLog(wxLogLevel level, const wxChar *szString, time_t t) {
744 bool found;
745 bool blocked = wxPyBeginBlockThreads();
746 if ((found = wxPyCBH_findCallback(m_myInst, "DoLog"))) {
747 PyObject* s = wx2PyString(szString);
748 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iOi)", level, s, t));
749 Py_DECREF(s);
750 }
751 wxPyEndBlockThreads(blocked);
752 if (! found)
753 wxLog::DoLog(level, szString, t);
754 }
755
756 virtual void DoLogString(const wxChar *szString, time_t t) {
757 bool found;
758 bool blocked = wxPyBeginBlockThreads();
759 if ((found = wxPyCBH_findCallback(m_myInst, "DoLogString"))) {
760 PyObject* s = wx2PyString(szString);
761 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(Oi)", s, t));
762 Py_DECREF(s);
763 }
764 wxPyEndBlockThreads(blocked);
765 if (! found)
766 wxLog::DoLogString(szString, t);
767 }
768
769 PYPRIVATE;
770 };
771
772
773
774
775 IMP_PYCALLBACK_VOID_INTINT( wxPyProcess, wxProcess, OnTerminate);
776
777
778 #include <wx/joystick.h>
779
780
781 #if !wxUSE_JOYSTICK && !defined(__WXMSW__)
782 // A C++ stub class for wxJoystick for platforms that don't have it.
783 class wxJoystick : public wxObject {
784 public:
785 wxJoystick(int joystick = wxJOYSTICK1) {
786 bool blocked = wxPyBeginBlockThreads();
787 PyErr_SetString(PyExc_NotImplementedError,
788 "wxJoystick is not available on this platform.");
789 wxPyEndBlockThreads(blocked);
790 }
791 wxPoint GetPosition() { return wxPoint(-1,-1); }
792 int GetZPosition() { return -1; }
793 int GetButtonState() { return -1; }
794 int GetPOVPosition() { return -1; }
795 int GetPOVCTSPosition() { return -1; }
796 int GetRudderPosition() { return -1; }
797 int GetUPosition() { return -1; }
798 int GetVPosition() { return -1; }
799 int GetMovementThreshold() { return -1; }
800 void SetMovementThreshold(int threshold) {}
801
802 bool IsOk(void) { return False; }
803 int GetNumberJoysticks() { return -1; }
804 int GetManufacturerId() { return -1; }
805 int GetProductId() { return -1; }
806 wxString GetProductName() { return wxEmptyString; }
807 int GetXMin() { return -1; }
808 int GetYMin() { return -1; }
809 int GetZMin() { return -1; }
810 int GetXMax() { return -1; }
811 int GetYMax() { return -1; }
812 int GetZMax() { return -1; }
813 int GetNumberButtons() { return -1; }
814 int GetNumberAxes() { return -1; }
815 int GetMaxButtons() { return -1; }
816 int GetMaxAxes() { return -1; }
817 int GetPollingMin() { return -1; }
818 int GetPollingMax() { return -1; }
819 int GetRudderMin() { return -1; }
820 int GetRudderMax() { return -1; }
821 int GetUMin() { return -1; }
822 int GetUMax() { return -1; }
823 int GetVMin() { return -1; }
824 int GetVMax() { return -1; }
825
826 bool HasRudder() { return False; }
827 bool HasZ() { return False; }
828 bool HasU() { return False; }
829 bool HasV() { return False; }
830 bool HasPOV() { return False; }
831 bool HasPOV4Dir() { return False; }
832 bool HasPOVCTS() { return False; }
833
834 bool SetCapture(wxWindow* win, int pollingFreq = 0) { return False; }
835 bool ReleaseCapture() { return False; }
836 };
837 #endif
838
839
840 #include <wx/sound.h>
841
842
843 #if !wxUSE_SOUND
844 // A C++ stub class for wxWave for platforms that don't have it.
845 class wxSound : public wxObject
846 {
847 public:
848 wxSound() {
849 bool blocked = wxPyBeginBlockThreads();
850 PyErr_SetString(PyExc_NotImplementedError,
851 "wxSound is not available on this platform.");
852 wxPyEndBlockThreads(blocked);
853 }
854 wxSound(const wxString&/*, bool*/) {
855 bool blocked = wxPyBeginBlockThreads();
856 PyErr_SetString(PyExc_NotImplementedError,
857 "wxSound is not available on this platform.");
858 wxPyEndBlockThreads(blocked);
859 }
860 wxSound(int, const wxByte*) {
861 bool blocked = wxPyBeginBlockThreads();
862 PyErr_SetString(PyExc_NotImplementedError,
863 "wxSound is not available on this platform.");
864 wxPyEndBlockThreads(blocked);
865 }
866
867 ~wxSound() {};
868
869 bool Create(const wxString&/*, bool*/) { return false; }
870 bool Create(int, const wxByte*) { return false; };
871 bool IsOk() { return false; };
872 bool Play(unsigned) const { return false; }
873 static bool Play(const wxString&, unsigned) { return false; }
874 static void Stop() {}
875 };
876
877 #endif
878
879 wxSound *new_wxSound(wxString const &fileName){
880 if (fileName.Length() == 0)
881 return new wxSound;
882 else
883 return new wxSound(fileName);
884 }
885 wxSound *new_wxSound(PyObject *data){
886 unsigned char* buffer; int size;
887 wxSound *sound = NULL;
888
889 bool blocked = wxPyBeginBlockThreads();
890 if (!PyArg_Parse(data, "t#", &buffer, &size))
891 goto done;
892 sound = new wxSound(size, buffer);
893 done:
894 wxPyEndBlockThreads(blocked);
895 return sound;
896 }
897 bool wxSound_CreateFromData(wxSound *self,PyObject *data){
898 #ifndef __WXMAC__
899 unsigned char* buffer;
900 int size;
901 bool rv = False;
902
903 bool blocked = wxPyBeginBlockThreads();
904 if (!PyArg_Parse(data, "t#", &buffer, &size))
905 goto done;
906 rv = self->Create(size, buffer);
907 done:
908 wxPyEndBlockThreads(blocked);
909 return rv;
910 #else
911 bool blocked = wxPyBeginBlockThreads();
912 PyErr_SetString(PyExc_NotImplementedError,
913 "Create from data is not available on this platform.");
914 wxPyEndBlockThreads(blocked);
915 return False;
916 #endif
917 }
918
919 #include <wx/mimetype.h>
920
921 PyObject *wxFileType_GetMimeType(wxFileType *self){
922 wxString str;
923 if (self->GetMimeType(&str))
924 return wx2PyString(str);
925 else
926 RETURN_NONE();
927 }
928 PyObject *wxFileType_GetMimeTypes(wxFileType *self){
929 wxArrayString arr;
930 if (self->GetMimeTypes(arr))
931 return wxArrayString2PyList_helper(arr);
932 else
933 RETURN_NONE();
934 }
935 PyObject *wxFileType_GetExtensions(wxFileType *self){
936 wxArrayString arr;
937 if (self->GetExtensions(arr))
938 return wxArrayString2PyList_helper(arr);
939 else
940 RETURN_NONE();
941 }
942 wxIcon *wxFileType_GetIcon(wxFileType *self){
943 wxIconLocation loc;
944 if (self->GetIcon(&loc))
945 return new wxIcon(loc);
946 else
947 return NULL;
948 }
949 PyObject *wxFileType_GetIconInfo(wxFileType *self){
950 wxIconLocation loc;
951 if (self->GetIcon(&loc)) {
952 wxString iconFile = loc.GetFileName();
953 int iconIndex = -1;
954
955
956
957 // Make a tuple and put the values in it
958 bool blocked = wxPyBeginBlockThreads();
959 PyObject* tuple = PyTuple_New(3);
960 PyTuple_SetItem(tuple, 0, wxPyConstructObject(new wxIcon(loc),
961 wxT("wxIcon"), True));
962 PyTuple_SetItem(tuple, 1, wx2PyString(iconFile));
963 PyTuple_SetItem(tuple, 2, PyInt_FromLong(iconIndex));
964 wxPyEndBlockThreads(blocked);
965 return tuple;
966 }
967 else
968 RETURN_NONE();
969 }
970 PyObject *wxFileType_GetDescription(wxFileType *self){
971 wxString str;
972 if (self->GetDescription(&str))
973 return wx2PyString(str);
974 else
975 RETURN_NONE();
976 }
977 PyObject *wxFileType_GetOpenCommand(wxFileType *self,wxString const &filename,wxString const &mimetype){
978 wxString str;
979 if (self->GetOpenCommand(&str, wxFileType::MessageParameters(filename, mimetype)))
980 return wx2PyString(str);
981 else
982 RETURN_NONE();
983 }
984 PyObject *wxFileType_GetPrintCommand(wxFileType *self,wxString const &filename,wxString const &mimetype){
985 wxString str;
986 if (self->GetPrintCommand(&str, wxFileType::MessageParameters(filename, mimetype)))
987 return wx2PyString(str);
988 else
989 RETURN_NONE();
990 }
991 PyObject *wxFileType_GetAllCommands(wxFileType *self,wxString const &filename,wxString const &mimetype){
992 wxArrayString verbs;
993 wxArrayString commands;
994 if (self->GetAllCommands(&verbs, &commands,
995 wxFileType::MessageParameters(filename, mimetype))) {
996 bool blocked = wxPyBeginBlockThreads();
997 PyObject* tuple = PyTuple_New(2);
998 PyTuple_SetItem(tuple, 0, wxArrayString2PyList_helper(verbs));
999 PyTuple_SetItem(tuple, 1, wxArrayString2PyList_helper(commands));
1000 wxPyEndBlockThreads(blocked);
1001 return tuple;
1002 }
1003 else
1004 RETURN_NONE();
1005 }
1006 wxString FileType_ExpandCommand(wxString const &command,wxString const &filename,wxString const &mimetype){
1007 return wxFileType::ExpandCommand(command,
1008 wxFileType::MessageParameters(filename, mimetype));
1009 }
1010 PyObject *wxMimeTypesManager_EnumAllFileTypes(wxMimeTypesManager *self){
1011 wxArrayString arr;
1012 self->EnumAllFileTypes(arr);
1013 return wxArrayString2PyList_helper(arr);
1014 }
1015
1016 #include <wx/artprov.h>
1017
1018 static const wxString wxPyART_TOOLBAR(wxART_TOOLBAR);
1019 static const wxString wxPyART_MENU(wxART_MENU);
1020 static const wxString wxPyART_FRAME_ICON(wxART_FRAME_ICON);
1021 static const wxString wxPyART_CMN_DIALOG(wxART_CMN_DIALOG);
1022 static const wxString wxPyART_HELP_BROWSER(wxART_HELP_BROWSER);
1023 static const wxString wxPyART_MESSAGE_BOX(wxART_MESSAGE_BOX);
1024 static const wxString wxPyART_OTHER(wxART_OTHER);
1025 static const wxString wxPyART_ADD_BOOKMARK(wxART_ADD_BOOKMARK);
1026 static const wxString wxPyART_DEL_BOOKMARK(wxART_DEL_BOOKMARK);
1027 static const wxString wxPyART_HELP_SIDE_PANEL(wxART_HELP_SIDE_PANEL);
1028 static const wxString wxPyART_HELP_SETTINGS(wxART_HELP_SETTINGS);
1029 static const wxString wxPyART_HELP_BOOK(wxART_HELP_BOOK);
1030 static const wxString wxPyART_HELP_FOLDER(wxART_HELP_FOLDER);
1031 static const wxString wxPyART_HELP_PAGE(wxART_HELP_PAGE);
1032 static const wxString wxPyART_GO_BACK(wxART_GO_BACK);
1033 static const wxString wxPyART_GO_FORWARD(wxART_GO_FORWARD);
1034 static const wxString wxPyART_GO_UP(wxART_GO_UP);
1035 static const wxString wxPyART_GO_DOWN(wxART_GO_DOWN);
1036 static const wxString wxPyART_GO_TO_PARENT(wxART_GO_TO_PARENT);
1037 static const wxString wxPyART_GO_HOME(wxART_GO_HOME);
1038 static const wxString wxPyART_FILE_OPEN(wxART_FILE_OPEN);
1039 static const wxString wxPyART_PRINT(wxART_PRINT);
1040 static const wxString wxPyART_HELP(wxART_HELP);
1041 static const wxString wxPyART_TIP(wxART_TIP);
1042 static const wxString wxPyART_REPORT_VIEW(wxART_REPORT_VIEW);
1043 static const wxString wxPyART_LIST_VIEW(wxART_LIST_VIEW);
1044 static const wxString wxPyART_NEW_DIR(wxART_NEW_DIR);
1045 static const wxString wxPyART_FOLDER(wxART_FOLDER);
1046 static const wxString wxPyART_GO_DIR_UP(wxART_GO_DIR_UP);
1047 static const wxString wxPyART_EXECUTABLE_FILE(wxART_EXECUTABLE_FILE);
1048 static const wxString wxPyART_NORMAL_FILE(wxART_NORMAL_FILE);
1049 static const wxString wxPyART_TICK_MARK(wxART_TICK_MARK);
1050 static const wxString wxPyART_CROSS_MARK(wxART_CROSS_MARK);
1051 static const wxString wxPyART_ERROR(wxART_ERROR);
1052 static const wxString wxPyART_QUESTION(wxART_QUESTION);
1053 static const wxString wxPyART_WARNING(wxART_WARNING);
1054 static const wxString wxPyART_INFORMATION(wxART_INFORMATION);
1055 static const wxString wxPyART_MISSING_IMAGE(wxART_MISSING_IMAGE);
1056 // Python aware wxArtProvider
1057 class wxPyArtProvider : public wxArtProvider {
1058 public:
1059
1060 virtual wxBitmap CreateBitmap(const wxArtID& id,
1061 const wxArtClient& client,
1062 const wxSize& size) {
1063 wxBitmap rval = wxNullBitmap;
1064 bool blocked = wxPyBeginBlockThreads();
1065 if ((wxPyCBH_findCallback(m_myInst, "CreateBitmap"))) {
1066 PyObject* so = wxPyConstructObject((void*)&size, wxT("wxSize"), 0);
1067 PyObject* ro;
1068 wxBitmap* ptr;
1069 PyObject* s1, *s2;
1070 s1 = wx2PyString(id);
1071 s2 = wx2PyString(client);
1072 ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OOO)", s1, s2, so));
1073 Py_DECREF(so);
1074 Py_DECREF(s1);
1075 Py_DECREF(s2);
1076 if (ro) {
1077 if (wxPyConvertSwigPtr(ro, (void**)&ptr, wxT("wxBitmap")))
1078 rval = *ptr;
1079 Py_DECREF(ro);
1080 }
1081 }
1082 wxPyEndBlockThreads(blocked);
1083 return rval;
1084 }
1085
1086 PYPRIVATE;
1087 };
1088
1089 void wxPyArtProvider_Destroy(wxPyArtProvider *self){ delete self; }
1090
1091
1092
1093 static PyObject* __EnumerationHelper(bool flag, wxString& str, long index) {
1094 PyObject* ret = PyTuple_New(3);
1095 if (ret) {
1096 PyTuple_SET_ITEM(ret, 0, PyInt_FromLong(flag));
1097 PyTuple_SET_ITEM(ret, 1, wx2PyString(str));
1098 PyTuple_SET_ITEM(ret, 2, PyInt_FromLong(index));
1099 }
1100 return ret;
1101 }
1102
1103 PyObject *wxConfigBase_GetFirstGroup(wxConfigBase *self){
1104 bool cont;
1105 long index = 0;
1106 wxString value;
1107
1108 cont = self->GetFirstGroup(value, index);
1109 return __EnumerationHelper(cont, value, index);
1110 }
1111 PyObject *wxConfigBase_GetNextGroup(wxConfigBase *self,long index){
1112 bool cont;
1113 wxString value;
1114
1115 cont = self->GetNextGroup(value, index);
1116 return __EnumerationHelper(cont, value, index);
1117 }
1118 PyObject *wxConfigBase_GetFirstEntry(wxConfigBase *self){
1119 bool cont;
1120 long index = 0;
1121 wxString value;
1122
1123 cont = self->GetFirstEntry(value, index);
1124 return __EnumerationHelper(cont, value, index);
1125 }
1126 PyObject *wxConfigBase_GetNextEntry(wxConfigBase *self,long index){
1127 bool cont;
1128 wxString value;
1129
1130 cont = self->GetNextEntry(value, index);
1131 return __EnumerationHelper(cont, value, index);
1132 }
1133 long wxConfigBase_ReadInt(wxConfigBase *self,wxString const &key,long defaultVal){
1134 long rv;
1135 self->Read(key, &rv, defaultVal);
1136 return rv;
1137 }
1138
1139 SWIGSTATICINLINE(double)
1140 SWIG_AsDouble(PyObject *obj)
1141 {
1142 if (PyNumber_Check(obj))
1143 return PyFloat_AsDouble(obj);
1144 else {
1145 PyObject* errmsg = PyString_FromFormat("Expected number, got %s",
1146 obj->ob_type->tp_name);
1147 PyErr_SetObject(PyExc_TypeError, errmsg);
1148 Py_DECREF(errmsg);
1149 return 0;
1150 }
1151 }
1152
1153
1154 SWIGSTATICINLINE(int)
1155 SWIG_CheckDouble(PyObject* obj)
1156 {
1157 SWIG_AsDouble(obj);
1158 if (PyErr_Occurred()) {
1159 PyErr_Clear();
1160 return 0;
1161 } else {
1162 return 1;
1163 }
1164 }
1165
1166 double wxConfigBase_ReadFloat(wxConfigBase *self,wxString const &key,double defaultVal){
1167 double rv;
1168 self->Read(key, &rv, defaultVal);
1169 return rv;
1170 }
1171 bool wxConfigBase_ReadBool(wxConfigBase *self,wxString const &key,bool defaultVal){
1172 bool rv;
1173 self->Read(key, &rv, defaultVal);
1174 return rv;
1175 }
1176
1177 #include <wx/datetime.h>
1178
1179
1180 static const wxString wxPyDateFormatStr(wxT("%c"));
1181 static const wxString wxPyTimeSpanFormatStr(wxT("%H:%M:%S"));
1182
1183 #define LOCAL_TZ wxDateTime::Local
1184
1185
1186 #if UINT_MAX < LONG_MAX
1187 #define SWIG_FromUnsignedInt SWIG_FromLong
1188 #else
1189 #define SWIG_FromUnsignedInt SWIG_FromUnsignedLong
1190 #endif
1191
1192 wxDateTime wxDateTime___add____SWIG_0(wxDateTime *self,wxTimeSpan const &other){ return *self + other; }
1193 wxDateTime wxDateTime___add____SWIG_1(wxDateTime *self,wxDateSpan const &other){ return *self + other; }
1194 wxTimeSpan wxDateTime___sub____SWIG_0(wxDateTime *self,wxDateTime const &other){ return *self - other; }
1195 wxDateTime wxDateTime___sub____SWIG_1(wxDateTime *self,wxTimeSpan const &other){ return *self - other; }
1196 wxDateTime wxDateTime___sub____SWIG_2(wxDateTime *self,wxDateSpan const &other){ return *self - other; }
1197 bool wxDateTime___lt__(wxDateTime *self,wxDateTime const *other){
1198 if (!other || !self->IsValid() || !other->IsValid()) return self < other;
1199 return (*self < *other);
1200 }
1201 bool wxDateTime___le__(wxDateTime *self,wxDateTime const *other){
1202 if (!other || !self->IsValid() || !other->IsValid()) return self <= other;
1203 return (*self <= *other);
1204 }
1205 bool wxDateTime___gt__(wxDateTime *self,wxDateTime const *other){
1206 if (!other || !self->IsValid() || !other->IsValid()) return self > other;
1207 return (*self > *other);
1208 }
1209 bool wxDateTime___ge__(wxDateTime *self,wxDateTime const *other){
1210 if (!other || !self->IsValid() || !other->IsValid()) return self >= other;
1211 return (*self >= *other);
1212 }
1213 bool wxDateTime___eq__(wxDateTime *self,wxDateTime const *other){
1214 if (!other || !self->IsValid() || !other->IsValid()) return self == other;
1215 return (*self == *other);
1216 }
1217 bool wxDateTime___ne__(wxDateTime *self,wxDateTime const *other){
1218 if (!other || !self->IsValid() || !other->IsValid()) return self != other;
1219 return (*self != *other);
1220 }
1221 int wxDateTime_ParseRfc822Date(wxDateTime *self,wxString const &date){
1222 const wxChar* rv;
1223 const wxChar* _date = date;
1224 rv = self->ParseRfc822Date(_date);
1225 if (rv == NULL) return -1;
1226 return rv - _date;
1227 }
1228 int wxDateTime_ParseFormat(wxDateTime *self,wxString const &date,wxString const &format,wxDateTime const &dateDef){
1229 const wxChar* rv;
1230 const wxChar* _date = date;
1231 rv = self->ParseFormat(_date, format, dateDef);
1232 if (rv == NULL) return -1;
1233 return rv - _date;
1234 }
1235 int wxDateTime_ParseDateTime(wxDateTime *self,wxString const &datetime){
1236 const wxChar* rv;
1237 const wxChar* _datetime = datetime;
1238 rv = self->ParseDateTime(_datetime);
1239 if (rv == NULL) return -1;
1240 return rv - _datetime;
1241 }
1242 int wxDateTime_ParseDate(wxDateTime *self,wxString const &date){
1243 const wxChar* rv;
1244 const wxChar* _date = date;
1245 rv = self->ParseDate(_date);
1246 if (rv == NULL) return -1;
1247 return rv - _date;
1248 }
1249 int wxDateTime_ParseTime(wxDateTime *self,wxString const &time){
1250 const wxChar* rv;
1251 const wxChar* _time = time;
1252 rv = self->ParseTime(_time);
1253 if (rv == NULL) return -1;
1254 return rv - _time;
1255 }
1256 wxTimeSpan wxTimeSpan___add__(wxTimeSpan *self,wxTimeSpan const &other){ return *self + other; }
1257 wxTimeSpan wxTimeSpan___sub__(wxTimeSpan *self,wxTimeSpan const &other){ return *self - other; }
1258 wxTimeSpan wxTimeSpan___mul__(wxTimeSpan *self,int n){ return *self * n; }
1259 wxTimeSpan wxTimeSpan___rmul__(wxTimeSpan *self,int n){ return n * *self; }
1260 bool wxTimeSpan___lt__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self < *other) : False; }
1261 bool wxTimeSpan___le__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self <= *other) : False; }
1262 bool wxTimeSpan___gt__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self > *other) : True; }
1263 bool wxTimeSpan___ge__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self >= *other) : True; }
1264 bool wxTimeSpan___eq__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self == *other) : False; }
1265 bool wxTimeSpan___ne__(wxTimeSpan *self,wxTimeSpan const *other){ return other ? (*self != *other) : True; }
1266 wxDateSpan wxDateSpan___add__(wxDateSpan *self,wxDateSpan const &other){ return *self + other; }
1267 wxDateSpan wxDateSpan___sub__(wxDateSpan *self,wxDateSpan const &other){ return *self - other; }
1268 wxDateSpan wxDateSpan___mul__(wxDateSpan *self,int n){ return *self * n; }
1269 wxDateSpan wxDateSpan___rmul__(wxDateSpan *self,int n){ return n * *self; }
1270 bool wxDateSpan___eq__(wxDateSpan *self,wxDateSpan const *other){ return other ? (*self == *other) : False; }
1271 bool wxDateSpan___ne__(wxDateSpan *self,wxDateSpan const *other){ return other ? (*self != *other) : True; }
1272
1273 #include <wx/dataobj.h>
1274
1275 PyObject *wxDataObject_GetAllFormats(wxDataObject *self,wxDataObject::Direction dir){
1276 size_t count = self->GetFormatCount(dir);
1277 wxDataFormat* formats = new wxDataFormat[count];
1278 self->GetAllFormats(formats, dir);
1279
1280 bool blocked = wxPyBeginBlockThreads();
1281 PyObject* list = PyList_New(count);
1282 for (size_t i=0; i<count; i++) {
1283 wxDataFormat* format = new wxDataFormat(formats[i]);
1284 PyObject* obj = wxPyConstructObject((void*)format, wxT("wxDataFormat"), True);
1285 PyList_Append(list, obj);
1286 Py_DECREF(obj);
1287 }
1288 wxPyEndBlockThreads(blocked);
1289 delete [] formats;
1290 return list;
1291 }
1292 PyObject *wxDataObject_GetDataHere(wxDataObject *self,wxDataFormat const &format){
1293 PyObject* rval = NULL;
1294 size_t size = self->GetDataSize(format);
1295 bool blocked = wxPyBeginBlockThreads();
1296 if (size) {
1297 char* buf = new char[size];
1298 if (self->GetDataHere(format, buf))
1299 rval = PyString_FromStringAndSize(buf, size);
1300 delete [] buf;
1301 }
1302 if (! rval) {
1303 rval = Py_None;
1304 Py_INCREF(rval);
1305 }
1306 wxPyEndBlockThreads(blocked);
1307 return rval;
1308 }
1309 bool wxDataObject_SetData(wxDataObject *self,wxDataFormat const &format,PyObject *data){
1310 bool rval;
1311 bool blocked = wxPyBeginBlockThreads();
1312 if (PyString_Check(data)) {
1313 rval = self->SetData(format, PyString_Size(data), PyString_AsString(data));
1314 }
1315 else {
1316 // raise a TypeError if not a string
1317 PyErr_SetString(PyExc_TypeError, "String expected.");
1318 rval = False;
1319 }
1320 wxPyEndBlockThreads(blocked);
1321 return rval;
1322 }
1323 PyObject *wxDataObjectSimple_GetDataHere(wxDataObjectSimple *self){
1324 PyObject* rval = NULL;
1325 size_t size = self->GetDataSize();
1326 bool blocked = wxPyBeginBlockThreads();
1327 if (size) {
1328 char* buf = new char[size];
1329 if (self->GetDataHere(buf))
1330 rval = PyString_FromStringAndSize(buf, size);
1331 delete [] buf;
1332 }
1333 if (! rval) {
1334 rval = Py_None;
1335 Py_INCREF(rval);
1336 }
1337 wxPyEndBlockThreads(blocked);
1338 return rval;
1339 }
1340 bool wxDataObjectSimple_SetData(wxDataObjectSimple *self,PyObject *data){
1341 bool rval;
1342 bool blocked = wxPyBeginBlockThreads();
1343 if (PyString_Check(data)) {
1344 rval = self->SetData(PyString_Size(data), PyString_AsString(data));
1345 }
1346 else {
1347 // raise a TypeError if not a string
1348 PyErr_SetString(PyExc_TypeError, "String expected.");
1349 rval = False;
1350 }
1351 wxPyEndBlockThreads(blocked);
1352 return rval;
1353 }
1354 // Create a new class for wxPython to use
1355 class wxPyDataObjectSimple : public wxDataObjectSimple {
1356 public:
1357 wxPyDataObjectSimple(const wxDataFormat& format = wxFormatInvalid)
1358 : wxDataObjectSimple(format) {}
1359
1360 DEC_PYCALLBACK_SIZET__const(GetDataSize);
1361 bool GetDataHere(void *buf) const;
1362 bool SetData(size_t len, const void *buf) const;
1363 PYPRIVATE;
1364 };
1365
1366 IMP_PYCALLBACK_SIZET__const(wxPyDataObjectSimple, wxDataObjectSimple, GetDataSize);
1367
1368 bool wxPyDataObjectSimple::GetDataHere(void *buf) const {
1369 // We need to get the data for this object and write it to buf. I think
1370 // the best way to do this for wxPython is to have the Python method
1371 // return either a string or None and then act appropriately with the
1372 // C++ version.
1373
1374 bool rval = False;
1375 bool blocked = wxPyBeginBlockThreads();
1376 if (wxPyCBH_findCallback(m_myInst, "GetDataHere")) {
1377 PyObject* ro;
1378 ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()"));
1379 if (ro) {
1380 rval = (ro != Py_None && PyString_Check(ro));
1381 if (rval)
1382 memcpy(buf, PyString_AsString(ro), PyString_Size(ro));
1383 Py_DECREF(ro);
1384 }
1385 }
1386 wxPyEndBlockThreads(blocked);
1387 return rval;
1388 }
1389
1390 bool wxPyDataObjectSimple::SetData(size_t len, const void *buf) const{
1391 // For this one we simply need to make a string from buf and len
1392 // and send it to the Python method.
1393 bool rval = False;
1394 bool blocked = wxPyBeginBlockThreads();
1395 if (wxPyCBH_findCallback(m_myInst, "SetData")) {
1396 PyObject* data = PyString_FromStringAndSize((char*)buf, len);
1397 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(O)", data));
1398 Py_DECREF(data);
1399 }
1400 wxPyEndBlockThreads(blocked);
1401 return rval;
1402 }
1403
1404 // Create a new class for wxPython to use
1405 class wxPyTextDataObject : public wxTextDataObject {
1406 public:
1407 wxPyTextDataObject(const wxString& text = wxPyEmptyString)
1408 : wxTextDataObject(text) {}
1409
1410 DEC_PYCALLBACK_SIZET__const(GetTextLength);
1411 DEC_PYCALLBACK_STRING__const(GetText);
1412 DEC_PYCALLBACK__STRING(SetText);
1413 PYPRIVATE;
1414 };
1415
1416 IMP_PYCALLBACK_SIZET__const(wxPyTextDataObject, wxTextDataObject, GetTextLength);
1417 IMP_PYCALLBACK_STRING__const(wxPyTextDataObject, wxTextDataObject, GetText);
1418 IMP_PYCALLBACK__STRING(wxPyTextDataObject, wxTextDataObject, SetText);
1419
1420
1421 // Create a new class for wxPython to use
1422 class wxPyBitmapDataObject : public wxBitmapDataObject {
1423 public:
1424 wxPyBitmapDataObject(const wxBitmap& bitmap = wxNullBitmap)
1425 : wxBitmapDataObject(bitmap) {}
1426
1427 wxBitmap GetBitmap() const;
1428 void SetBitmap(const wxBitmap& bitmap);
1429 PYPRIVATE;
1430 };
1431
1432 wxBitmap wxPyBitmapDataObject::GetBitmap() const {
1433 wxBitmap* rval = &wxNullBitmap;
1434 bool blocked = wxPyBeginBlockThreads();
1435 if (wxPyCBH_findCallback(m_myInst, "GetBitmap")) {
1436 PyObject* ro;
1437 wxBitmap* ptr;
1438 ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("()"));
1439 if (ro) {
1440 if (wxPyConvertSwigPtr(ro, (void **)&ptr, wxT("wxBitmap")))
1441 rval = ptr;
1442 Py_DECREF(ro);
1443 }
1444 }
1445 wxPyEndBlockThreads(blocked);
1446 return *rval;
1447 }
1448
1449 void wxPyBitmapDataObject::SetBitmap(const wxBitmap& bitmap) {
1450 bool blocked = wxPyBeginBlockThreads();
1451 if (wxPyCBH_findCallback(m_myInst, "SetBitmap")) {
1452 PyObject* bo = wxPyConstructObject((void*)&bitmap, wxT("wxBitmap"), False);
1453 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(O)", bo));
1454 Py_DECREF(bo);
1455 }
1456 wxPyEndBlockThreads(blocked);
1457 }
1458
1459 bool wxCustomDataObject_SetData(wxCustomDataObject *self,PyObject *data){
1460 bool rval;
1461 bool blocked = wxPyBeginBlockThreads();
1462 if (PyString_Check(data)) {
1463 rval = self->SetData(PyString_Size(data), PyString_AsString(data));
1464 }
1465 else {
1466 // raise a TypeError if not a string
1467 PyErr_SetString(PyExc_TypeError, "String expected.");
1468 rval = False;
1469 }
1470 wxPyEndBlockThreads(blocked);
1471 return rval;
1472 }
1473 PyObject *wxCustomDataObject_GetData(wxCustomDataObject *self){
1474 PyObject* obj;
1475 bool blocked = wxPyBeginBlockThreads();
1476 obj = PyString_FromStringAndSize((char*)self->GetData(), self->GetSize());
1477 wxPyEndBlockThreads(blocked);
1478 return obj;
1479 }
1480
1481 class wxMetafileDataObject : public wxDataObjectSimple
1482 {
1483 public:
1484 wxMetafileDataObject() { wxPyRaiseNotImplemented(); }
1485 };
1486
1487
1488 IMP_PYCALLBACK_BOOL_DR(wxPyDropSource, wxDropSource, GiveFeedback);
1489
1490
1491 IMP_PYCALLBACK__(wxPyDropTarget, wxDropTarget, OnLeave);
1492 IMP_PYCALLBACK_DR_2WXCDR(wxPyDropTarget, wxDropTarget, OnEnter);
1493 IMP_PYCALLBACK_DR_2WXCDR(wxPyDropTarget, wxDropTarget, OnDragOver);
1494 IMP_PYCALLBACK_DR_2WXCDR_pure(wxPyDropTarget, wxDropTarget, OnData);
1495 IMP_PYCALLBACK_BOOL_INTINT(wxPyDropTarget, wxDropTarget, OnDrop);
1496
1497
1498 class wxPyTextDropTarget : public wxTextDropTarget {
1499 public:
1500 wxPyTextDropTarget() {}
1501
1502 DEC_PYCALLBACK_BOOL_INTINTSTR_pure(OnDropText);
1503
1504 DEC_PYCALLBACK__(OnLeave);
1505 DEC_PYCALLBACK_DR_2WXCDR(OnEnter);
1506 DEC_PYCALLBACK_DR_2WXCDR(OnDragOver);
1507 DEC_PYCALLBACK_DR_2WXCDR(OnData);
1508 DEC_PYCALLBACK_BOOL_INTINT(OnDrop);
1509
1510 PYPRIVATE;
1511 };
1512
1513 IMP_PYCALLBACK_BOOL_INTINTSTR_pure(wxPyTextDropTarget, wxTextDropTarget, OnDropText);
1514 IMP_PYCALLBACK__(wxPyTextDropTarget, wxTextDropTarget, OnLeave);
1515 IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnEnter);
1516 IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnDragOver);
1517 IMP_PYCALLBACK_DR_2WXCDR(wxPyTextDropTarget, wxTextDropTarget, OnData);
1518 IMP_PYCALLBACK_BOOL_INTINT(wxPyTextDropTarget, wxTextDropTarget, OnDrop);
1519
1520
1521
1522 class wxPyFileDropTarget : public wxFileDropTarget {
1523 public:
1524 wxPyFileDropTarget() {}
1525
1526 virtual bool OnDropFiles(wxCoord x, wxCoord y, const wxArrayString& filenames);
1527
1528 DEC_PYCALLBACK__(OnLeave);
1529 DEC_PYCALLBACK_DR_2WXCDR(OnEnter);
1530 DEC_PYCALLBACK_DR_2WXCDR(OnDragOver);
1531 DEC_PYCALLBACK_DR_2WXCDR(OnData);
1532 DEC_PYCALLBACK_BOOL_INTINT(OnDrop);
1533
1534 PYPRIVATE;
1535 };
1536
1537 bool wxPyFileDropTarget::OnDropFiles(wxCoord x, wxCoord y,
1538 const wxArrayString& filenames) {
1539 bool rval = False;
1540 bool blocked = wxPyBeginBlockThreads();
1541 if (wxPyCBH_findCallback(m_myInst, "OnDropFiles")) {
1542 PyObject* list = wxArrayString2PyList_helper(filenames);
1543 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iiO)",x,y,list));
1544 Py_DECREF(list);
1545 }
1546 wxPyEndBlockThreads(blocked);
1547 return rval;
1548 }
1549
1550
1551
1552 IMP_PYCALLBACK__(wxPyFileDropTarget, wxFileDropTarget, OnLeave);
1553 IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnEnter);
1554 IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnDragOver);
1555 IMP_PYCALLBACK_DR_2WXCDR(wxPyFileDropTarget, wxFileDropTarget, OnData);
1556 IMP_PYCALLBACK_BOOL_INTINT(wxPyFileDropTarget, wxFileDropTarget, OnDrop);
1557
1558
1559
1560
1561 bool wxClipboardLocker___nonzero__(wxClipboardLocker *self){ return !!(*self); }
1562
1563 #include "wx/display.h"
1564
1565 bool wxVideoMode___eq__(wxVideoMode *self,wxVideoMode const *other){ return other ? (*self == *other) : False; }
1566 bool wxVideoMode___ne__(wxVideoMode *self,wxVideoMode const *other){ return other ? (*self != *other) : True; }
1567 int Display_GetFromWindow(wxWindow *window){ wxPyRaiseNotImplemented(); return wxNOT_FOUND; }
1568 PyObject *wxDisplay_GetModes(wxDisplay *self,wxVideoMode const &mode){
1569 PyObject* pyList = NULL;
1570 wxArrayVideoModes arr = self->GetModes(mode);
1571 bool blocked = wxPyBeginBlockThreads();
1572 pyList = PyList_New(0);
1573 for (int i=0; i < arr.GetCount(); i++) {
1574 wxVideoMode* m = new wxVideoMode(arr.Item(i));
1575 PyObject* pyObj = wxPyConstructObject(m, wxT("wxVideoMode"), true);
1576 PyList_Append(pyList, pyObj);
1577 Py_DECREF(pyObj);
1578 }
1579 wxPyEndBlockThreads(blocked);
1580 return pyList;
1581 }
1582 #ifdef __cplusplus
1583 extern "C" {
1584 #endif
1585 static PyObject *_wrap_SystemSettings_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1586 PyObject *resultobj;
1587 int arg1 ;
1588 wxColour result;
1589 PyObject * obj0 = 0 ;
1590 char *kwnames[] = {
1591 (char *) "index", NULL
1592 };
1593
1594 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_GetColour",kwnames,&obj0)) goto fail;
1595 arg1 = (wxSystemColour) SWIG_AsInt(obj0);
1596 if (PyErr_Occurred()) SWIG_fail;
1597 {
1598 if (!wxPyCheckForApp()) SWIG_fail;
1599 PyThreadState* __tstate = wxPyBeginAllowThreads();
1600 result = wxSystemSettings::GetColour((wxSystemColour )arg1);
1601
1602 wxPyEndAllowThreads(__tstate);
1603 if (PyErr_Occurred()) SWIG_fail;
1604 }
1605 {
1606 wxColour * resultptr;
1607 resultptr = new wxColour((wxColour &) result);
1608 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
1609 }
1610 return resultobj;
1611 fail:
1612 return NULL;
1613 }
1614
1615
1616 static PyObject *_wrap_SystemSettings_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
1617 PyObject *resultobj;
1618 int arg1 ;
1619 wxFont result;
1620 PyObject * obj0 = 0 ;
1621 char *kwnames[] = {
1622 (char *) "index", NULL
1623 };
1624
1625 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_GetFont",kwnames,&obj0)) goto fail;
1626 arg1 = (wxSystemFont) SWIG_AsInt(obj0);
1627 if (PyErr_Occurred()) SWIG_fail;
1628 {
1629 if (!wxPyCheckForApp()) SWIG_fail;
1630 PyThreadState* __tstate = wxPyBeginAllowThreads();
1631 result = wxSystemSettings::GetFont((wxSystemFont )arg1);
1632
1633 wxPyEndAllowThreads(__tstate);
1634 if (PyErr_Occurred()) SWIG_fail;
1635 }
1636 {
1637 wxFont * resultptr;
1638 resultptr = new wxFont((wxFont &) result);
1639 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1);
1640 }
1641 return resultobj;
1642 fail:
1643 return NULL;
1644 }
1645
1646
1647 static PyObject *_wrap_SystemSettings_GetMetric(PyObject *self, PyObject *args, PyObject *kwargs) {
1648 PyObject *resultobj;
1649 int arg1 ;
1650 int result;
1651 PyObject * obj0 = 0 ;
1652 char *kwnames[] = {
1653 (char *) "index", NULL
1654 };
1655
1656 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_GetMetric",kwnames,&obj0)) goto fail;
1657 arg1 = (wxSystemMetric) SWIG_AsInt(obj0);
1658 if (PyErr_Occurred()) SWIG_fail;
1659 {
1660 if (!wxPyCheckForApp()) SWIG_fail;
1661 PyThreadState* __tstate = wxPyBeginAllowThreads();
1662 result = (int)wxSystemSettings::GetMetric((wxSystemMetric )arg1);
1663
1664 wxPyEndAllowThreads(__tstate);
1665 if (PyErr_Occurred()) SWIG_fail;
1666 }
1667 resultobj = SWIG_FromInt((int)result);
1668 return resultobj;
1669 fail:
1670 return NULL;
1671 }
1672
1673
1674 static PyObject *_wrap_SystemSettings_HasFeature(PyObject *self, PyObject *args, PyObject *kwargs) {
1675 PyObject *resultobj;
1676 int arg1 ;
1677 bool result;
1678 PyObject * obj0 = 0 ;
1679 char *kwnames[] = {
1680 (char *) "index", NULL
1681 };
1682
1683 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_HasFeature",kwnames,&obj0)) goto fail;
1684 arg1 = (wxSystemFeature) SWIG_AsInt(obj0);
1685 if (PyErr_Occurred()) SWIG_fail;
1686 {
1687 if (!wxPyCheckForApp()) SWIG_fail;
1688 PyThreadState* __tstate = wxPyBeginAllowThreads();
1689 result = (bool)wxSystemSettings::HasFeature((wxSystemFeature )arg1);
1690
1691 wxPyEndAllowThreads(__tstate);
1692 if (PyErr_Occurred()) SWIG_fail;
1693 }
1694 {
1695 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1696 }
1697 return resultobj;
1698 fail:
1699 return NULL;
1700 }
1701
1702
1703 static PyObject *_wrap_SystemSettings_GetScreenType(PyObject *self, PyObject *args, PyObject *kwargs) {
1704 PyObject *resultobj;
1705 int result;
1706 char *kwnames[] = {
1707 NULL
1708 };
1709
1710 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":SystemSettings_GetScreenType",kwnames)) goto fail;
1711 {
1712 if (!wxPyCheckForApp()) SWIG_fail;
1713 PyThreadState* __tstate = wxPyBeginAllowThreads();
1714 result = (int)wxSystemSettings::GetScreenType();
1715
1716 wxPyEndAllowThreads(__tstate);
1717 if (PyErr_Occurred()) SWIG_fail;
1718 }
1719 resultobj = SWIG_FromInt((int)result);
1720 return resultobj;
1721 fail:
1722 return NULL;
1723 }
1724
1725
1726 static PyObject *_wrap_SystemSettings_SetScreenType(PyObject *self, PyObject *args, PyObject *kwargs) {
1727 PyObject *resultobj;
1728 int arg1 ;
1729 PyObject * obj0 = 0 ;
1730 char *kwnames[] = {
1731 (char *) "screen", NULL
1732 };
1733
1734 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemSettings_SetScreenType",kwnames,&obj0)) goto fail;
1735 arg1 = (wxSystemScreenType) SWIG_AsInt(obj0);
1736 if (PyErr_Occurred()) SWIG_fail;
1737 {
1738 if (!wxPyCheckForApp()) SWIG_fail;
1739 PyThreadState* __tstate = wxPyBeginAllowThreads();
1740 wxSystemSettings::SetScreenType((wxSystemScreenType )arg1);
1741
1742 wxPyEndAllowThreads(__tstate);
1743 if (PyErr_Occurred()) SWIG_fail;
1744 }
1745 Py_INCREF(Py_None); resultobj = Py_None;
1746 return resultobj;
1747 fail:
1748 return NULL;
1749 }
1750
1751
1752 static PyObject * SystemSettings_swigregister(PyObject *self, PyObject *args) {
1753 PyObject *obj;
1754 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1755 SWIG_TypeClientData(SWIGTYPE_p_wxSystemSettings, obj);
1756 Py_INCREF(obj);
1757 return Py_BuildValue((char *)"");
1758 }
1759 static PyObject *_wrap_new_SystemOptions(PyObject *self, PyObject *args, PyObject *kwargs) {
1760 PyObject *resultobj;
1761 wxSystemOptions *result;
1762 char *kwnames[] = {
1763 NULL
1764 };
1765
1766 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SystemOptions",kwnames)) goto fail;
1767 {
1768 PyThreadState* __tstate = wxPyBeginAllowThreads();
1769 result = (wxSystemOptions *)new wxSystemOptions();
1770
1771 wxPyEndAllowThreads(__tstate);
1772 if (PyErr_Occurred()) SWIG_fail;
1773 }
1774 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSystemOptions, 1);
1775 return resultobj;
1776 fail:
1777 return NULL;
1778 }
1779
1780
1781 static PyObject *_wrap_SystemOptions_SetOption(PyObject *self, PyObject *args, PyObject *kwargs) {
1782 PyObject *resultobj;
1783 wxString *arg1 = 0 ;
1784 wxString *arg2 = 0 ;
1785 bool temp1 = False ;
1786 bool temp2 = False ;
1787 PyObject * obj0 = 0 ;
1788 PyObject * obj1 = 0 ;
1789 char *kwnames[] = {
1790 (char *) "name",(char *) "value", NULL
1791 };
1792
1793 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SystemOptions_SetOption",kwnames,&obj0,&obj1)) goto fail;
1794 {
1795 arg1 = wxString_in_helper(obj0);
1796 if (arg1 == NULL) SWIG_fail;
1797 temp1 = True;
1798 }
1799 {
1800 arg2 = wxString_in_helper(obj1);
1801 if (arg2 == NULL) SWIG_fail;
1802 temp2 = True;
1803 }
1804 {
1805 PyThreadState* __tstate = wxPyBeginAllowThreads();
1806 wxSystemOptions::SetOption((wxString const &)*arg1,(wxString const &)*arg2);
1807
1808 wxPyEndAllowThreads(__tstate);
1809 if (PyErr_Occurred()) SWIG_fail;
1810 }
1811 Py_INCREF(Py_None); resultobj = Py_None;
1812 {
1813 if (temp1)
1814 delete arg1;
1815 }
1816 {
1817 if (temp2)
1818 delete arg2;
1819 }
1820 return resultobj;
1821 fail:
1822 {
1823 if (temp1)
1824 delete arg1;
1825 }
1826 {
1827 if (temp2)
1828 delete arg2;
1829 }
1830 return NULL;
1831 }
1832
1833
1834 static PyObject *_wrap_SystemOptions_SetOptionInt(PyObject *self, PyObject *args, PyObject *kwargs) {
1835 PyObject *resultobj;
1836 wxString *arg1 = 0 ;
1837 int arg2 ;
1838 bool temp1 = False ;
1839 PyObject * obj0 = 0 ;
1840 PyObject * obj1 = 0 ;
1841 char *kwnames[] = {
1842 (char *) "name",(char *) "value", NULL
1843 };
1844
1845 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SystemOptions_SetOptionInt",kwnames,&obj0,&obj1)) goto fail;
1846 {
1847 arg1 = wxString_in_helper(obj0);
1848 if (arg1 == NULL) SWIG_fail;
1849 temp1 = True;
1850 }
1851 arg2 = (int) SWIG_AsInt(obj1);
1852 if (PyErr_Occurred()) SWIG_fail;
1853 {
1854 PyThreadState* __tstate = wxPyBeginAllowThreads();
1855 wxSystemOptions::SetOption((wxString const &)*arg1,arg2);
1856
1857 wxPyEndAllowThreads(__tstate);
1858 if (PyErr_Occurred()) SWIG_fail;
1859 }
1860 Py_INCREF(Py_None); resultobj = Py_None;
1861 {
1862 if (temp1)
1863 delete arg1;
1864 }
1865 return resultobj;
1866 fail:
1867 {
1868 if (temp1)
1869 delete arg1;
1870 }
1871 return NULL;
1872 }
1873
1874
1875 static PyObject *_wrap_SystemOptions_GetOption(PyObject *self, PyObject *args, PyObject *kwargs) {
1876 PyObject *resultobj;
1877 wxString *arg1 = 0 ;
1878 wxString result;
1879 bool temp1 = False ;
1880 PyObject * obj0 = 0 ;
1881 char *kwnames[] = {
1882 (char *) "name", NULL
1883 };
1884
1885 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_GetOption",kwnames,&obj0)) goto fail;
1886 {
1887 arg1 = wxString_in_helper(obj0);
1888 if (arg1 == NULL) SWIG_fail;
1889 temp1 = True;
1890 }
1891 {
1892 PyThreadState* __tstate = wxPyBeginAllowThreads();
1893 result = wxSystemOptions::GetOption((wxString const &)*arg1);
1894
1895 wxPyEndAllowThreads(__tstate);
1896 if (PyErr_Occurred()) SWIG_fail;
1897 }
1898 {
1899 #if wxUSE_UNICODE
1900 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
1901 #else
1902 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
1903 #endif
1904 }
1905 {
1906 if (temp1)
1907 delete arg1;
1908 }
1909 return resultobj;
1910 fail:
1911 {
1912 if (temp1)
1913 delete arg1;
1914 }
1915 return NULL;
1916 }
1917
1918
1919 static PyObject *_wrap_SystemOptions_GetOptionInt(PyObject *self, PyObject *args, PyObject *kwargs) {
1920 PyObject *resultobj;
1921 wxString *arg1 = 0 ;
1922 int result;
1923 bool temp1 = False ;
1924 PyObject * obj0 = 0 ;
1925 char *kwnames[] = {
1926 (char *) "name", NULL
1927 };
1928
1929 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_GetOptionInt",kwnames,&obj0)) goto fail;
1930 {
1931 arg1 = wxString_in_helper(obj0);
1932 if (arg1 == NULL) SWIG_fail;
1933 temp1 = True;
1934 }
1935 {
1936 PyThreadState* __tstate = wxPyBeginAllowThreads();
1937 result = (int)wxSystemOptions::GetOptionInt((wxString const &)*arg1);
1938
1939 wxPyEndAllowThreads(__tstate);
1940 if (PyErr_Occurred()) SWIG_fail;
1941 }
1942 resultobj = SWIG_FromInt((int)result);
1943 {
1944 if (temp1)
1945 delete arg1;
1946 }
1947 return resultobj;
1948 fail:
1949 {
1950 if (temp1)
1951 delete arg1;
1952 }
1953 return NULL;
1954 }
1955
1956
1957 static PyObject *_wrap_SystemOptions_HasOption(PyObject *self, PyObject *args, PyObject *kwargs) {
1958 PyObject *resultobj;
1959 wxString *arg1 = 0 ;
1960 bool result;
1961 bool temp1 = False ;
1962 PyObject * obj0 = 0 ;
1963 char *kwnames[] = {
1964 (char *) "name", NULL
1965 };
1966
1967 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SystemOptions_HasOption",kwnames,&obj0)) goto fail;
1968 {
1969 arg1 = wxString_in_helper(obj0);
1970 if (arg1 == NULL) SWIG_fail;
1971 temp1 = True;
1972 }
1973 {
1974 PyThreadState* __tstate = wxPyBeginAllowThreads();
1975 result = (bool)wxSystemOptions::HasOption((wxString const &)*arg1);
1976
1977 wxPyEndAllowThreads(__tstate);
1978 if (PyErr_Occurred()) SWIG_fail;
1979 }
1980 {
1981 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1982 }
1983 {
1984 if (temp1)
1985 delete arg1;
1986 }
1987 return resultobj;
1988 fail:
1989 {
1990 if (temp1)
1991 delete arg1;
1992 }
1993 return NULL;
1994 }
1995
1996
1997 static PyObject * SystemOptions_swigregister(PyObject *self, PyObject *args) {
1998 PyObject *obj;
1999 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2000 SWIG_TypeClientData(SWIGTYPE_p_wxSystemOptions, obj);
2001 Py_INCREF(obj);
2002 return Py_BuildValue((char *)"");
2003 }
2004 static int _wrap_FileSelectorPromptStr_set(PyObject *_val) {
2005 PyErr_SetString(PyExc_TypeError,"Variable FileSelectorPromptStr is read-only.");
2006 return 1;
2007 }
2008
2009
2010 static PyObject *_wrap_FileSelectorPromptStr_get() {
2011 PyObject *pyobj;
2012
2013 {
2014 #if wxUSE_UNICODE
2015 pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len());
2016 #else
2017 pyobj = PyString_FromStringAndSize((&wxPyFileSelectorPromptStr)->c_str(), (&wxPyFileSelectorPromptStr)->Len());
2018 #endif
2019 }
2020 return pyobj;
2021 }
2022
2023
2024 static int _wrap_FileSelectorDefaultWildcardStr_set(PyObject *_val) {
2025 PyErr_SetString(PyExc_TypeError,"Variable FileSelectorDefaultWildcardStr is read-only.");
2026 return 1;
2027 }
2028
2029
2030 static PyObject *_wrap_FileSelectorDefaultWildcardStr_get() {
2031 PyObject *pyobj;
2032
2033 {
2034 #if wxUSE_UNICODE
2035 pyobj = PyUnicode_FromWideChar((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len());
2036 #else
2037 pyobj = PyString_FromStringAndSize((&wxPyFileSelectorDefaultWildcardStr)->c_str(), (&wxPyFileSelectorDefaultWildcardStr)->Len());
2038 #endif
2039 }
2040 return pyobj;
2041 }
2042
2043
2044 static int _wrap_DirSelectorPromptStr_set(PyObject *_val) {
2045 PyErr_SetString(PyExc_TypeError,"Variable DirSelectorPromptStr is read-only.");
2046 return 1;
2047 }
2048
2049
2050 static PyObject *_wrap_DirSelectorPromptStr_get() {
2051 PyObject *pyobj;
2052
2053 {
2054 #if wxUSE_UNICODE
2055 pyobj = PyUnicode_FromWideChar((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len());
2056 #else
2057 pyobj = PyString_FromStringAndSize((&wxPyDirSelectorPromptStr)->c_str(), (&wxPyDirSelectorPromptStr)->Len());
2058 #endif
2059 }
2060 return pyobj;
2061 }
2062
2063
2064 static PyObject *_wrap_NewId(PyObject *self, PyObject *args, PyObject *kwargs) {
2065 PyObject *resultobj;
2066 long result;
2067 char *kwnames[] = {
2068 NULL
2069 };
2070
2071 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":NewId",kwnames)) goto fail;
2072 {
2073 PyThreadState* __tstate = wxPyBeginAllowThreads();
2074 result = (long)wxNewId();
2075
2076 wxPyEndAllowThreads(__tstate);
2077 if (PyErr_Occurred()) SWIG_fail;
2078 }
2079 resultobj = SWIG_FromLong((long)result);
2080 return resultobj;
2081 fail:
2082 return NULL;
2083 }
2084
2085
2086 static PyObject *_wrap_RegisterId(PyObject *self, PyObject *args, PyObject *kwargs) {
2087 PyObject *resultobj;
2088 long arg1 ;
2089 PyObject * obj0 = 0 ;
2090 char *kwnames[] = {
2091 (char *) "id", NULL
2092 };
2093
2094 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegisterId",kwnames,&obj0)) goto fail;
2095 arg1 = (long) SWIG_AsLong(obj0);
2096 if (PyErr_Occurred()) SWIG_fail;
2097 {
2098 PyThreadState* __tstate = wxPyBeginAllowThreads();
2099 wxRegisterId(arg1);
2100
2101 wxPyEndAllowThreads(__tstate);
2102 if (PyErr_Occurred()) SWIG_fail;
2103 }
2104 Py_INCREF(Py_None); resultobj = Py_None;
2105 return resultobj;
2106 fail:
2107 return NULL;
2108 }
2109
2110
2111 static PyObject *_wrap_GetCurrentId(PyObject *self, PyObject *args, PyObject *kwargs) {
2112 PyObject *resultobj;
2113 long result;
2114 char *kwnames[] = {
2115 NULL
2116 };
2117
2118 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetCurrentId",kwnames)) goto fail;
2119 {
2120 PyThreadState* __tstate = wxPyBeginAllowThreads();
2121 result = (long)wxGetCurrentId();
2122
2123 wxPyEndAllowThreads(__tstate);
2124 if (PyErr_Occurred()) SWIG_fail;
2125 }
2126 resultobj = SWIG_FromLong((long)result);
2127 return resultobj;
2128 fail:
2129 return NULL;
2130 }
2131
2132
2133 static PyObject *_wrap_Bell(PyObject *self, PyObject *args, PyObject *kwargs) {
2134 PyObject *resultobj;
2135 char *kwnames[] = {
2136 NULL
2137 };
2138
2139 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Bell",kwnames)) goto fail;
2140 {
2141 if (!wxPyCheckForApp()) SWIG_fail;
2142 PyThreadState* __tstate = wxPyBeginAllowThreads();
2143 wxBell();
2144
2145 wxPyEndAllowThreads(__tstate);
2146 if (PyErr_Occurred()) SWIG_fail;
2147 }
2148 Py_INCREF(Py_None); resultobj = Py_None;
2149 return resultobj;
2150 fail:
2151 return NULL;
2152 }
2153
2154
2155 static PyObject *_wrap_EndBusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
2156 PyObject *resultobj;
2157 char *kwnames[] = {
2158 NULL
2159 };
2160
2161 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":EndBusyCursor",kwnames)) goto fail;
2162 {
2163 if (!wxPyCheckForApp()) SWIG_fail;
2164 PyThreadState* __tstate = wxPyBeginAllowThreads();
2165 wxEndBusyCursor();
2166
2167 wxPyEndAllowThreads(__tstate);
2168 if (PyErr_Occurred()) SWIG_fail;
2169 }
2170 Py_INCREF(Py_None); resultobj = Py_None;
2171 return resultobj;
2172 fail:
2173 return NULL;
2174 }
2175
2176
2177 static PyObject *_wrap_GetElapsedTime(PyObject *self, PyObject *args, PyObject *kwargs) {
2178 PyObject *resultobj;
2179 bool arg1 = (bool) True ;
2180 long result;
2181 PyObject * obj0 = 0 ;
2182 char *kwnames[] = {
2183 (char *) "resetTimer", NULL
2184 };
2185
2186 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:GetElapsedTime",kwnames,&obj0)) goto fail;
2187 if (obj0) {
2188 arg1 = (bool) SWIG_AsBool(obj0);
2189 if (PyErr_Occurred()) SWIG_fail;
2190 }
2191 {
2192 PyThreadState* __tstate = wxPyBeginAllowThreads();
2193 result = (long)wxGetElapsedTime(arg1);
2194
2195 wxPyEndAllowThreads(__tstate);
2196 if (PyErr_Occurred()) SWIG_fail;
2197 }
2198 resultobj = SWIG_FromLong((long)result);
2199 return resultobj;
2200 fail:
2201 return NULL;
2202 }
2203
2204
2205 static PyObject *_wrap_GetMousePosition(PyObject *self, PyObject *args, PyObject *kwargs) {
2206 PyObject *resultobj;
2207 int *arg1 = (int *) 0 ;
2208 int *arg2 = (int *) 0 ;
2209 int temp1 ;
2210 int temp2 ;
2211 char *kwnames[] = {
2212 NULL
2213 };
2214
2215 arg1 = &temp1;
2216 arg2 = &temp2;
2217 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetMousePosition",kwnames)) goto fail;
2218 {
2219 if (!wxPyCheckForApp()) SWIG_fail;
2220 PyThreadState* __tstate = wxPyBeginAllowThreads();
2221 wxGetMousePosition(arg1,arg2);
2222
2223 wxPyEndAllowThreads(__tstate);
2224 if (PyErr_Occurred()) SWIG_fail;
2225 }
2226 Py_INCREF(Py_None); resultobj = Py_None;
2227 {
2228 PyObject *o = PyInt_FromLong((long) (*arg1));
2229 resultobj = t_output_helper(resultobj,o);
2230 }
2231 {
2232 PyObject *o = PyInt_FromLong((long) (*arg2));
2233 resultobj = t_output_helper(resultobj,o);
2234 }
2235 return resultobj;
2236 fail:
2237 return NULL;
2238 }
2239
2240
2241 static PyObject *_wrap_IsBusy(PyObject *self, PyObject *args, PyObject *kwargs) {
2242 PyObject *resultobj;
2243 bool result;
2244 char *kwnames[] = {
2245 NULL
2246 };
2247
2248 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":IsBusy",kwnames)) goto fail;
2249 {
2250 PyThreadState* __tstate = wxPyBeginAllowThreads();
2251 result = (bool)wxIsBusy();
2252
2253 wxPyEndAllowThreads(__tstate);
2254 if (PyErr_Occurred()) SWIG_fail;
2255 }
2256 {
2257 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2258 }
2259 return resultobj;
2260 fail:
2261 return NULL;
2262 }
2263
2264
2265 static PyObject *_wrap_Now(PyObject *self, PyObject *args, PyObject *kwargs) {
2266 PyObject *resultobj;
2267 wxString result;
2268 char *kwnames[] = {
2269 NULL
2270 };
2271
2272 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Now",kwnames)) goto fail;
2273 {
2274 PyThreadState* __tstate = wxPyBeginAllowThreads();
2275 result = wxNow();
2276
2277 wxPyEndAllowThreads(__tstate);
2278 if (PyErr_Occurred()) SWIG_fail;
2279 }
2280 {
2281 #if wxUSE_UNICODE
2282 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2283 #else
2284 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2285 #endif
2286 }
2287 return resultobj;
2288 fail:
2289 return NULL;
2290 }
2291
2292
2293 static PyObject *_wrap_Shell(PyObject *self, PyObject *args, PyObject *kwargs) {
2294 PyObject *resultobj;
2295 wxString const &arg1_defvalue = wxPyEmptyString ;
2296 wxString *arg1 = (wxString *) &arg1_defvalue ;
2297 bool result;
2298 bool temp1 = False ;
2299 PyObject * obj0 = 0 ;
2300 char *kwnames[] = {
2301 (char *) "command", NULL
2302 };
2303
2304 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Shell",kwnames,&obj0)) goto fail;
2305 if (obj0) {
2306 {
2307 arg1 = wxString_in_helper(obj0);
2308 if (arg1 == NULL) SWIG_fail;
2309 temp1 = True;
2310 }
2311 }
2312 {
2313 PyThreadState* __tstate = wxPyBeginAllowThreads();
2314 result = (bool)wxShell((wxString const &)*arg1);
2315
2316 wxPyEndAllowThreads(__tstate);
2317 if (PyErr_Occurred()) SWIG_fail;
2318 }
2319 {
2320 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2321 }
2322 {
2323 if (temp1)
2324 delete arg1;
2325 }
2326 return resultobj;
2327 fail:
2328 {
2329 if (temp1)
2330 delete arg1;
2331 }
2332 return NULL;
2333 }
2334
2335
2336 static PyObject *_wrap_StartTimer(PyObject *self, PyObject *args, PyObject *kwargs) {
2337 PyObject *resultobj;
2338 char *kwnames[] = {
2339 NULL
2340 };
2341
2342 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":StartTimer",kwnames)) goto fail;
2343 {
2344 PyThreadState* __tstate = wxPyBeginAllowThreads();
2345 wxStartTimer();
2346
2347 wxPyEndAllowThreads(__tstate);
2348 if (PyErr_Occurred()) SWIG_fail;
2349 }
2350 Py_INCREF(Py_None); resultobj = Py_None;
2351 return resultobj;
2352 fail:
2353 return NULL;
2354 }
2355
2356
2357 static PyObject *_wrap_GetOsVersion(PyObject *self, PyObject *args, PyObject *kwargs) {
2358 PyObject *resultobj;
2359 int *arg1 = (int *) 0 ;
2360 int *arg2 = (int *) 0 ;
2361 int result;
2362 int temp1 ;
2363 int temp2 ;
2364 char *kwnames[] = {
2365 NULL
2366 };
2367
2368 arg1 = &temp1;
2369 arg2 = &temp2;
2370 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetOsVersion",kwnames)) goto fail;
2371 {
2372 PyThreadState* __tstate = wxPyBeginAllowThreads();
2373 result = (int)wxGetOsVersion(arg1,arg2);
2374
2375 wxPyEndAllowThreads(__tstate);
2376 if (PyErr_Occurred()) SWIG_fail;
2377 }
2378 resultobj = SWIG_FromInt((int)result);
2379 {
2380 PyObject *o = PyInt_FromLong((long) (*arg1));
2381 resultobj = t_output_helper(resultobj,o);
2382 }
2383 {
2384 PyObject *o = PyInt_FromLong((long) (*arg2));
2385 resultobj = t_output_helper(resultobj,o);
2386 }
2387 return resultobj;
2388 fail:
2389 return NULL;
2390 }
2391
2392
2393 static PyObject *_wrap_GetOsDescription(PyObject *self, PyObject *args, PyObject *kwargs) {
2394 PyObject *resultobj;
2395 wxString result;
2396 char *kwnames[] = {
2397 NULL
2398 };
2399
2400 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetOsDescription",kwnames)) goto fail;
2401 {
2402 PyThreadState* __tstate = wxPyBeginAllowThreads();
2403 result = wxGetOsDescription();
2404
2405 wxPyEndAllowThreads(__tstate);
2406 if (PyErr_Occurred()) SWIG_fail;
2407 }
2408 {
2409 #if wxUSE_UNICODE
2410 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2411 #else
2412 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2413 #endif
2414 }
2415 return resultobj;
2416 fail:
2417 return NULL;
2418 }
2419
2420
2421 static PyObject *_wrap_GetFreeMemory(PyObject *self, PyObject *args, PyObject *kwargs) {
2422 PyObject *resultobj;
2423 long result;
2424 char *kwnames[] = {
2425 NULL
2426 };
2427
2428 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetFreeMemory",kwnames)) goto fail;
2429 {
2430 PyThreadState* __tstate = wxPyBeginAllowThreads();
2431 result = (long)wxGetFreeMemory();
2432
2433 wxPyEndAllowThreads(__tstate);
2434 if (PyErr_Occurred()) SWIG_fail;
2435 }
2436 resultobj = SWIG_FromLong((long)result);
2437 return resultobj;
2438 fail:
2439 return NULL;
2440 }
2441
2442
2443 static PyObject *_wrap_Shutdown(PyObject *self, PyObject *args, PyObject *kwargs) {
2444 PyObject *resultobj;
2445 int arg1 ;
2446 bool result;
2447 PyObject * obj0 = 0 ;
2448 char *kwnames[] = {
2449 (char *) "wFlags", NULL
2450 };
2451
2452 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Shutdown",kwnames,&obj0)) goto fail;
2453 arg1 = (wxShutdownFlags) SWIG_AsInt(obj0);
2454 if (PyErr_Occurred()) SWIG_fail;
2455 {
2456 if (!wxPyCheckForApp()) SWIG_fail;
2457 PyThreadState* __tstate = wxPyBeginAllowThreads();
2458 result = (bool)wxShutdown((wxShutdownFlags )arg1);
2459
2460 wxPyEndAllowThreads(__tstate);
2461 if (PyErr_Occurred()) SWIG_fail;
2462 }
2463 {
2464 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2465 }
2466 return resultobj;
2467 fail:
2468 return NULL;
2469 }
2470
2471
2472 static PyObject *_wrap_Sleep(PyObject *self, PyObject *args, PyObject *kwargs) {
2473 PyObject *resultobj;
2474 int arg1 ;
2475 PyObject * obj0 = 0 ;
2476 char *kwnames[] = {
2477 (char *) "secs", NULL
2478 };
2479
2480 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sleep",kwnames,&obj0)) goto fail;
2481 arg1 = (int) SWIG_AsInt(obj0);
2482 if (PyErr_Occurred()) SWIG_fail;
2483 {
2484 PyThreadState* __tstate = wxPyBeginAllowThreads();
2485 wxSleep(arg1);
2486
2487 wxPyEndAllowThreads(__tstate);
2488 if (PyErr_Occurred()) SWIG_fail;
2489 }
2490 Py_INCREF(Py_None); resultobj = Py_None;
2491 return resultobj;
2492 fail:
2493 return NULL;
2494 }
2495
2496
2497 static PyObject *_wrap_Usleep(PyObject *self, PyObject *args, PyObject *kwargs) {
2498 PyObject *resultobj;
2499 unsigned long arg1 ;
2500 PyObject * obj0 = 0 ;
2501 char *kwnames[] = {
2502 (char *) "milliseconds", NULL
2503 };
2504
2505 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Usleep",kwnames,&obj0)) goto fail;
2506 arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0);
2507 if (PyErr_Occurred()) SWIG_fail;
2508 {
2509 PyThreadState* __tstate = wxPyBeginAllowThreads();
2510 wxUsleep(arg1);
2511
2512 wxPyEndAllowThreads(__tstate);
2513 if (PyErr_Occurred()) SWIG_fail;
2514 }
2515 Py_INCREF(Py_None); resultobj = Py_None;
2516 return resultobj;
2517 fail:
2518 return NULL;
2519 }
2520
2521
2522 static PyObject *_wrap_EnableTopLevelWindows(PyObject *self, PyObject *args, PyObject *kwargs) {
2523 PyObject *resultobj;
2524 bool arg1 ;
2525 PyObject * obj0 = 0 ;
2526 char *kwnames[] = {
2527 (char *) "enable", NULL
2528 };
2529
2530 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EnableTopLevelWindows",kwnames,&obj0)) goto fail;
2531 arg1 = (bool) SWIG_AsBool(obj0);
2532 if (PyErr_Occurred()) SWIG_fail;
2533 {
2534 PyThreadState* __tstate = wxPyBeginAllowThreads();
2535 wxEnableTopLevelWindows(arg1);
2536
2537 wxPyEndAllowThreads(__tstate);
2538 if (PyErr_Occurred()) SWIG_fail;
2539 }
2540 Py_INCREF(Py_None); resultobj = Py_None;
2541 return resultobj;
2542 fail:
2543 return NULL;
2544 }
2545
2546
2547 static PyObject *_wrap_StripMenuCodes(PyObject *self, PyObject *args, PyObject *kwargs) {
2548 PyObject *resultobj;
2549 wxString *arg1 = 0 ;
2550 wxString result;
2551 bool temp1 = False ;
2552 PyObject * obj0 = 0 ;
2553 char *kwnames[] = {
2554 (char *) "in", NULL
2555 };
2556
2557 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StripMenuCodes",kwnames,&obj0)) goto fail;
2558 {
2559 arg1 = wxString_in_helper(obj0);
2560 if (arg1 == NULL) SWIG_fail;
2561 temp1 = True;
2562 }
2563 {
2564 PyThreadState* __tstate = wxPyBeginAllowThreads();
2565 result = wxStripMenuCodes((wxString const &)*arg1);
2566
2567 wxPyEndAllowThreads(__tstate);
2568 if (PyErr_Occurred()) SWIG_fail;
2569 }
2570 {
2571 #if wxUSE_UNICODE
2572 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2573 #else
2574 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2575 #endif
2576 }
2577 {
2578 if (temp1)
2579 delete arg1;
2580 }
2581 return resultobj;
2582 fail:
2583 {
2584 if (temp1)
2585 delete arg1;
2586 }
2587 return NULL;
2588 }
2589
2590
2591 static PyObject *_wrap_GetEmailAddress(PyObject *self, PyObject *args, PyObject *kwargs) {
2592 PyObject *resultobj;
2593 wxString result;
2594 char *kwnames[] = {
2595 NULL
2596 };
2597
2598 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetEmailAddress",kwnames)) goto fail;
2599 {
2600 PyThreadState* __tstate = wxPyBeginAllowThreads();
2601 result = wxGetEmailAddress();
2602
2603 wxPyEndAllowThreads(__tstate);
2604 if (PyErr_Occurred()) SWIG_fail;
2605 }
2606 {
2607 #if wxUSE_UNICODE
2608 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2609 #else
2610 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2611 #endif
2612 }
2613 return resultobj;
2614 fail:
2615 return NULL;
2616 }
2617
2618
2619 static PyObject *_wrap_GetHostName(PyObject *self, PyObject *args, PyObject *kwargs) {
2620 PyObject *resultobj;
2621 wxString result;
2622 char *kwnames[] = {
2623 NULL
2624 };
2625
2626 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetHostName",kwnames)) goto fail;
2627 {
2628 PyThreadState* __tstate = wxPyBeginAllowThreads();
2629 result = wxGetHostName();
2630
2631 wxPyEndAllowThreads(__tstate);
2632 if (PyErr_Occurred()) SWIG_fail;
2633 }
2634 {
2635 #if wxUSE_UNICODE
2636 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2637 #else
2638 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2639 #endif
2640 }
2641 return resultobj;
2642 fail:
2643 return NULL;
2644 }
2645
2646
2647 static PyObject *_wrap_GetFullHostName(PyObject *self, PyObject *args, PyObject *kwargs) {
2648 PyObject *resultobj;
2649 wxString result;
2650 char *kwnames[] = {
2651 NULL
2652 };
2653
2654 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetFullHostName",kwnames)) goto fail;
2655 {
2656 PyThreadState* __tstate = wxPyBeginAllowThreads();
2657 result = wxGetFullHostName();
2658
2659 wxPyEndAllowThreads(__tstate);
2660 if (PyErr_Occurred()) SWIG_fail;
2661 }
2662 {
2663 #if wxUSE_UNICODE
2664 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2665 #else
2666 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2667 #endif
2668 }
2669 return resultobj;
2670 fail:
2671 return NULL;
2672 }
2673
2674
2675 static PyObject *_wrap_GetUserId(PyObject *self, PyObject *args, PyObject *kwargs) {
2676 PyObject *resultobj;
2677 wxString result;
2678 char *kwnames[] = {
2679 NULL
2680 };
2681
2682 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUserId",kwnames)) goto fail;
2683 {
2684 PyThreadState* __tstate = wxPyBeginAllowThreads();
2685 result = wxGetUserId();
2686
2687 wxPyEndAllowThreads(__tstate);
2688 if (PyErr_Occurred()) SWIG_fail;
2689 }
2690 {
2691 #if wxUSE_UNICODE
2692 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2693 #else
2694 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2695 #endif
2696 }
2697 return resultobj;
2698 fail:
2699 return NULL;
2700 }
2701
2702
2703 static PyObject *_wrap_GetUserName(PyObject *self, PyObject *args, PyObject *kwargs) {
2704 PyObject *resultobj;
2705 wxString result;
2706 char *kwnames[] = {
2707 NULL
2708 };
2709
2710 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUserName",kwnames)) goto fail;
2711 {
2712 PyThreadState* __tstate = wxPyBeginAllowThreads();
2713 result = wxGetUserName();
2714
2715 wxPyEndAllowThreads(__tstate);
2716 if (PyErr_Occurred()) SWIG_fail;
2717 }
2718 {
2719 #if wxUSE_UNICODE
2720 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2721 #else
2722 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2723 #endif
2724 }
2725 return resultobj;
2726 fail:
2727 return NULL;
2728 }
2729
2730
2731 static PyObject *_wrap_GetHomeDir(PyObject *self, PyObject *args, PyObject *kwargs) {
2732 PyObject *resultobj;
2733 wxString result;
2734 char *kwnames[] = {
2735 NULL
2736 };
2737
2738 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetHomeDir",kwnames)) goto fail;
2739 {
2740 PyThreadState* __tstate = wxPyBeginAllowThreads();
2741 result = wxGetHomeDir();
2742
2743 wxPyEndAllowThreads(__tstate);
2744 if (PyErr_Occurred()) SWIG_fail;
2745 }
2746 {
2747 #if wxUSE_UNICODE
2748 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2749 #else
2750 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2751 #endif
2752 }
2753 return resultobj;
2754 fail:
2755 return NULL;
2756 }
2757
2758
2759 static PyObject *_wrap_GetUserHome(PyObject *self, PyObject *args, PyObject *kwargs) {
2760 PyObject *resultobj;
2761 wxString const &arg1_defvalue = wxPyEmptyString ;
2762 wxString *arg1 = (wxString *) &arg1_defvalue ;
2763 wxString result;
2764 bool temp1 = False ;
2765 PyObject * obj0 = 0 ;
2766 char *kwnames[] = {
2767 (char *) "user", NULL
2768 };
2769
2770 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:GetUserHome",kwnames,&obj0)) goto fail;
2771 if (obj0) {
2772 {
2773 arg1 = wxString_in_helper(obj0);
2774 if (arg1 == NULL) SWIG_fail;
2775 temp1 = True;
2776 }
2777 }
2778 {
2779 PyThreadState* __tstate = wxPyBeginAllowThreads();
2780 result = wxGetUserHome((wxString const &)*arg1);
2781
2782 wxPyEndAllowThreads(__tstate);
2783 if (PyErr_Occurred()) SWIG_fail;
2784 }
2785 {
2786 #if wxUSE_UNICODE
2787 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2788 #else
2789 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2790 #endif
2791 }
2792 {
2793 if (temp1)
2794 delete arg1;
2795 }
2796 return resultobj;
2797 fail:
2798 {
2799 if (temp1)
2800 delete arg1;
2801 }
2802 return NULL;
2803 }
2804
2805
2806 static PyObject *_wrap_GetProcessId(PyObject *self, PyObject *args, PyObject *kwargs) {
2807 PyObject *resultobj;
2808 unsigned long result;
2809 char *kwnames[] = {
2810 NULL
2811 };
2812
2813 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetProcessId",kwnames)) goto fail;
2814 {
2815 PyThreadState* __tstate = wxPyBeginAllowThreads();
2816 result = (unsigned long)wxGetProcessId();
2817
2818 wxPyEndAllowThreads(__tstate);
2819 if (PyErr_Occurred()) SWIG_fail;
2820 }
2821 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
2822 return resultobj;
2823 fail:
2824 return NULL;
2825 }
2826
2827
2828 static PyObject *_wrap_Trap(PyObject *self, PyObject *args, PyObject *kwargs) {
2829 PyObject *resultobj;
2830 char *kwnames[] = {
2831 NULL
2832 };
2833
2834 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Trap",kwnames)) goto fail;
2835 {
2836 PyThreadState* __tstate = wxPyBeginAllowThreads();
2837 wxTrap();
2838
2839 wxPyEndAllowThreads(__tstate);
2840 if (PyErr_Occurred()) SWIG_fail;
2841 }
2842 Py_INCREF(Py_None); resultobj = Py_None;
2843 return resultobj;
2844 fail:
2845 return NULL;
2846 }
2847
2848
2849 static PyObject *_wrap_FileSelector(PyObject *self, PyObject *args, PyObject *kwargs) {
2850 PyObject *resultobj;
2851 wxString const &arg1_defvalue = wxPyFileSelectorPromptStr ;
2852 wxString *arg1 = (wxString *) &arg1_defvalue ;
2853 wxString const &arg2_defvalue = wxPyEmptyString ;
2854 wxString *arg2 = (wxString *) &arg2_defvalue ;
2855 wxString const &arg3_defvalue = wxPyEmptyString ;
2856 wxString *arg3 = (wxString *) &arg3_defvalue ;
2857 wxString const &arg4_defvalue = wxPyEmptyString ;
2858 wxString *arg4 = (wxString *) &arg4_defvalue ;
2859 wxString const &arg5_defvalue = wxPyFileSelectorDefaultWildcardStr ;
2860 wxString *arg5 = (wxString *) &arg5_defvalue ;
2861 int arg6 = (int) 0 ;
2862 wxWindow *arg7 = (wxWindow *) NULL ;
2863 int arg8 = (int) -1 ;
2864 int arg9 = (int) -1 ;
2865 wxString result;
2866 bool temp1 = False ;
2867 bool temp2 = False ;
2868 bool temp3 = False ;
2869 bool temp4 = False ;
2870 bool temp5 = False ;
2871 PyObject * obj0 = 0 ;
2872 PyObject * obj1 = 0 ;
2873 PyObject * obj2 = 0 ;
2874 PyObject * obj3 = 0 ;
2875 PyObject * obj4 = 0 ;
2876 PyObject * obj5 = 0 ;
2877 PyObject * obj6 = 0 ;
2878 PyObject * obj7 = 0 ;
2879 PyObject * obj8 = 0 ;
2880 char *kwnames[] = {
2881 (char *) "message",(char *) "default_path",(char *) "default_filename",(char *) "default_extension",(char *) "wildcard",(char *) "flags",(char *) "parent",(char *) "x",(char *) "y", NULL
2882 };
2883
2884 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOOOOOO:FileSelector",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
2885 if (obj0) {
2886 {
2887 arg1 = wxString_in_helper(obj0);
2888 if (arg1 == NULL) SWIG_fail;
2889 temp1 = True;
2890 }
2891 }
2892 if (obj1) {
2893 {
2894 arg2 = wxString_in_helper(obj1);
2895 if (arg2 == NULL) SWIG_fail;
2896 temp2 = True;
2897 }
2898 }
2899 if (obj2) {
2900 {
2901 arg3 = wxString_in_helper(obj2);
2902 if (arg3 == NULL) SWIG_fail;
2903 temp3 = True;
2904 }
2905 }
2906 if (obj3) {
2907 {
2908 arg4 = wxString_in_helper(obj3);
2909 if (arg4 == NULL) SWIG_fail;
2910 temp4 = True;
2911 }
2912 }
2913 if (obj4) {
2914 {
2915 arg5 = wxString_in_helper(obj4);
2916 if (arg5 == NULL) SWIG_fail;
2917 temp5 = True;
2918 }
2919 }
2920 if (obj5) {
2921 arg6 = (int) SWIG_AsInt(obj5);
2922 if (PyErr_Occurred()) SWIG_fail;
2923 }
2924 if (obj6) {
2925 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxWindow,
2926 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2927 }
2928 if (obj7) {
2929 arg8 = (int) SWIG_AsInt(obj7);
2930 if (PyErr_Occurred()) SWIG_fail;
2931 }
2932 if (obj8) {
2933 arg9 = (int) SWIG_AsInt(obj8);
2934 if (PyErr_Occurred()) SWIG_fail;
2935 }
2936 {
2937 if (!wxPyCheckForApp()) SWIG_fail;
2938 PyThreadState* __tstate = wxPyBeginAllowThreads();
2939 result = wxFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxString const &)*arg5,arg6,arg7,arg8,arg9);
2940
2941 wxPyEndAllowThreads(__tstate);
2942 if (PyErr_Occurred()) SWIG_fail;
2943 }
2944 {
2945 #if wxUSE_UNICODE
2946 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
2947 #else
2948 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
2949 #endif
2950 }
2951 {
2952 if (temp1)
2953 delete arg1;
2954 }
2955 {
2956 if (temp2)
2957 delete arg2;
2958 }
2959 {
2960 if (temp3)
2961 delete arg3;
2962 }
2963 {
2964 if (temp4)
2965 delete arg4;
2966 }
2967 {
2968 if (temp5)
2969 delete arg5;
2970 }
2971 return resultobj;
2972 fail:
2973 {
2974 if (temp1)
2975 delete arg1;
2976 }
2977 {
2978 if (temp2)
2979 delete arg2;
2980 }
2981 {
2982 if (temp3)
2983 delete arg3;
2984 }
2985 {
2986 if (temp4)
2987 delete arg4;
2988 }
2989 {
2990 if (temp5)
2991 delete arg5;
2992 }
2993 return NULL;
2994 }
2995
2996
2997 static PyObject *_wrap_LoadFileSelector(PyObject *self, PyObject *args, PyObject *kwargs) {
2998 PyObject *resultobj;
2999 wxString *arg1 = 0 ;
3000 wxString *arg2 = 0 ;
3001 wxString const &arg3_defvalue = wxPyEmptyString ;
3002 wxString *arg3 = (wxString *) &arg3_defvalue ;
3003 wxWindow *arg4 = (wxWindow *) NULL ;
3004 wxString result;
3005 bool temp1 = False ;
3006 bool temp2 = False ;
3007 bool temp3 = False ;
3008 PyObject * obj0 = 0 ;
3009 PyObject * obj1 = 0 ;
3010 PyObject * obj2 = 0 ;
3011 PyObject * obj3 = 0 ;
3012 char *kwnames[] = {
3013 (char *) "what",(char *) "extension",(char *) "default_name",(char *) "parent", NULL
3014 };
3015
3016 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:LoadFileSelector",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3017 {
3018 arg1 = wxString_in_helper(obj0);
3019 if (arg1 == NULL) SWIG_fail;
3020 temp1 = True;
3021 }
3022 {
3023 arg2 = wxString_in_helper(obj1);
3024 if (arg2 == NULL) SWIG_fail;
3025 temp2 = True;
3026 }
3027 if (obj2) {
3028 {
3029 arg3 = wxString_in_helper(obj2);
3030 if (arg3 == NULL) SWIG_fail;
3031 temp3 = True;
3032 }
3033 }
3034 if (obj3) {
3035 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow,
3036 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3037 }
3038 {
3039 if (!wxPyCheckForApp()) SWIG_fail;
3040 PyThreadState* __tstate = wxPyBeginAllowThreads();
3041 result = wxLoadFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4);
3042
3043 wxPyEndAllowThreads(__tstate);
3044 if (PyErr_Occurred()) SWIG_fail;
3045 }
3046 {
3047 #if wxUSE_UNICODE
3048 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3049 #else
3050 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3051 #endif
3052 }
3053 {
3054 if (temp1)
3055 delete arg1;
3056 }
3057 {
3058 if (temp2)
3059 delete arg2;
3060 }
3061 {
3062 if (temp3)
3063 delete arg3;
3064 }
3065 return resultobj;
3066 fail:
3067 {
3068 if (temp1)
3069 delete arg1;
3070 }
3071 {
3072 if (temp2)
3073 delete arg2;
3074 }
3075 {
3076 if (temp3)
3077 delete arg3;
3078 }
3079 return NULL;
3080 }
3081
3082
3083 static PyObject *_wrap_SaveFileSelector(PyObject *self, PyObject *args, PyObject *kwargs) {
3084 PyObject *resultobj;
3085 wxString *arg1 = 0 ;
3086 wxString *arg2 = 0 ;
3087 wxString const &arg3_defvalue = wxPyEmptyString ;
3088 wxString *arg3 = (wxString *) &arg3_defvalue ;
3089 wxWindow *arg4 = (wxWindow *) NULL ;
3090 wxString result;
3091 bool temp1 = False ;
3092 bool temp2 = False ;
3093 bool temp3 = False ;
3094 PyObject * obj0 = 0 ;
3095 PyObject * obj1 = 0 ;
3096 PyObject * obj2 = 0 ;
3097 PyObject * obj3 = 0 ;
3098 char *kwnames[] = {
3099 (char *) "what",(char *) "extension",(char *) "default_name",(char *) "parent", NULL
3100 };
3101
3102 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:SaveFileSelector",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3103 {
3104 arg1 = wxString_in_helper(obj0);
3105 if (arg1 == NULL) SWIG_fail;
3106 temp1 = True;
3107 }
3108 {
3109 arg2 = wxString_in_helper(obj1);
3110 if (arg2 == NULL) SWIG_fail;
3111 temp2 = True;
3112 }
3113 if (obj2) {
3114 {
3115 arg3 = wxString_in_helper(obj2);
3116 if (arg3 == NULL) SWIG_fail;
3117 temp3 = True;
3118 }
3119 }
3120 if (obj3) {
3121 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow,
3122 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3123 }
3124 {
3125 if (!wxPyCheckForApp()) SWIG_fail;
3126 PyThreadState* __tstate = wxPyBeginAllowThreads();
3127 result = wxSaveFileSelector((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4);
3128
3129 wxPyEndAllowThreads(__tstate);
3130 if (PyErr_Occurred()) SWIG_fail;
3131 }
3132 {
3133 #if wxUSE_UNICODE
3134 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3135 #else
3136 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3137 #endif
3138 }
3139 {
3140 if (temp1)
3141 delete arg1;
3142 }
3143 {
3144 if (temp2)
3145 delete arg2;
3146 }
3147 {
3148 if (temp3)
3149 delete arg3;
3150 }
3151 return resultobj;
3152 fail:
3153 {
3154 if (temp1)
3155 delete arg1;
3156 }
3157 {
3158 if (temp2)
3159 delete arg2;
3160 }
3161 {
3162 if (temp3)
3163 delete arg3;
3164 }
3165 return NULL;
3166 }
3167
3168
3169 static PyObject *_wrap_DirSelector(PyObject *self, PyObject *args, PyObject *kwargs) {
3170 PyObject *resultobj;
3171 wxString const &arg1_defvalue = wxPyDirSelectorPromptStr ;
3172 wxString *arg1 = (wxString *) &arg1_defvalue ;
3173 wxString const &arg2_defvalue = wxPyEmptyString ;
3174 wxString *arg2 = (wxString *) &arg2_defvalue ;
3175 long arg3 = (long) wxDD_DEFAULT_STYLE ;
3176 wxPoint const &arg4_defvalue = wxDefaultPosition ;
3177 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
3178 wxWindow *arg5 = (wxWindow *) NULL ;
3179 wxString result;
3180 bool temp1 = False ;
3181 bool temp2 = False ;
3182 wxPoint temp4 ;
3183 PyObject * obj0 = 0 ;
3184 PyObject * obj1 = 0 ;
3185 PyObject * obj2 = 0 ;
3186 PyObject * obj3 = 0 ;
3187 PyObject * obj4 = 0 ;
3188 char *kwnames[] = {
3189 (char *) "message",(char *) "defaultPath",(char *) "style",(char *) "pos",(char *) "parent", NULL
3190 };
3191
3192 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:DirSelector",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
3193 if (obj0) {
3194 {
3195 arg1 = wxString_in_helper(obj0);
3196 if (arg1 == NULL) SWIG_fail;
3197 temp1 = True;
3198 }
3199 }
3200 if (obj1) {
3201 {
3202 arg2 = wxString_in_helper(obj1);
3203 if (arg2 == NULL) SWIG_fail;
3204 temp2 = True;
3205 }
3206 }
3207 if (obj2) {
3208 arg3 = (long) SWIG_AsLong(obj2);
3209 if (PyErr_Occurred()) SWIG_fail;
3210 }
3211 if (obj3) {
3212 {
3213 arg4 = &temp4;
3214 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
3215 }
3216 }
3217 if (obj4) {
3218 if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxWindow,
3219 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3220 }
3221 {
3222 if (!wxPyCheckForApp()) SWIG_fail;
3223 PyThreadState* __tstate = wxPyBeginAllowThreads();
3224 result = wxDirSelector((wxString const &)*arg1,(wxString const &)*arg2,arg3,(wxPoint const &)*arg4,arg5);
3225
3226 wxPyEndAllowThreads(__tstate);
3227 if (PyErr_Occurred()) SWIG_fail;
3228 }
3229 {
3230 #if wxUSE_UNICODE
3231 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3232 #else
3233 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3234 #endif
3235 }
3236 {
3237 if (temp1)
3238 delete arg1;
3239 }
3240 {
3241 if (temp2)
3242 delete arg2;
3243 }
3244 return resultobj;
3245 fail:
3246 {
3247 if (temp1)
3248 delete arg1;
3249 }
3250 {
3251 if (temp2)
3252 delete arg2;
3253 }
3254 return NULL;
3255 }
3256
3257
3258 static PyObject *_wrap_GetTextFromUser(PyObject *self, PyObject *args, PyObject *kwargs) {
3259 PyObject *resultobj;
3260 wxString *arg1 = 0 ;
3261 wxString const &arg2_defvalue = wxPyEmptyString ;
3262 wxString *arg2 = (wxString *) &arg2_defvalue ;
3263 wxString const &arg3_defvalue = wxPyEmptyString ;
3264 wxString *arg3 = (wxString *) &arg3_defvalue ;
3265 wxWindow *arg4 = (wxWindow *) NULL ;
3266 int arg5 = (int) -1 ;
3267 int arg6 = (int) -1 ;
3268 bool arg7 = (bool) True ;
3269 wxString result;
3270 bool temp1 = False ;
3271 bool temp2 = False ;
3272 bool temp3 = False ;
3273 PyObject * obj0 = 0 ;
3274 PyObject * obj1 = 0 ;
3275 PyObject * obj2 = 0 ;
3276 PyObject * obj3 = 0 ;
3277 PyObject * obj4 = 0 ;
3278 PyObject * obj5 = 0 ;
3279 PyObject * obj6 = 0 ;
3280 char *kwnames[] = {
3281 (char *) "message",(char *) "caption",(char *) "default_value",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre", NULL
3282 };
3283
3284 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GetTextFromUser",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
3285 {
3286 arg1 = wxString_in_helper(obj0);
3287 if (arg1 == NULL) SWIG_fail;
3288 temp1 = True;
3289 }
3290 if (obj1) {
3291 {
3292 arg2 = wxString_in_helper(obj1);
3293 if (arg2 == NULL) SWIG_fail;
3294 temp2 = True;
3295 }
3296 }
3297 if (obj2) {
3298 {
3299 arg3 = wxString_in_helper(obj2);
3300 if (arg3 == NULL) SWIG_fail;
3301 temp3 = True;
3302 }
3303 }
3304 if (obj3) {
3305 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow,
3306 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3307 }
3308 if (obj4) {
3309 arg5 = (int) SWIG_AsInt(obj4);
3310 if (PyErr_Occurred()) SWIG_fail;
3311 }
3312 if (obj5) {
3313 arg6 = (int) SWIG_AsInt(obj5);
3314 if (PyErr_Occurred()) SWIG_fail;
3315 }
3316 if (obj6) {
3317 arg7 = (bool) SWIG_AsBool(obj6);
3318 if (PyErr_Occurred()) SWIG_fail;
3319 }
3320 {
3321 if (!wxPyCheckForApp()) SWIG_fail;
3322 PyThreadState* __tstate = wxPyBeginAllowThreads();
3323 result = wxGetTextFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6,arg7);
3324
3325 wxPyEndAllowThreads(__tstate);
3326 if (PyErr_Occurred()) SWIG_fail;
3327 }
3328 {
3329 #if wxUSE_UNICODE
3330 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3331 #else
3332 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3333 #endif
3334 }
3335 {
3336 if (temp1)
3337 delete arg1;
3338 }
3339 {
3340 if (temp2)
3341 delete arg2;
3342 }
3343 {
3344 if (temp3)
3345 delete arg3;
3346 }
3347 return resultobj;
3348 fail:
3349 {
3350 if (temp1)
3351 delete arg1;
3352 }
3353 {
3354 if (temp2)
3355 delete arg2;
3356 }
3357 {
3358 if (temp3)
3359 delete arg3;
3360 }
3361 return NULL;
3362 }
3363
3364
3365 static PyObject *_wrap_GetPasswordFromUser(PyObject *self, PyObject *args, PyObject *kwargs) {
3366 PyObject *resultobj;
3367 wxString *arg1 = 0 ;
3368 wxString const &arg2_defvalue = wxPyEmptyString ;
3369 wxString *arg2 = (wxString *) &arg2_defvalue ;
3370 wxString const &arg3_defvalue = wxPyEmptyString ;
3371 wxString *arg3 = (wxString *) &arg3_defvalue ;
3372 wxWindow *arg4 = (wxWindow *) NULL ;
3373 wxString result;
3374 bool temp1 = False ;
3375 bool temp2 = False ;
3376 bool temp3 = False ;
3377 PyObject * obj0 = 0 ;
3378 PyObject * obj1 = 0 ;
3379 PyObject * obj2 = 0 ;
3380 PyObject * obj3 = 0 ;
3381 char *kwnames[] = {
3382 (char *) "message",(char *) "caption",(char *) "default_value",(char *) "parent", NULL
3383 };
3384
3385 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:GetPasswordFromUser",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3386 {
3387 arg1 = wxString_in_helper(obj0);
3388 if (arg1 == NULL) SWIG_fail;
3389 temp1 = True;
3390 }
3391 if (obj1) {
3392 {
3393 arg2 = wxString_in_helper(obj1);
3394 if (arg2 == NULL) SWIG_fail;
3395 temp2 = True;
3396 }
3397 }
3398 if (obj2) {
3399 {
3400 arg3 = wxString_in_helper(obj2);
3401 if (arg3 == NULL) SWIG_fail;
3402 temp3 = True;
3403 }
3404 }
3405 if (obj3) {
3406 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow,
3407 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3408 }
3409 {
3410 if (!wxPyCheckForApp()) SWIG_fail;
3411 PyThreadState* __tstate = wxPyBeginAllowThreads();
3412 result = wxGetPasswordFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4);
3413
3414 wxPyEndAllowThreads(__tstate);
3415 if (PyErr_Occurred()) SWIG_fail;
3416 }
3417 {
3418 #if wxUSE_UNICODE
3419 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3420 #else
3421 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3422 #endif
3423 }
3424 {
3425 if (temp1)
3426 delete arg1;
3427 }
3428 {
3429 if (temp2)
3430 delete arg2;
3431 }
3432 {
3433 if (temp3)
3434 delete arg3;
3435 }
3436 return resultobj;
3437 fail:
3438 {
3439 if (temp1)
3440 delete arg1;
3441 }
3442 {
3443 if (temp2)
3444 delete arg2;
3445 }
3446 {
3447 if (temp3)
3448 delete arg3;
3449 }
3450 return NULL;
3451 }
3452
3453
3454 static PyObject *_wrap_GetSingleChoice(PyObject *self, PyObject *args, PyObject *kwargs) {
3455 PyObject *resultobj;
3456 wxString *arg1 = 0 ;
3457 wxString *arg2 = 0 ;
3458 int arg3 ;
3459 wxString *arg4 = (wxString *) 0 ;
3460 wxWindow *arg5 = (wxWindow *) NULL ;
3461 int arg6 = (int) -1 ;
3462 int arg7 = (int) -1 ;
3463 bool arg8 = (bool) True ;
3464 int arg9 = (int) 150 ;
3465 int arg10 = (int) 200 ;
3466 wxString result;
3467 bool temp1 = False ;
3468 bool temp2 = False ;
3469 PyObject * obj0 = 0 ;
3470 PyObject * obj1 = 0 ;
3471 PyObject * obj2 = 0 ;
3472 PyObject * obj3 = 0 ;
3473 PyObject * obj4 = 0 ;
3474 PyObject * obj5 = 0 ;
3475 PyObject * obj6 = 0 ;
3476 PyObject * obj7 = 0 ;
3477 PyObject * obj8 = 0 ;
3478 char *kwnames[] = {
3479 (char *) "message",(char *) "caption",(char *) "choices",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre",(char *) "width",(char *) "height", NULL
3480 };
3481
3482 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:GetSingleChoice",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
3483 {
3484 arg1 = wxString_in_helper(obj0);
3485 if (arg1 == NULL) SWIG_fail;
3486 temp1 = True;
3487 }
3488 {
3489 arg2 = wxString_in_helper(obj1);
3490 if (arg2 == NULL) SWIG_fail;
3491 temp2 = True;
3492 }
3493 {
3494 arg3 = PyList_Size(obj2);
3495 arg4 = wxString_LIST_helper(obj2);
3496 if (arg4 == NULL) SWIG_fail;
3497 }
3498 if (obj3) {
3499 if ((SWIG_ConvertPtr(obj3,(void **)(&arg5),SWIGTYPE_p_wxWindow,
3500 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3501 }
3502 if (obj4) {
3503 arg6 = (int) SWIG_AsInt(obj4);
3504 if (PyErr_Occurred()) SWIG_fail;
3505 }
3506 if (obj5) {
3507 arg7 = (int) SWIG_AsInt(obj5);
3508 if (PyErr_Occurred()) SWIG_fail;
3509 }
3510 if (obj6) {
3511 arg8 = (bool) SWIG_AsBool(obj6);
3512 if (PyErr_Occurred()) SWIG_fail;
3513 }
3514 if (obj7) {
3515 arg9 = (int) SWIG_AsInt(obj7);
3516 if (PyErr_Occurred()) SWIG_fail;
3517 }
3518 if (obj8) {
3519 arg10 = (int) SWIG_AsInt(obj8);
3520 if (PyErr_Occurred()) SWIG_fail;
3521 }
3522 {
3523 if (!wxPyCheckForApp()) SWIG_fail;
3524 PyThreadState* __tstate = wxPyBeginAllowThreads();
3525 result = wxGetSingleChoice((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10);
3526
3527 wxPyEndAllowThreads(__tstate);
3528 if (PyErr_Occurred()) SWIG_fail;
3529 }
3530 {
3531 #if wxUSE_UNICODE
3532 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3533 #else
3534 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3535 #endif
3536 }
3537 {
3538 if (temp1)
3539 delete arg1;
3540 }
3541 {
3542 if (temp2)
3543 delete arg2;
3544 }
3545 {
3546 if (arg4) delete [] arg4;
3547 }
3548 return resultobj;
3549 fail:
3550 {
3551 if (temp1)
3552 delete arg1;
3553 }
3554 {
3555 if (temp2)
3556 delete arg2;
3557 }
3558 {
3559 if (arg4) delete [] arg4;
3560 }
3561 return NULL;
3562 }
3563
3564
3565 static PyObject *_wrap_GetSingleChoiceIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
3566 PyObject *resultobj;
3567 wxString *arg1 = 0 ;
3568 wxString *arg2 = 0 ;
3569 int arg3 ;
3570 wxString *arg4 = (wxString *) 0 ;
3571 wxWindow *arg5 = (wxWindow *) NULL ;
3572 int arg6 = (int) -1 ;
3573 int arg7 = (int) -1 ;
3574 bool arg8 = (bool) True ;
3575 int arg9 = (int) 150 ;
3576 int arg10 = (int) 200 ;
3577 int result;
3578 bool temp1 = False ;
3579 bool temp2 = False ;
3580 PyObject * obj0 = 0 ;
3581 PyObject * obj1 = 0 ;
3582 PyObject * obj2 = 0 ;
3583 PyObject * obj3 = 0 ;
3584 PyObject * obj4 = 0 ;
3585 PyObject * obj5 = 0 ;
3586 PyObject * obj6 = 0 ;
3587 PyObject * obj7 = 0 ;
3588 PyObject * obj8 = 0 ;
3589 char *kwnames[] = {
3590 (char *) "message",(char *) "caption",(char *) "choices",(char *) "parent",(char *) "x",(char *) "y",(char *) "centre",(char *) "width",(char *) "height", NULL
3591 };
3592
3593 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:GetSingleChoiceIndex",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
3594 {
3595 arg1 = wxString_in_helper(obj0);
3596 if (arg1 == NULL) SWIG_fail;
3597 temp1 = True;
3598 }
3599 {
3600 arg2 = wxString_in_helper(obj1);
3601 if (arg2 == NULL) SWIG_fail;
3602 temp2 = True;
3603 }
3604 {
3605 arg3 = PyList_Size(obj2);
3606 arg4 = wxString_LIST_helper(obj2);
3607 if (arg4 == NULL) SWIG_fail;
3608 }
3609 if (obj3) {
3610 if ((SWIG_ConvertPtr(obj3,(void **)(&arg5),SWIGTYPE_p_wxWindow,
3611 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3612 }
3613 if (obj4) {
3614 arg6 = (int) SWIG_AsInt(obj4);
3615 if (PyErr_Occurred()) SWIG_fail;
3616 }
3617 if (obj5) {
3618 arg7 = (int) SWIG_AsInt(obj5);
3619 if (PyErr_Occurred()) SWIG_fail;
3620 }
3621 if (obj6) {
3622 arg8 = (bool) SWIG_AsBool(obj6);
3623 if (PyErr_Occurred()) SWIG_fail;
3624 }
3625 if (obj7) {
3626 arg9 = (int) SWIG_AsInt(obj7);
3627 if (PyErr_Occurred()) SWIG_fail;
3628 }
3629 if (obj8) {
3630 arg10 = (int) SWIG_AsInt(obj8);
3631 if (PyErr_Occurred()) SWIG_fail;
3632 }
3633 {
3634 if (!wxPyCheckForApp()) SWIG_fail;
3635 PyThreadState* __tstate = wxPyBeginAllowThreads();
3636 result = (int)wxGetSingleChoiceIndex((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10);
3637
3638 wxPyEndAllowThreads(__tstate);
3639 if (PyErr_Occurred()) SWIG_fail;
3640 }
3641 resultobj = SWIG_FromInt((int)result);
3642 {
3643 if (temp1)
3644 delete arg1;
3645 }
3646 {
3647 if (temp2)
3648 delete arg2;
3649 }
3650 {
3651 if (arg4) delete [] arg4;
3652 }
3653 return resultobj;
3654 fail:
3655 {
3656 if (temp1)
3657 delete arg1;
3658 }
3659 {
3660 if (temp2)
3661 delete arg2;
3662 }
3663 {
3664 if (arg4) delete [] arg4;
3665 }
3666 return NULL;
3667 }
3668
3669
3670 static PyObject *_wrap_MessageBox(PyObject *self, PyObject *args, PyObject *kwargs) {
3671 PyObject *resultobj;
3672 wxString *arg1 = 0 ;
3673 wxString const &arg2_defvalue = wxPyEmptyString ;
3674 wxString *arg2 = (wxString *) &arg2_defvalue ;
3675 int arg3 = (int) wxOK|wxCENTRE ;
3676 wxWindow *arg4 = (wxWindow *) NULL ;
3677 int arg5 = (int) -1 ;
3678 int arg6 = (int) -1 ;
3679 int result;
3680 bool temp1 = False ;
3681 bool temp2 = False ;
3682 PyObject * obj0 = 0 ;
3683 PyObject * obj1 = 0 ;
3684 PyObject * obj2 = 0 ;
3685 PyObject * obj3 = 0 ;
3686 PyObject * obj4 = 0 ;
3687 PyObject * obj5 = 0 ;
3688 char *kwnames[] = {
3689 (char *) "message",(char *) "caption",(char *) "style",(char *) "parent",(char *) "x",(char *) "y", NULL
3690 };
3691
3692 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:MessageBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
3693 {
3694 arg1 = wxString_in_helper(obj0);
3695 if (arg1 == NULL) SWIG_fail;
3696 temp1 = True;
3697 }
3698 if (obj1) {
3699 {
3700 arg2 = wxString_in_helper(obj1);
3701 if (arg2 == NULL) SWIG_fail;
3702 temp2 = True;
3703 }
3704 }
3705 if (obj2) {
3706 arg3 = (int) SWIG_AsInt(obj2);
3707 if (PyErr_Occurred()) SWIG_fail;
3708 }
3709 if (obj3) {
3710 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow,
3711 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3712 }
3713 if (obj4) {
3714 arg5 = (int) SWIG_AsInt(obj4);
3715 if (PyErr_Occurred()) SWIG_fail;
3716 }
3717 if (obj5) {
3718 arg6 = (int) SWIG_AsInt(obj5);
3719 if (PyErr_Occurred()) SWIG_fail;
3720 }
3721 {
3722 if (!wxPyCheckForApp()) SWIG_fail;
3723 PyThreadState* __tstate = wxPyBeginAllowThreads();
3724 result = (int)wxMessageBox((wxString const &)*arg1,(wxString const &)*arg2,arg3,arg4,arg5,arg6);
3725
3726 wxPyEndAllowThreads(__tstate);
3727 if (PyErr_Occurred()) SWIG_fail;
3728 }
3729 resultobj = SWIG_FromInt((int)result);
3730 {
3731 if (temp1)
3732 delete arg1;
3733 }
3734 {
3735 if (temp2)
3736 delete arg2;
3737 }
3738 return resultobj;
3739 fail:
3740 {
3741 if (temp1)
3742 delete arg1;
3743 }
3744 {
3745 if (temp2)
3746 delete arg2;
3747 }
3748 return NULL;
3749 }
3750
3751
3752 static PyObject *_wrap_GetNumberFromUser(PyObject *self, PyObject *args, PyObject *kwargs) {
3753 PyObject *resultobj;
3754 wxString *arg1 = 0 ;
3755 wxString *arg2 = 0 ;
3756 wxString *arg3 = 0 ;
3757 long arg4 ;
3758 long arg5 = (long) 0 ;
3759 long arg6 = (long) 100 ;
3760 wxWindow *arg7 = (wxWindow *) NULL ;
3761 wxPoint const &arg8_defvalue = wxDefaultPosition ;
3762 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
3763 long result;
3764 bool temp1 = False ;
3765 bool temp2 = False ;
3766 bool temp3 = False ;
3767 wxPoint temp8 ;
3768 PyObject * obj0 = 0 ;
3769 PyObject * obj1 = 0 ;
3770 PyObject * obj2 = 0 ;
3771 PyObject * obj3 = 0 ;
3772 PyObject * obj4 = 0 ;
3773 PyObject * obj5 = 0 ;
3774 PyObject * obj6 = 0 ;
3775 PyObject * obj7 = 0 ;
3776 char *kwnames[] = {
3777 (char *) "message",(char *) "prompt",(char *) "caption",(char *) "value",(char *) "min",(char *) "max",(char *) "parent",(char *) "pos", NULL
3778 };
3779
3780 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:GetNumberFromUser",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
3781 {
3782 arg1 = wxString_in_helper(obj0);
3783 if (arg1 == NULL) SWIG_fail;
3784 temp1 = True;
3785 }
3786 {
3787 arg2 = wxString_in_helper(obj1);
3788 if (arg2 == NULL) SWIG_fail;
3789 temp2 = True;
3790 }
3791 {
3792 arg3 = wxString_in_helper(obj2);
3793 if (arg3 == NULL) SWIG_fail;
3794 temp3 = True;
3795 }
3796 arg4 = (long) SWIG_AsLong(obj3);
3797 if (PyErr_Occurred()) SWIG_fail;
3798 if (obj4) {
3799 arg5 = (long) SWIG_AsLong(obj4);
3800 if (PyErr_Occurred()) SWIG_fail;
3801 }
3802 if (obj5) {
3803 arg6 = (long) SWIG_AsLong(obj5);
3804 if (PyErr_Occurred()) SWIG_fail;
3805 }
3806 if (obj6) {
3807 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxWindow,
3808 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3809 }
3810 if (obj7) {
3811 {
3812 arg8 = &temp8;
3813 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
3814 }
3815 }
3816 {
3817 if (!wxPyCheckForApp()) SWIG_fail;
3818 PyThreadState* __tstate = wxPyBeginAllowThreads();
3819 result = (long)wxGetNumberFromUser((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6,arg7,(wxPoint const &)*arg8);
3820
3821 wxPyEndAllowThreads(__tstate);
3822 if (PyErr_Occurred()) SWIG_fail;
3823 }
3824 resultobj = SWIG_FromLong((long)result);
3825 {
3826 if (temp1)
3827 delete arg1;
3828 }
3829 {
3830 if (temp2)
3831 delete arg2;
3832 }
3833 {
3834 if (temp3)
3835 delete arg3;
3836 }
3837 return resultobj;
3838 fail:
3839 {
3840 if (temp1)
3841 delete arg1;
3842 }
3843 {
3844 if (temp2)
3845 delete arg2;
3846 }
3847 {
3848 if (temp3)
3849 delete arg3;
3850 }
3851 return NULL;
3852 }
3853
3854
3855 static PyObject *_wrap_ColourDisplay(PyObject *self, PyObject *args, PyObject *kwargs) {
3856 PyObject *resultobj;
3857 bool result;
3858 char *kwnames[] = {
3859 NULL
3860 };
3861
3862 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ColourDisplay",kwnames)) goto fail;
3863 {
3864 if (!wxPyCheckForApp()) SWIG_fail;
3865 PyThreadState* __tstate = wxPyBeginAllowThreads();
3866 result = (bool)wxColourDisplay();
3867
3868 wxPyEndAllowThreads(__tstate);
3869 if (PyErr_Occurred()) SWIG_fail;
3870 }
3871 {
3872 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3873 }
3874 return resultobj;
3875 fail:
3876 return NULL;
3877 }
3878
3879
3880 static PyObject *_wrap_DisplayDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3881 PyObject *resultobj;
3882 int result;
3883 char *kwnames[] = {
3884 NULL
3885 };
3886
3887 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplayDepth",kwnames)) goto fail;
3888 {
3889 if (!wxPyCheckForApp()) SWIG_fail;
3890 PyThreadState* __tstate = wxPyBeginAllowThreads();
3891 result = (int)wxDisplayDepth();
3892
3893 wxPyEndAllowThreads(__tstate);
3894 if (PyErr_Occurred()) SWIG_fail;
3895 }
3896 resultobj = SWIG_FromInt((int)result);
3897 return resultobj;
3898 fail:
3899 return NULL;
3900 }
3901
3902
3903 static PyObject *_wrap_GetDisplayDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3904 PyObject *resultobj;
3905 int result;
3906 char *kwnames[] = {
3907 NULL
3908 };
3909
3910 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplayDepth",kwnames)) goto fail;
3911 {
3912 if (!wxPyCheckForApp()) SWIG_fail;
3913 PyThreadState* __tstate = wxPyBeginAllowThreads();
3914 result = (int)wxGetDisplayDepth();
3915
3916 wxPyEndAllowThreads(__tstate);
3917 if (PyErr_Occurred()) SWIG_fail;
3918 }
3919 resultobj = SWIG_FromInt((int)result);
3920 return resultobj;
3921 fail:
3922 return NULL;
3923 }
3924
3925
3926 static PyObject *_wrap_DisplaySize(PyObject *self, PyObject *args, PyObject *kwargs) {
3927 PyObject *resultobj;
3928 int *arg1 = (int *) 0 ;
3929 int *arg2 = (int *) 0 ;
3930 int temp1 ;
3931 int temp2 ;
3932 char *kwnames[] = {
3933 NULL
3934 };
3935
3936 arg1 = &temp1;
3937 arg2 = &temp2;
3938 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplaySize",kwnames)) goto fail;
3939 {
3940 if (!wxPyCheckForApp()) SWIG_fail;
3941 PyThreadState* __tstate = wxPyBeginAllowThreads();
3942 wxDisplaySize(arg1,arg2);
3943
3944 wxPyEndAllowThreads(__tstate);
3945 if (PyErr_Occurred()) SWIG_fail;
3946 }
3947 Py_INCREF(Py_None); resultobj = Py_None;
3948 {
3949 PyObject *o = PyInt_FromLong((long) (*arg1));
3950 resultobj = t_output_helper(resultobj,o);
3951 }
3952 {
3953 PyObject *o = PyInt_FromLong((long) (*arg2));
3954 resultobj = t_output_helper(resultobj,o);
3955 }
3956 return resultobj;
3957 fail:
3958 return NULL;
3959 }
3960
3961
3962 static PyObject *_wrap_GetDisplaySize(PyObject *self, PyObject *args, PyObject *kwargs) {
3963 PyObject *resultobj;
3964 wxSize result;
3965 char *kwnames[] = {
3966 NULL
3967 };
3968
3969 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplaySize",kwnames)) goto fail;
3970 {
3971 if (!wxPyCheckForApp()) SWIG_fail;
3972 PyThreadState* __tstate = wxPyBeginAllowThreads();
3973 result = wxGetDisplaySize();
3974
3975 wxPyEndAllowThreads(__tstate);
3976 if (PyErr_Occurred()) SWIG_fail;
3977 }
3978 {
3979 wxSize * resultptr;
3980 resultptr = new wxSize((wxSize &) result);
3981 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
3982 }
3983 return resultobj;
3984 fail:
3985 return NULL;
3986 }
3987
3988
3989 static PyObject *_wrap_DisplaySizeMM(PyObject *self, PyObject *args, PyObject *kwargs) {
3990 PyObject *resultobj;
3991 int *arg1 = (int *) 0 ;
3992 int *arg2 = (int *) 0 ;
3993 int temp1 ;
3994 int temp2 ;
3995 char *kwnames[] = {
3996 NULL
3997 };
3998
3999 arg1 = &temp1;
4000 arg2 = &temp2;
4001 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DisplaySizeMM",kwnames)) goto fail;
4002 {
4003 if (!wxPyCheckForApp()) SWIG_fail;
4004 PyThreadState* __tstate = wxPyBeginAllowThreads();
4005 wxDisplaySizeMM(arg1,arg2);
4006
4007 wxPyEndAllowThreads(__tstate);
4008 if (PyErr_Occurred()) SWIG_fail;
4009 }
4010 Py_INCREF(Py_None); resultobj = Py_None;
4011 {
4012 PyObject *o = PyInt_FromLong((long) (*arg1));
4013 resultobj = t_output_helper(resultobj,o);
4014 }
4015 {
4016 PyObject *o = PyInt_FromLong((long) (*arg2));
4017 resultobj = t_output_helper(resultobj,o);
4018 }
4019 return resultobj;
4020 fail:
4021 return NULL;
4022 }
4023
4024
4025 static PyObject *_wrap_GetDisplaySizeMM(PyObject *self, PyObject *args, PyObject *kwargs) {
4026 PyObject *resultobj;
4027 wxSize result;
4028 char *kwnames[] = {
4029 NULL
4030 };
4031
4032 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetDisplaySizeMM",kwnames)) goto fail;
4033 {
4034 if (!wxPyCheckForApp()) SWIG_fail;
4035 PyThreadState* __tstate = wxPyBeginAllowThreads();
4036 result = wxGetDisplaySizeMM();
4037
4038 wxPyEndAllowThreads(__tstate);
4039 if (PyErr_Occurred()) SWIG_fail;
4040 }
4041 {
4042 wxSize * resultptr;
4043 resultptr = new wxSize((wxSize &) result);
4044 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
4045 }
4046 return resultobj;
4047 fail:
4048 return NULL;
4049 }
4050
4051
4052 static PyObject *_wrap_ClientDisplayRect(PyObject *self, PyObject *args, PyObject *kwargs) {
4053 PyObject *resultobj;
4054 int *arg1 = (int *) 0 ;
4055 int *arg2 = (int *) 0 ;
4056 int *arg3 = (int *) 0 ;
4057 int *arg4 = (int *) 0 ;
4058 int temp1 ;
4059 int temp2 ;
4060 int temp3 ;
4061 int temp4 ;
4062 char *kwnames[] = {
4063 NULL
4064 };
4065
4066 arg1 = &temp1;
4067 arg2 = &temp2;
4068 arg3 = &temp3;
4069 arg4 = &temp4;
4070 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ClientDisplayRect",kwnames)) goto fail;
4071 {
4072 if (!wxPyCheckForApp()) SWIG_fail;
4073 PyThreadState* __tstate = wxPyBeginAllowThreads();
4074 wxClientDisplayRect(arg1,arg2,arg3,arg4);
4075
4076 wxPyEndAllowThreads(__tstate);
4077 if (PyErr_Occurred()) SWIG_fail;
4078 }
4079 Py_INCREF(Py_None); resultobj = Py_None;
4080 {
4081 PyObject *o = PyInt_FromLong((long) (*arg1));
4082 resultobj = t_output_helper(resultobj,o);
4083 }
4084 {
4085 PyObject *o = PyInt_FromLong((long) (*arg2));
4086 resultobj = t_output_helper(resultobj,o);
4087 }
4088 {
4089 PyObject *o = PyInt_FromLong((long) (*arg3));
4090 resultobj = t_output_helper(resultobj,o);
4091 }
4092 {
4093 PyObject *o = PyInt_FromLong((long) (*arg4));
4094 resultobj = t_output_helper(resultobj,o);
4095 }
4096 return resultobj;
4097 fail:
4098 return NULL;
4099 }
4100
4101
4102 static PyObject *_wrap_GetClientDisplayRect(PyObject *self, PyObject *args, PyObject *kwargs) {
4103 PyObject *resultobj;
4104 wxRect result;
4105 char *kwnames[] = {
4106 NULL
4107 };
4108
4109 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetClientDisplayRect",kwnames)) goto fail;
4110 {
4111 if (!wxPyCheckForApp()) SWIG_fail;
4112 PyThreadState* __tstate = wxPyBeginAllowThreads();
4113 result = wxGetClientDisplayRect();
4114
4115 wxPyEndAllowThreads(__tstate);
4116 if (PyErr_Occurred()) SWIG_fail;
4117 }
4118 {
4119 wxRect * resultptr;
4120 resultptr = new wxRect((wxRect &) result);
4121 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
4122 }
4123 return resultobj;
4124 fail:
4125 return NULL;
4126 }
4127
4128
4129 static PyObject *_wrap_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
4130 PyObject *resultobj;
4131 wxCursor *arg1 = 0 ;
4132 PyObject * obj0 = 0 ;
4133 char *kwnames[] = {
4134 (char *) "cursor", NULL
4135 };
4136
4137 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetCursor",kwnames,&obj0)) goto fail;
4138 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
4139 SWIG_POINTER_EXCEPTION | 0)) == -1)
4140 SWIG_fail;
4141 if (arg1 == NULL) {
4142 PyErr_SetString(PyExc_TypeError,"null reference");
4143 SWIG_fail;
4144 }
4145 {
4146 if (!wxPyCheckForApp()) SWIG_fail;
4147 PyThreadState* __tstate = wxPyBeginAllowThreads();
4148 wxSetCursor(*arg1);
4149
4150 wxPyEndAllowThreads(__tstate);
4151 if (PyErr_Occurred()) SWIG_fail;
4152 }
4153 Py_INCREF(Py_None); resultobj = Py_None;
4154 return resultobj;
4155 fail:
4156 return NULL;
4157 }
4158
4159
4160 static PyObject *_wrap_BeginBusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
4161 PyObject *resultobj;
4162 wxCursor *arg1 = (wxCursor *) wxHOURGLASS_CURSOR ;
4163 PyObject * obj0 = 0 ;
4164 char *kwnames[] = {
4165 (char *) "cursor", NULL
4166 };
4167
4168 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:BeginBusyCursor",kwnames,&obj0)) goto fail;
4169 if (obj0) {
4170 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
4171 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4172 }
4173 {
4174 if (!wxPyCheckForApp()) SWIG_fail;
4175 PyThreadState* __tstate = wxPyBeginAllowThreads();
4176 wxBeginBusyCursor(arg1);
4177
4178 wxPyEndAllowThreads(__tstate);
4179 if (PyErr_Occurred()) SWIG_fail;
4180 }
4181 Py_INCREF(Py_None); resultobj = Py_None;
4182 return resultobj;
4183 fail:
4184 return NULL;
4185 }
4186
4187
4188 static PyObject *_wrap_GetActiveWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
4189 PyObject *resultobj;
4190 wxWindow *result;
4191 char *kwnames[] = {
4192 NULL
4193 };
4194
4195 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetActiveWindow",kwnames)) goto fail;
4196 {
4197 if (!wxPyCheckForApp()) SWIG_fail;
4198 PyThreadState* __tstate = wxPyBeginAllowThreads();
4199 result = (wxWindow *)wxGetActiveWindow();
4200
4201 wxPyEndAllowThreads(__tstate);
4202 if (PyErr_Occurred()) SWIG_fail;
4203 }
4204 {
4205 resultobj = wxPyMake_wxObject(result);
4206 }
4207 return resultobj;
4208 fail:
4209 return NULL;
4210 }
4211
4212
4213 static PyObject *_wrap_GenericFindWindowAtPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
4214 PyObject *resultobj;
4215 wxPoint *arg1 = 0 ;
4216 wxWindow *result;
4217 wxPoint temp1 ;
4218 PyObject * obj0 = 0 ;
4219 char *kwnames[] = {
4220 (char *) "pt", NULL
4221 };
4222
4223 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericFindWindowAtPoint",kwnames,&obj0)) goto fail;
4224 {
4225 arg1 = &temp1;
4226 if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail;
4227 }
4228 {
4229 if (!wxPyCheckForApp()) SWIG_fail;
4230 PyThreadState* __tstate = wxPyBeginAllowThreads();
4231 result = (wxWindow *)wxGenericFindWindowAtPoint((wxPoint const &)*arg1);
4232
4233 wxPyEndAllowThreads(__tstate);
4234 if (PyErr_Occurred()) SWIG_fail;
4235 }
4236 {
4237 resultobj = wxPyMake_wxObject(result);
4238 }
4239 return resultobj;
4240 fail:
4241 return NULL;
4242 }
4243
4244
4245 static PyObject *_wrap_FindWindowAtPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
4246 PyObject *resultobj;
4247 wxPoint *arg1 = 0 ;
4248 wxWindow *result;
4249 wxPoint temp1 ;
4250 PyObject * obj0 = 0 ;
4251 char *kwnames[] = {
4252 (char *) "pt", NULL
4253 };
4254
4255 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FindWindowAtPoint",kwnames,&obj0)) goto fail;
4256 {
4257 arg1 = &temp1;
4258 if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail;
4259 }
4260 {
4261 if (!wxPyCheckForApp()) SWIG_fail;
4262 PyThreadState* __tstate = wxPyBeginAllowThreads();
4263 result = (wxWindow *)wxFindWindowAtPoint((wxPoint const &)*arg1);
4264
4265 wxPyEndAllowThreads(__tstate);
4266 if (PyErr_Occurred()) SWIG_fail;
4267 }
4268 {
4269 resultobj = wxPyMake_wxObject(result);
4270 }
4271 return resultobj;
4272 fail:
4273 return NULL;
4274 }
4275
4276
4277 static PyObject *_wrap_GetTopLevelParent(PyObject *self, PyObject *args, PyObject *kwargs) {
4278 PyObject *resultobj;
4279 wxWindow *arg1 = (wxWindow *) 0 ;
4280 wxWindow *result;
4281 PyObject * obj0 = 0 ;
4282 char *kwnames[] = {
4283 (char *) "win", NULL
4284 };
4285
4286 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetTopLevelParent",kwnames,&obj0)) goto fail;
4287 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
4288 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4289 {
4290 if (!wxPyCheckForApp()) SWIG_fail;
4291 PyThreadState* __tstate = wxPyBeginAllowThreads();
4292 result = (wxWindow *)wxGetTopLevelParent(arg1);
4293
4294 wxPyEndAllowThreads(__tstate);
4295 if (PyErr_Occurred()) SWIG_fail;
4296 }
4297 {
4298 resultobj = wxPyMake_wxObject(result);
4299 }
4300 return resultobj;
4301 fail:
4302 return NULL;
4303 }
4304
4305
4306 static PyObject *_wrap_GetKeyState(PyObject *self, PyObject *args, PyObject *kwargs) {
4307 PyObject *resultobj;
4308 int arg1 ;
4309 bool result;
4310 PyObject * obj0 = 0 ;
4311 char *kwnames[] = {
4312 (char *) "key", NULL
4313 };
4314
4315 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetKeyState",kwnames,&obj0)) goto fail;
4316 arg1 = (wxKeyCode) SWIG_AsInt(obj0);
4317 if (PyErr_Occurred()) SWIG_fail;
4318 {
4319 if (!wxPyCheckForApp()) SWIG_fail;
4320 PyThreadState* __tstate = wxPyBeginAllowThreads();
4321 result = (bool)wxGetKeyState((wxKeyCode )arg1);
4322
4323 wxPyEndAllowThreads(__tstate);
4324 if (PyErr_Occurred()) SWIG_fail;
4325 }
4326 {
4327 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4328 }
4329 return resultobj;
4330 fail:
4331 return NULL;
4332 }
4333
4334
4335 static PyObject *_wrap_WakeUpMainThread(PyObject *self, PyObject *args, PyObject *kwargs) {
4336 PyObject *resultobj;
4337 char *kwnames[] = {
4338 NULL
4339 };
4340
4341 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":WakeUpMainThread",kwnames)) goto fail;
4342 {
4343 if (!wxPyCheckForApp()) SWIG_fail;
4344 PyThreadState* __tstate = wxPyBeginAllowThreads();
4345 wxWakeUpMainThread();
4346
4347 wxPyEndAllowThreads(__tstate);
4348 if (PyErr_Occurred()) SWIG_fail;
4349 }
4350 Py_INCREF(Py_None); resultobj = Py_None;
4351 return resultobj;
4352 fail:
4353 return NULL;
4354 }
4355
4356
4357 static PyObject *_wrap_MutexGuiEnter(PyObject *self, PyObject *args, PyObject *kwargs) {
4358 PyObject *resultobj;
4359 char *kwnames[] = {
4360 NULL
4361 };
4362
4363 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MutexGuiEnter",kwnames)) goto fail;
4364 {
4365 if (!wxPyCheckForApp()) SWIG_fail;
4366 PyThreadState* __tstate = wxPyBeginAllowThreads();
4367 wxMutexGuiEnter();
4368
4369 wxPyEndAllowThreads(__tstate);
4370 if (PyErr_Occurred()) SWIG_fail;
4371 }
4372 Py_INCREF(Py_None); resultobj = Py_None;
4373 return resultobj;
4374 fail:
4375 return NULL;
4376 }
4377
4378
4379 static PyObject *_wrap_MutexGuiLeave(PyObject *self, PyObject *args, PyObject *kwargs) {
4380 PyObject *resultobj;
4381 char *kwnames[] = {
4382 NULL
4383 };
4384
4385 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":MutexGuiLeave",kwnames)) goto fail;
4386 {
4387 if (!wxPyCheckForApp()) SWIG_fail;
4388 PyThreadState* __tstate = wxPyBeginAllowThreads();
4389 wxMutexGuiLeave();
4390
4391 wxPyEndAllowThreads(__tstate);
4392 if (PyErr_Occurred()) SWIG_fail;
4393 }
4394 Py_INCREF(Py_None); resultobj = Py_None;
4395 return resultobj;
4396 fail:
4397 return NULL;
4398 }
4399
4400
4401 static PyObject *_wrap_new_MutexGuiLocker(PyObject *self, PyObject *args, PyObject *kwargs) {
4402 PyObject *resultobj;
4403 wxMutexGuiLocker *result;
4404 char *kwnames[] = {
4405 NULL
4406 };
4407
4408 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MutexGuiLocker",kwnames)) goto fail;
4409 {
4410 if (!wxPyCheckForApp()) SWIG_fail;
4411 PyThreadState* __tstate = wxPyBeginAllowThreads();
4412 result = (wxMutexGuiLocker *)new wxMutexGuiLocker();
4413
4414 wxPyEndAllowThreads(__tstate);
4415 if (PyErr_Occurred()) SWIG_fail;
4416 }
4417 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMutexGuiLocker, 1);
4418 return resultobj;
4419 fail:
4420 return NULL;
4421 }
4422
4423
4424 static PyObject *_wrap_delete_MutexGuiLocker(PyObject *self, PyObject *args, PyObject *kwargs) {
4425 PyObject *resultobj;
4426 wxMutexGuiLocker *arg1 = (wxMutexGuiLocker *) 0 ;
4427 PyObject * obj0 = 0 ;
4428 char *kwnames[] = {
4429 (char *) "self", NULL
4430 };
4431
4432 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MutexGuiLocker",kwnames,&obj0)) goto fail;
4433 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMutexGuiLocker,
4434 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4435 {
4436 PyThreadState* __tstate = wxPyBeginAllowThreads();
4437 delete arg1;
4438
4439 wxPyEndAllowThreads(__tstate);
4440 if (PyErr_Occurred()) SWIG_fail;
4441 }
4442 Py_INCREF(Py_None); resultobj = Py_None;
4443 return resultobj;
4444 fail:
4445 return NULL;
4446 }
4447
4448
4449 static PyObject * MutexGuiLocker_swigregister(PyObject *self, PyObject *args) {
4450 PyObject *obj;
4451 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4452 SWIG_TypeClientData(SWIGTYPE_p_wxMutexGuiLocker, obj);
4453 Py_INCREF(obj);
4454 return Py_BuildValue((char *)"");
4455 }
4456 static PyObject *_wrap_Thread_IsMain(PyObject *self, PyObject *args, PyObject *kwargs) {
4457 PyObject *resultobj;
4458 bool result;
4459 char *kwnames[] = {
4460 NULL
4461 };
4462
4463 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Thread_IsMain",kwnames)) goto fail;
4464 {
4465 PyThreadState* __tstate = wxPyBeginAllowThreads();
4466 result = (bool)wxThread_IsMain();
4467
4468 wxPyEndAllowThreads(__tstate);
4469 if (PyErr_Occurred()) SWIG_fail;
4470 }
4471 {
4472 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4473 }
4474 return resultobj;
4475 fail:
4476 return NULL;
4477 }
4478
4479
4480 static PyObject *_wrap_new_ToolTip(PyObject *self, PyObject *args, PyObject *kwargs) {
4481 PyObject *resultobj;
4482 wxString *arg1 = 0 ;
4483 wxToolTip *result;
4484 bool temp1 = False ;
4485 PyObject * obj0 = 0 ;
4486 char *kwnames[] = {
4487 (char *) "tip", NULL
4488 };
4489
4490 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ToolTip",kwnames,&obj0)) goto fail;
4491 {
4492 arg1 = wxString_in_helper(obj0);
4493 if (arg1 == NULL) SWIG_fail;
4494 temp1 = True;
4495 }
4496 {
4497 if (!wxPyCheckForApp()) SWIG_fail;
4498 PyThreadState* __tstate = wxPyBeginAllowThreads();
4499 result = (wxToolTip *)new wxToolTip((wxString const &)*arg1);
4500
4501 wxPyEndAllowThreads(__tstate);
4502 if (PyErr_Occurred()) SWIG_fail;
4503 }
4504 {
4505 resultobj = wxPyMake_wxObject(result);
4506 }
4507 {
4508 if (temp1)
4509 delete arg1;
4510 }
4511 return resultobj;
4512 fail:
4513 {
4514 if (temp1)
4515 delete arg1;
4516 }
4517 return NULL;
4518 }
4519
4520
4521 static PyObject *_wrap_ToolTip_SetTip(PyObject *self, PyObject *args, PyObject *kwargs) {
4522 PyObject *resultobj;
4523 wxToolTip *arg1 = (wxToolTip *) 0 ;
4524 wxString *arg2 = 0 ;
4525 bool temp2 = False ;
4526 PyObject * obj0 = 0 ;
4527 PyObject * obj1 = 0 ;
4528 char *kwnames[] = {
4529 (char *) "self",(char *) "tip", NULL
4530 };
4531
4532 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolTip_SetTip",kwnames,&obj0,&obj1)) goto fail;
4533 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolTip,
4534 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4535 {
4536 arg2 = wxString_in_helper(obj1);
4537 if (arg2 == NULL) SWIG_fail;
4538 temp2 = True;
4539 }
4540 {
4541 PyThreadState* __tstate = wxPyBeginAllowThreads();
4542 (arg1)->SetTip((wxString const &)*arg2);
4543
4544 wxPyEndAllowThreads(__tstate);
4545 if (PyErr_Occurred()) SWIG_fail;
4546 }
4547 Py_INCREF(Py_None); resultobj = Py_None;
4548 {
4549 if (temp2)
4550 delete arg2;
4551 }
4552 return resultobj;
4553 fail:
4554 {
4555 if (temp2)
4556 delete arg2;
4557 }
4558 return NULL;
4559 }
4560
4561
4562 static PyObject *_wrap_ToolTip_GetTip(PyObject *self, PyObject *args, PyObject *kwargs) {
4563 PyObject *resultobj;
4564 wxToolTip *arg1 = (wxToolTip *) 0 ;
4565 wxString result;
4566 PyObject * obj0 = 0 ;
4567 char *kwnames[] = {
4568 (char *) "self", NULL
4569 };
4570
4571 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_GetTip",kwnames,&obj0)) goto fail;
4572 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolTip,
4573 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4574 {
4575 PyThreadState* __tstate = wxPyBeginAllowThreads();
4576 result = (arg1)->GetTip();
4577
4578 wxPyEndAllowThreads(__tstate);
4579 if (PyErr_Occurred()) SWIG_fail;
4580 }
4581 {
4582 #if wxUSE_UNICODE
4583 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
4584 #else
4585 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
4586 #endif
4587 }
4588 return resultobj;
4589 fail:
4590 return NULL;
4591 }
4592
4593
4594 static PyObject *_wrap_ToolTip_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
4595 PyObject *resultobj;
4596 wxToolTip *arg1 = (wxToolTip *) 0 ;
4597 wxWindow *result;
4598 PyObject * obj0 = 0 ;
4599 char *kwnames[] = {
4600 (char *) "self", NULL
4601 };
4602
4603 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_GetWindow",kwnames,&obj0)) goto fail;
4604 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolTip,
4605 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4606 {
4607 PyThreadState* __tstate = wxPyBeginAllowThreads();
4608 result = (wxWindow *)(arg1)->GetWindow();
4609
4610 wxPyEndAllowThreads(__tstate);
4611 if (PyErr_Occurred()) SWIG_fail;
4612 }
4613 {
4614 resultobj = wxPyMake_wxObject(result);
4615 }
4616 return resultobj;
4617 fail:
4618 return NULL;
4619 }
4620
4621
4622 static PyObject *_wrap_ToolTip_Enable(PyObject *self, PyObject *args, PyObject *kwargs) {
4623 PyObject *resultobj;
4624 bool arg1 ;
4625 PyObject * obj0 = 0 ;
4626 char *kwnames[] = {
4627 (char *) "flag", NULL
4628 };
4629
4630 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_Enable",kwnames,&obj0)) goto fail;
4631 arg1 = (bool) SWIG_AsBool(obj0);
4632 if (PyErr_Occurred()) SWIG_fail;
4633 {
4634 PyThreadState* __tstate = wxPyBeginAllowThreads();
4635 wxToolTip::Enable(arg1);
4636
4637 wxPyEndAllowThreads(__tstate);
4638 if (PyErr_Occurred()) SWIG_fail;
4639 }
4640 Py_INCREF(Py_None); resultobj = Py_None;
4641 return resultobj;
4642 fail:
4643 return NULL;
4644 }
4645
4646
4647 static PyObject *_wrap_ToolTip_SetDelay(PyObject *self, PyObject *args, PyObject *kwargs) {
4648 PyObject *resultobj;
4649 long arg1 ;
4650 PyObject * obj0 = 0 ;
4651 char *kwnames[] = {
4652 (char *) "milliseconds", NULL
4653 };
4654
4655 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolTip_SetDelay",kwnames,&obj0)) goto fail;
4656 arg1 = (long) SWIG_AsLong(obj0);
4657 if (PyErr_Occurred()) SWIG_fail;
4658 {
4659 PyThreadState* __tstate = wxPyBeginAllowThreads();
4660 wxToolTip::SetDelay(arg1);
4661
4662 wxPyEndAllowThreads(__tstate);
4663 if (PyErr_Occurred()) SWIG_fail;
4664 }
4665 Py_INCREF(Py_None); resultobj = Py_None;
4666 return resultobj;
4667 fail:
4668 return NULL;
4669 }
4670
4671
4672 static PyObject * ToolTip_swigregister(PyObject *self, PyObject *args) {
4673 PyObject *obj;
4674 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4675 SWIG_TypeClientData(SWIGTYPE_p_wxToolTip, obj);
4676 Py_INCREF(obj);
4677 return Py_BuildValue((char *)"");
4678 }
4679 static PyObject *_wrap_new_Caret(PyObject *self, PyObject *args, PyObject *kwargs) {
4680 PyObject *resultobj;
4681 wxWindow *arg1 = (wxWindow *) 0 ;
4682 wxSize *arg2 = 0 ;
4683 wxCaret *result;
4684 wxSize temp2 ;
4685 PyObject * obj0 = 0 ;
4686 PyObject * obj1 = 0 ;
4687 char *kwnames[] = {
4688 (char *) "window",(char *) "size", NULL
4689 };
4690
4691 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_Caret",kwnames,&obj0,&obj1)) goto fail;
4692 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
4693 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4694 {
4695 arg2 = &temp2;
4696 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
4697 }
4698 {
4699 if (!wxPyCheckForApp()) SWIG_fail;
4700 PyThreadState* __tstate = wxPyBeginAllowThreads();
4701 result = (wxCaret *)new wxCaret(arg1,(wxSize const &)*arg2);
4702
4703 wxPyEndAllowThreads(__tstate);
4704 if (PyErr_Occurred()) SWIG_fail;
4705 }
4706 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCaret, 1);
4707 return resultobj;
4708 fail:
4709 return NULL;
4710 }
4711
4712
4713 static PyObject *_wrap_delete_Caret(PyObject *self, PyObject *args, PyObject *kwargs) {
4714 PyObject *resultobj;
4715 wxCaret *arg1 = (wxCaret *) 0 ;
4716 PyObject * obj0 = 0 ;
4717 char *kwnames[] = {
4718 (char *) "self", NULL
4719 };
4720
4721 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Caret",kwnames,&obj0)) goto fail;
4722 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4723 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4724 {
4725 PyThreadState* __tstate = wxPyBeginAllowThreads();
4726 delete arg1;
4727
4728 wxPyEndAllowThreads(__tstate);
4729 if (PyErr_Occurred()) SWIG_fail;
4730 }
4731 Py_INCREF(Py_None); resultobj = Py_None;
4732 return resultobj;
4733 fail:
4734 return NULL;
4735 }
4736
4737
4738 static PyObject *_wrap_Caret_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
4739 PyObject *resultobj;
4740 wxCaret *arg1 = (wxCaret *) 0 ;
4741 bool result;
4742 PyObject * obj0 = 0 ;
4743 char *kwnames[] = {
4744 (char *) "self", NULL
4745 };
4746
4747 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_IsOk",kwnames,&obj0)) goto fail;
4748 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4749 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4750 {
4751 PyThreadState* __tstate = wxPyBeginAllowThreads();
4752 result = (bool)(arg1)->IsOk();
4753
4754 wxPyEndAllowThreads(__tstate);
4755 if (PyErr_Occurred()) SWIG_fail;
4756 }
4757 {
4758 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4759 }
4760 return resultobj;
4761 fail:
4762 return NULL;
4763 }
4764
4765
4766 static PyObject *_wrap_Caret_IsVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
4767 PyObject *resultobj;
4768 wxCaret *arg1 = (wxCaret *) 0 ;
4769 bool result;
4770 PyObject * obj0 = 0 ;
4771 char *kwnames[] = {
4772 (char *) "self", NULL
4773 };
4774
4775 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_IsVisible",kwnames,&obj0)) goto fail;
4776 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4777 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4778 {
4779 PyThreadState* __tstate = wxPyBeginAllowThreads();
4780 result = (bool)(arg1)->IsVisible();
4781
4782 wxPyEndAllowThreads(__tstate);
4783 if (PyErr_Occurred()) SWIG_fail;
4784 }
4785 {
4786 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4787 }
4788 return resultobj;
4789 fail:
4790 return NULL;
4791 }
4792
4793
4794 static PyObject *_wrap_Caret_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
4795 PyObject *resultobj;
4796 wxCaret *arg1 = (wxCaret *) 0 ;
4797 wxPoint result;
4798 PyObject * obj0 = 0 ;
4799 char *kwnames[] = {
4800 (char *) "self", NULL
4801 };
4802
4803 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetPosition",kwnames,&obj0)) goto fail;
4804 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4805 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4806 {
4807 PyThreadState* __tstate = wxPyBeginAllowThreads();
4808 result = (arg1)->GetPosition();
4809
4810 wxPyEndAllowThreads(__tstate);
4811 if (PyErr_Occurred()) SWIG_fail;
4812 }
4813 {
4814 wxPoint * resultptr;
4815 resultptr = new wxPoint((wxPoint &) result);
4816 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
4817 }
4818 return resultobj;
4819 fail:
4820 return NULL;
4821 }
4822
4823
4824 static PyObject *_wrap_Caret_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
4825 PyObject *resultobj;
4826 wxCaret *arg1 = (wxCaret *) 0 ;
4827 int *arg2 = (int *) 0 ;
4828 int *arg3 = (int *) 0 ;
4829 int temp2 ;
4830 int temp3 ;
4831 PyObject * obj0 = 0 ;
4832 char *kwnames[] = {
4833 (char *) "self", NULL
4834 };
4835
4836 arg2 = &temp2;
4837 arg3 = &temp3;
4838 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetPositionTuple",kwnames,&obj0)) goto fail;
4839 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4840 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4841 {
4842 PyThreadState* __tstate = wxPyBeginAllowThreads();
4843 (arg1)->GetPosition(arg2,arg3);
4844
4845 wxPyEndAllowThreads(__tstate);
4846 if (PyErr_Occurred()) SWIG_fail;
4847 }
4848 Py_INCREF(Py_None); resultobj = Py_None;
4849 {
4850 PyObject *o = PyInt_FromLong((long) (*arg2));
4851 resultobj = t_output_helper(resultobj,o);
4852 }
4853 {
4854 PyObject *o = PyInt_FromLong((long) (*arg3));
4855 resultobj = t_output_helper(resultobj,o);
4856 }
4857 return resultobj;
4858 fail:
4859 return NULL;
4860 }
4861
4862
4863 static PyObject *_wrap_Caret_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
4864 PyObject *resultobj;
4865 wxCaret *arg1 = (wxCaret *) 0 ;
4866 wxSize result;
4867 PyObject * obj0 = 0 ;
4868 char *kwnames[] = {
4869 (char *) "self", NULL
4870 };
4871
4872 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetSize",kwnames,&obj0)) goto fail;
4873 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4874 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4875 {
4876 PyThreadState* __tstate = wxPyBeginAllowThreads();
4877 result = (arg1)->GetSize();
4878
4879 wxPyEndAllowThreads(__tstate);
4880 if (PyErr_Occurred()) SWIG_fail;
4881 }
4882 {
4883 wxSize * resultptr;
4884 resultptr = new wxSize((wxSize &) result);
4885 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
4886 }
4887 return resultobj;
4888 fail:
4889 return NULL;
4890 }
4891
4892
4893 static PyObject *_wrap_Caret_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
4894 PyObject *resultobj;
4895 wxCaret *arg1 = (wxCaret *) 0 ;
4896 int *arg2 = (int *) 0 ;
4897 int *arg3 = (int *) 0 ;
4898 int temp2 ;
4899 int temp3 ;
4900 PyObject * obj0 = 0 ;
4901 char *kwnames[] = {
4902 (char *) "self", NULL
4903 };
4904
4905 arg2 = &temp2;
4906 arg3 = &temp3;
4907 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetSizeTuple",kwnames,&obj0)) goto fail;
4908 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4909 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4910 {
4911 PyThreadState* __tstate = wxPyBeginAllowThreads();
4912 (arg1)->GetSize(arg2,arg3);
4913
4914 wxPyEndAllowThreads(__tstate);
4915 if (PyErr_Occurred()) SWIG_fail;
4916 }
4917 Py_INCREF(Py_None); resultobj = Py_None;
4918 {
4919 PyObject *o = PyInt_FromLong((long) (*arg2));
4920 resultobj = t_output_helper(resultobj,o);
4921 }
4922 {
4923 PyObject *o = PyInt_FromLong((long) (*arg3));
4924 resultobj = t_output_helper(resultobj,o);
4925 }
4926 return resultobj;
4927 fail:
4928 return NULL;
4929 }
4930
4931
4932 static PyObject *_wrap_Caret_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
4933 PyObject *resultobj;
4934 wxCaret *arg1 = (wxCaret *) 0 ;
4935 wxWindow *result;
4936 PyObject * obj0 = 0 ;
4937 char *kwnames[] = {
4938 (char *) "self", NULL
4939 };
4940
4941 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_GetWindow",kwnames,&obj0)) goto fail;
4942 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4943 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4944 {
4945 PyThreadState* __tstate = wxPyBeginAllowThreads();
4946 result = (wxWindow *)(arg1)->GetWindow();
4947
4948 wxPyEndAllowThreads(__tstate);
4949 if (PyErr_Occurred()) SWIG_fail;
4950 }
4951 {
4952 resultobj = wxPyMake_wxObject(result);
4953 }
4954 return resultobj;
4955 fail:
4956 return NULL;
4957 }
4958
4959
4960 static PyObject *_wrap_Caret_MoveXY(PyObject *self, PyObject *args, PyObject *kwargs) {
4961 PyObject *resultobj;
4962 wxCaret *arg1 = (wxCaret *) 0 ;
4963 int arg2 ;
4964 int arg3 ;
4965 PyObject * obj0 = 0 ;
4966 PyObject * obj1 = 0 ;
4967 PyObject * obj2 = 0 ;
4968 char *kwnames[] = {
4969 (char *) "self",(char *) "x",(char *) "y", NULL
4970 };
4971
4972 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Caret_MoveXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
4973 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
4974 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4975 arg2 = (int) SWIG_AsInt(obj1);
4976 if (PyErr_Occurred()) SWIG_fail;
4977 arg3 = (int) SWIG_AsInt(obj2);
4978 if (PyErr_Occurred()) SWIG_fail;
4979 {
4980 PyThreadState* __tstate = wxPyBeginAllowThreads();
4981 (arg1)->Move(arg2,arg3);
4982
4983 wxPyEndAllowThreads(__tstate);
4984 if (PyErr_Occurred()) SWIG_fail;
4985 }
4986 Py_INCREF(Py_None); resultobj = Py_None;
4987 return resultobj;
4988 fail:
4989 return NULL;
4990 }
4991
4992
4993 static PyObject *_wrap_Caret_Move(PyObject *self, PyObject *args, PyObject *kwargs) {
4994 PyObject *resultobj;
4995 wxCaret *arg1 = (wxCaret *) 0 ;
4996 wxPoint *arg2 = 0 ;
4997 wxPoint temp2 ;
4998 PyObject * obj0 = 0 ;
4999 PyObject * obj1 = 0 ;
5000 char *kwnames[] = {
5001 (char *) "self",(char *) "pt", NULL
5002 };
5003
5004 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Caret_Move",kwnames,&obj0,&obj1)) goto fail;
5005 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
5006 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5007 {
5008 arg2 = &temp2;
5009 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
5010 }
5011 {
5012 PyThreadState* __tstate = wxPyBeginAllowThreads();
5013 (arg1)->Move((wxPoint const &)*arg2);
5014
5015 wxPyEndAllowThreads(__tstate);
5016 if (PyErr_Occurred()) SWIG_fail;
5017 }
5018 Py_INCREF(Py_None); resultobj = Py_None;
5019 return resultobj;
5020 fail:
5021 return NULL;
5022 }
5023
5024
5025 static PyObject *_wrap_Caret_SetSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) {
5026 PyObject *resultobj;
5027 wxCaret *arg1 = (wxCaret *) 0 ;
5028 int arg2 ;
5029 int arg3 ;
5030 PyObject * obj0 = 0 ;
5031 PyObject * obj1 = 0 ;
5032 PyObject * obj2 = 0 ;
5033 char *kwnames[] = {
5034 (char *) "self",(char *) "width",(char *) "height", NULL
5035 };
5036
5037 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Caret_SetSizeWH",kwnames,&obj0,&obj1,&obj2)) goto fail;
5038 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
5039 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5040 arg2 = (int) SWIG_AsInt(obj1);
5041 if (PyErr_Occurred()) SWIG_fail;
5042 arg3 = (int) SWIG_AsInt(obj2);
5043 if (PyErr_Occurred()) SWIG_fail;
5044 {
5045 PyThreadState* __tstate = wxPyBeginAllowThreads();
5046 (arg1)->SetSize(arg2,arg3);
5047
5048 wxPyEndAllowThreads(__tstate);
5049 if (PyErr_Occurred()) SWIG_fail;
5050 }
5051 Py_INCREF(Py_None); resultobj = Py_None;
5052 return resultobj;
5053 fail:
5054 return NULL;
5055 }
5056
5057
5058 static PyObject *_wrap_Caret_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
5059 PyObject *resultobj;
5060 wxCaret *arg1 = (wxCaret *) 0 ;
5061 wxSize *arg2 = 0 ;
5062 wxSize temp2 ;
5063 PyObject * obj0 = 0 ;
5064 PyObject * obj1 = 0 ;
5065 char *kwnames[] = {
5066 (char *) "self",(char *) "size", NULL
5067 };
5068
5069 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Caret_SetSize",kwnames,&obj0,&obj1)) goto fail;
5070 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
5071 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5072 {
5073 arg2 = &temp2;
5074 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
5075 }
5076 {
5077 PyThreadState* __tstate = wxPyBeginAllowThreads();
5078 (arg1)->SetSize((wxSize const &)*arg2);
5079
5080 wxPyEndAllowThreads(__tstate);
5081 if (PyErr_Occurred()) SWIG_fail;
5082 }
5083 Py_INCREF(Py_None); resultobj = Py_None;
5084 return resultobj;
5085 fail:
5086 return NULL;
5087 }
5088
5089
5090 static PyObject *_wrap_Caret_Show(PyObject *self, PyObject *args, PyObject *kwargs) {
5091 PyObject *resultobj;
5092 wxCaret *arg1 = (wxCaret *) 0 ;
5093 int arg2 = (int) True ;
5094 PyObject * obj0 = 0 ;
5095 PyObject * obj1 = 0 ;
5096 char *kwnames[] = {
5097 (char *) "self",(char *) "show", NULL
5098 };
5099
5100 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Caret_Show",kwnames,&obj0,&obj1)) goto fail;
5101 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
5102 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5103 if (obj1) {
5104 arg2 = (int) SWIG_AsInt(obj1);
5105 if (PyErr_Occurred()) SWIG_fail;
5106 }
5107 {
5108 PyThreadState* __tstate = wxPyBeginAllowThreads();
5109 (arg1)->Show(arg2);
5110
5111 wxPyEndAllowThreads(__tstate);
5112 if (PyErr_Occurred()) SWIG_fail;
5113 }
5114 Py_INCREF(Py_None); resultobj = Py_None;
5115 return resultobj;
5116 fail:
5117 return NULL;
5118 }
5119
5120
5121 static PyObject *_wrap_Caret_Hide(PyObject *self, PyObject *args, PyObject *kwargs) {
5122 PyObject *resultobj;
5123 wxCaret *arg1 = (wxCaret *) 0 ;
5124 PyObject * obj0 = 0 ;
5125 char *kwnames[] = {
5126 (char *) "self", NULL
5127 };
5128
5129 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_Hide",kwnames,&obj0)) goto fail;
5130 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCaret,
5131 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5132 {
5133 PyThreadState* __tstate = wxPyBeginAllowThreads();
5134 (arg1)->Hide();
5135
5136 wxPyEndAllowThreads(__tstate);
5137 if (PyErr_Occurred()) SWIG_fail;
5138 }
5139 Py_INCREF(Py_None); resultobj = Py_None;
5140 return resultobj;
5141 fail:
5142 return NULL;
5143 }
5144
5145
5146 static PyObject * Caret_swigregister(PyObject *self, PyObject *args) {
5147 PyObject *obj;
5148 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5149 SWIG_TypeClientData(SWIGTYPE_p_wxCaret, obj);
5150 Py_INCREF(obj);
5151 return Py_BuildValue((char *)"");
5152 }
5153 static PyObject *_wrap_Caret_GetBlinkTime(PyObject *self, PyObject *args, PyObject *kwargs) {
5154 PyObject *resultobj;
5155 int result;
5156 char *kwnames[] = {
5157 NULL
5158 };
5159
5160 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Caret_GetBlinkTime",kwnames)) goto fail;
5161 {
5162 PyThreadState* __tstate = wxPyBeginAllowThreads();
5163 result = (int)wxCaret_GetBlinkTime();
5164
5165 wxPyEndAllowThreads(__tstate);
5166 if (PyErr_Occurred()) SWIG_fail;
5167 }
5168 resultobj = SWIG_FromInt((int)result);
5169 return resultobj;
5170 fail:
5171 return NULL;
5172 }
5173
5174
5175 static PyObject *_wrap_Caret_SetBlinkTime(PyObject *self, PyObject *args, PyObject *kwargs) {
5176 PyObject *resultobj;
5177 int arg1 ;
5178 PyObject * obj0 = 0 ;
5179 char *kwnames[] = {
5180 (char *) "milliseconds", NULL
5181 };
5182
5183 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Caret_SetBlinkTime",kwnames,&obj0)) goto fail;
5184 arg1 = (int) SWIG_AsInt(obj0);
5185 if (PyErr_Occurred()) SWIG_fail;
5186 {
5187 PyThreadState* __tstate = wxPyBeginAllowThreads();
5188 wxCaret_SetBlinkTime(arg1);
5189
5190 wxPyEndAllowThreads(__tstate);
5191 if (PyErr_Occurred()) SWIG_fail;
5192 }
5193 Py_INCREF(Py_None); resultobj = Py_None;
5194 return resultobj;
5195 fail:
5196 return NULL;
5197 }
5198
5199
5200 static PyObject *_wrap_new_BusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
5201 PyObject *resultobj;
5202 wxCursor *arg1 = (wxCursor *) wxHOURGLASS_CURSOR ;
5203 wxBusyCursor *result;
5204 PyObject * obj0 = 0 ;
5205 char *kwnames[] = {
5206 (char *) "cursor", NULL
5207 };
5208
5209 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BusyCursor",kwnames,&obj0)) goto fail;
5210 if (obj0) {
5211 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
5212 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5213 }
5214 {
5215 if (!wxPyCheckForApp()) SWIG_fail;
5216 PyThreadState* __tstate = wxPyBeginAllowThreads();
5217 result = (wxBusyCursor *)new wxBusyCursor(arg1);
5218
5219 wxPyEndAllowThreads(__tstate);
5220 if (PyErr_Occurred()) SWIG_fail;
5221 }
5222 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBusyCursor, 1);
5223 return resultobj;
5224 fail:
5225 return NULL;
5226 }
5227
5228
5229 static PyObject *_wrap_delete_BusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
5230 PyObject *resultobj;
5231 wxBusyCursor *arg1 = (wxBusyCursor *) 0 ;
5232 PyObject * obj0 = 0 ;
5233 char *kwnames[] = {
5234 (char *) "self", NULL
5235 };
5236
5237 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BusyCursor",kwnames,&obj0)) goto fail;
5238 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBusyCursor,
5239 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5240 {
5241 PyThreadState* __tstate = wxPyBeginAllowThreads();
5242 delete arg1;
5243
5244 wxPyEndAllowThreads(__tstate);
5245 if (PyErr_Occurred()) SWIG_fail;
5246 }
5247 Py_INCREF(Py_None); resultobj = Py_None;
5248 return resultobj;
5249 fail:
5250 return NULL;
5251 }
5252
5253
5254 static PyObject * BusyCursor_swigregister(PyObject *self, PyObject *args) {
5255 PyObject *obj;
5256 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5257 SWIG_TypeClientData(SWIGTYPE_p_wxBusyCursor, obj);
5258 Py_INCREF(obj);
5259 return Py_BuildValue((char *)"");
5260 }
5261 static PyObject *_wrap_new_WindowDisabler(PyObject *self, PyObject *args, PyObject *kwargs) {
5262 PyObject *resultobj;
5263 wxWindow *arg1 = (wxWindow *) NULL ;
5264 wxWindowDisabler *result;
5265 PyObject * obj0 = 0 ;
5266 char *kwnames[] = {
5267 (char *) "winToSkip", NULL
5268 };
5269
5270 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_WindowDisabler",kwnames,&obj0)) goto fail;
5271 if (obj0) {
5272 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
5273 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5274 }
5275 {
5276 if (!wxPyCheckForApp()) SWIG_fail;
5277 PyThreadState* __tstate = wxPyBeginAllowThreads();
5278 result = (wxWindowDisabler *)new wxWindowDisabler(arg1);
5279
5280 wxPyEndAllowThreads(__tstate);
5281 if (PyErr_Occurred()) SWIG_fail;
5282 }
5283 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowDisabler, 1);
5284 return resultobj;
5285 fail:
5286 return NULL;
5287 }
5288
5289
5290 static PyObject *_wrap_delete_WindowDisabler(PyObject *self, PyObject *args, PyObject *kwargs) {
5291 PyObject *resultobj;
5292 wxWindowDisabler *arg1 = (wxWindowDisabler *) 0 ;
5293 PyObject * obj0 = 0 ;
5294 char *kwnames[] = {
5295 (char *) "self", NULL
5296 };
5297
5298 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_WindowDisabler",kwnames,&obj0)) goto fail;
5299 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindowDisabler,
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 * WindowDisabler_swigregister(PyObject *self, PyObject *args) {
5316 PyObject *obj;
5317 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5318 SWIG_TypeClientData(SWIGTYPE_p_wxWindowDisabler, obj);
5319 Py_INCREF(obj);
5320 return Py_BuildValue((char *)"");
5321 }
5322 static PyObject *_wrap_new_BusyInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
5323 PyObject *resultobj;
5324 wxString *arg1 = 0 ;
5325 wxBusyInfo *result;
5326 bool temp1 = False ;
5327 PyObject * obj0 = 0 ;
5328 char *kwnames[] = {
5329 (char *) "message", NULL
5330 };
5331
5332 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BusyInfo",kwnames,&obj0)) goto fail;
5333 {
5334 arg1 = wxString_in_helper(obj0);
5335 if (arg1 == NULL) SWIG_fail;
5336 temp1 = True;
5337 }
5338 {
5339 if (!wxPyCheckForApp()) SWIG_fail;
5340 PyThreadState* __tstate = wxPyBeginAllowThreads();
5341 result = (wxBusyInfo *)new wxBusyInfo((wxString const &)*arg1);
5342
5343 wxPyEndAllowThreads(__tstate);
5344 if (PyErr_Occurred()) SWIG_fail;
5345 }
5346 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBusyInfo, 1);
5347 {
5348 if (temp1)
5349 delete arg1;
5350 }
5351 return resultobj;
5352 fail:
5353 {
5354 if (temp1)
5355 delete arg1;
5356 }
5357 return NULL;
5358 }
5359
5360
5361 static PyObject *_wrap_delete_BusyInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
5362 PyObject *resultobj;
5363 wxBusyInfo *arg1 = (wxBusyInfo *) 0 ;
5364 PyObject * obj0 = 0 ;
5365 char *kwnames[] = {
5366 (char *) "self", NULL
5367 };
5368
5369 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BusyInfo",kwnames,&obj0)) goto fail;
5370 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBusyInfo,
5371 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5372 {
5373 PyThreadState* __tstate = wxPyBeginAllowThreads();
5374 delete arg1;
5375
5376 wxPyEndAllowThreads(__tstate);
5377 if (PyErr_Occurred()) SWIG_fail;
5378 }
5379 Py_INCREF(Py_None); resultobj = Py_None;
5380 return resultobj;
5381 fail:
5382 return NULL;
5383 }
5384
5385
5386 static PyObject * BusyInfo_swigregister(PyObject *self, PyObject *args) {
5387 PyObject *obj;
5388 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5389 SWIG_TypeClientData(SWIGTYPE_p_wxBusyInfo, obj);
5390 Py_INCREF(obj);
5391 return Py_BuildValue((char *)"");
5392 }
5393 static PyObject *_wrap_new_StopWatch(PyObject *self, PyObject *args, PyObject *kwargs) {
5394 PyObject *resultobj;
5395 wxStopWatch *result;
5396 char *kwnames[] = {
5397 NULL
5398 };
5399
5400 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_StopWatch",kwnames)) goto fail;
5401 {
5402 PyThreadState* __tstate = wxPyBeginAllowThreads();
5403 result = (wxStopWatch *)new wxStopWatch();
5404
5405 wxPyEndAllowThreads(__tstate);
5406 if (PyErr_Occurred()) SWIG_fail;
5407 }
5408 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStopWatch, 1);
5409 return resultobj;
5410 fail:
5411 return NULL;
5412 }
5413
5414
5415 static PyObject *_wrap_StopWatch_Start(PyObject *self, PyObject *args, PyObject *kwargs) {
5416 PyObject *resultobj;
5417 wxStopWatch *arg1 = (wxStopWatch *) 0 ;
5418 long arg2 = (long) 0 ;
5419 PyObject * obj0 = 0 ;
5420 PyObject * obj1 = 0 ;
5421 char *kwnames[] = {
5422 (char *) "self",(char *) "t0", NULL
5423 };
5424
5425 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:StopWatch_Start",kwnames,&obj0,&obj1)) goto fail;
5426 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch,
5427 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5428 if (obj1) {
5429 arg2 = (long) SWIG_AsLong(obj1);
5430 if (PyErr_Occurred()) SWIG_fail;
5431 }
5432 {
5433 PyThreadState* __tstate = wxPyBeginAllowThreads();
5434 (arg1)->Start(arg2);
5435
5436 wxPyEndAllowThreads(__tstate);
5437 if (PyErr_Occurred()) SWIG_fail;
5438 }
5439 Py_INCREF(Py_None); resultobj = Py_None;
5440 return resultobj;
5441 fail:
5442 return NULL;
5443 }
5444
5445
5446 static PyObject *_wrap_StopWatch_Pause(PyObject *self, PyObject *args, PyObject *kwargs) {
5447 PyObject *resultobj;
5448 wxStopWatch *arg1 = (wxStopWatch *) 0 ;
5449 PyObject * obj0 = 0 ;
5450 char *kwnames[] = {
5451 (char *) "self", NULL
5452 };
5453
5454 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Pause",kwnames,&obj0)) goto fail;
5455 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch,
5456 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5457 {
5458 PyThreadState* __tstate = wxPyBeginAllowThreads();
5459 (arg1)->Pause();
5460
5461 wxPyEndAllowThreads(__tstate);
5462 if (PyErr_Occurred()) SWIG_fail;
5463 }
5464 Py_INCREF(Py_None); resultobj = Py_None;
5465 return resultobj;
5466 fail:
5467 return NULL;
5468 }
5469
5470
5471 static PyObject *_wrap_StopWatch_Resume(PyObject *self, PyObject *args, PyObject *kwargs) {
5472 PyObject *resultobj;
5473 wxStopWatch *arg1 = (wxStopWatch *) 0 ;
5474 PyObject * obj0 = 0 ;
5475 char *kwnames[] = {
5476 (char *) "self", NULL
5477 };
5478
5479 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Resume",kwnames,&obj0)) goto fail;
5480 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch,
5481 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5482 {
5483 PyThreadState* __tstate = wxPyBeginAllowThreads();
5484 (arg1)->Resume();
5485
5486 wxPyEndAllowThreads(__tstate);
5487 if (PyErr_Occurred()) SWIG_fail;
5488 }
5489 Py_INCREF(Py_None); resultobj = Py_None;
5490 return resultobj;
5491 fail:
5492 return NULL;
5493 }
5494
5495
5496 static PyObject *_wrap_StopWatch_Time(PyObject *self, PyObject *args, PyObject *kwargs) {
5497 PyObject *resultobj;
5498 wxStopWatch *arg1 = (wxStopWatch *) 0 ;
5499 long result;
5500 PyObject * obj0 = 0 ;
5501 char *kwnames[] = {
5502 (char *) "self", NULL
5503 };
5504
5505 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StopWatch_Time",kwnames,&obj0)) goto fail;
5506 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStopWatch,
5507 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5508 {
5509 PyThreadState* __tstate = wxPyBeginAllowThreads();
5510 result = (long)((wxStopWatch const *)arg1)->Time();
5511
5512 wxPyEndAllowThreads(__tstate);
5513 if (PyErr_Occurred()) SWIG_fail;
5514 }
5515 resultobj = SWIG_FromLong((long)result);
5516 return resultobj;
5517 fail:
5518 return NULL;
5519 }
5520
5521
5522 static PyObject * StopWatch_swigregister(PyObject *self, PyObject *args) {
5523 PyObject *obj;
5524 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5525 SWIG_TypeClientData(SWIGTYPE_p_wxStopWatch, obj);
5526 Py_INCREF(obj);
5527 return Py_BuildValue((char *)"");
5528 }
5529 static PyObject *_wrap_new_FileHistory(PyObject *self, PyObject *args, PyObject *kwargs) {
5530 PyObject *resultobj;
5531 int arg1 = (int) 9 ;
5532 wxFileHistory *result;
5533 PyObject * obj0 = 0 ;
5534 char *kwnames[] = {
5535 (char *) "maxFiles", NULL
5536 };
5537
5538 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_FileHistory",kwnames,&obj0)) goto fail;
5539 if (obj0) {
5540 arg1 = (int) SWIG_AsInt(obj0);
5541 if (PyErr_Occurred()) SWIG_fail;
5542 }
5543 {
5544 PyThreadState* __tstate = wxPyBeginAllowThreads();
5545 result = (wxFileHistory *)new wxFileHistory(arg1);
5546
5547 wxPyEndAllowThreads(__tstate);
5548 if (PyErr_Occurred()) SWIG_fail;
5549 }
5550 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileHistory, 1);
5551 return resultobj;
5552 fail:
5553 return NULL;
5554 }
5555
5556
5557 static PyObject *_wrap_delete_FileHistory(PyObject *self, PyObject *args, PyObject *kwargs) {
5558 PyObject *resultobj;
5559 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5560 PyObject * obj0 = 0 ;
5561 char *kwnames[] = {
5562 (char *) "self", NULL
5563 };
5564
5565 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileHistory",kwnames,&obj0)) goto fail;
5566 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5567 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5568 {
5569 PyThreadState* __tstate = wxPyBeginAllowThreads();
5570 delete arg1;
5571
5572 wxPyEndAllowThreads(__tstate);
5573 if (PyErr_Occurred()) SWIG_fail;
5574 }
5575 Py_INCREF(Py_None); resultobj = Py_None;
5576 return resultobj;
5577 fail:
5578 return NULL;
5579 }
5580
5581
5582 static PyObject *_wrap_FileHistory_AddFileToHistory(PyObject *self, PyObject *args, PyObject *kwargs) {
5583 PyObject *resultobj;
5584 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5585 wxString *arg2 = 0 ;
5586 bool temp2 = False ;
5587 PyObject * obj0 = 0 ;
5588 PyObject * obj1 = 0 ;
5589 char *kwnames[] = {
5590 (char *) "self",(char *) "file", NULL
5591 };
5592
5593 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_AddFileToHistory",kwnames,&obj0,&obj1)) goto fail;
5594 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5595 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5596 {
5597 arg2 = wxString_in_helper(obj1);
5598 if (arg2 == NULL) SWIG_fail;
5599 temp2 = True;
5600 }
5601 {
5602 PyThreadState* __tstate = wxPyBeginAllowThreads();
5603 (arg1)->AddFileToHistory((wxString const &)*arg2);
5604
5605 wxPyEndAllowThreads(__tstate);
5606 if (PyErr_Occurred()) SWIG_fail;
5607 }
5608 Py_INCREF(Py_None); resultobj = Py_None;
5609 {
5610 if (temp2)
5611 delete arg2;
5612 }
5613 return resultobj;
5614 fail:
5615 {
5616 if (temp2)
5617 delete arg2;
5618 }
5619 return NULL;
5620 }
5621
5622
5623 static PyObject *_wrap_FileHistory_RemoveFileFromHistory(PyObject *self, PyObject *args, PyObject *kwargs) {
5624 PyObject *resultobj;
5625 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5626 int arg2 ;
5627 PyObject * obj0 = 0 ;
5628 PyObject * obj1 = 0 ;
5629 char *kwnames[] = {
5630 (char *) "self",(char *) "i", NULL
5631 };
5632
5633 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_RemoveFileFromHistory",kwnames,&obj0,&obj1)) goto fail;
5634 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5635 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5636 arg2 = (int) SWIG_AsInt(obj1);
5637 if (PyErr_Occurred()) SWIG_fail;
5638 {
5639 PyThreadState* __tstate = wxPyBeginAllowThreads();
5640 (arg1)->RemoveFileFromHistory(arg2);
5641
5642 wxPyEndAllowThreads(__tstate);
5643 if (PyErr_Occurred()) SWIG_fail;
5644 }
5645 Py_INCREF(Py_None); resultobj = Py_None;
5646 return resultobj;
5647 fail:
5648 return NULL;
5649 }
5650
5651
5652 static PyObject *_wrap_FileHistory_GetMaxFiles(PyObject *self, PyObject *args, PyObject *kwargs) {
5653 PyObject *resultobj;
5654 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5655 int result;
5656 PyObject * obj0 = 0 ;
5657 char *kwnames[] = {
5658 (char *) "self", NULL
5659 };
5660
5661 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_GetMaxFiles",kwnames,&obj0)) goto fail;
5662 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5663 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5664 {
5665 PyThreadState* __tstate = wxPyBeginAllowThreads();
5666 result = (int)((wxFileHistory const *)arg1)->GetMaxFiles();
5667
5668 wxPyEndAllowThreads(__tstate);
5669 if (PyErr_Occurred()) SWIG_fail;
5670 }
5671 resultobj = SWIG_FromInt((int)result);
5672 return resultobj;
5673 fail:
5674 return NULL;
5675 }
5676
5677
5678 static PyObject *_wrap_FileHistory_UseMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
5679 PyObject *resultobj;
5680 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5681 wxMenu *arg2 = (wxMenu *) 0 ;
5682 PyObject * obj0 = 0 ;
5683 PyObject * obj1 = 0 ;
5684 char *kwnames[] = {
5685 (char *) "self",(char *) "menu", NULL
5686 };
5687
5688 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_UseMenu",kwnames,&obj0,&obj1)) goto fail;
5689 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5690 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5691 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu,
5692 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5693 {
5694 PyThreadState* __tstate = wxPyBeginAllowThreads();
5695 (arg1)->UseMenu(arg2);
5696
5697 wxPyEndAllowThreads(__tstate);
5698 if (PyErr_Occurred()) SWIG_fail;
5699 }
5700 Py_INCREF(Py_None); resultobj = Py_None;
5701 return resultobj;
5702 fail:
5703 return NULL;
5704 }
5705
5706
5707 static PyObject *_wrap_FileHistory_RemoveMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
5708 PyObject *resultobj;
5709 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5710 wxMenu *arg2 = (wxMenu *) 0 ;
5711 PyObject * obj0 = 0 ;
5712 PyObject * obj1 = 0 ;
5713 char *kwnames[] = {
5714 (char *) "self",(char *) "menu", NULL
5715 };
5716
5717 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_RemoveMenu",kwnames,&obj0,&obj1)) goto fail;
5718 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5719 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5720 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu,
5721 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5722 {
5723 PyThreadState* __tstate = wxPyBeginAllowThreads();
5724 (arg1)->RemoveMenu(arg2);
5725
5726 wxPyEndAllowThreads(__tstate);
5727 if (PyErr_Occurred()) SWIG_fail;
5728 }
5729 Py_INCREF(Py_None); resultobj = Py_None;
5730 return resultobj;
5731 fail:
5732 return NULL;
5733 }
5734
5735
5736 static PyObject *_wrap_FileHistory_Load(PyObject *self, PyObject *args, PyObject *kwargs) {
5737 PyObject *resultobj;
5738 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5739 wxConfigBase *arg2 = 0 ;
5740 PyObject * obj0 = 0 ;
5741 PyObject * obj1 = 0 ;
5742 char *kwnames[] = {
5743 (char *) "self",(char *) "config", NULL
5744 };
5745
5746 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_Load",kwnames,&obj0,&obj1)) goto fail;
5747 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5748 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5749 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxConfigBase,
5750 SWIG_POINTER_EXCEPTION | 0)) == -1)
5751 SWIG_fail;
5752 if (arg2 == NULL) {
5753 PyErr_SetString(PyExc_TypeError,"null reference");
5754 SWIG_fail;
5755 }
5756 {
5757 PyThreadState* __tstate = wxPyBeginAllowThreads();
5758 (arg1)->Load(*arg2);
5759
5760 wxPyEndAllowThreads(__tstate);
5761 if (PyErr_Occurred()) SWIG_fail;
5762 }
5763 Py_INCREF(Py_None); resultobj = Py_None;
5764 return resultobj;
5765 fail:
5766 return NULL;
5767 }
5768
5769
5770 static PyObject *_wrap_FileHistory_Save(PyObject *self, PyObject *args, PyObject *kwargs) {
5771 PyObject *resultobj;
5772 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5773 wxConfigBase *arg2 = 0 ;
5774 PyObject * obj0 = 0 ;
5775 PyObject * obj1 = 0 ;
5776 char *kwnames[] = {
5777 (char *) "self",(char *) "config", NULL
5778 };
5779
5780 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_Save",kwnames,&obj0,&obj1)) goto fail;
5781 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5782 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5783 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxConfigBase,
5784 SWIG_POINTER_EXCEPTION | 0)) == -1)
5785 SWIG_fail;
5786 if (arg2 == NULL) {
5787 PyErr_SetString(PyExc_TypeError,"null reference");
5788 SWIG_fail;
5789 }
5790 {
5791 PyThreadState* __tstate = wxPyBeginAllowThreads();
5792 (arg1)->Save(*arg2);
5793
5794 wxPyEndAllowThreads(__tstate);
5795 if (PyErr_Occurred()) SWIG_fail;
5796 }
5797 Py_INCREF(Py_None); resultobj = Py_None;
5798 return resultobj;
5799 fail:
5800 return NULL;
5801 }
5802
5803
5804 static PyObject *_wrap_FileHistory_AddFilesToMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
5805 PyObject *resultobj;
5806 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5807 PyObject * obj0 = 0 ;
5808 char *kwnames[] = {
5809 (char *) "self", NULL
5810 };
5811
5812 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_AddFilesToMenu",kwnames,&obj0)) goto fail;
5813 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5814 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5815 {
5816 PyThreadState* __tstate = wxPyBeginAllowThreads();
5817 (arg1)->AddFilesToMenu();
5818
5819 wxPyEndAllowThreads(__tstate);
5820 if (PyErr_Occurred()) SWIG_fail;
5821 }
5822 Py_INCREF(Py_None); resultobj = Py_None;
5823 return resultobj;
5824 fail:
5825 return NULL;
5826 }
5827
5828
5829 static PyObject *_wrap_FileHistory_AddFilesToThisMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
5830 PyObject *resultobj;
5831 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5832 wxMenu *arg2 = (wxMenu *) 0 ;
5833 PyObject * obj0 = 0 ;
5834 PyObject * obj1 = 0 ;
5835 char *kwnames[] = {
5836 (char *) "self",(char *) "menu", NULL
5837 };
5838
5839 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_AddFilesToThisMenu",kwnames,&obj0,&obj1)) goto fail;
5840 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5841 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5842 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMenu,
5843 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5844 {
5845 PyThreadState* __tstate = wxPyBeginAllowThreads();
5846 (arg1)->AddFilesToMenu(arg2);
5847
5848 wxPyEndAllowThreads(__tstate);
5849 if (PyErr_Occurred()) SWIG_fail;
5850 }
5851 Py_INCREF(Py_None); resultobj = Py_None;
5852 return resultobj;
5853 fail:
5854 return NULL;
5855 }
5856
5857
5858 static PyObject *_wrap_FileHistory_GetHistoryFile(PyObject *self, PyObject *args, PyObject *kwargs) {
5859 PyObject *resultobj;
5860 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5861 int arg2 ;
5862 wxString result;
5863 PyObject * obj0 = 0 ;
5864 PyObject * obj1 = 0 ;
5865 char *kwnames[] = {
5866 (char *) "self",(char *) "i", NULL
5867 };
5868
5869 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileHistory_GetHistoryFile",kwnames,&obj0,&obj1)) goto fail;
5870 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5871 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5872 arg2 = (int) SWIG_AsInt(obj1);
5873 if (PyErr_Occurred()) SWIG_fail;
5874 {
5875 PyThreadState* __tstate = wxPyBeginAllowThreads();
5876 result = ((wxFileHistory const *)arg1)->GetHistoryFile(arg2);
5877
5878 wxPyEndAllowThreads(__tstate);
5879 if (PyErr_Occurred()) SWIG_fail;
5880 }
5881 {
5882 #if wxUSE_UNICODE
5883 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5884 #else
5885 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5886 #endif
5887 }
5888 return resultobj;
5889 fail:
5890 return NULL;
5891 }
5892
5893
5894 static PyObject *_wrap_FileHistory_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
5895 PyObject *resultobj;
5896 wxFileHistory *arg1 = (wxFileHistory *) 0 ;
5897 int result;
5898 PyObject * obj0 = 0 ;
5899 char *kwnames[] = {
5900 (char *) "self", NULL
5901 };
5902
5903 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileHistory_GetCount",kwnames,&obj0)) goto fail;
5904 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileHistory,
5905 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5906 {
5907 PyThreadState* __tstate = wxPyBeginAllowThreads();
5908 result = (int)((wxFileHistory const *)arg1)->GetCount();
5909
5910 wxPyEndAllowThreads(__tstate);
5911 if (PyErr_Occurred()) SWIG_fail;
5912 }
5913 resultobj = SWIG_FromInt((int)result);
5914 return resultobj;
5915 fail:
5916 return NULL;
5917 }
5918
5919
5920 static PyObject * FileHistory_swigregister(PyObject *self, PyObject *args) {
5921 PyObject *obj;
5922 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5923 SWIG_TypeClientData(SWIGTYPE_p_wxFileHistory, obj);
5924 Py_INCREF(obj);
5925 return Py_BuildValue((char *)"");
5926 }
5927 static PyObject *_wrap_new_SingleInstanceChecker(PyObject *self, PyObject *args, PyObject *kwargs) {
5928 PyObject *resultobj;
5929 wxString *arg1 = 0 ;
5930 wxString const &arg2_defvalue = wxPyEmptyString ;
5931 wxString *arg2 = (wxString *) &arg2_defvalue ;
5932 wxSingleInstanceChecker *result;
5933 bool temp1 = False ;
5934 bool temp2 = False ;
5935 PyObject * obj0 = 0 ;
5936 PyObject * obj1 = 0 ;
5937 char *kwnames[] = {
5938 (char *) "name",(char *) "path", NULL
5939 };
5940
5941 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_SingleInstanceChecker",kwnames,&obj0,&obj1)) goto fail;
5942 {
5943 arg1 = wxString_in_helper(obj0);
5944 if (arg1 == NULL) SWIG_fail;
5945 temp1 = True;
5946 }
5947 if (obj1) {
5948 {
5949 arg2 = wxString_in_helper(obj1);
5950 if (arg2 == NULL) SWIG_fail;
5951 temp2 = True;
5952 }
5953 }
5954 {
5955 PyThreadState* __tstate = wxPyBeginAllowThreads();
5956 result = (wxSingleInstanceChecker *)new wxSingleInstanceChecker((wxString const &)*arg1,(wxString const &)*arg2);
5957
5958 wxPyEndAllowThreads(__tstate);
5959 if (PyErr_Occurred()) SWIG_fail;
5960 }
5961 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSingleInstanceChecker, 1);
5962 {
5963 if (temp1)
5964 delete arg1;
5965 }
5966 {
5967 if (temp2)
5968 delete arg2;
5969 }
5970 return resultobj;
5971 fail:
5972 {
5973 if (temp1)
5974 delete arg1;
5975 }
5976 {
5977 if (temp2)
5978 delete arg2;
5979 }
5980 return NULL;
5981 }
5982
5983
5984 static PyObject *_wrap_new_PreSingleInstanceChecker(PyObject *self, PyObject *args, PyObject *kwargs) {
5985 PyObject *resultobj;
5986 wxSingleInstanceChecker *result;
5987 char *kwnames[] = {
5988 NULL
5989 };
5990
5991 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSingleInstanceChecker",kwnames)) goto fail;
5992 {
5993 PyThreadState* __tstate = wxPyBeginAllowThreads();
5994 result = (wxSingleInstanceChecker *)new wxSingleInstanceChecker();
5995
5996 wxPyEndAllowThreads(__tstate);
5997 if (PyErr_Occurred()) SWIG_fail;
5998 }
5999 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSingleInstanceChecker, 1);
6000 return resultobj;
6001 fail:
6002 return NULL;
6003 }
6004
6005
6006 static PyObject *_wrap_delete_SingleInstanceChecker(PyObject *self, PyObject *args, PyObject *kwargs) {
6007 PyObject *resultobj;
6008 wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ;
6009 PyObject * obj0 = 0 ;
6010 char *kwnames[] = {
6011 (char *) "self", NULL
6012 };
6013
6014 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_SingleInstanceChecker",kwnames,&obj0)) goto fail;
6015 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSingleInstanceChecker,
6016 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6017 {
6018 PyThreadState* __tstate = wxPyBeginAllowThreads();
6019 delete arg1;
6020
6021 wxPyEndAllowThreads(__tstate);
6022 if (PyErr_Occurred()) SWIG_fail;
6023 }
6024 Py_INCREF(Py_None); resultobj = Py_None;
6025 return resultobj;
6026 fail:
6027 return NULL;
6028 }
6029
6030
6031 static PyObject *_wrap_SingleInstanceChecker_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
6032 PyObject *resultobj;
6033 wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ;
6034 wxString *arg2 = 0 ;
6035 wxString const &arg3_defvalue = wxPyEmptyString ;
6036 wxString *arg3 = (wxString *) &arg3_defvalue ;
6037 bool result;
6038 bool temp2 = False ;
6039 bool temp3 = False ;
6040 PyObject * obj0 = 0 ;
6041 PyObject * obj1 = 0 ;
6042 PyObject * obj2 = 0 ;
6043 char *kwnames[] = {
6044 (char *) "self",(char *) "name",(char *) "path", NULL
6045 };
6046
6047 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:SingleInstanceChecker_Create",kwnames,&obj0,&obj1,&obj2)) goto fail;
6048 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSingleInstanceChecker,
6049 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6050 {
6051 arg2 = wxString_in_helper(obj1);
6052 if (arg2 == NULL) SWIG_fail;
6053 temp2 = True;
6054 }
6055 if (obj2) {
6056 {
6057 arg3 = wxString_in_helper(obj2);
6058 if (arg3 == NULL) SWIG_fail;
6059 temp3 = True;
6060 }
6061 }
6062 {
6063 PyThreadState* __tstate = wxPyBeginAllowThreads();
6064 result = (bool)(arg1)->Create((wxString const &)*arg2,(wxString const &)*arg3);
6065
6066 wxPyEndAllowThreads(__tstate);
6067 if (PyErr_Occurred()) SWIG_fail;
6068 }
6069 {
6070 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6071 }
6072 {
6073 if (temp2)
6074 delete arg2;
6075 }
6076 {
6077 if (temp3)
6078 delete arg3;
6079 }
6080 return resultobj;
6081 fail:
6082 {
6083 if (temp2)
6084 delete arg2;
6085 }
6086 {
6087 if (temp3)
6088 delete arg3;
6089 }
6090 return NULL;
6091 }
6092
6093
6094 static PyObject *_wrap_SingleInstanceChecker_IsAnotherRunning(PyObject *self, PyObject *args, PyObject *kwargs) {
6095 PyObject *resultobj;
6096 wxSingleInstanceChecker *arg1 = (wxSingleInstanceChecker *) 0 ;
6097 bool result;
6098 PyObject * obj0 = 0 ;
6099 char *kwnames[] = {
6100 (char *) "self", NULL
6101 };
6102
6103 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SingleInstanceChecker_IsAnotherRunning",kwnames,&obj0)) goto fail;
6104 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSingleInstanceChecker,
6105 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6106 {
6107 PyThreadState* __tstate = wxPyBeginAllowThreads();
6108 result = (bool)((wxSingleInstanceChecker const *)arg1)->IsAnotherRunning();
6109
6110 wxPyEndAllowThreads(__tstate);
6111 if (PyErr_Occurred()) SWIG_fail;
6112 }
6113 {
6114 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6115 }
6116 return resultobj;
6117 fail:
6118 return NULL;
6119 }
6120
6121
6122 static PyObject * SingleInstanceChecker_swigregister(PyObject *self, PyObject *args) {
6123 PyObject *obj;
6124 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6125 SWIG_TypeClientData(SWIGTYPE_p_wxSingleInstanceChecker, obj);
6126 Py_INCREF(obj);
6127 return Py_BuildValue((char *)"");
6128 }
6129 static PyObject *_wrap_DrawWindowOnDC(PyObject *self, PyObject *args, PyObject *kwargs) {
6130 PyObject *resultobj;
6131 wxWindow *arg1 = (wxWindow *) 0 ;
6132 wxDC *arg2 = 0 ;
6133 int arg3 ;
6134 PyObject * obj0 = 0 ;
6135 PyObject * obj1 = 0 ;
6136 PyObject * obj2 = 0 ;
6137 char *kwnames[] = {
6138 (char *) "window",(char *) "dc",(char *) "method", NULL
6139 };
6140
6141 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DrawWindowOnDC",kwnames,&obj0,&obj1,&obj2)) goto fail;
6142 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
6143 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6144 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC,
6145 SWIG_POINTER_EXCEPTION | 0)) == -1)
6146 SWIG_fail;
6147 if (arg2 == NULL) {
6148 PyErr_SetString(PyExc_TypeError,"null reference");
6149 SWIG_fail;
6150 }
6151 arg3 = (int) SWIG_AsInt(obj2);
6152 if (PyErr_Occurred()) SWIG_fail;
6153 {
6154 PyThreadState* __tstate = wxPyBeginAllowThreads();
6155 wxDrawWindowOnDC(arg1,(wxDC const &)*arg2,arg3);
6156
6157 wxPyEndAllowThreads(__tstate);
6158 if (PyErr_Occurred()) SWIG_fail;
6159 }
6160 Py_INCREF(Py_None); resultobj = Py_None;
6161 return resultobj;
6162 fail:
6163 return NULL;
6164 }
6165
6166
6167 static PyObject *_wrap_delete_TipProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
6168 PyObject *resultobj;
6169 wxTipProvider *arg1 = (wxTipProvider *) 0 ;
6170 PyObject * obj0 = 0 ;
6171 char *kwnames[] = {
6172 (char *) "self", NULL
6173 };
6174
6175 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TipProvider",kwnames,&obj0)) goto fail;
6176 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider,
6177 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6178 {
6179 PyThreadState* __tstate = wxPyBeginAllowThreads();
6180 delete arg1;
6181
6182 wxPyEndAllowThreads(__tstate);
6183 if (PyErr_Occurred()) SWIG_fail;
6184 }
6185 Py_INCREF(Py_None); resultobj = Py_None;
6186 return resultobj;
6187 fail:
6188 return NULL;
6189 }
6190
6191
6192 static PyObject *_wrap_TipProvider_GetTip(PyObject *self, PyObject *args, PyObject *kwargs) {
6193 PyObject *resultobj;
6194 wxTipProvider *arg1 = (wxTipProvider *) 0 ;
6195 wxString result;
6196 PyObject * obj0 = 0 ;
6197 char *kwnames[] = {
6198 (char *) "self", NULL
6199 };
6200
6201 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TipProvider_GetTip",kwnames,&obj0)) goto fail;
6202 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider,
6203 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6204 {
6205 PyThreadState* __tstate = wxPyBeginAllowThreads();
6206 result = (arg1)->GetTip();
6207
6208 wxPyEndAllowThreads(__tstate);
6209 if (PyErr_Occurred()) SWIG_fail;
6210 }
6211 {
6212 #if wxUSE_UNICODE
6213 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6214 #else
6215 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6216 #endif
6217 }
6218 return resultobj;
6219 fail:
6220 return NULL;
6221 }
6222
6223
6224 static PyObject *_wrap_TipProvider_GetCurrentTip(PyObject *self, PyObject *args, PyObject *kwargs) {
6225 PyObject *resultobj;
6226 wxTipProvider *arg1 = (wxTipProvider *) 0 ;
6227 size_t result;
6228 PyObject * obj0 = 0 ;
6229 char *kwnames[] = {
6230 (char *) "self", NULL
6231 };
6232
6233 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TipProvider_GetCurrentTip",kwnames,&obj0)) goto fail;
6234 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider,
6235 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6236 {
6237 PyThreadState* __tstate = wxPyBeginAllowThreads();
6238 result = (size_t)(arg1)->GetCurrentTip();
6239
6240 wxPyEndAllowThreads(__tstate);
6241 if (PyErr_Occurred()) SWIG_fail;
6242 }
6243 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
6244 return resultobj;
6245 fail:
6246 return NULL;
6247 }
6248
6249
6250 static PyObject *_wrap_TipProvider_PreprocessTip(PyObject *self, PyObject *args, PyObject *kwargs) {
6251 PyObject *resultobj;
6252 wxTipProvider *arg1 = (wxTipProvider *) 0 ;
6253 wxString *arg2 = 0 ;
6254 wxString result;
6255 bool temp2 = False ;
6256 PyObject * obj0 = 0 ;
6257 PyObject * obj1 = 0 ;
6258 char *kwnames[] = {
6259 (char *) "self",(char *) "tip", NULL
6260 };
6261
6262 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TipProvider_PreprocessTip",kwnames,&obj0,&obj1)) goto fail;
6263 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTipProvider,
6264 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6265 {
6266 arg2 = wxString_in_helper(obj1);
6267 if (arg2 == NULL) SWIG_fail;
6268 temp2 = True;
6269 }
6270 {
6271 PyThreadState* __tstate = wxPyBeginAllowThreads();
6272 result = (arg1)->PreprocessTip((wxString const &)*arg2);
6273
6274 wxPyEndAllowThreads(__tstate);
6275 if (PyErr_Occurred()) SWIG_fail;
6276 }
6277 {
6278 #if wxUSE_UNICODE
6279 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6280 #else
6281 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6282 #endif
6283 }
6284 {
6285 if (temp2)
6286 delete arg2;
6287 }
6288 return resultobj;
6289 fail:
6290 {
6291 if (temp2)
6292 delete arg2;
6293 }
6294 return NULL;
6295 }
6296
6297
6298 static PyObject * TipProvider_swigregister(PyObject *self, PyObject *args) {
6299 PyObject *obj;
6300 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6301 SWIG_TypeClientData(SWIGTYPE_p_wxTipProvider, obj);
6302 Py_INCREF(obj);
6303 return Py_BuildValue((char *)"");
6304 }
6305 static PyObject *_wrap_new_PyTipProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
6306 PyObject *resultobj;
6307 size_t arg1 ;
6308 wxPyTipProvider *result;
6309 PyObject * obj0 = 0 ;
6310 char *kwnames[] = {
6311 (char *) "currentTip", NULL
6312 };
6313
6314 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PyTipProvider",kwnames,&obj0)) goto fail;
6315 arg1 = (size_t) SWIG_AsUnsignedLong(obj0);
6316 if (PyErr_Occurred()) SWIG_fail;
6317 {
6318 PyThreadState* __tstate = wxPyBeginAllowThreads();
6319 result = (wxPyTipProvider *)new wxPyTipProvider(arg1);
6320
6321 wxPyEndAllowThreads(__tstate);
6322 if (PyErr_Occurred()) SWIG_fail;
6323 }
6324 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTipProvider, 1);
6325 return resultobj;
6326 fail:
6327 return NULL;
6328 }
6329
6330
6331 static PyObject *_wrap_PyTipProvider__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6332 PyObject *resultobj;
6333 wxPyTipProvider *arg1 = (wxPyTipProvider *) 0 ;
6334 PyObject *arg2 = (PyObject *) 0 ;
6335 PyObject *arg3 = (PyObject *) 0 ;
6336 PyObject * obj0 = 0 ;
6337 PyObject * obj1 = 0 ;
6338 PyObject * obj2 = 0 ;
6339 char *kwnames[] = {
6340 (char *) "self",(char *) "self",(char *) "_class", NULL
6341 };
6342
6343 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyTipProvider__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
6344 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTipProvider,
6345 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6346 arg2 = obj1;
6347 arg3 = obj2;
6348 {
6349 PyThreadState* __tstate = wxPyBeginAllowThreads();
6350 (arg1)->_setCallbackInfo(arg2,arg3);
6351
6352 wxPyEndAllowThreads(__tstate);
6353 if (PyErr_Occurred()) SWIG_fail;
6354 }
6355 Py_INCREF(Py_None); resultobj = Py_None;
6356 return resultobj;
6357 fail:
6358 return NULL;
6359 }
6360
6361
6362 static PyObject * PyTipProvider_swigregister(PyObject *self, PyObject *args) {
6363 PyObject *obj;
6364 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6365 SWIG_TypeClientData(SWIGTYPE_p_wxPyTipProvider, obj);
6366 Py_INCREF(obj);
6367 return Py_BuildValue((char *)"");
6368 }
6369 static PyObject *_wrap_ShowTip(PyObject *self, PyObject *args, PyObject *kwargs) {
6370 PyObject *resultobj;
6371 wxWindow *arg1 = (wxWindow *) 0 ;
6372 wxTipProvider *arg2 = (wxTipProvider *) 0 ;
6373 bool arg3 = (bool) True ;
6374 bool result;
6375 PyObject * obj0 = 0 ;
6376 PyObject * obj1 = 0 ;
6377 PyObject * obj2 = 0 ;
6378 char *kwnames[] = {
6379 (char *) "parent",(char *) "tipProvider",(char *) "showAtStartup", NULL
6380 };
6381
6382 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ShowTip",kwnames,&obj0,&obj1,&obj2)) goto fail;
6383 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
6384 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6385 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTipProvider,
6386 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6387 if (obj2) {
6388 arg3 = (bool) SWIG_AsBool(obj2);
6389 if (PyErr_Occurred()) SWIG_fail;
6390 }
6391 {
6392 if (!wxPyCheckForApp()) SWIG_fail;
6393 PyThreadState* __tstate = wxPyBeginAllowThreads();
6394 result = (bool)wxShowTip(arg1,arg2,arg3);
6395
6396 wxPyEndAllowThreads(__tstate);
6397 if (PyErr_Occurred()) SWIG_fail;
6398 }
6399 {
6400 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6401 }
6402 return resultobj;
6403 fail:
6404 return NULL;
6405 }
6406
6407
6408 static PyObject *_wrap_CreateFileTipProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
6409 PyObject *resultobj;
6410 wxString *arg1 = 0 ;
6411 size_t arg2 ;
6412 wxTipProvider *result;
6413 bool temp1 = False ;
6414 PyObject * obj0 = 0 ;
6415 PyObject * obj1 = 0 ;
6416 char *kwnames[] = {
6417 (char *) "filename",(char *) "currentTip", NULL
6418 };
6419
6420 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CreateFileTipProvider",kwnames,&obj0,&obj1)) goto fail;
6421 {
6422 arg1 = wxString_in_helper(obj0);
6423 if (arg1 == NULL) SWIG_fail;
6424 temp1 = True;
6425 }
6426 arg2 = (size_t) SWIG_AsUnsignedLong(obj1);
6427 if (PyErr_Occurred()) SWIG_fail;
6428 {
6429 if (!wxPyCheckForApp()) SWIG_fail;
6430 PyThreadState* __tstate = wxPyBeginAllowThreads();
6431 result = (wxTipProvider *)wxCreateFileTipProvider((wxString const &)*arg1,arg2);
6432
6433 wxPyEndAllowThreads(__tstate);
6434 if (PyErr_Occurred()) SWIG_fail;
6435 }
6436 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTipProvider, 1);
6437 {
6438 if (temp1)
6439 delete arg1;
6440 }
6441 return resultobj;
6442 fail:
6443 {
6444 if (temp1)
6445 delete arg1;
6446 }
6447 return NULL;
6448 }
6449
6450
6451 static PyObject *_wrap_new_Timer(PyObject *self, PyObject *args, PyObject *kwargs) {
6452 PyObject *resultobj;
6453 wxEvtHandler *arg1 = (wxEvtHandler *) NULL ;
6454 int arg2 = (int) -1 ;
6455 wxPyTimer *result;
6456 PyObject * obj0 = 0 ;
6457 PyObject * obj1 = 0 ;
6458 char *kwnames[] = {
6459 (char *) "owner",(char *) "id", NULL
6460 };
6461
6462 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Timer",kwnames,&obj0,&obj1)) goto fail;
6463 if (obj0) {
6464 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler,
6465 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6466 }
6467 if (obj1) {
6468 arg2 = (int) SWIG_AsInt(obj1);
6469 if (PyErr_Occurred()) SWIG_fail;
6470 }
6471 {
6472 if (!wxPyCheckForApp()) SWIG_fail;
6473 PyThreadState* __tstate = wxPyBeginAllowThreads();
6474 result = (wxPyTimer *)new wxPyTimer(arg1,arg2);
6475
6476 wxPyEndAllowThreads(__tstate);
6477 if (PyErr_Occurred()) SWIG_fail;
6478 }
6479 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTimer, 1);
6480 return resultobj;
6481 fail:
6482 return NULL;
6483 }
6484
6485
6486 static PyObject *_wrap_delete_Timer(PyObject *self, PyObject *args, PyObject *kwargs) {
6487 PyObject *resultobj;
6488 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6489 PyObject * obj0 = 0 ;
6490 char *kwnames[] = {
6491 (char *) "self", NULL
6492 };
6493
6494 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Timer",kwnames,&obj0)) goto fail;
6495 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6496 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6497 {
6498 PyThreadState* __tstate = wxPyBeginAllowThreads();
6499 delete arg1;
6500
6501 wxPyEndAllowThreads(__tstate);
6502 if (PyErr_Occurred()) SWIG_fail;
6503 }
6504 Py_INCREF(Py_None); resultobj = Py_None;
6505 return resultobj;
6506 fail:
6507 return NULL;
6508 }
6509
6510
6511 static PyObject *_wrap_Timer__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6512 PyObject *resultobj;
6513 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6514 PyObject *arg2 = (PyObject *) 0 ;
6515 PyObject *arg3 = (PyObject *) 0 ;
6516 int arg4 = (int) 1 ;
6517 PyObject * obj0 = 0 ;
6518 PyObject * obj1 = 0 ;
6519 PyObject * obj2 = 0 ;
6520 PyObject * obj3 = 0 ;
6521 char *kwnames[] = {
6522 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
6523 };
6524
6525 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Timer__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
6526 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6527 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6528 arg2 = obj1;
6529 arg3 = obj2;
6530 if (obj3) {
6531 arg4 = (int) SWIG_AsInt(obj3);
6532 if (PyErr_Occurred()) SWIG_fail;
6533 }
6534 {
6535 PyThreadState* __tstate = wxPyBeginAllowThreads();
6536 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
6537
6538 wxPyEndAllowThreads(__tstate);
6539 if (PyErr_Occurred()) SWIG_fail;
6540 }
6541 Py_INCREF(Py_None); resultobj = Py_None;
6542 return resultobj;
6543 fail:
6544 return NULL;
6545 }
6546
6547
6548 static PyObject *_wrap_Timer_SetOwner(PyObject *self, PyObject *args, PyObject *kwargs) {
6549 PyObject *resultobj;
6550 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6551 wxEvtHandler *arg2 = (wxEvtHandler *) 0 ;
6552 int arg3 = (int) -1 ;
6553 PyObject * obj0 = 0 ;
6554 PyObject * obj1 = 0 ;
6555 PyObject * obj2 = 0 ;
6556 char *kwnames[] = {
6557 (char *) "self",(char *) "owner",(char *) "id", NULL
6558 };
6559
6560 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Timer_SetOwner",kwnames,&obj0,&obj1,&obj2)) goto fail;
6561 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6562 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6563 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxEvtHandler,
6564 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6565 if (obj2) {
6566 arg3 = (int) SWIG_AsInt(obj2);
6567 if (PyErr_Occurred()) SWIG_fail;
6568 }
6569 {
6570 PyThreadState* __tstate = wxPyBeginAllowThreads();
6571 (arg1)->SetOwner(arg2,arg3);
6572
6573 wxPyEndAllowThreads(__tstate);
6574 if (PyErr_Occurred()) SWIG_fail;
6575 }
6576 Py_INCREF(Py_None); resultobj = Py_None;
6577 return resultobj;
6578 fail:
6579 return NULL;
6580 }
6581
6582
6583 static PyObject *_wrap_Timer_GetOwner(PyObject *self, PyObject *args, PyObject *kwargs) {
6584 PyObject *resultobj;
6585 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6586 wxEvtHandler *result;
6587 PyObject * obj0 = 0 ;
6588 char *kwnames[] = {
6589 (char *) "self", NULL
6590 };
6591
6592 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_GetOwner",kwnames,&obj0)) goto fail;
6593 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6594 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6595 {
6596 PyThreadState* __tstate = wxPyBeginAllowThreads();
6597 result = (wxEvtHandler *)(arg1)->GetOwner();
6598
6599 wxPyEndAllowThreads(__tstate);
6600 if (PyErr_Occurred()) SWIG_fail;
6601 }
6602 {
6603 resultobj = wxPyMake_wxObject(result);
6604 }
6605 return resultobj;
6606 fail:
6607 return NULL;
6608 }
6609
6610
6611 static PyObject *_wrap_Timer_Start(PyObject *self, PyObject *args, PyObject *kwargs) {
6612 PyObject *resultobj;
6613 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6614 int arg2 = (int) -1 ;
6615 bool arg3 = (bool) False ;
6616 bool result;
6617 PyObject * obj0 = 0 ;
6618 PyObject * obj1 = 0 ;
6619 PyObject * obj2 = 0 ;
6620 char *kwnames[] = {
6621 (char *) "self",(char *) "milliseconds",(char *) "oneShot", NULL
6622 };
6623
6624 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Timer_Start",kwnames,&obj0,&obj1,&obj2)) goto fail;
6625 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6626 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6627 if (obj1) {
6628 arg2 = (int) SWIG_AsInt(obj1);
6629 if (PyErr_Occurred()) SWIG_fail;
6630 }
6631 if (obj2) {
6632 arg3 = (bool) SWIG_AsBool(obj2);
6633 if (PyErr_Occurred()) SWIG_fail;
6634 }
6635 {
6636 PyThreadState* __tstate = wxPyBeginAllowThreads();
6637 result = (bool)(arg1)->Start(arg2,arg3);
6638
6639 wxPyEndAllowThreads(__tstate);
6640 if (PyErr_Occurred()) SWIG_fail;
6641 }
6642 {
6643 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6644 }
6645 return resultobj;
6646 fail:
6647 return NULL;
6648 }
6649
6650
6651 static PyObject *_wrap_Timer_Stop(PyObject *self, PyObject *args, PyObject *kwargs) {
6652 PyObject *resultobj;
6653 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6654 PyObject * obj0 = 0 ;
6655 char *kwnames[] = {
6656 (char *) "self", NULL
6657 };
6658
6659 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_Stop",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 (arg1)->Stop();
6665
6666 wxPyEndAllowThreads(__tstate);
6667 if (PyErr_Occurred()) SWIG_fail;
6668 }
6669 Py_INCREF(Py_None); resultobj = Py_None;
6670 return resultobj;
6671 fail:
6672 return NULL;
6673 }
6674
6675
6676 static PyObject *_wrap_Timer_IsRunning(PyObject *self, PyObject *args, PyObject *kwargs) {
6677 PyObject *resultobj;
6678 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6679 bool result;
6680 PyObject * obj0 = 0 ;
6681 char *kwnames[] = {
6682 (char *) "self", NULL
6683 };
6684
6685 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_IsRunning",kwnames,&obj0)) goto fail;
6686 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6687 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6688 {
6689 PyThreadState* __tstate = wxPyBeginAllowThreads();
6690 result = (bool)((wxPyTimer const *)arg1)->IsRunning();
6691
6692 wxPyEndAllowThreads(__tstate);
6693 if (PyErr_Occurred()) SWIG_fail;
6694 }
6695 {
6696 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6697 }
6698 return resultobj;
6699 fail:
6700 return NULL;
6701 }
6702
6703
6704 static PyObject *_wrap_Timer_GetInterval(PyObject *self, PyObject *args, PyObject *kwargs) {
6705 PyObject *resultobj;
6706 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6707 int result;
6708 PyObject * obj0 = 0 ;
6709 char *kwnames[] = {
6710 (char *) "self", NULL
6711 };
6712
6713 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_GetInterval",kwnames,&obj0)) goto fail;
6714 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6715 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6716 {
6717 PyThreadState* __tstate = wxPyBeginAllowThreads();
6718 result = (int)((wxPyTimer const *)arg1)->GetInterval();
6719
6720 wxPyEndAllowThreads(__tstate);
6721 if (PyErr_Occurred()) SWIG_fail;
6722 }
6723 resultobj = SWIG_FromInt((int)result);
6724 return resultobj;
6725 fail:
6726 return NULL;
6727 }
6728
6729
6730 static PyObject *_wrap_Timer_IsOneShot(PyObject *self, PyObject *args, PyObject *kwargs) {
6731 PyObject *resultobj;
6732 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6733 bool result;
6734 PyObject * obj0 = 0 ;
6735 char *kwnames[] = {
6736 (char *) "self", NULL
6737 };
6738
6739 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_IsOneShot",kwnames,&obj0)) goto fail;
6740 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6741 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6742 {
6743 PyThreadState* __tstate = wxPyBeginAllowThreads();
6744 result = (bool)((wxPyTimer const *)arg1)->IsOneShot();
6745
6746 wxPyEndAllowThreads(__tstate);
6747 if (PyErr_Occurred()) SWIG_fail;
6748 }
6749 {
6750 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6751 }
6752 return resultobj;
6753 fail:
6754 return NULL;
6755 }
6756
6757
6758 static PyObject *_wrap_Timer_GetId(PyObject *self, PyObject *args, PyObject *kwargs) {
6759 PyObject *resultobj;
6760 wxPyTimer *arg1 = (wxPyTimer *) 0 ;
6761 int result;
6762 PyObject * obj0 = 0 ;
6763 char *kwnames[] = {
6764 (char *) "self", NULL
6765 };
6766
6767 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Timer_GetId",kwnames,&obj0)) goto fail;
6768 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTimer,
6769 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6770 {
6771 PyThreadState* __tstate = wxPyBeginAllowThreads();
6772 result = (int)((wxPyTimer const *)arg1)->GetId();
6773
6774 wxPyEndAllowThreads(__tstate);
6775 if (PyErr_Occurred()) SWIG_fail;
6776 }
6777 resultobj = SWIG_FromInt((int)result);
6778 return resultobj;
6779 fail:
6780 return NULL;
6781 }
6782
6783
6784 static PyObject * Timer_swigregister(PyObject *self, PyObject *args) {
6785 PyObject *obj;
6786 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6787 SWIG_TypeClientData(SWIGTYPE_p_wxPyTimer, obj);
6788 Py_INCREF(obj);
6789 return Py_BuildValue((char *)"");
6790 }
6791 static PyObject *_wrap_new_TimerEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
6792 PyObject *resultobj;
6793 int arg1 = (int) 0 ;
6794 int arg2 = (int) 0 ;
6795 wxTimerEvent *result;
6796 PyObject * obj0 = 0 ;
6797 PyObject * obj1 = 0 ;
6798 char *kwnames[] = {
6799 (char *) "timerid",(char *) "interval", NULL
6800 };
6801
6802 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_TimerEvent",kwnames,&obj0,&obj1)) goto fail;
6803 if (obj0) {
6804 arg1 = (int) SWIG_AsInt(obj0);
6805 if (PyErr_Occurred()) SWIG_fail;
6806 }
6807 if (obj1) {
6808 arg2 = (int) SWIG_AsInt(obj1);
6809 if (PyErr_Occurred()) SWIG_fail;
6810 }
6811 {
6812 PyThreadState* __tstate = wxPyBeginAllowThreads();
6813 result = (wxTimerEvent *)new wxTimerEvent(arg1,arg2);
6814
6815 wxPyEndAllowThreads(__tstate);
6816 if (PyErr_Occurred()) SWIG_fail;
6817 }
6818 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimerEvent, 1);
6819 return resultobj;
6820 fail:
6821 return NULL;
6822 }
6823
6824
6825 static PyObject *_wrap_TimerEvent_GetInterval(PyObject *self, PyObject *args, PyObject *kwargs) {
6826 PyObject *resultobj;
6827 wxTimerEvent *arg1 = (wxTimerEvent *) 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:TimerEvent_GetInterval",kwnames,&obj0)) goto fail;
6835 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimerEvent,
6836 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6837 {
6838 PyThreadState* __tstate = wxPyBeginAllowThreads();
6839 result = (int)((wxTimerEvent const *)arg1)->GetInterval();
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 * TimerEvent_swigregister(PyObject *self, PyObject *args) {
6852 PyObject *obj;
6853 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6854 SWIG_TypeClientData(SWIGTYPE_p_wxTimerEvent, obj);
6855 Py_INCREF(obj);
6856 return Py_BuildValue((char *)"");
6857 }
6858 static PyObject *_wrap_new_TimerRunner__SWIG_0(PyObject *self, PyObject *args) {
6859 PyObject *resultobj;
6860 wxTimer *arg1 = 0 ;
6861 wxTimerRunner *result;
6862 PyObject * obj0 = 0 ;
6863
6864 if(!PyArg_ParseTuple(args,(char *)"O:new_TimerRunner",&obj0)) goto fail;
6865 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimer,
6866 SWIG_POINTER_EXCEPTION | 0)) == -1)
6867 SWIG_fail;
6868 if (arg1 == NULL) {
6869 PyErr_SetString(PyExc_TypeError,"null reference");
6870 SWIG_fail;
6871 }
6872 {
6873 if (!wxPyCheckForApp()) SWIG_fail;
6874 PyThreadState* __tstate = wxPyBeginAllowThreads();
6875 result = (wxTimerRunner *)new wxTimerRunner(*arg1);
6876
6877 wxPyEndAllowThreads(__tstate);
6878 if (PyErr_Occurred()) SWIG_fail;
6879 }
6880 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimerRunner, 1);
6881 return resultobj;
6882 fail:
6883 return NULL;
6884 }
6885
6886
6887 static PyObject *_wrap_new_TimerRunner__SWIG_1(PyObject *self, PyObject *args) {
6888 PyObject *resultobj;
6889 wxTimer *arg1 = 0 ;
6890 int arg2 ;
6891 bool arg3 = (bool) False ;
6892 wxTimerRunner *result;
6893 PyObject * obj0 = 0 ;
6894 PyObject * obj1 = 0 ;
6895 PyObject * obj2 = 0 ;
6896
6897 if(!PyArg_ParseTuple(args,(char *)"OO|O:new_TimerRunner",&obj0,&obj1,&obj2)) goto fail;
6898 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimer,
6899 SWIG_POINTER_EXCEPTION | 0)) == -1)
6900 SWIG_fail;
6901 if (arg1 == NULL) {
6902 PyErr_SetString(PyExc_TypeError,"null reference");
6903 SWIG_fail;
6904 }
6905 arg2 = (int) SWIG_AsInt(obj1);
6906 if (PyErr_Occurred()) SWIG_fail;
6907 if (obj2) {
6908 arg3 = (bool) SWIG_AsBool(obj2);
6909 if (PyErr_Occurred()) SWIG_fail;
6910 }
6911 {
6912 if (!wxPyCheckForApp()) SWIG_fail;
6913 PyThreadState* __tstate = wxPyBeginAllowThreads();
6914 result = (wxTimerRunner *)new wxTimerRunner(*arg1,arg2,arg3);
6915
6916 wxPyEndAllowThreads(__tstate);
6917 if (PyErr_Occurred()) SWIG_fail;
6918 }
6919 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimerRunner, 1);
6920 return resultobj;
6921 fail:
6922 return NULL;
6923 }
6924
6925
6926 static PyObject *_wrap_new_TimerRunner(PyObject *self, PyObject *args) {
6927 int argc;
6928 PyObject *argv[4];
6929 int ii;
6930
6931 argc = PyObject_Length(args);
6932 for (ii = 0; (ii < argc) && (ii < 3); ii++) {
6933 argv[ii] = PyTuple_GetItem(args,ii);
6934 }
6935 if (argc == 1) {
6936 int _v;
6937 {
6938 void *ptr;
6939 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxTimer, 0) == -1) {
6940 _v = 0;
6941 PyErr_Clear();
6942 } else {
6943 _v = 1;
6944 }
6945 }
6946 if (_v) {
6947 return _wrap_new_TimerRunner__SWIG_0(self,args);
6948 }
6949 }
6950 if ((argc >= 2) && (argc <= 3)) {
6951 int _v;
6952 {
6953 void *ptr;
6954 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxTimer, 0) == -1) {
6955 _v = 0;
6956 PyErr_Clear();
6957 } else {
6958 _v = 1;
6959 }
6960 }
6961 if (_v) {
6962 _v = SWIG_CheckInt(argv[1]);
6963 if (_v) {
6964 if (argc <= 2) {
6965 return _wrap_new_TimerRunner__SWIG_1(self,args);
6966 }
6967 _v = SWIG_CheckBool(argv[2]);
6968 if (_v) {
6969 return _wrap_new_TimerRunner__SWIG_1(self,args);
6970 }
6971 }
6972 }
6973 }
6974
6975 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_TimerRunner'");
6976 return NULL;
6977 }
6978
6979
6980 static PyObject *_wrap_delete_TimerRunner(PyObject *self, PyObject *args, PyObject *kwargs) {
6981 PyObject *resultobj;
6982 wxTimerRunner *arg1 = (wxTimerRunner *) 0 ;
6983 PyObject * obj0 = 0 ;
6984 char *kwnames[] = {
6985 (char *) "self", NULL
6986 };
6987
6988 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TimerRunner",kwnames,&obj0)) goto fail;
6989 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimerRunner,
6990 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6991 {
6992 PyThreadState* __tstate = wxPyBeginAllowThreads();
6993 delete arg1;
6994
6995 wxPyEndAllowThreads(__tstate);
6996 if (PyErr_Occurred()) SWIG_fail;
6997 }
6998 Py_INCREF(Py_None); resultobj = Py_None;
6999 return resultobj;
7000 fail:
7001 return NULL;
7002 }
7003
7004
7005 static PyObject *_wrap_TimerRunner_Start(PyObject *self, PyObject *args, PyObject *kwargs) {
7006 PyObject *resultobj;
7007 wxTimerRunner *arg1 = (wxTimerRunner *) 0 ;
7008 int arg2 ;
7009 bool arg3 = (bool) False ;
7010 PyObject * obj0 = 0 ;
7011 PyObject * obj1 = 0 ;
7012 PyObject * obj2 = 0 ;
7013 char *kwnames[] = {
7014 (char *) "self",(char *) "milli",(char *) "oneShot", NULL
7015 };
7016
7017 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TimerRunner_Start",kwnames,&obj0,&obj1,&obj2)) goto fail;
7018 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimerRunner,
7019 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7020 arg2 = (int) SWIG_AsInt(obj1);
7021 if (PyErr_Occurred()) SWIG_fail;
7022 if (obj2) {
7023 arg3 = (bool) SWIG_AsBool(obj2);
7024 if (PyErr_Occurred()) SWIG_fail;
7025 }
7026 {
7027 PyThreadState* __tstate = wxPyBeginAllowThreads();
7028 (arg1)->Start(arg2,arg3);
7029
7030 wxPyEndAllowThreads(__tstate);
7031 if (PyErr_Occurred()) SWIG_fail;
7032 }
7033 Py_INCREF(Py_None); resultobj = Py_None;
7034 return resultobj;
7035 fail:
7036 return NULL;
7037 }
7038
7039
7040 static PyObject * TimerRunner_swigregister(PyObject *self, PyObject *args) {
7041 PyObject *obj;
7042 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7043 SWIG_TypeClientData(SWIGTYPE_p_wxTimerRunner, obj);
7044 Py_INCREF(obj);
7045 return Py_BuildValue((char *)"");
7046 }
7047 static PyObject *_wrap_new_Log(PyObject *self, PyObject *args, PyObject *kwargs) {
7048 PyObject *resultobj;
7049 wxLog *result;
7050 char *kwnames[] = {
7051 NULL
7052 };
7053
7054 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Log",kwnames)) goto fail;
7055 {
7056 PyThreadState* __tstate = wxPyBeginAllowThreads();
7057 result = (wxLog *)new wxLog();
7058
7059 wxPyEndAllowThreads(__tstate);
7060 if (PyErr_Occurred()) SWIG_fail;
7061 }
7062 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 1);
7063 return resultobj;
7064 fail:
7065 return NULL;
7066 }
7067
7068
7069 static PyObject *_wrap_Log_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
7070 PyObject *resultobj;
7071 bool result;
7072 char *kwnames[] = {
7073 NULL
7074 };
7075
7076 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_IsEnabled",kwnames)) goto fail;
7077 {
7078 PyThreadState* __tstate = wxPyBeginAllowThreads();
7079 result = (bool)wxLog::IsEnabled();
7080
7081 wxPyEndAllowThreads(__tstate);
7082 if (PyErr_Occurred()) SWIG_fail;
7083 }
7084 {
7085 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7086 }
7087 return resultobj;
7088 fail:
7089 return NULL;
7090 }
7091
7092
7093 static PyObject *_wrap_Log_EnableLogging(PyObject *self, PyObject *args, PyObject *kwargs) {
7094 PyObject *resultobj;
7095 bool arg1 = (bool) True ;
7096 bool result;
7097 PyObject * obj0 = 0 ;
7098 char *kwnames[] = {
7099 (char *) "doIt", NULL
7100 };
7101
7102 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Log_EnableLogging",kwnames,&obj0)) goto fail;
7103 if (obj0) {
7104 arg1 = (bool) SWIG_AsBool(obj0);
7105 if (PyErr_Occurred()) SWIG_fail;
7106 }
7107 {
7108 PyThreadState* __tstate = wxPyBeginAllowThreads();
7109 result = (bool)wxLog::EnableLogging(arg1);
7110
7111 wxPyEndAllowThreads(__tstate);
7112 if (PyErr_Occurred()) SWIG_fail;
7113 }
7114 {
7115 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7116 }
7117 return resultobj;
7118 fail:
7119 return NULL;
7120 }
7121
7122
7123 static PyObject *_wrap_Log_OnLog(PyObject *self, PyObject *args, PyObject *kwargs) {
7124 PyObject *resultobj;
7125 wxLogLevel arg1 ;
7126 wxChar *arg2 = (wxChar *) 0 ;
7127 time_t arg3 ;
7128 PyObject * obj0 = 0 ;
7129 PyObject * obj1 = 0 ;
7130 PyObject * obj2 = 0 ;
7131 char *kwnames[] = {
7132 (char *) "level",(char *) "szString",(char *) "t", NULL
7133 };
7134
7135 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Log_OnLog",kwnames,&obj0,&obj1,&obj2)) goto fail;
7136 arg1 = (wxLogLevel) SWIG_AsUnsignedLong(obj0);
7137 if (PyErr_Occurred()) SWIG_fail;
7138 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxChar,
7139 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7140 arg3 = (time_t) SWIG_AsUnsignedInt(obj2);
7141 if (PyErr_Occurred()) SWIG_fail;
7142 {
7143 PyThreadState* __tstate = wxPyBeginAllowThreads();
7144 wxLog::OnLog(arg1,(wxChar const *)arg2,arg3);
7145
7146 wxPyEndAllowThreads(__tstate);
7147 if (PyErr_Occurred()) SWIG_fail;
7148 }
7149 Py_INCREF(Py_None); resultobj = Py_None;
7150 return resultobj;
7151 fail:
7152 return NULL;
7153 }
7154
7155
7156 static PyObject *_wrap_Log_Flush(PyObject *self, PyObject *args, PyObject *kwargs) {
7157 PyObject *resultobj;
7158 wxLog *arg1 = (wxLog *) 0 ;
7159 PyObject * obj0 = 0 ;
7160 char *kwnames[] = {
7161 (char *) "self", NULL
7162 };
7163
7164 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_Flush",kwnames,&obj0)) goto fail;
7165 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog,
7166 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7167 {
7168 PyThreadState* __tstate = wxPyBeginAllowThreads();
7169 (arg1)->Flush();
7170
7171 wxPyEndAllowThreads(__tstate);
7172 if (PyErr_Occurred()) SWIG_fail;
7173 }
7174 Py_INCREF(Py_None); resultobj = Py_None;
7175 return resultobj;
7176 fail:
7177 return NULL;
7178 }
7179
7180
7181 static PyObject *_wrap_Log_FlushActive(PyObject *self, PyObject *args, PyObject *kwargs) {
7182 PyObject *resultobj;
7183 char *kwnames[] = {
7184 NULL
7185 };
7186
7187 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_FlushActive",kwnames)) goto fail;
7188 {
7189 PyThreadState* __tstate = wxPyBeginAllowThreads();
7190 wxLog::FlushActive();
7191
7192 wxPyEndAllowThreads(__tstate);
7193 if (PyErr_Occurred()) SWIG_fail;
7194 }
7195 Py_INCREF(Py_None); resultobj = Py_None;
7196 return resultobj;
7197 fail:
7198 return NULL;
7199 }
7200
7201
7202 static PyObject *_wrap_Log_GetActiveTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
7203 PyObject *resultobj;
7204 wxLog *result;
7205 char *kwnames[] = {
7206 NULL
7207 };
7208
7209 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetActiveTarget",kwnames)) goto fail;
7210 {
7211 PyThreadState* __tstate = wxPyBeginAllowThreads();
7212 result = (wxLog *)wxLog::GetActiveTarget();
7213
7214 wxPyEndAllowThreads(__tstate);
7215 if (PyErr_Occurred()) SWIG_fail;
7216 }
7217 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0);
7218 return resultobj;
7219 fail:
7220 return NULL;
7221 }
7222
7223
7224 static PyObject *_wrap_Log_SetActiveTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
7225 PyObject *resultobj;
7226 wxLog *arg1 = (wxLog *) 0 ;
7227 wxLog *result;
7228 PyObject * obj0 = 0 ;
7229 char *kwnames[] = {
7230 (char *) "pLogger", NULL
7231 };
7232
7233 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetActiveTarget",kwnames,&obj0)) goto fail;
7234 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog,
7235 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7236 {
7237 PyThreadState* __tstate = wxPyBeginAllowThreads();
7238 result = (wxLog *)wxLog::SetActiveTarget(arg1);
7239
7240 wxPyEndAllowThreads(__tstate);
7241 if (PyErr_Occurred()) SWIG_fail;
7242 }
7243 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0);
7244 return resultobj;
7245 fail:
7246 return NULL;
7247 }
7248
7249
7250 static PyObject *_wrap_Log_Suspend(PyObject *self, PyObject *args, PyObject *kwargs) {
7251 PyObject *resultobj;
7252 char *kwnames[] = {
7253 NULL
7254 };
7255
7256 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_Suspend",kwnames)) goto fail;
7257 {
7258 PyThreadState* __tstate = wxPyBeginAllowThreads();
7259 wxLog::Suspend();
7260
7261 wxPyEndAllowThreads(__tstate);
7262 if (PyErr_Occurred()) SWIG_fail;
7263 }
7264 Py_INCREF(Py_None); resultobj = Py_None;
7265 return resultobj;
7266 fail:
7267 return NULL;
7268 }
7269
7270
7271 static PyObject *_wrap_Log_Resume(PyObject *self, PyObject *args, PyObject *kwargs) {
7272 PyObject *resultobj;
7273 char *kwnames[] = {
7274 NULL
7275 };
7276
7277 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_Resume",kwnames)) goto fail;
7278 {
7279 PyThreadState* __tstate = wxPyBeginAllowThreads();
7280 wxLog::Resume();
7281
7282 wxPyEndAllowThreads(__tstate);
7283 if (PyErr_Occurred()) SWIG_fail;
7284 }
7285 Py_INCREF(Py_None); resultobj = Py_None;
7286 return resultobj;
7287 fail:
7288 return NULL;
7289 }
7290
7291
7292 static PyObject *_wrap_Log_SetVerbose(PyObject *self, PyObject *args, PyObject *kwargs) {
7293 PyObject *resultobj;
7294 bool arg1 = (bool) True ;
7295 PyObject * obj0 = 0 ;
7296 char *kwnames[] = {
7297 (char *) "bVerbose", NULL
7298 };
7299
7300 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Log_SetVerbose",kwnames,&obj0)) goto fail;
7301 if (obj0) {
7302 arg1 = (bool) SWIG_AsBool(obj0);
7303 if (PyErr_Occurred()) SWIG_fail;
7304 }
7305 {
7306 PyThreadState* __tstate = wxPyBeginAllowThreads();
7307 wxLog::SetVerbose(arg1);
7308
7309 wxPyEndAllowThreads(__tstate);
7310 if (PyErr_Occurred()) SWIG_fail;
7311 }
7312 Py_INCREF(Py_None); resultobj = Py_None;
7313 return resultobj;
7314 fail:
7315 return NULL;
7316 }
7317
7318
7319 static PyObject *_wrap_Log_SetLogLevel(PyObject *self, PyObject *args, PyObject *kwargs) {
7320 PyObject *resultobj;
7321 wxLogLevel arg1 ;
7322 PyObject * obj0 = 0 ;
7323 char *kwnames[] = {
7324 (char *) "logLevel", NULL
7325 };
7326
7327 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetLogLevel",kwnames,&obj0)) goto fail;
7328 arg1 = (wxLogLevel) SWIG_AsUnsignedLong(obj0);
7329 if (PyErr_Occurred()) SWIG_fail;
7330 {
7331 PyThreadState* __tstate = wxPyBeginAllowThreads();
7332 wxLog::SetLogLevel(arg1);
7333
7334 wxPyEndAllowThreads(__tstate);
7335 if (PyErr_Occurred()) SWIG_fail;
7336 }
7337 Py_INCREF(Py_None); resultobj = Py_None;
7338 return resultobj;
7339 fail:
7340 return NULL;
7341 }
7342
7343
7344 static PyObject *_wrap_Log_DontCreateOnDemand(PyObject *self, PyObject *args, PyObject *kwargs) {
7345 PyObject *resultobj;
7346 char *kwnames[] = {
7347 NULL
7348 };
7349
7350 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_DontCreateOnDemand",kwnames)) goto fail;
7351 {
7352 PyThreadState* __tstate = wxPyBeginAllowThreads();
7353 wxLog::DontCreateOnDemand();
7354
7355 wxPyEndAllowThreads(__tstate);
7356 if (PyErr_Occurred()) SWIG_fail;
7357 }
7358 Py_INCREF(Py_None); resultobj = Py_None;
7359 return resultobj;
7360 fail:
7361 return NULL;
7362 }
7363
7364
7365 static PyObject *_wrap_Log_SetTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) {
7366 PyObject *resultobj;
7367 wxTraceMask arg1 ;
7368 PyObject * obj0 = 0 ;
7369 char *kwnames[] = {
7370 (char *) "ulMask", NULL
7371 };
7372
7373 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetTraceMask",kwnames,&obj0)) goto fail;
7374 arg1 = (wxTraceMask) SWIG_AsUnsignedLong(obj0);
7375 if (PyErr_Occurred()) SWIG_fail;
7376 {
7377 PyThreadState* __tstate = wxPyBeginAllowThreads();
7378 wxLog::SetTraceMask(arg1);
7379
7380 wxPyEndAllowThreads(__tstate);
7381 if (PyErr_Occurred()) SWIG_fail;
7382 }
7383 Py_INCREF(Py_None); resultobj = Py_None;
7384 return resultobj;
7385 fail:
7386 return NULL;
7387 }
7388
7389
7390 static PyObject *_wrap_Log_AddTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) {
7391 PyObject *resultobj;
7392 wxString *arg1 = 0 ;
7393 bool temp1 = False ;
7394 PyObject * obj0 = 0 ;
7395 char *kwnames[] = {
7396 (char *) "str", NULL
7397 };
7398
7399 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_AddTraceMask",kwnames,&obj0)) goto fail;
7400 {
7401 arg1 = wxString_in_helper(obj0);
7402 if (arg1 == NULL) SWIG_fail;
7403 temp1 = True;
7404 }
7405 {
7406 PyThreadState* __tstate = wxPyBeginAllowThreads();
7407 wxLog::AddTraceMask((wxString const &)*arg1);
7408
7409 wxPyEndAllowThreads(__tstate);
7410 if (PyErr_Occurred()) SWIG_fail;
7411 }
7412 Py_INCREF(Py_None); resultobj = Py_None;
7413 {
7414 if (temp1)
7415 delete arg1;
7416 }
7417 return resultobj;
7418 fail:
7419 {
7420 if (temp1)
7421 delete arg1;
7422 }
7423 return NULL;
7424 }
7425
7426
7427 static PyObject *_wrap_Log_RemoveTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) {
7428 PyObject *resultobj;
7429 wxString *arg1 = 0 ;
7430 bool temp1 = False ;
7431 PyObject * obj0 = 0 ;
7432 char *kwnames[] = {
7433 (char *) "str", NULL
7434 };
7435
7436 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_RemoveTraceMask",kwnames,&obj0)) goto fail;
7437 {
7438 arg1 = wxString_in_helper(obj0);
7439 if (arg1 == NULL) SWIG_fail;
7440 temp1 = True;
7441 }
7442 {
7443 PyThreadState* __tstate = wxPyBeginAllowThreads();
7444 wxLog::RemoveTraceMask((wxString const &)*arg1);
7445
7446 wxPyEndAllowThreads(__tstate);
7447 if (PyErr_Occurred()) SWIG_fail;
7448 }
7449 Py_INCREF(Py_None); resultobj = Py_None;
7450 {
7451 if (temp1)
7452 delete arg1;
7453 }
7454 return resultobj;
7455 fail:
7456 {
7457 if (temp1)
7458 delete arg1;
7459 }
7460 return NULL;
7461 }
7462
7463
7464 static PyObject *_wrap_Log_ClearTraceMasks(PyObject *self, PyObject *args, PyObject *kwargs) {
7465 PyObject *resultobj;
7466 char *kwnames[] = {
7467 NULL
7468 };
7469
7470 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_ClearTraceMasks",kwnames)) goto fail;
7471 {
7472 PyThreadState* __tstate = wxPyBeginAllowThreads();
7473 wxLog::ClearTraceMasks();
7474
7475 wxPyEndAllowThreads(__tstate);
7476 if (PyErr_Occurred()) SWIG_fail;
7477 }
7478 Py_INCREF(Py_None); resultobj = Py_None;
7479 return resultobj;
7480 fail:
7481 return NULL;
7482 }
7483
7484
7485 static PyObject *_wrap_Log_GetTraceMasks(PyObject *self, PyObject *args, PyObject *kwargs) {
7486 PyObject *resultobj;
7487 wxArrayString *result;
7488 char *kwnames[] = {
7489 NULL
7490 };
7491
7492 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTraceMasks",kwnames)) goto fail;
7493 {
7494 PyThreadState* __tstate = wxPyBeginAllowThreads();
7495 {
7496 wxArrayString const &_result_ref = wxLog::GetTraceMasks();
7497 result = (wxArrayString *) &_result_ref;
7498 }
7499
7500 wxPyEndAllowThreads(__tstate);
7501 if (PyErr_Occurred()) SWIG_fail;
7502 }
7503 {
7504 resultobj = wxArrayString2PyList_helper(*result);
7505 }
7506 return resultobj;
7507 fail:
7508 return NULL;
7509 }
7510
7511
7512 static PyObject *_wrap_Log_SetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) {
7513 PyObject *resultobj;
7514 wxChar *arg1 = (wxChar *) 0 ;
7515 PyObject * obj0 = 0 ;
7516 char *kwnames[] = {
7517 (char *) "ts", NULL
7518 };
7519
7520 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_SetTimestamp",kwnames,&obj0)) goto fail;
7521 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChar,
7522 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7523 {
7524 PyThreadState* __tstate = wxPyBeginAllowThreads();
7525 wxLog::SetTimestamp((wxChar const *)arg1);
7526
7527 wxPyEndAllowThreads(__tstate);
7528 if (PyErr_Occurred()) SWIG_fail;
7529 }
7530 Py_INCREF(Py_None); resultobj = Py_None;
7531 return resultobj;
7532 fail:
7533 return NULL;
7534 }
7535
7536
7537 static PyObject *_wrap_Log_GetVerbose(PyObject *self, PyObject *args, PyObject *kwargs) {
7538 PyObject *resultobj;
7539 bool result;
7540 char *kwnames[] = {
7541 NULL
7542 };
7543
7544 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetVerbose",kwnames)) goto fail;
7545 {
7546 PyThreadState* __tstate = wxPyBeginAllowThreads();
7547 result = (bool)wxLog::GetVerbose();
7548
7549 wxPyEndAllowThreads(__tstate);
7550 if (PyErr_Occurred()) SWIG_fail;
7551 }
7552 {
7553 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7554 }
7555 return resultobj;
7556 fail:
7557 return NULL;
7558 }
7559
7560
7561 static PyObject *_wrap_Log_GetTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) {
7562 PyObject *resultobj;
7563 wxTraceMask result;
7564 char *kwnames[] = {
7565 NULL
7566 };
7567
7568 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTraceMask",kwnames)) goto fail;
7569 {
7570 PyThreadState* __tstate = wxPyBeginAllowThreads();
7571 result = (wxTraceMask)wxLog::GetTraceMask();
7572
7573 wxPyEndAllowThreads(__tstate);
7574 if (PyErr_Occurred()) SWIG_fail;
7575 }
7576 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
7577 return resultobj;
7578 fail:
7579 return NULL;
7580 }
7581
7582
7583 static PyObject *_wrap_Log_IsAllowedTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) {
7584 PyObject *resultobj;
7585 wxChar *arg1 = (wxChar *) 0 ;
7586 bool result;
7587 PyObject * obj0 = 0 ;
7588 char *kwnames[] = {
7589 (char *) "mask", NULL
7590 };
7591
7592 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_IsAllowedTraceMask",kwnames,&obj0)) goto fail;
7593 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChar,
7594 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7595 {
7596 PyThreadState* __tstate = wxPyBeginAllowThreads();
7597 result = (bool)wxLog::IsAllowedTraceMask((wxChar const *)arg1);
7598
7599 wxPyEndAllowThreads(__tstate);
7600 if (PyErr_Occurred()) SWIG_fail;
7601 }
7602 {
7603 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7604 }
7605 return resultobj;
7606 fail:
7607 return NULL;
7608 }
7609
7610
7611 static PyObject *_wrap_Log_GetLogLevel(PyObject *self, PyObject *args, PyObject *kwargs) {
7612 PyObject *resultobj;
7613 wxLogLevel result;
7614 char *kwnames[] = {
7615 NULL
7616 };
7617
7618 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetLogLevel",kwnames)) goto fail;
7619 {
7620 PyThreadState* __tstate = wxPyBeginAllowThreads();
7621 result = (wxLogLevel)wxLog::GetLogLevel();
7622
7623 wxPyEndAllowThreads(__tstate);
7624 if (PyErr_Occurred()) SWIG_fail;
7625 }
7626 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
7627 return resultobj;
7628 fail:
7629 return NULL;
7630 }
7631
7632
7633 static PyObject *_wrap_Log_GetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) {
7634 PyObject *resultobj;
7635 wxChar *result;
7636 char *kwnames[] = {
7637 NULL
7638 };
7639
7640 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_GetTimestamp",kwnames)) goto fail;
7641 {
7642 PyThreadState* __tstate = wxPyBeginAllowThreads();
7643 result = (wxChar *)wxLog::GetTimestamp();
7644
7645 wxPyEndAllowThreads(__tstate);
7646 if (PyErr_Occurred()) SWIG_fail;
7647 }
7648 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChar, 0);
7649 return resultobj;
7650 fail:
7651 return NULL;
7652 }
7653
7654
7655 static PyObject *_wrap_Log_TimeStamp(PyObject *self, PyObject *args, PyObject *kwargs) {
7656 PyObject *resultobj;
7657 wxString result;
7658 char *kwnames[] = {
7659 NULL
7660 };
7661
7662 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Log_TimeStamp",kwnames)) goto fail;
7663 {
7664 PyThreadState* __tstate = wxPyBeginAllowThreads();
7665 result = Log_TimeStamp();
7666
7667 wxPyEndAllowThreads(__tstate);
7668 if (PyErr_Occurred()) SWIG_fail;
7669 }
7670 {
7671 #if wxUSE_UNICODE
7672 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7673 #else
7674 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7675 #endif
7676 }
7677 return resultobj;
7678 fail:
7679 return NULL;
7680 }
7681
7682
7683 static PyObject *_wrap_Log_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
7684 PyObject *resultobj;
7685 wxLog *arg1 = (wxLog *) 0 ;
7686 PyObject * obj0 = 0 ;
7687 char *kwnames[] = {
7688 (char *) "self", NULL
7689 };
7690
7691 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Log_Destroy",kwnames,&obj0)) goto fail;
7692 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog,
7693 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7694 {
7695 PyThreadState* __tstate = wxPyBeginAllowThreads();
7696 wxLog_Destroy(arg1);
7697
7698 wxPyEndAllowThreads(__tstate);
7699 if (PyErr_Occurred()) SWIG_fail;
7700 }
7701 Py_INCREF(Py_None); resultobj = Py_None;
7702 return resultobj;
7703 fail:
7704 return NULL;
7705 }
7706
7707
7708 static PyObject * Log_swigregister(PyObject *self, PyObject *args) {
7709 PyObject *obj;
7710 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7711 SWIG_TypeClientData(SWIGTYPE_p_wxLog, obj);
7712 Py_INCREF(obj);
7713 return Py_BuildValue((char *)"");
7714 }
7715 static PyObject *_wrap_new_LogStderr(PyObject *self, PyObject *args, PyObject *kwargs) {
7716 PyObject *resultobj;
7717 wxLogStderr *result;
7718 char *kwnames[] = {
7719 NULL
7720 };
7721
7722 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogStderr",kwnames)) goto fail;
7723 {
7724 PyThreadState* __tstate = wxPyBeginAllowThreads();
7725 result = (wxLogStderr *)new wxLogStderr();
7726
7727 wxPyEndAllowThreads(__tstate);
7728 if (PyErr_Occurred()) SWIG_fail;
7729 }
7730 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogStderr, 1);
7731 return resultobj;
7732 fail:
7733 return NULL;
7734 }
7735
7736
7737 static PyObject * LogStderr_swigregister(PyObject *self, PyObject *args) {
7738 PyObject *obj;
7739 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7740 SWIG_TypeClientData(SWIGTYPE_p_wxLogStderr, obj);
7741 Py_INCREF(obj);
7742 return Py_BuildValue((char *)"");
7743 }
7744 static PyObject *_wrap_new_LogTextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
7745 PyObject *resultobj;
7746 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
7747 wxLogTextCtrl *result;
7748 PyObject * obj0 = 0 ;
7749 char *kwnames[] = {
7750 (char *) "pTextCtrl", NULL
7751 };
7752
7753 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_LogTextCtrl",kwnames,&obj0)) goto fail;
7754 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
7755 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7756 {
7757 PyThreadState* __tstate = wxPyBeginAllowThreads();
7758 result = (wxLogTextCtrl *)new wxLogTextCtrl(arg1);
7759
7760 wxPyEndAllowThreads(__tstate);
7761 if (PyErr_Occurred()) SWIG_fail;
7762 }
7763 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogTextCtrl, 1);
7764 return resultobj;
7765 fail:
7766 return NULL;
7767 }
7768
7769
7770 static PyObject * LogTextCtrl_swigregister(PyObject *self, PyObject *args) {
7771 PyObject *obj;
7772 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7773 SWIG_TypeClientData(SWIGTYPE_p_wxLogTextCtrl, obj);
7774 Py_INCREF(obj);
7775 return Py_BuildValue((char *)"");
7776 }
7777 static PyObject *_wrap_new_LogGui(PyObject *self, PyObject *args, PyObject *kwargs) {
7778 PyObject *resultobj;
7779 wxLogGui *result;
7780 char *kwnames[] = {
7781 NULL
7782 };
7783
7784 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogGui",kwnames)) goto fail;
7785 {
7786 PyThreadState* __tstate = wxPyBeginAllowThreads();
7787 result = (wxLogGui *)new wxLogGui();
7788
7789 wxPyEndAllowThreads(__tstate);
7790 if (PyErr_Occurred()) SWIG_fail;
7791 }
7792 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogGui, 1);
7793 return resultobj;
7794 fail:
7795 return NULL;
7796 }
7797
7798
7799 static PyObject * LogGui_swigregister(PyObject *self, PyObject *args) {
7800 PyObject *obj;
7801 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7802 SWIG_TypeClientData(SWIGTYPE_p_wxLogGui, obj);
7803 Py_INCREF(obj);
7804 return Py_BuildValue((char *)"");
7805 }
7806 static PyObject *_wrap_new_LogWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
7807 PyObject *resultobj;
7808 wxFrame *arg1 = (wxFrame *) 0 ;
7809 wxString *arg2 = 0 ;
7810 bool arg3 = (bool) True ;
7811 bool arg4 = (bool) True ;
7812 wxLogWindow *result;
7813 bool temp2 = False ;
7814 PyObject * obj0 = 0 ;
7815 PyObject * obj1 = 0 ;
7816 PyObject * obj2 = 0 ;
7817 PyObject * obj3 = 0 ;
7818 char *kwnames[] = {
7819 (char *) "pParent",(char *) "szTitle",(char *) "bShow",(char *) "bPassToOld", NULL
7820 };
7821
7822 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_LogWindow",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
7823 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame,
7824 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7825 {
7826 arg2 = wxString_in_helper(obj1);
7827 if (arg2 == NULL) SWIG_fail;
7828 temp2 = True;
7829 }
7830 if (obj2) {
7831 arg3 = (bool) SWIG_AsBool(obj2);
7832 if (PyErr_Occurred()) SWIG_fail;
7833 }
7834 if (obj3) {
7835 arg4 = (bool) SWIG_AsBool(obj3);
7836 if (PyErr_Occurred()) SWIG_fail;
7837 }
7838 {
7839 PyThreadState* __tstate = wxPyBeginAllowThreads();
7840 result = (wxLogWindow *)new wxLogWindow(arg1,(wxString const &)*arg2,arg3,arg4);
7841
7842 wxPyEndAllowThreads(__tstate);
7843 if (PyErr_Occurred()) SWIG_fail;
7844 }
7845 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogWindow, 1);
7846 {
7847 if (temp2)
7848 delete arg2;
7849 }
7850 return resultobj;
7851 fail:
7852 {
7853 if (temp2)
7854 delete arg2;
7855 }
7856 return NULL;
7857 }
7858
7859
7860 static PyObject *_wrap_LogWindow_Show(PyObject *self, PyObject *args, PyObject *kwargs) {
7861 PyObject *resultobj;
7862 wxLogWindow *arg1 = (wxLogWindow *) 0 ;
7863 bool arg2 = (bool) True ;
7864 PyObject * obj0 = 0 ;
7865 PyObject * obj1 = 0 ;
7866 char *kwnames[] = {
7867 (char *) "self",(char *) "bShow", NULL
7868 };
7869
7870 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:LogWindow_Show",kwnames,&obj0,&obj1)) goto fail;
7871 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow,
7872 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7873 if (obj1) {
7874 arg2 = (bool) SWIG_AsBool(obj1);
7875 if (PyErr_Occurred()) SWIG_fail;
7876 }
7877 {
7878 PyThreadState* __tstate = wxPyBeginAllowThreads();
7879 (arg1)->Show(arg2);
7880
7881 wxPyEndAllowThreads(__tstate);
7882 if (PyErr_Occurred()) SWIG_fail;
7883 }
7884 Py_INCREF(Py_None); resultobj = Py_None;
7885 return resultobj;
7886 fail:
7887 return NULL;
7888 }
7889
7890
7891 static PyObject *_wrap_LogWindow_GetFrame(PyObject *self, PyObject *args, PyObject *kwargs) {
7892 PyObject *resultobj;
7893 wxLogWindow *arg1 = (wxLogWindow *) 0 ;
7894 wxFrame *result;
7895 PyObject * obj0 = 0 ;
7896 char *kwnames[] = {
7897 (char *) "self", NULL
7898 };
7899
7900 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_GetFrame",kwnames,&obj0)) goto fail;
7901 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow,
7902 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7903 {
7904 PyThreadState* __tstate = wxPyBeginAllowThreads();
7905 result = (wxFrame *)((wxLogWindow const *)arg1)->GetFrame();
7906
7907 wxPyEndAllowThreads(__tstate);
7908 if (PyErr_Occurred()) SWIG_fail;
7909 }
7910 {
7911 resultobj = wxPyMake_wxObject(result);
7912 }
7913 return resultobj;
7914 fail:
7915 return NULL;
7916 }
7917
7918
7919 static PyObject *_wrap_LogWindow_GetOldLog(PyObject *self, PyObject *args, PyObject *kwargs) {
7920 PyObject *resultobj;
7921 wxLogWindow *arg1 = (wxLogWindow *) 0 ;
7922 wxLog *result;
7923 PyObject * obj0 = 0 ;
7924 char *kwnames[] = {
7925 (char *) "self", NULL
7926 };
7927
7928 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_GetOldLog",kwnames,&obj0)) goto fail;
7929 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow,
7930 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7931 {
7932 PyThreadState* __tstate = wxPyBeginAllowThreads();
7933 result = (wxLog *)((wxLogWindow const *)arg1)->GetOldLog();
7934
7935 wxPyEndAllowThreads(__tstate);
7936 if (PyErr_Occurred()) SWIG_fail;
7937 }
7938 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0);
7939 return resultobj;
7940 fail:
7941 return NULL;
7942 }
7943
7944
7945 static PyObject *_wrap_LogWindow_IsPassingMessages(PyObject *self, PyObject *args, PyObject *kwargs) {
7946 PyObject *resultobj;
7947 wxLogWindow *arg1 = (wxLogWindow *) 0 ;
7948 bool result;
7949 PyObject * obj0 = 0 ;
7950 char *kwnames[] = {
7951 (char *) "self", NULL
7952 };
7953
7954 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWindow_IsPassingMessages",kwnames,&obj0)) goto fail;
7955 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow,
7956 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7957 {
7958 PyThreadState* __tstate = wxPyBeginAllowThreads();
7959 result = (bool)((wxLogWindow const *)arg1)->IsPassingMessages();
7960
7961 wxPyEndAllowThreads(__tstate);
7962 if (PyErr_Occurred()) SWIG_fail;
7963 }
7964 {
7965 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7966 }
7967 return resultobj;
7968 fail:
7969 return NULL;
7970 }
7971
7972
7973 static PyObject *_wrap_LogWindow_PassMessages(PyObject *self, PyObject *args, PyObject *kwargs) {
7974 PyObject *resultobj;
7975 wxLogWindow *arg1 = (wxLogWindow *) 0 ;
7976 bool arg2 ;
7977 PyObject * obj0 = 0 ;
7978 PyObject * obj1 = 0 ;
7979 char *kwnames[] = {
7980 (char *) "self",(char *) "bDoPass", NULL
7981 };
7982
7983 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogWindow_PassMessages",kwnames,&obj0,&obj1)) goto fail;
7984 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogWindow,
7985 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7986 arg2 = (bool) SWIG_AsBool(obj1);
7987 if (PyErr_Occurred()) SWIG_fail;
7988 {
7989 PyThreadState* __tstate = wxPyBeginAllowThreads();
7990 (arg1)->PassMessages(arg2);
7991
7992 wxPyEndAllowThreads(__tstate);
7993 if (PyErr_Occurred()) SWIG_fail;
7994 }
7995 Py_INCREF(Py_None); resultobj = Py_None;
7996 return resultobj;
7997 fail:
7998 return NULL;
7999 }
8000
8001
8002 static PyObject * LogWindow_swigregister(PyObject *self, PyObject *args) {
8003 PyObject *obj;
8004 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8005 SWIG_TypeClientData(SWIGTYPE_p_wxLogWindow, obj);
8006 Py_INCREF(obj);
8007 return Py_BuildValue((char *)"");
8008 }
8009 static PyObject *_wrap_new_LogChain(PyObject *self, PyObject *args, PyObject *kwargs) {
8010 PyObject *resultobj;
8011 wxLog *arg1 = (wxLog *) 0 ;
8012 wxLogChain *result;
8013 PyObject * obj0 = 0 ;
8014 char *kwnames[] = {
8015 (char *) "logger", NULL
8016 };
8017
8018 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_LogChain",kwnames,&obj0)) goto fail;
8019 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLog,
8020 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8021 {
8022 PyThreadState* __tstate = wxPyBeginAllowThreads();
8023 result = (wxLogChain *)new wxLogChain(arg1);
8024
8025 wxPyEndAllowThreads(__tstate);
8026 if (PyErr_Occurred()) SWIG_fail;
8027 }
8028 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogChain, 1);
8029 return resultobj;
8030 fail:
8031 return NULL;
8032 }
8033
8034
8035 static PyObject *_wrap_LogChain_SetLog(PyObject *self, PyObject *args, PyObject *kwargs) {
8036 PyObject *resultobj;
8037 wxLogChain *arg1 = (wxLogChain *) 0 ;
8038 wxLog *arg2 = (wxLog *) 0 ;
8039 PyObject * obj0 = 0 ;
8040 PyObject * obj1 = 0 ;
8041 char *kwnames[] = {
8042 (char *) "self",(char *) "logger", NULL
8043 };
8044
8045 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogChain_SetLog",kwnames,&obj0,&obj1)) goto fail;
8046 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain,
8047 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8048 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxLog,
8049 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8050 {
8051 PyThreadState* __tstate = wxPyBeginAllowThreads();
8052 (arg1)->SetLog(arg2);
8053
8054 wxPyEndAllowThreads(__tstate);
8055 if (PyErr_Occurred()) SWIG_fail;
8056 }
8057 Py_INCREF(Py_None); resultobj = Py_None;
8058 return resultobj;
8059 fail:
8060 return NULL;
8061 }
8062
8063
8064 static PyObject *_wrap_LogChain_PassMessages(PyObject *self, PyObject *args, PyObject *kwargs) {
8065 PyObject *resultobj;
8066 wxLogChain *arg1 = (wxLogChain *) 0 ;
8067 bool arg2 ;
8068 PyObject * obj0 = 0 ;
8069 PyObject * obj1 = 0 ;
8070 char *kwnames[] = {
8071 (char *) "self",(char *) "bDoPass", NULL
8072 };
8073
8074 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogChain_PassMessages",kwnames,&obj0,&obj1)) goto fail;
8075 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain,
8076 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8077 arg2 = (bool) SWIG_AsBool(obj1);
8078 if (PyErr_Occurred()) SWIG_fail;
8079 {
8080 PyThreadState* __tstate = wxPyBeginAllowThreads();
8081 (arg1)->PassMessages(arg2);
8082
8083 wxPyEndAllowThreads(__tstate);
8084 if (PyErr_Occurred()) SWIG_fail;
8085 }
8086 Py_INCREF(Py_None); resultobj = Py_None;
8087 return resultobj;
8088 fail:
8089 return NULL;
8090 }
8091
8092
8093 static PyObject *_wrap_LogChain_IsPassingMessages(PyObject *self, PyObject *args, PyObject *kwargs) {
8094 PyObject *resultobj;
8095 wxLogChain *arg1 = (wxLogChain *) 0 ;
8096 bool result;
8097 PyObject * obj0 = 0 ;
8098 char *kwnames[] = {
8099 (char *) "self", NULL
8100 };
8101
8102 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogChain_IsPassingMessages",kwnames,&obj0)) goto fail;
8103 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain,
8104 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8105 {
8106 PyThreadState* __tstate = wxPyBeginAllowThreads();
8107 result = (bool)(arg1)->IsPassingMessages();
8108
8109 wxPyEndAllowThreads(__tstate);
8110 if (PyErr_Occurred()) SWIG_fail;
8111 }
8112 {
8113 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8114 }
8115 return resultobj;
8116 fail:
8117 return NULL;
8118 }
8119
8120
8121 static PyObject *_wrap_LogChain_GetOldLog(PyObject *self, PyObject *args, PyObject *kwargs) {
8122 PyObject *resultobj;
8123 wxLogChain *arg1 = (wxLogChain *) 0 ;
8124 wxLog *result;
8125 PyObject * obj0 = 0 ;
8126 char *kwnames[] = {
8127 (char *) "self", NULL
8128 };
8129
8130 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogChain_GetOldLog",kwnames,&obj0)) goto fail;
8131 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogChain,
8132 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8133 {
8134 PyThreadState* __tstate = wxPyBeginAllowThreads();
8135 result = (wxLog *)(arg1)->GetOldLog();
8136
8137 wxPyEndAllowThreads(__tstate);
8138 if (PyErr_Occurred()) SWIG_fail;
8139 }
8140 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLog, 0);
8141 return resultobj;
8142 fail:
8143 return NULL;
8144 }
8145
8146
8147 static PyObject * LogChain_swigregister(PyObject *self, PyObject *args) {
8148 PyObject *obj;
8149 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8150 SWIG_TypeClientData(SWIGTYPE_p_wxLogChain, obj);
8151 Py_INCREF(obj);
8152 return Py_BuildValue((char *)"");
8153 }
8154 static PyObject *_wrap_SysErrorCode(PyObject *self, PyObject *args, PyObject *kwargs) {
8155 PyObject *resultobj;
8156 unsigned long result;
8157 char *kwnames[] = {
8158 NULL
8159 };
8160
8161 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":SysErrorCode",kwnames)) goto fail;
8162 {
8163 PyThreadState* __tstate = wxPyBeginAllowThreads();
8164 result = (unsigned long)wxSysErrorCode();
8165
8166 wxPyEndAllowThreads(__tstate);
8167 if (PyErr_Occurred()) SWIG_fail;
8168 }
8169 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
8170 return resultobj;
8171 fail:
8172 return NULL;
8173 }
8174
8175
8176 static PyObject *_wrap_SysErrorMsg(PyObject *self, PyObject *args, PyObject *kwargs) {
8177 PyObject *resultobj;
8178 unsigned long arg1 = (unsigned long) 0 ;
8179 wxString result;
8180 PyObject * obj0 = 0 ;
8181 char *kwnames[] = {
8182 (char *) "nErrCode", NULL
8183 };
8184
8185 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SysErrorMsg",kwnames,&obj0)) goto fail;
8186 if (obj0) {
8187 arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0);
8188 if (PyErr_Occurred()) SWIG_fail;
8189 }
8190 {
8191 PyThreadState* __tstate = wxPyBeginAllowThreads();
8192 result = wxSysErrorMsg(arg1);
8193
8194 wxPyEndAllowThreads(__tstate);
8195 if (PyErr_Occurred()) SWIG_fail;
8196 }
8197 {
8198 #if wxUSE_UNICODE
8199 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8200 #else
8201 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8202 #endif
8203 }
8204 return resultobj;
8205 fail:
8206 return NULL;
8207 }
8208
8209
8210 static PyObject *_wrap_LogFatalError(PyObject *self, PyObject *args, PyObject *kwargs) {
8211 PyObject *resultobj;
8212 wxString *arg1 = 0 ;
8213 bool temp1 = False ;
8214 PyObject * obj0 = 0 ;
8215 char *kwnames[] = {
8216 (char *) "msg", NULL
8217 };
8218
8219 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogFatalError",kwnames,&obj0)) goto fail;
8220 {
8221 arg1 = wxString_in_helper(obj0);
8222 if (arg1 == NULL) SWIG_fail;
8223 temp1 = True;
8224 }
8225 {
8226 PyThreadState* __tstate = wxPyBeginAllowThreads();
8227 wxLogFatalError((wxString const &)*arg1);
8228
8229 wxPyEndAllowThreads(__tstate);
8230 if (PyErr_Occurred()) SWIG_fail;
8231 }
8232 Py_INCREF(Py_None); resultobj = Py_None;
8233 {
8234 if (temp1)
8235 delete arg1;
8236 }
8237 return resultobj;
8238 fail:
8239 {
8240 if (temp1)
8241 delete arg1;
8242 }
8243 return NULL;
8244 }
8245
8246
8247 static PyObject *_wrap_LogError(PyObject *self, PyObject *args, PyObject *kwargs) {
8248 PyObject *resultobj;
8249 wxString *arg1 = 0 ;
8250 bool temp1 = False ;
8251 PyObject * obj0 = 0 ;
8252 char *kwnames[] = {
8253 (char *) "msg", NULL
8254 };
8255
8256 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogError",kwnames,&obj0)) goto fail;
8257 {
8258 arg1 = wxString_in_helper(obj0);
8259 if (arg1 == NULL) SWIG_fail;
8260 temp1 = True;
8261 }
8262 {
8263 PyThreadState* __tstate = wxPyBeginAllowThreads();
8264 wxLogError((wxString const &)*arg1);
8265
8266 wxPyEndAllowThreads(__tstate);
8267 if (PyErr_Occurred()) SWIG_fail;
8268 }
8269 Py_INCREF(Py_None); resultobj = Py_None;
8270 {
8271 if (temp1)
8272 delete arg1;
8273 }
8274 return resultobj;
8275 fail:
8276 {
8277 if (temp1)
8278 delete arg1;
8279 }
8280 return NULL;
8281 }
8282
8283
8284 static PyObject *_wrap_LogWarning(PyObject *self, PyObject *args, PyObject *kwargs) {
8285 PyObject *resultobj;
8286 wxString *arg1 = 0 ;
8287 bool temp1 = False ;
8288 PyObject * obj0 = 0 ;
8289 char *kwnames[] = {
8290 (char *) "msg", NULL
8291 };
8292
8293 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogWarning",kwnames,&obj0)) goto fail;
8294 {
8295 arg1 = wxString_in_helper(obj0);
8296 if (arg1 == NULL) SWIG_fail;
8297 temp1 = True;
8298 }
8299 {
8300 PyThreadState* __tstate = wxPyBeginAllowThreads();
8301 wxLogWarning((wxString const &)*arg1);
8302
8303 wxPyEndAllowThreads(__tstate);
8304 if (PyErr_Occurred()) SWIG_fail;
8305 }
8306 Py_INCREF(Py_None); resultobj = Py_None;
8307 {
8308 if (temp1)
8309 delete arg1;
8310 }
8311 return resultobj;
8312 fail:
8313 {
8314 if (temp1)
8315 delete arg1;
8316 }
8317 return NULL;
8318 }
8319
8320
8321 static PyObject *_wrap_LogMessage(PyObject *self, PyObject *args, PyObject *kwargs) {
8322 PyObject *resultobj;
8323 wxString *arg1 = 0 ;
8324 bool temp1 = False ;
8325 PyObject * obj0 = 0 ;
8326 char *kwnames[] = {
8327 (char *) "msg", NULL
8328 };
8329
8330 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogMessage",kwnames,&obj0)) goto fail;
8331 {
8332 arg1 = wxString_in_helper(obj0);
8333 if (arg1 == NULL) SWIG_fail;
8334 temp1 = True;
8335 }
8336 {
8337 PyThreadState* __tstate = wxPyBeginAllowThreads();
8338 wxLogMessage((wxString const &)*arg1);
8339
8340 wxPyEndAllowThreads(__tstate);
8341 if (PyErr_Occurred()) SWIG_fail;
8342 }
8343 Py_INCREF(Py_None); resultobj = Py_None;
8344 {
8345 if (temp1)
8346 delete arg1;
8347 }
8348 return resultobj;
8349 fail:
8350 {
8351 if (temp1)
8352 delete arg1;
8353 }
8354 return NULL;
8355 }
8356
8357
8358 static PyObject *_wrap_LogInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8359 PyObject *resultobj;
8360 wxString *arg1 = 0 ;
8361 bool temp1 = False ;
8362 PyObject * obj0 = 0 ;
8363 char *kwnames[] = {
8364 (char *) "msg", NULL
8365 };
8366
8367 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogInfo",kwnames,&obj0)) goto fail;
8368 {
8369 arg1 = wxString_in_helper(obj0);
8370 if (arg1 == NULL) SWIG_fail;
8371 temp1 = True;
8372 }
8373 {
8374 PyThreadState* __tstate = wxPyBeginAllowThreads();
8375 wxLogInfo((wxString const &)*arg1);
8376
8377 wxPyEndAllowThreads(__tstate);
8378 if (PyErr_Occurred()) SWIG_fail;
8379 }
8380 Py_INCREF(Py_None); resultobj = Py_None;
8381 {
8382 if (temp1)
8383 delete arg1;
8384 }
8385 return resultobj;
8386 fail:
8387 {
8388 if (temp1)
8389 delete arg1;
8390 }
8391 return NULL;
8392 }
8393
8394
8395 static PyObject *_wrap_LogDebug(PyObject *self, PyObject *args, PyObject *kwargs) {
8396 PyObject *resultobj;
8397 wxString *arg1 = 0 ;
8398 bool temp1 = False ;
8399 PyObject * obj0 = 0 ;
8400 char *kwnames[] = {
8401 (char *) "msg", NULL
8402 };
8403
8404 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogDebug",kwnames,&obj0)) goto fail;
8405 {
8406 arg1 = wxString_in_helper(obj0);
8407 if (arg1 == NULL) SWIG_fail;
8408 temp1 = True;
8409 }
8410 {
8411 PyThreadState* __tstate = wxPyBeginAllowThreads();
8412 wxLogDebug((wxString const &)*arg1);
8413
8414 wxPyEndAllowThreads(__tstate);
8415 if (PyErr_Occurred()) SWIG_fail;
8416 }
8417 Py_INCREF(Py_None); resultobj = Py_None;
8418 {
8419 if (temp1)
8420 delete arg1;
8421 }
8422 return resultobj;
8423 fail:
8424 {
8425 if (temp1)
8426 delete arg1;
8427 }
8428 return NULL;
8429 }
8430
8431
8432 static PyObject *_wrap_LogVerbose(PyObject *self, PyObject *args, PyObject *kwargs) {
8433 PyObject *resultobj;
8434 wxString *arg1 = 0 ;
8435 bool temp1 = False ;
8436 PyObject * obj0 = 0 ;
8437 char *kwnames[] = {
8438 (char *) "msg", NULL
8439 };
8440
8441 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogVerbose",kwnames,&obj0)) goto fail;
8442 {
8443 arg1 = wxString_in_helper(obj0);
8444 if (arg1 == NULL) SWIG_fail;
8445 temp1 = True;
8446 }
8447 {
8448 PyThreadState* __tstate = wxPyBeginAllowThreads();
8449 wxLogVerbose((wxString const &)*arg1);
8450
8451 wxPyEndAllowThreads(__tstate);
8452 if (PyErr_Occurred()) SWIG_fail;
8453 }
8454 Py_INCREF(Py_None); resultobj = Py_None;
8455 {
8456 if (temp1)
8457 delete arg1;
8458 }
8459 return resultobj;
8460 fail:
8461 {
8462 if (temp1)
8463 delete arg1;
8464 }
8465 return NULL;
8466 }
8467
8468
8469 static PyObject *_wrap_LogStatus(PyObject *self, PyObject *args, PyObject *kwargs) {
8470 PyObject *resultobj;
8471 wxString *arg1 = 0 ;
8472 bool temp1 = False ;
8473 PyObject * obj0 = 0 ;
8474 char *kwnames[] = {
8475 (char *) "msg", NULL
8476 };
8477
8478 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogStatus",kwnames,&obj0)) goto fail;
8479 {
8480 arg1 = wxString_in_helper(obj0);
8481 if (arg1 == NULL) SWIG_fail;
8482 temp1 = True;
8483 }
8484 {
8485 PyThreadState* __tstate = wxPyBeginAllowThreads();
8486 wxLogStatus((wxString const &)*arg1);
8487
8488 wxPyEndAllowThreads(__tstate);
8489 if (PyErr_Occurred()) SWIG_fail;
8490 }
8491 Py_INCREF(Py_None); resultobj = Py_None;
8492 {
8493 if (temp1)
8494 delete arg1;
8495 }
8496 return resultobj;
8497 fail:
8498 {
8499 if (temp1)
8500 delete arg1;
8501 }
8502 return NULL;
8503 }
8504
8505
8506 static PyObject *_wrap_LogStatusFrame(PyObject *self, PyObject *args, PyObject *kwargs) {
8507 PyObject *resultobj;
8508 wxFrame *arg1 = (wxFrame *) 0 ;
8509 wxString *arg2 = 0 ;
8510 bool temp2 = False ;
8511 PyObject * obj0 = 0 ;
8512 PyObject * obj1 = 0 ;
8513 char *kwnames[] = {
8514 (char *) "pFrame",(char *) "msg", NULL
8515 };
8516
8517 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogStatusFrame",kwnames,&obj0,&obj1)) goto fail;
8518 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFrame,
8519 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8520 {
8521 arg2 = wxString_in_helper(obj1);
8522 if (arg2 == NULL) SWIG_fail;
8523 temp2 = True;
8524 }
8525 {
8526 PyThreadState* __tstate = wxPyBeginAllowThreads();
8527 wxLogStatus(arg1,(wxString const &)*arg2);
8528
8529 wxPyEndAllowThreads(__tstate);
8530 if (PyErr_Occurred()) SWIG_fail;
8531 }
8532 Py_INCREF(Py_None); resultobj = Py_None;
8533 {
8534 if (temp2)
8535 delete arg2;
8536 }
8537 return resultobj;
8538 fail:
8539 {
8540 if (temp2)
8541 delete arg2;
8542 }
8543 return NULL;
8544 }
8545
8546
8547 static PyObject *_wrap_LogSysError(PyObject *self, PyObject *args, PyObject *kwargs) {
8548 PyObject *resultobj;
8549 wxString *arg1 = 0 ;
8550 bool temp1 = False ;
8551 PyObject * obj0 = 0 ;
8552 char *kwnames[] = {
8553 (char *) "msg", NULL
8554 };
8555
8556 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LogSysError",kwnames,&obj0)) goto fail;
8557 {
8558 arg1 = wxString_in_helper(obj0);
8559 if (arg1 == NULL) SWIG_fail;
8560 temp1 = True;
8561 }
8562 {
8563 PyThreadState* __tstate = wxPyBeginAllowThreads();
8564 wxLogSysError((wxString const &)*arg1);
8565
8566 wxPyEndAllowThreads(__tstate);
8567 if (PyErr_Occurred()) SWIG_fail;
8568 }
8569 Py_INCREF(Py_None); resultobj = Py_None;
8570 {
8571 if (temp1)
8572 delete arg1;
8573 }
8574 return resultobj;
8575 fail:
8576 {
8577 if (temp1)
8578 delete arg1;
8579 }
8580 return NULL;
8581 }
8582
8583
8584 static PyObject *_wrap_LogTrace__SWIG_0(PyObject *self, PyObject *args) {
8585 PyObject *resultobj;
8586 unsigned long arg1 ;
8587 wxString *arg2 = 0 ;
8588 bool temp2 = False ;
8589 PyObject * obj0 = 0 ;
8590 PyObject * obj1 = 0 ;
8591
8592 if(!PyArg_ParseTuple(args,(char *)"OO:LogTrace",&obj0,&obj1)) goto fail;
8593 arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0);
8594 if (PyErr_Occurred()) SWIG_fail;
8595 {
8596 arg2 = wxString_in_helper(obj1);
8597 if (arg2 == NULL) SWIG_fail;
8598 temp2 = True;
8599 }
8600 {
8601 PyThreadState* __tstate = wxPyBeginAllowThreads();
8602 wxLogTrace(arg1,(wxString const &)*arg2);
8603
8604 wxPyEndAllowThreads(__tstate);
8605 if (PyErr_Occurred()) SWIG_fail;
8606 }
8607 Py_INCREF(Py_None); resultobj = Py_None;
8608 {
8609 if (temp2)
8610 delete arg2;
8611 }
8612 return resultobj;
8613 fail:
8614 {
8615 if (temp2)
8616 delete arg2;
8617 }
8618 return NULL;
8619 }
8620
8621
8622 static PyObject *_wrap_LogTrace__SWIG_1(PyObject *self, PyObject *args) {
8623 PyObject *resultobj;
8624 wxString *arg1 = 0 ;
8625 wxString *arg2 = 0 ;
8626 bool temp1 = False ;
8627 bool temp2 = False ;
8628 PyObject * obj0 = 0 ;
8629 PyObject * obj1 = 0 ;
8630
8631 if(!PyArg_ParseTuple(args,(char *)"OO:LogTrace",&obj0,&obj1)) goto fail;
8632 {
8633 arg1 = wxString_in_helper(obj0);
8634 if (arg1 == NULL) SWIG_fail;
8635 temp1 = True;
8636 }
8637 {
8638 arg2 = wxString_in_helper(obj1);
8639 if (arg2 == NULL) SWIG_fail;
8640 temp2 = True;
8641 }
8642 {
8643 PyThreadState* __tstate = wxPyBeginAllowThreads();
8644 wxLogTrace((wxString const &)*arg1,(wxString const &)*arg2);
8645
8646 wxPyEndAllowThreads(__tstate);
8647 if (PyErr_Occurred()) SWIG_fail;
8648 }
8649 Py_INCREF(Py_None); resultobj = Py_None;
8650 {
8651 if (temp1)
8652 delete arg1;
8653 }
8654 {
8655 if (temp2)
8656 delete arg2;
8657 }
8658 return resultobj;
8659 fail:
8660 {
8661 if (temp1)
8662 delete arg1;
8663 }
8664 {
8665 if (temp2)
8666 delete arg2;
8667 }
8668 return NULL;
8669 }
8670
8671
8672 static PyObject *_wrap_LogTrace(PyObject *self, PyObject *args) {
8673 int argc;
8674 PyObject *argv[3];
8675 int ii;
8676
8677 argc = PyObject_Length(args);
8678 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
8679 argv[ii] = PyTuple_GetItem(args,ii);
8680 }
8681 if (argc == 2) {
8682 int _v;
8683 {
8684 _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]);
8685 }
8686 if (_v) {
8687 {
8688 _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]);
8689 }
8690 if (_v) {
8691 return _wrap_LogTrace__SWIG_1(self,args);
8692 }
8693 }
8694 }
8695 if (argc == 2) {
8696 int _v;
8697 _v = SWIG_CheckUnsignedLong(argv[0]);
8698 if (_v) {
8699 {
8700 _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]);
8701 }
8702 if (_v) {
8703 return _wrap_LogTrace__SWIG_0(self,args);
8704 }
8705 }
8706 }
8707
8708 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'LogTrace'");
8709 return NULL;
8710 }
8711
8712
8713 static PyObject *_wrap_LogGeneric(PyObject *self, PyObject *args, PyObject *kwargs) {
8714 PyObject *resultobj;
8715 unsigned long arg1 ;
8716 wxString *arg2 = 0 ;
8717 bool temp2 = False ;
8718 PyObject * obj0 = 0 ;
8719 PyObject * obj1 = 0 ;
8720 char *kwnames[] = {
8721 (char *) "level",(char *) "msg", NULL
8722 };
8723
8724 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LogGeneric",kwnames,&obj0,&obj1)) goto fail;
8725 arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0);
8726 if (PyErr_Occurred()) SWIG_fail;
8727 {
8728 arg2 = wxString_in_helper(obj1);
8729 if (arg2 == NULL) SWIG_fail;
8730 temp2 = True;
8731 }
8732 {
8733 PyThreadState* __tstate = wxPyBeginAllowThreads();
8734 wxLogGeneric(arg1,(wxString const &)*arg2);
8735
8736 wxPyEndAllowThreads(__tstate);
8737 if (PyErr_Occurred()) SWIG_fail;
8738 }
8739 Py_INCREF(Py_None); resultobj = Py_None;
8740 {
8741 if (temp2)
8742 delete arg2;
8743 }
8744 return resultobj;
8745 fail:
8746 {
8747 if (temp2)
8748 delete arg2;
8749 }
8750 return NULL;
8751 }
8752
8753
8754 static PyObject *_wrap_SafeShowMessage(PyObject *self, PyObject *args, PyObject *kwargs) {
8755 PyObject *resultobj;
8756 wxString *arg1 = 0 ;
8757 wxString *arg2 = 0 ;
8758 bool temp1 = False ;
8759 bool temp2 = False ;
8760 PyObject * obj0 = 0 ;
8761 PyObject * obj1 = 0 ;
8762 char *kwnames[] = {
8763 (char *) "title",(char *) "text", NULL
8764 };
8765
8766 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SafeShowMessage",kwnames,&obj0,&obj1)) goto fail;
8767 {
8768 arg1 = wxString_in_helper(obj0);
8769 if (arg1 == NULL) SWIG_fail;
8770 temp1 = True;
8771 }
8772 {
8773 arg2 = wxString_in_helper(obj1);
8774 if (arg2 == NULL) SWIG_fail;
8775 temp2 = True;
8776 }
8777 {
8778 PyThreadState* __tstate = wxPyBeginAllowThreads();
8779 wxSafeShowMessage((wxString const &)*arg1,(wxString const &)*arg2);
8780
8781 wxPyEndAllowThreads(__tstate);
8782 if (PyErr_Occurred()) SWIG_fail;
8783 }
8784 Py_INCREF(Py_None); resultobj = Py_None;
8785 {
8786 if (temp1)
8787 delete arg1;
8788 }
8789 {
8790 if (temp2)
8791 delete arg2;
8792 }
8793 return resultobj;
8794 fail:
8795 {
8796 if (temp1)
8797 delete arg1;
8798 }
8799 {
8800 if (temp2)
8801 delete arg2;
8802 }
8803 return NULL;
8804 }
8805
8806
8807 static PyObject *_wrap_new_LogNull(PyObject *self, PyObject *args, PyObject *kwargs) {
8808 PyObject *resultobj;
8809 wxLogNull *result;
8810 char *kwnames[] = {
8811 NULL
8812 };
8813
8814 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_LogNull",kwnames)) goto fail;
8815 {
8816 PyThreadState* __tstate = wxPyBeginAllowThreads();
8817 result = (wxLogNull *)new wxLogNull();
8818
8819 wxPyEndAllowThreads(__tstate);
8820 if (PyErr_Occurred()) SWIG_fail;
8821 }
8822 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLogNull, 1);
8823 return resultobj;
8824 fail:
8825 return NULL;
8826 }
8827
8828
8829 static PyObject *_wrap_delete_LogNull(PyObject *self, PyObject *args, PyObject *kwargs) {
8830 PyObject *resultobj;
8831 wxLogNull *arg1 = (wxLogNull *) 0 ;
8832 PyObject * obj0 = 0 ;
8833 char *kwnames[] = {
8834 (char *) "self", NULL
8835 };
8836
8837 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_LogNull",kwnames,&obj0)) goto fail;
8838 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLogNull,
8839 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8840 {
8841 PyThreadState* __tstate = wxPyBeginAllowThreads();
8842 delete arg1;
8843
8844 wxPyEndAllowThreads(__tstate);
8845 if (PyErr_Occurred()) SWIG_fail;
8846 }
8847 Py_INCREF(Py_None); resultobj = Py_None;
8848 return resultobj;
8849 fail:
8850 return NULL;
8851 }
8852
8853
8854 static PyObject * LogNull_swigregister(PyObject *self, PyObject *args) {
8855 PyObject *obj;
8856 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8857 SWIG_TypeClientData(SWIGTYPE_p_wxLogNull, obj);
8858 Py_INCREF(obj);
8859 return Py_BuildValue((char *)"");
8860 }
8861 static PyObject *_wrap_new_PyLog(PyObject *self, PyObject *args, PyObject *kwargs) {
8862 PyObject *resultobj;
8863 wxPyLog *result;
8864 char *kwnames[] = {
8865 NULL
8866 };
8867
8868 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PyLog",kwnames)) goto fail;
8869 {
8870 PyThreadState* __tstate = wxPyBeginAllowThreads();
8871 result = (wxPyLog *)new wxPyLog();
8872
8873 wxPyEndAllowThreads(__tstate);
8874 if (PyErr_Occurred()) SWIG_fail;
8875 }
8876 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyLog, 1);
8877 return resultobj;
8878 fail:
8879 return NULL;
8880 }
8881
8882
8883 static PyObject *_wrap_PyLog__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8884 PyObject *resultobj;
8885 wxPyLog *arg1 = (wxPyLog *) 0 ;
8886 PyObject *arg2 = (PyObject *) 0 ;
8887 PyObject *arg3 = (PyObject *) 0 ;
8888 PyObject * obj0 = 0 ;
8889 PyObject * obj1 = 0 ;
8890 PyObject * obj2 = 0 ;
8891 char *kwnames[] = {
8892 (char *) "self",(char *) "self",(char *) "_class", NULL
8893 };
8894
8895 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLog__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
8896 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyLog,
8897 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8898 arg2 = obj1;
8899 arg3 = obj2;
8900 {
8901 PyThreadState* __tstate = wxPyBeginAllowThreads();
8902 (arg1)->_setCallbackInfo(arg2,arg3);
8903
8904 wxPyEndAllowThreads(__tstate);
8905 if (PyErr_Occurred()) SWIG_fail;
8906 }
8907 Py_INCREF(Py_None); resultobj = Py_None;
8908 return resultobj;
8909 fail:
8910 return NULL;
8911 }
8912
8913
8914 static PyObject * PyLog_swigregister(PyObject *self, PyObject *args) {
8915 PyObject *obj;
8916 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8917 SWIG_TypeClientData(SWIGTYPE_p_wxPyLog, obj);
8918 Py_INCREF(obj);
8919 return Py_BuildValue((char *)"");
8920 }
8921 static PyObject *_wrap_Process_Kill(PyObject *self, PyObject *args, PyObject *kwargs) {
8922 PyObject *resultobj;
8923 int arg1 ;
8924 int arg2 = (int) wxSIGTERM ;
8925 int result;
8926 PyObject * obj0 = 0 ;
8927 PyObject * obj1 = 0 ;
8928 char *kwnames[] = {
8929 (char *) "pid",(char *) "sig", NULL
8930 };
8931
8932 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Process_Kill",kwnames,&obj0,&obj1)) goto fail;
8933 arg1 = (int) SWIG_AsInt(obj0);
8934 if (PyErr_Occurred()) SWIG_fail;
8935 if (obj1) {
8936 arg2 = (wxSignal) SWIG_AsInt(obj1);
8937 if (PyErr_Occurred()) SWIG_fail;
8938 }
8939 {
8940 PyThreadState* __tstate = wxPyBeginAllowThreads();
8941 result = (int)wxPyProcess::Kill(arg1,(wxSignal )arg2);
8942
8943 wxPyEndAllowThreads(__tstate);
8944 if (PyErr_Occurred()) SWIG_fail;
8945 }
8946 resultobj = SWIG_FromInt((int)result);
8947 return resultobj;
8948 fail:
8949 return NULL;
8950 }
8951
8952
8953 static PyObject *_wrap_Process_Exists(PyObject *self, PyObject *args, PyObject *kwargs) {
8954 PyObject *resultobj;
8955 int arg1 ;
8956 bool result;
8957 PyObject * obj0 = 0 ;
8958 char *kwnames[] = {
8959 (char *) "pid", NULL
8960 };
8961
8962 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Exists",kwnames,&obj0)) goto fail;
8963 arg1 = (int) SWIG_AsInt(obj0);
8964 if (PyErr_Occurred()) SWIG_fail;
8965 {
8966 PyThreadState* __tstate = wxPyBeginAllowThreads();
8967 result = (bool)wxPyProcess::Exists(arg1);
8968
8969 wxPyEndAllowThreads(__tstate);
8970 if (PyErr_Occurred()) SWIG_fail;
8971 }
8972 {
8973 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8974 }
8975 return resultobj;
8976 fail:
8977 return NULL;
8978 }
8979
8980
8981 static PyObject *_wrap_Process_Open(PyObject *self, PyObject *args, PyObject *kwargs) {
8982 PyObject *resultobj;
8983 wxString *arg1 = 0 ;
8984 int arg2 = (int) wxEXEC_ASYNC ;
8985 wxPyProcess *result;
8986 bool temp1 = False ;
8987 PyObject * obj0 = 0 ;
8988 PyObject * obj1 = 0 ;
8989 char *kwnames[] = {
8990 (char *) "cmd",(char *) "flags", NULL
8991 };
8992
8993 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Process_Open",kwnames,&obj0,&obj1)) goto fail;
8994 {
8995 arg1 = wxString_in_helper(obj0);
8996 if (arg1 == NULL) SWIG_fail;
8997 temp1 = True;
8998 }
8999 if (obj1) {
9000 arg2 = (int) SWIG_AsInt(obj1);
9001 if (PyErr_Occurred()) SWIG_fail;
9002 }
9003 {
9004 PyThreadState* __tstate = wxPyBeginAllowThreads();
9005 result = (wxPyProcess *)wxPyProcess::Open((wxString const &)*arg1,arg2);
9006
9007 wxPyEndAllowThreads(__tstate);
9008 if (PyErr_Occurred()) SWIG_fail;
9009 }
9010 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyProcess, 0);
9011 {
9012 if (temp1)
9013 delete arg1;
9014 }
9015 return resultobj;
9016 fail:
9017 {
9018 if (temp1)
9019 delete arg1;
9020 }
9021 return NULL;
9022 }
9023
9024
9025 static PyObject *_wrap_new_Process(PyObject *self, PyObject *args, PyObject *kwargs) {
9026 PyObject *resultobj;
9027 wxEvtHandler *arg1 = (wxEvtHandler *) NULL ;
9028 int arg2 = (int) -1 ;
9029 wxPyProcess *result;
9030 PyObject * obj0 = 0 ;
9031 PyObject * obj1 = 0 ;
9032 char *kwnames[] = {
9033 (char *) "parent",(char *) "id", NULL
9034 };
9035
9036 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Process",kwnames,&obj0,&obj1)) goto fail;
9037 if (obj0) {
9038 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEvtHandler,
9039 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9040 }
9041 if (obj1) {
9042 arg2 = (int) SWIG_AsInt(obj1);
9043 if (PyErr_Occurred()) SWIG_fail;
9044 }
9045 {
9046 PyThreadState* __tstate = wxPyBeginAllowThreads();
9047 result = (wxPyProcess *)new wxPyProcess(arg1,arg2);
9048
9049 wxPyEndAllowThreads(__tstate);
9050 if (PyErr_Occurred()) SWIG_fail;
9051 }
9052 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyProcess, 1);
9053 return resultobj;
9054 fail:
9055 return NULL;
9056 }
9057
9058
9059 static PyObject *_wrap_Process__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
9060 PyObject *resultobj;
9061 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9062 PyObject *arg2 = (PyObject *) 0 ;
9063 PyObject *arg3 = (PyObject *) 0 ;
9064 PyObject * obj0 = 0 ;
9065 PyObject * obj1 = 0 ;
9066 PyObject * obj2 = 0 ;
9067 char *kwnames[] = {
9068 (char *) "self",(char *) "self",(char *) "_class", NULL
9069 };
9070
9071 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Process__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
9072 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9073 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9074 arg2 = obj1;
9075 arg3 = obj2;
9076 {
9077 PyThreadState* __tstate = wxPyBeginAllowThreads();
9078 (arg1)->_setCallbackInfo(arg2,arg3);
9079
9080 wxPyEndAllowThreads(__tstate);
9081 if (PyErr_Occurred()) SWIG_fail;
9082 }
9083 Py_INCREF(Py_None); resultobj = Py_None;
9084 return resultobj;
9085 fail:
9086 return NULL;
9087 }
9088
9089
9090 static PyObject *_wrap_Process_base_OnTerminate(PyObject *self, PyObject *args, PyObject *kwargs) {
9091 PyObject *resultobj;
9092 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9093 int arg2 ;
9094 int arg3 ;
9095 PyObject * obj0 = 0 ;
9096 PyObject * obj1 = 0 ;
9097 PyObject * obj2 = 0 ;
9098 char *kwnames[] = {
9099 (char *) "self",(char *) "pid",(char *) "status", NULL
9100 };
9101
9102 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Process_base_OnTerminate",kwnames,&obj0,&obj1,&obj2)) goto fail;
9103 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9104 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9105 arg2 = (int) SWIG_AsInt(obj1);
9106 if (PyErr_Occurred()) SWIG_fail;
9107 arg3 = (int) SWIG_AsInt(obj2);
9108 if (PyErr_Occurred()) SWIG_fail;
9109 {
9110 PyThreadState* __tstate = wxPyBeginAllowThreads();
9111 (arg1)->base_OnTerminate(arg2,arg3);
9112
9113 wxPyEndAllowThreads(__tstate);
9114 if (PyErr_Occurred()) SWIG_fail;
9115 }
9116 Py_INCREF(Py_None); resultobj = Py_None;
9117 return resultobj;
9118 fail:
9119 return NULL;
9120 }
9121
9122
9123 static PyObject *_wrap_Process_Redirect(PyObject *self, PyObject *args, PyObject *kwargs) {
9124 PyObject *resultobj;
9125 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9126 PyObject * obj0 = 0 ;
9127 char *kwnames[] = {
9128 (char *) "self", NULL
9129 };
9130
9131 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Redirect",kwnames,&obj0)) goto fail;
9132 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9133 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9134 {
9135 PyThreadState* __tstate = wxPyBeginAllowThreads();
9136 (arg1)->Redirect();
9137
9138 wxPyEndAllowThreads(__tstate);
9139 if (PyErr_Occurred()) SWIG_fail;
9140 }
9141 Py_INCREF(Py_None); resultobj = Py_None;
9142 return resultobj;
9143 fail:
9144 return NULL;
9145 }
9146
9147
9148 static PyObject *_wrap_Process_IsRedirected(PyObject *self, PyObject *args, PyObject *kwargs) {
9149 PyObject *resultobj;
9150 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9151 bool result;
9152 PyObject * obj0 = 0 ;
9153 char *kwnames[] = {
9154 (char *) "self", NULL
9155 };
9156
9157 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsRedirected",kwnames,&obj0)) goto fail;
9158 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9159 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9160 {
9161 PyThreadState* __tstate = wxPyBeginAllowThreads();
9162 result = (bool)(arg1)->IsRedirected();
9163
9164 wxPyEndAllowThreads(__tstate);
9165 if (PyErr_Occurred()) SWIG_fail;
9166 }
9167 {
9168 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9169 }
9170 return resultobj;
9171 fail:
9172 return NULL;
9173 }
9174
9175
9176 static PyObject *_wrap_Process_Detach(PyObject *self, PyObject *args, PyObject *kwargs) {
9177 PyObject *resultobj;
9178 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9179 PyObject * obj0 = 0 ;
9180 char *kwnames[] = {
9181 (char *) "self", NULL
9182 };
9183
9184 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_Detach",kwnames,&obj0)) goto fail;
9185 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9186 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9187 {
9188 PyThreadState* __tstate = wxPyBeginAllowThreads();
9189 (arg1)->Detach();
9190
9191 wxPyEndAllowThreads(__tstate);
9192 if (PyErr_Occurred()) SWIG_fail;
9193 }
9194 Py_INCREF(Py_None); resultobj = Py_None;
9195 return resultobj;
9196 fail:
9197 return NULL;
9198 }
9199
9200
9201 static PyObject *_wrap_Process_GetInputStream(PyObject *self, PyObject *args, PyObject *kwargs) {
9202 PyObject *resultobj;
9203 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9204 wxInputStream *result;
9205 PyObject * obj0 = 0 ;
9206 char *kwnames[] = {
9207 (char *) "self", NULL
9208 };
9209
9210 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetInputStream",kwnames,&obj0)) goto fail;
9211 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9212 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9213 {
9214 PyThreadState* __tstate = wxPyBeginAllowThreads();
9215 result = (wxInputStream *)(arg1)->GetInputStream();
9216
9217 wxPyEndAllowThreads(__tstate);
9218 if (PyErr_Occurred()) SWIG_fail;
9219 }
9220 {
9221 wxPyInputStream * _ptr = NULL;
9222
9223 if (result) {
9224 _ptr = new wxPyInputStream(result);
9225 }
9226 resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), True);
9227 }
9228 return resultobj;
9229 fail:
9230 return NULL;
9231 }
9232
9233
9234 static PyObject *_wrap_Process_GetErrorStream(PyObject *self, PyObject *args, PyObject *kwargs) {
9235 PyObject *resultobj;
9236 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9237 wxInputStream *result;
9238 PyObject * obj0 = 0 ;
9239 char *kwnames[] = {
9240 (char *) "self", NULL
9241 };
9242
9243 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetErrorStream",kwnames,&obj0)) goto fail;
9244 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9245 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9246 {
9247 PyThreadState* __tstate = wxPyBeginAllowThreads();
9248 result = (wxInputStream *)(arg1)->GetErrorStream();
9249
9250 wxPyEndAllowThreads(__tstate);
9251 if (PyErr_Occurred()) SWIG_fail;
9252 }
9253 {
9254 wxPyInputStream * _ptr = NULL;
9255
9256 if (result) {
9257 _ptr = new wxPyInputStream(result);
9258 }
9259 resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), True);
9260 }
9261 return resultobj;
9262 fail:
9263 return NULL;
9264 }
9265
9266
9267 static PyObject *_wrap_Process_GetOutputStream(PyObject *self, PyObject *args, PyObject *kwargs) {
9268 PyObject *resultobj;
9269 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9270 wxOutputStream *result;
9271 PyObject * obj0 = 0 ;
9272 char *kwnames[] = {
9273 (char *) "self", NULL
9274 };
9275
9276 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_GetOutputStream",kwnames,&obj0)) goto fail;
9277 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9278 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9279 {
9280 PyThreadState* __tstate = wxPyBeginAllowThreads();
9281 result = (wxOutputStream *)(arg1)->GetOutputStream();
9282
9283 wxPyEndAllowThreads(__tstate);
9284 if (PyErr_Occurred()) SWIG_fail;
9285 }
9286 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxOutputStream, 0);
9287 return resultobj;
9288 fail:
9289 return NULL;
9290 }
9291
9292
9293 static PyObject *_wrap_Process_CloseOutput(PyObject *self, PyObject *args, PyObject *kwargs) {
9294 PyObject *resultobj;
9295 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9296 PyObject * obj0 = 0 ;
9297 char *kwnames[] = {
9298 (char *) "self", NULL
9299 };
9300
9301 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_CloseOutput",kwnames,&obj0)) goto fail;
9302 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9303 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9304 {
9305 PyThreadState* __tstate = wxPyBeginAllowThreads();
9306 (arg1)->CloseOutput();
9307
9308 wxPyEndAllowThreads(__tstate);
9309 if (PyErr_Occurred()) SWIG_fail;
9310 }
9311 Py_INCREF(Py_None); resultobj = Py_None;
9312 return resultobj;
9313 fail:
9314 return NULL;
9315 }
9316
9317
9318 static PyObject *_wrap_Process_IsInputOpened(PyObject *self, PyObject *args, PyObject *kwargs) {
9319 PyObject *resultobj;
9320 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9321 bool result;
9322 PyObject * obj0 = 0 ;
9323 char *kwnames[] = {
9324 (char *) "self", NULL
9325 };
9326
9327 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsInputOpened",kwnames,&obj0)) goto fail;
9328 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9329 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9330 {
9331 PyThreadState* __tstate = wxPyBeginAllowThreads();
9332 result = (bool)((wxPyProcess const *)arg1)->IsInputOpened();
9333
9334 wxPyEndAllowThreads(__tstate);
9335 if (PyErr_Occurred()) SWIG_fail;
9336 }
9337 {
9338 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9339 }
9340 return resultobj;
9341 fail:
9342 return NULL;
9343 }
9344
9345
9346 static PyObject *_wrap_Process_IsInputAvailable(PyObject *self, PyObject *args, PyObject *kwargs) {
9347 PyObject *resultobj;
9348 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9349 bool result;
9350 PyObject * obj0 = 0 ;
9351 char *kwnames[] = {
9352 (char *) "self", NULL
9353 };
9354
9355 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsInputAvailable",kwnames,&obj0)) goto fail;
9356 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9357 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9358 {
9359 PyThreadState* __tstate = wxPyBeginAllowThreads();
9360 result = (bool)((wxPyProcess const *)arg1)->IsInputAvailable();
9361
9362 wxPyEndAllowThreads(__tstate);
9363 if (PyErr_Occurred()) SWIG_fail;
9364 }
9365 {
9366 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9367 }
9368 return resultobj;
9369 fail:
9370 return NULL;
9371 }
9372
9373
9374 static PyObject *_wrap_Process_IsErrorAvailable(PyObject *self, PyObject *args, PyObject *kwargs) {
9375 PyObject *resultobj;
9376 wxPyProcess *arg1 = (wxPyProcess *) 0 ;
9377 bool result;
9378 PyObject * obj0 = 0 ;
9379 char *kwnames[] = {
9380 (char *) "self", NULL
9381 };
9382
9383 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Process_IsErrorAvailable",kwnames,&obj0)) goto fail;
9384 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyProcess,
9385 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9386 {
9387 PyThreadState* __tstate = wxPyBeginAllowThreads();
9388 result = (bool)((wxPyProcess const *)arg1)->IsErrorAvailable();
9389
9390 wxPyEndAllowThreads(__tstate);
9391 if (PyErr_Occurred()) SWIG_fail;
9392 }
9393 {
9394 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9395 }
9396 return resultobj;
9397 fail:
9398 return NULL;
9399 }
9400
9401
9402 static PyObject * Process_swigregister(PyObject *self, PyObject *args) {
9403 PyObject *obj;
9404 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9405 SWIG_TypeClientData(SWIGTYPE_p_wxPyProcess, obj);
9406 Py_INCREF(obj);
9407 return Py_BuildValue((char *)"");
9408 }
9409 static PyObject *_wrap_new_ProcessEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
9410 PyObject *resultobj;
9411 int arg1 = (int) 0 ;
9412 int arg2 = (int) 0 ;
9413 int arg3 = (int) 0 ;
9414 wxProcessEvent *result;
9415 PyObject * obj0 = 0 ;
9416 PyObject * obj1 = 0 ;
9417 PyObject * obj2 = 0 ;
9418 char *kwnames[] = {
9419 (char *) "id",(char *) "pid",(char *) "exitcode", NULL
9420 };
9421
9422 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ProcessEvent",kwnames,&obj0,&obj1,&obj2)) goto fail;
9423 if (obj0) {
9424 arg1 = (int) SWIG_AsInt(obj0);
9425 if (PyErr_Occurred()) SWIG_fail;
9426 }
9427 if (obj1) {
9428 arg2 = (int) SWIG_AsInt(obj1);
9429 if (PyErr_Occurred()) SWIG_fail;
9430 }
9431 if (obj2) {
9432 arg3 = (int) SWIG_AsInt(obj2);
9433 if (PyErr_Occurred()) SWIG_fail;
9434 }
9435 {
9436 PyThreadState* __tstate = wxPyBeginAllowThreads();
9437 result = (wxProcessEvent *)new wxProcessEvent(arg1,arg2,arg3);
9438
9439 wxPyEndAllowThreads(__tstate);
9440 if (PyErr_Occurred()) SWIG_fail;
9441 }
9442 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxProcessEvent, 1);
9443 return resultobj;
9444 fail:
9445 return NULL;
9446 }
9447
9448
9449 static PyObject *_wrap_ProcessEvent_GetPid(PyObject *self, PyObject *args, PyObject *kwargs) {
9450 PyObject *resultobj;
9451 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
9452 int result;
9453 PyObject * obj0 = 0 ;
9454 char *kwnames[] = {
9455 (char *) "self", NULL
9456 };
9457
9458 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_GetPid",kwnames,&obj0)) goto fail;
9459 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent,
9460 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9461 {
9462 PyThreadState* __tstate = wxPyBeginAllowThreads();
9463 result = (int)(arg1)->GetPid();
9464
9465 wxPyEndAllowThreads(__tstate);
9466 if (PyErr_Occurred()) SWIG_fail;
9467 }
9468 resultobj = SWIG_FromInt((int)result);
9469 return resultobj;
9470 fail:
9471 return NULL;
9472 }
9473
9474
9475 static PyObject *_wrap_ProcessEvent_GetExitCode(PyObject *self, PyObject *args, PyObject *kwargs) {
9476 PyObject *resultobj;
9477 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
9478 int result;
9479 PyObject * obj0 = 0 ;
9480 char *kwnames[] = {
9481 (char *) "self", NULL
9482 };
9483
9484 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_GetExitCode",kwnames,&obj0)) goto fail;
9485 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent,
9486 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9487 {
9488 PyThreadState* __tstate = wxPyBeginAllowThreads();
9489 result = (int)(arg1)->GetExitCode();
9490
9491 wxPyEndAllowThreads(__tstate);
9492 if (PyErr_Occurred()) SWIG_fail;
9493 }
9494 resultobj = SWIG_FromInt((int)result);
9495 return resultobj;
9496 fail:
9497 return NULL;
9498 }
9499
9500
9501 static PyObject *_wrap_ProcessEvent_m_pid_set(PyObject *self, PyObject *args, PyObject *kwargs) {
9502 PyObject *resultobj;
9503 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
9504 int arg2 ;
9505 PyObject * obj0 = 0 ;
9506 PyObject * obj1 = 0 ;
9507 char *kwnames[] = {
9508 (char *) "self",(char *) "m_pid", NULL
9509 };
9510
9511 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ProcessEvent_m_pid_set",kwnames,&obj0,&obj1)) goto fail;
9512 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent,
9513 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9514 arg2 = (int) SWIG_AsInt(obj1);
9515 if (PyErr_Occurred()) SWIG_fail;
9516 if (arg1) (arg1)->m_pid = arg2;
9517
9518 Py_INCREF(Py_None); resultobj = Py_None;
9519 return resultobj;
9520 fail:
9521 return NULL;
9522 }
9523
9524
9525 static PyObject *_wrap_ProcessEvent_m_pid_get(PyObject *self, PyObject *args, PyObject *kwargs) {
9526 PyObject *resultobj;
9527 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
9528 int result;
9529 PyObject * obj0 = 0 ;
9530 char *kwnames[] = {
9531 (char *) "self", NULL
9532 };
9533
9534 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_m_pid_get",kwnames,&obj0)) goto fail;
9535 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent,
9536 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9537 result = (int) ((arg1)->m_pid);
9538
9539 resultobj = SWIG_FromInt((int)result);
9540 return resultobj;
9541 fail:
9542 return NULL;
9543 }
9544
9545
9546 static PyObject *_wrap_ProcessEvent_m_exitcode_set(PyObject *self, PyObject *args, PyObject *kwargs) {
9547 PyObject *resultobj;
9548 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
9549 int arg2 ;
9550 PyObject * obj0 = 0 ;
9551 PyObject * obj1 = 0 ;
9552 char *kwnames[] = {
9553 (char *) "self",(char *) "m_exitcode", NULL
9554 };
9555
9556 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ProcessEvent_m_exitcode_set",kwnames,&obj0,&obj1)) goto fail;
9557 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent,
9558 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9559 arg2 = (int) SWIG_AsInt(obj1);
9560 if (PyErr_Occurred()) SWIG_fail;
9561 if (arg1) (arg1)->m_exitcode = arg2;
9562
9563 Py_INCREF(Py_None); resultobj = Py_None;
9564 return resultobj;
9565 fail:
9566 return NULL;
9567 }
9568
9569
9570 static PyObject *_wrap_ProcessEvent_m_exitcode_get(PyObject *self, PyObject *args, PyObject *kwargs) {
9571 PyObject *resultobj;
9572 wxProcessEvent *arg1 = (wxProcessEvent *) 0 ;
9573 int result;
9574 PyObject * obj0 = 0 ;
9575 char *kwnames[] = {
9576 (char *) "self", NULL
9577 };
9578
9579 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ProcessEvent_m_exitcode_get",kwnames,&obj0)) goto fail;
9580 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxProcessEvent,
9581 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9582 result = (int) ((arg1)->m_exitcode);
9583
9584 resultobj = SWIG_FromInt((int)result);
9585 return resultobj;
9586 fail:
9587 return NULL;
9588 }
9589
9590
9591 static PyObject * ProcessEvent_swigregister(PyObject *self, PyObject *args) {
9592 PyObject *obj;
9593 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9594 SWIG_TypeClientData(SWIGTYPE_p_wxProcessEvent, obj);
9595 Py_INCREF(obj);
9596 return Py_BuildValue((char *)"");
9597 }
9598 static PyObject *_wrap_Execute(PyObject *self, PyObject *args, PyObject *kwargs) {
9599 PyObject *resultobj;
9600 wxString *arg1 = 0 ;
9601 int arg2 = (int) wxEXEC_ASYNC ;
9602 wxPyProcess *arg3 = (wxPyProcess *) NULL ;
9603 long result;
9604 bool temp1 = False ;
9605 PyObject * obj0 = 0 ;
9606 PyObject * obj1 = 0 ;
9607 PyObject * obj2 = 0 ;
9608 char *kwnames[] = {
9609 (char *) "command",(char *) "flags",(char *) "process", NULL
9610 };
9611
9612 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Execute",kwnames,&obj0,&obj1,&obj2)) goto fail;
9613 {
9614 arg1 = wxString_in_helper(obj0);
9615 if (arg1 == NULL) SWIG_fail;
9616 temp1 = True;
9617 }
9618 if (obj1) {
9619 arg2 = (int) SWIG_AsInt(obj1);
9620 if (PyErr_Occurred()) SWIG_fail;
9621 }
9622 if (obj2) {
9623 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPyProcess,
9624 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9625 }
9626 {
9627 if (!wxPyCheckForApp()) SWIG_fail;
9628 PyThreadState* __tstate = wxPyBeginAllowThreads();
9629 result = (long)wxExecute((wxString const &)*arg1,arg2,arg3);
9630
9631 wxPyEndAllowThreads(__tstate);
9632 if (PyErr_Occurred()) SWIG_fail;
9633 }
9634 resultobj = SWIG_FromLong((long)result);
9635 {
9636 if (temp1)
9637 delete arg1;
9638 }
9639 return resultobj;
9640 fail:
9641 {
9642 if (temp1)
9643 delete arg1;
9644 }
9645 return NULL;
9646 }
9647
9648
9649 static PyObject *_wrap_new_Joystick(PyObject *self, PyObject *args, PyObject *kwargs) {
9650 PyObject *resultobj;
9651 int arg1 = (int) wxJOYSTICK1 ;
9652 wxJoystick *result;
9653 PyObject * obj0 = 0 ;
9654 char *kwnames[] = {
9655 (char *) "joystick", NULL
9656 };
9657
9658 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Joystick",kwnames,&obj0)) goto fail;
9659 if (obj0) {
9660 arg1 = (int) SWIG_AsInt(obj0);
9661 if (PyErr_Occurred()) SWIG_fail;
9662 }
9663 {
9664 if (!wxPyCheckForApp()) SWIG_fail;
9665 PyThreadState* __tstate = wxPyBeginAllowThreads();
9666 result = (wxJoystick *)new wxJoystick(arg1);
9667
9668 wxPyEndAllowThreads(__tstate);
9669 if (PyErr_Occurred()) SWIG_fail;
9670 }
9671 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxJoystick, 1);
9672 return resultobj;
9673 fail:
9674 return NULL;
9675 }
9676
9677
9678 static PyObject *_wrap_delete_Joystick(PyObject *self, PyObject *args, PyObject *kwargs) {
9679 PyObject *resultobj;
9680 wxJoystick *arg1 = (wxJoystick *) 0 ;
9681 PyObject * obj0 = 0 ;
9682 char *kwnames[] = {
9683 (char *) "self", NULL
9684 };
9685
9686 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Joystick",kwnames,&obj0)) goto fail;
9687 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9688 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9689 {
9690 PyThreadState* __tstate = wxPyBeginAllowThreads();
9691 delete arg1;
9692
9693 wxPyEndAllowThreads(__tstate);
9694 if (PyErr_Occurred()) SWIG_fail;
9695 }
9696 Py_INCREF(Py_None); resultobj = Py_None;
9697 return resultobj;
9698 fail:
9699 return NULL;
9700 }
9701
9702
9703 static PyObject *_wrap_Joystick_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
9704 PyObject *resultobj;
9705 wxJoystick *arg1 = (wxJoystick *) 0 ;
9706 wxPoint result;
9707 PyObject * obj0 = 0 ;
9708 char *kwnames[] = {
9709 (char *) "self", NULL
9710 };
9711
9712 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPosition",kwnames,&obj0)) goto fail;
9713 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9714 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9715 {
9716 PyThreadState* __tstate = wxPyBeginAllowThreads();
9717 result = (arg1)->GetPosition();
9718
9719 wxPyEndAllowThreads(__tstate);
9720 if (PyErr_Occurred()) SWIG_fail;
9721 }
9722 {
9723 wxPoint * resultptr;
9724 resultptr = new wxPoint((wxPoint &) result);
9725 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
9726 }
9727 return resultobj;
9728 fail:
9729 return NULL;
9730 }
9731
9732
9733 static PyObject *_wrap_Joystick_GetZPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
9734 PyObject *resultobj;
9735 wxJoystick *arg1 = (wxJoystick *) 0 ;
9736 int result;
9737 PyObject * obj0 = 0 ;
9738 char *kwnames[] = {
9739 (char *) "self", NULL
9740 };
9741
9742 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZPosition",kwnames,&obj0)) goto fail;
9743 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9744 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9745 {
9746 PyThreadState* __tstate = wxPyBeginAllowThreads();
9747 result = (int)(arg1)->GetZPosition();
9748
9749 wxPyEndAllowThreads(__tstate);
9750 if (PyErr_Occurred()) SWIG_fail;
9751 }
9752 resultobj = SWIG_FromInt((int)result);
9753 return resultobj;
9754 fail:
9755 return NULL;
9756 }
9757
9758
9759 static PyObject *_wrap_Joystick_GetButtonState(PyObject *self, PyObject *args, PyObject *kwargs) {
9760 PyObject *resultobj;
9761 wxJoystick *arg1 = (wxJoystick *) 0 ;
9762 int result;
9763 PyObject * obj0 = 0 ;
9764 char *kwnames[] = {
9765 (char *) "self", NULL
9766 };
9767
9768 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetButtonState",kwnames,&obj0)) goto fail;
9769 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9770 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9771 {
9772 PyThreadState* __tstate = wxPyBeginAllowThreads();
9773 result = (int)(arg1)->GetButtonState();
9774
9775 wxPyEndAllowThreads(__tstate);
9776 if (PyErr_Occurred()) SWIG_fail;
9777 }
9778 resultobj = SWIG_FromInt((int)result);
9779 return resultobj;
9780 fail:
9781 return NULL;
9782 }
9783
9784
9785 static PyObject *_wrap_Joystick_GetPOVPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
9786 PyObject *resultobj;
9787 wxJoystick *arg1 = (wxJoystick *) 0 ;
9788 int result;
9789 PyObject * obj0 = 0 ;
9790 char *kwnames[] = {
9791 (char *) "self", NULL
9792 };
9793
9794 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPOVPosition",kwnames,&obj0)) goto fail;
9795 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9796 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9797 {
9798 PyThreadState* __tstate = wxPyBeginAllowThreads();
9799 result = (int)(arg1)->GetPOVPosition();
9800
9801 wxPyEndAllowThreads(__tstate);
9802 if (PyErr_Occurred()) SWIG_fail;
9803 }
9804 resultobj = SWIG_FromInt((int)result);
9805 return resultobj;
9806 fail:
9807 return NULL;
9808 }
9809
9810
9811 static PyObject *_wrap_Joystick_GetPOVCTSPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
9812 PyObject *resultobj;
9813 wxJoystick *arg1 = (wxJoystick *) 0 ;
9814 int result;
9815 PyObject * obj0 = 0 ;
9816 char *kwnames[] = {
9817 (char *) "self", NULL
9818 };
9819
9820 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPOVCTSPosition",kwnames,&obj0)) goto fail;
9821 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9822 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9823 {
9824 PyThreadState* __tstate = wxPyBeginAllowThreads();
9825 result = (int)(arg1)->GetPOVCTSPosition();
9826
9827 wxPyEndAllowThreads(__tstate);
9828 if (PyErr_Occurred()) SWIG_fail;
9829 }
9830 resultobj = SWIG_FromInt((int)result);
9831 return resultobj;
9832 fail:
9833 return NULL;
9834 }
9835
9836
9837 static PyObject *_wrap_Joystick_GetRudderPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
9838 PyObject *resultobj;
9839 wxJoystick *arg1 = (wxJoystick *) 0 ;
9840 int result;
9841 PyObject * obj0 = 0 ;
9842 char *kwnames[] = {
9843 (char *) "self", NULL
9844 };
9845
9846 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderPosition",kwnames,&obj0)) goto fail;
9847 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9848 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9849 {
9850 PyThreadState* __tstate = wxPyBeginAllowThreads();
9851 result = (int)(arg1)->GetRudderPosition();
9852
9853 wxPyEndAllowThreads(__tstate);
9854 if (PyErr_Occurred()) SWIG_fail;
9855 }
9856 resultobj = SWIG_FromInt((int)result);
9857 return resultobj;
9858 fail:
9859 return NULL;
9860 }
9861
9862
9863 static PyObject *_wrap_Joystick_GetUPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
9864 PyObject *resultobj;
9865 wxJoystick *arg1 = (wxJoystick *) 0 ;
9866 int result;
9867 PyObject * obj0 = 0 ;
9868 char *kwnames[] = {
9869 (char *) "self", NULL
9870 };
9871
9872 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUPosition",kwnames,&obj0)) goto fail;
9873 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9874 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9875 {
9876 PyThreadState* __tstate = wxPyBeginAllowThreads();
9877 result = (int)(arg1)->GetUPosition();
9878
9879 wxPyEndAllowThreads(__tstate);
9880 if (PyErr_Occurred()) SWIG_fail;
9881 }
9882 resultobj = SWIG_FromInt((int)result);
9883 return resultobj;
9884 fail:
9885 return NULL;
9886 }
9887
9888
9889 static PyObject *_wrap_Joystick_GetVPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
9890 PyObject *resultobj;
9891 wxJoystick *arg1 = (wxJoystick *) 0 ;
9892 int result;
9893 PyObject * obj0 = 0 ;
9894 char *kwnames[] = {
9895 (char *) "self", NULL
9896 };
9897
9898 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVPosition",kwnames,&obj0)) goto fail;
9899 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9900 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9901 {
9902 PyThreadState* __tstate = wxPyBeginAllowThreads();
9903 result = (int)(arg1)->GetVPosition();
9904
9905 wxPyEndAllowThreads(__tstate);
9906 if (PyErr_Occurred()) SWIG_fail;
9907 }
9908 resultobj = SWIG_FromInt((int)result);
9909 return resultobj;
9910 fail:
9911 return NULL;
9912 }
9913
9914
9915 static PyObject *_wrap_Joystick_GetMovementThreshold(PyObject *self, PyObject *args, PyObject *kwargs) {
9916 PyObject *resultobj;
9917 wxJoystick *arg1 = (wxJoystick *) 0 ;
9918 int result;
9919 PyObject * obj0 = 0 ;
9920 char *kwnames[] = {
9921 (char *) "self", NULL
9922 };
9923
9924 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMovementThreshold",kwnames,&obj0)) goto fail;
9925 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9926 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9927 {
9928 PyThreadState* __tstate = wxPyBeginAllowThreads();
9929 result = (int)(arg1)->GetMovementThreshold();
9930
9931 wxPyEndAllowThreads(__tstate);
9932 if (PyErr_Occurred()) SWIG_fail;
9933 }
9934 resultobj = SWIG_FromInt((int)result);
9935 return resultobj;
9936 fail:
9937 return NULL;
9938 }
9939
9940
9941 static PyObject *_wrap_Joystick_SetMovementThreshold(PyObject *self, PyObject *args, PyObject *kwargs) {
9942 PyObject *resultobj;
9943 wxJoystick *arg1 = (wxJoystick *) 0 ;
9944 int arg2 ;
9945 PyObject * obj0 = 0 ;
9946 PyObject * obj1 = 0 ;
9947 char *kwnames[] = {
9948 (char *) "self",(char *) "threshold", NULL
9949 };
9950
9951 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Joystick_SetMovementThreshold",kwnames,&obj0,&obj1)) goto fail;
9952 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9953 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9954 arg2 = (int) SWIG_AsInt(obj1);
9955 if (PyErr_Occurred()) SWIG_fail;
9956 {
9957 PyThreadState* __tstate = wxPyBeginAllowThreads();
9958 (arg1)->SetMovementThreshold(arg2);
9959
9960 wxPyEndAllowThreads(__tstate);
9961 if (PyErr_Occurred()) SWIG_fail;
9962 }
9963 Py_INCREF(Py_None); resultobj = Py_None;
9964 return resultobj;
9965 fail:
9966 return NULL;
9967 }
9968
9969
9970 static PyObject *_wrap_Joystick_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
9971 PyObject *resultobj;
9972 wxJoystick *arg1 = (wxJoystick *) 0 ;
9973 bool result;
9974 PyObject * obj0 = 0 ;
9975 char *kwnames[] = {
9976 (char *) "self", NULL
9977 };
9978
9979 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_IsOk",kwnames,&obj0)) goto fail;
9980 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
9981 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9982 {
9983 PyThreadState* __tstate = wxPyBeginAllowThreads();
9984 result = (bool)(arg1)->IsOk();
9985
9986 wxPyEndAllowThreads(__tstate);
9987 if (PyErr_Occurred()) SWIG_fail;
9988 }
9989 {
9990 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9991 }
9992 return resultobj;
9993 fail:
9994 return NULL;
9995 }
9996
9997
9998 static PyObject *_wrap_Joystick_GetNumberJoysticks(PyObject *self, PyObject *args, PyObject *kwargs) {
9999 PyObject *resultobj;
10000 wxJoystick *arg1 = (wxJoystick *) 0 ;
10001 int result;
10002 PyObject * obj0 = 0 ;
10003 char *kwnames[] = {
10004 (char *) "self", NULL
10005 };
10006
10007 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberJoysticks",kwnames,&obj0)) goto fail;
10008 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10009 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10010 {
10011 PyThreadState* __tstate = wxPyBeginAllowThreads();
10012 result = (int)(arg1)->GetNumberJoysticks();
10013
10014 wxPyEndAllowThreads(__tstate);
10015 if (PyErr_Occurred()) SWIG_fail;
10016 }
10017 resultobj = SWIG_FromInt((int)result);
10018 return resultobj;
10019 fail:
10020 return NULL;
10021 }
10022
10023
10024 static PyObject *_wrap_Joystick_GetManufacturerId(PyObject *self, PyObject *args, PyObject *kwargs) {
10025 PyObject *resultobj;
10026 wxJoystick *arg1 = (wxJoystick *) 0 ;
10027 int result;
10028 PyObject * obj0 = 0 ;
10029 char *kwnames[] = {
10030 (char *) "self", NULL
10031 };
10032
10033 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetManufacturerId",kwnames,&obj0)) goto fail;
10034 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10035 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10036 {
10037 PyThreadState* __tstate = wxPyBeginAllowThreads();
10038 result = (int)(arg1)->GetManufacturerId();
10039
10040 wxPyEndAllowThreads(__tstate);
10041 if (PyErr_Occurred()) SWIG_fail;
10042 }
10043 resultobj = SWIG_FromInt((int)result);
10044 return resultobj;
10045 fail:
10046 return NULL;
10047 }
10048
10049
10050 static PyObject *_wrap_Joystick_GetProductId(PyObject *self, PyObject *args, PyObject *kwargs) {
10051 PyObject *resultobj;
10052 wxJoystick *arg1 = (wxJoystick *) 0 ;
10053 int result;
10054 PyObject * obj0 = 0 ;
10055 char *kwnames[] = {
10056 (char *) "self", NULL
10057 };
10058
10059 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetProductId",kwnames,&obj0)) goto fail;
10060 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10061 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10062 {
10063 PyThreadState* __tstate = wxPyBeginAllowThreads();
10064 result = (int)(arg1)->GetProductId();
10065
10066 wxPyEndAllowThreads(__tstate);
10067 if (PyErr_Occurred()) SWIG_fail;
10068 }
10069 resultobj = SWIG_FromInt((int)result);
10070 return resultobj;
10071 fail:
10072 return NULL;
10073 }
10074
10075
10076 static PyObject *_wrap_Joystick_GetProductName(PyObject *self, PyObject *args, PyObject *kwargs) {
10077 PyObject *resultobj;
10078 wxJoystick *arg1 = (wxJoystick *) 0 ;
10079 wxString result;
10080 PyObject * obj0 = 0 ;
10081 char *kwnames[] = {
10082 (char *) "self", NULL
10083 };
10084
10085 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetProductName",kwnames,&obj0)) goto fail;
10086 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10087 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10088 {
10089 PyThreadState* __tstate = wxPyBeginAllowThreads();
10090 result = (arg1)->GetProductName();
10091
10092 wxPyEndAllowThreads(__tstate);
10093 if (PyErr_Occurred()) SWIG_fail;
10094 }
10095 {
10096 #if wxUSE_UNICODE
10097 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10098 #else
10099 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10100 #endif
10101 }
10102 return resultobj;
10103 fail:
10104 return NULL;
10105 }
10106
10107
10108 static PyObject *_wrap_Joystick_GetXMin(PyObject *self, PyObject *args, PyObject *kwargs) {
10109 PyObject *resultobj;
10110 wxJoystick *arg1 = (wxJoystick *) 0 ;
10111 int result;
10112 PyObject * obj0 = 0 ;
10113 char *kwnames[] = {
10114 (char *) "self", NULL
10115 };
10116
10117 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetXMin",kwnames,&obj0)) goto fail;
10118 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10119 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10120 {
10121 PyThreadState* __tstate = wxPyBeginAllowThreads();
10122 result = (int)(arg1)->GetXMin();
10123
10124 wxPyEndAllowThreads(__tstate);
10125 if (PyErr_Occurred()) SWIG_fail;
10126 }
10127 resultobj = SWIG_FromInt((int)result);
10128 return resultobj;
10129 fail:
10130 return NULL;
10131 }
10132
10133
10134 static PyObject *_wrap_Joystick_GetYMin(PyObject *self, PyObject *args, PyObject *kwargs) {
10135 PyObject *resultobj;
10136 wxJoystick *arg1 = (wxJoystick *) 0 ;
10137 int result;
10138 PyObject * obj0 = 0 ;
10139 char *kwnames[] = {
10140 (char *) "self", NULL
10141 };
10142
10143 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetYMin",kwnames,&obj0)) goto fail;
10144 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10145 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10146 {
10147 PyThreadState* __tstate = wxPyBeginAllowThreads();
10148 result = (int)(arg1)->GetYMin();
10149
10150 wxPyEndAllowThreads(__tstate);
10151 if (PyErr_Occurred()) SWIG_fail;
10152 }
10153 resultobj = SWIG_FromInt((int)result);
10154 return resultobj;
10155 fail:
10156 return NULL;
10157 }
10158
10159
10160 static PyObject *_wrap_Joystick_GetZMin(PyObject *self, PyObject *args, PyObject *kwargs) {
10161 PyObject *resultobj;
10162 wxJoystick *arg1 = (wxJoystick *) 0 ;
10163 int result;
10164 PyObject * obj0 = 0 ;
10165 char *kwnames[] = {
10166 (char *) "self", NULL
10167 };
10168
10169 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZMin",kwnames,&obj0)) goto fail;
10170 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10171 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10172 {
10173 PyThreadState* __tstate = wxPyBeginAllowThreads();
10174 result = (int)(arg1)->GetZMin();
10175
10176 wxPyEndAllowThreads(__tstate);
10177 if (PyErr_Occurred()) SWIG_fail;
10178 }
10179 resultobj = SWIG_FromInt((int)result);
10180 return resultobj;
10181 fail:
10182 return NULL;
10183 }
10184
10185
10186 static PyObject *_wrap_Joystick_GetXMax(PyObject *self, PyObject *args, PyObject *kwargs) {
10187 PyObject *resultobj;
10188 wxJoystick *arg1 = (wxJoystick *) 0 ;
10189 int result;
10190 PyObject * obj0 = 0 ;
10191 char *kwnames[] = {
10192 (char *) "self", NULL
10193 };
10194
10195 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetXMax",kwnames,&obj0)) goto fail;
10196 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10197 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10198 {
10199 PyThreadState* __tstate = wxPyBeginAllowThreads();
10200 result = (int)(arg1)->GetXMax();
10201
10202 wxPyEndAllowThreads(__tstate);
10203 if (PyErr_Occurred()) SWIG_fail;
10204 }
10205 resultobj = SWIG_FromInt((int)result);
10206 return resultobj;
10207 fail:
10208 return NULL;
10209 }
10210
10211
10212 static PyObject *_wrap_Joystick_GetYMax(PyObject *self, PyObject *args, PyObject *kwargs) {
10213 PyObject *resultobj;
10214 wxJoystick *arg1 = (wxJoystick *) 0 ;
10215 int result;
10216 PyObject * obj0 = 0 ;
10217 char *kwnames[] = {
10218 (char *) "self", NULL
10219 };
10220
10221 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetYMax",kwnames,&obj0)) goto fail;
10222 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10223 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10224 {
10225 PyThreadState* __tstate = wxPyBeginAllowThreads();
10226 result = (int)(arg1)->GetYMax();
10227
10228 wxPyEndAllowThreads(__tstate);
10229 if (PyErr_Occurred()) SWIG_fail;
10230 }
10231 resultobj = SWIG_FromInt((int)result);
10232 return resultobj;
10233 fail:
10234 return NULL;
10235 }
10236
10237
10238 static PyObject *_wrap_Joystick_GetZMax(PyObject *self, PyObject *args, PyObject *kwargs) {
10239 PyObject *resultobj;
10240 wxJoystick *arg1 = (wxJoystick *) 0 ;
10241 int result;
10242 PyObject * obj0 = 0 ;
10243 char *kwnames[] = {
10244 (char *) "self", NULL
10245 };
10246
10247 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetZMax",kwnames,&obj0)) goto fail;
10248 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10249 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10250 {
10251 PyThreadState* __tstate = wxPyBeginAllowThreads();
10252 result = (int)(arg1)->GetZMax();
10253
10254 wxPyEndAllowThreads(__tstate);
10255 if (PyErr_Occurred()) SWIG_fail;
10256 }
10257 resultobj = SWIG_FromInt((int)result);
10258 return resultobj;
10259 fail:
10260 return NULL;
10261 }
10262
10263
10264 static PyObject *_wrap_Joystick_GetNumberButtons(PyObject *self, PyObject *args, PyObject *kwargs) {
10265 PyObject *resultobj;
10266 wxJoystick *arg1 = (wxJoystick *) 0 ;
10267 int result;
10268 PyObject * obj0 = 0 ;
10269 char *kwnames[] = {
10270 (char *) "self", NULL
10271 };
10272
10273 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberButtons",kwnames,&obj0)) goto fail;
10274 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10275 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10276 {
10277 PyThreadState* __tstate = wxPyBeginAllowThreads();
10278 result = (int)(arg1)->GetNumberButtons();
10279
10280 wxPyEndAllowThreads(__tstate);
10281 if (PyErr_Occurred()) SWIG_fail;
10282 }
10283 resultobj = SWIG_FromInt((int)result);
10284 return resultobj;
10285 fail:
10286 return NULL;
10287 }
10288
10289
10290 static PyObject *_wrap_Joystick_GetNumberAxes(PyObject *self, PyObject *args, PyObject *kwargs) {
10291 PyObject *resultobj;
10292 wxJoystick *arg1 = (wxJoystick *) 0 ;
10293 int result;
10294 PyObject * obj0 = 0 ;
10295 char *kwnames[] = {
10296 (char *) "self", NULL
10297 };
10298
10299 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetNumberAxes",kwnames,&obj0)) goto fail;
10300 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10301 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10302 {
10303 PyThreadState* __tstate = wxPyBeginAllowThreads();
10304 result = (int)(arg1)->GetNumberAxes();
10305
10306 wxPyEndAllowThreads(__tstate);
10307 if (PyErr_Occurred()) SWIG_fail;
10308 }
10309 resultobj = SWIG_FromInt((int)result);
10310 return resultobj;
10311 fail:
10312 return NULL;
10313 }
10314
10315
10316 static PyObject *_wrap_Joystick_GetMaxButtons(PyObject *self, PyObject *args, PyObject *kwargs) {
10317 PyObject *resultobj;
10318 wxJoystick *arg1 = (wxJoystick *) 0 ;
10319 int result;
10320 PyObject * obj0 = 0 ;
10321 char *kwnames[] = {
10322 (char *) "self", NULL
10323 };
10324
10325 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMaxButtons",kwnames,&obj0)) goto fail;
10326 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10327 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10328 {
10329 PyThreadState* __tstate = wxPyBeginAllowThreads();
10330 result = (int)(arg1)->GetMaxButtons();
10331
10332 wxPyEndAllowThreads(__tstate);
10333 if (PyErr_Occurred()) SWIG_fail;
10334 }
10335 resultobj = SWIG_FromInt((int)result);
10336 return resultobj;
10337 fail:
10338 return NULL;
10339 }
10340
10341
10342 static PyObject *_wrap_Joystick_GetMaxAxes(PyObject *self, PyObject *args, PyObject *kwargs) {
10343 PyObject *resultobj;
10344 wxJoystick *arg1 = (wxJoystick *) 0 ;
10345 int result;
10346 PyObject * obj0 = 0 ;
10347 char *kwnames[] = {
10348 (char *) "self", NULL
10349 };
10350
10351 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetMaxAxes",kwnames,&obj0)) goto fail;
10352 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10353 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10354 {
10355 PyThreadState* __tstate = wxPyBeginAllowThreads();
10356 result = (int)(arg1)->GetMaxAxes();
10357
10358 wxPyEndAllowThreads(__tstate);
10359 if (PyErr_Occurred()) SWIG_fail;
10360 }
10361 resultobj = SWIG_FromInt((int)result);
10362 return resultobj;
10363 fail:
10364 return NULL;
10365 }
10366
10367
10368 static PyObject *_wrap_Joystick_GetPollingMin(PyObject *self, PyObject *args, PyObject *kwargs) {
10369 PyObject *resultobj;
10370 wxJoystick *arg1 = (wxJoystick *) 0 ;
10371 int result;
10372 PyObject * obj0 = 0 ;
10373 char *kwnames[] = {
10374 (char *) "self", NULL
10375 };
10376
10377 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPollingMin",kwnames,&obj0)) goto fail;
10378 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10379 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10380 {
10381 PyThreadState* __tstate = wxPyBeginAllowThreads();
10382 result = (int)(arg1)->GetPollingMin();
10383
10384 wxPyEndAllowThreads(__tstate);
10385 if (PyErr_Occurred()) SWIG_fail;
10386 }
10387 resultobj = SWIG_FromInt((int)result);
10388 return resultobj;
10389 fail:
10390 return NULL;
10391 }
10392
10393
10394 static PyObject *_wrap_Joystick_GetPollingMax(PyObject *self, PyObject *args, PyObject *kwargs) {
10395 PyObject *resultobj;
10396 wxJoystick *arg1 = (wxJoystick *) 0 ;
10397 int result;
10398 PyObject * obj0 = 0 ;
10399 char *kwnames[] = {
10400 (char *) "self", NULL
10401 };
10402
10403 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetPollingMax",kwnames,&obj0)) goto fail;
10404 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10405 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10406 {
10407 PyThreadState* __tstate = wxPyBeginAllowThreads();
10408 result = (int)(arg1)->GetPollingMax();
10409
10410 wxPyEndAllowThreads(__tstate);
10411 if (PyErr_Occurred()) SWIG_fail;
10412 }
10413 resultobj = SWIG_FromInt((int)result);
10414 return resultobj;
10415 fail:
10416 return NULL;
10417 }
10418
10419
10420 static PyObject *_wrap_Joystick_GetRudderMin(PyObject *self, PyObject *args, PyObject *kwargs) {
10421 PyObject *resultobj;
10422 wxJoystick *arg1 = (wxJoystick *) 0 ;
10423 int result;
10424 PyObject * obj0 = 0 ;
10425 char *kwnames[] = {
10426 (char *) "self", NULL
10427 };
10428
10429 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderMin",kwnames,&obj0)) goto fail;
10430 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10431 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10432 {
10433 PyThreadState* __tstate = wxPyBeginAllowThreads();
10434 result = (int)(arg1)->GetRudderMin();
10435
10436 wxPyEndAllowThreads(__tstate);
10437 if (PyErr_Occurred()) SWIG_fail;
10438 }
10439 resultobj = SWIG_FromInt((int)result);
10440 return resultobj;
10441 fail:
10442 return NULL;
10443 }
10444
10445
10446 static PyObject *_wrap_Joystick_GetRudderMax(PyObject *self, PyObject *args, PyObject *kwargs) {
10447 PyObject *resultobj;
10448 wxJoystick *arg1 = (wxJoystick *) 0 ;
10449 int result;
10450 PyObject * obj0 = 0 ;
10451 char *kwnames[] = {
10452 (char *) "self", NULL
10453 };
10454
10455 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetRudderMax",kwnames,&obj0)) goto fail;
10456 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10457 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10458 {
10459 PyThreadState* __tstate = wxPyBeginAllowThreads();
10460 result = (int)(arg1)->GetRudderMax();
10461
10462 wxPyEndAllowThreads(__tstate);
10463 if (PyErr_Occurred()) SWIG_fail;
10464 }
10465 resultobj = SWIG_FromInt((int)result);
10466 return resultobj;
10467 fail:
10468 return NULL;
10469 }
10470
10471
10472 static PyObject *_wrap_Joystick_GetUMin(PyObject *self, PyObject *args, PyObject *kwargs) {
10473 PyObject *resultobj;
10474 wxJoystick *arg1 = (wxJoystick *) 0 ;
10475 int result;
10476 PyObject * obj0 = 0 ;
10477 char *kwnames[] = {
10478 (char *) "self", NULL
10479 };
10480
10481 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUMin",kwnames,&obj0)) goto fail;
10482 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10483 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10484 {
10485 PyThreadState* __tstate = wxPyBeginAllowThreads();
10486 result = (int)(arg1)->GetUMin();
10487
10488 wxPyEndAllowThreads(__tstate);
10489 if (PyErr_Occurred()) SWIG_fail;
10490 }
10491 resultobj = SWIG_FromInt((int)result);
10492 return resultobj;
10493 fail:
10494 return NULL;
10495 }
10496
10497
10498 static PyObject *_wrap_Joystick_GetUMax(PyObject *self, PyObject *args, PyObject *kwargs) {
10499 PyObject *resultobj;
10500 wxJoystick *arg1 = (wxJoystick *) 0 ;
10501 int result;
10502 PyObject * obj0 = 0 ;
10503 char *kwnames[] = {
10504 (char *) "self", NULL
10505 };
10506
10507 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetUMax",kwnames,&obj0)) goto fail;
10508 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10509 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10510 {
10511 PyThreadState* __tstate = wxPyBeginAllowThreads();
10512 result = (int)(arg1)->GetUMax();
10513
10514 wxPyEndAllowThreads(__tstate);
10515 if (PyErr_Occurred()) SWIG_fail;
10516 }
10517 resultobj = SWIG_FromInt((int)result);
10518 return resultobj;
10519 fail:
10520 return NULL;
10521 }
10522
10523
10524 static PyObject *_wrap_Joystick_GetVMin(PyObject *self, PyObject *args, PyObject *kwargs) {
10525 PyObject *resultobj;
10526 wxJoystick *arg1 = (wxJoystick *) 0 ;
10527 int result;
10528 PyObject * obj0 = 0 ;
10529 char *kwnames[] = {
10530 (char *) "self", NULL
10531 };
10532
10533 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVMin",kwnames,&obj0)) goto fail;
10534 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10535 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10536 {
10537 PyThreadState* __tstate = wxPyBeginAllowThreads();
10538 result = (int)(arg1)->GetVMin();
10539
10540 wxPyEndAllowThreads(__tstate);
10541 if (PyErr_Occurred()) SWIG_fail;
10542 }
10543 resultobj = SWIG_FromInt((int)result);
10544 return resultobj;
10545 fail:
10546 return NULL;
10547 }
10548
10549
10550 static PyObject *_wrap_Joystick_GetVMax(PyObject *self, PyObject *args, PyObject *kwargs) {
10551 PyObject *resultobj;
10552 wxJoystick *arg1 = (wxJoystick *) 0 ;
10553 int result;
10554 PyObject * obj0 = 0 ;
10555 char *kwnames[] = {
10556 (char *) "self", NULL
10557 };
10558
10559 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_GetVMax",kwnames,&obj0)) goto fail;
10560 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10561 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10562 {
10563 PyThreadState* __tstate = wxPyBeginAllowThreads();
10564 result = (int)(arg1)->GetVMax();
10565
10566 wxPyEndAllowThreads(__tstate);
10567 if (PyErr_Occurred()) SWIG_fail;
10568 }
10569 resultobj = SWIG_FromInt((int)result);
10570 return resultobj;
10571 fail:
10572 return NULL;
10573 }
10574
10575
10576 static PyObject *_wrap_Joystick_HasRudder(PyObject *self, PyObject *args, PyObject *kwargs) {
10577 PyObject *resultobj;
10578 wxJoystick *arg1 = (wxJoystick *) 0 ;
10579 bool result;
10580 PyObject * obj0 = 0 ;
10581 char *kwnames[] = {
10582 (char *) "self", NULL
10583 };
10584
10585 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasRudder",kwnames,&obj0)) goto fail;
10586 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10587 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10588 {
10589 PyThreadState* __tstate = wxPyBeginAllowThreads();
10590 result = (bool)(arg1)->HasRudder();
10591
10592 wxPyEndAllowThreads(__tstate);
10593 if (PyErr_Occurred()) SWIG_fail;
10594 }
10595 {
10596 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10597 }
10598 return resultobj;
10599 fail:
10600 return NULL;
10601 }
10602
10603
10604 static PyObject *_wrap_Joystick_HasZ(PyObject *self, PyObject *args, PyObject *kwargs) {
10605 PyObject *resultobj;
10606 wxJoystick *arg1 = (wxJoystick *) 0 ;
10607 bool result;
10608 PyObject * obj0 = 0 ;
10609 char *kwnames[] = {
10610 (char *) "self", NULL
10611 };
10612
10613 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasZ",kwnames,&obj0)) goto fail;
10614 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10615 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10616 {
10617 PyThreadState* __tstate = wxPyBeginAllowThreads();
10618 result = (bool)(arg1)->HasZ();
10619
10620 wxPyEndAllowThreads(__tstate);
10621 if (PyErr_Occurred()) SWIG_fail;
10622 }
10623 {
10624 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10625 }
10626 return resultobj;
10627 fail:
10628 return NULL;
10629 }
10630
10631
10632 static PyObject *_wrap_Joystick_HasU(PyObject *self, PyObject *args, PyObject *kwargs) {
10633 PyObject *resultobj;
10634 wxJoystick *arg1 = (wxJoystick *) 0 ;
10635 bool result;
10636 PyObject * obj0 = 0 ;
10637 char *kwnames[] = {
10638 (char *) "self", NULL
10639 };
10640
10641 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasU",kwnames,&obj0)) goto fail;
10642 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10643 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10644 {
10645 PyThreadState* __tstate = wxPyBeginAllowThreads();
10646 result = (bool)(arg1)->HasU();
10647
10648 wxPyEndAllowThreads(__tstate);
10649 if (PyErr_Occurred()) SWIG_fail;
10650 }
10651 {
10652 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10653 }
10654 return resultobj;
10655 fail:
10656 return NULL;
10657 }
10658
10659
10660 static PyObject *_wrap_Joystick_HasV(PyObject *self, PyObject *args, PyObject *kwargs) {
10661 PyObject *resultobj;
10662 wxJoystick *arg1 = (wxJoystick *) 0 ;
10663 bool result;
10664 PyObject * obj0 = 0 ;
10665 char *kwnames[] = {
10666 (char *) "self", NULL
10667 };
10668
10669 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasV",kwnames,&obj0)) goto fail;
10670 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10671 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10672 {
10673 PyThreadState* __tstate = wxPyBeginAllowThreads();
10674 result = (bool)(arg1)->HasV();
10675
10676 wxPyEndAllowThreads(__tstate);
10677 if (PyErr_Occurred()) SWIG_fail;
10678 }
10679 {
10680 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10681 }
10682 return resultobj;
10683 fail:
10684 return NULL;
10685 }
10686
10687
10688 static PyObject *_wrap_Joystick_HasPOV(PyObject *self, PyObject *args, PyObject *kwargs) {
10689 PyObject *resultobj;
10690 wxJoystick *arg1 = (wxJoystick *) 0 ;
10691 bool result;
10692 PyObject * obj0 = 0 ;
10693 char *kwnames[] = {
10694 (char *) "self", NULL
10695 };
10696
10697 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOV",kwnames,&obj0)) goto fail;
10698 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10699 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10700 {
10701 PyThreadState* __tstate = wxPyBeginAllowThreads();
10702 result = (bool)(arg1)->HasPOV();
10703
10704 wxPyEndAllowThreads(__tstate);
10705 if (PyErr_Occurred()) SWIG_fail;
10706 }
10707 {
10708 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10709 }
10710 return resultobj;
10711 fail:
10712 return NULL;
10713 }
10714
10715
10716 static PyObject *_wrap_Joystick_HasPOV4Dir(PyObject *self, PyObject *args, PyObject *kwargs) {
10717 PyObject *resultobj;
10718 wxJoystick *arg1 = (wxJoystick *) 0 ;
10719 bool result;
10720 PyObject * obj0 = 0 ;
10721 char *kwnames[] = {
10722 (char *) "self", NULL
10723 };
10724
10725 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOV4Dir",kwnames,&obj0)) goto fail;
10726 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10727 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10728 {
10729 PyThreadState* __tstate = wxPyBeginAllowThreads();
10730 result = (bool)(arg1)->HasPOV4Dir();
10731
10732 wxPyEndAllowThreads(__tstate);
10733 if (PyErr_Occurred()) SWIG_fail;
10734 }
10735 {
10736 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10737 }
10738 return resultobj;
10739 fail:
10740 return NULL;
10741 }
10742
10743
10744 static PyObject *_wrap_Joystick_HasPOVCTS(PyObject *self, PyObject *args, PyObject *kwargs) {
10745 PyObject *resultobj;
10746 wxJoystick *arg1 = (wxJoystick *) 0 ;
10747 bool result;
10748 PyObject * obj0 = 0 ;
10749 char *kwnames[] = {
10750 (char *) "self", NULL
10751 };
10752
10753 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_HasPOVCTS",kwnames,&obj0)) goto fail;
10754 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10755 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10756 {
10757 PyThreadState* __tstate = wxPyBeginAllowThreads();
10758 result = (bool)(arg1)->HasPOVCTS();
10759
10760 wxPyEndAllowThreads(__tstate);
10761 if (PyErr_Occurred()) SWIG_fail;
10762 }
10763 {
10764 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10765 }
10766 return resultobj;
10767 fail:
10768 return NULL;
10769 }
10770
10771
10772 static PyObject *_wrap_Joystick_SetCapture(PyObject *self, PyObject *args, PyObject *kwargs) {
10773 PyObject *resultobj;
10774 wxJoystick *arg1 = (wxJoystick *) 0 ;
10775 wxWindow *arg2 = (wxWindow *) 0 ;
10776 int arg3 = (int) 0 ;
10777 bool result;
10778 PyObject * obj0 = 0 ;
10779 PyObject * obj1 = 0 ;
10780 PyObject * obj2 = 0 ;
10781 char *kwnames[] = {
10782 (char *) "self",(char *) "win",(char *) "pollingFreq", NULL
10783 };
10784
10785 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Joystick_SetCapture",kwnames,&obj0,&obj1,&obj2)) goto fail;
10786 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10787 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10788 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
10789 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10790 if (obj2) {
10791 arg3 = (int) SWIG_AsInt(obj2);
10792 if (PyErr_Occurred()) SWIG_fail;
10793 }
10794 {
10795 PyThreadState* __tstate = wxPyBeginAllowThreads();
10796 result = (bool)(arg1)->SetCapture(arg2,arg3);
10797
10798 wxPyEndAllowThreads(__tstate);
10799 if (PyErr_Occurred()) SWIG_fail;
10800 }
10801 {
10802 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10803 }
10804 return resultobj;
10805 fail:
10806 return NULL;
10807 }
10808
10809
10810 static PyObject *_wrap_Joystick_ReleaseCapture(PyObject *self, PyObject *args, PyObject *kwargs) {
10811 PyObject *resultobj;
10812 wxJoystick *arg1 = (wxJoystick *) 0 ;
10813 bool result;
10814 PyObject * obj0 = 0 ;
10815 char *kwnames[] = {
10816 (char *) "self", NULL
10817 };
10818
10819 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Joystick_ReleaseCapture",kwnames,&obj0)) goto fail;
10820 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystick,
10821 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10822 {
10823 PyThreadState* __tstate = wxPyBeginAllowThreads();
10824 result = (bool)(arg1)->ReleaseCapture();
10825
10826 wxPyEndAllowThreads(__tstate);
10827 if (PyErr_Occurred()) SWIG_fail;
10828 }
10829 {
10830 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10831 }
10832 return resultobj;
10833 fail:
10834 return NULL;
10835 }
10836
10837
10838 static PyObject * Joystick_swigregister(PyObject *self, PyObject *args) {
10839 PyObject *obj;
10840 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10841 SWIG_TypeClientData(SWIGTYPE_p_wxJoystick, obj);
10842 Py_INCREF(obj);
10843 return Py_BuildValue((char *)"");
10844 }
10845 static PyObject *_wrap_JoystickEvent_m_pos_set(PyObject *self, PyObject *args, PyObject *kwargs) {
10846 PyObject *resultobj;
10847 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10848 wxPoint *arg2 = (wxPoint *) 0 ;
10849 PyObject * obj0 = 0 ;
10850 PyObject * obj1 = 0 ;
10851 char *kwnames[] = {
10852 (char *) "self",(char *) "m_pos", NULL
10853 };
10854
10855 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_pos_set",kwnames,&obj0,&obj1)) goto fail;
10856 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10857 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10858 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPoint,
10859 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10860 if (arg1) (arg1)->m_pos = *arg2;
10861
10862 Py_INCREF(Py_None); resultobj = Py_None;
10863 return resultobj;
10864 fail:
10865 return NULL;
10866 }
10867
10868
10869 static PyObject *_wrap_JoystickEvent_m_pos_get(PyObject *self, PyObject *args, PyObject *kwargs) {
10870 PyObject *resultobj;
10871 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10872 wxPoint *result;
10873 PyObject * obj0 = 0 ;
10874 char *kwnames[] = {
10875 (char *) "self", NULL
10876 };
10877
10878 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_pos_get",kwnames,&obj0)) goto fail;
10879 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10880 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10881 result = (wxPoint *)& ((arg1)->m_pos);
10882
10883 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0);
10884 return resultobj;
10885 fail:
10886 return NULL;
10887 }
10888
10889
10890 static PyObject *_wrap_JoystickEvent_m_zPosition_set(PyObject *self, PyObject *args, PyObject *kwargs) {
10891 PyObject *resultobj;
10892 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10893 int arg2 ;
10894 PyObject * obj0 = 0 ;
10895 PyObject * obj1 = 0 ;
10896 char *kwnames[] = {
10897 (char *) "self",(char *) "m_zPosition", NULL
10898 };
10899
10900 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_zPosition_set",kwnames,&obj0,&obj1)) goto fail;
10901 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10902 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10903 arg2 = (int) SWIG_AsInt(obj1);
10904 if (PyErr_Occurred()) SWIG_fail;
10905 if (arg1) (arg1)->m_zPosition = arg2;
10906
10907 Py_INCREF(Py_None); resultobj = Py_None;
10908 return resultobj;
10909 fail:
10910 return NULL;
10911 }
10912
10913
10914 static PyObject *_wrap_JoystickEvent_m_zPosition_get(PyObject *self, PyObject *args, PyObject *kwargs) {
10915 PyObject *resultobj;
10916 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10917 int result;
10918 PyObject * obj0 = 0 ;
10919 char *kwnames[] = {
10920 (char *) "self", NULL
10921 };
10922
10923 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_zPosition_get",kwnames,&obj0)) goto fail;
10924 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10925 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10926 result = (int) ((arg1)->m_zPosition);
10927
10928 resultobj = SWIG_FromInt((int)result);
10929 return resultobj;
10930 fail:
10931 return NULL;
10932 }
10933
10934
10935 static PyObject *_wrap_JoystickEvent_m_buttonChange_set(PyObject *self, PyObject *args, PyObject *kwargs) {
10936 PyObject *resultobj;
10937 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10938 int arg2 ;
10939 PyObject * obj0 = 0 ;
10940 PyObject * obj1 = 0 ;
10941 char *kwnames[] = {
10942 (char *) "self",(char *) "m_buttonChange", NULL
10943 };
10944
10945 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_buttonChange_set",kwnames,&obj0,&obj1)) goto fail;
10946 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10947 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10948 arg2 = (int) SWIG_AsInt(obj1);
10949 if (PyErr_Occurred()) SWIG_fail;
10950 if (arg1) (arg1)->m_buttonChange = arg2;
10951
10952 Py_INCREF(Py_None); resultobj = Py_None;
10953 return resultobj;
10954 fail:
10955 return NULL;
10956 }
10957
10958
10959 static PyObject *_wrap_JoystickEvent_m_buttonChange_get(PyObject *self, PyObject *args, PyObject *kwargs) {
10960 PyObject *resultobj;
10961 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10962 int result;
10963 PyObject * obj0 = 0 ;
10964 char *kwnames[] = {
10965 (char *) "self", NULL
10966 };
10967
10968 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_buttonChange_get",kwnames,&obj0)) goto fail;
10969 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10970 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10971 result = (int) ((arg1)->m_buttonChange);
10972
10973 resultobj = SWIG_FromInt((int)result);
10974 return resultobj;
10975 fail:
10976 return NULL;
10977 }
10978
10979
10980 static PyObject *_wrap_JoystickEvent_m_buttonState_set(PyObject *self, PyObject *args, PyObject *kwargs) {
10981 PyObject *resultobj;
10982 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
10983 int arg2 ;
10984 PyObject * obj0 = 0 ;
10985 PyObject * obj1 = 0 ;
10986 char *kwnames[] = {
10987 (char *) "self",(char *) "m_buttonState", NULL
10988 };
10989
10990 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_buttonState_set",kwnames,&obj0,&obj1)) goto fail;
10991 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
10992 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10993 arg2 = (int) SWIG_AsInt(obj1);
10994 if (PyErr_Occurred()) SWIG_fail;
10995 if (arg1) (arg1)->m_buttonState = arg2;
10996
10997 Py_INCREF(Py_None); resultobj = Py_None;
10998 return resultobj;
10999 fail:
11000 return NULL;
11001 }
11002
11003
11004 static PyObject *_wrap_JoystickEvent_m_buttonState_get(PyObject *self, PyObject *args, PyObject *kwargs) {
11005 PyObject *resultobj;
11006 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11007 int result;
11008 PyObject * obj0 = 0 ;
11009 char *kwnames[] = {
11010 (char *) "self", NULL
11011 };
11012
11013 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_buttonState_get",kwnames,&obj0)) goto fail;
11014 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11015 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11016 result = (int) ((arg1)->m_buttonState);
11017
11018 resultobj = SWIG_FromInt((int)result);
11019 return resultobj;
11020 fail:
11021 return NULL;
11022 }
11023
11024
11025 static PyObject *_wrap_JoystickEvent_m_joyStick_set(PyObject *self, PyObject *args, PyObject *kwargs) {
11026 PyObject *resultobj;
11027 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11028 int arg2 ;
11029 PyObject * obj0 = 0 ;
11030 PyObject * obj1 = 0 ;
11031 char *kwnames[] = {
11032 (char *) "self",(char *) "m_joyStick", NULL
11033 };
11034
11035 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_m_joyStick_set",kwnames,&obj0,&obj1)) goto fail;
11036 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11037 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11038 arg2 = (int) SWIG_AsInt(obj1);
11039 if (PyErr_Occurred()) SWIG_fail;
11040 if (arg1) (arg1)->m_joyStick = arg2;
11041
11042 Py_INCREF(Py_None); resultobj = Py_None;
11043 return resultobj;
11044 fail:
11045 return NULL;
11046 }
11047
11048
11049 static PyObject *_wrap_JoystickEvent_m_joyStick_get(PyObject *self, PyObject *args, PyObject *kwargs) {
11050 PyObject *resultobj;
11051 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11052 int result;
11053 PyObject * obj0 = 0 ;
11054 char *kwnames[] = {
11055 (char *) "self", NULL
11056 };
11057
11058 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_m_joyStick_get",kwnames,&obj0)) goto fail;
11059 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11060 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11061 result = (int) ((arg1)->m_joyStick);
11062
11063 resultobj = SWIG_FromInt((int)result);
11064 return resultobj;
11065 fail:
11066 return NULL;
11067 }
11068
11069
11070 static PyObject *_wrap_new_JoystickEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
11071 PyObject *resultobj;
11072 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
11073 int arg2 = (int) 0 ;
11074 int arg3 = (int) wxJOYSTICK1 ;
11075 int arg4 = (int) 0 ;
11076 wxJoystickEvent *result;
11077 PyObject * obj0 = 0 ;
11078 PyObject * obj1 = 0 ;
11079 PyObject * obj2 = 0 ;
11080 PyObject * obj3 = 0 ;
11081 char *kwnames[] = {
11082 (char *) "type",(char *) "state",(char *) "joystick",(char *) "change", NULL
11083 };
11084
11085 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_JoystickEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11086 if (obj0) {
11087 arg1 = (wxEventType) SWIG_AsInt(obj0);
11088 if (PyErr_Occurred()) SWIG_fail;
11089 }
11090 if (obj1) {
11091 arg2 = (int) SWIG_AsInt(obj1);
11092 if (PyErr_Occurred()) SWIG_fail;
11093 }
11094 if (obj2) {
11095 arg3 = (int) SWIG_AsInt(obj2);
11096 if (PyErr_Occurred()) SWIG_fail;
11097 }
11098 if (obj3) {
11099 arg4 = (int) SWIG_AsInt(obj3);
11100 if (PyErr_Occurred()) SWIG_fail;
11101 }
11102 {
11103 PyThreadState* __tstate = wxPyBeginAllowThreads();
11104 result = (wxJoystickEvent *)new wxJoystickEvent(arg1,arg2,arg3,arg4);
11105
11106 wxPyEndAllowThreads(__tstate);
11107 if (PyErr_Occurred()) SWIG_fail;
11108 }
11109 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxJoystickEvent, 1);
11110 return resultobj;
11111 fail:
11112 return NULL;
11113 }
11114
11115
11116 static PyObject *_wrap_JoystickEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
11117 PyObject *resultobj;
11118 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11119 wxPoint result;
11120 PyObject * obj0 = 0 ;
11121 char *kwnames[] = {
11122 (char *) "self", NULL
11123 };
11124
11125 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetPosition",kwnames,&obj0)) goto fail;
11126 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11127 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11128 {
11129 PyThreadState* __tstate = wxPyBeginAllowThreads();
11130 result = ((wxJoystickEvent const *)arg1)->GetPosition();
11131
11132 wxPyEndAllowThreads(__tstate);
11133 if (PyErr_Occurred()) SWIG_fail;
11134 }
11135 {
11136 wxPoint * resultptr;
11137 resultptr = new wxPoint((wxPoint &) result);
11138 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
11139 }
11140 return resultobj;
11141 fail:
11142 return NULL;
11143 }
11144
11145
11146 static PyObject *_wrap_JoystickEvent_GetZPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
11147 PyObject *resultobj;
11148 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11149 int result;
11150 PyObject * obj0 = 0 ;
11151 char *kwnames[] = {
11152 (char *) "self", NULL
11153 };
11154
11155 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetZPosition",kwnames,&obj0)) goto fail;
11156 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11157 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11158 {
11159 PyThreadState* __tstate = wxPyBeginAllowThreads();
11160 result = (int)((wxJoystickEvent const *)arg1)->GetZPosition();
11161
11162 wxPyEndAllowThreads(__tstate);
11163 if (PyErr_Occurred()) SWIG_fail;
11164 }
11165 resultobj = SWIG_FromInt((int)result);
11166 return resultobj;
11167 fail:
11168 return NULL;
11169 }
11170
11171
11172 static PyObject *_wrap_JoystickEvent_GetButtonState(PyObject *self, PyObject *args, PyObject *kwargs) {
11173 PyObject *resultobj;
11174 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11175 int result;
11176 PyObject * obj0 = 0 ;
11177 char *kwnames[] = {
11178 (char *) "self", NULL
11179 };
11180
11181 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetButtonState",kwnames,&obj0)) goto fail;
11182 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11183 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11184 {
11185 PyThreadState* __tstate = wxPyBeginAllowThreads();
11186 result = (int)((wxJoystickEvent const *)arg1)->GetButtonState();
11187
11188 wxPyEndAllowThreads(__tstate);
11189 if (PyErr_Occurred()) SWIG_fail;
11190 }
11191 resultobj = SWIG_FromInt((int)result);
11192 return resultobj;
11193 fail:
11194 return NULL;
11195 }
11196
11197
11198 static PyObject *_wrap_JoystickEvent_GetButtonChange(PyObject *self, PyObject *args, PyObject *kwargs) {
11199 PyObject *resultobj;
11200 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11201 int result;
11202 PyObject * obj0 = 0 ;
11203 char *kwnames[] = {
11204 (char *) "self", NULL
11205 };
11206
11207 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetButtonChange",kwnames,&obj0)) goto fail;
11208 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11209 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11210 {
11211 PyThreadState* __tstate = wxPyBeginAllowThreads();
11212 result = (int)((wxJoystickEvent const *)arg1)->GetButtonChange();
11213
11214 wxPyEndAllowThreads(__tstate);
11215 if (PyErr_Occurred()) SWIG_fail;
11216 }
11217 resultobj = SWIG_FromInt((int)result);
11218 return resultobj;
11219 fail:
11220 return NULL;
11221 }
11222
11223
11224 static PyObject *_wrap_JoystickEvent_GetJoystick(PyObject *self, PyObject *args, PyObject *kwargs) {
11225 PyObject *resultobj;
11226 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11227 int result;
11228 PyObject * obj0 = 0 ;
11229 char *kwnames[] = {
11230 (char *) "self", NULL
11231 };
11232
11233 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_GetJoystick",kwnames,&obj0)) goto fail;
11234 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11235 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11236 {
11237 PyThreadState* __tstate = wxPyBeginAllowThreads();
11238 result = (int)((wxJoystickEvent const *)arg1)->GetJoystick();
11239
11240 wxPyEndAllowThreads(__tstate);
11241 if (PyErr_Occurred()) SWIG_fail;
11242 }
11243 resultobj = SWIG_FromInt((int)result);
11244 return resultobj;
11245 fail:
11246 return NULL;
11247 }
11248
11249
11250 static PyObject *_wrap_JoystickEvent_SetJoystick(PyObject *self, PyObject *args, PyObject *kwargs) {
11251 PyObject *resultobj;
11252 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11253 int arg2 ;
11254 PyObject * obj0 = 0 ;
11255 PyObject * obj1 = 0 ;
11256 char *kwnames[] = {
11257 (char *) "self",(char *) "stick", NULL
11258 };
11259
11260 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetJoystick",kwnames,&obj0,&obj1)) goto fail;
11261 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11262 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11263 arg2 = (int) SWIG_AsInt(obj1);
11264 if (PyErr_Occurred()) SWIG_fail;
11265 {
11266 PyThreadState* __tstate = wxPyBeginAllowThreads();
11267 (arg1)->SetJoystick(arg2);
11268
11269 wxPyEndAllowThreads(__tstate);
11270 if (PyErr_Occurred()) SWIG_fail;
11271 }
11272 Py_INCREF(Py_None); resultobj = Py_None;
11273 return resultobj;
11274 fail:
11275 return NULL;
11276 }
11277
11278
11279 static PyObject *_wrap_JoystickEvent_SetButtonState(PyObject *self, PyObject *args, PyObject *kwargs) {
11280 PyObject *resultobj;
11281 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11282 int arg2 ;
11283 PyObject * obj0 = 0 ;
11284 PyObject * obj1 = 0 ;
11285 char *kwnames[] = {
11286 (char *) "self",(char *) "state", NULL
11287 };
11288
11289 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetButtonState",kwnames,&obj0,&obj1)) goto fail;
11290 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11291 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11292 arg2 = (int) SWIG_AsInt(obj1);
11293 if (PyErr_Occurred()) SWIG_fail;
11294 {
11295 PyThreadState* __tstate = wxPyBeginAllowThreads();
11296 (arg1)->SetButtonState(arg2);
11297
11298 wxPyEndAllowThreads(__tstate);
11299 if (PyErr_Occurred()) SWIG_fail;
11300 }
11301 Py_INCREF(Py_None); resultobj = Py_None;
11302 return resultobj;
11303 fail:
11304 return NULL;
11305 }
11306
11307
11308 static PyObject *_wrap_JoystickEvent_SetButtonChange(PyObject *self, PyObject *args, PyObject *kwargs) {
11309 PyObject *resultobj;
11310 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11311 int arg2 ;
11312 PyObject * obj0 = 0 ;
11313 PyObject * obj1 = 0 ;
11314 char *kwnames[] = {
11315 (char *) "self",(char *) "change", NULL
11316 };
11317
11318 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetButtonChange",kwnames,&obj0,&obj1)) goto fail;
11319 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11320 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11321 arg2 = (int) SWIG_AsInt(obj1);
11322 if (PyErr_Occurred()) SWIG_fail;
11323 {
11324 PyThreadState* __tstate = wxPyBeginAllowThreads();
11325 (arg1)->SetButtonChange(arg2);
11326
11327 wxPyEndAllowThreads(__tstate);
11328 if (PyErr_Occurred()) SWIG_fail;
11329 }
11330 Py_INCREF(Py_None); resultobj = Py_None;
11331 return resultobj;
11332 fail:
11333 return NULL;
11334 }
11335
11336
11337 static PyObject *_wrap_JoystickEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
11338 PyObject *resultobj;
11339 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11340 wxPoint *arg2 = 0 ;
11341 wxPoint temp2 ;
11342 PyObject * obj0 = 0 ;
11343 PyObject * obj1 = 0 ;
11344 char *kwnames[] = {
11345 (char *) "self",(char *) "pos", NULL
11346 };
11347
11348 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail;
11349 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11350 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11351 {
11352 arg2 = &temp2;
11353 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11354 }
11355 {
11356 PyThreadState* __tstate = wxPyBeginAllowThreads();
11357 (arg1)->SetPosition((wxPoint const &)*arg2);
11358
11359 wxPyEndAllowThreads(__tstate);
11360 if (PyErr_Occurred()) SWIG_fail;
11361 }
11362 Py_INCREF(Py_None); resultobj = Py_None;
11363 return resultobj;
11364 fail:
11365 return NULL;
11366 }
11367
11368
11369 static PyObject *_wrap_JoystickEvent_SetZPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
11370 PyObject *resultobj;
11371 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11372 int arg2 ;
11373 PyObject * obj0 = 0 ;
11374 PyObject * obj1 = 0 ;
11375 char *kwnames[] = {
11376 (char *) "self",(char *) "zPos", NULL
11377 };
11378
11379 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:JoystickEvent_SetZPosition",kwnames,&obj0,&obj1)) goto fail;
11380 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11381 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11382 arg2 = (int) SWIG_AsInt(obj1);
11383 if (PyErr_Occurred()) SWIG_fail;
11384 {
11385 PyThreadState* __tstate = wxPyBeginAllowThreads();
11386 (arg1)->SetZPosition(arg2);
11387
11388 wxPyEndAllowThreads(__tstate);
11389 if (PyErr_Occurred()) SWIG_fail;
11390 }
11391 Py_INCREF(Py_None); resultobj = Py_None;
11392 return resultobj;
11393 fail:
11394 return NULL;
11395 }
11396
11397
11398 static PyObject *_wrap_JoystickEvent_IsButton(PyObject *self, PyObject *args, PyObject *kwargs) {
11399 PyObject *resultobj;
11400 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11401 bool result;
11402 PyObject * obj0 = 0 ;
11403 char *kwnames[] = {
11404 (char *) "self", NULL
11405 };
11406
11407 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsButton",kwnames,&obj0)) goto fail;
11408 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11409 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11410 {
11411 PyThreadState* __tstate = wxPyBeginAllowThreads();
11412 result = (bool)((wxJoystickEvent const *)arg1)->IsButton();
11413
11414 wxPyEndAllowThreads(__tstate);
11415 if (PyErr_Occurred()) SWIG_fail;
11416 }
11417 {
11418 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11419 }
11420 return resultobj;
11421 fail:
11422 return NULL;
11423 }
11424
11425
11426 static PyObject *_wrap_JoystickEvent_IsMove(PyObject *self, PyObject *args, PyObject *kwargs) {
11427 PyObject *resultobj;
11428 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11429 bool result;
11430 PyObject * obj0 = 0 ;
11431 char *kwnames[] = {
11432 (char *) "self", NULL
11433 };
11434
11435 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsMove",kwnames,&obj0)) goto fail;
11436 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11437 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11438 {
11439 PyThreadState* __tstate = wxPyBeginAllowThreads();
11440 result = (bool)((wxJoystickEvent const *)arg1)->IsMove();
11441
11442 wxPyEndAllowThreads(__tstate);
11443 if (PyErr_Occurred()) SWIG_fail;
11444 }
11445 {
11446 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11447 }
11448 return resultobj;
11449 fail:
11450 return NULL;
11451 }
11452
11453
11454 static PyObject *_wrap_JoystickEvent_IsZMove(PyObject *self, PyObject *args, PyObject *kwargs) {
11455 PyObject *resultobj;
11456 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11457 bool result;
11458 PyObject * obj0 = 0 ;
11459 char *kwnames[] = {
11460 (char *) "self", NULL
11461 };
11462
11463 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:JoystickEvent_IsZMove",kwnames,&obj0)) goto fail;
11464 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11465 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11466 {
11467 PyThreadState* __tstate = wxPyBeginAllowThreads();
11468 result = (bool)((wxJoystickEvent const *)arg1)->IsZMove();
11469
11470 wxPyEndAllowThreads(__tstate);
11471 if (PyErr_Occurred()) SWIG_fail;
11472 }
11473 {
11474 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11475 }
11476 return resultobj;
11477 fail:
11478 return NULL;
11479 }
11480
11481
11482 static PyObject *_wrap_JoystickEvent_ButtonDown(PyObject *self, PyObject *args, PyObject *kwargs) {
11483 PyObject *resultobj;
11484 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11485 int arg2 = (int) wxJOY_BUTTON_ANY ;
11486 bool result;
11487 PyObject * obj0 = 0 ;
11488 PyObject * obj1 = 0 ;
11489 char *kwnames[] = {
11490 (char *) "self",(char *) "but", NULL
11491 };
11492
11493 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonDown",kwnames,&obj0,&obj1)) goto fail;
11494 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11495 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11496 if (obj1) {
11497 arg2 = (int) SWIG_AsInt(obj1);
11498 if (PyErr_Occurred()) SWIG_fail;
11499 }
11500 {
11501 PyThreadState* __tstate = wxPyBeginAllowThreads();
11502 result = (bool)((wxJoystickEvent const *)arg1)->ButtonDown(arg2);
11503
11504 wxPyEndAllowThreads(__tstate);
11505 if (PyErr_Occurred()) SWIG_fail;
11506 }
11507 {
11508 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11509 }
11510 return resultobj;
11511 fail:
11512 return NULL;
11513 }
11514
11515
11516 static PyObject *_wrap_JoystickEvent_ButtonUp(PyObject *self, PyObject *args, PyObject *kwargs) {
11517 PyObject *resultobj;
11518 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11519 int arg2 = (int) wxJOY_BUTTON_ANY ;
11520 bool result;
11521 PyObject * obj0 = 0 ;
11522 PyObject * obj1 = 0 ;
11523 char *kwnames[] = {
11524 (char *) "self",(char *) "but", NULL
11525 };
11526
11527 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonUp",kwnames,&obj0,&obj1)) goto fail;
11528 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11529 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11530 if (obj1) {
11531 arg2 = (int) SWIG_AsInt(obj1);
11532 if (PyErr_Occurred()) SWIG_fail;
11533 }
11534 {
11535 PyThreadState* __tstate = wxPyBeginAllowThreads();
11536 result = (bool)((wxJoystickEvent const *)arg1)->ButtonUp(arg2);
11537
11538 wxPyEndAllowThreads(__tstate);
11539 if (PyErr_Occurred()) SWIG_fail;
11540 }
11541 {
11542 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11543 }
11544 return resultobj;
11545 fail:
11546 return NULL;
11547 }
11548
11549
11550 static PyObject *_wrap_JoystickEvent_ButtonIsDown(PyObject *self, PyObject *args, PyObject *kwargs) {
11551 PyObject *resultobj;
11552 wxJoystickEvent *arg1 = (wxJoystickEvent *) 0 ;
11553 int arg2 = (int) wxJOY_BUTTON_ANY ;
11554 bool result;
11555 PyObject * obj0 = 0 ;
11556 PyObject * obj1 = 0 ;
11557 char *kwnames[] = {
11558 (char *) "self",(char *) "but", NULL
11559 };
11560
11561 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:JoystickEvent_ButtonIsDown",kwnames,&obj0,&obj1)) goto fail;
11562 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxJoystickEvent,
11563 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11564 if (obj1) {
11565 arg2 = (int) SWIG_AsInt(obj1);
11566 if (PyErr_Occurred()) SWIG_fail;
11567 }
11568 {
11569 PyThreadState* __tstate = wxPyBeginAllowThreads();
11570 result = (bool)((wxJoystickEvent const *)arg1)->ButtonIsDown(arg2);
11571
11572 wxPyEndAllowThreads(__tstate);
11573 if (PyErr_Occurred()) SWIG_fail;
11574 }
11575 {
11576 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11577 }
11578 return resultobj;
11579 fail:
11580 return NULL;
11581 }
11582
11583
11584 static PyObject * JoystickEvent_swigregister(PyObject *self, PyObject *args) {
11585 PyObject *obj;
11586 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11587 SWIG_TypeClientData(SWIGTYPE_p_wxJoystickEvent, obj);
11588 Py_INCREF(obj);
11589 return Py_BuildValue((char *)"");
11590 }
11591 static PyObject *_wrap_new_Sound(PyObject *self, PyObject *args, PyObject *kwargs) {
11592 PyObject *resultobj;
11593 wxString const &arg1_defvalue = wxPyEmptyString ;
11594 wxString *arg1 = (wxString *) &arg1_defvalue ;
11595 wxSound *result;
11596 bool temp1 = False ;
11597 PyObject * obj0 = 0 ;
11598 char *kwnames[] = {
11599 (char *) "fileName", NULL
11600 };
11601
11602 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Sound",kwnames,&obj0)) goto fail;
11603 if (obj0) {
11604 {
11605 arg1 = wxString_in_helper(obj0);
11606 if (arg1 == NULL) SWIG_fail;
11607 temp1 = True;
11608 }
11609 }
11610 {
11611 if (!wxPyCheckForApp()) SWIG_fail;
11612 PyThreadState* __tstate = wxPyBeginAllowThreads();
11613 result = (wxSound *)new_wxSound((wxString const &)*arg1);
11614
11615 wxPyEndAllowThreads(__tstate);
11616 if (PyErr_Occurred()) SWIG_fail;
11617 }
11618 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSound, 1);
11619 {
11620 if (temp1)
11621 delete arg1;
11622 }
11623 return resultobj;
11624 fail:
11625 {
11626 if (temp1)
11627 delete arg1;
11628 }
11629 return NULL;
11630 }
11631
11632
11633 static PyObject *_wrap_new_SoundFromData(PyObject *self, PyObject *args, PyObject *kwargs) {
11634 PyObject *resultobj;
11635 PyObject *arg1 = (PyObject *) 0 ;
11636 wxSound *result;
11637 PyObject * obj0 = 0 ;
11638 char *kwnames[] = {
11639 (char *) "data", NULL
11640 };
11641
11642 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_SoundFromData",kwnames,&obj0)) goto fail;
11643 arg1 = obj0;
11644 {
11645 if (!wxPyCheckForApp()) SWIG_fail;
11646 PyThreadState* __tstate = wxPyBeginAllowThreads();
11647 result = (wxSound *)new_wxSound(arg1);
11648
11649 wxPyEndAllowThreads(__tstate);
11650 if (PyErr_Occurred()) SWIG_fail;
11651 }
11652 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSound, 1);
11653 return resultobj;
11654 fail:
11655 return NULL;
11656 }
11657
11658
11659 static PyObject *_wrap_delete_Sound(PyObject *self, PyObject *args, PyObject *kwargs) {
11660 PyObject *resultobj;
11661 wxSound *arg1 = (wxSound *) 0 ;
11662 PyObject * obj0 = 0 ;
11663 char *kwnames[] = {
11664 (char *) "self", NULL
11665 };
11666
11667 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Sound",kwnames,&obj0)) goto fail;
11668 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound,
11669 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11670 {
11671 PyThreadState* __tstate = wxPyBeginAllowThreads();
11672 delete arg1;
11673
11674 wxPyEndAllowThreads(__tstate);
11675 if (PyErr_Occurred()) SWIG_fail;
11676 }
11677 Py_INCREF(Py_None); resultobj = Py_None;
11678 return resultobj;
11679 fail:
11680 return NULL;
11681 }
11682
11683
11684 static PyObject *_wrap_Sound_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
11685 PyObject *resultobj;
11686 wxSound *arg1 = (wxSound *) 0 ;
11687 wxString *arg2 = 0 ;
11688 bool result;
11689 bool temp2 = False ;
11690 PyObject * obj0 = 0 ;
11691 PyObject * obj1 = 0 ;
11692 char *kwnames[] = {
11693 (char *) "self",(char *) "fileName", NULL
11694 };
11695
11696 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sound_Create",kwnames,&obj0,&obj1)) goto fail;
11697 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound,
11698 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11699 {
11700 arg2 = wxString_in_helper(obj1);
11701 if (arg2 == NULL) SWIG_fail;
11702 temp2 = True;
11703 }
11704 {
11705 PyThreadState* __tstate = wxPyBeginAllowThreads();
11706 result = (bool)(arg1)->Create((wxString const &)*arg2);
11707
11708 wxPyEndAllowThreads(__tstate);
11709 if (PyErr_Occurred()) SWIG_fail;
11710 }
11711 {
11712 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11713 }
11714 {
11715 if (temp2)
11716 delete arg2;
11717 }
11718 return resultobj;
11719 fail:
11720 {
11721 if (temp2)
11722 delete arg2;
11723 }
11724 return NULL;
11725 }
11726
11727
11728 static PyObject *_wrap_Sound_CreateFromData(PyObject *self, PyObject *args, PyObject *kwargs) {
11729 PyObject *resultobj;
11730 wxSound *arg1 = (wxSound *) 0 ;
11731 PyObject *arg2 = (PyObject *) 0 ;
11732 bool result;
11733 PyObject * obj0 = 0 ;
11734 PyObject * obj1 = 0 ;
11735 char *kwnames[] = {
11736 (char *) "self",(char *) "data", NULL
11737 };
11738
11739 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sound_CreateFromData",kwnames,&obj0,&obj1)) goto fail;
11740 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound,
11741 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11742 arg2 = obj1;
11743 {
11744 PyThreadState* __tstate = wxPyBeginAllowThreads();
11745 result = (bool)wxSound_CreateFromData(arg1,arg2);
11746
11747 wxPyEndAllowThreads(__tstate);
11748 if (PyErr_Occurred()) SWIG_fail;
11749 }
11750 {
11751 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11752 }
11753 return resultobj;
11754 fail:
11755 return NULL;
11756 }
11757
11758
11759 static PyObject *_wrap_Sound_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
11760 PyObject *resultobj;
11761 wxSound *arg1 = (wxSound *) 0 ;
11762 bool result;
11763 PyObject * obj0 = 0 ;
11764 char *kwnames[] = {
11765 (char *) "self", NULL
11766 };
11767
11768 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Sound_IsOk",kwnames,&obj0)) goto fail;
11769 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound,
11770 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11771 {
11772 PyThreadState* __tstate = wxPyBeginAllowThreads();
11773 result = (bool)(arg1)->IsOk();
11774
11775 wxPyEndAllowThreads(__tstate);
11776 if (PyErr_Occurred()) SWIG_fail;
11777 }
11778 {
11779 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11780 }
11781 return resultobj;
11782 fail:
11783 return NULL;
11784 }
11785
11786
11787 static PyObject *_wrap_Sound_Play(PyObject *self, PyObject *args, PyObject *kwargs) {
11788 PyObject *resultobj;
11789 wxSound *arg1 = (wxSound *) 0 ;
11790 unsigned int arg2 = (unsigned int) wxSOUND_ASYNC ;
11791 bool result;
11792 PyObject * obj0 = 0 ;
11793 PyObject * obj1 = 0 ;
11794 char *kwnames[] = {
11795 (char *) "self",(char *) "flags", NULL
11796 };
11797
11798 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Sound_Play",kwnames,&obj0,&obj1)) goto fail;
11799 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSound,
11800 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11801 if (obj1) {
11802 arg2 = (unsigned int) SWIG_AsUnsignedInt(obj1);
11803 if (PyErr_Occurred()) SWIG_fail;
11804 }
11805 {
11806 if (!wxPyCheckForApp()) SWIG_fail;
11807 PyThreadState* __tstate = wxPyBeginAllowThreads();
11808 result = (bool)((wxSound const *)arg1)->Play(arg2);
11809
11810 wxPyEndAllowThreads(__tstate);
11811 if (PyErr_Occurred()) SWIG_fail;
11812 }
11813 {
11814 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11815 }
11816 return resultobj;
11817 fail:
11818 return NULL;
11819 }
11820
11821
11822 static PyObject *_wrap_Sound_PlaySound(PyObject *self, PyObject *args, PyObject *kwargs) {
11823 PyObject *resultobj;
11824 wxString *arg1 = 0 ;
11825 unsigned int arg2 = (unsigned int) wxSOUND_ASYNC ;
11826 bool result;
11827 bool temp1 = False ;
11828 PyObject * obj0 = 0 ;
11829 PyObject * obj1 = 0 ;
11830 char *kwnames[] = {
11831 (char *) "filename",(char *) "flags", NULL
11832 };
11833
11834 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Sound_PlaySound",kwnames,&obj0,&obj1)) goto fail;
11835 {
11836 arg1 = wxString_in_helper(obj0);
11837 if (arg1 == NULL) SWIG_fail;
11838 temp1 = True;
11839 }
11840 if (obj1) {
11841 arg2 = (unsigned int) SWIG_AsUnsignedInt(obj1);
11842 if (PyErr_Occurred()) SWIG_fail;
11843 }
11844 {
11845 if (!wxPyCheckForApp()) SWIG_fail;
11846 PyThreadState* __tstate = wxPyBeginAllowThreads();
11847 result = (bool)wxSound::Play((wxString const &)*arg1,arg2);
11848
11849 wxPyEndAllowThreads(__tstate);
11850 if (PyErr_Occurred()) SWIG_fail;
11851 }
11852 {
11853 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11854 }
11855 {
11856 if (temp1)
11857 delete arg1;
11858 }
11859 return resultobj;
11860 fail:
11861 {
11862 if (temp1)
11863 delete arg1;
11864 }
11865 return NULL;
11866 }
11867
11868
11869 static PyObject *_wrap_Sound_Stop(PyObject *self, PyObject *args, PyObject *kwargs) {
11870 PyObject *resultobj;
11871 char *kwnames[] = {
11872 NULL
11873 };
11874
11875 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Sound_Stop",kwnames)) goto fail;
11876 {
11877 if (!wxPyCheckForApp()) SWIG_fail;
11878 PyThreadState* __tstate = wxPyBeginAllowThreads();
11879 wxSound::Stop();
11880
11881 wxPyEndAllowThreads(__tstate);
11882 if (PyErr_Occurred()) SWIG_fail;
11883 }
11884 Py_INCREF(Py_None); resultobj = Py_None;
11885 return resultobj;
11886 fail:
11887 return NULL;
11888 }
11889
11890
11891 static PyObject * Sound_swigregister(PyObject *self, PyObject *args) {
11892 PyObject *obj;
11893 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11894 SWIG_TypeClientData(SWIGTYPE_p_wxSound, obj);
11895 Py_INCREF(obj);
11896 return Py_BuildValue((char *)"");
11897 }
11898 static PyObject *_wrap_new_FileTypeInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
11899 PyObject *resultobj;
11900 wxString *arg1 = 0 ;
11901 wxString *arg2 = 0 ;
11902 wxString *arg3 = 0 ;
11903 wxString *arg4 = 0 ;
11904 wxFileTypeInfo *result;
11905 bool temp1 = False ;
11906 bool temp2 = False ;
11907 bool temp3 = False ;
11908 bool temp4 = False ;
11909 PyObject * obj0 = 0 ;
11910 PyObject * obj1 = 0 ;
11911 PyObject * obj2 = 0 ;
11912 PyObject * obj3 = 0 ;
11913 char *kwnames[] = {
11914 (char *) "mimeType",(char *) "openCmd",(char *) "printCmd",(char *) "desc", NULL
11915 };
11916
11917 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_FileTypeInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11918 {
11919 arg1 = wxString_in_helper(obj0);
11920 if (arg1 == NULL) SWIG_fail;
11921 temp1 = True;
11922 }
11923 {
11924 arg2 = wxString_in_helper(obj1);
11925 if (arg2 == NULL) SWIG_fail;
11926 temp2 = True;
11927 }
11928 {
11929 arg3 = wxString_in_helper(obj2);
11930 if (arg3 == NULL) SWIG_fail;
11931 temp3 = True;
11932 }
11933 {
11934 arg4 = wxString_in_helper(obj3);
11935 if (arg4 == NULL) SWIG_fail;
11936 temp4 = True;
11937 }
11938 {
11939 PyThreadState* __tstate = wxPyBeginAllowThreads();
11940 result = (wxFileTypeInfo *)new wxFileTypeInfo((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4);
11941
11942 wxPyEndAllowThreads(__tstate);
11943 if (PyErr_Occurred()) SWIG_fail;
11944 }
11945 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileTypeInfo, 1);
11946 {
11947 if (temp1)
11948 delete arg1;
11949 }
11950 {
11951 if (temp2)
11952 delete arg2;
11953 }
11954 {
11955 if (temp3)
11956 delete arg3;
11957 }
11958 {
11959 if (temp4)
11960 delete arg4;
11961 }
11962 return resultobj;
11963 fail:
11964 {
11965 if (temp1)
11966 delete arg1;
11967 }
11968 {
11969 if (temp2)
11970 delete arg2;
11971 }
11972 {
11973 if (temp3)
11974 delete arg3;
11975 }
11976 {
11977 if (temp4)
11978 delete arg4;
11979 }
11980 return NULL;
11981 }
11982
11983
11984 static PyObject *_wrap_new_FileTypeInfoSequence(PyObject *self, PyObject *args, PyObject *kwargs) {
11985 PyObject *resultobj;
11986 wxArrayString *arg1 = 0 ;
11987 wxFileTypeInfo *result;
11988 bool temp1 = False ;
11989 PyObject * obj0 = 0 ;
11990 char *kwnames[] = {
11991 (char *) "sArray", NULL
11992 };
11993
11994 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FileTypeInfoSequence",kwnames,&obj0)) goto fail;
11995 {
11996 if (! PySequence_Check(obj0)) {
11997 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
11998 SWIG_fail;
11999 }
12000 arg1 = new wxArrayString;
12001 temp1 = True;
12002 int i, len=PySequence_Length(obj0);
12003 for (i=0; i<len; i++) {
12004 PyObject* item = PySequence_GetItem(obj0, i);
12005 #if wxUSE_UNICODE
12006 PyObject* str = PyObject_Unicode(item);
12007 #else
12008 PyObject* str = PyObject_Str(item);
12009 #endif
12010 if (PyErr_Occurred()) SWIG_fail;
12011 arg1->Add(Py2wxString(str));
12012 Py_DECREF(item);
12013 Py_DECREF(str);
12014 }
12015 }
12016 {
12017 PyThreadState* __tstate = wxPyBeginAllowThreads();
12018 result = (wxFileTypeInfo *)new wxFileTypeInfo((wxArrayString const &)*arg1);
12019
12020 wxPyEndAllowThreads(__tstate);
12021 if (PyErr_Occurred()) SWIG_fail;
12022 }
12023 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileTypeInfo, 1);
12024 {
12025 if (temp1) delete arg1;
12026 }
12027 return resultobj;
12028 fail:
12029 {
12030 if (temp1) delete arg1;
12031 }
12032 return NULL;
12033 }
12034
12035
12036 static PyObject *_wrap_new_NullFileTypeInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
12037 PyObject *resultobj;
12038 wxFileTypeInfo *result;
12039 char *kwnames[] = {
12040 NULL
12041 };
12042
12043 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NullFileTypeInfo",kwnames)) goto fail;
12044 {
12045 PyThreadState* __tstate = wxPyBeginAllowThreads();
12046 result = (wxFileTypeInfo *)new wxFileTypeInfo();
12047
12048 wxPyEndAllowThreads(__tstate);
12049 if (PyErr_Occurred()) SWIG_fail;
12050 }
12051 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileTypeInfo, 1);
12052 return resultobj;
12053 fail:
12054 return NULL;
12055 }
12056
12057
12058 static PyObject *_wrap_FileTypeInfo_IsValid(PyObject *self, PyObject *args, PyObject *kwargs) {
12059 PyObject *resultobj;
12060 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12061 bool result;
12062 PyObject * obj0 = 0 ;
12063 char *kwnames[] = {
12064 (char *) "self", NULL
12065 };
12066
12067 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_IsValid",kwnames,&obj0)) goto fail;
12068 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12069 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12070 {
12071 PyThreadState* __tstate = wxPyBeginAllowThreads();
12072 result = (bool)((wxFileTypeInfo const *)arg1)->IsValid();
12073
12074 wxPyEndAllowThreads(__tstate);
12075 if (PyErr_Occurred()) SWIG_fail;
12076 }
12077 {
12078 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12079 }
12080 return resultobj;
12081 fail:
12082 return NULL;
12083 }
12084
12085
12086 static PyObject *_wrap_FileTypeInfo_SetIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
12087 PyObject *resultobj;
12088 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12089 wxString *arg2 = 0 ;
12090 int arg3 = (int) 0 ;
12091 bool temp2 = False ;
12092 PyObject * obj0 = 0 ;
12093 PyObject * obj1 = 0 ;
12094 PyObject * obj2 = 0 ;
12095 char *kwnames[] = {
12096 (char *) "self",(char *) "iconFile",(char *) "iconIndex", NULL
12097 };
12098
12099 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileTypeInfo_SetIcon",kwnames,&obj0,&obj1,&obj2)) goto fail;
12100 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12101 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12102 {
12103 arg2 = wxString_in_helper(obj1);
12104 if (arg2 == NULL) SWIG_fail;
12105 temp2 = True;
12106 }
12107 if (obj2) {
12108 arg3 = (int) SWIG_AsInt(obj2);
12109 if (PyErr_Occurred()) SWIG_fail;
12110 }
12111 {
12112 PyThreadState* __tstate = wxPyBeginAllowThreads();
12113 (arg1)->SetIcon((wxString const &)*arg2,arg3);
12114
12115 wxPyEndAllowThreads(__tstate);
12116 if (PyErr_Occurred()) SWIG_fail;
12117 }
12118 Py_INCREF(Py_None); resultobj = Py_None;
12119 {
12120 if (temp2)
12121 delete arg2;
12122 }
12123 return resultobj;
12124 fail:
12125 {
12126 if (temp2)
12127 delete arg2;
12128 }
12129 return NULL;
12130 }
12131
12132
12133 static PyObject *_wrap_FileTypeInfo_SetShortDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
12134 PyObject *resultobj;
12135 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12136 wxString *arg2 = 0 ;
12137 bool temp2 = False ;
12138 PyObject * obj0 = 0 ;
12139 PyObject * obj1 = 0 ;
12140 char *kwnames[] = {
12141 (char *) "self",(char *) "shortDesc", NULL
12142 };
12143
12144 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileTypeInfo_SetShortDesc",kwnames,&obj0,&obj1)) goto fail;
12145 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12146 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12147 {
12148 arg2 = wxString_in_helper(obj1);
12149 if (arg2 == NULL) SWIG_fail;
12150 temp2 = True;
12151 }
12152 {
12153 PyThreadState* __tstate = wxPyBeginAllowThreads();
12154 (arg1)->SetShortDesc((wxString const &)*arg2);
12155
12156 wxPyEndAllowThreads(__tstate);
12157 if (PyErr_Occurred()) SWIG_fail;
12158 }
12159 Py_INCREF(Py_None); resultobj = Py_None;
12160 {
12161 if (temp2)
12162 delete arg2;
12163 }
12164 return resultobj;
12165 fail:
12166 {
12167 if (temp2)
12168 delete arg2;
12169 }
12170 return NULL;
12171 }
12172
12173
12174 static PyObject *_wrap_FileTypeInfo_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) {
12175 PyObject *resultobj;
12176 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12177 wxString *result;
12178 PyObject * obj0 = 0 ;
12179 char *kwnames[] = {
12180 (char *) "self", NULL
12181 };
12182
12183 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetMimeType",kwnames,&obj0)) goto fail;
12184 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12185 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12186 {
12187 PyThreadState* __tstate = wxPyBeginAllowThreads();
12188 {
12189 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetMimeType();
12190 result = (wxString *) &_result_ref;
12191 }
12192
12193 wxPyEndAllowThreads(__tstate);
12194 if (PyErr_Occurred()) SWIG_fail;
12195 }
12196 {
12197 #if wxUSE_UNICODE
12198 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12199 #else
12200 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12201 #endif
12202 }
12203 return resultobj;
12204 fail:
12205 return NULL;
12206 }
12207
12208
12209 static PyObject *_wrap_FileTypeInfo_GetOpenCommand(PyObject *self, PyObject *args, PyObject *kwargs) {
12210 PyObject *resultobj;
12211 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12212 wxString *result;
12213 PyObject * obj0 = 0 ;
12214 char *kwnames[] = {
12215 (char *) "self", NULL
12216 };
12217
12218 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetOpenCommand",kwnames,&obj0)) goto fail;
12219 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12220 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12221 {
12222 PyThreadState* __tstate = wxPyBeginAllowThreads();
12223 {
12224 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetOpenCommand();
12225 result = (wxString *) &_result_ref;
12226 }
12227
12228 wxPyEndAllowThreads(__tstate);
12229 if (PyErr_Occurred()) SWIG_fail;
12230 }
12231 {
12232 #if wxUSE_UNICODE
12233 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12234 #else
12235 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12236 #endif
12237 }
12238 return resultobj;
12239 fail:
12240 return NULL;
12241 }
12242
12243
12244 static PyObject *_wrap_FileTypeInfo_GetPrintCommand(PyObject *self, PyObject *args, PyObject *kwargs) {
12245 PyObject *resultobj;
12246 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12247 wxString *result;
12248 PyObject * obj0 = 0 ;
12249 char *kwnames[] = {
12250 (char *) "self", NULL
12251 };
12252
12253 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetPrintCommand",kwnames,&obj0)) goto fail;
12254 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12255 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12256 {
12257 PyThreadState* __tstate = wxPyBeginAllowThreads();
12258 {
12259 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetPrintCommand();
12260 result = (wxString *) &_result_ref;
12261 }
12262
12263 wxPyEndAllowThreads(__tstate);
12264 if (PyErr_Occurred()) SWIG_fail;
12265 }
12266 {
12267 #if wxUSE_UNICODE
12268 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12269 #else
12270 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12271 #endif
12272 }
12273 return resultobj;
12274 fail:
12275 return NULL;
12276 }
12277
12278
12279 static PyObject *_wrap_FileTypeInfo_GetShortDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
12280 PyObject *resultobj;
12281 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12282 wxString *result;
12283 PyObject * obj0 = 0 ;
12284 char *kwnames[] = {
12285 (char *) "self", NULL
12286 };
12287
12288 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetShortDesc",kwnames,&obj0)) goto fail;
12289 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12290 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12291 {
12292 PyThreadState* __tstate = wxPyBeginAllowThreads();
12293 {
12294 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetShortDesc();
12295 result = (wxString *) &_result_ref;
12296 }
12297
12298 wxPyEndAllowThreads(__tstate);
12299 if (PyErr_Occurred()) SWIG_fail;
12300 }
12301 {
12302 #if wxUSE_UNICODE
12303 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12304 #else
12305 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12306 #endif
12307 }
12308 return resultobj;
12309 fail:
12310 return NULL;
12311 }
12312
12313
12314 static PyObject *_wrap_FileTypeInfo_GetDescription(PyObject *self, PyObject *args, PyObject *kwargs) {
12315 PyObject *resultobj;
12316 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12317 wxString *result;
12318 PyObject * obj0 = 0 ;
12319 char *kwnames[] = {
12320 (char *) "self", NULL
12321 };
12322
12323 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetDescription",kwnames,&obj0)) goto fail;
12324 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12325 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12326 {
12327 PyThreadState* __tstate = wxPyBeginAllowThreads();
12328 {
12329 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetDescription();
12330 result = (wxString *) &_result_ref;
12331 }
12332
12333 wxPyEndAllowThreads(__tstate);
12334 if (PyErr_Occurred()) SWIG_fail;
12335 }
12336 {
12337 #if wxUSE_UNICODE
12338 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12339 #else
12340 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12341 #endif
12342 }
12343 return resultobj;
12344 fail:
12345 return NULL;
12346 }
12347
12348
12349 static PyObject *_wrap_FileTypeInfo_GetExtensions(PyObject *self, PyObject *args, PyObject *kwargs) {
12350 PyObject *resultobj;
12351 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12352 wxArrayString *result;
12353 PyObject * obj0 = 0 ;
12354 char *kwnames[] = {
12355 (char *) "self", NULL
12356 };
12357
12358 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetExtensions",kwnames,&obj0)) goto fail;
12359 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12360 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12361 {
12362 PyThreadState* __tstate = wxPyBeginAllowThreads();
12363 {
12364 wxArrayString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetExtensions();
12365 result = (wxArrayString *) &_result_ref;
12366 }
12367
12368 wxPyEndAllowThreads(__tstate);
12369 if (PyErr_Occurred()) SWIG_fail;
12370 }
12371 {
12372 resultobj = wxArrayString2PyList_helper(*result);
12373 }
12374 return resultobj;
12375 fail:
12376 return NULL;
12377 }
12378
12379
12380 static PyObject *_wrap_FileTypeInfo_GetExtensionsCount(PyObject *self, PyObject *args, PyObject *kwargs) {
12381 PyObject *resultobj;
12382 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12383 int result;
12384 PyObject * obj0 = 0 ;
12385 char *kwnames[] = {
12386 (char *) "self", NULL
12387 };
12388
12389 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetExtensionsCount",kwnames,&obj0)) goto fail;
12390 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12391 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12392 {
12393 PyThreadState* __tstate = wxPyBeginAllowThreads();
12394 result = (int)((wxFileTypeInfo const *)arg1)->GetExtensionsCount();
12395
12396 wxPyEndAllowThreads(__tstate);
12397 if (PyErr_Occurred()) SWIG_fail;
12398 }
12399 resultobj = SWIG_FromInt((int)result);
12400 return resultobj;
12401 fail:
12402 return NULL;
12403 }
12404
12405
12406 static PyObject *_wrap_FileTypeInfo_GetIconFile(PyObject *self, PyObject *args, PyObject *kwargs) {
12407 PyObject *resultobj;
12408 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12409 wxString *result;
12410 PyObject * obj0 = 0 ;
12411 char *kwnames[] = {
12412 (char *) "self", NULL
12413 };
12414
12415 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetIconFile",kwnames,&obj0)) goto fail;
12416 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12417 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12418 {
12419 PyThreadState* __tstate = wxPyBeginAllowThreads();
12420 {
12421 wxString const &_result_ref = ((wxFileTypeInfo const *)arg1)->GetIconFile();
12422 result = (wxString *) &_result_ref;
12423 }
12424
12425 wxPyEndAllowThreads(__tstate);
12426 if (PyErr_Occurred()) SWIG_fail;
12427 }
12428 {
12429 #if wxUSE_UNICODE
12430 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12431 #else
12432 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12433 #endif
12434 }
12435 return resultobj;
12436 fail:
12437 return NULL;
12438 }
12439
12440
12441 static PyObject *_wrap_FileTypeInfo_GetIconIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
12442 PyObject *resultobj;
12443 wxFileTypeInfo *arg1 = (wxFileTypeInfo *) 0 ;
12444 int result;
12445 PyObject * obj0 = 0 ;
12446 char *kwnames[] = {
12447 (char *) "self", NULL
12448 };
12449
12450 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileTypeInfo_GetIconIndex",kwnames,&obj0)) goto fail;
12451 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12452 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12453 {
12454 PyThreadState* __tstate = wxPyBeginAllowThreads();
12455 result = (int)((wxFileTypeInfo const *)arg1)->GetIconIndex();
12456
12457 wxPyEndAllowThreads(__tstate);
12458 if (PyErr_Occurred()) SWIG_fail;
12459 }
12460 resultobj = SWIG_FromInt((int)result);
12461 return resultobj;
12462 fail:
12463 return NULL;
12464 }
12465
12466
12467 static PyObject * FileTypeInfo_swigregister(PyObject *self, PyObject *args) {
12468 PyObject *obj;
12469 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
12470 SWIG_TypeClientData(SWIGTYPE_p_wxFileTypeInfo, obj);
12471 Py_INCREF(obj);
12472 return Py_BuildValue((char *)"");
12473 }
12474 static PyObject *_wrap_new_FileType(PyObject *self, PyObject *args, PyObject *kwargs) {
12475 PyObject *resultobj;
12476 wxFileTypeInfo *arg1 = 0 ;
12477 wxFileType *result;
12478 PyObject * obj0 = 0 ;
12479 char *kwnames[] = {
12480 (char *) "ftInfo", NULL
12481 };
12482
12483 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FileType",kwnames,&obj0)) goto fail;
12484 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileTypeInfo,
12485 SWIG_POINTER_EXCEPTION | 0)) == -1)
12486 SWIG_fail;
12487 if (arg1 == NULL) {
12488 PyErr_SetString(PyExc_TypeError,"null reference");
12489 SWIG_fail;
12490 }
12491 {
12492 PyThreadState* __tstate = wxPyBeginAllowThreads();
12493 result = (wxFileType *)new wxFileType((wxFileTypeInfo const &)*arg1);
12494
12495 wxPyEndAllowThreads(__tstate);
12496 if (PyErr_Occurred()) SWIG_fail;
12497 }
12498 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1);
12499 return resultobj;
12500 fail:
12501 return NULL;
12502 }
12503
12504
12505 static PyObject *_wrap_delete_FileType(PyObject *self, PyObject *args, PyObject *kwargs) {
12506 PyObject *resultobj;
12507 wxFileType *arg1 = (wxFileType *) 0 ;
12508 PyObject * obj0 = 0 ;
12509 char *kwnames[] = {
12510 (char *) "self", NULL
12511 };
12512
12513 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileType",kwnames,&obj0)) goto fail;
12514 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12515 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12516 {
12517 PyThreadState* __tstate = wxPyBeginAllowThreads();
12518 delete arg1;
12519
12520 wxPyEndAllowThreads(__tstate);
12521 if (PyErr_Occurred()) SWIG_fail;
12522 }
12523 Py_INCREF(Py_None); resultobj = Py_None;
12524 return resultobj;
12525 fail:
12526 return NULL;
12527 }
12528
12529
12530 static PyObject *_wrap_FileType_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) {
12531 PyObject *resultobj;
12532 wxFileType *arg1 = (wxFileType *) 0 ;
12533 PyObject *result;
12534 PyObject * obj0 = 0 ;
12535 char *kwnames[] = {
12536 (char *) "self", NULL
12537 };
12538
12539 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetMimeType",kwnames,&obj0)) goto fail;
12540 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12541 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12542 {
12543 PyThreadState* __tstate = wxPyBeginAllowThreads();
12544 result = (PyObject *)wxFileType_GetMimeType(arg1);
12545
12546 wxPyEndAllowThreads(__tstate);
12547 if (PyErr_Occurred()) SWIG_fail;
12548 }
12549 resultobj = result;
12550 return resultobj;
12551 fail:
12552 return NULL;
12553 }
12554
12555
12556 static PyObject *_wrap_FileType_GetMimeTypes(PyObject *self, PyObject *args, PyObject *kwargs) {
12557 PyObject *resultobj;
12558 wxFileType *arg1 = (wxFileType *) 0 ;
12559 PyObject *result;
12560 PyObject * obj0 = 0 ;
12561 char *kwnames[] = {
12562 (char *) "self", NULL
12563 };
12564
12565 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetMimeTypes",kwnames,&obj0)) goto fail;
12566 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12567 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12568 {
12569 PyThreadState* __tstate = wxPyBeginAllowThreads();
12570 result = (PyObject *)wxFileType_GetMimeTypes(arg1);
12571
12572 wxPyEndAllowThreads(__tstate);
12573 if (PyErr_Occurred()) SWIG_fail;
12574 }
12575 resultobj = result;
12576 return resultobj;
12577 fail:
12578 return NULL;
12579 }
12580
12581
12582 static PyObject *_wrap_FileType_GetExtensions(PyObject *self, PyObject *args, PyObject *kwargs) {
12583 PyObject *resultobj;
12584 wxFileType *arg1 = (wxFileType *) 0 ;
12585 PyObject *result;
12586 PyObject * obj0 = 0 ;
12587 char *kwnames[] = {
12588 (char *) "self", NULL
12589 };
12590
12591 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetExtensions",kwnames,&obj0)) goto fail;
12592 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12593 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12594 {
12595 PyThreadState* __tstate = wxPyBeginAllowThreads();
12596 result = (PyObject *)wxFileType_GetExtensions(arg1);
12597
12598 wxPyEndAllowThreads(__tstate);
12599 if (PyErr_Occurred()) SWIG_fail;
12600 }
12601 resultobj = result;
12602 return resultobj;
12603 fail:
12604 return NULL;
12605 }
12606
12607
12608 static PyObject *_wrap_FileType_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
12609 PyObject *resultobj;
12610 wxFileType *arg1 = (wxFileType *) 0 ;
12611 wxIcon *result;
12612 PyObject * obj0 = 0 ;
12613 char *kwnames[] = {
12614 (char *) "self", NULL
12615 };
12616
12617 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetIcon",kwnames,&obj0)) goto fail;
12618 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12619 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12620 {
12621 PyThreadState* __tstate = wxPyBeginAllowThreads();
12622 result = (wxIcon *)wxFileType_GetIcon(arg1);
12623
12624 wxPyEndAllowThreads(__tstate);
12625 if (PyErr_Occurred()) SWIG_fail;
12626 }
12627 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
12628 return resultobj;
12629 fail:
12630 return NULL;
12631 }
12632
12633
12634 static PyObject *_wrap_FileType_GetIconInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
12635 PyObject *resultobj;
12636 wxFileType *arg1 = (wxFileType *) 0 ;
12637 PyObject *result;
12638 PyObject * obj0 = 0 ;
12639 char *kwnames[] = {
12640 (char *) "self", NULL
12641 };
12642
12643 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetIconInfo",kwnames,&obj0)) goto fail;
12644 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12645 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12646 {
12647 PyThreadState* __tstate = wxPyBeginAllowThreads();
12648 result = (PyObject *)wxFileType_GetIconInfo(arg1);
12649
12650 wxPyEndAllowThreads(__tstate);
12651 if (PyErr_Occurred()) SWIG_fail;
12652 }
12653 resultobj = result;
12654 return resultobj;
12655 fail:
12656 return NULL;
12657 }
12658
12659
12660 static PyObject *_wrap_FileType_GetDescription(PyObject *self, PyObject *args, PyObject *kwargs) {
12661 PyObject *resultobj;
12662 wxFileType *arg1 = (wxFileType *) 0 ;
12663 PyObject *result;
12664 PyObject * obj0 = 0 ;
12665 char *kwnames[] = {
12666 (char *) "self", NULL
12667 };
12668
12669 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_GetDescription",kwnames,&obj0)) goto fail;
12670 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12671 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12672 {
12673 PyThreadState* __tstate = wxPyBeginAllowThreads();
12674 result = (PyObject *)wxFileType_GetDescription(arg1);
12675
12676 wxPyEndAllowThreads(__tstate);
12677 if (PyErr_Occurred()) SWIG_fail;
12678 }
12679 resultobj = result;
12680 return resultobj;
12681 fail:
12682 return NULL;
12683 }
12684
12685
12686 static PyObject *_wrap_FileType_GetOpenCommand(PyObject *self, PyObject *args, PyObject *kwargs) {
12687 PyObject *resultobj;
12688 wxFileType *arg1 = (wxFileType *) 0 ;
12689 wxString *arg2 = 0 ;
12690 wxString const &arg3_defvalue = wxPyEmptyString ;
12691 wxString *arg3 = (wxString *) &arg3_defvalue ;
12692 PyObject *result;
12693 bool temp2 = False ;
12694 bool temp3 = False ;
12695 PyObject * obj0 = 0 ;
12696 PyObject * obj1 = 0 ;
12697 PyObject * obj2 = 0 ;
12698 char *kwnames[] = {
12699 (char *) "self",(char *) "filename",(char *) "mimetype", NULL
12700 };
12701
12702 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetOpenCommand",kwnames,&obj0,&obj1,&obj2)) goto fail;
12703 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12704 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12705 {
12706 arg2 = wxString_in_helper(obj1);
12707 if (arg2 == NULL) SWIG_fail;
12708 temp2 = True;
12709 }
12710 if (obj2) {
12711 {
12712 arg3 = wxString_in_helper(obj2);
12713 if (arg3 == NULL) SWIG_fail;
12714 temp3 = True;
12715 }
12716 }
12717 {
12718 PyThreadState* __tstate = wxPyBeginAllowThreads();
12719 result = (PyObject *)wxFileType_GetOpenCommand(arg1,(wxString const &)*arg2,(wxString const &)*arg3);
12720
12721 wxPyEndAllowThreads(__tstate);
12722 if (PyErr_Occurred()) SWIG_fail;
12723 }
12724 resultobj = result;
12725 {
12726 if (temp2)
12727 delete arg2;
12728 }
12729 {
12730 if (temp3)
12731 delete arg3;
12732 }
12733 return resultobj;
12734 fail:
12735 {
12736 if (temp2)
12737 delete arg2;
12738 }
12739 {
12740 if (temp3)
12741 delete arg3;
12742 }
12743 return NULL;
12744 }
12745
12746
12747 static PyObject *_wrap_FileType_GetPrintCommand(PyObject *self, PyObject *args, PyObject *kwargs) {
12748 PyObject *resultobj;
12749 wxFileType *arg1 = (wxFileType *) 0 ;
12750 wxString *arg2 = 0 ;
12751 wxString const &arg3_defvalue = wxPyEmptyString ;
12752 wxString *arg3 = (wxString *) &arg3_defvalue ;
12753 PyObject *result;
12754 bool temp2 = False ;
12755 bool temp3 = False ;
12756 PyObject * obj0 = 0 ;
12757 PyObject * obj1 = 0 ;
12758 PyObject * obj2 = 0 ;
12759 char *kwnames[] = {
12760 (char *) "self",(char *) "filename",(char *) "mimetype", NULL
12761 };
12762
12763 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetPrintCommand",kwnames,&obj0,&obj1,&obj2)) goto fail;
12764 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12765 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12766 {
12767 arg2 = wxString_in_helper(obj1);
12768 if (arg2 == NULL) SWIG_fail;
12769 temp2 = True;
12770 }
12771 if (obj2) {
12772 {
12773 arg3 = wxString_in_helper(obj2);
12774 if (arg3 == NULL) SWIG_fail;
12775 temp3 = True;
12776 }
12777 }
12778 {
12779 PyThreadState* __tstate = wxPyBeginAllowThreads();
12780 result = (PyObject *)wxFileType_GetPrintCommand(arg1,(wxString const &)*arg2,(wxString const &)*arg3);
12781
12782 wxPyEndAllowThreads(__tstate);
12783 if (PyErr_Occurred()) SWIG_fail;
12784 }
12785 resultobj = result;
12786 {
12787 if (temp2)
12788 delete arg2;
12789 }
12790 {
12791 if (temp3)
12792 delete arg3;
12793 }
12794 return resultobj;
12795 fail:
12796 {
12797 if (temp2)
12798 delete arg2;
12799 }
12800 {
12801 if (temp3)
12802 delete arg3;
12803 }
12804 return NULL;
12805 }
12806
12807
12808 static PyObject *_wrap_FileType_GetAllCommands(PyObject *self, PyObject *args, PyObject *kwargs) {
12809 PyObject *resultobj;
12810 wxFileType *arg1 = (wxFileType *) 0 ;
12811 wxString *arg2 = 0 ;
12812 wxString const &arg3_defvalue = wxPyEmptyString ;
12813 wxString *arg3 = (wxString *) &arg3_defvalue ;
12814 PyObject *result;
12815 bool temp2 = False ;
12816 bool temp3 = False ;
12817 PyObject * obj0 = 0 ;
12818 PyObject * obj1 = 0 ;
12819 PyObject * obj2 = 0 ;
12820 char *kwnames[] = {
12821 (char *) "self",(char *) "filename",(char *) "mimetype", NULL
12822 };
12823
12824 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_GetAllCommands",kwnames,&obj0,&obj1,&obj2)) goto fail;
12825 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12826 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12827 {
12828 arg2 = wxString_in_helper(obj1);
12829 if (arg2 == NULL) SWIG_fail;
12830 temp2 = True;
12831 }
12832 if (obj2) {
12833 {
12834 arg3 = wxString_in_helper(obj2);
12835 if (arg3 == NULL) SWIG_fail;
12836 temp3 = True;
12837 }
12838 }
12839 {
12840 PyThreadState* __tstate = wxPyBeginAllowThreads();
12841 result = (PyObject *)wxFileType_GetAllCommands(arg1,(wxString const &)*arg2,(wxString const &)*arg3);
12842
12843 wxPyEndAllowThreads(__tstate);
12844 if (PyErr_Occurred()) SWIG_fail;
12845 }
12846 resultobj = result;
12847 {
12848 if (temp2)
12849 delete arg2;
12850 }
12851 {
12852 if (temp3)
12853 delete arg3;
12854 }
12855 return resultobj;
12856 fail:
12857 {
12858 if (temp2)
12859 delete arg2;
12860 }
12861 {
12862 if (temp3)
12863 delete arg3;
12864 }
12865 return NULL;
12866 }
12867
12868
12869 static PyObject *_wrap_FileType_SetCommand(PyObject *self, PyObject *args, PyObject *kwargs) {
12870 PyObject *resultobj;
12871 wxFileType *arg1 = (wxFileType *) 0 ;
12872 wxString *arg2 = 0 ;
12873 wxString *arg3 = 0 ;
12874 bool arg4 = (bool) True ;
12875 bool result;
12876 bool temp2 = False ;
12877 bool temp3 = False ;
12878 PyObject * obj0 = 0 ;
12879 PyObject * obj1 = 0 ;
12880 PyObject * obj2 = 0 ;
12881 PyObject * obj3 = 0 ;
12882 char *kwnames[] = {
12883 (char *) "self",(char *) "cmd",(char *) "verb",(char *) "overwriteprompt", NULL
12884 };
12885
12886 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:FileType_SetCommand",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12887 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12888 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12889 {
12890 arg2 = wxString_in_helper(obj1);
12891 if (arg2 == NULL) SWIG_fail;
12892 temp2 = True;
12893 }
12894 {
12895 arg3 = wxString_in_helper(obj2);
12896 if (arg3 == NULL) SWIG_fail;
12897 temp3 = True;
12898 }
12899 if (obj3) {
12900 arg4 = (bool) SWIG_AsBool(obj3);
12901 if (PyErr_Occurred()) SWIG_fail;
12902 }
12903 {
12904 PyThreadState* __tstate = wxPyBeginAllowThreads();
12905 result = (bool)(arg1)->SetCommand((wxString const &)*arg2,(wxString const &)*arg3,arg4);
12906
12907 wxPyEndAllowThreads(__tstate);
12908 if (PyErr_Occurred()) SWIG_fail;
12909 }
12910 {
12911 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12912 }
12913 {
12914 if (temp2)
12915 delete arg2;
12916 }
12917 {
12918 if (temp3)
12919 delete arg3;
12920 }
12921 return resultobj;
12922 fail:
12923 {
12924 if (temp2)
12925 delete arg2;
12926 }
12927 {
12928 if (temp3)
12929 delete arg3;
12930 }
12931 return NULL;
12932 }
12933
12934
12935 static PyObject *_wrap_FileType_SetDefaultIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
12936 PyObject *resultobj;
12937 wxFileType *arg1 = (wxFileType *) 0 ;
12938 wxString const &arg2_defvalue = wxPyEmptyString ;
12939 wxString *arg2 = (wxString *) &arg2_defvalue ;
12940 int arg3 = (int) 0 ;
12941 bool result;
12942 bool temp2 = False ;
12943 PyObject * obj0 = 0 ;
12944 PyObject * obj1 = 0 ;
12945 PyObject * obj2 = 0 ;
12946 char *kwnames[] = {
12947 (char *) "self",(char *) "cmd",(char *) "index", NULL
12948 };
12949
12950 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FileType_SetDefaultIcon",kwnames,&obj0,&obj1,&obj2)) goto fail;
12951 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12952 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12953 if (obj1) {
12954 {
12955 arg2 = wxString_in_helper(obj1);
12956 if (arg2 == NULL) SWIG_fail;
12957 temp2 = True;
12958 }
12959 }
12960 if (obj2) {
12961 arg3 = (int) SWIG_AsInt(obj2);
12962 if (PyErr_Occurred()) SWIG_fail;
12963 }
12964 {
12965 PyThreadState* __tstate = wxPyBeginAllowThreads();
12966 result = (bool)(arg1)->SetDefaultIcon((wxString const &)*arg2,arg3);
12967
12968 wxPyEndAllowThreads(__tstate);
12969 if (PyErr_Occurred()) SWIG_fail;
12970 }
12971 {
12972 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12973 }
12974 {
12975 if (temp2)
12976 delete arg2;
12977 }
12978 return resultobj;
12979 fail:
12980 {
12981 if (temp2)
12982 delete arg2;
12983 }
12984 return NULL;
12985 }
12986
12987
12988 static PyObject *_wrap_FileType_Unassociate(PyObject *self, PyObject *args, PyObject *kwargs) {
12989 PyObject *resultobj;
12990 wxFileType *arg1 = (wxFileType *) 0 ;
12991 bool result;
12992 PyObject * obj0 = 0 ;
12993 char *kwnames[] = {
12994 (char *) "self", NULL
12995 };
12996
12997 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileType_Unassociate",kwnames,&obj0)) goto fail;
12998 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileType,
12999 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13000 {
13001 PyThreadState* __tstate = wxPyBeginAllowThreads();
13002 result = (bool)(arg1)->Unassociate();
13003
13004 wxPyEndAllowThreads(__tstate);
13005 if (PyErr_Occurred()) SWIG_fail;
13006 }
13007 {
13008 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13009 }
13010 return resultobj;
13011 fail:
13012 return NULL;
13013 }
13014
13015
13016 static PyObject *_wrap_FileType_ExpandCommand(PyObject *self, PyObject *args, PyObject *kwargs) {
13017 PyObject *resultobj;
13018 wxString *arg1 = 0 ;
13019 wxString *arg2 = 0 ;
13020 wxString const &arg3_defvalue = wxPyEmptyString ;
13021 wxString *arg3 = (wxString *) &arg3_defvalue ;
13022 wxString result;
13023 bool temp1 = False ;
13024 bool temp2 = False ;
13025 bool temp3 = False ;
13026 PyObject * obj0 = 0 ;
13027 PyObject * obj1 = 0 ;
13028 PyObject * obj2 = 0 ;
13029 char *kwnames[] = {
13030 (char *) "command",(char *) "filename",(char *) "mimetype", NULL
13031 };
13032
13033 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileType_ExpandCommand",kwnames,&obj0,&obj1,&obj2)) goto fail;
13034 {
13035 arg1 = wxString_in_helper(obj0);
13036 if (arg1 == NULL) SWIG_fail;
13037 temp1 = True;
13038 }
13039 {
13040 arg2 = wxString_in_helper(obj1);
13041 if (arg2 == NULL) SWIG_fail;
13042 temp2 = True;
13043 }
13044 if (obj2) {
13045 {
13046 arg3 = wxString_in_helper(obj2);
13047 if (arg3 == NULL) SWIG_fail;
13048 temp3 = True;
13049 }
13050 }
13051 {
13052 PyThreadState* __tstate = wxPyBeginAllowThreads();
13053 result = FileType_ExpandCommand((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3);
13054
13055 wxPyEndAllowThreads(__tstate);
13056 if (PyErr_Occurred()) SWIG_fail;
13057 }
13058 {
13059 #if wxUSE_UNICODE
13060 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13061 #else
13062 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13063 #endif
13064 }
13065 {
13066 if (temp1)
13067 delete arg1;
13068 }
13069 {
13070 if (temp2)
13071 delete arg2;
13072 }
13073 {
13074 if (temp3)
13075 delete arg3;
13076 }
13077 return resultobj;
13078 fail:
13079 {
13080 if (temp1)
13081 delete arg1;
13082 }
13083 {
13084 if (temp2)
13085 delete arg2;
13086 }
13087 {
13088 if (temp3)
13089 delete arg3;
13090 }
13091 return NULL;
13092 }
13093
13094
13095 static PyObject * FileType_swigregister(PyObject *self, PyObject *args) {
13096 PyObject *obj;
13097 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13098 SWIG_TypeClientData(SWIGTYPE_p_wxFileType, obj);
13099 Py_INCREF(obj);
13100 return Py_BuildValue((char *)"");
13101 }
13102 static int _wrap_TheMimeTypesManager_set(PyObject *_val) {
13103 PyErr_SetString(PyExc_TypeError,"Variable TheMimeTypesManager is read-only.");
13104 return 1;
13105 }
13106
13107
13108 static PyObject *_wrap_TheMimeTypesManager_get() {
13109 PyObject *pyobj;
13110
13111 pyobj = SWIG_NewPointerObj((void *)(wxTheMimeTypesManager), SWIGTYPE_p_wxMimeTypesManager, 0);
13112 return pyobj;
13113 }
13114
13115
13116 static PyObject *_wrap_MimeTypesManager_IsOfType(PyObject *self, PyObject *args, PyObject *kwargs) {
13117 PyObject *resultobj;
13118 wxString *arg1 = 0 ;
13119 wxString *arg2 = 0 ;
13120 bool result;
13121 bool temp1 = False ;
13122 bool temp2 = False ;
13123 PyObject * obj0 = 0 ;
13124 PyObject * obj1 = 0 ;
13125 char *kwnames[] = {
13126 (char *) "mimeType",(char *) "wildcard", NULL
13127 };
13128
13129 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_IsOfType",kwnames,&obj0,&obj1)) goto fail;
13130 {
13131 arg1 = wxString_in_helper(obj0);
13132 if (arg1 == NULL) SWIG_fail;
13133 temp1 = True;
13134 }
13135 {
13136 arg2 = wxString_in_helper(obj1);
13137 if (arg2 == NULL) SWIG_fail;
13138 temp2 = True;
13139 }
13140 {
13141 PyThreadState* __tstate = wxPyBeginAllowThreads();
13142 result = (bool)wxMimeTypesManager::IsOfType((wxString const &)*arg1,(wxString const &)*arg2);
13143
13144 wxPyEndAllowThreads(__tstate);
13145 if (PyErr_Occurred()) SWIG_fail;
13146 }
13147 {
13148 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13149 }
13150 {
13151 if (temp1)
13152 delete arg1;
13153 }
13154 {
13155 if (temp2)
13156 delete arg2;
13157 }
13158 return resultobj;
13159 fail:
13160 {
13161 if (temp1)
13162 delete arg1;
13163 }
13164 {
13165 if (temp2)
13166 delete arg2;
13167 }
13168 return NULL;
13169 }
13170
13171
13172 static PyObject *_wrap_new_MimeTypesManager(PyObject *self, PyObject *args, PyObject *kwargs) {
13173 PyObject *resultobj;
13174 wxMimeTypesManager *result;
13175 char *kwnames[] = {
13176 NULL
13177 };
13178
13179 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MimeTypesManager",kwnames)) goto fail;
13180 {
13181 PyThreadState* __tstate = wxPyBeginAllowThreads();
13182 result = (wxMimeTypesManager *)new wxMimeTypesManager();
13183
13184 wxPyEndAllowThreads(__tstate);
13185 if (PyErr_Occurred()) SWIG_fail;
13186 }
13187 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMimeTypesManager, 1);
13188 return resultobj;
13189 fail:
13190 return NULL;
13191 }
13192
13193
13194 static PyObject *_wrap_MimeTypesManager_Initialize(PyObject *self, PyObject *args, PyObject *kwargs) {
13195 PyObject *resultobj;
13196 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13197 int arg2 = (int) wxMAILCAP_ALL ;
13198 wxString const &arg3_defvalue = wxPyEmptyString ;
13199 wxString *arg3 = (wxString *) &arg3_defvalue ;
13200 bool temp3 = False ;
13201 PyObject * obj0 = 0 ;
13202 PyObject * obj1 = 0 ;
13203 PyObject * obj2 = 0 ;
13204 char *kwnames[] = {
13205 (char *) "self",(char *) "mailcapStyle",(char *) "extraDir", NULL
13206 };
13207
13208 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MimeTypesManager_Initialize",kwnames,&obj0,&obj1,&obj2)) goto fail;
13209 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13210 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13211 if (obj1) {
13212 arg2 = (int) SWIG_AsInt(obj1);
13213 if (PyErr_Occurred()) SWIG_fail;
13214 }
13215 if (obj2) {
13216 {
13217 arg3 = wxString_in_helper(obj2);
13218 if (arg3 == NULL) SWIG_fail;
13219 temp3 = True;
13220 }
13221 }
13222 {
13223 PyThreadState* __tstate = wxPyBeginAllowThreads();
13224 (arg1)->Initialize(arg2,(wxString const &)*arg3);
13225
13226 wxPyEndAllowThreads(__tstate);
13227 if (PyErr_Occurred()) SWIG_fail;
13228 }
13229 Py_INCREF(Py_None); resultobj = Py_None;
13230 {
13231 if (temp3)
13232 delete arg3;
13233 }
13234 return resultobj;
13235 fail:
13236 {
13237 if (temp3)
13238 delete arg3;
13239 }
13240 return NULL;
13241 }
13242
13243
13244 static PyObject *_wrap_MimeTypesManager_ClearData(PyObject *self, PyObject *args, PyObject *kwargs) {
13245 PyObject *resultobj;
13246 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13247 PyObject * obj0 = 0 ;
13248 char *kwnames[] = {
13249 (char *) "self", NULL
13250 };
13251
13252 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MimeTypesManager_ClearData",kwnames,&obj0)) goto fail;
13253 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13254 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13255 {
13256 PyThreadState* __tstate = wxPyBeginAllowThreads();
13257 (arg1)->ClearData();
13258
13259 wxPyEndAllowThreads(__tstate);
13260 if (PyErr_Occurred()) SWIG_fail;
13261 }
13262 Py_INCREF(Py_None); resultobj = Py_None;
13263 return resultobj;
13264 fail:
13265 return NULL;
13266 }
13267
13268
13269 static PyObject *_wrap_MimeTypesManager_GetFileTypeFromExtension(PyObject *self, PyObject *args, PyObject *kwargs) {
13270 PyObject *resultobj;
13271 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13272 wxString *arg2 = 0 ;
13273 wxFileType *result;
13274 bool temp2 = False ;
13275 PyObject * obj0 = 0 ;
13276 PyObject * obj1 = 0 ;
13277 char *kwnames[] = {
13278 (char *) "self",(char *) "ext", NULL
13279 };
13280
13281 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_GetFileTypeFromExtension",kwnames,&obj0,&obj1)) goto fail;
13282 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13283 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13284 {
13285 arg2 = wxString_in_helper(obj1);
13286 if (arg2 == NULL) SWIG_fail;
13287 temp2 = True;
13288 }
13289 {
13290 PyThreadState* __tstate = wxPyBeginAllowThreads();
13291 result = (wxFileType *)(arg1)->GetFileTypeFromExtension((wxString const &)*arg2);
13292
13293 wxPyEndAllowThreads(__tstate);
13294 if (PyErr_Occurred()) SWIG_fail;
13295 }
13296 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1);
13297 {
13298 if (temp2)
13299 delete arg2;
13300 }
13301 return resultobj;
13302 fail:
13303 {
13304 if (temp2)
13305 delete arg2;
13306 }
13307 return NULL;
13308 }
13309
13310
13311 static PyObject *_wrap_MimeTypesManager_GetFileTypeFromMimeType(PyObject *self, PyObject *args, PyObject *kwargs) {
13312 PyObject *resultobj;
13313 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13314 wxString *arg2 = 0 ;
13315 wxFileType *result;
13316 bool temp2 = False ;
13317 PyObject * obj0 = 0 ;
13318 PyObject * obj1 = 0 ;
13319 char *kwnames[] = {
13320 (char *) "self",(char *) "mimeType", NULL
13321 };
13322
13323 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_GetFileTypeFromMimeType",kwnames,&obj0,&obj1)) goto fail;
13324 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13325 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13326 {
13327 arg2 = wxString_in_helper(obj1);
13328 if (arg2 == NULL) SWIG_fail;
13329 temp2 = True;
13330 }
13331 {
13332 PyThreadState* __tstate = wxPyBeginAllowThreads();
13333 result = (wxFileType *)(arg1)->GetFileTypeFromMimeType((wxString const &)*arg2);
13334
13335 wxPyEndAllowThreads(__tstate);
13336 if (PyErr_Occurred()) SWIG_fail;
13337 }
13338 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1);
13339 {
13340 if (temp2)
13341 delete arg2;
13342 }
13343 return resultobj;
13344 fail:
13345 {
13346 if (temp2)
13347 delete arg2;
13348 }
13349 return NULL;
13350 }
13351
13352
13353 static PyObject *_wrap_MimeTypesManager_ReadMailcap(PyObject *self, PyObject *args, PyObject *kwargs) {
13354 PyObject *resultobj;
13355 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13356 wxString *arg2 = 0 ;
13357 bool arg3 = (bool) False ;
13358 bool result;
13359 bool temp2 = False ;
13360 PyObject * obj0 = 0 ;
13361 PyObject * obj1 = 0 ;
13362 PyObject * obj2 = 0 ;
13363 char *kwnames[] = {
13364 (char *) "self",(char *) "filename",(char *) "fallback", NULL
13365 };
13366
13367 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:MimeTypesManager_ReadMailcap",kwnames,&obj0,&obj1,&obj2)) goto fail;
13368 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13369 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13370 {
13371 arg2 = wxString_in_helper(obj1);
13372 if (arg2 == NULL) SWIG_fail;
13373 temp2 = True;
13374 }
13375 if (obj2) {
13376 arg3 = (bool) SWIG_AsBool(obj2);
13377 if (PyErr_Occurred()) SWIG_fail;
13378 }
13379 {
13380 PyThreadState* __tstate = wxPyBeginAllowThreads();
13381 result = (bool)(arg1)->ReadMailcap((wxString const &)*arg2,arg3);
13382
13383 wxPyEndAllowThreads(__tstate);
13384 if (PyErr_Occurred()) SWIG_fail;
13385 }
13386 {
13387 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13388 }
13389 {
13390 if (temp2)
13391 delete arg2;
13392 }
13393 return resultobj;
13394 fail:
13395 {
13396 if (temp2)
13397 delete arg2;
13398 }
13399 return NULL;
13400 }
13401
13402
13403 static PyObject *_wrap_MimeTypesManager_ReadMimeTypes(PyObject *self, PyObject *args, PyObject *kwargs) {
13404 PyObject *resultobj;
13405 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13406 wxString *arg2 = 0 ;
13407 bool result;
13408 bool temp2 = False ;
13409 PyObject * obj0 = 0 ;
13410 PyObject * obj1 = 0 ;
13411 char *kwnames[] = {
13412 (char *) "self",(char *) "filename", NULL
13413 };
13414
13415 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_ReadMimeTypes",kwnames,&obj0,&obj1)) goto fail;
13416 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13417 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13418 {
13419 arg2 = wxString_in_helper(obj1);
13420 if (arg2 == NULL) SWIG_fail;
13421 temp2 = True;
13422 }
13423 {
13424 PyThreadState* __tstate = wxPyBeginAllowThreads();
13425 result = (bool)(arg1)->ReadMimeTypes((wxString const &)*arg2);
13426
13427 wxPyEndAllowThreads(__tstate);
13428 if (PyErr_Occurred()) SWIG_fail;
13429 }
13430 {
13431 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13432 }
13433 {
13434 if (temp2)
13435 delete arg2;
13436 }
13437 return resultobj;
13438 fail:
13439 {
13440 if (temp2)
13441 delete arg2;
13442 }
13443 return NULL;
13444 }
13445
13446
13447 static PyObject *_wrap_MimeTypesManager_EnumAllFileTypes(PyObject *self, PyObject *args, PyObject *kwargs) {
13448 PyObject *resultobj;
13449 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13450 PyObject *result;
13451 PyObject * obj0 = 0 ;
13452 char *kwnames[] = {
13453 (char *) "self", NULL
13454 };
13455
13456 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MimeTypesManager_EnumAllFileTypes",kwnames,&obj0)) goto fail;
13457 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13458 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13459 {
13460 PyThreadState* __tstate = wxPyBeginAllowThreads();
13461 result = (PyObject *)wxMimeTypesManager_EnumAllFileTypes(arg1);
13462
13463 wxPyEndAllowThreads(__tstate);
13464 if (PyErr_Occurred()) SWIG_fail;
13465 }
13466 resultobj = result;
13467 return resultobj;
13468 fail:
13469 return NULL;
13470 }
13471
13472
13473 static PyObject *_wrap_MimeTypesManager_AddFallback(PyObject *self, PyObject *args, PyObject *kwargs) {
13474 PyObject *resultobj;
13475 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13476 wxFileTypeInfo *arg2 = 0 ;
13477 PyObject * obj0 = 0 ;
13478 PyObject * obj1 = 0 ;
13479 char *kwnames[] = {
13480 (char *) "self",(char *) "ft", NULL
13481 };
13482
13483 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_AddFallback",kwnames,&obj0,&obj1)) goto fail;
13484 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13485 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13486 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileTypeInfo,
13487 SWIG_POINTER_EXCEPTION | 0)) == -1)
13488 SWIG_fail;
13489 if (arg2 == NULL) {
13490 PyErr_SetString(PyExc_TypeError,"null reference");
13491 SWIG_fail;
13492 }
13493 {
13494 PyThreadState* __tstate = wxPyBeginAllowThreads();
13495 (arg1)->AddFallback((wxFileTypeInfo const &)*arg2);
13496
13497 wxPyEndAllowThreads(__tstate);
13498 if (PyErr_Occurred()) SWIG_fail;
13499 }
13500 Py_INCREF(Py_None); resultobj = Py_None;
13501 return resultobj;
13502 fail:
13503 return NULL;
13504 }
13505
13506
13507 static PyObject *_wrap_MimeTypesManager_Associate(PyObject *self, PyObject *args, PyObject *kwargs) {
13508 PyObject *resultobj;
13509 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13510 wxFileTypeInfo *arg2 = 0 ;
13511 wxFileType *result;
13512 PyObject * obj0 = 0 ;
13513 PyObject * obj1 = 0 ;
13514 char *kwnames[] = {
13515 (char *) "self",(char *) "ftInfo", NULL
13516 };
13517
13518 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_Associate",kwnames,&obj0,&obj1)) goto fail;
13519 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13520 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13521 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileTypeInfo,
13522 SWIG_POINTER_EXCEPTION | 0)) == -1)
13523 SWIG_fail;
13524 if (arg2 == NULL) {
13525 PyErr_SetString(PyExc_TypeError,"null reference");
13526 SWIG_fail;
13527 }
13528 {
13529 PyThreadState* __tstate = wxPyBeginAllowThreads();
13530 result = (wxFileType *)(arg1)->Associate((wxFileTypeInfo const &)*arg2);
13531
13532 wxPyEndAllowThreads(__tstate);
13533 if (PyErr_Occurred()) SWIG_fail;
13534 }
13535 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileType, 1);
13536 return resultobj;
13537 fail:
13538 return NULL;
13539 }
13540
13541
13542 static PyObject *_wrap_MimeTypesManager_Unassociate(PyObject *self, PyObject *args, PyObject *kwargs) {
13543 PyObject *resultobj;
13544 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13545 wxFileType *arg2 = (wxFileType *) 0 ;
13546 bool result;
13547 PyObject * obj0 = 0 ;
13548 PyObject * obj1 = 0 ;
13549 char *kwnames[] = {
13550 (char *) "self",(char *) "ft", NULL
13551 };
13552
13553 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MimeTypesManager_Unassociate",kwnames,&obj0,&obj1)) goto fail;
13554 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13555 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13556 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFileType,
13557 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13558 {
13559 PyThreadState* __tstate = wxPyBeginAllowThreads();
13560 result = (bool)(arg1)->Unassociate(arg2);
13561
13562 wxPyEndAllowThreads(__tstate);
13563 if (PyErr_Occurred()) SWIG_fail;
13564 }
13565 {
13566 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13567 }
13568 return resultobj;
13569 fail:
13570 return NULL;
13571 }
13572
13573
13574 static PyObject *_wrap_delete_MimeTypesManager(PyObject *self, PyObject *args, PyObject *kwargs) {
13575 PyObject *resultobj;
13576 wxMimeTypesManager *arg1 = (wxMimeTypesManager *) 0 ;
13577 PyObject * obj0 = 0 ;
13578 char *kwnames[] = {
13579 (char *) "self", NULL
13580 };
13581
13582 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MimeTypesManager",kwnames,&obj0)) goto fail;
13583 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMimeTypesManager,
13584 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13585 {
13586 PyThreadState* __tstate = wxPyBeginAllowThreads();
13587 delete arg1;
13588
13589 wxPyEndAllowThreads(__tstate);
13590 if (PyErr_Occurred()) SWIG_fail;
13591 }
13592 Py_INCREF(Py_None); resultobj = Py_None;
13593 return resultobj;
13594 fail:
13595 return NULL;
13596 }
13597
13598
13599 static PyObject * MimeTypesManager_swigregister(PyObject *self, PyObject *args) {
13600 PyObject *obj;
13601 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13602 SWIG_TypeClientData(SWIGTYPE_p_wxMimeTypesManager, obj);
13603 Py_INCREF(obj);
13604 return Py_BuildValue((char *)"");
13605 }
13606 static int _wrap_ART_TOOLBAR_set(PyObject *_val) {
13607 PyErr_SetString(PyExc_TypeError,"Variable ART_TOOLBAR is read-only.");
13608 return 1;
13609 }
13610
13611
13612 static PyObject *_wrap_ART_TOOLBAR_get() {
13613 PyObject *pyobj;
13614
13615 {
13616 #if wxUSE_UNICODE
13617 pyobj = PyUnicode_FromWideChar((&wxPyART_TOOLBAR)->c_str(), (&wxPyART_TOOLBAR)->Len());
13618 #else
13619 pyobj = PyString_FromStringAndSize((&wxPyART_TOOLBAR)->c_str(), (&wxPyART_TOOLBAR)->Len());
13620 #endif
13621 }
13622 return pyobj;
13623 }
13624
13625
13626 static int _wrap_ART_MENU_set(PyObject *_val) {
13627 PyErr_SetString(PyExc_TypeError,"Variable ART_MENU is read-only.");
13628 return 1;
13629 }
13630
13631
13632 static PyObject *_wrap_ART_MENU_get() {
13633 PyObject *pyobj;
13634
13635 {
13636 #if wxUSE_UNICODE
13637 pyobj = PyUnicode_FromWideChar((&wxPyART_MENU)->c_str(), (&wxPyART_MENU)->Len());
13638 #else
13639 pyobj = PyString_FromStringAndSize((&wxPyART_MENU)->c_str(), (&wxPyART_MENU)->Len());
13640 #endif
13641 }
13642 return pyobj;
13643 }
13644
13645
13646 static int _wrap_ART_FRAME_ICON_set(PyObject *_val) {
13647 PyErr_SetString(PyExc_TypeError,"Variable ART_FRAME_ICON is read-only.");
13648 return 1;
13649 }
13650
13651
13652 static PyObject *_wrap_ART_FRAME_ICON_get() {
13653 PyObject *pyobj;
13654
13655 {
13656 #if wxUSE_UNICODE
13657 pyobj = PyUnicode_FromWideChar((&wxPyART_FRAME_ICON)->c_str(), (&wxPyART_FRAME_ICON)->Len());
13658 #else
13659 pyobj = PyString_FromStringAndSize((&wxPyART_FRAME_ICON)->c_str(), (&wxPyART_FRAME_ICON)->Len());
13660 #endif
13661 }
13662 return pyobj;
13663 }
13664
13665
13666 static int _wrap_ART_CMN_DIALOG_set(PyObject *_val) {
13667 PyErr_SetString(PyExc_TypeError,"Variable ART_CMN_DIALOG is read-only.");
13668 return 1;
13669 }
13670
13671
13672 static PyObject *_wrap_ART_CMN_DIALOG_get() {
13673 PyObject *pyobj;
13674
13675 {
13676 #if wxUSE_UNICODE
13677 pyobj = PyUnicode_FromWideChar((&wxPyART_CMN_DIALOG)->c_str(), (&wxPyART_CMN_DIALOG)->Len());
13678 #else
13679 pyobj = PyString_FromStringAndSize((&wxPyART_CMN_DIALOG)->c_str(), (&wxPyART_CMN_DIALOG)->Len());
13680 #endif
13681 }
13682 return pyobj;
13683 }
13684
13685
13686 static int _wrap_ART_HELP_BROWSER_set(PyObject *_val) {
13687 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_BROWSER is read-only.");
13688 return 1;
13689 }
13690
13691
13692 static PyObject *_wrap_ART_HELP_BROWSER_get() {
13693 PyObject *pyobj;
13694
13695 {
13696 #if wxUSE_UNICODE
13697 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_BROWSER)->c_str(), (&wxPyART_HELP_BROWSER)->Len());
13698 #else
13699 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_BROWSER)->c_str(), (&wxPyART_HELP_BROWSER)->Len());
13700 #endif
13701 }
13702 return pyobj;
13703 }
13704
13705
13706 static int _wrap_ART_MESSAGE_BOX_set(PyObject *_val) {
13707 PyErr_SetString(PyExc_TypeError,"Variable ART_MESSAGE_BOX is read-only.");
13708 return 1;
13709 }
13710
13711
13712 static PyObject *_wrap_ART_MESSAGE_BOX_get() {
13713 PyObject *pyobj;
13714
13715 {
13716 #if wxUSE_UNICODE
13717 pyobj = PyUnicode_FromWideChar((&wxPyART_MESSAGE_BOX)->c_str(), (&wxPyART_MESSAGE_BOX)->Len());
13718 #else
13719 pyobj = PyString_FromStringAndSize((&wxPyART_MESSAGE_BOX)->c_str(), (&wxPyART_MESSAGE_BOX)->Len());
13720 #endif
13721 }
13722 return pyobj;
13723 }
13724
13725
13726 static int _wrap_ART_OTHER_set(PyObject *_val) {
13727 PyErr_SetString(PyExc_TypeError,"Variable ART_OTHER is read-only.");
13728 return 1;
13729 }
13730
13731
13732 static PyObject *_wrap_ART_OTHER_get() {
13733 PyObject *pyobj;
13734
13735 {
13736 #if wxUSE_UNICODE
13737 pyobj = PyUnicode_FromWideChar((&wxPyART_OTHER)->c_str(), (&wxPyART_OTHER)->Len());
13738 #else
13739 pyobj = PyString_FromStringAndSize((&wxPyART_OTHER)->c_str(), (&wxPyART_OTHER)->Len());
13740 #endif
13741 }
13742 return pyobj;
13743 }
13744
13745
13746 static int _wrap_ART_ADD_BOOKMARK_set(PyObject *_val) {
13747 PyErr_SetString(PyExc_TypeError,"Variable ART_ADD_BOOKMARK is read-only.");
13748 return 1;
13749 }
13750
13751
13752 static PyObject *_wrap_ART_ADD_BOOKMARK_get() {
13753 PyObject *pyobj;
13754
13755 {
13756 #if wxUSE_UNICODE
13757 pyobj = PyUnicode_FromWideChar((&wxPyART_ADD_BOOKMARK)->c_str(), (&wxPyART_ADD_BOOKMARK)->Len());
13758 #else
13759 pyobj = PyString_FromStringAndSize((&wxPyART_ADD_BOOKMARK)->c_str(), (&wxPyART_ADD_BOOKMARK)->Len());
13760 #endif
13761 }
13762 return pyobj;
13763 }
13764
13765
13766 static int _wrap_ART_DEL_BOOKMARK_set(PyObject *_val) {
13767 PyErr_SetString(PyExc_TypeError,"Variable ART_DEL_BOOKMARK is read-only.");
13768 return 1;
13769 }
13770
13771
13772 static PyObject *_wrap_ART_DEL_BOOKMARK_get() {
13773 PyObject *pyobj;
13774
13775 {
13776 #if wxUSE_UNICODE
13777 pyobj = PyUnicode_FromWideChar((&wxPyART_DEL_BOOKMARK)->c_str(), (&wxPyART_DEL_BOOKMARK)->Len());
13778 #else
13779 pyobj = PyString_FromStringAndSize((&wxPyART_DEL_BOOKMARK)->c_str(), (&wxPyART_DEL_BOOKMARK)->Len());
13780 #endif
13781 }
13782 return pyobj;
13783 }
13784
13785
13786 static int _wrap_ART_HELP_SIDE_PANEL_set(PyObject *_val) {
13787 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_SIDE_PANEL is read-only.");
13788 return 1;
13789 }
13790
13791
13792 static PyObject *_wrap_ART_HELP_SIDE_PANEL_get() {
13793 PyObject *pyobj;
13794
13795 {
13796 #if wxUSE_UNICODE
13797 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_SIDE_PANEL)->c_str(), (&wxPyART_HELP_SIDE_PANEL)->Len());
13798 #else
13799 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_SIDE_PANEL)->c_str(), (&wxPyART_HELP_SIDE_PANEL)->Len());
13800 #endif
13801 }
13802 return pyobj;
13803 }
13804
13805
13806 static int _wrap_ART_HELP_SETTINGS_set(PyObject *_val) {
13807 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_SETTINGS is read-only.");
13808 return 1;
13809 }
13810
13811
13812 static PyObject *_wrap_ART_HELP_SETTINGS_get() {
13813 PyObject *pyobj;
13814
13815 {
13816 #if wxUSE_UNICODE
13817 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_SETTINGS)->c_str(), (&wxPyART_HELP_SETTINGS)->Len());
13818 #else
13819 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_SETTINGS)->c_str(), (&wxPyART_HELP_SETTINGS)->Len());
13820 #endif
13821 }
13822 return pyobj;
13823 }
13824
13825
13826 static int _wrap_ART_HELP_BOOK_set(PyObject *_val) {
13827 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_BOOK is read-only.");
13828 return 1;
13829 }
13830
13831
13832 static PyObject *_wrap_ART_HELP_BOOK_get() {
13833 PyObject *pyobj;
13834
13835 {
13836 #if wxUSE_UNICODE
13837 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_BOOK)->c_str(), (&wxPyART_HELP_BOOK)->Len());
13838 #else
13839 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_BOOK)->c_str(), (&wxPyART_HELP_BOOK)->Len());
13840 #endif
13841 }
13842 return pyobj;
13843 }
13844
13845
13846 static int _wrap_ART_HELP_FOLDER_set(PyObject *_val) {
13847 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_FOLDER is read-only.");
13848 return 1;
13849 }
13850
13851
13852 static PyObject *_wrap_ART_HELP_FOLDER_get() {
13853 PyObject *pyobj;
13854
13855 {
13856 #if wxUSE_UNICODE
13857 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_FOLDER)->c_str(), (&wxPyART_HELP_FOLDER)->Len());
13858 #else
13859 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_FOLDER)->c_str(), (&wxPyART_HELP_FOLDER)->Len());
13860 #endif
13861 }
13862 return pyobj;
13863 }
13864
13865
13866 static int _wrap_ART_HELP_PAGE_set(PyObject *_val) {
13867 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP_PAGE is read-only.");
13868 return 1;
13869 }
13870
13871
13872 static PyObject *_wrap_ART_HELP_PAGE_get() {
13873 PyObject *pyobj;
13874
13875 {
13876 #if wxUSE_UNICODE
13877 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP_PAGE)->c_str(), (&wxPyART_HELP_PAGE)->Len());
13878 #else
13879 pyobj = PyString_FromStringAndSize((&wxPyART_HELP_PAGE)->c_str(), (&wxPyART_HELP_PAGE)->Len());
13880 #endif
13881 }
13882 return pyobj;
13883 }
13884
13885
13886 static int _wrap_ART_GO_BACK_set(PyObject *_val) {
13887 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_BACK is read-only.");
13888 return 1;
13889 }
13890
13891
13892 static PyObject *_wrap_ART_GO_BACK_get() {
13893 PyObject *pyobj;
13894
13895 {
13896 #if wxUSE_UNICODE
13897 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_BACK)->c_str(), (&wxPyART_GO_BACK)->Len());
13898 #else
13899 pyobj = PyString_FromStringAndSize((&wxPyART_GO_BACK)->c_str(), (&wxPyART_GO_BACK)->Len());
13900 #endif
13901 }
13902 return pyobj;
13903 }
13904
13905
13906 static int _wrap_ART_GO_FORWARD_set(PyObject *_val) {
13907 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_FORWARD is read-only.");
13908 return 1;
13909 }
13910
13911
13912 static PyObject *_wrap_ART_GO_FORWARD_get() {
13913 PyObject *pyobj;
13914
13915 {
13916 #if wxUSE_UNICODE
13917 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_FORWARD)->c_str(), (&wxPyART_GO_FORWARD)->Len());
13918 #else
13919 pyobj = PyString_FromStringAndSize((&wxPyART_GO_FORWARD)->c_str(), (&wxPyART_GO_FORWARD)->Len());
13920 #endif
13921 }
13922 return pyobj;
13923 }
13924
13925
13926 static int _wrap_ART_GO_UP_set(PyObject *_val) {
13927 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_UP is read-only.");
13928 return 1;
13929 }
13930
13931
13932 static PyObject *_wrap_ART_GO_UP_get() {
13933 PyObject *pyobj;
13934
13935 {
13936 #if wxUSE_UNICODE
13937 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_UP)->c_str(), (&wxPyART_GO_UP)->Len());
13938 #else
13939 pyobj = PyString_FromStringAndSize((&wxPyART_GO_UP)->c_str(), (&wxPyART_GO_UP)->Len());
13940 #endif
13941 }
13942 return pyobj;
13943 }
13944
13945
13946 static int _wrap_ART_GO_DOWN_set(PyObject *_val) {
13947 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_DOWN is read-only.");
13948 return 1;
13949 }
13950
13951
13952 static PyObject *_wrap_ART_GO_DOWN_get() {
13953 PyObject *pyobj;
13954
13955 {
13956 #if wxUSE_UNICODE
13957 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_DOWN)->c_str(), (&wxPyART_GO_DOWN)->Len());
13958 #else
13959 pyobj = PyString_FromStringAndSize((&wxPyART_GO_DOWN)->c_str(), (&wxPyART_GO_DOWN)->Len());
13960 #endif
13961 }
13962 return pyobj;
13963 }
13964
13965
13966 static int _wrap_ART_GO_TO_PARENT_set(PyObject *_val) {
13967 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_TO_PARENT is read-only.");
13968 return 1;
13969 }
13970
13971
13972 static PyObject *_wrap_ART_GO_TO_PARENT_get() {
13973 PyObject *pyobj;
13974
13975 {
13976 #if wxUSE_UNICODE
13977 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_TO_PARENT)->c_str(), (&wxPyART_GO_TO_PARENT)->Len());
13978 #else
13979 pyobj = PyString_FromStringAndSize((&wxPyART_GO_TO_PARENT)->c_str(), (&wxPyART_GO_TO_PARENT)->Len());
13980 #endif
13981 }
13982 return pyobj;
13983 }
13984
13985
13986 static int _wrap_ART_GO_HOME_set(PyObject *_val) {
13987 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_HOME is read-only.");
13988 return 1;
13989 }
13990
13991
13992 static PyObject *_wrap_ART_GO_HOME_get() {
13993 PyObject *pyobj;
13994
13995 {
13996 #if wxUSE_UNICODE
13997 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_HOME)->c_str(), (&wxPyART_GO_HOME)->Len());
13998 #else
13999 pyobj = PyString_FromStringAndSize((&wxPyART_GO_HOME)->c_str(), (&wxPyART_GO_HOME)->Len());
14000 #endif
14001 }
14002 return pyobj;
14003 }
14004
14005
14006 static int _wrap_ART_FILE_OPEN_set(PyObject *_val) {
14007 PyErr_SetString(PyExc_TypeError,"Variable ART_FILE_OPEN is read-only.");
14008 return 1;
14009 }
14010
14011
14012 static PyObject *_wrap_ART_FILE_OPEN_get() {
14013 PyObject *pyobj;
14014
14015 {
14016 #if wxUSE_UNICODE
14017 pyobj = PyUnicode_FromWideChar((&wxPyART_FILE_OPEN)->c_str(), (&wxPyART_FILE_OPEN)->Len());
14018 #else
14019 pyobj = PyString_FromStringAndSize((&wxPyART_FILE_OPEN)->c_str(), (&wxPyART_FILE_OPEN)->Len());
14020 #endif
14021 }
14022 return pyobj;
14023 }
14024
14025
14026 static int _wrap_ART_PRINT_set(PyObject *_val) {
14027 PyErr_SetString(PyExc_TypeError,"Variable ART_PRINT is read-only.");
14028 return 1;
14029 }
14030
14031
14032 static PyObject *_wrap_ART_PRINT_get() {
14033 PyObject *pyobj;
14034
14035 {
14036 #if wxUSE_UNICODE
14037 pyobj = PyUnicode_FromWideChar((&wxPyART_PRINT)->c_str(), (&wxPyART_PRINT)->Len());
14038 #else
14039 pyobj = PyString_FromStringAndSize((&wxPyART_PRINT)->c_str(), (&wxPyART_PRINT)->Len());
14040 #endif
14041 }
14042 return pyobj;
14043 }
14044
14045
14046 static int _wrap_ART_HELP_set(PyObject *_val) {
14047 PyErr_SetString(PyExc_TypeError,"Variable ART_HELP is read-only.");
14048 return 1;
14049 }
14050
14051
14052 static PyObject *_wrap_ART_HELP_get() {
14053 PyObject *pyobj;
14054
14055 {
14056 #if wxUSE_UNICODE
14057 pyobj = PyUnicode_FromWideChar((&wxPyART_HELP)->c_str(), (&wxPyART_HELP)->Len());
14058 #else
14059 pyobj = PyString_FromStringAndSize((&wxPyART_HELP)->c_str(), (&wxPyART_HELP)->Len());
14060 #endif
14061 }
14062 return pyobj;
14063 }
14064
14065
14066 static int _wrap_ART_TIP_set(PyObject *_val) {
14067 PyErr_SetString(PyExc_TypeError,"Variable ART_TIP is read-only.");
14068 return 1;
14069 }
14070
14071
14072 static PyObject *_wrap_ART_TIP_get() {
14073 PyObject *pyobj;
14074
14075 {
14076 #if wxUSE_UNICODE
14077 pyobj = PyUnicode_FromWideChar((&wxPyART_TIP)->c_str(), (&wxPyART_TIP)->Len());
14078 #else
14079 pyobj = PyString_FromStringAndSize((&wxPyART_TIP)->c_str(), (&wxPyART_TIP)->Len());
14080 #endif
14081 }
14082 return pyobj;
14083 }
14084
14085
14086 static int _wrap_ART_REPORT_VIEW_set(PyObject *_val) {
14087 PyErr_SetString(PyExc_TypeError,"Variable ART_REPORT_VIEW is read-only.");
14088 return 1;
14089 }
14090
14091
14092 static PyObject *_wrap_ART_REPORT_VIEW_get() {
14093 PyObject *pyobj;
14094
14095 {
14096 #if wxUSE_UNICODE
14097 pyobj = PyUnicode_FromWideChar((&wxPyART_REPORT_VIEW)->c_str(), (&wxPyART_REPORT_VIEW)->Len());
14098 #else
14099 pyobj = PyString_FromStringAndSize((&wxPyART_REPORT_VIEW)->c_str(), (&wxPyART_REPORT_VIEW)->Len());
14100 #endif
14101 }
14102 return pyobj;
14103 }
14104
14105
14106 static int _wrap_ART_LIST_VIEW_set(PyObject *_val) {
14107 PyErr_SetString(PyExc_TypeError,"Variable ART_LIST_VIEW is read-only.");
14108 return 1;
14109 }
14110
14111
14112 static PyObject *_wrap_ART_LIST_VIEW_get() {
14113 PyObject *pyobj;
14114
14115 {
14116 #if wxUSE_UNICODE
14117 pyobj = PyUnicode_FromWideChar((&wxPyART_LIST_VIEW)->c_str(), (&wxPyART_LIST_VIEW)->Len());
14118 #else
14119 pyobj = PyString_FromStringAndSize((&wxPyART_LIST_VIEW)->c_str(), (&wxPyART_LIST_VIEW)->Len());
14120 #endif
14121 }
14122 return pyobj;
14123 }
14124
14125
14126 static int _wrap_ART_NEW_DIR_set(PyObject *_val) {
14127 PyErr_SetString(PyExc_TypeError,"Variable ART_NEW_DIR is read-only.");
14128 return 1;
14129 }
14130
14131
14132 static PyObject *_wrap_ART_NEW_DIR_get() {
14133 PyObject *pyobj;
14134
14135 {
14136 #if wxUSE_UNICODE
14137 pyobj = PyUnicode_FromWideChar((&wxPyART_NEW_DIR)->c_str(), (&wxPyART_NEW_DIR)->Len());
14138 #else
14139 pyobj = PyString_FromStringAndSize((&wxPyART_NEW_DIR)->c_str(), (&wxPyART_NEW_DIR)->Len());
14140 #endif
14141 }
14142 return pyobj;
14143 }
14144
14145
14146 static int _wrap_ART_FOLDER_set(PyObject *_val) {
14147 PyErr_SetString(PyExc_TypeError,"Variable ART_FOLDER is read-only.");
14148 return 1;
14149 }
14150
14151
14152 static PyObject *_wrap_ART_FOLDER_get() {
14153 PyObject *pyobj;
14154
14155 {
14156 #if wxUSE_UNICODE
14157 pyobj = PyUnicode_FromWideChar((&wxPyART_FOLDER)->c_str(), (&wxPyART_FOLDER)->Len());
14158 #else
14159 pyobj = PyString_FromStringAndSize((&wxPyART_FOLDER)->c_str(), (&wxPyART_FOLDER)->Len());
14160 #endif
14161 }
14162 return pyobj;
14163 }
14164
14165
14166 static int _wrap_ART_GO_DIR_UP_set(PyObject *_val) {
14167 PyErr_SetString(PyExc_TypeError,"Variable ART_GO_DIR_UP is read-only.");
14168 return 1;
14169 }
14170
14171
14172 static PyObject *_wrap_ART_GO_DIR_UP_get() {
14173 PyObject *pyobj;
14174
14175 {
14176 #if wxUSE_UNICODE
14177 pyobj = PyUnicode_FromWideChar((&wxPyART_GO_DIR_UP)->c_str(), (&wxPyART_GO_DIR_UP)->Len());
14178 #else
14179 pyobj = PyString_FromStringAndSize((&wxPyART_GO_DIR_UP)->c_str(), (&wxPyART_GO_DIR_UP)->Len());
14180 #endif
14181 }
14182 return pyobj;
14183 }
14184
14185
14186 static int _wrap_ART_EXECUTABLE_FILE_set(PyObject *_val) {
14187 PyErr_SetString(PyExc_TypeError,"Variable ART_EXECUTABLE_FILE is read-only.");
14188 return 1;
14189 }
14190
14191
14192 static PyObject *_wrap_ART_EXECUTABLE_FILE_get() {
14193 PyObject *pyobj;
14194
14195 {
14196 #if wxUSE_UNICODE
14197 pyobj = PyUnicode_FromWideChar((&wxPyART_EXECUTABLE_FILE)->c_str(), (&wxPyART_EXECUTABLE_FILE)->Len());
14198 #else
14199 pyobj = PyString_FromStringAndSize((&wxPyART_EXECUTABLE_FILE)->c_str(), (&wxPyART_EXECUTABLE_FILE)->Len());
14200 #endif
14201 }
14202 return pyobj;
14203 }
14204
14205
14206 static int _wrap_ART_NORMAL_FILE_set(PyObject *_val) {
14207 PyErr_SetString(PyExc_TypeError,"Variable ART_NORMAL_FILE is read-only.");
14208 return 1;
14209 }
14210
14211
14212 static PyObject *_wrap_ART_NORMAL_FILE_get() {
14213 PyObject *pyobj;
14214
14215 {
14216 #if wxUSE_UNICODE
14217 pyobj = PyUnicode_FromWideChar((&wxPyART_NORMAL_FILE)->c_str(), (&wxPyART_NORMAL_FILE)->Len());
14218 #else
14219 pyobj = PyString_FromStringAndSize((&wxPyART_NORMAL_FILE)->c_str(), (&wxPyART_NORMAL_FILE)->Len());
14220 #endif
14221 }
14222 return pyobj;
14223 }
14224
14225
14226 static int _wrap_ART_TICK_MARK_set(PyObject *_val) {
14227 PyErr_SetString(PyExc_TypeError,"Variable ART_TICK_MARK is read-only.");
14228 return 1;
14229 }
14230
14231
14232 static PyObject *_wrap_ART_TICK_MARK_get() {
14233 PyObject *pyobj;
14234
14235 {
14236 #if wxUSE_UNICODE
14237 pyobj = PyUnicode_FromWideChar((&wxPyART_TICK_MARK)->c_str(), (&wxPyART_TICK_MARK)->Len());
14238 #else
14239 pyobj = PyString_FromStringAndSize((&wxPyART_TICK_MARK)->c_str(), (&wxPyART_TICK_MARK)->Len());
14240 #endif
14241 }
14242 return pyobj;
14243 }
14244
14245
14246 static int _wrap_ART_CROSS_MARK_set(PyObject *_val) {
14247 PyErr_SetString(PyExc_TypeError,"Variable ART_CROSS_MARK is read-only.");
14248 return 1;
14249 }
14250
14251
14252 static PyObject *_wrap_ART_CROSS_MARK_get() {
14253 PyObject *pyobj;
14254
14255 {
14256 #if wxUSE_UNICODE
14257 pyobj = PyUnicode_FromWideChar((&wxPyART_CROSS_MARK)->c_str(), (&wxPyART_CROSS_MARK)->Len());
14258 #else
14259 pyobj = PyString_FromStringAndSize((&wxPyART_CROSS_MARK)->c_str(), (&wxPyART_CROSS_MARK)->Len());
14260 #endif
14261 }
14262 return pyobj;
14263 }
14264
14265
14266 static int _wrap_ART_ERROR_set(PyObject *_val) {
14267 PyErr_SetString(PyExc_TypeError,"Variable ART_ERROR is read-only.");
14268 return 1;
14269 }
14270
14271
14272 static PyObject *_wrap_ART_ERROR_get() {
14273 PyObject *pyobj;
14274
14275 {
14276 #if wxUSE_UNICODE
14277 pyobj = PyUnicode_FromWideChar((&wxPyART_ERROR)->c_str(), (&wxPyART_ERROR)->Len());
14278 #else
14279 pyobj = PyString_FromStringAndSize((&wxPyART_ERROR)->c_str(), (&wxPyART_ERROR)->Len());
14280 #endif
14281 }
14282 return pyobj;
14283 }
14284
14285
14286 static int _wrap_ART_QUESTION_set(PyObject *_val) {
14287 PyErr_SetString(PyExc_TypeError,"Variable ART_QUESTION is read-only.");
14288 return 1;
14289 }
14290
14291
14292 static PyObject *_wrap_ART_QUESTION_get() {
14293 PyObject *pyobj;
14294
14295 {
14296 #if wxUSE_UNICODE
14297 pyobj = PyUnicode_FromWideChar((&wxPyART_QUESTION)->c_str(), (&wxPyART_QUESTION)->Len());
14298 #else
14299 pyobj = PyString_FromStringAndSize((&wxPyART_QUESTION)->c_str(), (&wxPyART_QUESTION)->Len());
14300 #endif
14301 }
14302 return pyobj;
14303 }
14304
14305
14306 static int _wrap_ART_WARNING_set(PyObject *_val) {
14307 PyErr_SetString(PyExc_TypeError,"Variable ART_WARNING is read-only.");
14308 return 1;
14309 }
14310
14311
14312 static PyObject *_wrap_ART_WARNING_get() {
14313 PyObject *pyobj;
14314
14315 {
14316 #if wxUSE_UNICODE
14317 pyobj = PyUnicode_FromWideChar((&wxPyART_WARNING)->c_str(), (&wxPyART_WARNING)->Len());
14318 #else
14319 pyobj = PyString_FromStringAndSize((&wxPyART_WARNING)->c_str(), (&wxPyART_WARNING)->Len());
14320 #endif
14321 }
14322 return pyobj;
14323 }
14324
14325
14326 static int _wrap_ART_INFORMATION_set(PyObject *_val) {
14327 PyErr_SetString(PyExc_TypeError,"Variable ART_INFORMATION is read-only.");
14328 return 1;
14329 }
14330
14331
14332 static PyObject *_wrap_ART_INFORMATION_get() {
14333 PyObject *pyobj;
14334
14335 {
14336 #if wxUSE_UNICODE
14337 pyobj = PyUnicode_FromWideChar((&wxPyART_INFORMATION)->c_str(), (&wxPyART_INFORMATION)->Len());
14338 #else
14339 pyobj = PyString_FromStringAndSize((&wxPyART_INFORMATION)->c_str(), (&wxPyART_INFORMATION)->Len());
14340 #endif
14341 }
14342 return pyobj;
14343 }
14344
14345
14346 static int _wrap_ART_MISSING_IMAGE_set(PyObject *_val) {
14347 PyErr_SetString(PyExc_TypeError,"Variable ART_MISSING_IMAGE is read-only.");
14348 return 1;
14349 }
14350
14351
14352 static PyObject *_wrap_ART_MISSING_IMAGE_get() {
14353 PyObject *pyobj;
14354
14355 {
14356 #if wxUSE_UNICODE
14357 pyobj = PyUnicode_FromWideChar((&wxPyART_MISSING_IMAGE)->c_str(), (&wxPyART_MISSING_IMAGE)->Len());
14358 #else
14359 pyobj = PyString_FromStringAndSize((&wxPyART_MISSING_IMAGE)->c_str(), (&wxPyART_MISSING_IMAGE)->Len());
14360 #endif
14361 }
14362 return pyobj;
14363 }
14364
14365
14366 static PyObject *_wrap_new_ArtProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
14367 PyObject *resultobj;
14368 wxPyArtProvider *result;
14369 char *kwnames[] = {
14370 NULL
14371 };
14372
14373 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ArtProvider",kwnames)) goto fail;
14374 {
14375 if (!wxPyCheckForApp()) SWIG_fail;
14376 PyThreadState* __tstate = wxPyBeginAllowThreads();
14377 result = (wxPyArtProvider *)new wxPyArtProvider();
14378
14379 wxPyEndAllowThreads(__tstate);
14380 if (PyErr_Occurred()) SWIG_fail;
14381 }
14382 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyArtProvider, 1);
14383 return resultobj;
14384 fail:
14385 return NULL;
14386 }
14387
14388
14389 static PyObject *_wrap_ArtProvider__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
14390 PyObject *resultobj;
14391 wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ;
14392 PyObject *arg2 = (PyObject *) 0 ;
14393 PyObject *arg3 = (PyObject *) 0 ;
14394 PyObject * obj0 = 0 ;
14395 PyObject * obj1 = 0 ;
14396 PyObject * obj2 = 0 ;
14397 char *kwnames[] = {
14398 (char *) "self",(char *) "self",(char *) "_class", NULL
14399 };
14400
14401 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ArtProvider__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
14402 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider,
14403 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14404 arg2 = obj1;
14405 arg3 = obj2;
14406 {
14407 PyThreadState* __tstate = wxPyBeginAllowThreads();
14408 (arg1)->_setCallbackInfo(arg2,arg3);
14409
14410 wxPyEndAllowThreads(__tstate);
14411 if (PyErr_Occurred()) SWIG_fail;
14412 }
14413 Py_INCREF(Py_None); resultobj = Py_None;
14414 return resultobj;
14415 fail:
14416 return NULL;
14417 }
14418
14419
14420 static PyObject *_wrap_ArtProvider_PushProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
14421 PyObject *resultobj;
14422 wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ;
14423 PyObject * obj0 = 0 ;
14424 char *kwnames[] = {
14425 (char *) "provider", NULL
14426 };
14427
14428 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_PushProvider",kwnames,&obj0)) goto fail;
14429 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider,
14430 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14431 {
14432 PyThreadState* __tstate = wxPyBeginAllowThreads();
14433 wxPyArtProvider::PushProvider(arg1);
14434
14435 wxPyEndAllowThreads(__tstate);
14436 if (PyErr_Occurred()) SWIG_fail;
14437 }
14438 Py_INCREF(Py_None); resultobj = Py_None;
14439 return resultobj;
14440 fail:
14441 return NULL;
14442 }
14443
14444
14445 static PyObject *_wrap_ArtProvider_PopProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
14446 PyObject *resultobj;
14447 bool result;
14448 char *kwnames[] = {
14449 NULL
14450 };
14451
14452 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ArtProvider_PopProvider",kwnames)) goto fail;
14453 {
14454 PyThreadState* __tstate = wxPyBeginAllowThreads();
14455 result = (bool)wxPyArtProvider::PopProvider();
14456
14457 wxPyEndAllowThreads(__tstate);
14458 if (PyErr_Occurred()) SWIG_fail;
14459 }
14460 {
14461 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14462 }
14463 return resultobj;
14464 fail:
14465 return NULL;
14466 }
14467
14468
14469 static PyObject *_wrap_ArtProvider_RemoveProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
14470 PyObject *resultobj;
14471 wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ;
14472 bool result;
14473 PyObject * obj0 = 0 ;
14474 char *kwnames[] = {
14475 (char *) "provider", NULL
14476 };
14477
14478 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_RemoveProvider",kwnames,&obj0)) goto fail;
14479 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider,
14480 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14481 {
14482 PyThreadState* __tstate = wxPyBeginAllowThreads();
14483 result = (bool)wxPyArtProvider::RemoveProvider(arg1);
14484
14485 wxPyEndAllowThreads(__tstate);
14486 if (PyErr_Occurred()) SWIG_fail;
14487 }
14488 {
14489 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14490 }
14491 return resultobj;
14492 fail:
14493 return NULL;
14494 }
14495
14496
14497 static PyObject *_wrap_ArtProvider_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
14498 PyObject *resultobj;
14499 wxString *arg1 = 0 ;
14500 wxString const &arg2_defvalue = wxPyART_OTHER ;
14501 wxString *arg2 = (wxString *) &arg2_defvalue ;
14502 wxSize const &arg3_defvalue = wxDefaultSize ;
14503 wxSize *arg3 = (wxSize *) &arg3_defvalue ;
14504 wxBitmap result;
14505 bool temp1 = False ;
14506 bool temp2 = False ;
14507 wxSize temp3 ;
14508 PyObject * obj0 = 0 ;
14509 PyObject * obj1 = 0 ;
14510 PyObject * obj2 = 0 ;
14511 char *kwnames[] = {
14512 (char *) "id",(char *) "client",(char *) "size", NULL
14513 };
14514
14515 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:ArtProvider_GetBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail;
14516 {
14517 arg1 = wxString_in_helper(obj0);
14518 if (arg1 == NULL) SWIG_fail;
14519 temp1 = True;
14520 }
14521 if (obj1) {
14522 {
14523 arg2 = wxString_in_helper(obj1);
14524 if (arg2 == NULL) SWIG_fail;
14525 temp2 = True;
14526 }
14527 }
14528 if (obj2) {
14529 {
14530 arg3 = &temp3;
14531 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
14532 }
14533 }
14534 {
14535 if (!wxPyCheckForApp()) SWIG_fail;
14536 PyThreadState* __tstate = wxPyBeginAllowThreads();
14537 result = wxPyArtProvider::GetBitmap((wxString const &)*arg1,(wxString const &)*arg2,(wxSize const &)*arg3);
14538
14539 wxPyEndAllowThreads(__tstate);
14540 if (PyErr_Occurred()) SWIG_fail;
14541 }
14542 {
14543 wxBitmap * resultptr;
14544 resultptr = new wxBitmap((wxBitmap &) result);
14545 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
14546 }
14547 {
14548 if (temp1)
14549 delete arg1;
14550 }
14551 {
14552 if (temp2)
14553 delete arg2;
14554 }
14555 return resultobj;
14556 fail:
14557 {
14558 if (temp1)
14559 delete arg1;
14560 }
14561 {
14562 if (temp2)
14563 delete arg2;
14564 }
14565 return NULL;
14566 }
14567
14568
14569 static PyObject *_wrap_ArtProvider_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
14570 PyObject *resultobj;
14571 wxString *arg1 = 0 ;
14572 wxString const &arg2_defvalue = wxPyART_OTHER ;
14573 wxString *arg2 = (wxString *) &arg2_defvalue ;
14574 wxSize const &arg3_defvalue = wxDefaultSize ;
14575 wxSize *arg3 = (wxSize *) &arg3_defvalue ;
14576 wxIcon result;
14577 bool temp1 = False ;
14578 bool temp2 = False ;
14579 wxSize temp3 ;
14580 PyObject * obj0 = 0 ;
14581 PyObject * obj1 = 0 ;
14582 PyObject * obj2 = 0 ;
14583 char *kwnames[] = {
14584 (char *) "id",(char *) "client",(char *) "size", NULL
14585 };
14586
14587 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:ArtProvider_GetIcon",kwnames,&obj0,&obj1,&obj2)) goto fail;
14588 {
14589 arg1 = wxString_in_helper(obj0);
14590 if (arg1 == NULL) SWIG_fail;
14591 temp1 = True;
14592 }
14593 if (obj1) {
14594 {
14595 arg2 = wxString_in_helper(obj1);
14596 if (arg2 == NULL) SWIG_fail;
14597 temp2 = True;
14598 }
14599 }
14600 if (obj2) {
14601 {
14602 arg3 = &temp3;
14603 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
14604 }
14605 }
14606 {
14607 if (!wxPyCheckForApp()) SWIG_fail;
14608 PyThreadState* __tstate = wxPyBeginAllowThreads();
14609 result = wxPyArtProvider::GetIcon((wxString const &)*arg1,(wxString const &)*arg2,(wxSize const &)*arg3);
14610
14611 wxPyEndAllowThreads(__tstate);
14612 if (PyErr_Occurred()) SWIG_fail;
14613 }
14614 {
14615 wxIcon * resultptr;
14616 resultptr = new wxIcon((wxIcon &) result);
14617 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxIcon, 1);
14618 }
14619 {
14620 if (temp1)
14621 delete arg1;
14622 }
14623 {
14624 if (temp2)
14625 delete arg2;
14626 }
14627 return resultobj;
14628 fail:
14629 {
14630 if (temp1)
14631 delete arg1;
14632 }
14633 {
14634 if (temp2)
14635 delete arg2;
14636 }
14637 return NULL;
14638 }
14639
14640
14641 static PyObject *_wrap_ArtProvider_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
14642 PyObject *resultobj;
14643 wxPyArtProvider *arg1 = (wxPyArtProvider *) 0 ;
14644 PyObject * obj0 = 0 ;
14645 char *kwnames[] = {
14646 (char *) "self", NULL
14647 };
14648
14649 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ArtProvider_Destroy",kwnames,&obj0)) goto fail;
14650 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyArtProvider,
14651 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14652 {
14653 PyThreadState* __tstate = wxPyBeginAllowThreads();
14654 wxPyArtProvider_Destroy(arg1);
14655
14656 wxPyEndAllowThreads(__tstate);
14657 if (PyErr_Occurred()) SWIG_fail;
14658 }
14659 Py_INCREF(Py_None); resultobj = Py_None;
14660 return resultobj;
14661 fail:
14662 return NULL;
14663 }
14664
14665
14666 static PyObject * ArtProvider_swigregister(PyObject *self, PyObject *args) {
14667 PyObject *obj;
14668 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14669 SWIG_TypeClientData(SWIGTYPE_p_wxPyArtProvider, obj);
14670 Py_INCREF(obj);
14671 return Py_BuildValue((char *)"");
14672 }
14673 static PyObject *_wrap_delete_ConfigBase(PyObject *self, PyObject *args, PyObject *kwargs) {
14674 PyObject *resultobj;
14675 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14676 PyObject * obj0 = 0 ;
14677 char *kwnames[] = {
14678 (char *) "self", NULL
14679 };
14680
14681 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ConfigBase",kwnames,&obj0)) goto fail;
14682 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14683 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14684 {
14685 PyThreadState* __tstate = wxPyBeginAllowThreads();
14686 delete arg1;
14687
14688 wxPyEndAllowThreads(__tstate);
14689 if (PyErr_Occurred()) SWIG_fail;
14690 }
14691 Py_INCREF(Py_None); resultobj = Py_None;
14692 return resultobj;
14693 fail:
14694 return NULL;
14695 }
14696
14697
14698 static PyObject *_wrap_ConfigBase_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
14699 PyObject *resultobj;
14700 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14701 wxConfigBase *result;
14702 PyObject * obj0 = 0 ;
14703 char *kwnames[] = {
14704 (char *) "config", NULL
14705 };
14706
14707 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_Set",kwnames,&obj0)) goto fail;
14708 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14709 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14710 {
14711 PyThreadState* __tstate = wxPyBeginAllowThreads();
14712 result = (wxConfigBase *)wxConfigBase::Set(arg1);
14713
14714 wxPyEndAllowThreads(__tstate);
14715 if (PyErr_Occurred()) SWIG_fail;
14716 }
14717 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigBase, 0);
14718 return resultobj;
14719 fail:
14720 return NULL;
14721 }
14722
14723
14724 static PyObject *_wrap_ConfigBase_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
14725 PyObject *resultobj;
14726 bool arg1 = (bool) True ;
14727 wxConfigBase *result;
14728 PyObject * obj0 = 0 ;
14729 char *kwnames[] = {
14730 (char *) "createOnDemand", NULL
14731 };
14732
14733 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ConfigBase_Get",kwnames,&obj0)) goto fail;
14734 if (obj0) {
14735 arg1 = (bool) SWIG_AsBool(obj0);
14736 if (PyErr_Occurred()) SWIG_fail;
14737 }
14738 {
14739 PyThreadState* __tstate = wxPyBeginAllowThreads();
14740 result = (wxConfigBase *)wxConfigBase::Get(arg1);
14741
14742 wxPyEndAllowThreads(__tstate);
14743 if (PyErr_Occurred()) SWIG_fail;
14744 }
14745 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigBase, 0);
14746 return resultobj;
14747 fail:
14748 return NULL;
14749 }
14750
14751
14752 static PyObject *_wrap_ConfigBase_Create(PyObject *self, PyObject *args, PyObject *kwargs) {
14753 PyObject *resultobj;
14754 wxConfigBase *result;
14755 char *kwnames[] = {
14756 NULL
14757 };
14758
14759 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ConfigBase_Create",kwnames)) goto fail;
14760 {
14761 PyThreadState* __tstate = wxPyBeginAllowThreads();
14762 result = (wxConfigBase *)wxConfigBase::Create();
14763
14764 wxPyEndAllowThreads(__tstate);
14765 if (PyErr_Occurred()) SWIG_fail;
14766 }
14767 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigBase, 0);
14768 return resultobj;
14769 fail:
14770 return NULL;
14771 }
14772
14773
14774 static PyObject *_wrap_ConfigBase_DontCreateOnDemand(PyObject *self, PyObject *args, PyObject *kwargs) {
14775 PyObject *resultobj;
14776 char *kwnames[] = {
14777 NULL
14778 };
14779
14780 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":ConfigBase_DontCreateOnDemand",kwnames)) goto fail;
14781 {
14782 PyThreadState* __tstate = wxPyBeginAllowThreads();
14783 wxConfigBase::DontCreateOnDemand();
14784
14785 wxPyEndAllowThreads(__tstate);
14786 if (PyErr_Occurred()) SWIG_fail;
14787 }
14788 Py_INCREF(Py_None); resultobj = Py_None;
14789 return resultobj;
14790 fail:
14791 return NULL;
14792 }
14793
14794
14795 static PyObject *_wrap_ConfigBase_SetPath(PyObject *self, PyObject *args, PyObject *kwargs) {
14796 PyObject *resultobj;
14797 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14798 wxString *arg2 = 0 ;
14799 bool temp2 = False ;
14800 PyObject * obj0 = 0 ;
14801 PyObject * obj1 = 0 ;
14802 char *kwnames[] = {
14803 (char *) "self",(char *) "path", NULL
14804 };
14805
14806 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetPath",kwnames,&obj0,&obj1)) goto fail;
14807 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14808 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14809 {
14810 arg2 = wxString_in_helper(obj1);
14811 if (arg2 == NULL) SWIG_fail;
14812 temp2 = True;
14813 }
14814 {
14815 PyThreadState* __tstate = wxPyBeginAllowThreads();
14816 (arg1)->SetPath((wxString const &)*arg2);
14817
14818 wxPyEndAllowThreads(__tstate);
14819 if (PyErr_Occurred()) SWIG_fail;
14820 }
14821 Py_INCREF(Py_None); resultobj = Py_None;
14822 {
14823 if (temp2)
14824 delete arg2;
14825 }
14826 return resultobj;
14827 fail:
14828 {
14829 if (temp2)
14830 delete arg2;
14831 }
14832 return NULL;
14833 }
14834
14835
14836 static PyObject *_wrap_ConfigBase_GetPath(PyObject *self, PyObject *args, PyObject *kwargs) {
14837 PyObject *resultobj;
14838 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14839 wxString *result;
14840 PyObject * obj0 = 0 ;
14841 char *kwnames[] = {
14842 (char *) "self", NULL
14843 };
14844
14845 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetPath",kwnames,&obj0)) goto fail;
14846 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14847 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14848 {
14849 PyThreadState* __tstate = wxPyBeginAllowThreads();
14850 {
14851 wxString const &_result_ref = ((wxConfigBase const *)arg1)->GetPath();
14852 result = (wxString *) &_result_ref;
14853 }
14854
14855 wxPyEndAllowThreads(__tstate);
14856 if (PyErr_Occurred()) SWIG_fail;
14857 }
14858 {
14859 #if wxUSE_UNICODE
14860 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
14861 #else
14862 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
14863 #endif
14864 }
14865 return resultobj;
14866 fail:
14867 return NULL;
14868 }
14869
14870
14871 static PyObject *_wrap_ConfigBase_GetFirstGroup(PyObject *self, PyObject *args, PyObject *kwargs) {
14872 PyObject *resultobj;
14873 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14874 PyObject *result;
14875 PyObject * obj0 = 0 ;
14876 char *kwnames[] = {
14877 (char *) "self", NULL
14878 };
14879
14880 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetFirstGroup",kwnames,&obj0)) goto fail;
14881 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14882 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14883 {
14884 PyThreadState* __tstate = wxPyBeginAllowThreads();
14885 result = (PyObject *)wxConfigBase_GetFirstGroup(arg1);
14886
14887 wxPyEndAllowThreads(__tstate);
14888 if (PyErr_Occurred()) SWIG_fail;
14889 }
14890 resultobj = result;
14891 return resultobj;
14892 fail:
14893 return NULL;
14894 }
14895
14896
14897 static PyObject *_wrap_ConfigBase_GetNextGroup(PyObject *self, PyObject *args, PyObject *kwargs) {
14898 PyObject *resultobj;
14899 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14900 long arg2 ;
14901 PyObject *result;
14902 PyObject * obj0 = 0 ;
14903 PyObject * obj1 = 0 ;
14904 char *kwnames[] = {
14905 (char *) "self",(char *) "index", NULL
14906 };
14907
14908 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetNextGroup",kwnames,&obj0,&obj1)) goto fail;
14909 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14910 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14911 arg2 = (long) SWIG_AsLong(obj1);
14912 if (PyErr_Occurred()) SWIG_fail;
14913 {
14914 PyThreadState* __tstate = wxPyBeginAllowThreads();
14915 result = (PyObject *)wxConfigBase_GetNextGroup(arg1,arg2);
14916
14917 wxPyEndAllowThreads(__tstate);
14918 if (PyErr_Occurred()) SWIG_fail;
14919 }
14920 resultobj = result;
14921 return resultobj;
14922 fail:
14923 return NULL;
14924 }
14925
14926
14927 static PyObject *_wrap_ConfigBase_GetFirstEntry(PyObject *self, PyObject *args, PyObject *kwargs) {
14928 PyObject *resultobj;
14929 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14930 PyObject *result;
14931 PyObject * obj0 = 0 ;
14932 char *kwnames[] = {
14933 (char *) "self", NULL
14934 };
14935
14936 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetFirstEntry",kwnames,&obj0)) goto fail;
14937 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14938 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14939 {
14940 PyThreadState* __tstate = wxPyBeginAllowThreads();
14941 result = (PyObject *)wxConfigBase_GetFirstEntry(arg1);
14942
14943 wxPyEndAllowThreads(__tstate);
14944 if (PyErr_Occurred()) SWIG_fail;
14945 }
14946 resultobj = result;
14947 return resultobj;
14948 fail:
14949 return NULL;
14950 }
14951
14952
14953 static PyObject *_wrap_ConfigBase_GetNextEntry(PyObject *self, PyObject *args, PyObject *kwargs) {
14954 PyObject *resultobj;
14955 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14956 long arg2 ;
14957 PyObject *result;
14958 PyObject * obj0 = 0 ;
14959 PyObject * obj1 = 0 ;
14960 char *kwnames[] = {
14961 (char *) "self",(char *) "index", NULL
14962 };
14963
14964 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetNextEntry",kwnames,&obj0,&obj1)) goto fail;
14965 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14966 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14967 arg2 = (long) SWIG_AsLong(obj1);
14968 if (PyErr_Occurred()) SWIG_fail;
14969 {
14970 PyThreadState* __tstate = wxPyBeginAllowThreads();
14971 result = (PyObject *)wxConfigBase_GetNextEntry(arg1,arg2);
14972
14973 wxPyEndAllowThreads(__tstate);
14974 if (PyErr_Occurred()) SWIG_fail;
14975 }
14976 resultobj = result;
14977 return resultobj;
14978 fail:
14979 return NULL;
14980 }
14981
14982
14983 static PyObject *_wrap_ConfigBase_GetNumberOfEntries(PyObject *self, PyObject *args, PyObject *kwargs) {
14984 PyObject *resultobj;
14985 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
14986 bool arg2 = (bool) False ;
14987 size_t result;
14988 PyObject * obj0 = 0 ;
14989 PyObject * obj1 = 0 ;
14990 char *kwnames[] = {
14991 (char *) "self",(char *) "recursive", NULL
14992 };
14993
14994 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_GetNumberOfEntries",kwnames,&obj0,&obj1)) goto fail;
14995 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
14996 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14997 if (obj1) {
14998 arg2 = (bool) SWIG_AsBool(obj1);
14999 if (PyErr_Occurred()) SWIG_fail;
15000 }
15001 {
15002 PyThreadState* __tstate = wxPyBeginAllowThreads();
15003 result = (size_t)((wxConfigBase const *)arg1)->GetNumberOfEntries(arg2);
15004
15005 wxPyEndAllowThreads(__tstate);
15006 if (PyErr_Occurred()) SWIG_fail;
15007 }
15008 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
15009 return resultobj;
15010 fail:
15011 return NULL;
15012 }
15013
15014
15015 static PyObject *_wrap_ConfigBase_GetNumberOfGroups(PyObject *self, PyObject *args, PyObject *kwargs) {
15016 PyObject *resultobj;
15017 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15018 bool arg2 = (bool) False ;
15019 size_t result;
15020 PyObject * obj0 = 0 ;
15021 PyObject * obj1 = 0 ;
15022 char *kwnames[] = {
15023 (char *) "self",(char *) "recursive", NULL
15024 };
15025
15026 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_GetNumberOfGroups",kwnames,&obj0,&obj1)) goto fail;
15027 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15028 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15029 if (obj1) {
15030 arg2 = (bool) SWIG_AsBool(obj1);
15031 if (PyErr_Occurred()) SWIG_fail;
15032 }
15033 {
15034 PyThreadState* __tstate = wxPyBeginAllowThreads();
15035 result = (size_t)((wxConfigBase const *)arg1)->GetNumberOfGroups(arg2);
15036
15037 wxPyEndAllowThreads(__tstate);
15038 if (PyErr_Occurred()) SWIG_fail;
15039 }
15040 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
15041 return resultobj;
15042 fail:
15043 return NULL;
15044 }
15045
15046
15047 static PyObject *_wrap_ConfigBase_HasGroup(PyObject *self, PyObject *args, PyObject *kwargs) {
15048 PyObject *resultobj;
15049 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15050 wxString *arg2 = 0 ;
15051 bool result;
15052 bool temp2 = False ;
15053 PyObject * obj0 = 0 ;
15054 PyObject * obj1 = 0 ;
15055 char *kwnames[] = {
15056 (char *) "self",(char *) "name", NULL
15057 };
15058
15059 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_HasGroup",kwnames,&obj0,&obj1)) goto fail;
15060 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15061 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15062 {
15063 arg2 = wxString_in_helper(obj1);
15064 if (arg2 == NULL) SWIG_fail;
15065 temp2 = True;
15066 }
15067 {
15068 PyThreadState* __tstate = wxPyBeginAllowThreads();
15069 result = (bool)((wxConfigBase const *)arg1)->HasGroup((wxString const &)*arg2);
15070
15071 wxPyEndAllowThreads(__tstate);
15072 if (PyErr_Occurred()) SWIG_fail;
15073 }
15074 {
15075 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15076 }
15077 {
15078 if (temp2)
15079 delete arg2;
15080 }
15081 return resultobj;
15082 fail:
15083 {
15084 if (temp2)
15085 delete arg2;
15086 }
15087 return NULL;
15088 }
15089
15090
15091 static PyObject *_wrap_ConfigBase_HasEntry(PyObject *self, PyObject *args, PyObject *kwargs) {
15092 PyObject *resultobj;
15093 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15094 wxString *arg2 = 0 ;
15095 bool result;
15096 bool temp2 = False ;
15097 PyObject * obj0 = 0 ;
15098 PyObject * obj1 = 0 ;
15099 char *kwnames[] = {
15100 (char *) "self",(char *) "name", NULL
15101 };
15102
15103 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_HasEntry",kwnames,&obj0,&obj1)) goto fail;
15104 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15105 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15106 {
15107 arg2 = wxString_in_helper(obj1);
15108 if (arg2 == NULL) SWIG_fail;
15109 temp2 = True;
15110 }
15111 {
15112 PyThreadState* __tstate = wxPyBeginAllowThreads();
15113 result = (bool)((wxConfigBase const *)arg1)->HasEntry((wxString const &)*arg2);
15114
15115 wxPyEndAllowThreads(__tstate);
15116 if (PyErr_Occurred()) SWIG_fail;
15117 }
15118 {
15119 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15120 }
15121 {
15122 if (temp2)
15123 delete arg2;
15124 }
15125 return resultobj;
15126 fail:
15127 {
15128 if (temp2)
15129 delete arg2;
15130 }
15131 return NULL;
15132 }
15133
15134
15135 static PyObject *_wrap_ConfigBase_Exists(PyObject *self, PyObject *args, PyObject *kwargs) {
15136 PyObject *resultobj;
15137 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15138 wxString *arg2 = 0 ;
15139 bool result;
15140 bool temp2 = False ;
15141 PyObject * obj0 = 0 ;
15142 PyObject * obj1 = 0 ;
15143 char *kwnames[] = {
15144 (char *) "self",(char *) "name", NULL
15145 };
15146
15147 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_Exists",kwnames,&obj0,&obj1)) goto fail;
15148 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15149 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15150 {
15151 arg2 = wxString_in_helper(obj1);
15152 if (arg2 == NULL) SWIG_fail;
15153 temp2 = True;
15154 }
15155 {
15156 PyThreadState* __tstate = wxPyBeginAllowThreads();
15157 result = (bool)((wxConfigBase const *)arg1)->Exists((wxString const &)*arg2);
15158
15159 wxPyEndAllowThreads(__tstate);
15160 if (PyErr_Occurred()) SWIG_fail;
15161 }
15162 {
15163 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15164 }
15165 {
15166 if (temp2)
15167 delete arg2;
15168 }
15169 return resultobj;
15170 fail:
15171 {
15172 if (temp2)
15173 delete arg2;
15174 }
15175 return NULL;
15176 }
15177
15178
15179 static PyObject *_wrap_ConfigBase_GetEntryType(PyObject *self, PyObject *args, PyObject *kwargs) {
15180 PyObject *resultobj;
15181 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15182 wxString *arg2 = 0 ;
15183 int result;
15184 bool temp2 = False ;
15185 PyObject * obj0 = 0 ;
15186 PyObject * obj1 = 0 ;
15187 char *kwnames[] = {
15188 (char *) "self",(char *) "name", NULL
15189 };
15190
15191 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_GetEntryType",kwnames,&obj0,&obj1)) goto fail;
15192 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15193 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15194 {
15195 arg2 = wxString_in_helper(obj1);
15196 if (arg2 == NULL) SWIG_fail;
15197 temp2 = True;
15198 }
15199 {
15200 PyThreadState* __tstate = wxPyBeginAllowThreads();
15201 result = (int)((wxConfigBase const *)arg1)->GetEntryType((wxString const &)*arg2);
15202
15203 wxPyEndAllowThreads(__tstate);
15204 if (PyErr_Occurred()) SWIG_fail;
15205 }
15206 resultobj = SWIG_FromInt((int)result);
15207 {
15208 if (temp2)
15209 delete arg2;
15210 }
15211 return resultobj;
15212 fail:
15213 {
15214 if (temp2)
15215 delete arg2;
15216 }
15217 return NULL;
15218 }
15219
15220
15221 static PyObject *_wrap_ConfigBase_Read(PyObject *self, PyObject *args, PyObject *kwargs) {
15222 PyObject *resultobj;
15223 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15224 wxString *arg2 = 0 ;
15225 wxString const &arg3_defvalue = wxPyEmptyString ;
15226 wxString *arg3 = (wxString *) &arg3_defvalue ;
15227 wxString result;
15228 bool temp2 = False ;
15229 bool temp3 = False ;
15230 PyObject * obj0 = 0 ;
15231 PyObject * obj1 = 0 ;
15232 PyObject * obj2 = 0 ;
15233 char *kwnames[] = {
15234 (char *) "self",(char *) "key",(char *) "defaultVal", NULL
15235 };
15236
15237 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_Read",kwnames,&obj0,&obj1,&obj2)) goto fail;
15238 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15239 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15240 {
15241 arg2 = wxString_in_helper(obj1);
15242 if (arg2 == NULL) SWIG_fail;
15243 temp2 = True;
15244 }
15245 if (obj2) {
15246 {
15247 arg3 = wxString_in_helper(obj2);
15248 if (arg3 == NULL) SWIG_fail;
15249 temp3 = True;
15250 }
15251 }
15252 {
15253 PyThreadState* __tstate = wxPyBeginAllowThreads();
15254 result = (arg1)->Read((wxString const &)*arg2,(wxString const &)*arg3);
15255
15256 wxPyEndAllowThreads(__tstate);
15257 if (PyErr_Occurred()) SWIG_fail;
15258 }
15259 {
15260 #if wxUSE_UNICODE
15261 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15262 #else
15263 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15264 #endif
15265 }
15266 {
15267 if (temp2)
15268 delete arg2;
15269 }
15270 {
15271 if (temp3)
15272 delete arg3;
15273 }
15274 return resultobj;
15275 fail:
15276 {
15277 if (temp2)
15278 delete arg2;
15279 }
15280 {
15281 if (temp3)
15282 delete arg3;
15283 }
15284 return NULL;
15285 }
15286
15287
15288 static PyObject *_wrap_ConfigBase_ReadInt(PyObject *self, PyObject *args, PyObject *kwargs) {
15289 PyObject *resultobj;
15290 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15291 wxString *arg2 = 0 ;
15292 long arg3 = (long) 0 ;
15293 long result;
15294 bool temp2 = False ;
15295 PyObject * obj0 = 0 ;
15296 PyObject * obj1 = 0 ;
15297 PyObject * obj2 = 0 ;
15298 char *kwnames[] = {
15299 (char *) "self",(char *) "key",(char *) "defaultVal", NULL
15300 };
15301
15302 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadInt",kwnames,&obj0,&obj1,&obj2)) goto fail;
15303 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15304 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15305 {
15306 arg2 = wxString_in_helper(obj1);
15307 if (arg2 == NULL) SWIG_fail;
15308 temp2 = True;
15309 }
15310 if (obj2) {
15311 arg3 = (long) SWIG_AsLong(obj2);
15312 if (PyErr_Occurred()) SWIG_fail;
15313 }
15314 {
15315 PyThreadState* __tstate = wxPyBeginAllowThreads();
15316 result = (long)wxConfigBase_ReadInt(arg1,(wxString const &)*arg2,arg3);
15317
15318 wxPyEndAllowThreads(__tstate);
15319 if (PyErr_Occurred()) SWIG_fail;
15320 }
15321 resultobj = SWIG_FromLong((long)result);
15322 {
15323 if (temp2)
15324 delete arg2;
15325 }
15326 return resultobj;
15327 fail:
15328 {
15329 if (temp2)
15330 delete arg2;
15331 }
15332 return NULL;
15333 }
15334
15335
15336 static PyObject *_wrap_ConfigBase_ReadFloat(PyObject *self, PyObject *args, PyObject *kwargs) {
15337 PyObject *resultobj;
15338 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15339 wxString *arg2 = 0 ;
15340 double arg3 = (double) 0.0 ;
15341 double result;
15342 bool temp2 = False ;
15343 PyObject * obj0 = 0 ;
15344 PyObject * obj1 = 0 ;
15345 PyObject * obj2 = 0 ;
15346 char *kwnames[] = {
15347 (char *) "self",(char *) "key",(char *) "defaultVal", NULL
15348 };
15349
15350 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadFloat",kwnames,&obj0,&obj1,&obj2)) goto fail;
15351 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15352 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15353 {
15354 arg2 = wxString_in_helper(obj1);
15355 if (arg2 == NULL) SWIG_fail;
15356 temp2 = True;
15357 }
15358 if (obj2) {
15359 arg3 = (double) SWIG_AsDouble(obj2);
15360 if (PyErr_Occurred()) SWIG_fail;
15361 }
15362 {
15363 PyThreadState* __tstate = wxPyBeginAllowThreads();
15364 result = (double)wxConfigBase_ReadFloat(arg1,(wxString const &)*arg2,arg3);
15365
15366 wxPyEndAllowThreads(__tstate);
15367 if (PyErr_Occurred()) SWIG_fail;
15368 }
15369 resultobj = SWIG_FromDouble((double)result);
15370 {
15371 if (temp2)
15372 delete arg2;
15373 }
15374 return resultobj;
15375 fail:
15376 {
15377 if (temp2)
15378 delete arg2;
15379 }
15380 return NULL;
15381 }
15382
15383
15384 static PyObject *_wrap_ConfigBase_ReadBool(PyObject *self, PyObject *args, PyObject *kwargs) {
15385 PyObject *resultobj;
15386 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15387 wxString *arg2 = 0 ;
15388 bool arg3 = (bool) False ;
15389 bool result;
15390 bool temp2 = False ;
15391 PyObject * obj0 = 0 ;
15392 PyObject * obj1 = 0 ;
15393 PyObject * obj2 = 0 ;
15394 char *kwnames[] = {
15395 (char *) "self",(char *) "key",(char *) "defaultVal", NULL
15396 };
15397
15398 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_ReadBool",kwnames,&obj0,&obj1,&obj2)) goto fail;
15399 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15400 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15401 {
15402 arg2 = wxString_in_helper(obj1);
15403 if (arg2 == NULL) SWIG_fail;
15404 temp2 = True;
15405 }
15406 if (obj2) {
15407 arg3 = (bool) SWIG_AsBool(obj2);
15408 if (PyErr_Occurred()) SWIG_fail;
15409 }
15410 {
15411 PyThreadState* __tstate = wxPyBeginAllowThreads();
15412 result = (bool)wxConfigBase_ReadBool(arg1,(wxString const &)*arg2,arg3);
15413
15414 wxPyEndAllowThreads(__tstate);
15415 if (PyErr_Occurred()) SWIG_fail;
15416 }
15417 {
15418 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15419 }
15420 {
15421 if (temp2)
15422 delete arg2;
15423 }
15424 return resultobj;
15425 fail:
15426 {
15427 if (temp2)
15428 delete arg2;
15429 }
15430 return NULL;
15431 }
15432
15433
15434 static PyObject *_wrap_ConfigBase_Write(PyObject *self, PyObject *args, PyObject *kwargs) {
15435 PyObject *resultobj;
15436 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15437 wxString *arg2 = 0 ;
15438 wxString *arg3 = 0 ;
15439 bool result;
15440 bool temp2 = False ;
15441 bool temp3 = False ;
15442 PyObject * obj0 = 0 ;
15443 PyObject * obj1 = 0 ;
15444 PyObject * obj2 = 0 ;
15445 char *kwnames[] = {
15446 (char *) "self",(char *) "key",(char *) "value", NULL
15447 };
15448
15449 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_Write",kwnames,&obj0,&obj1,&obj2)) goto fail;
15450 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15451 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15452 {
15453 arg2 = wxString_in_helper(obj1);
15454 if (arg2 == NULL) SWIG_fail;
15455 temp2 = True;
15456 }
15457 {
15458 arg3 = wxString_in_helper(obj2);
15459 if (arg3 == NULL) SWIG_fail;
15460 temp3 = True;
15461 }
15462 {
15463 PyThreadState* __tstate = wxPyBeginAllowThreads();
15464 result = (bool)(arg1)->Write((wxString const &)*arg2,(wxString const &)*arg3);
15465
15466 wxPyEndAllowThreads(__tstate);
15467 if (PyErr_Occurred()) SWIG_fail;
15468 }
15469 {
15470 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15471 }
15472 {
15473 if (temp2)
15474 delete arg2;
15475 }
15476 {
15477 if (temp3)
15478 delete arg3;
15479 }
15480 return resultobj;
15481 fail:
15482 {
15483 if (temp2)
15484 delete arg2;
15485 }
15486 {
15487 if (temp3)
15488 delete arg3;
15489 }
15490 return NULL;
15491 }
15492
15493
15494 static PyObject *_wrap_ConfigBase_WriteInt(PyObject *self, PyObject *args, PyObject *kwargs) {
15495 PyObject *resultobj;
15496 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15497 wxString *arg2 = 0 ;
15498 long arg3 ;
15499 bool result;
15500 bool temp2 = False ;
15501 PyObject * obj0 = 0 ;
15502 PyObject * obj1 = 0 ;
15503 PyObject * obj2 = 0 ;
15504 char *kwnames[] = {
15505 (char *) "self",(char *) "key",(char *) "value", NULL
15506 };
15507
15508 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteInt",kwnames,&obj0,&obj1,&obj2)) goto fail;
15509 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15510 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15511 {
15512 arg2 = wxString_in_helper(obj1);
15513 if (arg2 == NULL) SWIG_fail;
15514 temp2 = True;
15515 }
15516 arg3 = (long) SWIG_AsLong(obj2);
15517 if (PyErr_Occurred()) SWIG_fail;
15518 {
15519 PyThreadState* __tstate = wxPyBeginAllowThreads();
15520 result = (bool)(arg1)->Write((wxString const &)*arg2,arg3);
15521
15522 wxPyEndAllowThreads(__tstate);
15523 if (PyErr_Occurred()) SWIG_fail;
15524 }
15525 {
15526 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15527 }
15528 {
15529 if (temp2)
15530 delete arg2;
15531 }
15532 return resultobj;
15533 fail:
15534 {
15535 if (temp2)
15536 delete arg2;
15537 }
15538 return NULL;
15539 }
15540
15541
15542 static PyObject *_wrap_ConfigBase_WriteFloat(PyObject *self, PyObject *args, PyObject *kwargs) {
15543 PyObject *resultobj;
15544 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15545 wxString *arg2 = 0 ;
15546 double arg3 ;
15547 bool result;
15548 bool temp2 = False ;
15549 PyObject * obj0 = 0 ;
15550 PyObject * obj1 = 0 ;
15551 PyObject * obj2 = 0 ;
15552 char *kwnames[] = {
15553 (char *) "self",(char *) "key",(char *) "value", NULL
15554 };
15555
15556 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteFloat",kwnames,&obj0,&obj1,&obj2)) goto fail;
15557 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15558 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15559 {
15560 arg2 = wxString_in_helper(obj1);
15561 if (arg2 == NULL) SWIG_fail;
15562 temp2 = True;
15563 }
15564 arg3 = (double) SWIG_AsDouble(obj2);
15565 if (PyErr_Occurred()) SWIG_fail;
15566 {
15567 PyThreadState* __tstate = wxPyBeginAllowThreads();
15568 result = (bool)(arg1)->Write((wxString const &)*arg2,arg3);
15569
15570 wxPyEndAllowThreads(__tstate);
15571 if (PyErr_Occurred()) SWIG_fail;
15572 }
15573 {
15574 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15575 }
15576 {
15577 if (temp2)
15578 delete arg2;
15579 }
15580 return resultobj;
15581 fail:
15582 {
15583 if (temp2)
15584 delete arg2;
15585 }
15586 return NULL;
15587 }
15588
15589
15590 static PyObject *_wrap_ConfigBase_WriteBool(PyObject *self, PyObject *args, PyObject *kwargs) {
15591 PyObject *resultobj;
15592 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15593 wxString *arg2 = 0 ;
15594 bool arg3 ;
15595 bool result;
15596 bool temp2 = False ;
15597 PyObject * obj0 = 0 ;
15598 PyObject * obj1 = 0 ;
15599 PyObject * obj2 = 0 ;
15600 char *kwnames[] = {
15601 (char *) "self",(char *) "key",(char *) "value", NULL
15602 };
15603
15604 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_WriteBool",kwnames,&obj0,&obj1,&obj2)) goto fail;
15605 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15606 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15607 {
15608 arg2 = wxString_in_helper(obj1);
15609 if (arg2 == NULL) SWIG_fail;
15610 temp2 = True;
15611 }
15612 arg3 = (bool) SWIG_AsBool(obj2);
15613 if (PyErr_Occurred()) SWIG_fail;
15614 {
15615 PyThreadState* __tstate = wxPyBeginAllowThreads();
15616 result = (bool)(arg1)->Write((wxString const &)*arg2,arg3);
15617
15618 wxPyEndAllowThreads(__tstate);
15619 if (PyErr_Occurred()) SWIG_fail;
15620 }
15621 {
15622 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15623 }
15624 {
15625 if (temp2)
15626 delete arg2;
15627 }
15628 return resultobj;
15629 fail:
15630 {
15631 if (temp2)
15632 delete arg2;
15633 }
15634 return NULL;
15635 }
15636
15637
15638 static PyObject *_wrap_ConfigBase_Flush(PyObject *self, PyObject *args, PyObject *kwargs) {
15639 PyObject *resultobj;
15640 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15641 bool arg2 = (bool) False ;
15642 bool result;
15643 PyObject * obj0 = 0 ;
15644 PyObject * obj1 = 0 ;
15645 char *kwnames[] = {
15646 (char *) "self",(char *) "currentOnly", NULL
15647 };
15648
15649 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_Flush",kwnames,&obj0,&obj1)) goto fail;
15650 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15651 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15652 if (obj1) {
15653 arg2 = (bool) SWIG_AsBool(obj1);
15654 if (PyErr_Occurred()) SWIG_fail;
15655 }
15656 {
15657 PyThreadState* __tstate = wxPyBeginAllowThreads();
15658 result = (bool)(arg1)->Flush(arg2);
15659
15660 wxPyEndAllowThreads(__tstate);
15661 if (PyErr_Occurred()) SWIG_fail;
15662 }
15663 {
15664 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15665 }
15666 return resultobj;
15667 fail:
15668 return NULL;
15669 }
15670
15671
15672 static PyObject *_wrap_ConfigBase_RenameEntry(PyObject *self, PyObject *args, PyObject *kwargs) {
15673 PyObject *resultobj;
15674 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15675 wxString *arg2 = 0 ;
15676 wxString *arg3 = 0 ;
15677 bool result;
15678 bool temp2 = False ;
15679 bool temp3 = False ;
15680 PyObject * obj0 = 0 ;
15681 PyObject * obj1 = 0 ;
15682 PyObject * obj2 = 0 ;
15683 char *kwnames[] = {
15684 (char *) "self",(char *) "oldName",(char *) "newName", NULL
15685 };
15686
15687 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_RenameEntry",kwnames,&obj0,&obj1,&obj2)) goto fail;
15688 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15689 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15690 {
15691 arg2 = wxString_in_helper(obj1);
15692 if (arg2 == NULL) SWIG_fail;
15693 temp2 = True;
15694 }
15695 {
15696 arg3 = wxString_in_helper(obj2);
15697 if (arg3 == NULL) SWIG_fail;
15698 temp3 = True;
15699 }
15700 {
15701 PyThreadState* __tstate = wxPyBeginAllowThreads();
15702 result = (bool)(arg1)->RenameEntry((wxString const &)*arg2,(wxString const &)*arg3);
15703
15704 wxPyEndAllowThreads(__tstate);
15705 if (PyErr_Occurred()) SWIG_fail;
15706 }
15707 {
15708 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15709 }
15710 {
15711 if (temp2)
15712 delete arg2;
15713 }
15714 {
15715 if (temp3)
15716 delete arg3;
15717 }
15718 return resultobj;
15719 fail:
15720 {
15721 if (temp2)
15722 delete arg2;
15723 }
15724 {
15725 if (temp3)
15726 delete arg3;
15727 }
15728 return NULL;
15729 }
15730
15731
15732 static PyObject *_wrap_ConfigBase_RenameGroup(PyObject *self, PyObject *args, PyObject *kwargs) {
15733 PyObject *resultobj;
15734 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15735 wxString *arg2 = 0 ;
15736 wxString *arg3 = 0 ;
15737 bool result;
15738 bool temp2 = False ;
15739 bool temp3 = False ;
15740 PyObject * obj0 = 0 ;
15741 PyObject * obj1 = 0 ;
15742 PyObject * obj2 = 0 ;
15743 char *kwnames[] = {
15744 (char *) "self",(char *) "oldName",(char *) "newName", NULL
15745 };
15746
15747 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ConfigBase_RenameGroup",kwnames,&obj0,&obj1,&obj2)) goto fail;
15748 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15749 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15750 {
15751 arg2 = wxString_in_helper(obj1);
15752 if (arg2 == NULL) SWIG_fail;
15753 temp2 = True;
15754 }
15755 {
15756 arg3 = wxString_in_helper(obj2);
15757 if (arg3 == NULL) SWIG_fail;
15758 temp3 = True;
15759 }
15760 {
15761 PyThreadState* __tstate = wxPyBeginAllowThreads();
15762 result = (bool)(arg1)->RenameGroup((wxString const &)*arg2,(wxString const &)*arg3);
15763
15764 wxPyEndAllowThreads(__tstate);
15765 if (PyErr_Occurred()) SWIG_fail;
15766 }
15767 {
15768 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15769 }
15770 {
15771 if (temp2)
15772 delete arg2;
15773 }
15774 {
15775 if (temp3)
15776 delete arg3;
15777 }
15778 return resultobj;
15779 fail:
15780 {
15781 if (temp2)
15782 delete arg2;
15783 }
15784 {
15785 if (temp3)
15786 delete arg3;
15787 }
15788 return NULL;
15789 }
15790
15791
15792 static PyObject *_wrap_ConfigBase_DeleteEntry(PyObject *self, PyObject *args, PyObject *kwargs) {
15793 PyObject *resultobj;
15794 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15795 wxString *arg2 = 0 ;
15796 bool arg3 = (bool) True ;
15797 bool result;
15798 bool temp2 = False ;
15799 PyObject * obj0 = 0 ;
15800 PyObject * obj1 = 0 ;
15801 PyObject * obj2 = 0 ;
15802 char *kwnames[] = {
15803 (char *) "self",(char *) "key",(char *) "deleteGroupIfEmpty", NULL
15804 };
15805
15806 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ConfigBase_DeleteEntry",kwnames,&obj0,&obj1,&obj2)) goto fail;
15807 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15808 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15809 {
15810 arg2 = wxString_in_helper(obj1);
15811 if (arg2 == NULL) SWIG_fail;
15812 temp2 = True;
15813 }
15814 if (obj2) {
15815 arg3 = (bool) SWIG_AsBool(obj2);
15816 if (PyErr_Occurred()) SWIG_fail;
15817 }
15818 {
15819 PyThreadState* __tstate = wxPyBeginAllowThreads();
15820 result = (bool)(arg1)->DeleteEntry((wxString const &)*arg2,arg3);
15821
15822 wxPyEndAllowThreads(__tstate);
15823 if (PyErr_Occurred()) SWIG_fail;
15824 }
15825 {
15826 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15827 }
15828 {
15829 if (temp2)
15830 delete arg2;
15831 }
15832 return resultobj;
15833 fail:
15834 {
15835 if (temp2)
15836 delete arg2;
15837 }
15838 return NULL;
15839 }
15840
15841
15842 static PyObject *_wrap_ConfigBase_DeleteGroup(PyObject *self, PyObject *args, PyObject *kwargs) {
15843 PyObject *resultobj;
15844 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15845 wxString *arg2 = 0 ;
15846 bool result;
15847 bool temp2 = False ;
15848 PyObject * obj0 = 0 ;
15849 PyObject * obj1 = 0 ;
15850 char *kwnames[] = {
15851 (char *) "self",(char *) "key", NULL
15852 };
15853
15854 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_DeleteGroup",kwnames,&obj0,&obj1)) goto fail;
15855 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15856 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15857 {
15858 arg2 = wxString_in_helper(obj1);
15859 if (arg2 == NULL) SWIG_fail;
15860 temp2 = True;
15861 }
15862 {
15863 PyThreadState* __tstate = wxPyBeginAllowThreads();
15864 result = (bool)(arg1)->DeleteGroup((wxString const &)*arg2);
15865
15866 wxPyEndAllowThreads(__tstate);
15867 if (PyErr_Occurred()) SWIG_fail;
15868 }
15869 {
15870 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15871 }
15872 {
15873 if (temp2)
15874 delete arg2;
15875 }
15876 return resultobj;
15877 fail:
15878 {
15879 if (temp2)
15880 delete arg2;
15881 }
15882 return NULL;
15883 }
15884
15885
15886 static PyObject *_wrap_ConfigBase_DeleteAll(PyObject *self, PyObject *args, PyObject *kwargs) {
15887 PyObject *resultobj;
15888 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15889 bool result;
15890 PyObject * obj0 = 0 ;
15891 char *kwnames[] = {
15892 (char *) "self", NULL
15893 };
15894
15895 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_DeleteAll",kwnames,&obj0)) goto fail;
15896 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15897 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15898 {
15899 PyThreadState* __tstate = wxPyBeginAllowThreads();
15900 result = (bool)(arg1)->DeleteAll();
15901
15902 wxPyEndAllowThreads(__tstate);
15903 if (PyErr_Occurred()) SWIG_fail;
15904 }
15905 {
15906 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15907 }
15908 return resultobj;
15909 fail:
15910 return NULL;
15911 }
15912
15913
15914 static PyObject *_wrap_ConfigBase_SetExpandEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) {
15915 PyObject *resultobj;
15916 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15917 bool arg2 = (bool) True ;
15918 PyObject * obj0 = 0 ;
15919 PyObject * obj1 = 0 ;
15920 char *kwnames[] = {
15921 (char *) "self",(char *) "doIt", NULL
15922 };
15923
15924 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_SetExpandEnvVars",kwnames,&obj0,&obj1)) goto fail;
15925 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15926 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15927 if (obj1) {
15928 arg2 = (bool) SWIG_AsBool(obj1);
15929 if (PyErr_Occurred()) SWIG_fail;
15930 }
15931 {
15932 PyThreadState* __tstate = wxPyBeginAllowThreads();
15933 (arg1)->SetExpandEnvVars(arg2);
15934
15935 wxPyEndAllowThreads(__tstate);
15936 if (PyErr_Occurred()) SWIG_fail;
15937 }
15938 Py_INCREF(Py_None); resultobj = Py_None;
15939 return resultobj;
15940 fail:
15941 return NULL;
15942 }
15943
15944
15945 static PyObject *_wrap_ConfigBase_IsExpandingEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) {
15946 PyObject *resultobj;
15947 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15948 bool result;
15949 PyObject * obj0 = 0 ;
15950 char *kwnames[] = {
15951 (char *) "self", NULL
15952 };
15953
15954 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_IsExpandingEnvVars",kwnames,&obj0)) goto fail;
15955 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15956 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15957 {
15958 PyThreadState* __tstate = wxPyBeginAllowThreads();
15959 result = (bool)((wxConfigBase const *)arg1)->IsExpandingEnvVars();
15960
15961 wxPyEndAllowThreads(__tstate);
15962 if (PyErr_Occurred()) SWIG_fail;
15963 }
15964 {
15965 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15966 }
15967 return resultobj;
15968 fail:
15969 return NULL;
15970 }
15971
15972
15973 static PyObject *_wrap_ConfigBase_SetRecordDefaults(PyObject *self, PyObject *args, PyObject *kwargs) {
15974 PyObject *resultobj;
15975 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
15976 bool arg2 = (bool) True ;
15977 PyObject * obj0 = 0 ;
15978 PyObject * obj1 = 0 ;
15979 char *kwnames[] = {
15980 (char *) "self",(char *) "doIt", NULL
15981 };
15982
15983 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ConfigBase_SetRecordDefaults",kwnames,&obj0,&obj1)) goto fail;
15984 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
15985 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15986 if (obj1) {
15987 arg2 = (bool) SWIG_AsBool(obj1);
15988 if (PyErr_Occurred()) SWIG_fail;
15989 }
15990 {
15991 PyThreadState* __tstate = wxPyBeginAllowThreads();
15992 (arg1)->SetRecordDefaults(arg2);
15993
15994 wxPyEndAllowThreads(__tstate);
15995 if (PyErr_Occurred()) SWIG_fail;
15996 }
15997 Py_INCREF(Py_None); resultobj = Py_None;
15998 return resultobj;
15999 fail:
16000 return NULL;
16001 }
16002
16003
16004 static PyObject *_wrap_ConfigBase_IsRecordingDefaults(PyObject *self, PyObject *args, PyObject *kwargs) {
16005 PyObject *resultobj;
16006 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16007 bool result;
16008 PyObject * obj0 = 0 ;
16009 char *kwnames[] = {
16010 (char *) "self", NULL
16011 };
16012
16013 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_IsRecordingDefaults",kwnames,&obj0)) goto fail;
16014 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16015 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16016 {
16017 PyThreadState* __tstate = wxPyBeginAllowThreads();
16018 result = (bool)((wxConfigBase const *)arg1)->IsRecordingDefaults();
16019
16020 wxPyEndAllowThreads(__tstate);
16021 if (PyErr_Occurred()) SWIG_fail;
16022 }
16023 {
16024 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16025 }
16026 return resultobj;
16027 fail:
16028 return NULL;
16029 }
16030
16031
16032 static PyObject *_wrap_ConfigBase_ExpandEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) {
16033 PyObject *resultobj;
16034 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16035 wxString *arg2 = 0 ;
16036 wxString result;
16037 bool temp2 = False ;
16038 PyObject * obj0 = 0 ;
16039 PyObject * obj1 = 0 ;
16040 char *kwnames[] = {
16041 (char *) "self",(char *) "str", NULL
16042 };
16043
16044 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_ExpandEnvVars",kwnames,&obj0,&obj1)) goto fail;
16045 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16046 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16047 {
16048 arg2 = wxString_in_helper(obj1);
16049 if (arg2 == NULL) SWIG_fail;
16050 temp2 = True;
16051 }
16052 {
16053 PyThreadState* __tstate = wxPyBeginAllowThreads();
16054 result = ((wxConfigBase const *)arg1)->ExpandEnvVars((wxString const &)*arg2);
16055
16056 wxPyEndAllowThreads(__tstate);
16057 if (PyErr_Occurred()) SWIG_fail;
16058 }
16059 {
16060 #if wxUSE_UNICODE
16061 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16062 #else
16063 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16064 #endif
16065 }
16066 {
16067 if (temp2)
16068 delete arg2;
16069 }
16070 return resultobj;
16071 fail:
16072 {
16073 if (temp2)
16074 delete arg2;
16075 }
16076 return NULL;
16077 }
16078
16079
16080 static PyObject *_wrap_ConfigBase_GetAppName(PyObject *self, PyObject *args, PyObject *kwargs) {
16081 PyObject *resultobj;
16082 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16083 wxString result;
16084 PyObject * obj0 = 0 ;
16085 char *kwnames[] = {
16086 (char *) "self", NULL
16087 };
16088
16089 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetAppName",kwnames,&obj0)) goto fail;
16090 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16091 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16092 {
16093 PyThreadState* __tstate = wxPyBeginAllowThreads();
16094 result = ((wxConfigBase const *)arg1)->GetAppName();
16095
16096 wxPyEndAllowThreads(__tstate);
16097 if (PyErr_Occurred()) SWIG_fail;
16098 }
16099 {
16100 #if wxUSE_UNICODE
16101 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16102 #else
16103 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16104 #endif
16105 }
16106 return resultobj;
16107 fail:
16108 return NULL;
16109 }
16110
16111
16112 static PyObject *_wrap_ConfigBase_GetVendorName(PyObject *self, PyObject *args, PyObject *kwargs) {
16113 PyObject *resultobj;
16114 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16115 wxString result;
16116 PyObject * obj0 = 0 ;
16117 char *kwnames[] = {
16118 (char *) "self", NULL
16119 };
16120
16121 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetVendorName",kwnames,&obj0)) goto fail;
16122 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16123 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16124 {
16125 PyThreadState* __tstate = wxPyBeginAllowThreads();
16126 result = ((wxConfigBase const *)arg1)->GetVendorName();
16127
16128 wxPyEndAllowThreads(__tstate);
16129 if (PyErr_Occurred()) SWIG_fail;
16130 }
16131 {
16132 #if wxUSE_UNICODE
16133 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16134 #else
16135 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16136 #endif
16137 }
16138 return resultobj;
16139 fail:
16140 return NULL;
16141 }
16142
16143
16144 static PyObject *_wrap_ConfigBase_SetAppName(PyObject *self, PyObject *args, PyObject *kwargs) {
16145 PyObject *resultobj;
16146 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16147 wxString *arg2 = 0 ;
16148 bool temp2 = False ;
16149 PyObject * obj0 = 0 ;
16150 PyObject * obj1 = 0 ;
16151 char *kwnames[] = {
16152 (char *) "self",(char *) "appName", NULL
16153 };
16154
16155 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetAppName",kwnames,&obj0,&obj1)) goto fail;
16156 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16157 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16158 {
16159 arg2 = wxString_in_helper(obj1);
16160 if (arg2 == NULL) SWIG_fail;
16161 temp2 = True;
16162 }
16163 {
16164 PyThreadState* __tstate = wxPyBeginAllowThreads();
16165 (arg1)->SetAppName((wxString const &)*arg2);
16166
16167 wxPyEndAllowThreads(__tstate);
16168 if (PyErr_Occurred()) SWIG_fail;
16169 }
16170 Py_INCREF(Py_None); resultobj = Py_None;
16171 {
16172 if (temp2)
16173 delete arg2;
16174 }
16175 return resultobj;
16176 fail:
16177 {
16178 if (temp2)
16179 delete arg2;
16180 }
16181 return NULL;
16182 }
16183
16184
16185 static PyObject *_wrap_ConfigBase_SetVendorName(PyObject *self, PyObject *args, PyObject *kwargs) {
16186 PyObject *resultobj;
16187 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16188 wxString *arg2 = 0 ;
16189 bool temp2 = False ;
16190 PyObject * obj0 = 0 ;
16191 PyObject * obj1 = 0 ;
16192 char *kwnames[] = {
16193 (char *) "self",(char *) "vendorName", NULL
16194 };
16195
16196 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetVendorName",kwnames,&obj0,&obj1)) goto fail;
16197 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16198 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16199 {
16200 arg2 = wxString_in_helper(obj1);
16201 if (arg2 == NULL) SWIG_fail;
16202 temp2 = True;
16203 }
16204 {
16205 PyThreadState* __tstate = wxPyBeginAllowThreads();
16206 (arg1)->SetVendorName((wxString const &)*arg2);
16207
16208 wxPyEndAllowThreads(__tstate);
16209 if (PyErr_Occurred()) SWIG_fail;
16210 }
16211 Py_INCREF(Py_None); resultobj = Py_None;
16212 {
16213 if (temp2)
16214 delete arg2;
16215 }
16216 return resultobj;
16217 fail:
16218 {
16219 if (temp2)
16220 delete arg2;
16221 }
16222 return NULL;
16223 }
16224
16225
16226 static PyObject *_wrap_ConfigBase_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
16227 PyObject *resultobj;
16228 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16229 long arg2 ;
16230 PyObject * obj0 = 0 ;
16231 PyObject * obj1 = 0 ;
16232 char *kwnames[] = {
16233 (char *) "self",(char *) "style", NULL
16234 };
16235
16236 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ConfigBase_SetStyle",kwnames,&obj0,&obj1)) goto fail;
16237 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16238 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16239 arg2 = (long) SWIG_AsLong(obj1);
16240 if (PyErr_Occurred()) SWIG_fail;
16241 {
16242 PyThreadState* __tstate = wxPyBeginAllowThreads();
16243 (arg1)->SetStyle(arg2);
16244
16245 wxPyEndAllowThreads(__tstate);
16246 if (PyErr_Occurred()) SWIG_fail;
16247 }
16248 Py_INCREF(Py_None); resultobj = Py_None;
16249 return resultobj;
16250 fail:
16251 return NULL;
16252 }
16253
16254
16255 static PyObject *_wrap_ConfigBase_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
16256 PyObject *resultobj;
16257 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16258 long result;
16259 PyObject * obj0 = 0 ;
16260 char *kwnames[] = {
16261 (char *) "self", NULL
16262 };
16263
16264 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigBase_GetStyle",kwnames,&obj0)) goto fail;
16265 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16266 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16267 {
16268 PyThreadState* __tstate = wxPyBeginAllowThreads();
16269 result = (long)((wxConfigBase const *)arg1)->GetStyle();
16270
16271 wxPyEndAllowThreads(__tstate);
16272 if (PyErr_Occurred()) SWIG_fail;
16273 }
16274 resultobj = SWIG_FromLong((long)result);
16275 return resultobj;
16276 fail:
16277 return NULL;
16278 }
16279
16280
16281 static PyObject * ConfigBase_swigregister(PyObject *self, PyObject *args) {
16282 PyObject *obj;
16283 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16284 SWIG_TypeClientData(SWIGTYPE_p_wxConfigBase, obj);
16285 Py_INCREF(obj);
16286 return Py_BuildValue((char *)"");
16287 }
16288 static PyObject *_wrap_new_Config(PyObject *self, PyObject *args, PyObject *kwargs) {
16289 PyObject *resultobj;
16290 wxString const &arg1_defvalue = wxPyEmptyString ;
16291 wxString *arg1 = (wxString *) &arg1_defvalue ;
16292 wxString const &arg2_defvalue = wxPyEmptyString ;
16293 wxString *arg2 = (wxString *) &arg2_defvalue ;
16294 wxString const &arg3_defvalue = wxPyEmptyString ;
16295 wxString *arg3 = (wxString *) &arg3_defvalue ;
16296 wxString const &arg4_defvalue = wxPyEmptyString ;
16297 wxString *arg4 = (wxString *) &arg4_defvalue ;
16298 long arg5 = (long) wxCONFIG_USE_LOCAL_FILE|wxCONFIG_USE_GLOBAL_FILE ;
16299 wxConfig *result;
16300 bool temp1 = False ;
16301 bool temp2 = False ;
16302 bool temp3 = False ;
16303 bool temp4 = False ;
16304 PyObject * obj0 = 0 ;
16305 PyObject * obj1 = 0 ;
16306 PyObject * obj2 = 0 ;
16307 PyObject * obj3 = 0 ;
16308 PyObject * obj4 = 0 ;
16309 char *kwnames[] = {
16310 (char *) "appName",(char *) "vendorName",(char *) "localFilename",(char *) "globalFilename",(char *) "style", NULL
16311 };
16312
16313 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:new_Config",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
16314 if (obj0) {
16315 {
16316 arg1 = wxString_in_helper(obj0);
16317 if (arg1 == NULL) SWIG_fail;
16318 temp1 = True;
16319 }
16320 }
16321 if (obj1) {
16322 {
16323 arg2 = wxString_in_helper(obj1);
16324 if (arg2 == NULL) SWIG_fail;
16325 temp2 = True;
16326 }
16327 }
16328 if (obj2) {
16329 {
16330 arg3 = wxString_in_helper(obj2);
16331 if (arg3 == NULL) SWIG_fail;
16332 temp3 = True;
16333 }
16334 }
16335 if (obj3) {
16336 {
16337 arg4 = wxString_in_helper(obj3);
16338 if (arg4 == NULL) SWIG_fail;
16339 temp4 = True;
16340 }
16341 }
16342 if (obj4) {
16343 arg5 = (long) SWIG_AsLong(obj4);
16344 if (PyErr_Occurred()) SWIG_fail;
16345 }
16346 {
16347 PyThreadState* __tstate = wxPyBeginAllowThreads();
16348 result = (wxConfig *)new wxConfig((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5);
16349
16350 wxPyEndAllowThreads(__tstate);
16351 if (PyErr_Occurred()) SWIG_fail;
16352 }
16353 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfig, 1);
16354 {
16355 if (temp1)
16356 delete arg1;
16357 }
16358 {
16359 if (temp2)
16360 delete arg2;
16361 }
16362 {
16363 if (temp3)
16364 delete arg3;
16365 }
16366 {
16367 if (temp4)
16368 delete arg4;
16369 }
16370 return resultobj;
16371 fail:
16372 {
16373 if (temp1)
16374 delete arg1;
16375 }
16376 {
16377 if (temp2)
16378 delete arg2;
16379 }
16380 {
16381 if (temp3)
16382 delete arg3;
16383 }
16384 {
16385 if (temp4)
16386 delete arg4;
16387 }
16388 return NULL;
16389 }
16390
16391
16392 static PyObject *_wrap_delete_Config(PyObject *self, PyObject *args, PyObject *kwargs) {
16393 PyObject *resultobj;
16394 wxConfig *arg1 = (wxConfig *) 0 ;
16395 PyObject * obj0 = 0 ;
16396 char *kwnames[] = {
16397 (char *) "self", NULL
16398 };
16399
16400 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Config",kwnames,&obj0)) goto fail;
16401 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfig,
16402 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16403 {
16404 PyThreadState* __tstate = wxPyBeginAllowThreads();
16405 delete arg1;
16406
16407 wxPyEndAllowThreads(__tstate);
16408 if (PyErr_Occurred()) SWIG_fail;
16409 }
16410 Py_INCREF(Py_None); resultobj = Py_None;
16411 return resultobj;
16412 fail:
16413 return NULL;
16414 }
16415
16416
16417 static PyObject * Config_swigregister(PyObject *self, PyObject *args) {
16418 PyObject *obj;
16419 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16420 SWIG_TypeClientData(SWIGTYPE_p_wxConfig, obj);
16421 Py_INCREF(obj);
16422 return Py_BuildValue((char *)"");
16423 }
16424 static PyObject *_wrap_new_FileConfig(PyObject *self, PyObject *args, PyObject *kwargs) {
16425 PyObject *resultobj;
16426 wxString const &arg1_defvalue = wxPyEmptyString ;
16427 wxString *arg1 = (wxString *) &arg1_defvalue ;
16428 wxString const &arg2_defvalue = wxPyEmptyString ;
16429 wxString *arg2 = (wxString *) &arg2_defvalue ;
16430 wxString const &arg3_defvalue = wxPyEmptyString ;
16431 wxString *arg3 = (wxString *) &arg3_defvalue ;
16432 wxString const &arg4_defvalue = wxPyEmptyString ;
16433 wxString *arg4 = (wxString *) &arg4_defvalue ;
16434 long arg5 = (long) wxCONFIG_USE_LOCAL_FILE|wxCONFIG_USE_GLOBAL_FILE ;
16435 wxFileConfig *result;
16436 bool temp1 = False ;
16437 bool temp2 = False ;
16438 bool temp3 = False ;
16439 bool temp4 = False ;
16440 PyObject * obj0 = 0 ;
16441 PyObject * obj1 = 0 ;
16442 PyObject * obj2 = 0 ;
16443 PyObject * obj3 = 0 ;
16444 PyObject * obj4 = 0 ;
16445 char *kwnames[] = {
16446 (char *) "appName",(char *) "vendorName",(char *) "localFilename",(char *) "globalFilename",(char *) "style", NULL
16447 };
16448
16449 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOO:new_FileConfig",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
16450 if (obj0) {
16451 {
16452 arg1 = wxString_in_helper(obj0);
16453 if (arg1 == NULL) SWIG_fail;
16454 temp1 = True;
16455 }
16456 }
16457 if (obj1) {
16458 {
16459 arg2 = wxString_in_helper(obj1);
16460 if (arg2 == NULL) SWIG_fail;
16461 temp2 = True;
16462 }
16463 }
16464 if (obj2) {
16465 {
16466 arg3 = wxString_in_helper(obj2);
16467 if (arg3 == NULL) SWIG_fail;
16468 temp3 = True;
16469 }
16470 }
16471 if (obj3) {
16472 {
16473 arg4 = wxString_in_helper(obj3);
16474 if (arg4 == NULL) SWIG_fail;
16475 temp4 = True;
16476 }
16477 }
16478 if (obj4) {
16479 arg5 = (long) SWIG_AsLong(obj4);
16480 if (PyErr_Occurred()) SWIG_fail;
16481 }
16482 {
16483 PyThreadState* __tstate = wxPyBeginAllowThreads();
16484 result = (wxFileConfig *)new wxFileConfig((wxString const &)*arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5);
16485
16486 wxPyEndAllowThreads(__tstate);
16487 if (PyErr_Occurred()) SWIG_fail;
16488 }
16489 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileConfig, 1);
16490 {
16491 if (temp1)
16492 delete arg1;
16493 }
16494 {
16495 if (temp2)
16496 delete arg2;
16497 }
16498 {
16499 if (temp3)
16500 delete arg3;
16501 }
16502 {
16503 if (temp4)
16504 delete arg4;
16505 }
16506 return resultobj;
16507 fail:
16508 {
16509 if (temp1)
16510 delete arg1;
16511 }
16512 {
16513 if (temp2)
16514 delete arg2;
16515 }
16516 {
16517 if (temp3)
16518 delete arg3;
16519 }
16520 {
16521 if (temp4)
16522 delete arg4;
16523 }
16524 return NULL;
16525 }
16526
16527
16528 static PyObject *_wrap_delete_FileConfig(PyObject *self, PyObject *args, PyObject *kwargs) {
16529 PyObject *resultobj;
16530 wxFileConfig *arg1 = (wxFileConfig *) 0 ;
16531 PyObject * obj0 = 0 ;
16532 char *kwnames[] = {
16533 (char *) "self", NULL
16534 };
16535
16536 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FileConfig",kwnames,&obj0)) goto fail;
16537 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileConfig,
16538 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16539 {
16540 PyThreadState* __tstate = wxPyBeginAllowThreads();
16541 delete arg1;
16542
16543 wxPyEndAllowThreads(__tstate);
16544 if (PyErr_Occurred()) SWIG_fail;
16545 }
16546 Py_INCREF(Py_None); resultobj = Py_None;
16547 return resultobj;
16548 fail:
16549 return NULL;
16550 }
16551
16552
16553 static PyObject * FileConfig_swigregister(PyObject *self, PyObject *args) {
16554 PyObject *obj;
16555 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16556 SWIG_TypeClientData(SWIGTYPE_p_wxFileConfig, obj);
16557 Py_INCREF(obj);
16558 return Py_BuildValue((char *)"");
16559 }
16560 static PyObject *_wrap_new_ConfigPathChanger(PyObject *self, PyObject *args, PyObject *kwargs) {
16561 PyObject *resultobj;
16562 wxConfigBase *arg1 = (wxConfigBase *) 0 ;
16563 wxString *arg2 = 0 ;
16564 wxConfigPathChanger *result;
16565 bool temp2 = False ;
16566 PyObject * obj0 = 0 ;
16567 PyObject * obj1 = 0 ;
16568 char *kwnames[] = {
16569 (char *) "config",(char *) "entry", NULL
16570 };
16571
16572 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_ConfigPathChanger",kwnames,&obj0,&obj1)) goto fail;
16573 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigBase,
16574 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16575 {
16576 arg2 = wxString_in_helper(obj1);
16577 if (arg2 == NULL) SWIG_fail;
16578 temp2 = True;
16579 }
16580 {
16581 PyThreadState* __tstate = wxPyBeginAllowThreads();
16582 result = (wxConfigPathChanger *)new wxConfigPathChanger((wxConfigBase const *)arg1,(wxString const &)*arg2);
16583
16584 wxPyEndAllowThreads(__tstate);
16585 if (PyErr_Occurred()) SWIG_fail;
16586 }
16587 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxConfigPathChanger, 1);
16588 {
16589 if (temp2)
16590 delete arg2;
16591 }
16592 return resultobj;
16593 fail:
16594 {
16595 if (temp2)
16596 delete arg2;
16597 }
16598 return NULL;
16599 }
16600
16601
16602 static PyObject *_wrap_delete_ConfigPathChanger(PyObject *self, PyObject *args, PyObject *kwargs) {
16603 PyObject *resultobj;
16604 wxConfigPathChanger *arg1 = (wxConfigPathChanger *) 0 ;
16605 PyObject * obj0 = 0 ;
16606 char *kwnames[] = {
16607 (char *) "self", NULL
16608 };
16609
16610 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ConfigPathChanger",kwnames,&obj0)) goto fail;
16611 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigPathChanger,
16612 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16613 {
16614 PyThreadState* __tstate = wxPyBeginAllowThreads();
16615 delete arg1;
16616
16617 wxPyEndAllowThreads(__tstate);
16618 if (PyErr_Occurred()) SWIG_fail;
16619 }
16620 Py_INCREF(Py_None); resultobj = Py_None;
16621 return resultobj;
16622 fail:
16623 return NULL;
16624 }
16625
16626
16627 static PyObject *_wrap_ConfigPathChanger_Name(PyObject *self, PyObject *args, PyObject *kwargs) {
16628 PyObject *resultobj;
16629 wxConfigPathChanger *arg1 = (wxConfigPathChanger *) 0 ;
16630 wxString *result;
16631 PyObject * obj0 = 0 ;
16632 char *kwnames[] = {
16633 (char *) "self", NULL
16634 };
16635
16636 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ConfigPathChanger_Name",kwnames,&obj0)) goto fail;
16637 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxConfigPathChanger,
16638 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16639 {
16640 PyThreadState* __tstate = wxPyBeginAllowThreads();
16641 {
16642 wxString const &_result_ref = ((wxConfigPathChanger const *)arg1)->Name();
16643 result = (wxString *) &_result_ref;
16644 }
16645
16646 wxPyEndAllowThreads(__tstate);
16647 if (PyErr_Occurred()) SWIG_fail;
16648 }
16649 {
16650 #if wxUSE_UNICODE
16651 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
16652 #else
16653 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
16654 #endif
16655 }
16656 return resultobj;
16657 fail:
16658 return NULL;
16659 }
16660
16661
16662 static PyObject * ConfigPathChanger_swigregister(PyObject *self, PyObject *args) {
16663 PyObject *obj;
16664 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16665 SWIG_TypeClientData(SWIGTYPE_p_wxConfigPathChanger, obj);
16666 Py_INCREF(obj);
16667 return Py_BuildValue((char *)"");
16668 }
16669 static PyObject *_wrap_ExpandEnvVars(PyObject *self, PyObject *args, PyObject *kwargs) {
16670 PyObject *resultobj;
16671 wxString *arg1 = 0 ;
16672 wxString result;
16673 bool temp1 = False ;
16674 PyObject * obj0 = 0 ;
16675 char *kwnames[] = {
16676 (char *) "sz", NULL
16677 };
16678
16679 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ExpandEnvVars",kwnames,&obj0)) goto fail;
16680 {
16681 arg1 = wxString_in_helper(obj0);
16682 if (arg1 == NULL) SWIG_fail;
16683 temp1 = True;
16684 }
16685 {
16686 PyThreadState* __tstate = wxPyBeginAllowThreads();
16687 result = wxExpandEnvVars((wxString const &)*arg1);
16688
16689 wxPyEndAllowThreads(__tstate);
16690 if (PyErr_Occurred()) SWIG_fail;
16691 }
16692 {
16693 #if wxUSE_UNICODE
16694 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16695 #else
16696 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16697 #endif
16698 }
16699 {
16700 if (temp1)
16701 delete arg1;
16702 }
16703 return resultobj;
16704 fail:
16705 {
16706 if (temp1)
16707 delete arg1;
16708 }
16709 return NULL;
16710 }
16711
16712
16713 static int _wrap_DateFormatStr_set(PyObject *_val) {
16714 PyErr_SetString(PyExc_TypeError,"Variable DateFormatStr is read-only.");
16715 return 1;
16716 }
16717
16718
16719 static PyObject *_wrap_DateFormatStr_get() {
16720 PyObject *pyobj;
16721
16722 {
16723 #if wxUSE_UNICODE
16724 pyobj = PyUnicode_FromWideChar((&wxPyDateFormatStr)->c_str(), (&wxPyDateFormatStr)->Len());
16725 #else
16726 pyobj = PyString_FromStringAndSize((&wxPyDateFormatStr)->c_str(), (&wxPyDateFormatStr)->Len());
16727 #endif
16728 }
16729 return pyobj;
16730 }
16731
16732
16733 static int _wrap_TimeSpanFormatStr_set(PyObject *_val) {
16734 PyErr_SetString(PyExc_TypeError,"Variable TimeSpanFormatStr is read-only.");
16735 return 1;
16736 }
16737
16738
16739 static PyObject *_wrap_TimeSpanFormatStr_get() {
16740 PyObject *pyobj;
16741
16742 {
16743 #if wxUSE_UNICODE
16744 pyobj = PyUnicode_FromWideChar((&wxPyTimeSpanFormatStr)->c_str(), (&wxPyTimeSpanFormatStr)->Len());
16745 #else
16746 pyobj = PyString_FromStringAndSize((&wxPyTimeSpanFormatStr)->c_str(), (&wxPyTimeSpanFormatStr)->Len());
16747 #endif
16748 }
16749 return pyobj;
16750 }
16751
16752
16753 static PyObject *_wrap_DateTime_SetCountry(PyObject *self, PyObject *args, PyObject *kwargs) {
16754 PyObject *resultobj;
16755 int arg1 ;
16756 PyObject * obj0 = 0 ;
16757 char *kwnames[] = {
16758 (char *) "country", NULL
16759 };
16760
16761 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_SetCountry",kwnames,&obj0)) goto fail;
16762 arg1 = (wxDateTime::Country) SWIG_AsInt(obj0);
16763 if (PyErr_Occurred()) SWIG_fail;
16764 {
16765 PyThreadState* __tstate = wxPyBeginAllowThreads();
16766 wxDateTime::SetCountry((wxDateTime::Country )arg1);
16767
16768 wxPyEndAllowThreads(__tstate);
16769 if (PyErr_Occurred()) SWIG_fail;
16770 }
16771 Py_INCREF(Py_None); resultobj = Py_None;
16772 return resultobj;
16773 fail:
16774 return NULL;
16775 }
16776
16777
16778 static PyObject *_wrap_DateTime_GetCountry(PyObject *self, PyObject *args, PyObject *kwargs) {
16779 PyObject *resultobj;
16780 int result;
16781 char *kwnames[] = {
16782 NULL
16783 };
16784
16785 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_GetCountry",kwnames)) goto fail;
16786 {
16787 PyThreadState* __tstate = wxPyBeginAllowThreads();
16788 result = (int)wxDateTime::GetCountry();
16789
16790 wxPyEndAllowThreads(__tstate);
16791 if (PyErr_Occurred()) SWIG_fail;
16792 }
16793 resultobj = SWIG_FromInt((int)result);
16794 return resultobj;
16795 fail:
16796 return NULL;
16797 }
16798
16799
16800 static PyObject *_wrap_DateTime_IsWestEuropeanCountry(PyObject *self, PyObject *args, PyObject *kwargs) {
16801 PyObject *resultobj;
16802 int arg1 = (int) wxDateTime::Country_Default ;
16803 bool result;
16804 PyObject * obj0 = 0 ;
16805 char *kwnames[] = {
16806 (char *) "country", NULL
16807 };
16808
16809 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_IsWestEuropeanCountry",kwnames,&obj0)) goto fail;
16810 if (obj0) {
16811 arg1 = (wxDateTime::Country) SWIG_AsInt(obj0);
16812 if (PyErr_Occurred()) SWIG_fail;
16813 }
16814 {
16815 PyThreadState* __tstate = wxPyBeginAllowThreads();
16816 result = (bool)wxDateTime::IsWestEuropeanCountry((wxDateTime::Country )arg1);
16817
16818 wxPyEndAllowThreads(__tstate);
16819 if (PyErr_Occurred()) SWIG_fail;
16820 }
16821 {
16822 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16823 }
16824 return resultobj;
16825 fail:
16826 return NULL;
16827 }
16828
16829
16830 static PyObject *_wrap_DateTime_GetCurrentYear(PyObject *self, PyObject *args, PyObject *kwargs) {
16831 PyObject *resultobj;
16832 int arg1 = (int) wxDateTime::Gregorian ;
16833 int result;
16834 PyObject * obj0 = 0 ;
16835 char *kwnames[] = {
16836 (char *) "cal", NULL
16837 };
16838
16839 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCurrentYear",kwnames,&obj0)) goto fail;
16840 if (obj0) {
16841 arg1 = (wxDateTime::Calendar) SWIG_AsInt(obj0);
16842 if (PyErr_Occurred()) SWIG_fail;
16843 }
16844 {
16845 PyThreadState* __tstate = wxPyBeginAllowThreads();
16846 result = (int)wxDateTime::GetCurrentYear((wxDateTime::Calendar )arg1);
16847
16848 wxPyEndAllowThreads(__tstate);
16849 if (PyErr_Occurred()) SWIG_fail;
16850 }
16851 resultobj = SWIG_FromInt((int)result);
16852 return resultobj;
16853 fail:
16854 return NULL;
16855 }
16856
16857
16858 static PyObject *_wrap_DateTime_ConvertYearToBC(PyObject *self, PyObject *args, PyObject *kwargs) {
16859 PyObject *resultobj;
16860 int arg1 ;
16861 int result;
16862 PyObject * obj0 = 0 ;
16863 char *kwnames[] = {
16864 (char *) "year", NULL
16865 };
16866
16867 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_ConvertYearToBC",kwnames,&obj0)) goto fail;
16868 arg1 = (int) SWIG_AsInt(obj0);
16869 if (PyErr_Occurred()) SWIG_fail;
16870 {
16871 PyThreadState* __tstate = wxPyBeginAllowThreads();
16872 result = (int)wxDateTime::ConvertYearToBC(arg1);
16873
16874 wxPyEndAllowThreads(__tstate);
16875 if (PyErr_Occurred()) SWIG_fail;
16876 }
16877 resultobj = SWIG_FromInt((int)result);
16878 return resultobj;
16879 fail:
16880 return NULL;
16881 }
16882
16883
16884 static PyObject *_wrap_DateTime_GetCurrentMonth(PyObject *self, PyObject *args, PyObject *kwargs) {
16885 PyObject *resultobj;
16886 int arg1 = (int) wxDateTime::Gregorian ;
16887 int result;
16888 PyObject * obj0 = 0 ;
16889 char *kwnames[] = {
16890 (char *) "cal", NULL
16891 };
16892
16893 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCurrentMonth",kwnames,&obj0)) goto fail;
16894 if (obj0) {
16895 arg1 = (wxDateTime::Calendar) SWIG_AsInt(obj0);
16896 if (PyErr_Occurred()) SWIG_fail;
16897 }
16898 {
16899 PyThreadState* __tstate = wxPyBeginAllowThreads();
16900 result = (int)wxDateTime::GetCurrentMonth((wxDateTime::Calendar )arg1);
16901
16902 wxPyEndAllowThreads(__tstate);
16903 if (PyErr_Occurred()) SWIG_fail;
16904 }
16905 resultobj = SWIG_FromInt((int)result);
16906 return resultobj;
16907 fail:
16908 return NULL;
16909 }
16910
16911
16912 static PyObject *_wrap_DateTime_IsLeapYear(PyObject *self, PyObject *args, PyObject *kwargs) {
16913 PyObject *resultobj;
16914 int arg1 = (int) wxDateTime::Inv_Year ;
16915 int arg2 = (int) wxDateTime::Gregorian ;
16916 bool result;
16917 PyObject * obj0 = 0 ;
16918 PyObject * obj1 = 0 ;
16919 char *kwnames[] = {
16920 (char *) "year",(char *) "cal", NULL
16921 };
16922
16923 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_IsLeapYear",kwnames,&obj0,&obj1)) goto fail;
16924 if (obj0) {
16925 arg1 = (int) SWIG_AsInt(obj0);
16926 if (PyErr_Occurred()) SWIG_fail;
16927 }
16928 if (obj1) {
16929 arg2 = (wxDateTime::Calendar) SWIG_AsInt(obj1);
16930 if (PyErr_Occurred()) SWIG_fail;
16931 }
16932 {
16933 PyThreadState* __tstate = wxPyBeginAllowThreads();
16934 result = (bool)wxDateTime::IsLeapYear(arg1,(wxDateTime::Calendar )arg2);
16935
16936 wxPyEndAllowThreads(__tstate);
16937 if (PyErr_Occurred()) SWIG_fail;
16938 }
16939 {
16940 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16941 }
16942 return resultobj;
16943 fail:
16944 return NULL;
16945 }
16946
16947
16948 static PyObject *_wrap_DateTime_GetCentury(PyObject *self, PyObject *args, PyObject *kwargs) {
16949 PyObject *resultobj;
16950 int arg1 = (int) wxDateTime::Inv_Year ;
16951 int result;
16952 PyObject * obj0 = 0 ;
16953 char *kwnames[] = {
16954 (char *) "year", NULL
16955 };
16956
16957 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:DateTime_GetCentury",kwnames,&obj0)) goto fail;
16958 if (obj0) {
16959 arg1 = (int) SWIG_AsInt(obj0);
16960 if (PyErr_Occurred()) SWIG_fail;
16961 }
16962 {
16963 PyThreadState* __tstate = wxPyBeginAllowThreads();
16964 result = (int)wxDateTime::GetCentury(arg1);
16965
16966 wxPyEndAllowThreads(__tstate);
16967 if (PyErr_Occurred()) SWIG_fail;
16968 }
16969 resultobj = SWIG_FromInt((int)result);
16970 return resultobj;
16971 fail:
16972 return NULL;
16973 }
16974
16975
16976 static PyObject *_wrap_DateTime_GetNumberOfDaysinYear(PyObject *self, PyObject *args, PyObject *kwargs) {
16977 PyObject *resultobj;
16978 int arg1 ;
16979 int arg2 = (int) wxDateTime::Gregorian ;
16980 int result;
16981 PyObject * obj0 = 0 ;
16982 PyObject * obj1 = 0 ;
16983 char *kwnames[] = {
16984 (char *) "year",(char *) "cal", NULL
16985 };
16986
16987 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetNumberOfDaysinYear",kwnames,&obj0,&obj1)) goto fail;
16988 arg1 = (int) SWIG_AsInt(obj0);
16989 if (PyErr_Occurred()) SWIG_fail;
16990 if (obj1) {
16991 arg2 = (wxDateTime::Calendar) SWIG_AsInt(obj1);
16992 if (PyErr_Occurred()) SWIG_fail;
16993 }
16994 {
16995 PyThreadState* __tstate = wxPyBeginAllowThreads();
16996 result = (int)wxDateTime::GetNumberOfDays(arg1,(wxDateTime::Calendar )arg2);
16997
16998 wxPyEndAllowThreads(__tstate);
16999 if (PyErr_Occurred()) SWIG_fail;
17000 }
17001 resultobj = SWIG_FromInt((int)result);
17002 return resultobj;
17003 fail:
17004 return NULL;
17005 }
17006
17007
17008 static PyObject *_wrap_DateTime_GetNumberOfDaysInMonth(PyObject *self, PyObject *args, PyObject *kwargs) {
17009 PyObject *resultobj;
17010 int arg1 ;
17011 int arg2 = (int) wxDateTime::Inv_Year ;
17012 int arg3 = (int) wxDateTime::Gregorian ;
17013 int result;
17014 PyObject * obj0 = 0 ;
17015 PyObject * obj1 = 0 ;
17016 PyObject * obj2 = 0 ;
17017 char *kwnames[] = {
17018 (char *) "month",(char *) "year",(char *) "cal", NULL
17019 };
17020
17021 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetNumberOfDaysInMonth",kwnames,&obj0,&obj1,&obj2)) goto fail;
17022 arg1 = (wxDateTime::Month) SWIG_AsInt(obj0);
17023 if (PyErr_Occurred()) SWIG_fail;
17024 if (obj1) {
17025 arg2 = (int) SWIG_AsInt(obj1);
17026 if (PyErr_Occurred()) SWIG_fail;
17027 }
17028 if (obj2) {
17029 arg3 = (wxDateTime::Calendar) SWIG_AsInt(obj2);
17030 if (PyErr_Occurred()) SWIG_fail;
17031 }
17032 {
17033 PyThreadState* __tstate = wxPyBeginAllowThreads();
17034 result = (int)wxDateTime::GetNumberOfDays((wxDateTime::Month )arg1,arg2,(wxDateTime::Calendar )arg3);
17035
17036 wxPyEndAllowThreads(__tstate);
17037 if (PyErr_Occurred()) SWIG_fail;
17038 }
17039 resultobj = SWIG_FromInt((int)result);
17040 return resultobj;
17041 fail:
17042 return NULL;
17043 }
17044
17045
17046 static PyObject *_wrap_DateTime_GetMonthName(PyObject *self, PyObject *args, PyObject *kwargs) {
17047 PyObject *resultobj;
17048 int arg1 ;
17049 int arg2 = (int) wxDateTime::Name_Full ;
17050 wxString result;
17051 PyObject * obj0 = 0 ;
17052 PyObject * obj1 = 0 ;
17053 char *kwnames[] = {
17054 (char *) "month",(char *) "flags", NULL
17055 };
17056
17057 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMonthName",kwnames,&obj0,&obj1)) goto fail;
17058 arg1 = (wxDateTime::Month) SWIG_AsInt(obj0);
17059 if (PyErr_Occurred()) SWIG_fail;
17060 if (obj1) {
17061 arg2 = (wxDateTime::NameFlags) SWIG_AsInt(obj1);
17062 if (PyErr_Occurred()) SWIG_fail;
17063 }
17064 {
17065 PyThreadState* __tstate = wxPyBeginAllowThreads();
17066 result = wxDateTime::GetMonthName((wxDateTime::Month )arg1,(wxDateTime::NameFlags )arg2);
17067
17068 wxPyEndAllowThreads(__tstate);
17069 if (PyErr_Occurred()) SWIG_fail;
17070 }
17071 {
17072 #if wxUSE_UNICODE
17073 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17074 #else
17075 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17076 #endif
17077 }
17078 return resultobj;
17079 fail:
17080 return NULL;
17081 }
17082
17083
17084 static PyObject *_wrap_DateTime_GetWeekDayName(PyObject *self, PyObject *args, PyObject *kwargs) {
17085 PyObject *resultobj;
17086 int arg1 ;
17087 int arg2 = (int) wxDateTime::Name_Full ;
17088 wxString result;
17089 PyObject * obj0 = 0 ;
17090 PyObject * obj1 = 0 ;
17091 char *kwnames[] = {
17092 (char *) "weekday",(char *) "flags", NULL
17093 };
17094
17095 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetWeekDayName",kwnames,&obj0,&obj1)) goto fail;
17096 arg1 = (wxDateTime::WeekDay) SWIG_AsInt(obj0);
17097 if (PyErr_Occurred()) SWIG_fail;
17098 if (obj1) {
17099 arg2 = (wxDateTime::NameFlags) SWIG_AsInt(obj1);
17100 if (PyErr_Occurred()) SWIG_fail;
17101 }
17102 {
17103 PyThreadState* __tstate = wxPyBeginAllowThreads();
17104 result = wxDateTime::GetWeekDayName((wxDateTime::WeekDay )arg1,(wxDateTime::NameFlags )arg2);
17105
17106 wxPyEndAllowThreads(__tstate);
17107 if (PyErr_Occurred()) SWIG_fail;
17108 }
17109 {
17110 #if wxUSE_UNICODE
17111 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17112 #else
17113 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17114 #endif
17115 }
17116 return resultobj;
17117 fail:
17118 return NULL;
17119 }
17120
17121
17122 static PyObject *_wrap_DateTime_GetAmPmStrings(PyObject *self, PyObject *args, PyObject *kwargs) {
17123 PyObject *resultobj;
17124 wxString *arg1 = (wxString *) 0 ;
17125 wxString *arg2 = (wxString *) 0 ;
17126 bool temp1 = False ;
17127 bool temp2 = False ;
17128 PyObject * obj0 = 0 ;
17129 PyObject * obj1 = 0 ;
17130 char *kwnames[] = {
17131 (char *) "OUTPUT",(char *) "OUTPUT", NULL
17132 };
17133
17134 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetAmPmStrings",kwnames,&obj0,&obj1)) goto fail;
17135 {
17136 arg1 = wxString_in_helper(obj0);
17137 if (arg1 == NULL) SWIG_fail;
17138 temp1 = True;
17139 }
17140 {
17141 arg2 = wxString_in_helper(obj1);
17142 if (arg2 == NULL) SWIG_fail;
17143 temp2 = True;
17144 }
17145 {
17146 PyThreadState* __tstate = wxPyBeginAllowThreads();
17147 wxDateTime::GetAmPmStrings(arg1,arg2);
17148
17149 wxPyEndAllowThreads(__tstate);
17150 if (PyErr_Occurred()) SWIG_fail;
17151 }
17152 Py_INCREF(Py_None); resultobj = Py_None;
17153 {
17154 if (temp1)
17155 delete arg1;
17156 }
17157 {
17158 if (temp2)
17159 delete arg2;
17160 }
17161 return resultobj;
17162 fail:
17163 {
17164 if (temp1)
17165 delete arg1;
17166 }
17167 {
17168 if (temp2)
17169 delete arg2;
17170 }
17171 return NULL;
17172 }
17173
17174
17175 static PyObject *_wrap_DateTime_IsDSTApplicable(PyObject *self, PyObject *args, PyObject *kwargs) {
17176 PyObject *resultobj;
17177 int arg1 = (int) wxDateTime::Inv_Year ;
17178 int arg2 = (int) wxDateTime::Country_Default ;
17179 bool result;
17180 PyObject * obj0 = 0 ;
17181 PyObject * obj1 = 0 ;
17182 char *kwnames[] = {
17183 (char *) "year",(char *) "country", NULL
17184 };
17185
17186 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_IsDSTApplicable",kwnames,&obj0,&obj1)) goto fail;
17187 if (obj0) {
17188 arg1 = (int) SWIG_AsInt(obj0);
17189 if (PyErr_Occurred()) SWIG_fail;
17190 }
17191 if (obj1) {
17192 arg2 = (wxDateTime::Country) SWIG_AsInt(obj1);
17193 if (PyErr_Occurred()) SWIG_fail;
17194 }
17195 {
17196 PyThreadState* __tstate = wxPyBeginAllowThreads();
17197 result = (bool)wxDateTime::IsDSTApplicable(arg1,(wxDateTime::Country )arg2);
17198
17199 wxPyEndAllowThreads(__tstate);
17200 if (PyErr_Occurred()) SWIG_fail;
17201 }
17202 {
17203 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17204 }
17205 return resultobj;
17206 fail:
17207 return NULL;
17208 }
17209
17210
17211 static PyObject *_wrap_DateTime_GetBeginDST(PyObject *self, PyObject *args, PyObject *kwargs) {
17212 PyObject *resultobj;
17213 int arg1 = (int) wxDateTime::Inv_Year ;
17214 int arg2 = (int) wxDateTime::Country_Default ;
17215 wxDateTime result;
17216 PyObject * obj0 = 0 ;
17217 PyObject * obj1 = 0 ;
17218 char *kwnames[] = {
17219 (char *) "year",(char *) "country", NULL
17220 };
17221
17222 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_GetBeginDST",kwnames,&obj0,&obj1)) goto fail;
17223 if (obj0) {
17224 arg1 = (int) SWIG_AsInt(obj0);
17225 if (PyErr_Occurred()) SWIG_fail;
17226 }
17227 if (obj1) {
17228 arg2 = (wxDateTime::Country) SWIG_AsInt(obj1);
17229 if (PyErr_Occurred()) SWIG_fail;
17230 }
17231 {
17232 PyThreadState* __tstate = wxPyBeginAllowThreads();
17233 result = wxDateTime::GetBeginDST(arg1,(wxDateTime::Country )arg2);
17234
17235 wxPyEndAllowThreads(__tstate);
17236 if (PyErr_Occurred()) SWIG_fail;
17237 }
17238 {
17239 wxDateTime * resultptr;
17240 resultptr = new wxDateTime((wxDateTime &) result);
17241 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
17242 }
17243 return resultobj;
17244 fail:
17245 return NULL;
17246 }
17247
17248
17249 static PyObject *_wrap_DateTime_GetEndDST(PyObject *self, PyObject *args, PyObject *kwargs) {
17250 PyObject *resultobj;
17251 int arg1 = (int) wxDateTime::Inv_Year ;
17252 int arg2 = (int) wxDateTime::Country_Default ;
17253 wxDateTime result;
17254 PyObject * obj0 = 0 ;
17255 PyObject * obj1 = 0 ;
17256 char *kwnames[] = {
17257 (char *) "year",(char *) "country", NULL
17258 };
17259
17260 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:DateTime_GetEndDST",kwnames,&obj0,&obj1)) goto fail;
17261 if (obj0) {
17262 arg1 = (int) SWIG_AsInt(obj0);
17263 if (PyErr_Occurred()) SWIG_fail;
17264 }
17265 if (obj1) {
17266 arg2 = (wxDateTime::Country) SWIG_AsInt(obj1);
17267 if (PyErr_Occurred()) SWIG_fail;
17268 }
17269 {
17270 PyThreadState* __tstate = wxPyBeginAllowThreads();
17271 result = wxDateTime::GetEndDST(arg1,(wxDateTime::Country )arg2);
17272
17273 wxPyEndAllowThreads(__tstate);
17274 if (PyErr_Occurred()) SWIG_fail;
17275 }
17276 {
17277 wxDateTime * resultptr;
17278 resultptr = new wxDateTime((wxDateTime &) result);
17279 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
17280 }
17281 return resultobj;
17282 fail:
17283 return NULL;
17284 }
17285
17286
17287 static PyObject *_wrap_DateTime_Now(PyObject *self, PyObject *args, PyObject *kwargs) {
17288 PyObject *resultobj;
17289 wxDateTime result;
17290 char *kwnames[] = {
17291 NULL
17292 };
17293
17294 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_Now",kwnames)) goto fail;
17295 {
17296 PyThreadState* __tstate = wxPyBeginAllowThreads();
17297 result = wxDateTime::Now();
17298
17299 wxPyEndAllowThreads(__tstate);
17300 if (PyErr_Occurred()) SWIG_fail;
17301 }
17302 {
17303 wxDateTime * resultptr;
17304 resultptr = new wxDateTime((wxDateTime &) result);
17305 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
17306 }
17307 return resultobj;
17308 fail:
17309 return NULL;
17310 }
17311
17312
17313 static PyObject *_wrap_DateTime_UNow(PyObject *self, PyObject *args, PyObject *kwargs) {
17314 PyObject *resultobj;
17315 wxDateTime result;
17316 char *kwnames[] = {
17317 NULL
17318 };
17319
17320 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_UNow",kwnames)) goto fail;
17321 {
17322 PyThreadState* __tstate = wxPyBeginAllowThreads();
17323 result = wxDateTime::UNow();
17324
17325 wxPyEndAllowThreads(__tstate);
17326 if (PyErr_Occurred()) SWIG_fail;
17327 }
17328 {
17329 wxDateTime * resultptr;
17330 resultptr = new wxDateTime((wxDateTime &) result);
17331 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
17332 }
17333 return resultobj;
17334 fail:
17335 return NULL;
17336 }
17337
17338
17339 static PyObject *_wrap_DateTime_Today(PyObject *self, PyObject *args, PyObject *kwargs) {
17340 PyObject *resultobj;
17341 wxDateTime result;
17342 char *kwnames[] = {
17343 NULL
17344 };
17345
17346 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateTime_Today",kwnames)) goto fail;
17347 {
17348 PyThreadState* __tstate = wxPyBeginAllowThreads();
17349 result = wxDateTime::Today();
17350
17351 wxPyEndAllowThreads(__tstate);
17352 if (PyErr_Occurred()) SWIG_fail;
17353 }
17354 {
17355 wxDateTime * resultptr;
17356 resultptr = new wxDateTime((wxDateTime &) result);
17357 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
17358 }
17359 return resultobj;
17360 fail:
17361 return NULL;
17362 }
17363
17364
17365 static PyObject *_wrap_new_DateTime(PyObject *self, PyObject *args, PyObject *kwargs) {
17366 PyObject *resultobj;
17367 wxDateTime *result;
17368 char *kwnames[] = {
17369 NULL
17370 };
17371
17372 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DateTime",kwnames)) goto fail;
17373 {
17374 PyThreadState* __tstate = wxPyBeginAllowThreads();
17375 result = (wxDateTime *)new wxDateTime();
17376
17377 wxPyEndAllowThreads(__tstate);
17378 if (PyErr_Occurred()) SWIG_fail;
17379 }
17380 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
17381 return resultobj;
17382 fail:
17383 return NULL;
17384 }
17385
17386
17387 static PyObject *_wrap_new_DateTimeFromTimeT(PyObject *self, PyObject *args, PyObject *kwargs) {
17388 PyObject *resultobj;
17389 time_t arg1 ;
17390 wxDateTime *result;
17391 PyObject * obj0 = 0 ;
17392 char *kwnames[] = {
17393 (char *) "timet", NULL
17394 };
17395
17396 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DateTimeFromTimeT",kwnames,&obj0)) goto fail;
17397 arg1 = (time_t) SWIG_AsUnsignedInt(obj0);
17398 if (PyErr_Occurred()) SWIG_fail;
17399 {
17400 PyThreadState* __tstate = wxPyBeginAllowThreads();
17401 result = (wxDateTime *)new wxDateTime(arg1);
17402
17403 wxPyEndAllowThreads(__tstate);
17404 if (PyErr_Occurred()) SWIG_fail;
17405 }
17406 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
17407 return resultobj;
17408 fail:
17409 return NULL;
17410 }
17411
17412
17413 static PyObject *_wrap_new_DateTimeFromJDN(PyObject *self, PyObject *args, PyObject *kwargs) {
17414 PyObject *resultobj;
17415 double arg1 ;
17416 wxDateTime *result;
17417 PyObject * obj0 = 0 ;
17418 char *kwnames[] = {
17419 (char *) "jdn", NULL
17420 };
17421
17422 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DateTimeFromJDN",kwnames,&obj0)) goto fail;
17423 arg1 = (double) SWIG_AsDouble(obj0);
17424 if (PyErr_Occurred()) SWIG_fail;
17425 {
17426 PyThreadState* __tstate = wxPyBeginAllowThreads();
17427 result = (wxDateTime *)new wxDateTime(arg1);
17428
17429 wxPyEndAllowThreads(__tstate);
17430 if (PyErr_Occurred()) SWIG_fail;
17431 }
17432 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
17433 return resultobj;
17434 fail:
17435 return NULL;
17436 }
17437
17438
17439 static PyObject *_wrap_new_DateTimeFromHMS(PyObject *self, PyObject *args, PyObject *kwargs) {
17440 PyObject *resultobj;
17441 int arg1 ;
17442 int arg2 = (int) 0 ;
17443 int arg3 = (int) 0 ;
17444 int arg4 = (int) 0 ;
17445 wxDateTime *result;
17446 PyObject * obj0 = 0 ;
17447 PyObject * obj1 = 0 ;
17448 PyObject * obj2 = 0 ;
17449 PyObject * obj3 = 0 ;
17450 char *kwnames[] = {
17451 (char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL
17452 };
17453
17454 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:new_DateTimeFromHMS",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
17455 arg1 = (int) SWIG_AsInt(obj0);
17456 if (PyErr_Occurred()) SWIG_fail;
17457 if (obj1) {
17458 arg2 = (int) SWIG_AsInt(obj1);
17459 if (PyErr_Occurred()) SWIG_fail;
17460 }
17461 if (obj2) {
17462 arg3 = (int) SWIG_AsInt(obj2);
17463 if (PyErr_Occurred()) SWIG_fail;
17464 }
17465 if (obj3) {
17466 arg4 = (int) SWIG_AsInt(obj3);
17467 if (PyErr_Occurred()) SWIG_fail;
17468 }
17469 {
17470 PyThreadState* __tstate = wxPyBeginAllowThreads();
17471 result = (wxDateTime *)new wxDateTime(arg1,arg2,arg3,arg4);
17472
17473 wxPyEndAllowThreads(__tstate);
17474 if (PyErr_Occurred()) SWIG_fail;
17475 }
17476 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
17477 return resultobj;
17478 fail:
17479 return NULL;
17480 }
17481
17482
17483 static PyObject *_wrap_new_DateTimeFromDMY(PyObject *self, PyObject *args, PyObject *kwargs) {
17484 PyObject *resultobj;
17485 int arg1 ;
17486 int arg2 = (int) wxDateTime::Inv_Month ;
17487 int arg3 = (int) wxDateTime::Inv_Year ;
17488 int arg4 = (int) 0 ;
17489 int arg5 = (int) 0 ;
17490 int arg6 = (int) 0 ;
17491 int arg7 = (int) 0 ;
17492 wxDateTime *result;
17493 PyObject * obj0 = 0 ;
17494 PyObject * obj1 = 0 ;
17495 PyObject * obj2 = 0 ;
17496 PyObject * obj3 = 0 ;
17497 PyObject * obj4 = 0 ;
17498 PyObject * obj5 = 0 ;
17499 PyObject * obj6 = 0 ;
17500 char *kwnames[] = {
17501 (char *) "day",(char *) "month",(char *) "year",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL
17502 };
17503
17504 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_DateTimeFromDMY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
17505 arg1 = (int) SWIG_AsInt(obj0);
17506 if (PyErr_Occurred()) SWIG_fail;
17507 if (obj1) {
17508 arg2 = (wxDateTime::Month) SWIG_AsInt(obj1);
17509 if (PyErr_Occurred()) SWIG_fail;
17510 }
17511 if (obj2) {
17512 arg3 = (int) SWIG_AsInt(obj2);
17513 if (PyErr_Occurred()) SWIG_fail;
17514 }
17515 if (obj3) {
17516 arg4 = (int) SWIG_AsInt(obj3);
17517 if (PyErr_Occurred()) SWIG_fail;
17518 }
17519 if (obj4) {
17520 arg5 = (int) SWIG_AsInt(obj4);
17521 if (PyErr_Occurred()) SWIG_fail;
17522 }
17523 if (obj5) {
17524 arg6 = (int) SWIG_AsInt(obj5);
17525 if (PyErr_Occurred()) SWIG_fail;
17526 }
17527 if (obj6) {
17528 arg7 = (int) SWIG_AsInt(obj6);
17529 if (PyErr_Occurred()) SWIG_fail;
17530 }
17531 {
17532 PyThreadState* __tstate = wxPyBeginAllowThreads();
17533 result = (wxDateTime *)new wxDateTime(arg1,(wxDateTime::Month )arg2,arg3,arg4,arg5,arg6,arg7);
17534
17535 wxPyEndAllowThreads(__tstate);
17536 if (PyErr_Occurred()) SWIG_fail;
17537 }
17538 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 1);
17539 return resultobj;
17540 fail:
17541 return NULL;
17542 }
17543
17544
17545 static PyObject *_wrap_delete_DateTime(PyObject *self, PyObject *args, PyObject *kwargs) {
17546 PyObject *resultobj;
17547 wxDateTime *arg1 = (wxDateTime *) 0 ;
17548 PyObject * obj0 = 0 ;
17549 char *kwnames[] = {
17550 (char *) "self", NULL
17551 };
17552
17553 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DateTime",kwnames,&obj0)) goto fail;
17554 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17555 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17556 {
17557 PyThreadState* __tstate = wxPyBeginAllowThreads();
17558 delete arg1;
17559
17560 wxPyEndAllowThreads(__tstate);
17561 if (PyErr_Occurred()) SWIG_fail;
17562 }
17563 Py_INCREF(Py_None); resultobj = Py_None;
17564 return resultobj;
17565 fail:
17566 return NULL;
17567 }
17568
17569
17570 static PyObject *_wrap_DateTime_SetToCurrent(PyObject *self, PyObject *args, PyObject *kwargs) {
17571 PyObject *resultobj;
17572 wxDateTime *arg1 = (wxDateTime *) 0 ;
17573 wxDateTime *result;
17574 PyObject * obj0 = 0 ;
17575 char *kwnames[] = {
17576 (char *) "self", NULL
17577 };
17578
17579 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_SetToCurrent",kwnames,&obj0)) goto fail;
17580 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17581 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17582 {
17583 PyThreadState* __tstate = wxPyBeginAllowThreads();
17584 {
17585 wxDateTime &_result_ref = (arg1)->SetToCurrent();
17586 result = (wxDateTime *) &_result_ref;
17587 }
17588
17589 wxPyEndAllowThreads(__tstate);
17590 if (PyErr_Occurred()) SWIG_fail;
17591 }
17592 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17593 return resultobj;
17594 fail:
17595 return NULL;
17596 }
17597
17598
17599 static PyObject *_wrap_DateTime_SetTimeT(PyObject *self, PyObject *args, PyObject *kwargs) {
17600 PyObject *resultobj;
17601 wxDateTime *arg1 = (wxDateTime *) 0 ;
17602 time_t arg2 ;
17603 wxDateTime *result;
17604 PyObject * obj0 = 0 ;
17605 PyObject * obj1 = 0 ;
17606 char *kwnames[] = {
17607 (char *) "self",(char *) "timet", NULL
17608 };
17609
17610 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetTimeT",kwnames,&obj0,&obj1)) goto fail;
17611 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17612 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17613 arg2 = (time_t) SWIG_AsUnsignedInt(obj1);
17614 if (PyErr_Occurred()) SWIG_fail;
17615 {
17616 PyThreadState* __tstate = wxPyBeginAllowThreads();
17617 {
17618 wxDateTime &_result_ref = (arg1)->Set(arg2);
17619 result = (wxDateTime *) &_result_ref;
17620 }
17621
17622 wxPyEndAllowThreads(__tstate);
17623 if (PyErr_Occurred()) SWIG_fail;
17624 }
17625 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17626 return resultobj;
17627 fail:
17628 return NULL;
17629 }
17630
17631
17632 static PyObject *_wrap_DateTime_SetJDN(PyObject *self, PyObject *args, PyObject *kwargs) {
17633 PyObject *resultobj;
17634 wxDateTime *arg1 = (wxDateTime *) 0 ;
17635 double arg2 ;
17636 wxDateTime *result;
17637 PyObject * obj0 = 0 ;
17638 PyObject * obj1 = 0 ;
17639 char *kwnames[] = {
17640 (char *) "self",(char *) "jdn", NULL
17641 };
17642
17643 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetJDN",kwnames,&obj0,&obj1)) goto fail;
17644 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17645 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17646 arg2 = (double) SWIG_AsDouble(obj1);
17647 if (PyErr_Occurred()) SWIG_fail;
17648 {
17649 PyThreadState* __tstate = wxPyBeginAllowThreads();
17650 {
17651 wxDateTime &_result_ref = (arg1)->Set(arg2);
17652 result = (wxDateTime *) &_result_ref;
17653 }
17654
17655 wxPyEndAllowThreads(__tstate);
17656 if (PyErr_Occurred()) SWIG_fail;
17657 }
17658 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17659 return resultobj;
17660 fail:
17661 return NULL;
17662 }
17663
17664
17665 static PyObject *_wrap_DateTime_SetHMS(PyObject *self, PyObject *args, PyObject *kwargs) {
17666 PyObject *resultobj;
17667 wxDateTime *arg1 = (wxDateTime *) 0 ;
17668 int arg2 ;
17669 int arg3 = (int) 0 ;
17670 int arg4 = (int) 0 ;
17671 int arg5 = (int) 0 ;
17672 wxDateTime *result;
17673 PyObject * obj0 = 0 ;
17674 PyObject * obj1 = 0 ;
17675 PyObject * obj2 = 0 ;
17676 PyObject * obj3 = 0 ;
17677 PyObject * obj4 = 0 ;
17678 char *kwnames[] = {
17679 (char *) "self",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL
17680 };
17681
17682 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DateTime_SetHMS",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
17683 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17684 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17685 arg2 = (int) SWIG_AsInt(obj1);
17686 if (PyErr_Occurred()) SWIG_fail;
17687 if (obj2) {
17688 arg3 = (int) SWIG_AsInt(obj2);
17689 if (PyErr_Occurred()) SWIG_fail;
17690 }
17691 if (obj3) {
17692 arg4 = (int) SWIG_AsInt(obj3);
17693 if (PyErr_Occurred()) SWIG_fail;
17694 }
17695 if (obj4) {
17696 arg5 = (int) SWIG_AsInt(obj4);
17697 if (PyErr_Occurred()) SWIG_fail;
17698 }
17699 {
17700 PyThreadState* __tstate = wxPyBeginAllowThreads();
17701 {
17702 wxDateTime &_result_ref = (arg1)->Set(arg2,arg3,arg4,arg5);
17703 result = (wxDateTime *) &_result_ref;
17704 }
17705
17706 wxPyEndAllowThreads(__tstate);
17707 if (PyErr_Occurred()) SWIG_fail;
17708 }
17709 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17710 return resultobj;
17711 fail:
17712 return NULL;
17713 }
17714
17715
17716 static PyObject *_wrap_DateTime_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
17717 PyObject *resultobj;
17718 wxDateTime *arg1 = (wxDateTime *) 0 ;
17719 int arg2 ;
17720 int arg3 = (int) wxDateTime::Inv_Month ;
17721 int arg4 = (int) wxDateTime::Inv_Year ;
17722 int arg5 = (int) 0 ;
17723 int arg6 = (int) 0 ;
17724 int arg7 = (int) 0 ;
17725 int arg8 = (int) 0 ;
17726 wxDateTime *result;
17727 PyObject * obj0 = 0 ;
17728 PyObject * obj1 = 0 ;
17729 PyObject * obj2 = 0 ;
17730 PyObject * obj3 = 0 ;
17731 PyObject * obj4 = 0 ;
17732 PyObject * obj5 = 0 ;
17733 PyObject * obj6 = 0 ;
17734 PyObject * obj7 = 0 ;
17735 char *kwnames[] = {
17736 (char *) "self",(char *) "day",(char *) "month",(char *) "year",(char *) "hour",(char *) "minute",(char *) "second",(char *) "millisec", NULL
17737 };
17738
17739 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:DateTime_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
17740 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17741 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17742 arg2 = (int) SWIG_AsInt(obj1);
17743 if (PyErr_Occurred()) SWIG_fail;
17744 if (obj2) {
17745 arg3 = (wxDateTime::Month) SWIG_AsInt(obj2);
17746 if (PyErr_Occurred()) SWIG_fail;
17747 }
17748 if (obj3) {
17749 arg4 = (int) SWIG_AsInt(obj3);
17750 if (PyErr_Occurred()) SWIG_fail;
17751 }
17752 if (obj4) {
17753 arg5 = (int) SWIG_AsInt(obj4);
17754 if (PyErr_Occurred()) SWIG_fail;
17755 }
17756 if (obj5) {
17757 arg6 = (int) SWIG_AsInt(obj5);
17758 if (PyErr_Occurred()) SWIG_fail;
17759 }
17760 if (obj6) {
17761 arg7 = (int) SWIG_AsInt(obj6);
17762 if (PyErr_Occurred()) SWIG_fail;
17763 }
17764 if (obj7) {
17765 arg8 = (int) SWIG_AsInt(obj7);
17766 if (PyErr_Occurred()) SWIG_fail;
17767 }
17768 {
17769 PyThreadState* __tstate = wxPyBeginAllowThreads();
17770 {
17771 wxDateTime &_result_ref = (arg1)->Set(arg2,(wxDateTime::Month )arg3,arg4,arg5,arg6,arg7,arg8);
17772 result = (wxDateTime *) &_result_ref;
17773 }
17774
17775 wxPyEndAllowThreads(__tstate);
17776 if (PyErr_Occurred()) SWIG_fail;
17777 }
17778 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17779 return resultobj;
17780 fail:
17781 return NULL;
17782 }
17783
17784
17785 static PyObject *_wrap_DateTime_ResetTime(PyObject *self, PyObject *args, PyObject *kwargs) {
17786 PyObject *resultobj;
17787 wxDateTime *arg1 = (wxDateTime *) 0 ;
17788 wxDateTime *result;
17789 PyObject * obj0 = 0 ;
17790 char *kwnames[] = {
17791 (char *) "self", NULL
17792 };
17793
17794 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_ResetTime",kwnames,&obj0)) goto fail;
17795 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17796 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17797 {
17798 PyThreadState* __tstate = wxPyBeginAllowThreads();
17799 {
17800 wxDateTime &_result_ref = (arg1)->ResetTime();
17801 result = (wxDateTime *) &_result_ref;
17802 }
17803
17804 wxPyEndAllowThreads(__tstate);
17805 if (PyErr_Occurred()) SWIG_fail;
17806 }
17807 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17808 return resultobj;
17809 fail:
17810 return NULL;
17811 }
17812
17813
17814 static PyObject *_wrap_DateTime_SetYear(PyObject *self, PyObject *args, PyObject *kwargs) {
17815 PyObject *resultobj;
17816 wxDateTime *arg1 = (wxDateTime *) 0 ;
17817 int arg2 ;
17818 wxDateTime *result;
17819 PyObject * obj0 = 0 ;
17820 PyObject * obj1 = 0 ;
17821 char *kwnames[] = {
17822 (char *) "self",(char *) "year", NULL
17823 };
17824
17825 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetYear",kwnames,&obj0,&obj1)) goto fail;
17826 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17827 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17828 arg2 = (int) SWIG_AsInt(obj1);
17829 if (PyErr_Occurred()) SWIG_fail;
17830 {
17831 PyThreadState* __tstate = wxPyBeginAllowThreads();
17832 {
17833 wxDateTime &_result_ref = (arg1)->SetYear(arg2);
17834 result = (wxDateTime *) &_result_ref;
17835 }
17836
17837 wxPyEndAllowThreads(__tstate);
17838 if (PyErr_Occurred()) SWIG_fail;
17839 }
17840 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17841 return resultobj;
17842 fail:
17843 return NULL;
17844 }
17845
17846
17847 static PyObject *_wrap_DateTime_SetMonth(PyObject *self, PyObject *args, PyObject *kwargs) {
17848 PyObject *resultobj;
17849 wxDateTime *arg1 = (wxDateTime *) 0 ;
17850 int arg2 ;
17851 wxDateTime *result;
17852 PyObject * obj0 = 0 ;
17853 PyObject * obj1 = 0 ;
17854 char *kwnames[] = {
17855 (char *) "self",(char *) "month", NULL
17856 };
17857
17858 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMonth",kwnames,&obj0,&obj1)) goto fail;
17859 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17860 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17861 arg2 = (wxDateTime::Month) SWIG_AsInt(obj1);
17862 if (PyErr_Occurred()) SWIG_fail;
17863 {
17864 PyThreadState* __tstate = wxPyBeginAllowThreads();
17865 {
17866 wxDateTime &_result_ref = (arg1)->SetMonth((wxDateTime::Month )arg2);
17867 result = (wxDateTime *) &_result_ref;
17868 }
17869
17870 wxPyEndAllowThreads(__tstate);
17871 if (PyErr_Occurred()) SWIG_fail;
17872 }
17873 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17874 return resultobj;
17875 fail:
17876 return NULL;
17877 }
17878
17879
17880 static PyObject *_wrap_DateTime_SetDay(PyObject *self, PyObject *args, PyObject *kwargs) {
17881 PyObject *resultobj;
17882 wxDateTime *arg1 = (wxDateTime *) 0 ;
17883 int arg2 ;
17884 wxDateTime *result;
17885 PyObject * obj0 = 0 ;
17886 PyObject * obj1 = 0 ;
17887 char *kwnames[] = {
17888 (char *) "self",(char *) "day", NULL
17889 };
17890
17891 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetDay",kwnames,&obj0,&obj1)) goto fail;
17892 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17893 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17894 arg2 = (int) SWIG_AsInt(obj1);
17895 if (PyErr_Occurred()) SWIG_fail;
17896 {
17897 PyThreadState* __tstate = wxPyBeginAllowThreads();
17898 {
17899 wxDateTime &_result_ref = (arg1)->SetDay(arg2);
17900 result = (wxDateTime *) &_result_ref;
17901 }
17902
17903 wxPyEndAllowThreads(__tstate);
17904 if (PyErr_Occurred()) SWIG_fail;
17905 }
17906 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17907 return resultobj;
17908 fail:
17909 return NULL;
17910 }
17911
17912
17913 static PyObject *_wrap_DateTime_SetHour(PyObject *self, PyObject *args, PyObject *kwargs) {
17914 PyObject *resultobj;
17915 wxDateTime *arg1 = (wxDateTime *) 0 ;
17916 int arg2 ;
17917 wxDateTime *result;
17918 PyObject * obj0 = 0 ;
17919 PyObject * obj1 = 0 ;
17920 char *kwnames[] = {
17921 (char *) "self",(char *) "hour", NULL
17922 };
17923
17924 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetHour",kwnames,&obj0,&obj1)) goto fail;
17925 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17926 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17927 arg2 = (int) SWIG_AsInt(obj1);
17928 if (PyErr_Occurred()) SWIG_fail;
17929 {
17930 PyThreadState* __tstate = wxPyBeginAllowThreads();
17931 {
17932 wxDateTime &_result_ref = (arg1)->SetHour(arg2);
17933 result = (wxDateTime *) &_result_ref;
17934 }
17935
17936 wxPyEndAllowThreads(__tstate);
17937 if (PyErr_Occurred()) SWIG_fail;
17938 }
17939 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17940 return resultobj;
17941 fail:
17942 return NULL;
17943 }
17944
17945
17946 static PyObject *_wrap_DateTime_SetMinute(PyObject *self, PyObject *args, PyObject *kwargs) {
17947 PyObject *resultobj;
17948 wxDateTime *arg1 = (wxDateTime *) 0 ;
17949 int arg2 ;
17950 wxDateTime *result;
17951 PyObject * obj0 = 0 ;
17952 PyObject * obj1 = 0 ;
17953 char *kwnames[] = {
17954 (char *) "self",(char *) "minute", NULL
17955 };
17956
17957 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMinute",kwnames,&obj0,&obj1)) goto fail;
17958 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17959 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17960 arg2 = (int) SWIG_AsInt(obj1);
17961 if (PyErr_Occurred()) SWIG_fail;
17962 {
17963 PyThreadState* __tstate = wxPyBeginAllowThreads();
17964 {
17965 wxDateTime &_result_ref = (arg1)->SetMinute(arg2);
17966 result = (wxDateTime *) &_result_ref;
17967 }
17968
17969 wxPyEndAllowThreads(__tstate);
17970 if (PyErr_Occurred()) SWIG_fail;
17971 }
17972 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
17973 return resultobj;
17974 fail:
17975 return NULL;
17976 }
17977
17978
17979 static PyObject *_wrap_DateTime_SetSecond(PyObject *self, PyObject *args, PyObject *kwargs) {
17980 PyObject *resultobj;
17981 wxDateTime *arg1 = (wxDateTime *) 0 ;
17982 int arg2 ;
17983 wxDateTime *result;
17984 PyObject * obj0 = 0 ;
17985 PyObject * obj1 = 0 ;
17986 char *kwnames[] = {
17987 (char *) "self",(char *) "second", NULL
17988 };
17989
17990 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetSecond",kwnames,&obj0,&obj1)) goto fail;
17991 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
17992 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17993 arg2 = (int) SWIG_AsInt(obj1);
17994 if (PyErr_Occurred()) SWIG_fail;
17995 {
17996 PyThreadState* __tstate = wxPyBeginAllowThreads();
17997 {
17998 wxDateTime &_result_ref = (arg1)->SetSecond(arg2);
17999 result = (wxDateTime *) &_result_ref;
18000 }
18001
18002 wxPyEndAllowThreads(__tstate);
18003 if (PyErr_Occurred()) SWIG_fail;
18004 }
18005 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18006 return resultobj;
18007 fail:
18008 return NULL;
18009 }
18010
18011
18012 static PyObject *_wrap_DateTime_SetMillisecond(PyObject *self, PyObject *args, PyObject *kwargs) {
18013 PyObject *resultobj;
18014 wxDateTime *arg1 = (wxDateTime *) 0 ;
18015 int arg2 ;
18016 wxDateTime *result;
18017 PyObject * obj0 = 0 ;
18018 PyObject * obj1 = 0 ;
18019 char *kwnames[] = {
18020 (char *) "self",(char *) "millisecond", NULL
18021 };
18022
18023 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetMillisecond",kwnames,&obj0,&obj1)) goto fail;
18024 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18025 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18026 arg2 = (int) SWIG_AsInt(obj1);
18027 if (PyErr_Occurred()) SWIG_fail;
18028 {
18029 PyThreadState* __tstate = wxPyBeginAllowThreads();
18030 {
18031 wxDateTime &_result_ref = (arg1)->SetMillisecond(arg2);
18032 result = (wxDateTime *) &_result_ref;
18033 }
18034
18035 wxPyEndAllowThreads(__tstate);
18036 if (PyErr_Occurred()) SWIG_fail;
18037 }
18038 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18039 return resultobj;
18040 fail:
18041 return NULL;
18042 }
18043
18044
18045 static PyObject *_wrap_DateTime_SetToWeekDayInSameWeek(PyObject *self, PyObject *args, PyObject *kwargs) {
18046 PyObject *resultobj;
18047 wxDateTime *arg1 = (wxDateTime *) 0 ;
18048 int arg2 ;
18049 int arg3 = (int) wxDateTime::Monday_First ;
18050 wxDateTime *result;
18051 PyObject * obj0 = 0 ;
18052 PyObject * obj1 = 0 ;
18053 PyObject * obj2 = 0 ;
18054 char *kwnames[] = {
18055 (char *) "self",(char *) "weekday",(char *) "flags", NULL
18056 };
18057
18058 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_SetToWeekDayInSameWeek",kwnames,&obj0,&obj1,&obj2)) goto fail;
18059 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18060 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18061 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
18062 if (PyErr_Occurred()) SWIG_fail;
18063 if (obj2) {
18064 arg3 = (wxDateTime::WeekFlags) SWIG_AsInt(obj2);
18065 if (PyErr_Occurred()) SWIG_fail;
18066 }
18067 {
18068 PyThreadState* __tstate = wxPyBeginAllowThreads();
18069 {
18070 wxDateTime &_result_ref = (arg1)->SetToWeekDayInSameWeek((wxDateTime::WeekDay )arg2,(wxDateTime::WeekFlags )arg3);
18071 result = (wxDateTime *) &_result_ref;
18072 }
18073
18074 wxPyEndAllowThreads(__tstate);
18075 if (PyErr_Occurred()) SWIG_fail;
18076 }
18077 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18078 return resultobj;
18079 fail:
18080 return NULL;
18081 }
18082
18083
18084 static PyObject *_wrap_DateTime_GetWeekDayInSameWeek(PyObject *self, PyObject *args, PyObject *kwargs) {
18085 PyObject *resultobj;
18086 wxDateTime *arg1 = (wxDateTime *) 0 ;
18087 int arg2 ;
18088 int arg3 = (int) wxDateTime::Monday_First ;
18089 wxDateTime result;
18090 PyObject * obj0 = 0 ;
18091 PyObject * obj1 = 0 ;
18092 PyObject * obj2 = 0 ;
18093 char *kwnames[] = {
18094 (char *) "self",(char *) "weekday",(char *) "flags", NULL
18095 };
18096
18097 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_GetWeekDayInSameWeek",kwnames,&obj0,&obj1,&obj2)) goto fail;
18098 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18099 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18100 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
18101 if (PyErr_Occurred()) SWIG_fail;
18102 if (obj2) {
18103 arg3 = (wxDateTime::WeekFlags) SWIG_AsInt(obj2);
18104 if (PyErr_Occurred()) SWIG_fail;
18105 }
18106 {
18107 PyThreadState* __tstate = wxPyBeginAllowThreads();
18108 result = (arg1)->GetWeekDayInSameWeek((wxDateTime::WeekDay )arg2,(wxDateTime::WeekFlags )arg3);
18109
18110 wxPyEndAllowThreads(__tstate);
18111 if (PyErr_Occurred()) SWIG_fail;
18112 }
18113 {
18114 wxDateTime * resultptr;
18115 resultptr = new wxDateTime((wxDateTime &) result);
18116 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18117 }
18118 return resultobj;
18119 fail:
18120 return NULL;
18121 }
18122
18123
18124 static PyObject *_wrap_DateTime_SetToNextWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18125 PyObject *resultobj;
18126 wxDateTime *arg1 = (wxDateTime *) 0 ;
18127 int arg2 ;
18128 wxDateTime *result;
18129 PyObject * obj0 = 0 ;
18130 PyObject * obj1 = 0 ;
18131 char *kwnames[] = {
18132 (char *) "self",(char *) "weekday", NULL
18133 };
18134
18135 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToNextWeekDay",kwnames,&obj0,&obj1)) goto fail;
18136 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18137 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18138 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
18139 if (PyErr_Occurred()) SWIG_fail;
18140 {
18141 PyThreadState* __tstate = wxPyBeginAllowThreads();
18142 {
18143 wxDateTime &_result_ref = (arg1)->SetToNextWeekDay((wxDateTime::WeekDay )arg2);
18144 result = (wxDateTime *) &_result_ref;
18145 }
18146
18147 wxPyEndAllowThreads(__tstate);
18148 if (PyErr_Occurred()) SWIG_fail;
18149 }
18150 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18151 return resultobj;
18152 fail:
18153 return NULL;
18154 }
18155
18156
18157 static PyObject *_wrap_DateTime_GetNextWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18158 PyObject *resultobj;
18159 wxDateTime *arg1 = (wxDateTime *) 0 ;
18160 int arg2 ;
18161 wxDateTime result;
18162 PyObject * obj0 = 0 ;
18163 PyObject * obj1 = 0 ;
18164 char *kwnames[] = {
18165 (char *) "self",(char *) "weekday", NULL
18166 };
18167
18168 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetNextWeekDay",kwnames,&obj0,&obj1)) goto fail;
18169 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18170 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18171 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
18172 if (PyErr_Occurred()) SWIG_fail;
18173 {
18174 PyThreadState* __tstate = wxPyBeginAllowThreads();
18175 result = (arg1)->GetNextWeekDay((wxDateTime::WeekDay )arg2);
18176
18177 wxPyEndAllowThreads(__tstate);
18178 if (PyErr_Occurred()) SWIG_fail;
18179 }
18180 {
18181 wxDateTime * resultptr;
18182 resultptr = new wxDateTime((wxDateTime &) result);
18183 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18184 }
18185 return resultobj;
18186 fail:
18187 return NULL;
18188 }
18189
18190
18191 static PyObject *_wrap_DateTime_SetToPrevWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18192 PyObject *resultobj;
18193 wxDateTime *arg1 = (wxDateTime *) 0 ;
18194 int arg2 ;
18195 wxDateTime *result;
18196 PyObject * obj0 = 0 ;
18197 PyObject * obj1 = 0 ;
18198 char *kwnames[] = {
18199 (char *) "self",(char *) "weekday", NULL
18200 };
18201
18202 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToPrevWeekDay",kwnames,&obj0,&obj1)) goto fail;
18203 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18204 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18205 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
18206 if (PyErr_Occurred()) SWIG_fail;
18207 {
18208 PyThreadState* __tstate = wxPyBeginAllowThreads();
18209 {
18210 wxDateTime &_result_ref = (arg1)->SetToPrevWeekDay((wxDateTime::WeekDay )arg2);
18211 result = (wxDateTime *) &_result_ref;
18212 }
18213
18214 wxPyEndAllowThreads(__tstate);
18215 if (PyErr_Occurred()) SWIG_fail;
18216 }
18217 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18218 return resultobj;
18219 fail:
18220 return NULL;
18221 }
18222
18223
18224 static PyObject *_wrap_DateTime_GetPrevWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18225 PyObject *resultobj;
18226 wxDateTime *arg1 = (wxDateTime *) 0 ;
18227 int arg2 ;
18228 wxDateTime result;
18229 PyObject * obj0 = 0 ;
18230 PyObject * obj1 = 0 ;
18231 char *kwnames[] = {
18232 (char *) "self",(char *) "weekday", NULL
18233 };
18234
18235 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetPrevWeekDay",kwnames,&obj0,&obj1)) goto fail;
18236 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18237 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18238 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
18239 if (PyErr_Occurred()) SWIG_fail;
18240 {
18241 PyThreadState* __tstate = wxPyBeginAllowThreads();
18242 result = (arg1)->GetPrevWeekDay((wxDateTime::WeekDay )arg2);
18243
18244 wxPyEndAllowThreads(__tstate);
18245 if (PyErr_Occurred()) SWIG_fail;
18246 }
18247 {
18248 wxDateTime * resultptr;
18249 resultptr = new wxDateTime((wxDateTime &) result);
18250 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18251 }
18252 return resultobj;
18253 fail:
18254 return NULL;
18255 }
18256
18257
18258 static PyObject *_wrap_DateTime_SetToWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18259 PyObject *resultobj;
18260 wxDateTime *arg1 = (wxDateTime *) 0 ;
18261 int arg2 ;
18262 int arg3 = (int) 1 ;
18263 int arg4 = (int) wxDateTime::Inv_Month ;
18264 int arg5 = (int) wxDateTime::Inv_Year ;
18265 bool result;
18266 PyObject * obj0 = 0 ;
18267 PyObject * obj1 = 0 ;
18268 PyObject * obj2 = 0 ;
18269 PyObject * obj3 = 0 ;
18270 PyObject * obj4 = 0 ;
18271 char *kwnames[] = {
18272 (char *) "self",(char *) "weekday",(char *) "n",(char *) "month",(char *) "year", NULL
18273 };
18274
18275 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DateTime_SetToWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
18276 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18277 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18278 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
18279 if (PyErr_Occurred()) SWIG_fail;
18280 if (obj2) {
18281 arg3 = (int) SWIG_AsInt(obj2);
18282 if (PyErr_Occurred()) SWIG_fail;
18283 }
18284 if (obj3) {
18285 arg4 = (wxDateTime::Month) SWIG_AsInt(obj3);
18286 if (PyErr_Occurred()) SWIG_fail;
18287 }
18288 if (obj4) {
18289 arg5 = (int) SWIG_AsInt(obj4);
18290 if (PyErr_Occurred()) SWIG_fail;
18291 }
18292 {
18293 PyThreadState* __tstate = wxPyBeginAllowThreads();
18294 result = (bool)(arg1)->SetToWeekDay((wxDateTime::WeekDay )arg2,arg3,(wxDateTime::Month )arg4,arg5);
18295
18296 wxPyEndAllowThreads(__tstate);
18297 if (PyErr_Occurred()) SWIG_fail;
18298 }
18299 {
18300 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18301 }
18302 return resultobj;
18303 fail:
18304 return NULL;
18305 }
18306
18307
18308 static PyObject *_wrap_DateTime_SetToLastWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18309 PyObject *resultobj;
18310 wxDateTime *arg1 = (wxDateTime *) 0 ;
18311 int arg2 ;
18312 int arg3 = (int) wxDateTime::Inv_Month ;
18313 int arg4 = (int) wxDateTime::Inv_Year ;
18314 bool result;
18315 PyObject * obj0 = 0 ;
18316 PyObject * obj1 = 0 ;
18317 PyObject * obj2 = 0 ;
18318 PyObject * obj3 = 0 ;
18319 char *kwnames[] = {
18320 (char *) "self",(char *) "weekday",(char *) "month",(char *) "year", NULL
18321 };
18322
18323 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_SetToLastWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18324 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18325 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18326 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
18327 if (PyErr_Occurred()) SWIG_fail;
18328 if (obj2) {
18329 arg3 = (wxDateTime::Month) SWIG_AsInt(obj2);
18330 if (PyErr_Occurred()) SWIG_fail;
18331 }
18332 if (obj3) {
18333 arg4 = (int) SWIG_AsInt(obj3);
18334 if (PyErr_Occurred()) SWIG_fail;
18335 }
18336 {
18337 PyThreadState* __tstate = wxPyBeginAllowThreads();
18338 result = (bool)(arg1)->SetToLastWeekDay((wxDateTime::WeekDay )arg2,(wxDateTime::Month )arg3,arg4);
18339
18340 wxPyEndAllowThreads(__tstate);
18341 if (PyErr_Occurred()) SWIG_fail;
18342 }
18343 {
18344 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18345 }
18346 return resultobj;
18347 fail:
18348 return NULL;
18349 }
18350
18351
18352 static PyObject *_wrap_DateTime_GetLastWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18353 PyObject *resultobj;
18354 wxDateTime *arg1 = (wxDateTime *) 0 ;
18355 int arg2 ;
18356 int arg3 = (int) wxDateTime::Inv_Month ;
18357 int arg4 = (int) wxDateTime::Inv_Year ;
18358 wxDateTime result;
18359 PyObject * obj0 = 0 ;
18360 PyObject * obj1 = 0 ;
18361 PyObject * obj2 = 0 ;
18362 PyObject * obj3 = 0 ;
18363 char *kwnames[] = {
18364 (char *) "self",(char *) "weekday",(char *) "month",(char *) "year", NULL
18365 };
18366
18367 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_GetLastWeekDay",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18368 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18369 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18370 arg2 = (wxDateTime::WeekDay) SWIG_AsInt(obj1);
18371 if (PyErr_Occurred()) SWIG_fail;
18372 if (obj2) {
18373 arg3 = (wxDateTime::Month) SWIG_AsInt(obj2);
18374 if (PyErr_Occurred()) SWIG_fail;
18375 }
18376 if (obj3) {
18377 arg4 = (int) SWIG_AsInt(obj3);
18378 if (PyErr_Occurred()) SWIG_fail;
18379 }
18380 {
18381 PyThreadState* __tstate = wxPyBeginAllowThreads();
18382 result = (arg1)->GetLastWeekDay((wxDateTime::WeekDay )arg2,(wxDateTime::Month )arg3,arg4);
18383
18384 wxPyEndAllowThreads(__tstate);
18385 if (PyErr_Occurred()) SWIG_fail;
18386 }
18387 {
18388 wxDateTime * resultptr;
18389 resultptr = new wxDateTime((wxDateTime &) result);
18390 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18391 }
18392 return resultobj;
18393 fail:
18394 return NULL;
18395 }
18396
18397
18398 static PyObject *_wrap_DateTime_SetToTheWeek(PyObject *self, PyObject *args, PyObject *kwargs) {
18399 PyObject *resultobj;
18400 wxDateTime *arg1 = (wxDateTime *) 0 ;
18401 int arg2 ;
18402 int arg3 = (int) wxDateTime::Mon ;
18403 int arg4 = (int) wxDateTime::Monday_First ;
18404 bool result;
18405 PyObject * obj0 = 0 ;
18406 PyObject * obj1 = 0 ;
18407 PyObject * obj2 = 0 ;
18408 PyObject * obj3 = 0 ;
18409 char *kwnames[] = {
18410 (char *) "self",(char *) "numWeek",(char *) "weekday",(char *) "flags", NULL
18411 };
18412
18413 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_SetToTheWeek",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18414 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18415 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18416 arg2 = (int) SWIG_AsInt(obj1);
18417 if (PyErr_Occurred()) SWIG_fail;
18418 if (obj2) {
18419 arg3 = (wxDateTime::WeekDay) SWIG_AsInt(obj2);
18420 if (PyErr_Occurred()) SWIG_fail;
18421 }
18422 if (obj3) {
18423 arg4 = (wxDateTime::WeekFlags) SWIG_AsInt(obj3);
18424 if (PyErr_Occurred()) SWIG_fail;
18425 }
18426 {
18427 PyThreadState* __tstate = wxPyBeginAllowThreads();
18428 result = (bool)(arg1)->SetToTheWeek(arg2,(wxDateTime::WeekDay )arg3,(wxDateTime::WeekFlags )arg4);
18429
18430 wxPyEndAllowThreads(__tstate);
18431 if (PyErr_Occurred()) SWIG_fail;
18432 }
18433 {
18434 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18435 }
18436 return resultobj;
18437 fail:
18438 return NULL;
18439 }
18440
18441
18442 static PyObject *_wrap_DateTime_GetWeek(PyObject *self, PyObject *args, PyObject *kwargs) {
18443 PyObject *resultobj;
18444 wxDateTime *arg1 = (wxDateTime *) 0 ;
18445 int arg2 ;
18446 int arg3 = (int) wxDateTime::Mon ;
18447 int arg4 = (int) wxDateTime::Monday_First ;
18448 wxDateTime result;
18449 PyObject * obj0 = 0 ;
18450 PyObject * obj1 = 0 ;
18451 PyObject * obj2 = 0 ;
18452 PyObject * obj3 = 0 ;
18453 char *kwnames[] = {
18454 (char *) "self",(char *) "numWeek",(char *) "weekday",(char *) "flags", NULL
18455 };
18456
18457 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_GetWeek",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18458 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18459 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18460 arg2 = (int) SWIG_AsInt(obj1);
18461 if (PyErr_Occurred()) SWIG_fail;
18462 if (obj2) {
18463 arg3 = (wxDateTime::WeekDay) SWIG_AsInt(obj2);
18464 if (PyErr_Occurred()) SWIG_fail;
18465 }
18466 if (obj3) {
18467 arg4 = (wxDateTime::WeekFlags) SWIG_AsInt(obj3);
18468 if (PyErr_Occurred()) SWIG_fail;
18469 }
18470 {
18471 PyThreadState* __tstate = wxPyBeginAllowThreads();
18472 result = (arg1)->GetWeek(arg2,(wxDateTime::WeekDay )arg3,(wxDateTime::WeekFlags )arg4);
18473
18474 wxPyEndAllowThreads(__tstate);
18475 if (PyErr_Occurred()) SWIG_fail;
18476 }
18477 {
18478 wxDateTime * resultptr;
18479 resultptr = new wxDateTime((wxDateTime &) result);
18480 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18481 }
18482 return resultobj;
18483 fail:
18484 return NULL;
18485 }
18486
18487
18488 static PyObject *_wrap_DateTime_SetToLastMonthDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18489 PyObject *resultobj;
18490 wxDateTime *arg1 = (wxDateTime *) 0 ;
18491 int arg2 = (int) wxDateTime::Inv_Month ;
18492 int arg3 = (int) wxDateTime::Inv_Year ;
18493 wxDateTime *result;
18494 PyObject * obj0 = 0 ;
18495 PyObject * obj1 = 0 ;
18496 PyObject * obj2 = 0 ;
18497 char *kwnames[] = {
18498 (char *) "self",(char *) "month",(char *) "year", NULL
18499 };
18500
18501 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_SetToLastMonthDay",kwnames,&obj0,&obj1,&obj2)) goto fail;
18502 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18503 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18504 if (obj1) {
18505 arg2 = (wxDateTime::Month) SWIG_AsInt(obj1);
18506 if (PyErr_Occurred()) SWIG_fail;
18507 }
18508 if (obj2) {
18509 arg3 = (int) SWIG_AsInt(obj2);
18510 if (PyErr_Occurred()) SWIG_fail;
18511 }
18512 {
18513 PyThreadState* __tstate = wxPyBeginAllowThreads();
18514 {
18515 wxDateTime &_result_ref = (arg1)->SetToLastMonthDay((wxDateTime::Month )arg2,arg3);
18516 result = (wxDateTime *) &_result_ref;
18517 }
18518
18519 wxPyEndAllowThreads(__tstate);
18520 if (PyErr_Occurred()) SWIG_fail;
18521 }
18522 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18523 return resultobj;
18524 fail:
18525 return NULL;
18526 }
18527
18528
18529 static PyObject *_wrap_DateTime_GetLastMonthDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18530 PyObject *resultobj;
18531 wxDateTime *arg1 = (wxDateTime *) 0 ;
18532 int arg2 = (int) wxDateTime::Inv_Month ;
18533 int arg3 = (int) wxDateTime::Inv_Year ;
18534 wxDateTime result;
18535 PyObject * obj0 = 0 ;
18536 PyObject * obj1 = 0 ;
18537 PyObject * obj2 = 0 ;
18538 char *kwnames[] = {
18539 (char *) "self",(char *) "month",(char *) "year", NULL
18540 };
18541
18542 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetLastMonthDay",kwnames,&obj0,&obj1,&obj2)) goto fail;
18543 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18544 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18545 if (obj1) {
18546 arg2 = (wxDateTime::Month) SWIG_AsInt(obj1);
18547 if (PyErr_Occurred()) SWIG_fail;
18548 }
18549 if (obj2) {
18550 arg3 = (int) SWIG_AsInt(obj2);
18551 if (PyErr_Occurred()) SWIG_fail;
18552 }
18553 {
18554 PyThreadState* __tstate = wxPyBeginAllowThreads();
18555 result = (arg1)->GetLastMonthDay((wxDateTime::Month )arg2,arg3);
18556
18557 wxPyEndAllowThreads(__tstate);
18558 if (PyErr_Occurred()) SWIG_fail;
18559 }
18560 {
18561 wxDateTime * resultptr;
18562 resultptr = new wxDateTime((wxDateTime &) result);
18563 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18564 }
18565 return resultobj;
18566 fail:
18567 return NULL;
18568 }
18569
18570
18571 static PyObject *_wrap_DateTime_SetToYearDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18572 PyObject *resultobj;
18573 wxDateTime *arg1 = (wxDateTime *) 0 ;
18574 int arg2 ;
18575 wxDateTime *result;
18576 PyObject * obj0 = 0 ;
18577 PyObject * obj1 = 0 ;
18578 char *kwnames[] = {
18579 (char *) "self",(char *) "yday", NULL
18580 };
18581
18582 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SetToYearDay",kwnames,&obj0,&obj1)) goto fail;
18583 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18584 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18585 arg2 = (int) SWIG_AsInt(obj1);
18586 if (PyErr_Occurred()) SWIG_fail;
18587 {
18588 PyThreadState* __tstate = wxPyBeginAllowThreads();
18589 {
18590 wxDateTime &_result_ref = (arg1)->SetToYearDay(arg2);
18591 result = (wxDateTime *) &_result_ref;
18592 }
18593
18594 wxPyEndAllowThreads(__tstate);
18595 if (PyErr_Occurred()) SWIG_fail;
18596 }
18597 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18598 return resultobj;
18599 fail:
18600 return NULL;
18601 }
18602
18603
18604 static PyObject *_wrap_DateTime_GetYearDay(PyObject *self, PyObject *args, PyObject *kwargs) {
18605 PyObject *resultobj;
18606 wxDateTime *arg1 = (wxDateTime *) 0 ;
18607 int arg2 ;
18608 wxDateTime result;
18609 PyObject * obj0 = 0 ;
18610 PyObject * obj1 = 0 ;
18611 char *kwnames[] = {
18612 (char *) "self",(char *) "yday", NULL
18613 };
18614
18615 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_GetYearDay",kwnames,&obj0,&obj1)) goto fail;
18616 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18617 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18618 arg2 = (int) SWIG_AsInt(obj1);
18619 if (PyErr_Occurred()) SWIG_fail;
18620 {
18621 PyThreadState* __tstate = wxPyBeginAllowThreads();
18622 result = (arg1)->GetYearDay(arg2);
18623
18624 wxPyEndAllowThreads(__tstate);
18625 if (PyErr_Occurred()) SWIG_fail;
18626 }
18627 {
18628 wxDateTime * resultptr;
18629 resultptr = new wxDateTime((wxDateTime &) result);
18630 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18631 }
18632 return resultobj;
18633 fail:
18634 return NULL;
18635 }
18636
18637
18638 static PyObject *_wrap_DateTime_GetJulianDayNumber(PyObject *self, PyObject *args, PyObject *kwargs) {
18639 PyObject *resultobj;
18640 wxDateTime *arg1 = (wxDateTime *) 0 ;
18641 double result;
18642 PyObject * obj0 = 0 ;
18643 char *kwnames[] = {
18644 (char *) "self", NULL
18645 };
18646
18647 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetJulianDayNumber",kwnames,&obj0)) goto fail;
18648 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18649 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18650 {
18651 PyThreadState* __tstate = wxPyBeginAllowThreads();
18652 result = (double)(arg1)->GetJulianDayNumber();
18653
18654 wxPyEndAllowThreads(__tstate);
18655 if (PyErr_Occurred()) SWIG_fail;
18656 }
18657 resultobj = SWIG_FromDouble((double)result);
18658 return resultobj;
18659 fail:
18660 return NULL;
18661 }
18662
18663
18664 static PyObject *_wrap_DateTime_GetJDN(PyObject *self, PyObject *args, PyObject *kwargs) {
18665 PyObject *resultobj;
18666 wxDateTime *arg1 = (wxDateTime *) 0 ;
18667 double result;
18668 PyObject * obj0 = 0 ;
18669 char *kwnames[] = {
18670 (char *) "self", NULL
18671 };
18672
18673 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetJDN",kwnames,&obj0)) goto fail;
18674 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18675 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18676 {
18677 PyThreadState* __tstate = wxPyBeginAllowThreads();
18678 result = (double)(arg1)->GetJDN();
18679
18680 wxPyEndAllowThreads(__tstate);
18681 if (PyErr_Occurred()) SWIG_fail;
18682 }
18683 resultobj = SWIG_FromDouble((double)result);
18684 return resultobj;
18685 fail:
18686 return NULL;
18687 }
18688
18689
18690 static PyObject *_wrap_DateTime_GetModifiedJulianDayNumber(PyObject *self, PyObject *args, PyObject *kwargs) {
18691 PyObject *resultobj;
18692 wxDateTime *arg1 = (wxDateTime *) 0 ;
18693 double result;
18694 PyObject * obj0 = 0 ;
18695 char *kwnames[] = {
18696 (char *) "self", NULL
18697 };
18698
18699 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetModifiedJulianDayNumber",kwnames,&obj0)) goto fail;
18700 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18701 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18702 {
18703 PyThreadState* __tstate = wxPyBeginAllowThreads();
18704 result = (double)((wxDateTime const *)arg1)->GetModifiedJulianDayNumber();
18705
18706 wxPyEndAllowThreads(__tstate);
18707 if (PyErr_Occurred()) SWIG_fail;
18708 }
18709 resultobj = SWIG_FromDouble((double)result);
18710 return resultobj;
18711 fail:
18712 return NULL;
18713 }
18714
18715
18716 static PyObject *_wrap_DateTime_GetMJD(PyObject *self, PyObject *args, PyObject *kwargs) {
18717 PyObject *resultobj;
18718 wxDateTime *arg1 = (wxDateTime *) 0 ;
18719 double result;
18720 PyObject * obj0 = 0 ;
18721 char *kwnames[] = {
18722 (char *) "self", NULL
18723 };
18724
18725 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetMJD",kwnames,&obj0)) goto fail;
18726 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18727 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18728 {
18729 PyThreadState* __tstate = wxPyBeginAllowThreads();
18730 result = (double)(arg1)->GetMJD();
18731
18732 wxPyEndAllowThreads(__tstate);
18733 if (PyErr_Occurred()) SWIG_fail;
18734 }
18735 resultobj = SWIG_FromDouble((double)result);
18736 return resultobj;
18737 fail:
18738 return NULL;
18739 }
18740
18741
18742 static PyObject *_wrap_DateTime_GetRataDie(PyObject *self, PyObject *args, PyObject *kwargs) {
18743 PyObject *resultobj;
18744 wxDateTime *arg1 = (wxDateTime *) 0 ;
18745 double result;
18746 PyObject * obj0 = 0 ;
18747 char *kwnames[] = {
18748 (char *) "self", NULL
18749 };
18750
18751 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetRataDie",kwnames,&obj0)) goto fail;
18752 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18753 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18754 {
18755 PyThreadState* __tstate = wxPyBeginAllowThreads();
18756 result = (double)(arg1)->GetRataDie();
18757
18758 wxPyEndAllowThreads(__tstate);
18759 if (PyErr_Occurred()) SWIG_fail;
18760 }
18761 resultobj = SWIG_FromDouble((double)result);
18762 return resultobj;
18763 fail:
18764 return NULL;
18765 }
18766
18767
18768 static PyObject *_wrap_DateTime_ToTimezone(PyObject *self, PyObject *args, PyObject *kwargs) {
18769 PyObject *resultobj;
18770 wxDateTime *arg1 = (wxDateTime *) 0 ;
18771 wxDateTime::TimeZone *arg2 = 0 ;
18772 bool arg3 = (bool) False ;
18773 wxDateTime result;
18774 bool temp2 = False ;
18775 PyObject * obj0 = 0 ;
18776 PyObject * obj1 = 0 ;
18777 PyObject * obj2 = 0 ;
18778 char *kwnames[] = {
18779 (char *) "self",(char *) "tz",(char *) "noDST", NULL
18780 };
18781
18782 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_ToTimezone",kwnames,&obj0,&obj1,&obj2)) goto fail;
18783 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18784 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18785 {
18786 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
18787 temp2 = True;
18788 }
18789 if (obj2) {
18790 arg3 = (bool) SWIG_AsBool(obj2);
18791 if (PyErr_Occurred()) SWIG_fail;
18792 }
18793 {
18794 PyThreadState* __tstate = wxPyBeginAllowThreads();
18795 result = (arg1)->ToTimezone((wxDateTime::TimeZone const &)*arg2,arg3);
18796
18797 wxPyEndAllowThreads(__tstate);
18798 if (PyErr_Occurred()) SWIG_fail;
18799 }
18800 {
18801 wxDateTime * resultptr;
18802 resultptr = new wxDateTime((wxDateTime &) result);
18803 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18804 }
18805 {
18806 if (temp2) delete arg2;
18807 }
18808 return resultobj;
18809 fail:
18810 {
18811 if (temp2) delete arg2;
18812 }
18813 return NULL;
18814 }
18815
18816
18817 static PyObject *_wrap_DateTime_MakeTimezone(PyObject *self, PyObject *args, PyObject *kwargs) {
18818 PyObject *resultobj;
18819 wxDateTime *arg1 = (wxDateTime *) 0 ;
18820 wxDateTime::TimeZone *arg2 = 0 ;
18821 bool arg3 = (bool) False ;
18822 wxDateTime *result;
18823 bool temp2 = False ;
18824 PyObject * obj0 = 0 ;
18825 PyObject * obj1 = 0 ;
18826 PyObject * obj2 = 0 ;
18827 char *kwnames[] = {
18828 (char *) "self",(char *) "tz",(char *) "noDST", NULL
18829 };
18830
18831 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DateTime_MakeTimezone",kwnames,&obj0,&obj1,&obj2)) goto fail;
18832 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18833 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18834 {
18835 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
18836 temp2 = True;
18837 }
18838 if (obj2) {
18839 arg3 = (bool) SWIG_AsBool(obj2);
18840 if (PyErr_Occurred()) SWIG_fail;
18841 }
18842 {
18843 PyThreadState* __tstate = wxPyBeginAllowThreads();
18844 {
18845 wxDateTime &_result_ref = (arg1)->MakeTimezone((wxDateTime::TimeZone const &)*arg2,arg3);
18846 result = (wxDateTime *) &_result_ref;
18847 }
18848
18849 wxPyEndAllowThreads(__tstate);
18850 if (PyErr_Occurred()) SWIG_fail;
18851 }
18852 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18853 {
18854 if (temp2) delete arg2;
18855 }
18856 return resultobj;
18857 fail:
18858 {
18859 if (temp2) delete arg2;
18860 }
18861 return NULL;
18862 }
18863
18864
18865 static PyObject *_wrap_DateTime_ToGMT(PyObject *self, PyObject *args, PyObject *kwargs) {
18866 PyObject *resultobj;
18867 wxDateTime *arg1 = (wxDateTime *) 0 ;
18868 bool arg2 = (bool) False ;
18869 wxDateTime result;
18870 PyObject * obj0 = 0 ;
18871 PyObject * obj1 = 0 ;
18872 char *kwnames[] = {
18873 (char *) "self",(char *) "noDST", NULL
18874 };
18875
18876 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_ToGMT",kwnames,&obj0,&obj1)) goto fail;
18877 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18878 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18879 if (obj1) {
18880 arg2 = (bool) SWIG_AsBool(obj1);
18881 if (PyErr_Occurred()) SWIG_fail;
18882 }
18883 {
18884 PyThreadState* __tstate = wxPyBeginAllowThreads();
18885 result = (arg1)->ToGMT(arg2);
18886
18887 wxPyEndAllowThreads(__tstate);
18888 if (PyErr_Occurred()) SWIG_fail;
18889 }
18890 {
18891 wxDateTime * resultptr;
18892 resultptr = new wxDateTime((wxDateTime &) result);
18893 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
18894 }
18895 return resultobj;
18896 fail:
18897 return NULL;
18898 }
18899
18900
18901 static PyObject *_wrap_DateTime_MakeGMT(PyObject *self, PyObject *args, PyObject *kwargs) {
18902 PyObject *resultobj;
18903 wxDateTime *arg1 = (wxDateTime *) 0 ;
18904 bool arg2 = (bool) False ;
18905 wxDateTime *result;
18906 PyObject * obj0 = 0 ;
18907 PyObject * obj1 = 0 ;
18908 char *kwnames[] = {
18909 (char *) "self",(char *) "noDST", NULL
18910 };
18911
18912 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_MakeGMT",kwnames,&obj0,&obj1)) goto fail;
18913 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18914 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18915 if (obj1) {
18916 arg2 = (bool) SWIG_AsBool(obj1);
18917 if (PyErr_Occurred()) SWIG_fail;
18918 }
18919 {
18920 PyThreadState* __tstate = wxPyBeginAllowThreads();
18921 {
18922 wxDateTime &_result_ref = (arg1)->MakeGMT(arg2);
18923 result = (wxDateTime *) &_result_ref;
18924 }
18925
18926 wxPyEndAllowThreads(__tstate);
18927 if (PyErr_Occurred()) SWIG_fail;
18928 }
18929 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
18930 return resultobj;
18931 fail:
18932 return NULL;
18933 }
18934
18935
18936 static PyObject *_wrap_DateTime_IsDST(PyObject *self, PyObject *args, PyObject *kwargs) {
18937 PyObject *resultobj;
18938 wxDateTime *arg1 = (wxDateTime *) 0 ;
18939 int arg2 = (int) wxDateTime::Country_Default ;
18940 int result;
18941 PyObject * obj0 = 0 ;
18942 PyObject * obj1 = 0 ;
18943 char *kwnames[] = {
18944 (char *) "self",(char *) "country", NULL
18945 };
18946
18947 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_IsDST",kwnames,&obj0,&obj1)) goto fail;
18948 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18949 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18950 if (obj1) {
18951 arg2 = (wxDateTime::Country) SWIG_AsInt(obj1);
18952 if (PyErr_Occurred()) SWIG_fail;
18953 }
18954 {
18955 PyThreadState* __tstate = wxPyBeginAllowThreads();
18956 result = (int)(arg1)->IsDST((wxDateTime::Country )arg2);
18957
18958 wxPyEndAllowThreads(__tstate);
18959 if (PyErr_Occurred()) SWIG_fail;
18960 }
18961 resultobj = SWIG_FromInt((int)result);
18962 return resultobj;
18963 fail:
18964 return NULL;
18965 }
18966
18967
18968 static PyObject *_wrap_DateTime_IsValid(PyObject *self, PyObject *args, PyObject *kwargs) {
18969 PyObject *resultobj;
18970 wxDateTime *arg1 = (wxDateTime *) 0 ;
18971 bool result;
18972 PyObject * obj0 = 0 ;
18973 char *kwnames[] = {
18974 (char *) "self", NULL
18975 };
18976
18977 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_IsValid",kwnames,&obj0)) goto fail;
18978 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
18979 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18980 {
18981 PyThreadState* __tstate = wxPyBeginAllowThreads();
18982 result = (bool)((wxDateTime const *)arg1)->IsValid();
18983
18984 wxPyEndAllowThreads(__tstate);
18985 if (PyErr_Occurred()) SWIG_fail;
18986 }
18987 {
18988 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18989 }
18990 return resultobj;
18991 fail:
18992 return NULL;
18993 }
18994
18995
18996 static PyObject *_wrap_DateTime_GetTicks(PyObject *self, PyObject *args, PyObject *kwargs) {
18997 PyObject *resultobj;
18998 wxDateTime *arg1 = (wxDateTime *) 0 ;
18999 time_t result;
19000 PyObject * obj0 = 0 ;
19001 char *kwnames[] = {
19002 (char *) "self", NULL
19003 };
19004
19005 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_GetTicks",kwnames,&obj0)) goto fail;
19006 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19007 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19008 {
19009 PyThreadState* __tstate = wxPyBeginAllowThreads();
19010 result = (time_t)((wxDateTime const *)arg1)->GetTicks();
19011
19012 wxPyEndAllowThreads(__tstate);
19013 if (PyErr_Occurred()) SWIG_fail;
19014 }
19015 resultobj = SWIG_FromUnsignedInt((unsigned int)result);
19016 return resultobj;
19017 fail:
19018 return NULL;
19019 }
19020
19021
19022 static PyObject *_wrap_DateTime_GetYear(PyObject *self, PyObject *args, PyObject *kwargs) {
19023 PyObject *resultobj;
19024 wxDateTime *arg1 = (wxDateTime *) 0 ;
19025 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19026 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19027 int result;
19028 bool temp2 = False ;
19029 PyObject * obj0 = 0 ;
19030 PyObject * obj1 = 0 ;
19031 char *kwnames[] = {
19032 (char *) "self",(char *) "tz", NULL
19033 };
19034
19035 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetYear",kwnames,&obj0,&obj1)) goto fail;
19036 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19037 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19038 if (obj1) {
19039 {
19040 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19041 temp2 = True;
19042 }
19043 }
19044 {
19045 PyThreadState* __tstate = wxPyBeginAllowThreads();
19046 result = (int)((wxDateTime const *)arg1)->GetYear((wxDateTime::TimeZone const &)*arg2);
19047
19048 wxPyEndAllowThreads(__tstate);
19049 if (PyErr_Occurred()) SWIG_fail;
19050 }
19051 resultobj = SWIG_FromInt((int)result);
19052 {
19053 if (temp2) delete arg2;
19054 }
19055 return resultobj;
19056 fail:
19057 {
19058 if (temp2) delete arg2;
19059 }
19060 return NULL;
19061 }
19062
19063
19064 static PyObject *_wrap_DateTime_GetMonth(PyObject *self, PyObject *args, PyObject *kwargs) {
19065 PyObject *resultobj;
19066 wxDateTime *arg1 = (wxDateTime *) 0 ;
19067 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19068 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19069 int result;
19070 bool temp2 = False ;
19071 PyObject * obj0 = 0 ;
19072 PyObject * obj1 = 0 ;
19073 char *kwnames[] = {
19074 (char *) "self",(char *) "tz", NULL
19075 };
19076
19077 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMonth",kwnames,&obj0,&obj1)) goto fail;
19078 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19079 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19080 if (obj1) {
19081 {
19082 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19083 temp2 = True;
19084 }
19085 }
19086 {
19087 PyThreadState* __tstate = wxPyBeginAllowThreads();
19088 result = (int)((wxDateTime const *)arg1)->GetMonth((wxDateTime::TimeZone const &)*arg2);
19089
19090 wxPyEndAllowThreads(__tstate);
19091 if (PyErr_Occurred()) SWIG_fail;
19092 }
19093 resultobj = SWIG_FromInt((int)result);
19094 {
19095 if (temp2) delete arg2;
19096 }
19097 return resultobj;
19098 fail:
19099 {
19100 if (temp2) delete arg2;
19101 }
19102 return NULL;
19103 }
19104
19105
19106 static PyObject *_wrap_DateTime_GetDay(PyObject *self, PyObject *args, PyObject *kwargs) {
19107 PyObject *resultobj;
19108 wxDateTime *arg1 = (wxDateTime *) 0 ;
19109 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19110 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19111 int result;
19112 bool temp2 = False ;
19113 PyObject * obj0 = 0 ;
19114 PyObject * obj1 = 0 ;
19115 char *kwnames[] = {
19116 (char *) "self",(char *) "tz", NULL
19117 };
19118
19119 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetDay",kwnames,&obj0,&obj1)) goto fail;
19120 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19121 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19122 if (obj1) {
19123 {
19124 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19125 temp2 = True;
19126 }
19127 }
19128 {
19129 PyThreadState* __tstate = wxPyBeginAllowThreads();
19130 result = (int)((wxDateTime const *)arg1)->GetDay((wxDateTime::TimeZone const &)*arg2);
19131
19132 wxPyEndAllowThreads(__tstate);
19133 if (PyErr_Occurred()) SWIG_fail;
19134 }
19135 resultobj = SWIG_FromInt((int)result);
19136 {
19137 if (temp2) delete arg2;
19138 }
19139 return resultobj;
19140 fail:
19141 {
19142 if (temp2) delete arg2;
19143 }
19144 return NULL;
19145 }
19146
19147
19148 static PyObject *_wrap_DateTime_GetWeekDay(PyObject *self, PyObject *args, PyObject *kwargs) {
19149 PyObject *resultobj;
19150 wxDateTime *arg1 = (wxDateTime *) 0 ;
19151 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19152 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19153 int result;
19154 bool temp2 = False ;
19155 PyObject * obj0 = 0 ;
19156 PyObject * obj1 = 0 ;
19157 char *kwnames[] = {
19158 (char *) "self",(char *) "tz", NULL
19159 };
19160
19161 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetWeekDay",kwnames,&obj0,&obj1)) goto fail;
19162 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19163 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19164 if (obj1) {
19165 {
19166 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19167 temp2 = True;
19168 }
19169 }
19170 {
19171 PyThreadState* __tstate = wxPyBeginAllowThreads();
19172 result = (int)((wxDateTime const *)arg1)->GetWeekDay((wxDateTime::TimeZone const &)*arg2);
19173
19174 wxPyEndAllowThreads(__tstate);
19175 if (PyErr_Occurred()) SWIG_fail;
19176 }
19177 resultobj = SWIG_FromInt((int)result);
19178 {
19179 if (temp2) delete arg2;
19180 }
19181 return resultobj;
19182 fail:
19183 {
19184 if (temp2) delete arg2;
19185 }
19186 return NULL;
19187 }
19188
19189
19190 static PyObject *_wrap_DateTime_GetHour(PyObject *self, PyObject *args, PyObject *kwargs) {
19191 PyObject *resultobj;
19192 wxDateTime *arg1 = (wxDateTime *) 0 ;
19193 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19194 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19195 int result;
19196 bool temp2 = False ;
19197 PyObject * obj0 = 0 ;
19198 PyObject * obj1 = 0 ;
19199 char *kwnames[] = {
19200 (char *) "self",(char *) "tz", NULL
19201 };
19202
19203 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetHour",kwnames,&obj0,&obj1)) goto fail;
19204 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19205 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19206 if (obj1) {
19207 {
19208 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19209 temp2 = True;
19210 }
19211 }
19212 {
19213 PyThreadState* __tstate = wxPyBeginAllowThreads();
19214 result = (int)((wxDateTime const *)arg1)->GetHour((wxDateTime::TimeZone const &)*arg2);
19215
19216 wxPyEndAllowThreads(__tstate);
19217 if (PyErr_Occurred()) SWIG_fail;
19218 }
19219 resultobj = SWIG_FromInt((int)result);
19220 {
19221 if (temp2) delete arg2;
19222 }
19223 return resultobj;
19224 fail:
19225 {
19226 if (temp2) delete arg2;
19227 }
19228 return NULL;
19229 }
19230
19231
19232 static PyObject *_wrap_DateTime_GetMinute(PyObject *self, PyObject *args, PyObject *kwargs) {
19233 PyObject *resultobj;
19234 wxDateTime *arg1 = (wxDateTime *) 0 ;
19235 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19236 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19237 int result;
19238 bool temp2 = False ;
19239 PyObject * obj0 = 0 ;
19240 PyObject * obj1 = 0 ;
19241 char *kwnames[] = {
19242 (char *) "self",(char *) "tz", NULL
19243 };
19244
19245 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMinute",kwnames,&obj0,&obj1)) goto fail;
19246 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19247 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19248 if (obj1) {
19249 {
19250 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19251 temp2 = True;
19252 }
19253 }
19254 {
19255 PyThreadState* __tstate = wxPyBeginAllowThreads();
19256 result = (int)((wxDateTime const *)arg1)->GetMinute((wxDateTime::TimeZone const &)*arg2);
19257
19258 wxPyEndAllowThreads(__tstate);
19259 if (PyErr_Occurred()) SWIG_fail;
19260 }
19261 resultobj = SWIG_FromInt((int)result);
19262 {
19263 if (temp2) delete arg2;
19264 }
19265 return resultobj;
19266 fail:
19267 {
19268 if (temp2) delete arg2;
19269 }
19270 return NULL;
19271 }
19272
19273
19274 static PyObject *_wrap_DateTime_GetSecond(PyObject *self, PyObject *args, PyObject *kwargs) {
19275 PyObject *resultobj;
19276 wxDateTime *arg1 = (wxDateTime *) 0 ;
19277 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19278 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19279 int result;
19280 bool temp2 = False ;
19281 PyObject * obj0 = 0 ;
19282 PyObject * obj1 = 0 ;
19283 char *kwnames[] = {
19284 (char *) "self",(char *) "tz", NULL
19285 };
19286
19287 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetSecond",kwnames,&obj0,&obj1)) goto fail;
19288 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19289 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19290 if (obj1) {
19291 {
19292 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19293 temp2 = True;
19294 }
19295 }
19296 {
19297 PyThreadState* __tstate = wxPyBeginAllowThreads();
19298 result = (int)((wxDateTime const *)arg1)->GetSecond((wxDateTime::TimeZone const &)*arg2);
19299
19300 wxPyEndAllowThreads(__tstate);
19301 if (PyErr_Occurred()) SWIG_fail;
19302 }
19303 resultobj = SWIG_FromInt((int)result);
19304 {
19305 if (temp2) delete arg2;
19306 }
19307 return resultobj;
19308 fail:
19309 {
19310 if (temp2) delete arg2;
19311 }
19312 return NULL;
19313 }
19314
19315
19316 static PyObject *_wrap_DateTime_GetMillisecond(PyObject *self, PyObject *args, PyObject *kwargs) {
19317 PyObject *resultobj;
19318 wxDateTime *arg1 = (wxDateTime *) 0 ;
19319 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19320 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19321 int result;
19322 bool temp2 = False ;
19323 PyObject * obj0 = 0 ;
19324 PyObject * obj1 = 0 ;
19325 char *kwnames[] = {
19326 (char *) "self",(char *) "tz", NULL
19327 };
19328
19329 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetMillisecond",kwnames,&obj0,&obj1)) goto fail;
19330 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19331 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19332 if (obj1) {
19333 {
19334 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19335 temp2 = True;
19336 }
19337 }
19338 {
19339 PyThreadState* __tstate = wxPyBeginAllowThreads();
19340 result = (int)((wxDateTime const *)arg1)->GetMillisecond((wxDateTime::TimeZone const &)*arg2);
19341
19342 wxPyEndAllowThreads(__tstate);
19343 if (PyErr_Occurred()) SWIG_fail;
19344 }
19345 resultobj = SWIG_FromInt((int)result);
19346 {
19347 if (temp2) delete arg2;
19348 }
19349 return resultobj;
19350 fail:
19351 {
19352 if (temp2) delete arg2;
19353 }
19354 return NULL;
19355 }
19356
19357
19358 static PyObject *_wrap_DateTime_GetDayOfYear(PyObject *self, PyObject *args, PyObject *kwargs) {
19359 PyObject *resultobj;
19360 wxDateTime *arg1 = (wxDateTime *) 0 ;
19361 wxDateTime::TimeZone const &arg2_defvalue = LOCAL_TZ ;
19362 wxDateTime::TimeZone *arg2 = (wxDateTime::TimeZone *) &arg2_defvalue ;
19363 int result;
19364 bool temp2 = False ;
19365 PyObject * obj0 = 0 ;
19366 PyObject * obj1 = 0 ;
19367 char *kwnames[] = {
19368 (char *) "self",(char *) "tz", NULL
19369 };
19370
19371 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_GetDayOfYear",kwnames,&obj0,&obj1)) goto fail;
19372 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19373 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19374 if (obj1) {
19375 {
19376 arg2 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj1));
19377 temp2 = True;
19378 }
19379 }
19380 {
19381 PyThreadState* __tstate = wxPyBeginAllowThreads();
19382 result = (int)((wxDateTime const *)arg1)->GetDayOfYear((wxDateTime::TimeZone const &)*arg2);
19383
19384 wxPyEndAllowThreads(__tstate);
19385 if (PyErr_Occurred()) SWIG_fail;
19386 }
19387 resultobj = SWIG_FromInt((int)result);
19388 {
19389 if (temp2) delete arg2;
19390 }
19391 return resultobj;
19392 fail:
19393 {
19394 if (temp2) delete arg2;
19395 }
19396 return NULL;
19397 }
19398
19399
19400 static PyObject *_wrap_DateTime_GetWeekOfYear(PyObject *self, PyObject *args, PyObject *kwargs) {
19401 PyObject *resultobj;
19402 wxDateTime *arg1 = (wxDateTime *) 0 ;
19403 int arg2 = (int) wxDateTime::Monday_First ;
19404 wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ;
19405 wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ;
19406 int result;
19407 bool temp3 = False ;
19408 PyObject * obj0 = 0 ;
19409 PyObject * obj1 = 0 ;
19410 PyObject * obj2 = 0 ;
19411 char *kwnames[] = {
19412 (char *) "self",(char *) "flags",(char *) "tz", NULL
19413 };
19414
19415 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetWeekOfYear",kwnames,&obj0,&obj1,&obj2)) goto fail;
19416 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19417 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19418 if (obj1) {
19419 arg2 = (wxDateTime::WeekFlags) SWIG_AsInt(obj1);
19420 if (PyErr_Occurred()) SWIG_fail;
19421 }
19422 if (obj2) {
19423 {
19424 arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2));
19425 temp3 = True;
19426 }
19427 }
19428 {
19429 PyThreadState* __tstate = wxPyBeginAllowThreads();
19430 result = (int)((wxDateTime const *)arg1)->GetWeekOfYear((wxDateTime::WeekFlags )arg2,(wxDateTime::TimeZone const &)*arg3);
19431
19432 wxPyEndAllowThreads(__tstate);
19433 if (PyErr_Occurred()) SWIG_fail;
19434 }
19435 resultobj = SWIG_FromInt((int)result);
19436 {
19437 if (temp3) delete arg3;
19438 }
19439 return resultobj;
19440 fail:
19441 {
19442 if (temp3) delete arg3;
19443 }
19444 return NULL;
19445 }
19446
19447
19448 static PyObject *_wrap_DateTime_GetWeekOfMonth(PyObject *self, PyObject *args, PyObject *kwargs) {
19449 PyObject *resultobj;
19450 wxDateTime *arg1 = (wxDateTime *) 0 ;
19451 int arg2 = (int) wxDateTime::Monday_First ;
19452 wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ;
19453 wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ;
19454 int result;
19455 bool temp3 = False ;
19456 PyObject * obj0 = 0 ;
19457 PyObject * obj1 = 0 ;
19458 PyObject * obj2 = 0 ;
19459 char *kwnames[] = {
19460 (char *) "self",(char *) "flags",(char *) "tz", NULL
19461 };
19462
19463 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_GetWeekOfMonth",kwnames,&obj0,&obj1,&obj2)) goto fail;
19464 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19465 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19466 if (obj1) {
19467 arg2 = (wxDateTime::WeekFlags) SWIG_AsInt(obj1);
19468 if (PyErr_Occurred()) SWIG_fail;
19469 }
19470 if (obj2) {
19471 {
19472 arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2));
19473 temp3 = True;
19474 }
19475 }
19476 {
19477 PyThreadState* __tstate = wxPyBeginAllowThreads();
19478 result = (int)((wxDateTime const *)arg1)->GetWeekOfMonth((wxDateTime::WeekFlags )arg2,(wxDateTime::TimeZone const &)*arg3);
19479
19480 wxPyEndAllowThreads(__tstate);
19481 if (PyErr_Occurred()) SWIG_fail;
19482 }
19483 resultobj = SWIG_FromInt((int)result);
19484 {
19485 if (temp3) delete arg3;
19486 }
19487 return resultobj;
19488 fail:
19489 {
19490 if (temp3) delete arg3;
19491 }
19492 return NULL;
19493 }
19494
19495
19496 static PyObject *_wrap_DateTime_IsWorkDay(PyObject *self, PyObject *args, PyObject *kwargs) {
19497 PyObject *resultobj;
19498 wxDateTime *arg1 = (wxDateTime *) 0 ;
19499 int arg2 = (int) wxDateTime::Country_Default ;
19500 bool result;
19501 PyObject * obj0 = 0 ;
19502 PyObject * obj1 = 0 ;
19503 char *kwnames[] = {
19504 (char *) "self",(char *) "country", NULL
19505 };
19506
19507 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DateTime_IsWorkDay",kwnames,&obj0,&obj1)) goto fail;
19508 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19509 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19510 if (obj1) {
19511 arg2 = (wxDateTime::Country) SWIG_AsInt(obj1);
19512 if (PyErr_Occurred()) SWIG_fail;
19513 }
19514 {
19515 PyThreadState* __tstate = wxPyBeginAllowThreads();
19516 result = (bool)((wxDateTime const *)arg1)->IsWorkDay((wxDateTime::Country )arg2);
19517
19518 wxPyEndAllowThreads(__tstate);
19519 if (PyErr_Occurred()) SWIG_fail;
19520 }
19521 {
19522 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19523 }
19524 return resultobj;
19525 fail:
19526 return NULL;
19527 }
19528
19529
19530 static PyObject *_wrap_DateTime_IsEqualTo(PyObject *self, PyObject *args, PyObject *kwargs) {
19531 PyObject *resultobj;
19532 wxDateTime *arg1 = (wxDateTime *) 0 ;
19533 wxDateTime *arg2 = 0 ;
19534 bool result;
19535 PyObject * obj0 = 0 ;
19536 PyObject * obj1 = 0 ;
19537 char *kwnames[] = {
19538 (char *) "self",(char *) "datetime", NULL
19539 };
19540
19541 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsEqualTo",kwnames,&obj0,&obj1)) goto fail;
19542 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19543 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19544 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19545 SWIG_POINTER_EXCEPTION | 0)) == -1)
19546 SWIG_fail;
19547 if (arg2 == NULL) {
19548 PyErr_SetString(PyExc_TypeError,"null reference");
19549 SWIG_fail;
19550 }
19551 {
19552 PyThreadState* __tstate = wxPyBeginAllowThreads();
19553 result = (bool)((wxDateTime const *)arg1)->IsEqualTo((wxDateTime const &)*arg2);
19554
19555 wxPyEndAllowThreads(__tstate);
19556 if (PyErr_Occurred()) SWIG_fail;
19557 }
19558 {
19559 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19560 }
19561 return resultobj;
19562 fail:
19563 return NULL;
19564 }
19565
19566
19567 static PyObject *_wrap_DateTime_IsEarlierThan(PyObject *self, PyObject *args, PyObject *kwargs) {
19568 PyObject *resultobj;
19569 wxDateTime *arg1 = (wxDateTime *) 0 ;
19570 wxDateTime *arg2 = 0 ;
19571 bool result;
19572 PyObject * obj0 = 0 ;
19573 PyObject * obj1 = 0 ;
19574 char *kwnames[] = {
19575 (char *) "self",(char *) "datetime", NULL
19576 };
19577
19578 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsEarlierThan",kwnames,&obj0,&obj1)) goto fail;
19579 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19580 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19581 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19582 SWIG_POINTER_EXCEPTION | 0)) == -1)
19583 SWIG_fail;
19584 if (arg2 == NULL) {
19585 PyErr_SetString(PyExc_TypeError,"null reference");
19586 SWIG_fail;
19587 }
19588 {
19589 PyThreadState* __tstate = wxPyBeginAllowThreads();
19590 result = (bool)((wxDateTime const *)arg1)->IsEarlierThan((wxDateTime const &)*arg2);
19591
19592 wxPyEndAllowThreads(__tstate);
19593 if (PyErr_Occurred()) SWIG_fail;
19594 }
19595 {
19596 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19597 }
19598 return resultobj;
19599 fail:
19600 return NULL;
19601 }
19602
19603
19604 static PyObject *_wrap_DateTime_IsLaterThan(PyObject *self, PyObject *args, PyObject *kwargs) {
19605 PyObject *resultobj;
19606 wxDateTime *arg1 = (wxDateTime *) 0 ;
19607 wxDateTime *arg2 = 0 ;
19608 bool result;
19609 PyObject * obj0 = 0 ;
19610 PyObject * obj1 = 0 ;
19611 char *kwnames[] = {
19612 (char *) "self",(char *) "datetime", NULL
19613 };
19614
19615 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsLaterThan",kwnames,&obj0,&obj1)) goto fail;
19616 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19617 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19618 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19619 SWIG_POINTER_EXCEPTION | 0)) == -1)
19620 SWIG_fail;
19621 if (arg2 == NULL) {
19622 PyErr_SetString(PyExc_TypeError,"null reference");
19623 SWIG_fail;
19624 }
19625 {
19626 PyThreadState* __tstate = wxPyBeginAllowThreads();
19627 result = (bool)((wxDateTime const *)arg1)->IsLaterThan((wxDateTime const &)*arg2);
19628
19629 wxPyEndAllowThreads(__tstate);
19630 if (PyErr_Occurred()) SWIG_fail;
19631 }
19632 {
19633 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19634 }
19635 return resultobj;
19636 fail:
19637 return NULL;
19638 }
19639
19640
19641 static PyObject *_wrap_DateTime_IsStrictlyBetween(PyObject *self, PyObject *args, PyObject *kwargs) {
19642 PyObject *resultobj;
19643 wxDateTime *arg1 = (wxDateTime *) 0 ;
19644 wxDateTime *arg2 = 0 ;
19645 wxDateTime *arg3 = 0 ;
19646 bool result;
19647 PyObject * obj0 = 0 ;
19648 PyObject * obj1 = 0 ;
19649 PyObject * obj2 = 0 ;
19650 char *kwnames[] = {
19651 (char *) "self",(char *) "t1",(char *) "t2", NULL
19652 };
19653
19654 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsStrictlyBetween",kwnames,&obj0,&obj1,&obj2)) goto fail;
19655 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19656 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19657 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19658 SWIG_POINTER_EXCEPTION | 0)) == -1)
19659 SWIG_fail;
19660 if (arg2 == NULL) {
19661 PyErr_SetString(PyExc_TypeError,"null reference");
19662 SWIG_fail;
19663 }
19664 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDateTime,
19665 SWIG_POINTER_EXCEPTION | 0)) == -1)
19666 SWIG_fail;
19667 if (arg3 == NULL) {
19668 PyErr_SetString(PyExc_TypeError,"null reference");
19669 SWIG_fail;
19670 }
19671 {
19672 PyThreadState* __tstate = wxPyBeginAllowThreads();
19673 result = (bool)((wxDateTime const *)arg1)->IsStrictlyBetween((wxDateTime const &)*arg2,(wxDateTime const &)*arg3);
19674
19675 wxPyEndAllowThreads(__tstate);
19676 if (PyErr_Occurred()) SWIG_fail;
19677 }
19678 {
19679 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19680 }
19681 return resultobj;
19682 fail:
19683 return NULL;
19684 }
19685
19686
19687 static PyObject *_wrap_DateTime_IsBetween(PyObject *self, PyObject *args, PyObject *kwargs) {
19688 PyObject *resultobj;
19689 wxDateTime *arg1 = (wxDateTime *) 0 ;
19690 wxDateTime *arg2 = 0 ;
19691 wxDateTime *arg3 = 0 ;
19692 bool result;
19693 PyObject * obj0 = 0 ;
19694 PyObject * obj1 = 0 ;
19695 PyObject * obj2 = 0 ;
19696 char *kwnames[] = {
19697 (char *) "self",(char *) "t1",(char *) "t2", NULL
19698 };
19699
19700 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsBetween",kwnames,&obj0,&obj1,&obj2)) goto fail;
19701 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19702 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19703 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19704 SWIG_POINTER_EXCEPTION | 0)) == -1)
19705 SWIG_fail;
19706 if (arg2 == NULL) {
19707 PyErr_SetString(PyExc_TypeError,"null reference");
19708 SWIG_fail;
19709 }
19710 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDateTime,
19711 SWIG_POINTER_EXCEPTION | 0)) == -1)
19712 SWIG_fail;
19713 if (arg3 == NULL) {
19714 PyErr_SetString(PyExc_TypeError,"null reference");
19715 SWIG_fail;
19716 }
19717 {
19718 PyThreadState* __tstate = wxPyBeginAllowThreads();
19719 result = (bool)((wxDateTime const *)arg1)->IsBetween((wxDateTime const &)*arg2,(wxDateTime const &)*arg3);
19720
19721 wxPyEndAllowThreads(__tstate);
19722 if (PyErr_Occurred()) SWIG_fail;
19723 }
19724 {
19725 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19726 }
19727 return resultobj;
19728 fail:
19729 return NULL;
19730 }
19731
19732
19733 static PyObject *_wrap_DateTime_IsSameDate(PyObject *self, PyObject *args, PyObject *kwargs) {
19734 PyObject *resultobj;
19735 wxDateTime *arg1 = (wxDateTime *) 0 ;
19736 wxDateTime *arg2 = 0 ;
19737 bool result;
19738 PyObject * obj0 = 0 ;
19739 PyObject * obj1 = 0 ;
19740 char *kwnames[] = {
19741 (char *) "self",(char *) "dt", NULL
19742 };
19743
19744 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsSameDate",kwnames,&obj0,&obj1)) goto fail;
19745 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19746 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19747 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19748 SWIG_POINTER_EXCEPTION | 0)) == -1)
19749 SWIG_fail;
19750 if (arg2 == NULL) {
19751 PyErr_SetString(PyExc_TypeError,"null reference");
19752 SWIG_fail;
19753 }
19754 {
19755 PyThreadState* __tstate = wxPyBeginAllowThreads();
19756 result = (bool)((wxDateTime const *)arg1)->IsSameDate((wxDateTime const &)*arg2);
19757
19758 wxPyEndAllowThreads(__tstate);
19759 if (PyErr_Occurred()) SWIG_fail;
19760 }
19761 {
19762 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19763 }
19764 return resultobj;
19765 fail:
19766 return NULL;
19767 }
19768
19769
19770 static PyObject *_wrap_DateTime_IsSameTime(PyObject *self, PyObject *args, PyObject *kwargs) {
19771 PyObject *resultobj;
19772 wxDateTime *arg1 = (wxDateTime *) 0 ;
19773 wxDateTime *arg2 = 0 ;
19774 bool result;
19775 PyObject * obj0 = 0 ;
19776 PyObject * obj1 = 0 ;
19777 char *kwnames[] = {
19778 (char *) "self",(char *) "dt", NULL
19779 };
19780
19781 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_IsSameTime",kwnames,&obj0,&obj1)) goto fail;
19782 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19783 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19784 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19785 SWIG_POINTER_EXCEPTION | 0)) == -1)
19786 SWIG_fail;
19787 if (arg2 == NULL) {
19788 PyErr_SetString(PyExc_TypeError,"null reference");
19789 SWIG_fail;
19790 }
19791 {
19792 PyThreadState* __tstate = wxPyBeginAllowThreads();
19793 result = (bool)((wxDateTime const *)arg1)->IsSameTime((wxDateTime const &)*arg2);
19794
19795 wxPyEndAllowThreads(__tstate);
19796 if (PyErr_Occurred()) SWIG_fail;
19797 }
19798 {
19799 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19800 }
19801 return resultobj;
19802 fail:
19803 return NULL;
19804 }
19805
19806
19807 static PyObject *_wrap_DateTime_IsEqualUpTo(PyObject *self, PyObject *args, PyObject *kwargs) {
19808 PyObject *resultobj;
19809 wxDateTime *arg1 = (wxDateTime *) 0 ;
19810 wxDateTime *arg2 = 0 ;
19811 wxTimeSpan *arg3 = 0 ;
19812 bool result;
19813 PyObject * obj0 = 0 ;
19814 PyObject * obj1 = 0 ;
19815 PyObject * obj2 = 0 ;
19816 char *kwnames[] = {
19817 (char *) "self",(char *) "dt",(char *) "ts", NULL
19818 };
19819
19820 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DateTime_IsEqualUpTo",kwnames,&obj0,&obj1,&obj2)) goto fail;
19821 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19822 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19823 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
19824 SWIG_POINTER_EXCEPTION | 0)) == -1)
19825 SWIG_fail;
19826 if (arg2 == NULL) {
19827 PyErr_SetString(PyExc_TypeError,"null reference");
19828 SWIG_fail;
19829 }
19830 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxTimeSpan,
19831 SWIG_POINTER_EXCEPTION | 0)) == -1)
19832 SWIG_fail;
19833 if (arg3 == NULL) {
19834 PyErr_SetString(PyExc_TypeError,"null reference");
19835 SWIG_fail;
19836 }
19837 {
19838 PyThreadState* __tstate = wxPyBeginAllowThreads();
19839 result = (bool)((wxDateTime const *)arg1)->IsEqualUpTo((wxDateTime const &)*arg2,(wxTimeSpan const &)*arg3);
19840
19841 wxPyEndAllowThreads(__tstate);
19842 if (PyErr_Occurred()) SWIG_fail;
19843 }
19844 {
19845 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19846 }
19847 return resultobj;
19848 fail:
19849 return NULL;
19850 }
19851
19852
19853 static PyObject *_wrap_DateTime_AddTS(PyObject *self, PyObject *args, PyObject *kwargs) {
19854 PyObject *resultobj;
19855 wxDateTime *arg1 = (wxDateTime *) 0 ;
19856 wxTimeSpan *arg2 = 0 ;
19857 wxDateTime *result;
19858 PyObject * obj0 = 0 ;
19859 PyObject * obj1 = 0 ;
19860 char *kwnames[] = {
19861 (char *) "self",(char *) "diff", NULL
19862 };
19863
19864 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_AddTS",kwnames,&obj0,&obj1)) goto fail;
19865 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19866 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19867 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
19868 SWIG_POINTER_EXCEPTION | 0)) == -1)
19869 SWIG_fail;
19870 if (arg2 == NULL) {
19871 PyErr_SetString(PyExc_TypeError,"null reference");
19872 SWIG_fail;
19873 }
19874 {
19875 PyThreadState* __tstate = wxPyBeginAllowThreads();
19876 {
19877 wxDateTime &_result_ref = (arg1)->Add((wxTimeSpan const &)*arg2);
19878 result = (wxDateTime *) &_result_ref;
19879 }
19880
19881 wxPyEndAllowThreads(__tstate);
19882 if (PyErr_Occurred()) SWIG_fail;
19883 }
19884 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
19885 return resultobj;
19886 fail:
19887 return NULL;
19888 }
19889
19890
19891 static PyObject *_wrap_DateTime_AddDS(PyObject *self, PyObject *args, PyObject *kwargs) {
19892 PyObject *resultobj;
19893 wxDateTime *arg1 = (wxDateTime *) 0 ;
19894 wxDateSpan *arg2 = 0 ;
19895 wxDateTime *result;
19896 PyObject * obj0 = 0 ;
19897 PyObject * obj1 = 0 ;
19898 char *kwnames[] = {
19899 (char *) "self",(char *) "diff", NULL
19900 };
19901
19902 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_AddDS",kwnames,&obj0,&obj1)) goto fail;
19903 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19904 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19905 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
19906 SWIG_POINTER_EXCEPTION | 0)) == -1)
19907 SWIG_fail;
19908 if (arg2 == NULL) {
19909 PyErr_SetString(PyExc_TypeError,"null reference");
19910 SWIG_fail;
19911 }
19912 {
19913 PyThreadState* __tstate = wxPyBeginAllowThreads();
19914 {
19915 wxDateTime &_result_ref = (arg1)->Add((wxDateSpan const &)*arg2);
19916 result = (wxDateTime *) &_result_ref;
19917 }
19918
19919 wxPyEndAllowThreads(__tstate);
19920 if (PyErr_Occurred()) SWIG_fail;
19921 }
19922 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
19923 return resultobj;
19924 fail:
19925 return NULL;
19926 }
19927
19928
19929 static PyObject *_wrap_DateTime_SubtractTS(PyObject *self, PyObject *args, PyObject *kwargs) {
19930 PyObject *resultobj;
19931 wxDateTime *arg1 = (wxDateTime *) 0 ;
19932 wxTimeSpan *arg2 = 0 ;
19933 wxDateTime *result;
19934 PyObject * obj0 = 0 ;
19935 PyObject * obj1 = 0 ;
19936 char *kwnames[] = {
19937 (char *) "self",(char *) "diff", NULL
19938 };
19939
19940 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SubtractTS",kwnames,&obj0,&obj1)) goto fail;
19941 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19942 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19943 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
19944 SWIG_POINTER_EXCEPTION | 0)) == -1)
19945 SWIG_fail;
19946 if (arg2 == NULL) {
19947 PyErr_SetString(PyExc_TypeError,"null reference");
19948 SWIG_fail;
19949 }
19950 {
19951 PyThreadState* __tstate = wxPyBeginAllowThreads();
19952 {
19953 wxDateTime &_result_ref = (arg1)->Subtract((wxTimeSpan const &)*arg2);
19954 result = (wxDateTime *) &_result_ref;
19955 }
19956
19957 wxPyEndAllowThreads(__tstate);
19958 if (PyErr_Occurred()) SWIG_fail;
19959 }
19960 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
19961 return resultobj;
19962 fail:
19963 return NULL;
19964 }
19965
19966
19967 static PyObject *_wrap_DateTime_SubtractDS(PyObject *self, PyObject *args, PyObject *kwargs) {
19968 PyObject *resultobj;
19969 wxDateTime *arg1 = (wxDateTime *) 0 ;
19970 wxDateSpan *arg2 = 0 ;
19971 wxDateTime *result;
19972 PyObject * obj0 = 0 ;
19973 PyObject * obj1 = 0 ;
19974 char *kwnames[] = {
19975 (char *) "self",(char *) "diff", NULL
19976 };
19977
19978 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_SubtractDS",kwnames,&obj0,&obj1)) goto fail;
19979 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
19980 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19981 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
19982 SWIG_POINTER_EXCEPTION | 0)) == -1)
19983 SWIG_fail;
19984 if (arg2 == NULL) {
19985 PyErr_SetString(PyExc_TypeError,"null reference");
19986 SWIG_fail;
19987 }
19988 {
19989 PyThreadState* __tstate = wxPyBeginAllowThreads();
19990 {
19991 wxDateTime &_result_ref = (arg1)->Subtract((wxDateSpan const &)*arg2);
19992 result = (wxDateTime *) &_result_ref;
19993 }
19994
19995 wxPyEndAllowThreads(__tstate);
19996 if (PyErr_Occurred()) SWIG_fail;
19997 }
19998 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
19999 return resultobj;
20000 fail:
20001 return NULL;
20002 }
20003
20004
20005 static PyObject *_wrap_DateTime_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) {
20006 PyObject *resultobj;
20007 wxDateTime *arg1 = (wxDateTime *) 0 ;
20008 wxDateTime *arg2 = 0 ;
20009 wxTimeSpan result;
20010 PyObject * obj0 = 0 ;
20011 PyObject * obj1 = 0 ;
20012 char *kwnames[] = {
20013 (char *) "self",(char *) "dt", NULL
20014 };
20015
20016 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_Subtract",kwnames,&obj0,&obj1)) goto fail;
20017 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20018 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20019 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20020 SWIG_POINTER_EXCEPTION | 0)) == -1)
20021 SWIG_fail;
20022 if (arg2 == NULL) {
20023 PyErr_SetString(PyExc_TypeError,"null reference");
20024 SWIG_fail;
20025 }
20026 {
20027 PyThreadState* __tstate = wxPyBeginAllowThreads();
20028 result = ((wxDateTime const *)arg1)->Subtract((wxDateTime const &)*arg2);
20029
20030 wxPyEndAllowThreads(__tstate);
20031 if (PyErr_Occurred()) SWIG_fail;
20032 }
20033 {
20034 wxTimeSpan * resultptr;
20035 resultptr = new wxTimeSpan((wxTimeSpan &) result);
20036 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
20037 }
20038 return resultobj;
20039 fail:
20040 return NULL;
20041 }
20042
20043
20044 static PyObject *_wrap_DateTime___iadd____SWIG_0(PyObject *self, PyObject *args) {
20045 PyObject *resultobj;
20046 wxDateTime *arg1 = (wxDateTime *) 0 ;
20047 wxTimeSpan *arg2 = 0 ;
20048 wxDateTime *result;
20049 PyObject * obj0 = 0 ;
20050 PyObject * obj1 = 0 ;
20051
20052 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___iadd__",&obj0,&obj1)) goto fail;
20053 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20054 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20055 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
20056 SWIG_POINTER_EXCEPTION | 0)) == -1)
20057 SWIG_fail;
20058 if (arg2 == NULL) {
20059 PyErr_SetString(PyExc_TypeError,"null reference");
20060 SWIG_fail;
20061 }
20062 {
20063 PyThreadState* __tstate = wxPyBeginAllowThreads();
20064 {
20065 wxDateTime &_result_ref = (arg1)->operator +=((wxTimeSpan const &)*arg2);
20066 result = (wxDateTime *) &_result_ref;
20067 }
20068
20069 wxPyEndAllowThreads(__tstate);
20070 if (PyErr_Occurred()) SWIG_fail;
20071 }
20072 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
20073 return resultobj;
20074 fail:
20075 return NULL;
20076 }
20077
20078
20079 static PyObject *_wrap_DateTime___iadd____SWIG_1(PyObject *self, PyObject *args) {
20080 PyObject *resultobj;
20081 wxDateTime *arg1 = (wxDateTime *) 0 ;
20082 wxDateSpan *arg2 = 0 ;
20083 wxDateTime *result;
20084 PyObject * obj0 = 0 ;
20085 PyObject * obj1 = 0 ;
20086
20087 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___iadd__",&obj0,&obj1)) goto fail;
20088 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20089 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20090 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
20091 SWIG_POINTER_EXCEPTION | 0)) == -1)
20092 SWIG_fail;
20093 if (arg2 == NULL) {
20094 PyErr_SetString(PyExc_TypeError,"null reference");
20095 SWIG_fail;
20096 }
20097 {
20098 PyThreadState* __tstate = wxPyBeginAllowThreads();
20099 {
20100 wxDateTime &_result_ref = (arg1)->operator +=((wxDateSpan const &)*arg2);
20101 result = (wxDateTime *) &_result_ref;
20102 }
20103
20104 wxPyEndAllowThreads(__tstate);
20105 if (PyErr_Occurred()) SWIG_fail;
20106 }
20107 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
20108 return resultobj;
20109 fail:
20110 return NULL;
20111 }
20112
20113
20114 static PyObject *_wrap_DateTime___iadd__(PyObject *self, PyObject *args) {
20115 int argc;
20116 PyObject *argv[3];
20117 int ii;
20118
20119 argc = PyObject_Length(args);
20120 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
20121 argv[ii] = PyTuple_GetItem(args,ii);
20122 }
20123 if (argc == 2) {
20124 int _v;
20125 {
20126 void *ptr;
20127 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20128 _v = 0;
20129 PyErr_Clear();
20130 } else {
20131 _v = 1;
20132 }
20133 }
20134 if (_v) {
20135 {
20136 void *ptr;
20137 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) {
20138 _v = 0;
20139 PyErr_Clear();
20140 } else {
20141 _v = 1;
20142 }
20143 }
20144 if (_v) {
20145 return _wrap_DateTime___iadd____SWIG_0(self,args);
20146 }
20147 }
20148 }
20149 if (argc == 2) {
20150 int _v;
20151 {
20152 void *ptr;
20153 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20154 _v = 0;
20155 PyErr_Clear();
20156 } else {
20157 _v = 1;
20158 }
20159 }
20160 if (_v) {
20161 {
20162 void *ptr;
20163 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) {
20164 _v = 0;
20165 PyErr_Clear();
20166 } else {
20167 _v = 1;
20168 }
20169 }
20170 if (_v) {
20171 return _wrap_DateTime___iadd____SWIG_1(self,args);
20172 }
20173 }
20174 }
20175
20176 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___iadd__'");
20177 return NULL;
20178 }
20179
20180
20181 static PyObject *_wrap_DateTime___isub____SWIG_0(PyObject *self, PyObject *args) {
20182 PyObject *resultobj;
20183 wxDateTime *arg1 = (wxDateTime *) 0 ;
20184 wxTimeSpan *arg2 = 0 ;
20185 wxDateTime *result;
20186 PyObject * obj0 = 0 ;
20187 PyObject * obj1 = 0 ;
20188
20189 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___isub__",&obj0,&obj1)) goto fail;
20190 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20191 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20192 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
20193 SWIG_POINTER_EXCEPTION | 0)) == -1)
20194 SWIG_fail;
20195 if (arg2 == NULL) {
20196 PyErr_SetString(PyExc_TypeError,"null reference");
20197 SWIG_fail;
20198 }
20199 {
20200 PyThreadState* __tstate = wxPyBeginAllowThreads();
20201 {
20202 wxDateTime &_result_ref = (arg1)->operator -=((wxTimeSpan const &)*arg2);
20203 result = (wxDateTime *) &_result_ref;
20204 }
20205
20206 wxPyEndAllowThreads(__tstate);
20207 if (PyErr_Occurred()) SWIG_fail;
20208 }
20209 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
20210 return resultobj;
20211 fail:
20212 return NULL;
20213 }
20214
20215
20216 static PyObject *_wrap_DateTime___isub____SWIG_1(PyObject *self, PyObject *args) {
20217 PyObject *resultobj;
20218 wxDateTime *arg1 = (wxDateTime *) 0 ;
20219 wxDateSpan *arg2 = 0 ;
20220 wxDateTime *result;
20221 PyObject * obj0 = 0 ;
20222 PyObject * obj1 = 0 ;
20223
20224 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___isub__",&obj0,&obj1)) goto fail;
20225 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20226 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20227 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
20228 SWIG_POINTER_EXCEPTION | 0)) == -1)
20229 SWIG_fail;
20230 if (arg2 == NULL) {
20231 PyErr_SetString(PyExc_TypeError,"null reference");
20232 SWIG_fail;
20233 }
20234 {
20235 PyThreadState* __tstate = wxPyBeginAllowThreads();
20236 {
20237 wxDateTime &_result_ref = (arg1)->operator -=((wxDateSpan const &)*arg2);
20238 result = (wxDateTime *) &_result_ref;
20239 }
20240
20241 wxPyEndAllowThreads(__tstate);
20242 if (PyErr_Occurred()) SWIG_fail;
20243 }
20244 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateTime, 0);
20245 return resultobj;
20246 fail:
20247 return NULL;
20248 }
20249
20250
20251 static PyObject *_wrap_DateTime___isub__(PyObject *self, PyObject *args) {
20252 int argc;
20253 PyObject *argv[3];
20254 int ii;
20255
20256 argc = PyObject_Length(args);
20257 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
20258 argv[ii] = PyTuple_GetItem(args,ii);
20259 }
20260 if (argc == 2) {
20261 int _v;
20262 {
20263 void *ptr;
20264 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20265 _v = 0;
20266 PyErr_Clear();
20267 } else {
20268 _v = 1;
20269 }
20270 }
20271 if (_v) {
20272 {
20273 void *ptr;
20274 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) {
20275 _v = 0;
20276 PyErr_Clear();
20277 } else {
20278 _v = 1;
20279 }
20280 }
20281 if (_v) {
20282 return _wrap_DateTime___isub____SWIG_0(self,args);
20283 }
20284 }
20285 }
20286 if (argc == 2) {
20287 int _v;
20288 {
20289 void *ptr;
20290 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20291 _v = 0;
20292 PyErr_Clear();
20293 } else {
20294 _v = 1;
20295 }
20296 }
20297 if (_v) {
20298 {
20299 void *ptr;
20300 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) {
20301 _v = 0;
20302 PyErr_Clear();
20303 } else {
20304 _v = 1;
20305 }
20306 }
20307 if (_v) {
20308 return _wrap_DateTime___isub____SWIG_1(self,args);
20309 }
20310 }
20311 }
20312
20313 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___isub__'");
20314 return NULL;
20315 }
20316
20317
20318 static PyObject *_wrap_DateTime___add____SWIG_0(PyObject *self, PyObject *args) {
20319 PyObject *resultobj;
20320 wxDateTime *arg1 = (wxDateTime *) 0 ;
20321 wxTimeSpan *arg2 = 0 ;
20322 wxDateTime result;
20323 PyObject * obj0 = 0 ;
20324 PyObject * obj1 = 0 ;
20325
20326 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___add__",&obj0,&obj1)) goto fail;
20327 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20328 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20329 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
20330 SWIG_POINTER_EXCEPTION | 0)) == -1)
20331 SWIG_fail;
20332 if (arg2 == NULL) {
20333 PyErr_SetString(PyExc_TypeError,"null reference");
20334 SWIG_fail;
20335 }
20336 {
20337 PyThreadState* __tstate = wxPyBeginAllowThreads();
20338 result = wxDateTime___add____SWIG_0(arg1,(wxTimeSpan const &)*arg2);
20339
20340 wxPyEndAllowThreads(__tstate);
20341 if (PyErr_Occurred()) SWIG_fail;
20342 }
20343 {
20344 wxDateTime * resultptr;
20345 resultptr = new wxDateTime((wxDateTime &) result);
20346 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
20347 }
20348 return resultobj;
20349 fail:
20350 return NULL;
20351 }
20352
20353
20354 static PyObject *_wrap_DateTime___add____SWIG_1(PyObject *self, PyObject *args) {
20355 PyObject *resultobj;
20356 wxDateTime *arg1 = (wxDateTime *) 0 ;
20357 wxDateSpan *arg2 = 0 ;
20358 wxDateTime result;
20359 PyObject * obj0 = 0 ;
20360 PyObject * obj1 = 0 ;
20361
20362 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___add__",&obj0,&obj1)) goto fail;
20363 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20364 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20365 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
20366 SWIG_POINTER_EXCEPTION | 0)) == -1)
20367 SWIG_fail;
20368 if (arg2 == NULL) {
20369 PyErr_SetString(PyExc_TypeError,"null reference");
20370 SWIG_fail;
20371 }
20372 {
20373 PyThreadState* __tstate = wxPyBeginAllowThreads();
20374 result = wxDateTime___add____SWIG_1(arg1,(wxDateSpan const &)*arg2);
20375
20376 wxPyEndAllowThreads(__tstate);
20377 if (PyErr_Occurred()) SWIG_fail;
20378 }
20379 {
20380 wxDateTime * resultptr;
20381 resultptr = new wxDateTime((wxDateTime &) result);
20382 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
20383 }
20384 return resultobj;
20385 fail:
20386 return NULL;
20387 }
20388
20389
20390 static PyObject *_wrap_DateTime___add__(PyObject *self, PyObject *args) {
20391 int argc;
20392 PyObject *argv[3];
20393 int ii;
20394
20395 argc = PyObject_Length(args);
20396 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
20397 argv[ii] = PyTuple_GetItem(args,ii);
20398 }
20399 if (argc == 2) {
20400 int _v;
20401 {
20402 void *ptr;
20403 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20404 _v = 0;
20405 PyErr_Clear();
20406 } else {
20407 _v = 1;
20408 }
20409 }
20410 if (_v) {
20411 {
20412 void *ptr;
20413 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) {
20414 _v = 0;
20415 PyErr_Clear();
20416 } else {
20417 _v = 1;
20418 }
20419 }
20420 if (_v) {
20421 return _wrap_DateTime___add____SWIG_0(self,args);
20422 }
20423 }
20424 }
20425 if (argc == 2) {
20426 int _v;
20427 {
20428 void *ptr;
20429 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20430 _v = 0;
20431 PyErr_Clear();
20432 } else {
20433 _v = 1;
20434 }
20435 }
20436 if (_v) {
20437 {
20438 void *ptr;
20439 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) {
20440 _v = 0;
20441 PyErr_Clear();
20442 } else {
20443 _v = 1;
20444 }
20445 }
20446 if (_v) {
20447 return _wrap_DateTime___add____SWIG_1(self,args);
20448 }
20449 }
20450 }
20451
20452 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___add__'");
20453 return NULL;
20454 }
20455
20456
20457 static PyObject *_wrap_DateTime___sub____SWIG_0(PyObject *self, PyObject *args) {
20458 PyObject *resultobj;
20459 wxDateTime *arg1 = (wxDateTime *) 0 ;
20460 wxDateTime *arg2 = 0 ;
20461 wxTimeSpan result;
20462 PyObject * obj0 = 0 ;
20463 PyObject * obj1 = 0 ;
20464
20465 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail;
20466 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20467 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20468 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20469 SWIG_POINTER_EXCEPTION | 0)) == -1)
20470 SWIG_fail;
20471 if (arg2 == NULL) {
20472 PyErr_SetString(PyExc_TypeError,"null reference");
20473 SWIG_fail;
20474 }
20475 {
20476 PyThreadState* __tstate = wxPyBeginAllowThreads();
20477 result = wxDateTime___sub____SWIG_0(arg1,(wxDateTime const &)*arg2);
20478
20479 wxPyEndAllowThreads(__tstate);
20480 if (PyErr_Occurred()) SWIG_fail;
20481 }
20482 {
20483 wxTimeSpan * resultptr;
20484 resultptr = new wxTimeSpan((wxTimeSpan &) result);
20485 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
20486 }
20487 return resultobj;
20488 fail:
20489 return NULL;
20490 }
20491
20492
20493 static PyObject *_wrap_DateTime___sub____SWIG_1(PyObject *self, PyObject *args) {
20494 PyObject *resultobj;
20495 wxDateTime *arg1 = (wxDateTime *) 0 ;
20496 wxTimeSpan *arg2 = 0 ;
20497 wxDateTime result;
20498 PyObject * obj0 = 0 ;
20499 PyObject * obj1 = 0 ;
20500
20501 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail;
20502 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20503 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20504 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
20505 SWIG_POINTER_EXCEPTION | 0)) == -1)
20506 SWIG_fail;
20507 if (arg2 == NULL) {
20508 PyErr_SetString(PyExc_TypeError,"null reference");
20509 SWIG_fail;
20510 }
20511 {
20512 PyThreadState* __tstate = wxPyBeginAllowThreads();
20513 result = wxDateTime___sub____SWIG_1(arg1,(wxTimeSpan const &)*arg2);
20514
20515 wxPyEndAllowThreads(__tstate);
20516 if (PyErr_Occurred()) SWIG_fail;
20517 }
20518 {
20519 wxDateTime * resultptr;
20520 resultptr = new wxDateTime((wxDateTime &) result);
20521 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
20522 }
20523 return resultobj;
20524 fail:
20525 return NULL;
20526 }
20527
20528
20529 static PyObject *_wrap_DateTime___sub____SWIG_2(PyObject *self, PyObject *args) {
20530 PyObject *resultobj;
20531 wxDateTime *arg1 = (wxDateTime *) 0 ;
20532 wxDateSpan *arg2 = 0 ;
20533 wxDateTime result;
20534 PyObject * obj0 = 0 ;
20535 PyObject * obj1 = 0 ;
20536
20537 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___sub__",&obj0,&obj1)) goto fail;
20538 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20539 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20540 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
20541 SWIG_POINTER_EXCEPTION | 0)) == -1)
20542 SWIG_fail;
20543 if (arg2 == NULL) {
20544 PyErr_SetString(PyExc_TypeError,"null reference");
20545 SWIG_fail;
20546 }
20547 {
20548 PyThreadState* __tstate = wxPyBeginAllowThreads();
20549 result = wxDateTime___sub____SWIG_2(arg1,(wxDateSpan const &)*arg2);
20550
20551 wxPyEndAllowThreads(__tstate);
20552 if (PyErr_Occurred()) SWIG_fail;
20553 }
20554 {
20555 wxDateTime * resultptr;
20556 resultptr = new wxDateTime((wxDateTime &) result);
20557 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateTime, 1);
20558 }
20559 return resultobj;
20560 fail:
20561 return NULL;
20562 }
20563
20564
20565 static PyObject *_wrap_DateTime___sub__(PyObject *self, PyObject *args) {
20566 int argc;
20567 PyObject *argv[3];
20568 int ii;
20569
20570 argc = PyObject_Length(args);
20571 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
20572 argv[ii] = PyTuple_GetItem(args,ii);
20573 }
20574 if (argc == 2) {
20575 int _v;
20576 {
20577 void *ptr;
20578 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20579 _v = 0;
20580 PyErr_Clear();
20581 } else {
20582 _v = 1;
20583 }
20584 }
20585 if (_v) {
20586 {
20587 void *ptr;
20588 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20589 _v = 0;
20590 PyErr_Clear();
20591 } else {
20592 _v = 1;
20593 }
20594 }
20595 if (_v) {
20596 return _wrap_DateTime___sub____SWIG_0(self,args);
20597 }
20598 }
20599 }
20600 if (argc == 2) {
20601 int _v;
20602 {
20603 void *ptr;
20604 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20605 _v = 0;
20606 PyErr_Clear();
20607 } else {
20608 _v = 1;
20609 }
20610 }
20611 if (_v) {
20612 {
20613 void *ptr;
20614 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxTimeSpan, 0) == -1) {
20615 _v = 0;
20616 PyErr_Clear();
20617 } else {
20618 _v = 1;
20619 }
20620 }
20621 if (_v) {
20622 return _wrap_DateTime___sub____SWIG_1(self,args);
20623 }
20624 }
20625 }
20626 if (argc == 2) {
20627 int _v;
20628 {
20629 void *ptr;
20630 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDateTime, 0) == -1) {
20631 _v = 0;
20632 PyErr_Clear();
20633 } else {
20634 _v = 1;
20635 }
20636 }
20637 if (_v) {
20638 {
20639 void *ptr;
20640 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDateSpan, 0) == -1) {
20641 _v = 0;
20642 PyErr_Clear();
20643 } else {
20644 _v = 1;
20645 }
20646 }
20647 if (_v) {
20648 return _wrap_DateTime___sub____SWIG_2(self,args);
20649 }
20650 }
20651 }
20652
20653 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DateTime___sub__'");
20654 return NULL;
20655 }
20656
20657
20658 static PyObject *_wrap_DateTime___lt__(PyObject *self, PyObject *args) {
20659 PyObject *resultobj;
20660 wxDateTime *arg1 = (wxDateTime *) 0 ;
20661 wxDateTime *arg2 = (wxDateTime *) 0 ;
20662 bool result;
20663 PyObject * obj0 = 0 ;
20664 PyObject * obj1 = 0 ;
20665
20666 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___lt__",&obj0,&obj1)) goto fail;
20667 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20668 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20669 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20670 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20671 {
20672 PyThreadState* __tstate = wxPyBeginAllowThreads();
20673 result = (bool)wxDateTime___lt__(arg1,(wxDateTime const *)arg2);
20674
20675 wxPyEndAllowThreads(__tstate);
20676 if (PyErr_Occurred()) SWIG_fail;
20677 }
20678 {
20679 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20680 }
20681 return resultobj;
20682 fail:
20683 return NULL;
20684 }
20685
20686
20687 static PyObject *_wrap_DateTime___le__(PyObject *self, PyObject *args) {
20688 PyObject *resultobj;
20689 wxDateTime *arg1 = (wxDateTime *) 0 ;
20690 wxDateTime *arg2 = (wxDateTime *) 0 ;
20691 bool result;
20692 PyObject * obj0 = 0 ;
20693 PyObject * obj1 = 0 ;
20694
20695 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___le__",&obj0,&obj1)) goto fail;
20696 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20697 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20698 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20699 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20700 {
20701 PyThreadState* __tstate = wxPyBeginAllowThreads();
20702 result = (bool)wxDateTime___le__(arg1,(wxDateTime const *)arg2);
20703
20704 wxPyEndAllowThreads(__tstate);
20705 if (PyErr_Occurred()) SWIG_fail;
20706 }
20707 {
20708 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20709 }
20710 return resultobj;
20711 fail:
20712 return NULL;
20713 }
20714
20715
20716 static PyObject *_wrap_DateTime___gt__(PyObject *self, PyObject *args) {
20717 PyObject *resultobj;
20718 wxDateTime *arg1 = (wxDateTime *) 0 ;
20719 wxDateTime *arg2 = (wxDateTime *) 0 ;
20720 bool result;
20721 PyObject * obj0 = 0 ;
20722 PyObject * obj1 = 0 ;
20723
20724 if(!PyArg_ParseTuple(args,(char *)"OO:DateTime___gt__",&obj0,&obj1)) goto fail;
20725 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20726 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20727 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateTime,
20728 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20729 {
20730 PyThreadState* __tstate = wxPyBeginAllowThreads();
20731 result = (bool)wxDateTime___gt__(arg1,(wxDateTime const *)arg2);
20732
20733 wxPyEndAllowThreads(__tstate);
20734 if (PyErr_Occurred()) SWIG_fail;
20735 }
20736 {
20737 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20738 }
20739 return resultobj;
20740 fail:
20741 return NULL;
20742 }
20743
20744
20745 static PyObject *_wrap_DateTime___ge__(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___ge__",&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___ge__(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___eq__(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___eq__",&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___eq__(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___ne__(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___ne__",&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___ne__(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_ParseRfc822Date(PyObject *self, PyObject *args, PyObject *kwargs) {
20833 PyObject *resultobj;
20834 wxDateTime *arg1 = (wxDateTime *) 0 ;
20835 wxString *arg2 = 0 ;
20836 int result;
20837 bool temp2 = False ;
20838 PyObject * obj0 = 0 ;
20839 PyObject * obj1 = 0 ;
20840 char *kwnames[] = {
20841 (char *) "self",(char *) "date", NULL
20842 };
20843
20844 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseRfc822Date",kwnames,&obj0,&obj1)) goto fail;
20845 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20846 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20847 {
20848 arg2 = wxString_in_helper(obj1);
20849 if (arg2 == NULL) SWIG_fail;
20850 temp2 = True;
20851 }
20852 {
20853 PyThreadState* __tstate = wxPyBeginAllowThreads();
20854 result = (int)wxDateTime_ParseRfc822Date(arg1,(wxString const &)*arg2);
20855
20856 wxPyEndAllowThreads(__tstate);
20857 if (PyErr_Occurred()) SWIG_fail;
20858 }
20859 resultobj = SWIG_FromInt((int)result);
20860 {
20861 if (temp2)
20862 delete arg2;
20863 }
20864 return resultobj;
20865 fail:
20866 {
20867 if (temp2)
20868 delete arg2;
20869 }
20870 return NULL;
20871 }
20872
20873
20874 static PyObject *_wrap_DateTime_ParseFormat(PyObject *self, PyObject *args, PyObject *kwargs) {
20875 PyObject *resultobj;
20876 wxDateTime *arg1 = (wxDateTime *) 0 ;
20877 wxString *arg2 = 0 ;
20878 wxString const &arg3_defvalue = wxPyDateFormatStr ;
20879 wxString *arg3 = (wxString *) &arg3_defvalue ;
20880 wxDateTime const &arg4_defvalue = wxDefaultDateTime ;
20881 wxDateTime *arg4 = (wxDateTime *) &arg4_defvalue ;
20882 int result;
20883 bool temp2 = False ;
20884 bool temp3 = False ;
20885 PyObject * obj0 = 0 ;
20886 PyObject * obj1 = 0 ;
20887 PyObject * obj2 = 0 ;
20888 PyObject * obj3 = 0 ;
20889 char *kwnames[] = {
20890 (char *) "self",(char *) "date",(char *) "format",(char *) "dateDef", NULL
20891 };
20892
20893 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DateTime_ParseFormat",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
20894 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20895 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20896 {
20897 arg2 = wxString_in_helper(obj1);
20898 if (arg2 == NULL) SWIG_fail;
20899 temp2 = True;
20900 }
20901 if (obj2) {
20902 {
20903 arg3 = wxString_in_helper(obj2);
20904 if (arg3 == NULL) SWIG_fail;
20905 temp3 = True;
20906 }
20907 }
20908 if (obj3) {
20909 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxDateTime,
20910 SWIG_POINTER_EXCEPTION | 0)) == -1)
20911 SWIG_fail;
20912 if (arg4 == NULL) {
20913 PyErr_SetString(PyExc_TypeError,"null reference");
20914 SWIG_fail;
20915 }
20916 }
20917 {
20918 PyThreadState* __tstate = wxPyBeginAllowThreads();
20919 result = (int)wxDateTime_ParseFormat(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxDateTime const &)*arg4);
20920
20921 wxPyEndAllowThreads(__tstate);
20922 if (PyErr_Occurred()) SWIG_fail;
20923 }
20924 resultobj = SWIG_FromInt((int)result);
20925 {
20926 if (temp2)
20927 delete arg2;
20928 }
20929 {
20930 if (temp3)
20931 delete arg3;
20932 }
20933 return resultobj;
20934 fail:
20935 {
20936 if (temp2)
20937 delete arg2;
20938 }
20939 {
20940 if (temp3)
20941 delete arg3;
20942 }
20943 return NULL;
20944 }
20945
20946
20947 static PyObject *_wrap_DateTime_ParseDateTime(PyObject *self, PyObject *args, PyObject *kwargs) {
20948 PyObject *resultobj;
20949 wxDateTime *arg1 = (wxDateTime *) 0 ;
20950 wxString *arg2 = 0 ;
20951 int result;
20952 bool temp2 = False ;
20953 PyObject * obj0 = 0 ;
20954 PyObject * obj1 = 0 ;
20955 char *kwnames[] = {
20956 (char *) "self",(char *) "datetime", NULL
20957 };
20958
20959 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseDateTime",kwnames,&obj0,&obj1)) goto fail;
20960 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
20961 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20962 {
20963 arg2 = wxString_in_helper(obj1);
20964 if (arg2 == NULL) SWIG_fail;
20965 temp2 = True;
20966 }
20967 {
20968 PyThreadState* __tstate = wxPyBeginAllowThreads();
20969 result = (int)wxDateTime_ParseDateTime(arg1,(wxString const &)*arg2);
20970
20971 wxPyEndAllowThreads(__tstate);
20972 if (PyErr_Occurred()) SWIG_fail;
20973 }
20974 resultobj = SWIG_FromInt((int)result);
20975 {
20976 if (temp2)
20977 delete arg2;
20978 }
20979 return resultobj;
20980 fail:
20981 {
20982 if (temp2)
20983 delete arg2;
20984 }
20985 return NULL;
20986 }
20987
20988
20989 static PyObject *_wrap_DateTime_ParseDate(PyObject *self, PyObject *args, PyObject *kwargs) {
20990 PyObject *resultobj;
20991 wxDateTime *arg1 = (wxDateTime *) 0 ;
20992 wxString *arg2 = 0 ;
20993 int result;
20994 bool temp2 = False ;
20995 PyObject * obj0 = 0 ;
20996 PyObject * obj1 = 0 ;
20997 char *kwnames[] = {
20998 (char *) "self",(char *) "date", NULL
20999 };
21000
21001 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseDate",kwnames,&obj0,&obj1)) goto fail;
21002 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21003 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21004 {
21005 arg2 = wxString_in_helper(obj1);
21006 if (arg2 == NULL) SWIG_fail;
21007 temp2 = True;
21008 }
21009 {
21010 PyThreadState* __tstate = wxPyBeginAllowThreads();
21011 result = (int)wxDateTime_ParseDate(arg1,(wxString const &)*arg2);
21012
21013 wxPyEndAllowThreads(__tstate);
21014 if (PyErr_Occurred()) SWIG_fail;
21015 }
21016 resultobj = SWIG_FromInt((int)result);
21017 {
21018 if (temp2)
21019 delete arg2;
21020 }
21021 return resultobj;
21022 fail:
21023 {
21024 if (temp2)
21025 delete arg2;
21026 }
21027 return NULL;
21028 }
21029
21030
21031 static PyObject *_wrap_DateTime_ParseTime(PyObject *self, PyObject *args, PyObject *kwargs) {
21032 PyObject *resultobj;
21033 wxDateTime *arg1 = (wxDateTime *) 0 ;
21034 wxString *arg2 = 0 ;
21035 int result;
21036 bool temp2 = False ;
21037 PyObject * obj0 = 0 ;
21038 PyObject * obj1 = 0 ;
21039 char *kwnames[] = {
21040 (char *) "self",(char *) "time", NULL
21041 };
21042
21043 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateTime_ParseTime",kwnames,&obj0,&obj1)) goto fail;
21044 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21045 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21046 {
21047 arg2 = wxString_in_helper(obj1);
21048 if (arg2 == NULL) SWIG_fail;
21049 temp2 = True;
21050 }
21051 {
21052 PyThreadState* __tstate = wxPyBeginAllowThreads();
21053 result = (int)wxDateTime_ParseTime(arg1,(wxString const &)*arg2);
21054
21055 wxPyEndAllowThreads(__tstate);
21056 if (PyErr_Occurred()) SWIG_fail;
21057 }
21058 resultobj = SWIG_FromInt((int)result);
21059 {
21060 if (temp2)
21061 delete arg2;
21062 }
21063 return resultobj;
21064 fail:
21065 {
21066 if (temp2)
21067 delete arg2;
21068 }
21069 return NULL;
21070 }
21071
21072
21073 static PyObject *_wrap_DateTime_Format(PyObject *self, PyObject *args, PyObject *kwargs) {
21074 PyObject *resultobj;
21075 wxDateTime *arg1 = (wxDateTime *) 0 ;
21076 wxString const &arg2_defvalue = wxPyDateFormatStr ;
21077 wxString *arg2 = (wxString *) &arg2_defvalue ;
21078 wxDateTime::TimeZone const &arg3_defvalue = LOCAL_TZ ;
21079 wxDateTime::TimeZone *arg3 = (wxDateTime::TimeZone *) &arg3_defvalue ;
21080 wxString result;
21081 bool temp2 = False ;
21082 bool temp3 = False ;
21083 PyObject * obj0 = 0 ;
21084 PyObject * obj1 = 0 ;
21085 PyObject * obj2 = 0 ;
21086 char *kwnames[] = {
21087 (char *) "self",(char *) "format",(char *) "tz", NULL
21088 };
21089
21090 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:DateTime_Format",kwnames,&obj0,&obj1,&obj2)) goto fail;
21091 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21092 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21093 if (obj1) {
21094 {
21095 arg2 = wxString_in_helper(obj1);
21096 if (arg2 == NULL) SWIG_fail;
21097 temp2 = True;
21098 }
21099 }
21100 if (obj2) {
21101 {
21102 arg3 = new wxDateTime::TimeZone((wxDateTime::TZ)PyInt_AsLong(obj2));
21103 temp3 = True;
21104 }
21105 }
21106 {
21107 PyThreadState* __tstate = wxPyBeginAllowThreads();
21108 result = ((wxDateTime const *)arg1)->Format((wxString const &)*arg2,(wxDateTime::TimeZone const &)*arg3);
21109
21110 wxPyEndAllowThreads(__tstate);
21111 if (PyErr_Occurred()) SWIG_fail;
21112 }
21113 {
21114 #if wxUSE_UNICODE
21115 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
21116 #else
21117 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
21118 #endif
21119 }
21120 {
21121 if (temp2)
21122 delete arg2;
21123 }
21124 {
21125 if (temp3) delete arg3;
21126 }
21127 return resultobj;
21128 fail:
21129 {
21130 if (temp2)
21131 delete arg2;
21132 }
21133 {
21134 if (temp3) delete arg3;
21135 }
21136 return NULL;
21137 }
21138
21139
21140 static PyObject *_wrap_DateTime_FormatDate(PyObject *self, PyObject *args, PyObject *kwargs) {
21141 PyObject *resultobj;
21142 wxDateTime *arg1 = (wxDateTime *) 0 ;
21143 wxString result;
21144 PyObject * obj0 = 0 ;
21145 char *kwnames[] = {
21146 (char *) "self", NULL
21147 };
21148
21149 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatDate",kwnames,&obj0)) goto fail;
21150 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21151 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21152 {
21153 PyThreadState* __tstate = wxPyBeginAllowThreads();
21154 result = ((wxDateTime const *)arg1)->FormatDate();
21155
21156 wxPyEndAllowThreads(__tstate);
21157 if (PyErr_Occurred()) SWIG_fail;
21158 }
21159 {
21160 #if wxUSE_UNICODE
21161 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
21162 #else
21163 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
21164 #endif
21165 }
21166 return resultobj;
21167 fail:
21168 return NULL;
21169 }
21170
21171
21172 static PyObject *_wrap_DateTime_FormatTime(PyObject *self, PyObject *args, PyObject *kwargs) {
21173 PyObject *resultobj;
21174 wxDateTime *arg1 = (wxDateTime *) 0 ;
21175 wxString result;
21176 PyObject * obj0 = 0 ;
21177 char *kwnames[] = {
21178 (char *) "self", NULL
21179 };
21180
21181 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatTime",kwnames,&obj0)) goto fail;
21182 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21183 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21184 {
21185 PyThreadState* __tstate = wxPyBeginAllowThreads();
21186 result = ((wxDateTime const *)arg1)->FormatTime();
21187
21188 wxPyEndAllowThreads(__tstate);
21189 if (PyErr_Occurred()) SWIG_fail;
21190 }
21191 {
21192 #if wxUSE_UNICODE
21193 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
21194 #else
21195 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
21196 #endif
21197 }
21198 return resultobj;
21199 fail:
21200 return NULL;
21201 }
21202
21203
21204 static PyObject *_wrap_DateTime_FormatISODate(PyObject *self, PyObject *args, PyObject *kwargs) {
21205 PyObject *resultobj;
21206 wxDateTime *arg1 = (wxDateTime *) 0 ;
21207 wxString result;
21208 PyObject * obj0 = 0 ;
21209 char *kwnames[] = {
21210 (char *) "self", NULL
21211 };
21212
21213 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatISODate",kwnames,&obj0)) goto fail;
21214 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21215 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21216 {
21217 PyThreadState* __tstate = wxPyBeginAllowThreads();
21218 result = ((wxDateTime const *)arg1)->FormatISODate();
21219
21220 wxPyEndAllowThreads(__tstate);
21221 if (PyErr_Occurred()) SWIG_fail;
21222 }
21223 {
21224 #if wxUSE_UNICODE
21225 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
21226 #else
21227 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
21228 #endif
21229 }
21230 return resultobj;
21231 fail:
21232 return NULL;
21233 }
21234
21235
21236 static PyObject *_wrap_DateTime_FormatISOTime(PyObject *self, PyObject *args, PyObject *kwargs) {
21237 PyObject *resultobj;
21238 wxDateTime *arg1 = (wxDateTime *) 0 ;
21239 wxString result;
21240 PyObject * obj0 = 0 ;
21241 char *kwnames[] = {
21242 (char *) "self", NULL
21243 };
21244
21245 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateTime_FormatISOTime",kwnames,&obj0)) goto fail;
21246 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateTime,
21247 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21248 {
21249 PyThreadState* __tstate = wxPyBeginAllowThreads();
21250 result = ((wxDateTime const *)arg1)->FormatISOTime();
21251
21252 wxPyEndAllowThreads(__tstate);
21253 if (PyErr_Occurred()) SWIG_fail;
21254 }
21255 {
21256 #if wxUSE_UNICODE
21257 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
21258 #else
21259 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
21260 #endif
21261 }
21262 return resultobj;
21263 fail:
21264 return NULL;
21265 }
21266
21267
21268 static PyObject * DateTime_swigregister(PyObject *self, PyObject *args) {
21269 PyObject *obj;
21270 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
21271 SWIG_TypeClientData(SWIGTYPE_p_wxDateTime, obj);
21272 Py_INCREF(obj);
21273 return Py_BuildValue((char *)"");
21274 }
21275 static PyObject *_wrap_TimeSpan_Seconds(PyObject *self, PyObject *args, PyObject *kwargs) {
21276 PyObject *resultobj;
21277 long arg1 ;
21278 wxTimeSpan result;
21279 PyObject * obj0 = 0 ;
21280 char *kwnames[] = {
21281 (char *) "sec", NULL
21282 };
21283
21284 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Seconds",kwnames,&obj0)) goto fail;
21285 arg1 = (long) SWIG_AsLong(obj0);
21286 if (PyErr_Occurred()) SWIG_fail;
21287 {
21288 PyThreadState* __tstate = wxPyBeginAllowThreads();
21289 result = wxTimeSpan::Seconds(arg1);
21290
21291 wxPyEndAllowThreads(__tstate);
21292 if (PyErr_Occurred()) SWIG_fail;
21293 }
21294 {
21295 wxTimeSpan * resultptr;
21296 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21297 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21298 }
21299 return resultobj;
21300 fail:
21301 return NULL;
21302 }
21303
21304
21305 static PyObject *_wrap_TimeSpan_Second(PyObject *self, PyObject *args, PyObject *kwargs) {
21306 PyObject *resultobj;
21307 wxTimeSpan result;
21308 char *kwnames[] = {
21309 NULL
21310 };
21311
21312 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Second",kwnames)) goto fail;
21313 {
21314 PyThreadState* __tstate = wxPyBeginAllowThreads();
21315 result = wxTimeSpan::Second();
21316
21317 wxPyEndAllowThreads(__tstate);
21318 if (PyErr_Occurred()) SWIG_fail;
21319 }
21320 {
21321 wxTimeSpan * resultptr;
21322 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21323 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21324 }
21325 return resultobj;
21326 fail:
21327 return NULL;
21328 }
21329
21330
21331 static PyObject *_wrap_TimeSpan_Minutes(PyObject *self, PyObject *args, PyObject *kwargs) {
21332 PyObject *resultobj;
21333 long arg1 ;
21334 wxTimeSpan result;
21335 PyObject * obj0 = 0 ;
21336 char *kwnames[] = {
21337 (char *) "min", NULL
21338 };
21339
21340 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Minutes",kwnames,&obj0)) goto fail;
21341 arg1 = (long) SWIG_AsLong(obj0);
21342 if (PyErr_Occurred()) SWIG_fail;
21343 {
21344 PyThreadState* __tstate = wxPyBeginAllowThreads();
21345 result = wxTimeSpan::Minutes(arg1);
21346
21347 wxPyEndAllowThreads(__tstate);
21348 if (PyErr_Occurred()) SWIG_fail;
21349 }
21350 {
21351 wxTimeSpan * resultptr;
21352 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21353 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21354 }
21355 return resultobj;
21356 fail:
21357 return NULL;
21358 }
21359
21360
21361 static PyObject *_wrap_TimeSpan_Minute(PyObject *self, PyObject *args, PyObject *kwargs) {
21362 PyObject *resultobj;
21363 wxTimeSpan result;
21364 char *kwnames[] = {
21365 NULL
21366 };
21367
21368 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Minute",kwnames)) goto fail;
21369 {
21370 PyThreadState* __tstate = wxPyBeginAllowThreads();
21371 result = wxTimeSpan::Minute();
21372
21373 wxPyEndAllowThreads(__tstate);
21374 if (PyErr_Occurred()) SWIG_fail;
21375 }
21376 {
21377 wxTimeSpan * resultptr;
21378 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21379 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21380 }
21381 return resultobj;
21382 fail:
21383 return NULL;
21384 }
21385
21386
21387 static PyObject *_wrap_TimeSpan_Hours(PyObject *self, PyObject *args, PyObject *kwargs) {
21388 PyObject *resultobj;
21389 long arg1 ;
21390 wxTimeSpan result;
21391 PyObject * obj0 = 0 ;
21392 char *kwnames[] = {
21393 (char *) "hours", NULL
21394 };
21395
21396 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Hours",kwnames,&obj0)) goto fail;
21397 arg1 = (long) SWIG_AsLong(obj0);
21398 if (PyErr_Occurred()) SWIG_fail;
21399 {
21400 PyThreadState* __tstate = wxPyBeginAllowThreads();
21401 result = wxTimeSpan::Hours(arg1);
21402
21403 wxPyEndAllowThreads(__tstate);
21404 if (PyErr_Occurred()) SWIG_fail;
21405 }
21406 {
21407 wxTimeSpan * resultptr;
21408 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21409 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21410 }
21411 return resultobj;
21412 fail:
21413 return NULL;
21414 }
21415
21416
21417 static PyObject *_wrap_TimeSpan_Hour(PyObject *self, PyObject *args, PyObject *kwargs) {
21418 PyObject *resultobj;
21419 wxTimeSpan result;
21420 char *kwnames[] = {
21421 NULL
21422 };
21423
21424 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Hour",kwnames)) goto fail;
21425 {
21426 PyThreadState* __tstate = wxPyBeginAllowThreads();
21427 result = wxTimeSpan::Hour();
21428
21429 wxPyEndAllowThreads(__tstate);
21430 if (PyErr_Occurred()) SWIG_fail;
21431 }
21432 {
21433 wxTimeSpan * resultptr;
21434 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21435 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21436 }
21437 return resultobj;
21438 fail:
21439 return NULL;
21440 }
21441
21442
21443 static PyObject *_wrap_TimeSpan_Days(PyObject *self, PyObject *args, PyObject *kwargs) {
21444 PyObject *resultobj;
21445 long arg1 ;
21446 wxTimeSpan result;
21447 PyObject * obj0 = 0 ;
21448 char *kwnames[] = {
21449 (char *) "days", NULL
21450 };
21451
21452 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Days",kwnames,&obj0)) goto fail;
21453 arg1 = (long) SWIG_AsLong(obj0);
21454 if (PyErr_Occurred()) SWIG_fail;
21455 {
21456 PyThreadState* __tstate = wxPyBeginAllowThreads();
21457 result = wxTimeSpan::Days(arg1);
21458
21459 wxPyEndAllowThreads(__tstate);
21460 if (PyErr_Occurred()) SWIG_fail;
21461 }
21462 {
21463 wxTimeSpan * resultptr;
21464 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21465 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21466 }
21467 return resultobj;
21468 fail:
21469 return NULL;
21470 }
21471
21472
21473 static PyObject *_wrap_TimeSpan_Day(PyObject *self, PyObject *args, PyObject *kwargs) {
21474 PyObject *resultobj;
21475 wxTimeSpan result;
21476 char *kwnames[] = {
21477 NULL
21478 };
21479
21480 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Day",kwnames)) goto fail;
21481 {
21482 PyThreadState* __tstate = wxPyBeginAllowThreads();
21483 result = wxTimeSpan::Day();
21484
21485 wxPyEndAllowThreads(__tstate);
21486 if (PyErr_Occurred()) SWIG_fail;
21487 }
21488 {
21489 wxTimeSpan * resultptr;
21490 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21491 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21492 }
21493 return resultobj;
21494 fail:
21495 return NULL;
21496 }
21497
21498
21499 static PyObject *_wrap_TimeSpan_Weeks(PyObject *self, PyObject *args, PyObject *kwargs) {
21500 PyObject *resultobj;
21501 long arg1 ;
21502 wxTimeSpan result;
21503 PyObject * obj0 = 0 ;
21504 char *kwnames[] = {
21505 (char *) "days", NULL
21506 };
21507
21508 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Weeks",kwnames,&obj0)) goto fail;
21509 arg1 = (long) SWIG_AsLong(obj0);
21510 if (PyErr_Occurred()) SWIG_fail;
21511 {
21512 PyThreadState* __tstate = wxPyBeginAllowThreads();
21513 result = wxTimeSpan::Weeks(arg1);
21514
21515 wxPyEndAllowThreads(__tstate);
21516 if (PyErr_Occurred()) SWIG_fail;
21517 }
21518 {
21519 wxTimeSpan * resultptr;
21520 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21521 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21522 }
21523 return resultobj;
21524 fail:
21525 return NULL;
21526 }
21527
21528
21529 static PyObject *_wrap_TimeSpan_Week(PyObject *self, PyObject *args, PyObject *kwargs) {
21530 PyObject *resultobj;
21531 wxTimeSpan result;
21532 char *kwnames[] = {
21533 NULL
21534 };
21535
21536 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":TimeSpan_Week",kwnames)) goto fail;
21537 {
21538 PyThreadState* __tstate = wxPyBeginAllowThreads();
21539 result = wxTimeSpan::Week();
21540
21541 wxPyEndAllowThreads(__tstate);
21542 if (PyErr_Occurred()) SWIG_fail;
21543 }
21544 {
21545 wxTimeSpan * resultptr;
21546 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21547 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21548 }
21549 return resultobj;
21550 fail:
21551 return NULL;
21552 }
21553
21554
21555 static PyObject *_wrap_new_TimeSpan(PyObject *self, PyObject *args, PyObject *kwargs) {
21556 PyObject *resultobj;
21557 long arg1 = (long) 0 ;
21558 long arg2 = (long) 0 ;
21559 long arg3 = (long) 0 ;
21560 long arg4 = (long) 0 ;
21561 wxTimeSpan *result;
21562 PyObject * obj0 = 0 ;
21563 PyObject * obj1 = 0 ;
21564 PyObject * obj2 = 0 ;
21565 PyObject * obj3 = 0 ;
21566 char *kwnames[] = {
21567 (char *) "hours",(char *) "minutes",(char *) "seconds",(char *) "milliseconds", NULL
21568 };
21569
21570 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TimeSpan",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
21571 if (obj0) {
21572 arg1 = (long) SWIG_AsLong(obj0);
21573 if (PyErr_Occurred()) SWIG_fail;
21574 }
21575 if (obj1) {
21576 arg2 = (long) SWIG_AsLong(obj1);
21577 if (PyErr_Occurred()) SWIG_fail;
21578 }
21579 if (obj2) {
21580 arg3 = (long) SWIG_AsLong(obj2);
21581 if (PyErr_Occurred()) SWIG_fail;
21582 }
21583 if (obj3) {
21584 arg4 = (long) SWIG_AsLong(obj3);
21585 if (PyErr_Occurred()) SWIG_fail;
21586 }
21587 {
21588 PyThreadState* __tstate = wxPyBeginAllowThreads();
21589 result = (wxTimeSpan *)new wxTimeSpan(arg1,arg2,arg3,arg4);
21590
21591 wxPyEndAllowThreads(__tstate);
21592 if (PyErr_Occurred()) SWIG_fail;
21593 }
21594 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 1);
21595 return resultobj;
21596 fail:
21597 return NULL;
21598 }
21599
21600
21601 static PyObject *_wrap_delete_TimeSpan(PyObject *self, PyObject *args, PyObject *kwargs) {
21602 PyObject *resultobj;
21603 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21604 PyObject * obj0 = 0 ;
21605 char *kwnames[] = {
21606 (char *) "self", NULL
21607 };
21608
21609 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TimeSpan",kwnames,&obj0)) goto fail;
21610 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21611 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21612 {
21613 PyThreadState* __tstate = wxPyBeginAllowThreads();
21614 delete arg1;
21615
21616 wxPyEndAllowThreads(__tstate);
21617 if (PyErr_Occurred()) SWIG_fail;
21618 }
21619 Py_INCREF(Py_None); resultobj = Py_None;
21620 return resultobj;
21621 fail:
21622 return NULL;
21623 }
21624
21625
21626 static PyObject *_wrap_TimeSpan_Add(PyObject *self, PyObject *args, PyObject *kwargs) {
21627 PyObject *resultobj;
21628 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21629 wxTimeSpan *arg2 = 0 ;
21630 wxTimeSpan *result;
21631 PyObject * obj0 = 0 ;
21632 PyObject * obj1 = 0 ;
21633 char *kwnames[] = {
21634 (char *) "self",(char *) "diff", NULL
21635 };
21636
21637 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Add",kwnames,&obj0,&obj1)) goto fail;
21638 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21639 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21640 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
21641 SWIG_POINTER_EXCEPTION | 0)) == -1)
21642 SWIG_fail;
21643 if (arg2 == NULL) {
21644 PyErr_SetString(PyExc_TypeError,"null reference");
21645 SWIG_fail;
21646 }
21647 {
21648 PyThreadState* __tstate = wxPyBeginAllowThreads();
21649 {
21650 wxTimeSpan &_result_ref = (arg1)->Add((wxTimeSpan const &)*arg2);
21651 result = (wxTimeSpan *) &_result_ref;
21652 }
21653
21654 wxPyEndAllowThreads(__tstate);
21655 if (PyErr_Occurred()) SWIG_fail;
21656 }
21657 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
21658 return resultobj;
21659 fail:
21660 return NULL;
21661 }
21662
21663
21664 static PyObject *_wrap_TimeSpan_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) {
21665 PyObject *resultobj;
21666 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21667 wxTimeSpan *arg2 = 0 ;
21668 wxTimeSpan *result;
21669 PyObject * obj0 = 0 ;
21670 PyObject * obj1 = 0 ;
21671 char *kwnames[] = {
21672 (char *) "self",(char *) "diff", NULL
21673 };
21674
21675 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Subtract",kwnames,&obj0,&obj1)) goto fail;
21676 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21677 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21678 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
21679 SWIG_POINTER_EXCEPTION | 0)) == -1)
21680 SWIG_fail;
21681 if (arg2 == NULL) {
21682 PyErr_SetString(PyExc_TypeError,"null reference");
21683 SWIG_fail;
21684 }
21685 {
21686 PyThreadState* __tstate = wxPyBeginAllowThreads();
21687 {
21688 wxTimeSpan &_result_ref = (arg1)->Subtract((wxTimeSpan const &)*arg2);
21689 result = (wxTimeSpan *) &_result_ref;
21690 }
21691
21692 wxPyEndAllowThreads(__tstate);
21693 if (PyErr_Occurred()) SWIG_fail;
21694 }
21695 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
21696 return resultobj;
21697 fail:
21698 return NULL;
21699 }
21700
21701
21702 static PyObject *_wrap_TimeSpan_Multiply(PyObject *self, PyObject *args, PyObject *kwargs) {
21703 PyObject *resultobj;
21704 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21705 int arg2 ;
21706 wxTimeSpan *result;
21707 PyObject * obj0 = 0 ;
21708 PyObject * obj1 = 0 ;
21709 char *kwnames[] = {
21710 (char *) "self",(char *) "n", NULL
21711 };
21712
21713 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_Multiply",kwnames,&obj0,&obj1)) goto fail;
21714 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21715 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21716 arg2 = (int) SWIG_AsInt(obj1);
21717 if (PyErr_Occurred()) SWIG_fail;
21718 {
21719 PyThreadState* __tstate = wxPyBeginAllowThreads();
21720 {
21721 wxTimeSpan &_result_ref = (arg1)->Multiply(arg2);
21722 result = (wxTimeSpan *) &_result_ref;
21723 }
21724
21725 wxPyEndAllowThreads(__tstate);
21726 if (PyErr_Occurred()) SWIG_fail;
21727 }
21728 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
21729 return resultobj;
21730 fail:
21731 return NULL;
21732 }
21733
21734
21735 static PyObject *_wrap_TimeSpan_Neg(PyObject *self, PyObject *args, PyObject *kwargs) {
21736 PyObject *resultobj;
21737 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21738 wxTimeSpan *result;
21739 PyObject * obj0 = 0 ;
21740 char *kwnames[] = {
21741 (char *) "self", NULL
21742 };
21743
21744 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Neg",kwnames,&obj0)) goto fail;
21745 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21746 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21747 {
21748 PyThreadState* __tstate = wxPyBeginAllowThreads();
21749 {
21750 wxTimeSpan &_result_ref = (arg1)->Neg();
21751 result = (wxTimeSpan *) &_result_ref;
21752 }
21753
21754 wxPyEndAllowThreads(__tstate);
21755 if (PyErr_Occurred()) SWIG_fail;
21756 }
21757 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
21758 return resultobj;
21759 fail:
21760 return NULL;
21761 }
21762
21763
21764 static PyObject *_wrap_TimeSpan_Abs(PyObject *self, PyObject *args, PyObject *kwargs) {
21765 PyObject *resultobj;
21766 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21767 wxTimeSpan result;
21768 PyObject * obj0 = 0 ;
21769 char *kwnames[] = {
21770 (char *) "self", NULL
21771 };
21772
21773 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_Abs",kwnames,&obj0)) goto fail;
21774 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21775 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21776 {
21777 PyThreadState* __tstate = wxPyBeginAllowThreads();
21778 result = ((wxTimeSpan const *)arg1)->Abs();
21779
21780 wxPyEndAllowThreads(__tstate);
21781 if (PyErr_Occurred()) SWIG_fail;
21782 }
21783 {
21784 wxTimeSpan * resultptr;
21785 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21786 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21787 }
21788 return resultobj;
21789 fail:
21790 return NULL;
21791 }
21792
21793
21794 static PyObject *_wrap_TimeSpan___iadd__(PyObject *self, PyObject *args, PyObject *kwargs) {
21795 PyObject *resultobj;
21796 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21797 wxTimeSpan *arg2 = 0 ;
21798 wxTimeSpan *result;
21799 PyObject * obj0 = 0 ;
21800 PyObject * obj1 = 0 ;
21801 char *kwnames[] = {
21802 (char *) "self",(char *) "diff", NULL
21803 };
21804
21805 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___iadd__",kwnames,&obj0,&obj1)) goto fail;
21806 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21807 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21808 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
21809 SWIG_POINTER_EXCEPTION | 0)) == -1)
21810 SWIG_fail;
21811 if (arg2 == NULL) {
21812 PyErr_SetString(PyExc_TypeError,"null reference");
21813 SWIG_fail;
21814 }
21815 {
21816 PyThreadState* __tstate = wxPyBeginAllowThreads();
21817 {
21818 wxTimeSpan &_result_ref = (arg1)->operator +=((wxTimeSpan const &)*arg2);
21819 result = (wxTimeSpan *) &_result_ref;
21820 }
21821
21822 wxPyEndAllowThreads(__tstate);
21823 if (PyErr_Occurred()) SWIG_fail;
21824 }
21825 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
21826 return resultobj;
21827 fail:
21828 return NULL;
21829 }
21830
21831
21832 static PyObject *_wrap_TimeSpan___isub__(PyObject *self, PyObject *args, PyObject *kwargs) {
21833 PyObject *resultobj;
21834 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21835 wxTimeSpan *arg2 = 0 ;
21836 wxTimeSpan *result;
21837 PyObject * obj0 = 0 ;
21838 PyObject * obj1 = 0 ;
21839 char *kwnames[] = {
21840 (char *) "self",(char *) "diff", NULL
21841 };
21842
21843 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___isub__",kwnames,&obj0,&obj1)) goto fail;
21844 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21845 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21846 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
21847 SWIG_POINTER_EXCEPTION | 0)) == -1)
21848 SWIG_fail;
21849 if (arg2 == NULL) {
21850 PyErr_SetString(PyExc_TypeError,"null reference");
21851 SWIG_fail;
21852 }
21853 {
21854 PyThreadState* __tstate = wxPyBeginAllowThreads();
21855 {
21856 wxTimeSpan &_result_ref = (arg1)->operator -=((wxTimeSpan const &)*arg2);
21857 result = (wxTimeSpan *) &_result_ref;
21858 }
21859
21860 wxPyEndAllowThreads(__tstate);
21861 if (PyErr_Occurred()) SWIG_fail;
21862 }
21863 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
21864 return resultobj;
21865 fail:
21866 return NULL;
21867 }
21868
21869
21870 static PyObject *_wrap_TimeSpan___imul__(PyObject *self, PyObject *args, PyObject *kwargs) {
21871 PyObject *resultobj;
21872 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21873 int arg2 ;
21874 wxTimeSpan *result;
21875 PyObject * obj0 = 0 ;
21876 PyObject * obj1 = 0 ;
21877 char *kwnames[] = {
21878 (char *) "self",(char *) "n", NULL
21879 };
21880
21881 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___imul__",kwnames,&obj0,&obj1)) goto fail;
21882 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21883 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21884 arg2 = (int) SWIG_AsInt(obj1);
21885 if (PyErr_Occurred()) SWIG_fail;
21886 {
21887 PyThreadState* __tstate = wxPyBeginAllowThreads();
21888 {
21889 wxTimeSpan &_result_ref = (arg1)->operator *=(arg2);
21890 result = (wxTimeSpan *) &_result_ref;
21891 }
21892
21893 wxPyEndAllowThreads(__tstate);
21894 if (PyErr_Occurred()) SWIG_fail;
21895 }
21896 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
21897 return resultobj;
21898 fail:
21899 return NULL;
21900 }
21901
21902
21903 static PyObject *_wrap_TimeSpan___neg__(PyObject *self, PyObject *args, PyObject *kwargs) {
21904 PyObject *resultobj;
21905 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21906 wxTimeSpan *result;
21907 PyObject * obj0 = 0 ;
21908 char *kwnames[] = {
21909 (char *) "self", NULL
21910 };
21911
21912 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan___neg__",kwnames,&obj0)) goto fail;
21913 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21914 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21915 {
21916 PyThreadState* __tstate = wxPyBeginAllowThreads();
21917 {
21918 wxTimeSpan &_result_ref = (arg1)->operator -();
21919 result = (wxTimeSpan *) &_result_ref;
21920 }
21921
21922 wxPyEndAllowThreads(__tstate);
21923 if (PyErr_Occurred()) SWIG_fail;
21924 }
21925 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTimeSpan, 0);
21926 return resultobj;
21927 fail:
21928 return NULL;
21929 }
21930
21931
21932 static PyObject *_wrap_TimeSpan___add__(PyObject *self, PyObject *args, PyObject *kwargs) {
21933 PyObject *resultobj;
21934 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21935 wxTimeSpan *arg2 = 0 ;
21936 wxTimeSpan result;
21937 PyObject * obj0 = 0 ;
21938 PyObject * obj1 = 0 ;
21939 char *kwnames[] = {
21940 (char *) "self",(char *) "other", NULL
21941 };
21942
21943 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___add__",kwnames,&obj0,&obj1)) goto fail;
21944 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21945 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21946 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
21947 SWIG_POINTER_EXCEPTION | 0)) == -1)
21948 SWIG_fail;
21949 if (arg2 == NULL) {
21950 PyErr_SetString(PyExc_TypeError,"null reference");
21951 SWIG_fail;
21952 }
21953 {
21954 PyThreadState* __tstate = wxPyBeginAllowThreads();
21955 result = wxTimeSpan___add__(arg1,(wxTimeSpan const &)*arg2);
21956
21957 wxPyEndAllowThreads(__tstate);
21958 if (PyErr_Occurred()) SWIG_fail;
21959 }
21960 {
21961 wxTimeSpan * resultptr;
21962 resultptr = new wxTimeSpan((wxTimeSpan &) result);
21963 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
21964 }
21965 return resultobj;
21966 fail:
21967 return NULL;
21968 }
21969
21970
21971 static PyObject *_wrap_TimeSpan___sub__(PyObject *self, PyObject *args, PyObject *kwargs) {
21972 PyObject *resultobj;
21973 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
21974 wxTimeSpan *arg2 = 0 ;
21975 wxTimeSpan result;
21976 PyObject * obj0 = 0 ;
21977 PyObject * obj1 = 0 ;
21978 char *kwnames[] = {
21979 (char *) "self",(char *) "other", NULL
21980 };
21981
21982 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___sub__",kwnames,&obj0,&obj1)) goto fail;
21983 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
21984 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21985 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
21986 SWIG_POINTER_EXCEPTION | 0)) == -1)
21987 SWIG_fail;
21988 if (arg2 == NULL) {
21989 PyErr_SetString(PyExc_TypeError,"null reference");
21990 SWIG_fail;
21991 }
21992 {
21993 PyThreadState* __tstate = wxPyBeginAllowThreads();
21994 result = wxTimeSpan___sub__(arg1,(wxTimeSpan const &)*arg2);
21995
21996 wxPyEndAllowThreads(__tstate);
21997 if (PyErr_Occurred()) SWIG_fail;
21998 }
21999 {
22000 wxTimeSpan * resultptr;
22001 resultptr = new wxTimeSpan((wxTimeSpan &) result);
22002 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
22003 }
22004 return resultobj;
22005 fail:
22006 return NULL;
22007 }
22008
22009
22010 static PyObject *_wrap_TimeSpan___mul__(PyObject *self, PyObject *args, PyObject *kwargs) {
22011 PyObject *resultobj;
22012 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22013 int arg2 ;
22014 wxTimeSpan result;
22015 PyObject * obj0 = 0 ;
22016 PyObject * obj1 = 0 ;
22017 char *kwnames[] = {
22018 (char *) "self",(char *) "n", NULL
22019 };
22020
22021 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___mul__",kwnames,&obj0,&obj1)) goto fail;
22022 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22023 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22024 arg2 = (int) SWIG_AsInt(obj1);
22025 if (PyErr_Occurred()) SWIG_fail;
22026 {
22027 PyThreadState* __tstate = wxPyBeginAllowThreads();
22028 result = wxTimeSpan___mul__(arg1,arg2);
22029
22030 wxPyEndAllowThreads(__tstate);
22031 if (PyErr_Occurred()) SWIG_fail;
22032 }
22033 {
22034 wxTimeSpan * resultptr;
22035 resultptr = new wxTimeSpan((wxTimeSpan &) result);
22036 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
22037 }
22038 return resultobj;
22039 fail:
22040 return NULL;
22041 }
22042
22043
22044 static PyObject *_wrap_TimeSpan___rmul__(PyObject *self, PyObject *args, PyObject *kwargs) {
22045 PyObject *resultobj;
22046 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22047 int arg2 ;
22048 wxTimeSpan result;
22049 PyObject * obj0 = 0 ;
22050 PyObject * obj1 = 0 ;
22051 char *kwnames[] = {
22052 (char *) "self",(char *) "n", NULL
22053 };
22054
22055 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___rmul__",kwnames,&obj0,&obj1)) goto fail;
22056 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22057 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22058 arg2 = (int) SWIG_AsInt(obj1);
22059 if (PyErr_Occurred()) SWIG_fail;
22060 {
22061 PyThreadState* __tstate = wxPyBeginAllowThreads();
22062 result = wxTimeSpan___rmul__(arg1,arg2);
22063
22064 wxPyEndAllowThreads(__tstate);
22065 if (PyErr_Occurred()) SWIG_fail;
22066 }
22067 {
22068 wxTimeSpan * resultptr;
22069 resultptr = new wxTimeSpan((wxTimeSpan &) result);
22070 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTimeSpan, 1);
22071 }
22072 return resultobj;
22073 fail:
22074 return NULL;
22075 }
22076
22077
22078 static PyObject *_wrap_TimeSpan___lt__(PyObject *self, PyObject *args, PyObject *kwargs) {
22079 PyObject *resultobj;
22080 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22081 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
22082 bool result;
22083 PyObject * obj0 = 0 ;
22084 PyObject * obj1 = 0 ;
22085 char *kwnames[] = {
22086 (char *) "self",(char *) "other", NULL
22087 };
22088
22089 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___lt__",kwnames,&obj0,&obj1)) goto fail;
22090 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22091 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22092 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22093 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22094 {
22095 PyThreadState* __tstate = wxPyBeginAllowThreads();
22096 result = (bool)wxTimeSpan___lt__(arg1,(wxTimeSpan const *)arg2);
22097
22098 wxPyEndAllowThreads(__tstate);
22099 if (PyErr_Occurred()) SWIG_fail;
22100 }
22101 {
22102 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22103 }
22104 return resultobj;
22105 fail:
22106 return NULL;
22107 }
22108
22109
22110 static PyObject *_wrap_TimeSpan___le__(PyObject *self, PyObject *args, PyObject *kwargs) {
22111 PyObject *resultobj;
22112 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22113 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
22114 bool result;
22115 PyObject * obj0 = 0 ;
22116 PyObject * obj1 = 0 ;
22117 char *kwnames[] = {
22118 (char *) "self",(char *) "other", NULL
22119 };
22120
22121 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___le__",kwnames,&obj0,&obj1)) goto fail;
22122 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22123 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22124 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22125 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22126 {
22127 PyThreadState* __tstate = wxPyBeginAllowThreads();
22128 result = (bool)wxTimeSpan___le__(arg1,(wxTimeSpan const *)arg2);
22129
22130 wxPyEndAllowThreads(__tstate);
22131 if (PyErr_Occurred()) SWIG_fail;
22132 }
22133 {
22134 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22135 }
22136 return resultobj;
22137 fail:
22138 return NULL;
22139 }
22140
22141
22142 static PyObject *_wrap_TimeSpan___gt__(PyObject *self, PyObject *args, PyObject *kwargs) {
22143 PyObject *resultobj;
22144 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22145 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
22146 bool result;
22147 PyObject * obj0 = 0 ;
22148 PyObject * obj1 = 0 ;
22149 char *kwnames[] = {
22150 (char *) "self",(char *) "other", NULL
22151 };
22152
22153 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___gt__",kwnames,&obj0,&obj1)) goto fail;
22154 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22155 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22156 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22157 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22158 {
22159 PyThreadState* __tstate = wxPyBeginAllowThreads();
22160 result = (bool)wxTimeSpan___gt__(arg1,(wxTimeSpan const *)arg2);
22161
22162 wxPyEndAllowThreads(__tstate);
22163 if (PyErr_Occurred()) SWIG_fail;
22164 }
22165 {
22166 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22167 }
22168 return resultobj;
22169 fail:
22170 return NULL;
22171 }
22172
22173
22174 static PyObject *_wrap_TimeSpan___ge__(PyObject *self, PyObject *args, PyObject *kwargs) {
22175 PyObject *resultobj;
22176 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22177 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
22178 bool result;
22179 PyObject * obj0 = 0 ;
22180 PyObject * obj1 = 0 ;
22181 char *kwnames[] = {
22182 (char *) "self",(char *) "other", NULL
22183 };
22184
22185 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___ge__",kwnames,&obj0,&obj1)) goto fail;
22186 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22187 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22188 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22189 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22190 {
22191 PyThreadState* __tstate = wxPyBeginAllowThreads();
22192 result = (bool)wxTimeSpan___ge__(arg1,(wxTimeSpan const *)arg2);
22193
22194 wxPyEndAllowThreads(__tstate);
22195 if (PyErr_Occurred()) SWIG_fail;
22196 }
22197 {
22198 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22199 }
22200 return resultobj;
22201 fail:
22202 return NULL;
22203 }
22204
22205
22206 static PyObject *_wrap_TimeSpan___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
22207 PyObject *resultobj;
22208 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22209 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
22210 bool result;
22211 PyObject * obj0 = 0 ;
22212 PyObject * obj1 = 0 ;
22213 char *kwnames[] = {
22214 (char *) "self",(char *) "other", NULL
22215 };
22216
22217 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___eq__",kwnames,&obj0,&obj1)) goto fail;
22218 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22219 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22220 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22221 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22222 {
22223 PyThreadState* __tstate = wxPyBeginAllowThreads();
22224 result = (bool)wxTimeSpan___eq__(arg1,(wxTimeSpan const *)arg2);
22225
22226 wxPyEndAllowThreads(__tstate);
22227 if (PyErr_Occurred()) SWIG_fail;
22228 }
22229 {
22230 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22231 }
22232 return resultobj;
22233 fail:
22234 return NULL;
22235 }
22236
22237
22238 static PyObject *_wrap_TimeSpan___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
22239 PyObject *resultobj;
22240 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22241 wxTimeSpan *arg2 = (wxTimeSpan *) 0 ;
22242 bool result;
22243 PyObject * obj0 = 0 ;
22244 PyObject * obj1 = 0 ;
22245 char *kwnames[] = {
22246 (char *) "self",(char *) "other", NULL
22247 };
22248
22249 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan___ne__",kwnames,&obj0,&obj1)) goto fail;
22250 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22251 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22252 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22253 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22254 {
22255 PyThreadState* __tstate = wxPyBeginAllowThreads();
22256 result = (bool)wxTimeSpan___ne__(arg1,(wxTimeSpan const *)arg2);
22257
22258 wxPyEndAllowThreads(__tstate);
22259 if (PyErr_Occurred()) SWIG_fail;
22260 }
22261 {
22262 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22263 }
22264 return resultobj;
22265 fail:
22266 return NULL;
22267 }
22268
22269
22270 static PyObject *_wrap_TimeSpan_IsNull(PyObject *self, PyObject *args, PyObject *kwargs) {
22271 PyObject *resultobj;
22272 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22273 bool result;
22274 PyObject * obj0 = 0 ;
22275 char *kwnames[] = {
22276 (char *) "self", NULL
22277 };
22278
22279 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsNull",kwnames,&obj0)) goto fail;
22280 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22281 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22282 {
22283 PyThreadState* __tstate = wxPyBeginAllowThreads();
22284 result = (bool)((wxTimeSpan const *)arg1)->IsNull();
22285
22286 wxPyEndAllowThreads(__tstate);
22287 if (PyErr_Occurred()) SWIG_fail;
22288 }
22289 {
22290 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22291 }
22292 return resultobj;
22293 fail:
22294 return NULL;
22295 }
22296
22297
22298 static PyObject *_wrap_TimeSpan_IsPositive(PyObject *self, PyObject *args, PyObject *kwargs) {
22299 PyObject *resultobj;
22300 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22301 bool result;
22302 PyObject * obj0 = 0 ;
22303 char *kwnames[] = {
22304 (char *) "self", NULL
22305 };
22306
22307 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsPositive",kwnames,&obj0)) goto fail;
22308 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22309 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22310 {
22311 PyThreadState* __tstate = wxPyBeginAllowThreads();
22312 result = (bool)((wxTimeSpan const *)arg1)->IsPositive();
22313
22314 wxPyEndAllowThreads(__tstate);
22315 if (PyErr_Occurred()) SWIG_fail;
22316 }
22317 {
22318 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22319 }
22320 return resultobj;
22321 fail:
22322 return NULL;
22323 }
22324
22325
22326 static PyObject *_wrap_TimeSpan_IsNegative(PyObject *self, PyObject *args, PyObject *kwargs) {
22327 PyObject *resultobj;
22328 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22329 bool result;
22330 PyObject * obj0 = 0 ;
22331 char *kwnames[] = {
22332 (char *) "self", NULL
22333 };
22334
22335 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_IsNegative",kwnames,&obj0)) goto fail;
22336 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22337 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22338 {
22339 PyThreadState* __tstate = wxPyBeginAllowThreads();
22340 result = (bool)((wxTimeSpan const *)arg1)->IsNegative();
22341
22342 wxPyEndAllowThreads(__tstate);
22343 if (PyErr_Occurred()) SWIG_fail;
22344 }
22345 {
22346 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22347 }
22348 return resultobj;
22349 fail:
22350 return NULL;
22351 }
22352
22353
22354 static PyObject *_wrap_TimeSpan_IsEqualTo(PyObject *self, PyObject *args, PyObject *kwargs) {
22355 PyObject *resultobj;
22356 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22357 wxTimeSpan *arg2 = 0 ;
22358 bool result;
22359 PyObject * obj0 = 0 ;
22360 PyObject * obj1 = 0 ;
22361 char *kwnames[] = {
22362 (char *) "self",(char *) "ts", NULL
22363 };
22364
22365 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsEqualTo",kwnames,&obj0,&obj1)) goto fail;
22366 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22367 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22368 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22369 SWIG_POINTER_EXCEPTION | 0)) == -1)
22370 SWIG_fail;
22371 if (arg2 == NULL) {
22372 PyErr_SetString(PyExc_TypeError,"null reference");
22373 SWIG_fail;
22374 }
22375 {
22376 PyThreadState* __tstate = wxPyBeginAllowThreads();
22377 result = (bool)((wxTimeSpan const *)arg1)->IsEqualTo((wxTimeSpan const &)*arg2);
22378
22379 wxPyEndAllowThreads(__tstate);
22380 if (PyErr_Occurred()) SWIG_fail;
22381 }
22382 {
22383 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22384 }
22385 return resultobj;
22386 fail:
22387 return NULL;
22388 }
22389
22390
22391 static PyObject *_wrap_TimeSpan_IsLongerThan(PyObject *self, PyObject *args, PyObject *kwargs) {
22392 PyObject *resultobj;
22393 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22394 wxTimeSpan *arg2 = 0 ;
22395 bool result;
22396 PyObject * obj0 = 0 ;
22397 PyObject * obj1 = 0 ;
22398 char *kwnames[] = {
22399 (char *) "self",(char *) "ts", NULL
22400 };
22401
22402 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsLongerThan",kwnames,&obj0,&obj1)) goto fail;
22403 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22404 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22405 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22406 SWIG_POINTER_EXCEPTION | 0)) == -1)
22407 SWIG_fail;
22408 if (arg2 == NULL) {
22409 PyErr_SetString(PyExc_TypeError,"null reference");
22410 SWIG_fail;
22411 }
22412 {
22413 PyThreadState* __tstate = wxPyBeginAllowThreads();
22414 result = (bool)((wxTimeSpan const *)arg1)->IsLongerThan((wxTimeSpan const &)*arg2);
22415
22416 wxPyEndAllowThreads(__tstate);
22417 if (PyErr_Occurred()) SWIG_fail;
22418 }
22419 {
22420 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22421 }
22422 return resultobj;
22423 fail:
22424 return NULL;
22425 }
22426
22427
22428 static PyObject *_wrap_TimeSpan_IsShorterThan(PyObject *self, PyObject *args, PyObject *kwargs) {
22429 PyObject *resultobj;
22430 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22431 wxTimeSpan *arg2 = 0 ;
22432 bool result;
22433 PyObject * obj0 = 0 ;
22434 PyObject * obj1 = 0 ;
22435 char *kwnames[] = {
22436 (char *) "self",(char *) "t", NULL
22437 };
22438
22439 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TimeSpan_IsShorterThan",kwnames,&obj0,&obj1)) goto fail;
22440 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22441 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22442 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTimeSpan,
22443 SWIG_POINTER_EXCEPTION | 0)) == -1)
22444 SWIG_fail;
22445 if (arg2 == NULL) {
22446 PyErr_SetString(PyExc_TypeError,"null reference");
22447 SWIG_fail;
22448 }
22449 {
22450 PyThreadState* __tstate = wxPyBeginAllowThreads();
22451 result = (bool)((wxTimeSpan const *)arg1)->IsShorterThan((wxTimeSpan const &)*arg2);
22452
22453 wxPyEndAllowThreads(__tstate);
22454 if (PyErr_Occurred()) SWIG_fail;
22455 }
22456 {
22457 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22458 }
22459 return resultobj;
22460 fail:
22461 return NULL;
22462 }
22463
22464
22465 static PyObject *_wrap_TimeSpan_GetWeeks(PyObject *self, PyObject *args, PyObject *kwargs) {
22466 PyObject *resultobj;
22467 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22468 int result;
22469 PyObject * obj0 = 0 ;
22470 char *kwnames[] = {
22471 (char *) "self", NULL
22472 };
22473
22474 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetWeeks",kwnames,&obj0)) goto fail;
22475 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22476 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22477 {
22478 PyThreadState* __tstate = wxPyBeginAllowThreads();
22479 result = (int)((wxTimeSpan const *)arg1)->GetWeeks();
22480
22481 wxPyEndAllowThreads(__tstate);
22482 if (PyErr_Occurred()) SWIG_fail;
22483 }
22484 resultobj = SWIG_FromInt((int)result);
22485 return resultobj;
22486 fail:
22487 return NULL;
22488 }
22489
22490
22491 static PyObject *_wrap_TimeSpan_GetDays(PyObject *self, PyObject *args, PyObject *kwargs) {
22492 PyObject *resultobj;
22493 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22494 int result;
22495 PyObject * obj0 = 0 ;
22496 char *kwnames[] = {
22497 (char *) "self", NULL
22498 };
22499
22500 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetDays",kwnames,&obj0)) goto fail;
22501 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22502 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22503 {
22504 PyThreadState* __tstate = wxPyBeginAllowThreads();
22505 result = (int)((wxTimeSpan const *)arg1)->GetDays();
22506
22507 wxPyEndAllowThreads(__tstate);
22508 if (PyErr_Occurred()) SWIG_fail;
22509 }
22510 resultobj = SWIG_FromInt((int)result);
22511 return resultobj;
22512 fail:
22513 return NULL;
22514 }
22515
22516
22517 static PyObject *_wrap_TimeSpan_GetHours(PyObject *self, PyObject *args, PyObject *kwargs) {
22518 PyObject *resultobj;
22519 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22520 int result;
22521 PyObject * obj0 = 0 ;
22522 char *kwnames[] = {
22523 (char *) "self", NULL
22524 };
22525
22526 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetHours",kwnames,&obj0)) goto fail;
22527 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22528 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22529 {
22530 PyThreadState* __tstate = wxPyBeginAllowThreads();
22531 result = (int)((wxTimeSpan const *)arg1)->GetHours();
22532
22533 wxPyEndAllowThreads(__tstate);
22534 if (PyErr_Occurred()) SWIG_fail;
22535 }
22536 resultobj = SWIG_FromInt((int)result);
22537 return resultobj;
22538 fail:
22539 return NULL;
22540 }
22541
22542
22543 static PyObject *_wrap_TimeSpan_GetMinutes(PyObject *self, PyObject *args, PyObject *kwargs) {
22544 PyObject *resultobj;
22545 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22546 int result;
22547 PyObject * obj0 = 0 ;
22548 char *kwnames[] = {
22549 (char *) "self", NULL
22550 };
22551
22552 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetMinutes",kwnames,&obj0)) goto fail;
22553 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22554 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22555 {
22556 PyThreadState* __tstate = wxPyBeginAllowThreads();
22557 result = (int)((wxTimeSpan const *)arg1)->GetMinutes();
22558
22559 wxPyEndAllowThreads(__tstate);
22560 if (PyErr_Occurred()) SWIG_fail;
22561 }
22562 resultobj = SWIG_FromInt((int)result);
22563 return resultobj;
22564 fail:
22565 return NULL;
22566 }
22567
22568
22569 static PyObject *_wrap_TimeSpan_GetSeconds(PyObject *self, PyObject *args, PyObject *kwargs) {
22570 PyObject *resultobj;
22571 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22572 wxLongLong result;
22573 PyObject * obj0 = 0 ;
22574 char *kwnames[] = {
22575 (char *) "self", NULL
22576 };
22577
22578 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetSeconds",kwnames,&obj0)) goto fail;
22579 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22580 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22581 {
22582 PyThreadState* __tstate = wxPyBeginAllowThreads();
22583 result = ((wxTimeSpan const *)arg1)->GetSeconds();
22584
22585 wxPyEndAllowThreads(__tstate);
22586 if (PyErr_Occurred()) SWIG_fail;
22587 }
22588 {
22589 PyObject *hi, *lo, *shifter, *shifted;
22590 hi = PyLong_FromLong( (&result)->GetHi() );
22591 lo = PyLong_FromLong( (&result)->GetLo() );
22592 shifter = PyLong_FromLong(32);
22593 shifted = PyNumber_Lshift(hi, shifter);
22594 resultobj = PyNumber_Or(shifted, lo);
22595 Py_DECREF(hi);
22596 Py_DECREF(lo);
22597 Py_DECREF(shifter);
22598 Py_DECREF(shifted);
22599 }
22600 return resultobj;
22601 fail:
22602 return NULL;
22603 }
22604
22605
22606 static PyObject *_wrap_TimeSpan_GetMilliseconds(PyObject *self, PyObject *args, PyObject *kwargs) {
22607 PyObject *resultobj;
22608 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22609 wxLongLong result;
22610 PyObject * obj0 = 0 ;
22611 char *kwnames[] = {
22612 (char *) "self", NULL
22613 };
22614
22615 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TimeSpan_GetMilliseconds",kwnames,&obj0)) goto fail;
22616 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22617 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22618 {
22619 PyThreadState* __tstate = wxPyBeginAllowThreads();
22620 result = ((wxTimeSpan const *)arg1)->GetMilliseconds();
22621
22622 wxPyEndAllowThreads(__tstate);
22623 if (PyErr_Occurred()) SWIG_fail;
22624 }
22625 {
22626 PyObject *hi, *lo, *shifter, *shifted;
22627 hi = PyLong_FromLong( (&result)->GetHi() );
22628 lo = PyLong_FromLong( (&result)->GetLo() );
22629 shifter = PyLong_FromLong(32);
22630 shifted = PyNumber_Lshift(hi, shifter);
22631 resultobj = PyNumber_Or(shifted, lo);
22632 Py_DECREF(hi);
22633 Py_DECREF(lo);
22634 Py_DECREF(shifter);
22635 Py_DECREF(shifted);
22636 }
22637 return resultobj;
22638 fail:
22639 return NULL;
22640 }
22641
22642
22643 static PyObject *_wrap_TimeSpan_Format(PyObject *self, PyObject *args, PyObject *kwargs) {
22644 PyObject *resultobj;
22645 wxTimeSpan *arg1 = (wxTimeSpan *) 0 ;
22646 wxString const &arg2_defvalue = wxPyTimeSpanFormatStr ;
22647 wxString *arg2 = (wxString *) &arg2_defvalue ;
22648 wxString result;
22649 bool temp2 = False ;
22650 PyObject * obj0 = 0 ;
22651 PyObject * obj1 = 0 ;
22652 char *kwnames[] = {
22653 (char *) "self",(char *) "format", NULL
22654 };
22655
22656 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TimeSpan_Format",kwnames,&obj0,&obj1)) goto fail;
22657 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTimeSpan,
22658 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22659 if (obj1) {
22660 {
22661 arg2 = wxString_in_helper(obj1);
22662 if (arg2 == NULL) SWIG_fail;
22663 temp2 = True;
22664 }
22665 }
22666 {
22667 PyThreadState* __tstate = wxPyBeginAllowThreads();
22668 result = ((wxTimeSpan const *)arg1)->Format((wxString const &)*arg2);
22669
22670 wxPyEndAllowThreads(__tstate);
22671 if (PyErr_Occurred()) SWIG_fail;
22672 }
22673 {
22674 #if wxUSE_UNICODE
22675 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
22676 #else
22677 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
22678 #endif
22679 }
22680 {
22681 if (temp2)
22682 delete arg2;
22683 }
22684 return resultobj;
22685 fail:
22686 {
22687 if (temp2)
22688 delete arg2;
22689 }
22690 return NULL;
22691 }
22692
22693
22694 static PyObject * TimeSpan_swigregister(PyObject *self, PyObject *args) {
22695 PyObject *obj;
22696 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
22697 SWIG_TypeClientData(SWIGTYPE_p_wxTimeSpan, obj);
22698 Py_INCREF(obj);
22699 return Py_BuildValue((char *)"");
22700 }
22701 static PyObject *_wrap_new_DateSpan(PyObject *self, PyObject *args, PyObject *kwargs) {
22702 PyObject *resultobj;
22703 int arg1 = (int) 0 ;
22704 int arg2 = (int) 0 ;
22705 int arg3 = (int) 0 ;
22706 int arg4 = (int) 0 ;
22707 wxDateSpan *result;
22708 PyObject * obj0 = 0 ;
22709 PyObject * obj1 = 0 ;
22710 PyObject * obj2 = 0 ;
22711 PyObject * obj3 = 0 ;
22712 char *kwnames[] = {
22713 (char *) "years",(char *) "months",(char *) "weeks",(char *) "days", NULL
22714 };
22715
22716 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_DateSpan",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
22717 if (obj0) {
22718 arg1 = (int) SWIG_AsInt(obj0);
22719 if (PyErr_Occurred()) SWIG_fail;
22720 }
22721 if (obj1) {
22722 arg2 = (int) SWIG_AsInt(obj1);
22723 if (PyErr_Occurred()) SWIG_fail;
22724 }
22725 if (obj2) {
22726 arg3 = (int) SWIG_AsInt(obj2);
22727 if (PyErr_Occurred()) SWIG_fail;
22728 }
22729 if (obj3) {
22730 arg4 = (int) SWIG_AsInt(obj3);
22731 if (PyErr_Occurred()) SWIG_fail;
22732 }
22733 {
22734 PyThreadState* __tstate = wxPyBeginAllowThreads();
22735 result = (wxDateSpan *)new wxDateSpan(arg1,arg2,arg3,arg4);
22736
22737 wxPyEndAllowThreads(__tstate);
22738 if (PyErr_Occurred()) SWIG_fail;
22739 }
22740 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 1);
22741 return resultobj;
22742 fail:
22743 return NULL;
22744 }
22745
22746
22747 static PyObject *_wrap_delete_DateSpan(PyObject *self, PyObject *args, PyObject *kwargs) {
22748 PyObject *resultobj;
22749 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
22750 PyObject * obj0 = 0 ;
22751 char *kwnames[] = {
22752 (char *) "self", NULL
22753 };
22754
22755 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DateSpan",kwnames,&obj0)) goto fail;
22756 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
22757 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22758 {
22759 PyThreadState* __tstate = wxPyBeginAllowThreads();
22760 delete arg1;
22761
22762 wxPyEndAllowThreads(__tstate);
22763 if (PyErr_Occurred()) SWIG_fail;
22764 }
22765 Py_INCREF(Py_None); resultobj = Py_None;
22766 return resultobj;
22767 fail:
22768 return NULL;
22769 }
22770
22771
22772 static PyObject *_wrap_DateSpan_Days(PyObject *self, PyObject *args, PyObject *kwargs) {
22773 PyObject *resultobj;
22774 int arg1 ;
22775 wxDateSpan result;
22776 PyObject * obj0 = 0 ;
22777 char *kwnames[] = {
22778 (char *) "days", NULL
22779 };
22780
22781 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Days",kwnames,&obj0)) goto fail;
22782 arg1 = (int) SWIG_AsInt(obj0);
22783 if (PyErr_Occurred()) SWIG_fail;
22784 {
22785 PyThreadState* __tstate = wxPyBeginAllowThreads();
22786 result = wxDateSpan::Days(arg1);
22787
22788 wxPyEndAllowThreads(__tstate);
22789 if (PyErr_Occurred()) SWIG_fail;
22790 }
22791 {
22792 wxDateSpan * resultptr;
22793 resultptr = new wxDateSpan((wxDateSpan &) result);
22794 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
22795 }
22796 return resultobj;
22797 fail:
22798 return NULL;
22799 }
22800
22801
22802 static PyObject *_wrap_DateSpan_Day(PyObject *self, PyObject *args, PyObject *kwargs) {
22803 PyObject *resultobj;
22804 wxDateSpan result;
22805 char *kwnames[] = {
22806 NULL
22807 };
22808
22809 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Day",kwnames)) goto fail;
22810 {
22811 PyThreadState* __tstate = wxPyBeginAllowThreads();
22812 result = wxDateSpan::Day();
22813
22814 wxPyEndAllowThreads(__tstate);
22815 if (PyErr_Occurred()) SWIG_fail;
22816 }
22817 {
22818 wxDateSpan * resultptr;
22819 resultptr = new wxDateSpan((wxDateSpan &) result);
22820 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
22821 }
22822 return resultobj;
22823 fail:
22824 return NULL;
22825 }
22826
22827
22828 static PyObject *_wrap_DateSpan_Weeks(PyObject *self, PyObject *args, PyObject *kwargs) {
22829 PyObject *resultobj;
22830 int arg1 ;
22831 wxDateSpan result;
22832 PyObject * obj0 = 0 ;
22833 char *kwnames[] = {
22834 (char *) "weeks", NULL
22835 };
22836
22837 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Weeks",kwnames,&obj0)) goto fail;
22838 arg1 = (int) SWIG_AsInt(obj0);
22839 if (PyErr_Occurred()) SWIG_fail;
22840 {
22841 PyThreadState* __tstate = wxPyBeginAllowThreads();
22842 result = wxDateSpan::Weeks(arg1);
22843
22844 wxPyEndAllowThreads(__tstate);
22845 if (PyErr_Occurred()) SWIG_fail;
22846 }
22847 {
22848 wxDateSpan * resultptr;
22849 resultptr = new wxDateSpan((wxDateSpan &) result);
22850 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
22851 }
22852 return resultobj;
22853 fail:
22854 return NULL;
22855 }
22856
22857
22858 static PyObject *_wrap_DateSpan_Week(PyObject *self, PyObject *args, PyObject *kwargs) {
22859 PyObject *resultobj;
22860 wxDateSpan result;
22861 char *kwnames[] = {
22862 NULL
22863 };
22864
22865 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Week",kwnames)) goto fail;
22866 {
22867 PyThreadState* __tstate = wxPyBeginAllowThreads();
22868 result = wxDateSpan::Week();
22869
22870 wxPyEndAllowThreads(__tstate);
22871 if (PyErr_Occurred()) SWIG_fail;
22872 }
22873 {
22874 wxDateSpan * resultptr;
22875 resultptr = new wxDateSpan((wxDateSpan &) result);
22876 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
22877 }
22878 return resultobj;
22879 fail:
22880 return NULL;
22881 }
22882
22883
22884 static PyObject *_wrap_DateSpan_Months(PyObject *self, PyObject *args, PyObject *kwargs) {
22885 PyObject *resultobj;
22886 int arg1 ;
22887 wxDateSpan result;
22888 PyObject * obj0 = 0 ;
22889 char *kwnames[] = {
22890 (char *) "mon", NULL
22891 };
22892
22893 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Months",kwnames,&obj0)) goto fail;
22894 arg1 = (int) SWIG_AsInt(obj0);
22895 if (PyErr_Occurred()) SWIG_fail;
22896 {
22897 PyThreadState* __tstate = wxPyBeginAllowThreads();
22898 result = wxDateSpan::Months(arg1);
22899
22900 wxPyEndAllowThreads(__tstate);
22901 if (PyErr_Occurred()) SWIG_fail;
22902 }
22903 {
22904 wxDateSpan * resultptr;
22905 resultptr = new wxDateSpan((wxDateSpan &) result);
22906 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
22907 }
22908 return resultobj;
22909 fail:
22910 return NULL;
22911 }
22912
22913
22914 static PyObject *_wrap_DateSpan_Month(PyObject *self, PyObject *args, PyObject *kwargs) {
22915 PyObject *resultobj;
22916 wxDateSpan result;
22917 char *kwnames[] = {
22918 NULL
22919 };
22920
22921 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Month",kwnames)) goto fail;
22922 {
22923 PyThreadState* __tstate = wxPyBeginAllowThreads();
22924 result = wxDateSpan::Month();
22925
22926 wxPyEndAllowThreads(__tstate);
22927 if (PyErr_Occurred()) SWIG_fail;
22928 }
22929 {
22930 wxDateSpan * resultptr;
22931 resultptr = new wxDateSpan((wxDateSpan &) result);
22932 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
22933 }
22934 return resultobj;
22935 fail:
22936 return NULL;
22937 }
22938
22939
22940 static PyObject *_wrap_DateSpan_Years(PyObject *self, PyObject *args, PyObject *kwargs) {
22941 PyObject *resultobj;
22942 int arg1 ;
22943 wxDateSpan result;
22944 PyObject * obj0 = 0 ;
22945 char *kwnames[] = {
22946 (char *) "years", NULL
22947 };
22948
22949 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Years",kwnames,&obj0)) goto fail;
22950 arg1 = (int) SWIG_AsInt(obj0);
22951 if (PyErr_Occurred()) SWIG_fail;
22952 {
22953 PyThreadState* __tstate = wxPyBeginAllowThreads();
22954 result = wxDateSpan::Years(arg1);
22955
22956 wxPyEndAllowThreads(__tstate);
22957 if (PyErr_Occurred()) SWIG_fail;
22958 }
22959 {
22960 wxDateSpan * resultptr;
22961 resultptr = new wxDateSpan((wxDateSpan &) result);
22962 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
22963 }
22964 return resultobj;
22965 fail:
22966 return NULL;
22967 }
22968
22969
22970 static PyObject *_wrap_DateSpan_Year(PyObject *self, PyObject *args, PyObject *kwargs) {
22971 PyObject *resultobj;
22972 wxDateSpan result;
22973 char *kwnames[] = {
22974 NULL
22975 };
22976
22977 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":DateSpan_Year",kwnames)) goto fail;
22978 {
22979 PyThreadState* __tstate = wxPyBeginAllowThreads();
22980 result = wxDateSpan::Year();
22981
22982 wxPyEndAllowThreads(__tstate);
22983 if (PyErr_Occurred()) SWIG_fail;
22984 }
22985 {
22986 wxDateSpan * resultptr;
22987 resultptr = new wxDateSpan((wxDateSpan &) result);
22988 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
22989 }
22990 return resultobj;
22991 fail:
22992 return NULL;
22993 }
22994
22995
22996 static PyObject *_wrap_DateSpan_SetYears(PyObject *self, PyObject *args, PyObject *kwargs) {
22997 PyObject *resultobj;
22998 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
22999 int arg2 ;
23000 wxDateSpan *result;
23001 PyObject * obj0 = 0 ;
23002 PyObject * obj1 = 0 ;
23003 char *kwnames[] = {
23004 (char *) "self",(char *) "n", NULL
23005 };
23006
23007 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetYears",kwnames,&obj0,&obj1)) goto fail;
23008 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23009 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23010 arg2 = (int) SWIG_AsInt(obj1);
23011 if (PyErr_Occurred()) SWIG_fail;
23012 {
23013 PyThreadState* __tstate = wxPyBeginAllowThreads();
23014 {
23015 wxDateSpan &_result_ref = (arg1)->SetYears(arg2);
23016 result = (wxDateSpan *) &_result_ref;
23017 }
23018
23019 wxPyEndAllowThreads(__tstate);
23020 if (PyErr_Occurred()) SWIG_fail;
23021 }
23022 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23023 return resultobj;
23024 fail:
23025 return NULL;
23026 }
23027
23028
23029 static PyObject *_wrap_DateSpan_SetMonths(PyObject *self, PyObject *args, PyObject *kwargs) {
23030 PyObject *resultobj;
23031 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23032 int arg2 ;
23033 wxDateSpan *result;
23034 PyObject * obj0 = 0 ;
23035 PyObject * obj1 = 0 ;
23036 char *kwnames[] = {
23037 (char *) "self",(char *) "n", NULL
23038 };
23039
23040 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetMonths",kwnames,&obj0,&obj1)) goto fail;
23041 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23042 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23043 arg2 = (int) SWIG_AsInt(obj1);
23044 if (PyErr_Occurred()) SWIG_fail;
23045 {
23046 PyThreadState* __tstate = wxPyBeginAllowThreads();
23047 {
23048 wxDateSpan &_result_ref = (arg1)->SetMonths(arg2);
23049 result = (wxDateSpan *) &_result_ref;
23050 }
23051
23052 wxPyEndAllowThreads(__tstate);
23053 if (PyErr_Occurred()) SWIG_fail;
23054 }
23055 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23056 return resultobj;
23057 fail:
23058 return NULL;
23059 }
23060
23061
23062 static PyObject *_wrap_DateSpan_SetWeeks(PyObject *self, PyObject *args, PyObject *kwargs) {
23063 PyObject *resultobj;
23064 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23065 int arg2 ;
23066 wxDateSpan *result;
23067 PyObject * obj0 = 0 ;
23068 PyObject * obj1 = 0 ;
23069 char *kwnames[] = {
23070 (char *) "self",(char *) "n", NULL
23071 };
23072
23073 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetWeeks",kwnames,&obj0,&obj1)) goto fail;
23074 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23075 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23076 arg2 = (int) SWIG_AsInt(obj1);
23077 if (PyErr_Occurred()) SWIG_fail;
23078 {
23079 PyThreadState* __tstate = wxPyBeginAllowThreads();
23080 {
23081 wxDateSpan &_result_ref = (arg1)->SetWeeks(arg2);
23082 result = (wxDateSpan *) &_result_ref;
23083 }
23084
23085 wxPyEndAllowThreads(__tstate);
23086 if (PyErr_Occurred()) SWIG_fail;
23087 }
23088 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23089 return resultobj;
23090 fail:
23091 return NULL;
23092 }
23093
23094
23095 static PyObject *_wrap_DateSpan_SetDays(PyObject *self, PyObject *args, PyObject *kwargs) {
23096 PyObject *resultobj;
23097 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23098 int arg2 ;
23099 wxDateSpan *result;
23100 PyObject * obj0 = 0 ;
23101 PyObject * obj1 = 0 ;
23102 char *kwnames[] = {
23103 (char *) "self",(char *) "n", NULL
23104 };
23105
23106 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_SetDays",kwnames,&obj0,&obj1)) goto fail;
23107 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23108 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23109 arg2 = (int) SWIG_AsInt(obj1);
23110 if (PyErr_Occurred()) SWIG_fail;
23111 {
23112 PyThreadState* __tstate = wxPyBeginAllowThreads();
23113 {
23114 wxDateSpan &_result_ref = (arg1)->SetDays(arg2);
23115 result = (wxDateSpan *) &_result_ref;
23116 }
23117
23118 wxPyEndAllowThreads(__tstate);
23119 if (PyErr_Occurred()) SWIG_fail;
23120 }
23121 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23122 return resultobj;
23123 fail:
23124 return NULL;
23125 }
23126
23127
23128 static PyObject *_wrap_DateSpan_GetYears(PyObject *self, PyObject *args, PyObject *kwargs) {
23129 PyObject *resultobj;
23130 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23131 int result;
23132 PyObject * obj0 = 0 ;
23133 char *kwnames[] = {
23134 (char *) "self", NULL
23135 };
23136
23137 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetYears",kwnames,&obj0)) goto fail;
23138 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23139 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23140 {
23141 PyThreadState* __tstate = wxPyBeginAllowThreads();
23142 result = (int)((wxDateSpan const *)arg1)->GetYears();
23143
23144 wxPyEndAllowThreads(__tstate);
23145 if (PyErr_Occurred()) SWIG_fail;
23146 }
23147 resultobj = SWIG_FromInt((int)result);
23148 return resultobj;
23149 fail:
23150 return NULL;
23151 }
23152
23153
23154 static PyObject *_wrap_DateSpan_GetMonths(PyObject *self, PyObject *args, PyObject *kwargs) {
23155 PyObject *resultobj;
23156 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23157 int result;
23158 PyObject * obj0 = 0 ;
23159 char *kwnames[] = {
23160 (char *) "self", NULL
23161 };
23162
23163 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetMonths",kwnames,&obj0)) goto fail;
23164 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23165 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23166 {
23167 PyThreadState* __tstate = wxPyBeginAllowThreads();
23168 result = (int)((wxDateSpan const *)arg1)->GetMonths();
23169
23170 wxPyEndAllowThreads(__tstate);
23171 if (PyErr_Occurred()) SWIG_fail;
23172 }
23173 resultobj = SWIG_FromInt((int)result);
23174 return resultobj;
23175 fail:
23176 return NULL;
23177 }
23178
23179
23180 static PyObject *_wrap_DateSpan_GetWeeks(PyObject *self, PyObject *args, PyObject *kwargs) {
23181 PyObject *resultobj;
23182 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23183 int result;
23184 PyObject * obj0 = 0 ;
23185 char *kwnames[] = {
23186 (char *) "self", NULL
23187 };
23188
23189 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetWeeks",kwnames,&obj0)) goto fail;
23190 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23191 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23192 {
23193 PyThreadState* __tstate = wxPyBeginAllowThreads();
23194 result = (int)((wxDateSpan const *)arg1)->GetWeeks();
23195
23196 wxPyEndAllowThreads(__tstate);
23197 if (PyErr_Occurred()) SWIG_fail;
23198 }
23199 resultobj = SWIG_FromInt((int)result);
23200 return resultobj;
23201 fail:
23202 return NULL;
23203 }
23204
23205
23206 static PyObject *_wrap_DateSpan_GetDays(PyObject *self, PyObject *args, PyObject *kwargs) {
23207 PyObject *resultobj;
23208 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23209 int result;
23210 PyObject * obj0 = 0 ;
23211 char *kwnames[] = {
23212 (char *) "self", NULL
23213 };
23214
23215 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetDays",kwnames,&obj0)) goto fail;
23216 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23217 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23218 {
23219 PyThreadState* __tstate = wxPyBeginAllowThreads();
23220 result = (int)((wxDateSpan const *)arg1)->GetDays();
23221
23222 wxPyEndAllowThreads(__tstate);
23223 if (PyErr_Occurred()) SWIG_fail;
23224 }
23225 resultobj = SWIG_FromInt((int)result);
23226 return resultobj;
23227 fail:
23228 return NULL;
23229 }
23230
23231
23232 static PyObject *_wrap_DateSpan_GetTotalDays(PyObject *self, PyObject *args, PyObject *kwargs) {
23233 PyObject *resultobj;
23234 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23235 int result;
23236 PyObject * obj0 = 0 ;
23237 char *kwnames[] = {
23238 (char *) "self", NULL
23239 };
23240
23241 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_GetTotalDays",kwnames,&obj0)) goto fail;
23242 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23243 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23244 {
23245 PyThreadState* __tstate = wxPyBeginAllowThreads();
23246 result = (int)((wxDateSpan const *)arg1)->GetTotalDays();
23247
23248 wxPyEndAllowThreads(__tstate);
23249 if (PyErr_Occurred()) SWIG_fail;
23250 }
23251 resultobj = SWIG_FromInt((int)result);
23252 return resultobj;
23253 fail:
23254 return NULL;
23255 }
23256
23257
23258 static PyObject *_wrap_DateSpan_Add(PyObject *self, PyObject *args, PyObject *kwargs) {
23259 PyObject *resultobj;
23260 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23261 wxDateSpan *arg2 = 0 ;
23262 wxDateSpan *result;
23263 PyObject * obj0 = 0 ;
23264 PyObject * obj1 = 0 ;
23265 char *kwnames[] = {
23266 (char *) "self",(char *) "other", NULL
23267 };
23268
23269 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Add",kwnames,&obj0,&obj1)) goto fail;
23270 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23271 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23272 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23273 SWIG_POINTER_EXCEPTION | 0)) == -1)
23274 SWIG_fail;
23275 if (arg2 == NULL) {
23276 PyErr_SetString(PyExc_TypeError,"null reference");
23277 SWIG_fail;
23278 }
23279 {
23280 PyThreadState* __tstate = wxPyBeginAllowThreads();
23281 {
23282 wxDateSpan &_result_ref = (arg1)->Add((wxDateSpan const &)*arg2);
23283 result = (wxDateSpan *) &_result_ref;
23284 }
23285
23286 wxPyEndAllowThreads(__tstate);
23287 if (PyErr_Occurred()) SWIG_fail;
23288 }
23289 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23290 return resultobj;
23291 fail:
23292 return NULL;
23293 }
23294
23295
23296 static PyObject *_wrap_DateSpan_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) {
23297 PyObject *resultobj;
23298 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23299 wxDateSpan *arg2 = 0 ;
23300 wxDateSpan *result;
23301 PyObject * obj0 = 0 ;
23302 PyObject * obj1 = 0 ;
23303 char *kwnames[] = {
23304 (char *) "self",(char *) "other", NULL
23305 };
23306
23307 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Subtract",kwnames,&obj0,&obj1)) goto fail;
23308 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23309 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23310 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23311 SWIG_POINTER_EXCEPTION | 0)) == -1)
23312 SWIG_fail;
23313 if (arg2 == NULL) {
23314 PyErr_SetString(PyExc_TypeError,"null reference");
23315 SWIG_fail;
23316 }
23317 {
23318 PyThreadState* __tstate = wxPyBeginAllowThreads();
23319 {
23320 wxDateSpan &_result_ref = (arg1)->Subtract((wxDateSpan const &)*arg2);
23321 result = (wxDateSpan *) &_result_ref;
23322 }
23323
23324 wxPyEndAllowThreads(__tstate);
23325 if (PyErr_Occurred()) SWIG_fail;
23326 }
23327 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23328 return resultobj;
23329 fail:
23330 return NULL;
23331 }
23332
23333
23334 static PyObject *_wrap_DateSpan_Neg(PyObject *self, PyObject *args, PyObject *kwargs) {
23335 PyObject *resultobj;
23336 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23337 wxDateSpan *result;
23338 PyObject * obj0 = 0 ;
23339 char *kwnames[] = {
23340 (char *) "self", NULL
23341 };
23342
23343 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan_Neg",kwnames,&obj0)) goto fail;
23344 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23345 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23346 {
23347 PyThreadState* __tstate = wxPyBeginAllowThreads();
23348 {
23349 wxDateSpan &_result_ref = (arg1)->Neg();
23350 result = (wxDateSpan *) &_result_ref;
23351 }
23352
23353 wxPyEndAllowThreads(__tstate);
23354 if (PyErr_Occurred()) SWIG_fail;
23355 }
23356 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23357 return resultobj;
23358 fail:
23359 return NULL;
23360 }
23361
23362
23363 static PyObject *_wrap_DateSpan_Multiply(PyObject *self, PyObject *args, PyObject *kwargs) {
23364 PyObject *resultobj;
23365 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23366 int arg2 ;
23367 wxDateSpan *result;
23368 PyObject * obj0 = 0 ;
23369 PyObject * obj1 = 0 ;
23370 char *kwnames[] = {
23371 (char *) "self",(char *) "factor", NULL
23372 };
23373
23374 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan_Multiply",kwnames,&obj0,&obj1)) goto fail;
23375 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23376 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23377 arg2 = (int) SWIG_AsInt(obj1);
23378 if (PyErr_Occurred()) SWIG_fail;
23379 {
23380 PyThreadState* __tstate = wxPyBeginAllowThreads();
23381 {
23382 wxDateSpan &_result_ref = (arg1)->Multiply(arg2);
23383 result = (wxDateSpan *) &_result_ref;
23384 }
23385
23386 wxPyEndAllowThreads(__tstate);
23387 if (PyErr_Occurred()) SWIG_fail;
23388 }
23389 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23390 return resultobj;
23391 fail:
23392 return NULL;
23393 }
23394
23395
23396 static PyObject *_wrap_DateSpan___iadd__(PyObject *self, PyObject *args, PyObject *kwargs) {
23397 PyObject *resultobj;
23398 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23399 wxDateSpan *arg2 = 0 ;
23400 wxDateSpan *result;
23401 PyObject * obj0 = 0 ;
23402 PyObject * obj1 = 0 ;
23403 char *kwnames[] = {
23404 (char *) "self",(char *) "other", NULL
23405 };
23406
23407 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___iadd__",kwnames,&obj0,&obj1)) goto fail;
23408 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23409 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23410 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23411 SWIG_POINTER_EXCEPTION | 0)) == -1)
23412 SWIG_fail;
23413 if (arg2 == NULL) {
23414 PyErr_SetString(PyExc_TypeError,"null reference");
23415 SWIG_fail;
23416 }
23417 {
23418 PyThreadState* __tstate = wxPyBeginAllowThreads();
23419 {
23420 wxDateSpan &_result_ref = (arg1)->operator +=((wxDateSpan const &)*arg2);
23421 result = (wxDateSpan *) &_result_ref;
23422 }
23423
23424 wxPyEndAllowThreads(__tstate);
23425 if (PyErr_Occurred()) SWIG_fail;
23426 }
23427 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23428 return resultobj;
23429 fail:
23430 return NULL;
23431 }
23432
23433
23434 static PyObject *_wrap_DateSpan___isub__(PyObject *self, PyObject *args, PyObject *kwargs) {
23435 PyObject *resultobj;
23436 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23437 wxDateSpan *arg2 = 0 ;
23438 wxDateSpan *result;
23439 PyObject * obj0 = 0 ;
23440 PyObject * obj1 = 0 ;
23441 char *kwnames[] = {
23442 (char *) "self",(char *) "other", NULL
23443 };
23444
23445 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___isub__",kwnames,&obj0,&obj1)) goto fail;
23446 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23447 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23448 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23449 SWIG_POINTER_EXCEPTION | 0)) == -1)
23450 SWIG_fail;
23451 if (arg2 == NULL) {
23452 PyErr_SetString(PyExc_TypeError,"null reference");
23453 SWIG_fail;
23454 }
23455 {
23456 PyThreadState* __tstate = wxPyBeginAllowThreads();
23457 {
23458 wxDateSpan &_result_ref = (arg1)->operator -=((wxDateSpan const &)*arg2);
23459 result = (wxDateSpan *) &_result_ref;
23460 }
23461
23462 wxPyEndAllowThreads(__tstate);
23463 if (PyErr_Occurred()) SWIG_fail;
23464 }
23465 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23466 return resultobj;
23467 fail:
23468 return NULL;
23469 }
23470
23471
23472 static PyObject *_wrap_DateSpan___neg__(PyObject *self, PyObject *args, PyObject *kwargs) {
23473 PyObject *resultobj;
23474 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23475 wxDateSpan *result;
23476 PyObject * obj0 = 0 ;
23477 char *kwnames[] = {
23478 (char *) "self", NULL
23479 };
23480
23481 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DateSpan___neg__",kwnames,&obj0)) goto fail;
23482 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23483 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23484 {
23485 PyThreadState* __tstate = wxPyBeginAllowThreads();
23486 {
23487 wxDateSpan &_result_ref = (arg1)->operator -();
23488 result = (wxDateSpan *) &_result_ref;
23489 }
23490
23491 wxPyEndAllowThreads(__tstate);
23492 if (PyErr_Occurred()) SWIG_fail;
23493 }
23494 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23495 return resultobj;
23496 fail:
23497 return NULL;
23498 }
23499
23500
23501 static PyObject *_wrap_DateSpan___imul__(PyObject *self, PyObject *args, PyObject *kwargs) {
23502 PyObject *resultobj;
23503 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23504 int arg2 ;
23505 wxDateSpan *result;
23506 PyObject * obj0 = 0 ;
23507 PyObject * obj1 = 0 ;
23508 char *kwnames[] = {
23509 (char *) "self",(char *) "factor", NULL
23510 };
23511
23512 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___imul__",kwnames,&obj0,&obj1)) goto fail;
23513 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23514 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23515 arg2 = (int) SWIG_AsInt(obj1);
23516 if (PyErr_Occurred()) SWIG_fail;
23517 {
23518 PyThreadState* __tstate = wxPyBeginAllowThreads();
23519 {
23520 wxDateSpan &_result_ref = (arg1)->operator *=(arg2);
23521 result = (wxDateSpan *) &_result_ref;
23522 }
23523
23524 wxPyEndAllowThreads(__tstate);
23525 if (PyErr_Occurred()) SWIG_fail;
23526 }
23527 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDateSpan, 0);
23528 return resultobj;
23529 fail:
23530 return NULL;
23531 }
23532
23533
23534 static PyObject *_wrap_DateSpan___add__(PyObject *self, PyObject *args, PyObject *kwargs) {
23535 PyObject *resultobj;
23536 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23537 wxDateSpan *arg2 = 0 ;
23538 wxDateSpan result;
23539 PyObject * obj0 = 0 ;
23540 PyObject * obj1 = 0 ;
23541 char *kwnames[] = {
23542 (char *) "self",(char *) "other", NULL
23543 };
23544
23545 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___add__",kwnames,&obj0,&obj1)) goto fail;
23546 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23547 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23548 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23549 SWIG_POINTER_EXCEPTION | 0)) == -1)
23550 SWIG_fail;
23551 if (arg2 == NULL) {
23552 PyErr_SetString(PyExc_TypeError,"null reference");
23553 SWIG_fail;
23554 }
23555 {
23556 PyThreadState* __tstate = wxPyBeginAllowThreads();
23557 result = wxDateSpan___add__(arg1,(wxDateSpan const &)*arg2);
23558
23559 wxPyEndAllowThreads(__tstate);
23560 if (PyErr_Occurred()) SWIG_fail;
23561 }
23562 {
23563 wxDateSpan * resultptr;
23564 resultptr = new wxDateSpan((wxDateSpan &) result);
23565 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
23566 }
23567 return resultobj;
23568 fail:
23569 return NULL;
23570 }
23571
23572
23573 static PyObject *_wrap_DateSpan___sub__(PyObject *self, PyObject *args, PyObject *kwargs) {
23574 PyObject *resultobj;
23575 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23576 wxDateSpan *arg2 = 0 ;
23577 wxDateSpan result;
23578 PyObject * obj0 = 0 ;
23579 PyObject * obj1 = 0 ;
23580 char *kwnames[] = {
23581 (char *) "self",(char *) "other", NULL
23582 };
23583
23584 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___sub__",kwnames,&obj0,&obj1)) goto fail;
23585 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23586 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23587 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23588 SWIG_POINTER_EXCEPTION | 0)) == -1)
23589 SWIG_fail;
23590 if (arg2 == NULL) {
23591 PyErr_SetString(PyExc_TypeError,"null reference");
23592 SWIG_fail;
23593 }
23594 {
23595 PyThreadState* __tstate = wxPyBeginAllowThreads();
23596 result = wxDateSpan___sub__(arg1,(wxDateSpan const &)*arg2);
23597
23598 wxPyEndAllowThreads(__tstate);
23599 if (PyErr_Occurred()) SWIG_fail;
23600 }
23601 {
23602 wxDateSpan * resultptr;
23603 resultptr = new wxDateSpan((wxDateSpan &) result);
23604 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
23605 }
23606 return resultobj;
23607 fail:
23608 return NULL;
23609 }
23610
23611
23612 static PyObject *_wrap_DateSpan___mul__(PyObject *self, PyObject *args, PyObject *kwargs) {
23613 PyObject *resultobj;
23614 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23615 int arg2 ;
23616 wxDateSpan result;
23617 PyObject * obj0 = 0 ;
23618 PyObject * obj1 = 0 ;
23619 char *kwnames[] = {
23620 (char *) "self",(char *) "n", NULL
23621 };
23622
23623 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___mul__",kwnames,&obj0,&obj1)) goto fail;
23624 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23625 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23626 arg2 = (int) SWIG_AsInt(obj1);
23627 if (PyErr_Occurred()) SWIG_fail;
23628 {
23629 PyThreadState* __tstate = wxPyBeginAllowThreads();
23630 result = wxDateSpan___mul__(arg1,arg2);
23631
23632 wxPyEndAllowThreads(__tstate);
23633 if (PyErr_Occurred()) SWIG_fail;
23634 }
23635 {
23636 wxDateSpan * resultptr;
23637 resultptr = new wxDateSpan((wxDateSpan &) result);
23638 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
23639 }
23640 return resultobj;
23641 fail:
23642 return NULL;
23643 }
23644
23645
23646 static PyObject *_wrap_DateSpan___rmul__(PyObject *self, PyObject *args, PyObject *kwargs) {
23647 PyObject *resultobj;
23648 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23649 int arg2 ;
23650 wxDateSpan result;
23651 PyObject * obj0 = 0 ;
23652 PyObject * obj1 = 0 ;
23653 char *kwnames[] = {
23654 (char *) "self",(char *) "n", NULL
23655 };
23656
23657 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___rmul__",kwnames,&obj0,&obj1)) goto fail;
23658 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23659 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23660 arg2 = (int) SWIG_AsInt(obj1);
23661 if (PyErr_Occurred()) SWIG_fail;
23662 {
23663 PyThreadState* __tstate = wxPyBeginAllowThreads();
23664 result = wxDateSpan___rmul__(arg1,arg2);
23665
23666 wxPyEndAllowThreads(__tstate);
23667 if (PyErr_Occurred()) SWIG_fail;
23668 }
23669 {
23670 wxDateSpan * resultptr;
23671 resultptr = new wxDateSpan((wxDateSpan &) result);
23672 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDateSpan, 1);
23673 }
23674 return resultobj;
23675 fail:
23676 return NULL;
23677 }
23678
23679
23680 static PyObject *_wrap_DateSpan___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
23681 PyObject *resultobj;
23682 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23683 wxDateSpan *arg2 = (wxDateSpan *) 0 ;
23684 bool result;
23685 PyObject * obj0 = 0 ;
23686 PyObject * obj1 = 0 ;
23687 char *kwnames[] = {
23688 (char *) "self",(char *) "other", NULL
23689 };
23690
23691 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___eq__",kwnames,&obj0,&obj1)) goto fail;
23692 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23693 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23694 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23695 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23696 {
23697 PyThreadState* __tstate = wxPyBeginAllowThreads();
23698 result = (bool)wxDateSpan___eq__(arg1,(wxDateSpan const *)arg2);
23699
23700 wxPyEndAllowThreads(__tstate);
23701 if (PyErr_Occurred()) SWIG_fail;
23702 }
23703 {
23704 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23705 }
23706 return resultobj;
23707 fail:
23708 return NULL;
23709 }
23710
23711
23712 static PyObject *_wrap_DateSpan___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
23713 PyObject *resultobj;
23714 wxDateSpan *arg1 = (wxDateSpan *) 0 ;
23715 wxDateSpan *arg2 = (wxDateSpan *) 0 ;
23716 bool result;
23717 PyObject * obj0 = 0 ;
23718 PyObject * obj1 = 0 ;
23719 char *kwnames[] = {
23720 (char *) "self",(char *) "other", NULL
23721 };
23722
23723 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateSpan___ne__",kwnames,&obj0,&obj1)) goto fail;
23724 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDateSpan,
23725 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23726 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDateSpan,
23727 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23728 {
23729 PyThreadState* __tstate = wxPyBeginAllowThreads();
23730 result = (bool)wxDateSpan___ne__(arg1,(wxDateSpan const *)arg2);
23731
23732 wxPyEndAllowThreads(__tstate);
23733 if (PyErr_Occurred()) SWIG_fail;
23734 }
23735 {
23736 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23737 }
23738 return resultobj;
23739 fail:
23740 return NULL;
23741 }
23742
23743
23744 static PyObject * DateSpan_swigregister(PyObject *self, PyObject *args) {
23745 PyObject *obj;
23746 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
23747 SWIG_TypeClientData(SWIGTYPE_p_wxDateSpan, obj);
23748 Py_INCREF(obj);
23749 return Py_BuildValue((char *)"");
23750 }
23751 static PyObject *_wrap_GetLocalTime(PyObject *self, PyObject *args, PyObject *kwargs) {
23752 PyObject *resultobj;
23753 long result;
23754 char *kwnames[] = {
23755 NULL
23756 };
23757
23758 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocalTime",kwnames)) goto fail;
23759 {
23760 PyThreadState* __tstate = wxPyBeginAllowThreads();
23761 result = (long)wxGetLocalTime();
23762
23763 wxPyEndAllowThreads(__tstate);
23764 if (PyErr_Occurred()) SWIG_fail;
23765 }
23766 resultobj = SWIG_FromLong((long)result);
23767 return resultobj;
23768 fail:
23769 return NULL;
23770 }
23771
23772
23773 static PyObject *_wrap_GetUTCTime(PyObject *self, PyObject *args, PyObject *kwargs) {
23774 PyObject *resultobj;
23775 long result;
23776 char *kwnames[] = {
23777 NULL
23778 };
23779
23780 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetUTCTime",kwnames)) goto fail;
23781 {
23782 PyThreadState* __tstate = wxPyBeginAllowThreads();
23783 result = (long)wxGetUTCTime();
23784
23785 wxPyEndAllowThreads(__tstate);
23786 if (PyErr_Occurred()) SWIG_fail;
23787 }
23788 resultobj = SWIG_FromLong((long)result);
23789 return resultobj;
23790 fail:
23791 return NULL;
23792 }
23793
23794
23795 static PyObject *_wrap_GetCurrentTime(PyObject *self, PyObject *args, PyObject *kwargs) {
23796 PyObject *resultobj;
23797 long result;
23798 char *kwnames[] = {
23799 NULL
23800 };
23801
23802 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetCurrentTime",kwnames)) goto fail;
23803 {
23804 PyThreadState* __tstate = wxPyBeginAllowThreads();
23805 result = (long)wxGetCurrentTime();
23806
23807 wxPyEndAllowThreads(__tstate);
23808 if (PyErr_Occurred()) SWIG_fail;
23809 }
23810 resultobj = SWIG_FromLong((long)result);
23811 return resultobj;
23812 fail:
23813 return NULL;
23814 }
23815
23816
23817 static PyObject *_wrap_GetLocalTimeMillis(PyObject *self, PyObject *args, PyObject *kwargs) {
23818 PyObject *resultobj;
23819 wxLongLong result;
23820 char *kwnames[] = {
23821 NULL
23822 };
23823
23824 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocalTimeMillis",kwnames)) goto fail;
23825 {
23826 PyThreadState* __tstate = wxPyBeginAllowThreads();
23827 result = wxGetLocalTimeMillis();
23828
23829 wxPyEndAllowThreads(__tstate);
23830 if (PyErr_Occurred()) SWIG_fail;
23831 }
23832 {
23833 PyObject *hi, *lo, *shifter, *shifted;
23834 hi = PyLong_FromLong( (&result)->GetHi() );
23835 lo = PyLong_FromLong( (&result)->GetLo() );
23836 shifter = PyLong_FromLong(32);
23837 shifted = PyNumber_Lshift(hi, shifter);
23838 resultobj = PyNumber_Or(shifted, lo);
23839 Py_DECREF(hi);
23840 Py_DECREF(lo);
23841 Py_DECREF(shifter);
23842 Py_DECREF(shifted);
23843 }
23844 return resultobj;
23845 fail:
23846 return NULL;
23847 }
23848
23849
23850 static int _wrap_DefaultDateTime_set(PyObject *_val) {
23851 PyErr_SetString(PyExc_TypeError,"Variable DefaultDateTime is read-only.");
23852 return 1;
23853 }
23854
23855
23856 static PyObject *_wrap_DefaultDateTime_get() {
23857 PyObject *pyobj;
23858
23859 pyobj = SWIG_NewPointerObj((void *)(&wxDefaultDateTime), SWIGTYPE_p_wxDateTime, 0);
23860 return pyobj;
23861 }
23862
23863
23864 static PyObject *_wrap_new_DataFormat(PyObject *self, PyObject *args, PyObject *kwargs) {
23865 PyObject *resultobj;
23866 int arg1 ;
23867 wxDataFormat *result;
23868 PyObject * obj0 = 0 ;
23869 char *kwnames[] = {
23870 (char *) "type", NULL
23871 };
23872
23873 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_DataFormat",kwnames,&obj0)) goto fail;
23874 arg1 = (wxDataFormatId) SWIG_AsInt(obj0);
23875 if (PyErr_Occurred()) SWIG_fail;
23876 {
23877 PyThreadState* __tstate = wxPyBeginAllowThreads();
23878 result = (wxDataFormat *)new wxDataFormat((wxDataFormatId )arg1);
23879
23880 wxPyEndAllowThreads(__tstate);
23881 if (PyErr_Occurred()) SWIG_fail;
23882 }
23883 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataFormat, 1);
23884 return resultobj;
23885 fail:
23886 return NULL;
23887 }
23888
23889
23890 static PyObject *_wrap_new_CustomDataFormat(PyObject *self, PyObject *args, PyObject *kwargs) {
23891 PyObject *resultobj;
23892 wxString *arg1 = 0 ;
23893 wxDataFormat *result;
23894 bool temp1 = False ;
23895 PyObject * obj0 = 0 ;
23896 char *kwnames[] = {
23897 (char *) "format", NULL
23898 };
23899
23900 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CustomDataFormat",kwnames,&obj0)) goto fail;
23901 {
23902 arg1 = wxString_in_helper(obj0);
23903 if (arg1 == NULL) SWIG_fail;
23904 temp1 = True;
23905 }
23906 {
23907 PyThreadState* __tstate = wxPyBeginAllowThreads();
23908 result = (wxDataFormat *)new wxDataFormat((wxString const &)*arg1);
23909
23910 wxPyEndAllowThreads(__tstate);
23911 if (PyErr_Occurred()) SWIG_fail;
23912 }
23913 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataFormat, 1);
23914 {
23915 if (temp1)
23916 delete arg1;
23917 }
23918 return resultobj;
23919 fail:
23920 {
23921 if (temp1)
23922 delete arg1;
23923 }
23924 return NULL;
23925 }
23926
23927
23928 static PyObject *_wrap_delete_DataFormat(PyObject *self, PyObject *args, PyObject *kwargs) {
23929 PyObject *resultobj;
23930 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
23931 PyObject * obj0 = 0 ;
23932 char *kwnames[] = {
23933 (char *) "self", NULL
23934 };
23935
23936 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DataFormat",kwnames,&obj0)) goto fail;
23937 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
23938 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23939 {
23940 PyThreadState* __tstate = wxPyBeginAllowThreads();
23941 delete arg1;
23942
23943 wxPyEndAllowThreads(__tstate);
23944 if (PyErr_Occurred()) SWIG_fail;
23945 }
23946 Py_INCREF(Py_None); resultobj = Py_None;
23947 return resultobj;
23948 fail:
23949 return NULL;
23950 }
23951
23952
23953 static PyObject *_wrap_DataFormat___eq____SWIG_0(PyObject *self, PyObject *args) {
23954 PyObject *resultobj;
23955 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
23956 int arg2 ;
23957 bool result;
23958 PyObject * obj0 = 0 ;
23959 PyObject * obj1 = 0 ;
23960
23961 if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___eq__",&obj0,&obj1)) goto fail;
23962 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
23963 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23964 arg2 = (wxDataFormatId) SWIG_AsInt(obj1);
23965 if (PyErr_Occurred()) SWIG_fail;
23966 {
23967 PyThreadState* __tstate = wxPyBeginAllowThreads();
23968 result = (bool)((wxDataFormat const *)arg1)->operator ==((wxDataFormatId )arg2);
23969
23970 wxPyEndAllowThreads(__tstate);
23971 if (PyErr_Occurred()) SWIG_fail;
23972 }
23973 {
23974 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23975 }
23976 return resultobj;
23977 fail:
23978 return NULL;
23979 }
23980
23981
23982 static PyObject *_wrap_DataFormat___ne____SWIG_0(PyObject *self, PyObject *args) {
23983 PyObject *resultobj;
23984 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
23985 int arg2 ;
23986 bool result;
23987 PyObject * obj0 = 0 ;
23988 PyObject * obj1 = 0 ;
23989
23990 if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___ne__",&obj0,&obj1)) goto fail;
23991 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
23992 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23993 arg2 = (wxDataFormatId) SWIG_AsInt(obj1);
23994 if (PyErr_Occurred()) SWIG_fail;
23995 {
23996 PyThreadState* __tstate = wxPyBeginAllowThreads();
23997 result = (bool)((wxDataFormat const *)arg1)->operator !=((wxDataFormatId )arg2);
23998
23999 wxPyEndAllowThreads(__tstate);
24000 if (PyErr_Occurred()) SWIG_fail;
24001 }
24002 {
24003 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24004 }
24005 return resultobj;
24006 fail:
24007 return NULL;
24008 }
24009
24010
24011 static PyObject *_wrap_DataFormat___eq____SWIG_1(PyObject *self, PyObject *args) {
24012 PyObject *resultobj;
24013 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
24014 wxDataFormat *arg2 = 0 ;
24015 bool result;
24016 PyObject * obj0 = 0 ;
24017 PyObject * obj1 = 0 ;
24018
24019 if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___eq__",&obj0,&obj1)) goto fail;
24020 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24021 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24022 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
24023 SWIG_POINTER_EXCEPTION | 0)) == -1)
24024 SWIG_fail;
24025 if (arg2 == NULL) {
24026 PyErr_SetString(PyExc_TypeError,"null reference");
24027 SWIG_fail;
24028 }
24029 {
24030 PyThreadState* __tstate = wxPyBeginAllowThreads();
24031 result = (bool)((wxDataFormat const *)arg1)->operator ==((wxDataFormat const &)*arg2);
24032
24033 wxPyEndAllowThreads(__tstate);
24034 if (PyErr_Occurred()) SWIG_fail;
24035 }
24036 {
24037 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24038 }
24039 return resultobj;
24040 fail:
24041 return NULL;
24042 }
24043
24044
24045 static PyObject *_wrap_DataFormat___eq__(PyObject *self, PyObject *args) {
24046 int argc;
24047 PyObject *argv[3];
24048 int ii;
24049
24050 argc = PyObject_Length(args);
24051 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
24052 argv[ii] = PyTuple_GetItem(args,ii);
24053 }
24054 if (argc == 2) {
24055 int _v;
24056 {
24057 void *ptr;
24058 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
24059 _v = 0;
24060 PyErr_Clear();
24061 } else {
24062 _v = 1;
24063 }
24064 }
24065 if (_v) {
24066 {
24067 void *ptr;
24068 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
24069 _v = 0;
24070 PyErr_Clear();
24071 } else {
24072 _v = 1;
24073 }
24074 }
24075 if (_v) {
24076 return _wrap_DataFormat___eq____SWIG_1(self,args);
24077 }
24078 }
24079 }
24080 if (argc == 2) {
24081 int _v;
24082 {
24083 void *ptr;
24084 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
24085 _v = 0;
24086 PyErr_Clear();
24087 } else {
24088 _v = 1;
24089 }
24090 }
24091 if (_v) {
24092 _v = SWIG_CheckInt(argv[1]);
24093 if (_v) {
24094 return _wrap_DataFormat___eq____SWIG_0(self,args);
24095 }
24096 }
24097 }
24098
24099 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DataFormat___eq__'");
24100 return NULL;
24101 }
24102
24103
24104 static PyObject *_wrap_DataFormat___ne____SWIG_1(PyObject *self, PyObject *args) {
24105 PyObject *resultobj;
24106 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
24107 wxDataFormat *arg2 = 0 ;
24108 bool result;
24109 PyObject * obj0 = 0 ;
24110 PyObject * obj1 = 0 ;
24111
24112 if(!PyArg_ParseTuple(args,(char *)"OO:DataFormat___ne__",&obj0,&obj1)) goto fail;
24113 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24114 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24115 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
24116 SWIG_POINTER_EXCEPTION | 0)) == -1)
24117 SWIG_fail;
24118 if (arg2 == NULL) {
24119 PyErr_SetString(PyExc_TypeError,"null reference");
24120 SWIG_fail;
24121 }
24122 {
24123 PyThreadState* __tstate = wxPyBeginAllowThreads();
24124 result = (bool)((wxDataFormat const *)arg1)->operator !=((wxDataFormat const &)*arg2);
24125
24126 wxPyEndAllowThreads(__tstate);
24127 if (PyErr_Occurred()) SWIG_fail;
24128 }
24129 {
24130 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24131 }
24132 return resultobj;
24133 fail:
24134 return NULL;
24135 }
24136
24137
24138 static PyObject *_wrap_DataFormat___ne__(PyObject *self, PyObject *args) {
24139 int argc;
24140 PyObject *argv[3];
24141 int ii;
24142
24143 argc = PyObject_Length(args);
24144 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
24145 argv[ii] = PyTuple_GetItem(args,ii);
24146 }
24147 if (argc == 2) {
24148 int _v;
24149 {
24150 void *ptr;
24151 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
24152 _v = 0;
24153 PyErr_Clear();
24154 } else {
24155 _v = 1;
24156 }
24157 }
24158 if (_v) {
24159 {
24160 void *ptr;
24161 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
24162 _v = 0;
24163 PyErr_Clear();
24164 } else {
24165 _v = 1;
24166 }
24167 }
24168 if (_v) {
24169 return _wrap_DataFormat___ne____SWIG_1(self,args);
24170 }
24171 }
24172 }
24173 if (argc == 2) {
24174 int _v;
24175 {
24176 void *ptr;
24177 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDataFormat, 0) == -1) {
24178 _v = 0;
24179 PyErr_Clear();
24180 } else {
24181 _v = 1;
24182 }
24183 }
24184 if (_v) {
24185 _v = SWIG_CheckInt(argv[1]);
24186 if (_v) {
24187 return _wrap_DataFormat___ne____SWIG_0(self,args);
24188 }
24189 }
24190 }
24191
24192 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'DataFormat___ne__'");
24193 return NULL;
24194 }
24195
24196
24197 static PyObject *_wrap_DataFormat_SetType(PyObject *self, PyObject *args, PyObject *kwargs) {
24198 PyObject *resultobj;
24199 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
24200 int arg2 ;
24201 PyObject * obj0 = 0 ;
24202 PyObject * obj1 = 0 ;
24203 char *kwnames[] = {
24204 (char *) "self",(char *) "format", NULL
24205 };
24206
24207 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataFormat_SetType",kwnames,&obj0,&obj1)) goto fail;
24208 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24209 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24210 arg2 = (wxDataFormatId) SWIG_AsInt(obj1);
24211 if (PyErr_Occurred()) SWIG_fail;
24212 {
24213 PyThreadState* __tstate = wxPyBeginAllowThreads();
24214 (arg1)->SetType((wxDataFormatId )arg2);
24215
24216 wxPyEndAllowThreads(__tstate);
24217 if (PyErr_Occurred()) SWIG_fail;
24218 }
24219 Py_INCREF(Py_None); resultobj = Py_None;
24220 return resultobj;
24221 fail:
24222 return NULL;
24223 }
24224
24225
24226 static PyObject *_wrap_DataFormat_GetType(PyObject *self, PyObject *args, PyObject *kwargs) {
24227 PyObject *resultobj;
24228 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
24229 int result;
24230 PyObject * obj0 = 0 ;
24231 char *kwnames[] = {
24232 (char *) "self", NULL
24233 };
24234
24235 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataFormat_GetType",kwnames,&obj0)) goto fail;
24236 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24237 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24238 {
24239 PyThreadState* __tstate = wxPyBeginAllowThreads();
24240 result = (int)((wxDataFormat const *)arg1)->GetType();
24241
24242 wxPyEndAllowThreads(__tstate);
24243 if (PyErr_Occurred()) SWIG_fail;
24244 }
24245 resultobj = SWIG_FromInt((int)result);
24246 return resultobj;
24247 fail:
24248 return NULL;
24249 }
24250
24251
24252 static PyObject *_wrap_DataFormat_GetId(PyObject *self, PyObject *args, PyObject *kwargs) {
24253 PyObject *resultobj;
24254 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
24255 wxString result;
24256 PyObject * obj0 = 0 ;
24257 char *kwnames[] = {
24258 (char *) "self", NULL
24259 };
24260
24261 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataFormat_GetId",kwnames,&obj0)) goto fail;
24262 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24263 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24264 {
24265 PyThreadState* __tstate = wxPyBeginAllowThreads();
24266 result = ((wxDataFormat const *)arg1)->GetId();
24267
24268 wxPyEndAllowThreads(__tstate);
24269 if (PyErr_Occurred()) SWIG_fail;
24270 }
24271 {
24272 #if wxUSE_UNICODE
24273 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
24274 #else
24275 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
24276 #endif
24277 }
24278 return resultobj;
24279 fail:
24280 return NULL;
24281 }
24282
24283
24284 static PyObject *_wrap_DataFormat_SetId(PyObject *self, PyObject *args, PyObject *kwargs) {
24285 PyObject *resultobj;
24286 wxDataFormat *arg1 = (wxDataFormat *) 0 ;
24287 wxString *arg2 = 0 ;
24288 bool temp2 = False ;
24289 PyObject * obj0 = 0 ;
24290 PyObject * obj1 = 0 ;
24291 char *kwnames[] = {
24292 (char *) "self",(char *) "format", NULL
24293 };
24294
24295 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataFormat_SetId",kwnames,&obj0,&obj1)) goto fail;
24296 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24297 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24298 {
24299 arg2 = wxString_in_helper(obj1);
24300 if (arg2 == NULL) SWIG_fail;
24301 temp2 = True;
24302 }
24303 {
24304 PyThreadState* __tstate = wxPyBeginAllowThreads();
24305 (arg1)->SetId((wxString const &)*arg2);
24306
24307 wxPyEndAllowThreads(__tstate);
24308 if (PyErr_Occurred()) SWIG_fail;
24309 }
24310 Py_INCREF(Py_None); resultobj = Py_None;
24311 {
24312 if (temp2)
24313 delete arg2;
24314 }
24315 return resultobj;
24316 fail:
24317 {
24318 if (temp2)
24319 delete arg2;
24320 }
24321 return NULL;
24322 }
24323
24324
24325 static PyObject * DataFormat_swigregister(PyObject *self, PyObject *args) {
24326 PyObject *obj;
24327 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24328 SWIG_TypeClientData(SWIGTYPE_p_wxDataFormat, obj);
24329 Py_INCREF(obj);
24330 return Py_BuildValue((char *)"");
24331 }
24332 static int _wrap_FormatInvalid_set(PyObject *_val) {
24333 PyErr_SetString(PyExc_TypeError,"Variable FormatInvalid is read-only.");
24334 return 1;
24335 }
24336
24337
24338 static PyObject *_wrap_FormatInvalid_get() {
24339 PyObject *pyobj;
24340
24341 pyobj = SWIG_NewPointerObj((void *)(&wxFormatInvalid), SWIGTYPE_p_wxDataFormat, 0);
24342 return pyobj;
24343 }
24344
24345
24346 static PyObject *_wrap_delete_DataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
24347 PyObject *resultobj;
24348 wxDataObject *arg1 = (wxDataObject *) 0 ;
24349 PyObject * obj0 = 0 ;
24350 char *kwnames[] = {
24351 (char *) "self", NULL
24352 };
24353
24354 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DataObject",kwnames,&obj0)) goto fail;
24355 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24356 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24357 {
24358 PyThreadState* __tstate = wxPyBeginAllowThreads();
24359 delete arg1;
24360
24361 wxPyEndAllowThreads(__tstate);
24362 if (PyErr_Occurred()) SWIG_fail;
24363 }
24364 Py_INCREF(Py_None); resultobj = Py_None;
24365 return resultobj;
24366 fail:
24367 return NULL;
24368 }
24369
24370
24371 static PyObject *_wrap_DataObject_GetPreferredFormat(PyObject *self, PyObject *args, PyObject *kwargs) {
24372 PyObject *resultobj;
24373 wxDataObject *arg1 = (wxDataObject *) 0 ;
24374 int arg2 = (int) wxDataObject::Get ;
24375 SwigValueWrapper< wxDataFormat > result;
24376 PyObject * obj0 = 0 ;
24377 PyObject * obj1 = 0 ;
24378 char *kwnames[] = {
24379 (char *) "self",(char *) "dir", NULL
24380 };
24381
24382 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DataObject_GetPreferredFormat",kwnames,&obj0,&obj1)) goto fail;
24383 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24384 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24385 if (obj1) {
24386 arg2 = (wxDataObject::Direction) SWIG_AsInt(obj1);
24387 if (PyErr_Occurred()) SWIG_fail;
24388 }
24389 {
24390 PyThreadState* __tstate = wxPyBeginAllowThreads();
24391 result = ((wxDataObject const *)arg1)->GetPreferredFormat((wxDataObject::Direction )arg2);
24392
24393 wxPyEndAllowThreads(__tstate);
24394 if (PyErr_Occurred()) SWIG_fail;
24395 }
24396 {
24397 wxDataFormat * resultptr;
24398 resultptr = new wxDataFormat((wxDataFormat &) result);
24399 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxDataFormat, 1);
24400 }
24401 return resultobj;
24402 fail:
24403 return NULL;
24404 }
24405
24406
24407 static PyObject *_wrap_DataObject_GetFormatCount(PyObject *self, PyObject *args, PyObject *kwargs) {
24408 PyObject *resultobj;
24409 wxDataObject *arg1 = (wxDataObject *) 0 ;
24410 int arg2 = (int) wxDataObject::Get ;
24411 size_t result;
24412 PyObject * obj0 = 0 ;
24413 PyObject * obj1 = 0 ;
24414 char *kwnames[] = {
24415 (char *) "self",(char *) "dir", NULL
24416 };
24417
24418 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DataObject_GetFormatCount",kwnames,&obj0,&obj1)) goto fail;
24419 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24420 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24421 if (obj1) {
24422 arg2 = (wxDataObject::Direction) SWIG_AsInt(obj1);
24423 if (PyErr_Occurred()) SWIG_fail;
24424 }
24425 {
24426 PyThreadState* __tstate = wxPyBeginAllowThreads();
24427 result = (size_t)((wxDataObject const *)arg1)->GetFormatCount((wxDataObject::Direction )arg2);
24428
24429 wxPyEndAllowThreads(__tstate);
24430 if (PyErr_Occurred()) SWIG_fail;
24431 }
24432 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
24433 return resultobj;
24434 fail:
24435 return NULL;
24436 }
24437
24438
24439 static PyObject *_wrap_DataObject_IsSupported(PyObject *self, PyObject *args, PyObject *kwargs) {
24440 PyObject *resultobj;
24441 wxDataObject *arg1 = (wxDataObject *) 0 ;
24442 wxDataFormat *arg2 = 0 ;
24443 int arg3 = (int) wxDataObject::Get ;
24444 bool result;
24445 PyObject * obj0 = 0 ;
24446 PyObject * obj1 = 0 ;
24447 PyObject * obj2 = 0 ;
24448 char *kwnames[] = {
24449 (char *) "self",(char *) "format",(char *) "dir", NULL
24450 };
24451
24452 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DataObject_IsSupported",kwnames,&obj0,&obj1,&obj2)) goto fail;
24453 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24454 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24455 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
24456 SWIG_POINTER_EXCEPTION | 0)) == -1)
24457 SWIG_fail;
24458 if (arg2 == NULL) {
24459 PyErr_SetString(PyExc_TypeError,"null reference");
24460 SWIG_fail;
24461 }
24462 if (obj2) {
24463 arg3 = (wxDataObject::Direction) SWIG_AsInt(obj2);
24464 if (PyErr_Occurred()) SWIG_fail;
24465 }
24466 {
24467 PyThreadState* __tstate = wxPyBeginAllowThreads();
24468 result = (bool)((wxDataObject const *)arg1)->IsSupported((wxDataFormat const &)*arg2,(wxDataObject::Direction )arg3);
24469
24470 wxPyEndAllowThreads(__tstate);
24471 if (PyErr_Occurred()) SWIG_fail;
24472 }
24473 {
24474 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24475 }
24476 return resultobj;
24477 fail:
24478 return NULL;
24479 }
24480
24481
24482 static PyObject *_wrap_DataObject_GetDataSize(PyObject *self, PyObject *args, PyObject *kwargs) {
24483 PyObject *resultobj;
24484 wxDataObject *arg1 = (wxDataObject *) 0 ;
24485 wxDataFormat *arg2 = 0 ;
24486 size_t result;
24487 PyObject * obj0 = 0 ;
24488 PyObject * obj1 = 0 ;
24489 char *kwnames[] = {
24490 (char *) "self",(char *) "format", NULL
24491 };
24492
24493 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObject_GetDataSize",kwnames,&obj0,&obj1)) goto fail;
24494 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24495 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24496 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
24497 SWIG_POINTER_EXCEPTION | 0)) == -1)
24498 SWIG_fail;
24499 if (arg2 == NULL) {
24500 PyErr_SetString(PyExc_TypeError,"null reference");
24501 SWIG_fail;
24502 }
24503 {
24504 PyThreadState* __tstate = wxPyBeginAllowThreads();
24505 result = (size_t)((wxDataObject const *)arg1)->GetDataSize((wxDataFormat const &)*arg2);
24506
24507 wxPyEndAllowThreads(__tstate);
24508 if (PyErr_Occurred()) SWIG_fail;
24509 }
24510 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
24511 return resultobj;
24512 fail:
24513 return NULL;
24514 }
24515
24516
24517 static PyObject *_wrap_DataObject_GetAllFormats(PyObject *self, PyObject *args, PyObject *kwargs) {
24518 PyObject *resultobj;
24519 wxDataObject *arg1 = (wxDataObject *) 0 ;
24520 int arg2 = (int) wxDataObject::Get ;
24521 PyObject *result;
24522 PyObject * obj0 = 0 ;
24523 PyObject * obj1 = 0 ;
24524 char *kwnames[] = {
24525 (char *) "self",(char *) "dir", NULL
24526 };
24527
24528 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DataObject_GetAllFormats",kwnames,&obj0,&obj1)) goto fail;
24529 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24530 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24531 if (obj1) {
24532 arg2 = (wxDataObject::Direction) SWIG_AsInt(obj1);
24533 if (PyErr_Occurred()) SWIG_fail;
24534 }
24535 {
24536 PyThreadState* __tstate = wxPyBeginAllowThreads();
24537 result = (PyObject *)wxDataObject_GetAllFormats(arg1,(wxDataObject::Direction )arg2);
24538
24539 wxPyEndAllowThreads(__tstate);
24540 if (PyErr_Occurred()) SWIG_fail;
24541 }
24542 resultobj = result;
24543 return resultobj;
24544 fail:
24545 return NULL;
24546 }
24547
24548
24549 static PyObject *_wrap_DataObject_GetDataHere(PyObject *self, PyObject *args, PyObject *kwargs) {
24550 PyObject *resultobj;
24551 wxDataObject *arg1 = (wxDataObject *) 0 ;
24552 wxDataFormat *arg2 = 0 ;
24553 PyObject *result;
24554 PyObject * obj0 = 0 ;
24555 PyObject * obj1 = 0 ;
24556 char *kwnames[] = {
24557 (char *) "self",(char *) "format", NULL
24558 };
24559
24560 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObject_GetDataHere",kwnames,&obj0,&obj1)) goto fail;
24561 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24562 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24563 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
24564 SWIG_POINTER_EXCEPTION | 0)) == -1)
24565 SWIG_fail;
24566 if (arg2 == NULL) {
24567 PyErr_SetString(PyExc_TypeError,"null reference");
24568 SWIG_fail;
24569 }
24570 {
24571 PyThreadState* __tstate = wxPyBeginAllowThreads();
24572 result = (PyObject *)wxDataObject_GetDataHere(arg1,(wxDataFormat const &)*arg2);
24573
24574 wxPyEndAllowThreads(__tstate);
24575 if (PyErr_Occurred()) SWIG_fail;
24576 }
24577 resultobj = result;
24578 return resultobj;
24579 fail:
24580 return NULL;
24581 }
24582
24583
24584 static PyObject *_wrap_DataObject_SetData(PyObject *self, PyObject *args, PyObject *kwargs) {
24585 PyObject *resultobj;
24586 wxDataObject *arg1 = (wxDataObject *) 0 ;
24587 wxDataFormat *arg2 = 0 ;
24588 PyObject *arg3 = (PyObject *) 0 ;
24589 bool result;
24590 PyObject * obj0 = 0 ;
24591 PyObject * obj1 = 0 ;
24592 PyObject * obj2 = 0 ;
24593 char *kwnames[] = {
24594 (char *) "self",(char *) "format",(char *) "data", NULL
24595 };
24596
24597 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DataObject_SetData",kwnames,&obj0,&obj1,&obj2)) goto fail;
24598 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
24599 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24600 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
24601 SWIG_POINTER_EXCEPTION | 0)) == -1)
24602 SWIG_fail;
24603 if (arg2 == NULL) {
24604 PyErr_SetString(PyExc_TypeError,"null reference");
24605 SWIG_fail;
24606 }
24607 arg3 = obj2;
24608 {
24609 PyThreadState* __tstate = wxPyBeginAllowThreads();
24610 result = (bool)wxDataObject_SetData(arg1,(wxDataFormat const &)*arg2,arg3);
24611
24612 wxPyEndAllowThreads(__tstate);
24613 if (PyErr_Occurred()) SWIG_fail;
24614 }
24615 {
24616 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24617 }
24618 return resultobj;
24619 fail:
24620 return NULL;
24621 }
24622
24623
24624 static PyObject * DataObject_swigregister(PyObject *self, PyObject *args) {
24625 PyObject *obj;
24626 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24627 SWIG_TypeClientData(SWIGTYPE_p_wxDataObject, obj);
24628 Py_INCREF(obj);
24629 return Py_BuildValue((char *)"");
24630 }
24631 static PyObject *_wrap_new_DataObjectSimple(PyObject *self, PyObject *args, PyObject *kwargs) {
24632 PyObject *resultobj;
24633 wxDataFormat const &arg1_defvalue = wxFormatInvalid ;
24634 wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ;
24635 wxDataObjectSimple *result;
24636 PyObject * obj0 = 0 ;
24637 char *kwnames[] = {
24638 (char *) "format", NULL
24639 };
24640
24641 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_DataObjectSimple",kwnames,&obj0)) goto fail;
24642 if (obj0) {
24643 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24644 SWIG_POINTER_EXCEPTION | 0)) == -1)
24645 SWIG_fail;
24646 if (arg1 == NULL) {
24647 PyErr_SetString(PyExc_TypeError,"null reference");
24648 SWIG_fail;
24649 }
24650 }
24651 {
24652 PyThreadState* __tstate = wxPyBeginAllowThreads();
24653 result = (wxDataObjectSimple *)new wxDataObjectSimple((wxDataFormat const &)*arg1);
24654
24655 wxPyEndAllowThreads(__tstate);
24656 if (PyErr_Occurred()) SWIG_fail;
24657 }
24658 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObjectSimple, 1);
24659 return resultobj;
24660 fail:
24661 return NULL;
24662 }
24663
24664
24665 static PyObject *_wrap_DataObjectSimple_GetFormat(PyObject *self, PyObject *args, PyObject *kwargs) {
24666 PyObject *resultobj;
24667 wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ;
24668 wxDataFormat *result;
24669 PyObject * obj0 = 0 ;
24670 char *kwnames[] = {
24671 (char *) "self", NULL
24672 };
24673
24674 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataObjectSimple_GetFormat",kwnames,&obj0)) goto fail;
24675 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple,
24676 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24677 {
24678 PyThreadState* __tstate = wxPyBeginAllowThreads();
24679 {
24680 wxDataFormat const &_result_ref = (arg1)->GetFormat();
24681 result = (wxDataFormat *) &_result_ref;
24682 }
24683
24684 wxPyEndAllowThreads(__tstate);
24685 if (PyErr_Occurred()) SWIG_fail;
24686 }
24687 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataFormat, 0);
24688 return resultobj;
24689 fail:
24690 return NULL;
24691 }
24692
24693
24694 static PyObject *_wrap_DataObjectSimple_SetFormat(PyObject *self, PyObject *args, PyObject *kwargs) {
24695 PyObject *resultobj;
24696 wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ;
24697 wxDataFormat *arg2 = 0 ;
24698 PyObject * obj0 = 0 ;
24699 PyObject * obj1 = 0 ;
24700 char *kwnames[] = {
24701 (char *) "self",(char *) "format", NULL
24702 };
24703
24704 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObjectSimple_SetFormat",kwnames,&obj0,&obj1)) goto fail;
24705 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple,
24706 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24707 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
24708 SWIG_POINTER_EXCEPTION | 0)) == -1)
24709 SWIG_fail;
24710 if (arg2 == NULL) {
24711 PyErr_SetString(PyExc_TypeError,"null reference");
24712 SWIG_fail;
24713 }
24714 {
24715 PyThreadState* __tstate = wxPyBeginAllowThreads();
24716 (arg1)->SetFormat((wxDataFormat const &)*arg2);
24717
24718 wxPyEndAllowThreads(__tstate);
24719 if (PyErr_Occurred()) SWIG_fail;
24720 }
24721 Py_INCREF(Py_None); resultobj = Py_None;
24722 return resultobj;
24723 fail:
24724 return NULL;
24725 }
24726
24727
24728 static PyObject *_wrap_DataObjectSimple_GetDataSize(PyObject *self, PyObject *args, PyObject *kwargs) {
24729 PyObject *resultobj;
24730 wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ;
24731 size_t result;
24732 PyObject * obj0 = 0 ;
24733 char *kwnames[] = {
24734 (char *) "self", NULL
24735 };
24736
24737 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataObjectSimple_GetDataSize",kwnames,&obj0)) goto fail;
24738 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple,
24739 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24740 {
24741 PyThreadState* __tstate = wxPyBeginAllowThreads();
24742 result = (size_t)((wxDataObjectSimple const *)arg1)->GetDataSize();
24743
24744 wxPyEndAllowThreads(__tstate);
24745 if (PyErr_Occurred()) SWIG_fail;
24746 }
24747 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
24748 return resultobj;
24749 fail:
24750 return NULL;
24751 }
24752
24753
24754 static PyObject *_wrap_DataObjectSimple_GetDataHere(PyObject *self, PyObject *args, PyObject *kwargs) {
24755 PyObject *resultobj;
24756 wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ;
24757 PyObject *result;
24758 PyObject * obj0 = 0 ;
24759 char *kwnames[] = {
24760 (char *) "self", NULL
24761 };
24762
24763 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DataObjectSimple_GetDataHere",kwnames,&obj0)) goto fail;
24764 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple,
24765 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24766 {
24767 PyThreadState* __tstate = wxPyBeginAllowThreads();
24768 result = (PyObject *)wxDataObjectSimple_GetDataHere(arg1);
24769
24770 wxPyEndAllowThreads(__tstate);
24771 if (PyErr_Occurred()) SWIG_fail;
24772 }
24773 resultobj = result;
24774 return resultobj;
24775 fail:
24776 return NULL;
24777 }
24778
24779
24780 static PyObject *_wrap_DataObjectSimple_SetData(PyObject *self, PyObject *args, PyObject *kwargs) {
24781 PyObject *resultobj;
24782 wxDataObjectSimple *arg1 = (wxDataObjectSimple *) 0 ;
24783 PyObject *arg2 = (PyObject *) 0 ;
24784 bool result;
24785 PyObject * obj0 = 0 ;
24786 PyObject * obj1 = 0 ;
24787 char *kwnames[] = {
24788 (char *) "self",(char *) "data", NULL
24789 };
24790
24791 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DataObjectSimple_SetData",kwnames,&obj0,&obj1)) goto fail;
24792 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectSimple,
24793 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24794 arg2 = obj1;
24795 {
24796 PyThreadState* __tstate = wxPyBeginAllowThreads();
24797 result = (bool)wxDataObjectSimple_SetData(arg1,arg2);
24798
24799 wxPyEndAllowThreads(__tstate);
24800 if (PyErr_Occurred()) SWIG_fail;
24801 }
24802 {
24803 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24804 }
24805 return resultobj;
24806 fail:
24807 return NULL;
24808 }
24809
24810
24811 static PyObject * DataObjectSimple_swigregister(PyObject *self, PyObject *args) {
24812 PyObject *obj;
24813 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24814 SWIG_TypeClientData(SWIGTYPE_p_wxDataObjectSimple, obj);
24815 Py_INCREF(obj);
24816 return Py_BuildValue((char *)"");
24817 }
24818 static PyObject *_wrap_new_PyDataObjectSimple(PyObject *self, PyObject *args, PyObject *kwargs) {
24819 PyObject *resultobj;
24820 wxDataFormat const &arg1_defvalue = wxFormatInvalid ;
24821 wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ;
24822 wxPyDataObjectSimple *result;
24823 PyObject * obj0 = 0 ;
24824 char *kwnames[] = {
24825 (char *) "format", NULL
24826 };
24827
24828 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyDataObjectSimple",kwnames,&obj0)) goto fail;
24829 if (obj0) {
24830 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
24831 SWIG_POINTER_EXCEPTION | 0)) == -1)
24832 SWIG_fail;
24833 if (arg1 == NULL) {
24834 PyErr_SetString(PyExc_TypeError,"null reference");
24835 SWIG_fail;
24836 }
24837 }
24838 {
24839 PyThreadState* __tstate = wxPyBeginAllowThreads();
24840 result = (wxPyDataObjectSimple *)new wxPyDataObjectSimple((wxDataFormat const &)*arg1);
24841
24842 wxPyEndAllowThreads(__tstate);
24843 if (PyErr_Occurred()) SWIG_fail;
24844 }
24845 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDataObjectSimple, 1);
24846 return resultobj;
24847 fail:
24848 return NULL;
24849 }
24850
24851
24852 static PyObject *_wrap_PyDataObjectSimple__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
24853 PyObject *resultobj;
24854 wxPyDataObjectSimple *arg1 = (wxPyDataObjectSimple *) 0 ;
24855 PyObject *arg2 = (PyObject *) 0 ;
24856 PyObject *arg3 = (PyObject *) 0 ;
24857 PyObject * obj0 = 0 ;
24858 PyObject * obj1 = 0 ;
24859 PyObject * obj2 = 0 ;
24860 char *kwnames[] = {
24861 (char *) "self",(char *) "self",(char *) "_class", NULL
24862 };
24863
24864 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyDataObjectSimple__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
24865 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDataObjectSimple,
24866 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24867 arg2 = obj1;
24868 arg3 = obj2;
24869 {
24870 PyThreadState* __tstate = wxPyBeginAllowThreads();
24871 (arg1)->_setCallbackInfo(arg2,arg3);
24872
24873 wxPyEndAllowThreads(__tstate);
24874 if (PyErr_Occurred()) SWIG_fail;
24875 }
24876 Py_INCREF(Py_None); resultobj = Py_None;
24877 return resultobj;
24878 fail:
24879 return NULL;
24880 }
24881
24882
24883 static PyObject * PyDataObjectSimple_swigregister(PyObject *self, PyObject *args) {
24884 PyObject *obj;
24885 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24886 SWIG_TypeClientData(SWIGTYPE_p_wxPyDataObjectSimple, obj);
24887 Py_INCREF(obj);
24888 return Py_BuildValue((char *)"");
24889 }
24890 static PyObject *_wrap_new_DataObjectComposite(PyObject *self, PyObject *args, PyObject *kwargs) {
24891 PyObject *resultobj;
24892 wxDataObjectComposite *result;
24893 char *kwnames[] = {
24894 NULL
24895 };
24896
24897 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_DataObjectComposite",kwnames)) goto fail;
24898 {
24899 PyThreadState* __tstate = wxPyBeginAllowThreads();
24900 result = (wxDataObjectComposite *)new wxDataObjectComposite();
24901
24902 wxPyEndAllowThreads(__tstate);
24903 if (PyErr_Occurred()) SWIG_fail;
24904 }
24905 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObjectComposite, 1);
24906 return resultobj;
24907 fail:
24908 return NULL;
24909 }
24910
24911
24912 static PyObject *_wrap_DataObjectComposite_Add(PyObject *self, PyObject *args, PyObject *kwargs) {
24913 PyObject *resultobj;
24914 wxDataObjectComposite *arg1 = (wxDataObjectComposite *) 0 ;
24915 wxDataObjectSimple *arg2 = (wxDataObjectSimple *) 0 ;
24916 bool arg3 = (bool) False ;
24917 PyObject * obj0 = 0 ;
24918 PyObject * obj1 = 0 ;
24919 PyObject * obj2 = 0 ;
24920 char *kwnames[] = {
24921 (char *) "self",(char *) "dataObject",(char *) "preferred", NULL
24922 };
24923
24924 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DataObjectComposite_Add",kwnames,&obj0,&obj1,&obj2)) goto fail;
24925 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObjectComposite,
24926 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24927 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObjectSimple,
24928 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
24929 if (obj2) {
24930 arg3 = (bool) SWIG_AsBool(obj2);
24931 if (PyErr_Occurred()) SWIG_fail;
24932 }
24933 {
24934 PyThreadState* __tstate = wxPyBeginAllowThreads();
24935 (arg1)->Add(arg2,arg3);
24936
24937 wxPyEndAllowThreads(__tstate);
24938 if (PyErr_Occurred()) SWIG_fail;
24939 }
24940 Py_INCREF(Py_None); resultobj = Py_None;
24941 return resultobj;
24942 fail:
24943 return NULL;
24944 }
24945
24946
24947 static PyObject * DataObjectComposite_swigregister(PyObject *self, PyObject *args) {
24948 PyObject *obj;
24949 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24950 SWIG_TypeClientData(SWIGTYPE_p_wxDataObjectComposite, obj);
24951 Py_INCREF(obj);
24952 return Py_BuildValue((char *)"");
24953 }
24954 static PyObject *_wrap_new_TextDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
24955 PyObject *resultobj;
24956 wxString const &arg1_defvalue = wxPyEmptyString ;
24957 wxString *arg1 = (wxString *) &arg1_defvalue ;
24958 wxTextDataObject *result;
24959 bool temp1 = False ;
24960 PyObject * obj0 = 0 ;
24961 char *kwnames[] = {
24962 (char *) "text", NULL
24963 };
24964
24965 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TextDataObject",kwnames,&obj0)) goto fail;
24966 if (obj0) {
24967 {
24968 arg1 = wxString_in_helper(obj0);
24969 if (arg1 == NULL) SWIG_fail;
24970 temp1 = True;
24971 }
24972 }
24973 {
24974 PyThreadState* __tstate = wxPyBeginAllowThreads();
24975 result = (wxTextDataObject *)new wxTextDataObject((wxString const &)*arg1);
24976
24977 wxPyEndAllowThreads(__tstate);
24978 if (PyErr_Occurred()) SWIG_fail;
24979 }
24980 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextDataObject, 1);
24981 {
24982 if (temp1)
24983 delete arg1;
24984 }
24985 return resultobj;
24986 fail:
24987 {
24988 if (temp1)
24989 delete arg1;
24990 }
24991 return NULL;
24992 }
24993
24994
24995 static PyObject *_wrap_TextDataObject_GetTextLength(PyObject *self, PyObject *args, PyObject *kwargs) {
24996 PyObject *resultobj;
24997 wxTextDataObject *arg1 = (wxTextDataObject *) 0 ;
24998 size_t result;
24999 PyObject * obj0 = 0 ;
25000 char *kwnames[] = {
25001 (char *) "self", NULL
25002 };
25003
25004 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDataObject_GetTextLength",kwnames,&obj0)) goto fail;
25005 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextDataObject,
25006 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25007 {
25008 PyThreadState* __tstate = wxPyBeginAllowThreads();
25009 result = (size_t)(arg1)->GetTextLength();
25010
25011 wxPyEndAllowThreads(__tstate);
25012 if (PyErr_Occurred()) SWIG_fail;
25013 }
25014 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
25015 return resultobj;
25016 fail:
25017 return NULL;
25018 }
25019
25020
25021 static PyObject *_wrap_TextDataObject_GetText(PyObject *self, PyObject *args, PyObject *kwargs) {
25022 PyObject *resultobj;
25023 wxTextDataObject *arg1 = (wxTextDataObject *) 0 ;
25024 wxString result;
25025 PyObject * obj0 = 0 ;
25026 char *kwnames[] = {
25027 (char *) "self", NULL
25028 };
25029
25030 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDataObject_GetText",kwnames,&obj0)) goto fail;
25031 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextDataObject,
25032 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25033 {
25034 PyThreadState* __tstate = wxPyBeginAllowThreads();
25035 result = (arg1)->GetText();
25036
25037 wxPyEndAllowThreads(__tstate);
25038 if (PyErr_Occurred()) SWIG_fail;
25039 }
25040 {
25041 #if wxUSE_UNICODE
25042 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
25043 #else
25044 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
25045 #endif
25046 }
25047 return resultobj;
25048 fail:
25049 return NULL;
25050 }
25051
25052
25053 static PyObject *_wrap_TextDataObject_SetText(PyObject *self, PyObject *args, PyObject *kwargs) {
25054 PyObject *resultobj;
25055 wxTextDataObject *arg1 = (wxTextDataObject *) 0 ;
25056 wxString *arg2 = 0 ;
25057 bool temp2 = False ;
25058 PyObject * obj0 = 0 ;
25059 PyObject * obj1 = 0 ;
25060 char *kwnames[] = {
25061 (char *) "self",(char *) "text", NULL
25062 };
25063
25064 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextDataObject_SetText",kwnames,&obj0,&obj1)) goto fail;
25065 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextDataObject,
25066 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25067 {
25068 arg2 = wxString_in_helper(obj1);
25069 if (arg2 == NULL) SWIG_fail;
25070 temp2 = True;
25071 }
25072 {
25073 PyThreadState* __tstate = wxPyBeginAllowThreads();
25074 (arg1)->SetText((wxString const &)*arg2);
25075
25076 wxPyEndAllowThreads(__tstate);
25077 if (PyErr_Occurred()) SWIG_fail;
25078 }
25079 Py_INCREF(Py_None); resultobj = Py_None;
25080 {
25081 if (temp2)
25082 delete arg2;
25083 }
25084 return resultobj;
25085 fail:
25086 {
25087 if (temp2)
25088 delete arg2;
25089 }
25090 return NULL;
25091 }
25092
25093
25094 static PyObject * TextDataObject_swigregister(PyObject *self, PyObject *args) {
25095 PyObject *obj;
25096 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25097 SWIG_TypeClientData(SWIGTYPE_p_wxTextDataObject, obj);
25098 Py_INCREF(obj);
25099 return Py_BuildValue((char *)"");
25100 }
25101 static PyObject *_wrap_new_PyTextDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
25102 PyObject *resultobj;
25103 wxString const &arg1_defvalue = wxPyEmptyString ;
25104 wxString *arg1 = (wxString *) &arg1_defvalue ;
25105 wxPyTextDataObject *result;
25106 bool temp1 = False ;
25107 PyObject * obj0 = 0 ;
25108 char *kwnames[] = {
25109 (char *) "text", NULL
25110 };
25111
25112 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyTextDataObject",kwnames,&obj0)) goto fail;
25113 if (obj0) {
25114 {
25115 arg1 = wxString_in_helper(obj0);
25116 if (arg1 == NULL) SWIG_fail;
25117 temp1 = True;
25118 }
25119 }
25120 {
25121 PyThreadState* __tstate = wxPyBeginAllowThreads();
25122 result = (wxPyTextDataObject *)new wxPyTextDataObject((wxString const &)*arg1);
25123
25124 wxPyEndAllowThreads(__tstate);
25125 if (PyErr_Occurred()) SWIG_fail;
25126 }
25127 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTextDataObject, 1);
25128 {
25129 if (temp1)
25130 delete arg1;
25131 }
25132 return resultobj;
25133 fail:
25134 {
25135 if (temp1)
25136 delete arg1;
25137 }
25138 return NULL;
25139 }
25140
25141
25142 static PyObject *_wrap_PyTextDataObject__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
25143 PyObject *resultobj;
25144 wxPyTextDataObject *arg1 = (wxPyTextDataObject *) 0 ;
25145 PyObject *arg2 = (PyObject *) 0 ;
25146 PyObject *arg3 = (PyObject *) 0 ;
25147 PyObject * obj0 = 0 ;
25148 PyObject * obj1 = 0 ;
25149 PyObject * obj2 = 0 ;
25150 char *kwnames[] = {
25151 (char *) "self",(char *) "self",(char *) "_class", NULL
25152 };
25153
25154 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyTextDataObject__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
25155 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDataObject,
25156 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25157 arg2 = obj1;
25158 arg3 = obj2;
25159 {
25160 PyThreadState* __tstate = wxPyBeginAllowThreads();
25161 (arg1)->_setCallbackInfo(arg2,arg3);
25162
25163 wxPyEndAllowThreads(__tstate);
25164 if (PyErr_Occurred()) SWIG_fail;
25165 }
25166 Py_INCREF(Py_None); resultobj = Py_None;
25167 return resultobj;
25168 fail:
25169 return NULL;
25170 }
25171
25172
25173 static PyObject * PyTextDataObject_swigregister(PyObject *self, PyObject *args) {
25174 PyObject *obj;
25175 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25176 SWIG_TypeClientData(SWIGTYPE_p_wxPyTextDataObject, obj);
25177 Py_INCREF(obj);
25178 return Py_BuildValue((char *)"");
25179 }
25180 static PyObject *_wrap_new_BitmapDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
25181 PyObject *resultobj;
25182 wxBitmap const &arg1_defvalue = wxNullBitmap ;
25183 wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ;
25184 wxBitmapDataObject *result;
25185 PyObject * obj0 = 0 ;
25186 char *kwnames[] = {
25187 (char *) "bitmap", NULL
25188 };
25189
25190 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BitmapDataObject",kwnames,&obj0)) goto fail;
25191 if (obj0) {
25192 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
25193 SWIG_POINTER_EXCEPTION | 0)) == -1)
25194 SWIG_fail;
25195 if (arg1 == NULL) {
25196 PyErr_SetString(PyExc_TypeError,"null reference");
25197 SWIG_fail;
25198 }
25199 }
25200 {
25201 PyThreadState* __tstate = wxPyBeginAllowThreads();
25202 result = (wxBitmapDataObject *)new wxBitmapDataObject((wxBitmap const &)*arg1);
25203
25204 wxPyEndAllowThreads(__tstate);
25205 if (PyErr_Occurred()) SWIG_fail;
25206 }
25207 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmapDataObject, 1);
25208 return resultobj;
25209 fail:
25210 return NULL;
25211 }
25212
25213
25214 static PyObject *_wrap_BitmapDataObject_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
25215 PyObject *resultobj;
25216 wxBitmapDataObject *arg1 = (wxBitmapDataObject *) 0 ;
25217 wxBitmap result;
25218 PyObject * obj0 = 0 ;
25219 char *kwnames[] = {
25220 (char *) "self", NULL
25221 };
25222
25223 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapDataObject_GetBitmap",kwnames,&obj0)) goto fail;
25224 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapDataObject,
25225 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25226 {
25227 PyThreadState* __tstate = wxPyBeginAllowThreads();
25228 result = ((wxBitmapDataObject const *)arg1)->GetBitmap();
25229
25230 wxPyEndAllowThreads(__tstate);
25231 if (PyErr_Occurred()) SWIG_fail;
25232 }
25233 {
25234 wxBitmap * resultptr;
25235 resultptr = new wxBitmap((wxBitmap &) result);
25236 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
25237 }
25238 return resultobj;
25239 fail:
25240 return NULL;
25241 }
25242
25243
25244 static PyObject *_wrap_BitmapDataObject_SetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
25245 PyObject *resultobj;
25246 wxBitmapDataObject *arg1 = (wxBitmapDataObject *) 0 ;
25247 wxBitmap *arg2 = 0 ;
25248 PyObject * obj0 = 0 ;
25249 PyObject * obj1 = 0 ;
25250 char *kwnames[] = {
25251 (char *) "self",(char *) "bitmap", NULL
25252 };
25253
25254 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapDataObject_SetBitmap",kwnames,&obj0,&obj1)) goto fail;
25255 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapDataObject,
25256 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25257 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
25258 SWIG_POINTER_EXCEPTION | 0)) == -1)
25259 SWIG_fail;
25260 if (arg2 == NULL) {
25261 PyErr_SetString(PyExc_TypeError,"null reference");
25262 SWIG_fail;
25263 }
25264 {
25265 PyThreadState* __tstate = wxPyBeginAllowThreads();
25266 (arg1)->SetBitmap((wxBitmap const &)*arg2);
25267
25268 wxPyEndAllowThreads(__tstate);
25269 if (PyErr_Occurred()) SWIG_fail;
25270 }
25271 Py_INCREF(Py_None); resultobj = Py_None;
25272 return resultobj;
25273 fail:
25274 return NULL;
25275 }
25276
25277
25278 static PyObject * BitmapDataObject_swigregister(PyObject *self, PyObject *args) {
25279 PyObject *obj;
25280 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25281 SWIG_TypeClientData(SWIGTYPE_p_wxBitmapDataObject, obj);
25282 Py_INCREF(obj);
25283 return Py_BuildValue((char *)"");
25284 }
25285 static PyObject *_wrap_new_PyBitmapDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
25286 PyObject *resultobj;
25287 wxBitmap const &arg1_defvalue = wxNullBitmap ;
25288 wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ;
25289 wxPyBitmapDataObject *result;
25290 PyObject * obj0 = 0 ;
25291 char *kwnames[] = {
25292 (char *) "bitmap", NULL
25293 };
25294
25295 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PyBitmapDataObject",kwnames,&obj0)) goto fail;
25296 if (obj0) {
25297 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
25298 SWIG_POINTER_EXCEPTION | 0)) == -1)
25299 SWIG_fail;
25300 if (arg1 == NULL) {
25301 PyErr_SetString(PyExc_TypeError,"null reference");
25302 SWIG_fail;
25303 }
25304 }
25305 {
25306 PyThreadState* __tstate = wxPyBeginAllowThreads();
25307 result = (wxPyBitmapDataObject *)new wxPyBitmapDataObject((wxBitmap const &)*arg1);
25308
25309 wxPyEndAllowThreads(__tstate);
25310 if (PyErr_Occurred()) SWIG_fail;
25311 }
25312 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyBitmapDataObject, 1);
25313 return resultobj;
25314 fail:
25315 return NULL;
25316 }
25317
25318
25319 static PyObject *_wrap_PyBitmapDataObject__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
25320 PyObject *resultobj;
25321 wxPyBitmapDataObject *arg1 = (wxPyBitmapDataObject *) 0 ;
25322 PyObject *arg2 = (PyObject *) 0 ;
25323 PyObject *arg3 = (PyObject *) 0 ;
25324 PyObject * obj0 = 0 ;
25325 PyObject * obj1 = 0 ;
25326 PyObject * obj2 = 0 ;
25327 char *kwnames[] = {
25328 (char *) "self",(char *) "self",(char *) "_class", NULL
25329 };
25330
25331 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyBitmapDataObject__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
25332 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyBitmapDataObject,
25333 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25334 arg2 = obj1;
25335 arg3 = obj2;
25336 {
25337 PyThreadState* __tstate = wxPyBeginAllowThreads();
25338 (arg1)->_setCallbackInfo(arg2,arg3);
25339
25340 wxPyEndAllowThreads(__tstate);
25341 if (PyErr_Occurred()) SWIG_fail;
25342 }
25343 Py_INCREF(Py_None); resultobj = Py_None;
25344 return resultobj;
25345 fail:
25346 return NULL;
25347 }
25348
25349
25350 static PyObject * PyBitmapDataObject_swigregister(PyObject *self, PyObject *args) {
25351 PyObject *obj;
25352 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25353 SWIG_TypeClientData(SWIGTYPE_p_wxPyBitmapDataObject, obj);
25354 Py_INCREF(obj);
25355 return Py_BuildValue((char *)"");
25356 }
25357 static PyObject *_wrap_new_FileDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
25358 PyObject *resultobj;
25359 wxFileDataObject *result;
25360 char *kwnames[] = {
25361 NULL
25362 };
25363
25364 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileDataObject",kwnames)) goto fail;
25365 {
25366 PyThreadState* __tstate = wxPyBeginAllowThreads();
25367 result = (wxFileDataObject *)new wxFileDataObject();
25368
25369 wxPyEndAllowThreads(__tstate);
25370 if (PyErr_Occurred()) SWIG_fail;
25371 }
25372 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFileDataObject, 1);
25373 return resultobj;
25374 fail:
25375 return NULL;
25376 }
25377
25378
25379 static PyObject *_wrap_FileDataObject_GetFilenames(PyObject *self, PyObject *args, PyObject *kwargs) {
25380 PyObject *resultobj;
25381 wxFileDataObject *arg1 = (wxFileDataObject *) 0 ;
25382 wxArrayString *result;
25383 PyObject * obj0 = 0 ;
25384 char *kwnames[] = {
25385 (char *) "self", NULL
25386 };
25387
25388 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDataObject_GetFilenames",kwnames,&obj0)) goto fail;
25389 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDataObject,
25390 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25391 {
25392 PyThreadState* __tstate = wxPyBeginAllowThreads();
25393 {
25394 wxArrayString const &_result_ref = (arg1)->GetFilenames();
25395 result = (wxArrayString *) &_result_ref;
25396 }
25397
25398 wxPyEndAllowThreads(__tstate);
25399 if (PyErr_Occurred()) SWIG_fail;
25400 }
25401 {
25402 resultobj = wxArrayString2PyList_helper(*result);
25403 }
25404 return resultobj;
25405 fail:
25406 return NULL;
25407 }
25408
25409
25410 static PyObject *_wrap_FileDataObject_AddFile(PyObject *self, PyObject *args, PyObject *kwargs) {
25411 PyObject *resultobj;
25412 wxFileDataObject *arg1 = (wxFileDataObject *) 0 ;
25413 wxString *arg2 = 0 ;
25414 bool temp2 = False ;
25415 PyObject * obj0 = 0 ;
25416 PyObject * obj1 = 0 ;
25417 char *kwnames[] = {
25418 (char *) "self",(char *) "filename", NULL
25419 };
25420
25421 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileDataObject_AddFile",kwnames,&obj0,&obj1)) goto fail;
25422 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFileDataObject,
25423 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25424 {
25425 arg2 = wxString_in_helper(obj1);
25426 if (arg2 == NULL) SWIG_fail;
25427 temp2 = True;
25428 }
25429 {
25430 PyThreadState* __tstate = wxPyBeginAllowThreads();
25431 (arg1)->AddFile((wxString const &)*arg2);
25432
25433 wxPyEndAllowThreads(__tstate);
25434 if (PyErr_Occurred()) SWIG_fail;
25435 }
25436 Py_INCREF(Py_None); resultobj = Py_None;
25437 {
25438 if (temp2)
25439 delete arg2;
25440 }
25441 return resultobj;
25442 fail:
25443 {
25444 if (temp2)
25445 delete arg2;
25446 }
25447 return NULL;
25448 }
25449
25450
25451 static PyObject * FileDataObject_swigregister(PyObject *self, PyObject *args) {
25452 PyObject *obj;
25453 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25454 SWIG_TypeClientData(SWIGTYPE_p_wxFileDataObject, obj);
25455 Py_INCREF(obj);
25456 return Py_BuildValue((char *)"");
25457 }
25458 static PyObject *_wrap_new_CustomDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
25459 PyObject *resultobj;
25460 wxDataFormat const &arg1_defvalue = wxFormatInvalid ;
25461 wxDataFormat *arg1 = (wxDataFormat *) &arg1_defvalue ;
25462 wxCustomDataObject *result;
25463 PyObject * obj0 = 0 ;
25464 char *kwnames[] = {
25465 (char *) "format", NULL
25466 };
25467
25468 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_CustomDataObject",kwnames,&obj0)) goto fail;
25469 if (obj0) {
25470 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataFormat,
25471 SWIG_POINTER_EXCEPTION | 0)) == -1)
25472 SWIG_fail;
25473 if (arg1 == NULL) {
25474 PyErr_SetString(PyExc_TypeError,"null reference");
25475 SWIG_fail;
25476 }
25477 }
25478 {
25479 PyThreadState* __tstate = wxPyBeginAllowThreads();
25480 result = (wxCustomDataObject *)new wxCustomDataObject((wxDataFormat const &)*arg1);
25481
25482 wxPyEndAllowThreads(__tstate);
25483 if (PyErr_Occurred()) SWIG_fail;
25484 }
25485 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCustomDataObject, 1);
25486 return resultobj;
25487 fail:
25488 return NULL;
25489 }
25490
25491
25492 static PyObject *_wrap_CustomDataObject_SetData(PyObject *self, PyObject *args, PyObject *kwargs) {
25493 PyObject *resultobj;
25494 wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ;
25495 PyObject *arg2 = (PyObject *) 0 ;
25496 bool result;
25497 PyObject * obj0 = 0 ;
25498 PyObject * obj1 = 0 ;
25499 char *kwnames[] = {
25500 (char *) "self",(char *) "data", NULL
25501 };
25502
25503 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CustomDataObject_SetData",kwnames,&obj0,&obj1)) goto fail;
25504 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCustomDataObject,
25505 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25506 arg2 = obj1;
25507 {
25508 PyThreadState* __tstate = wxPyBeginAllowThreads();
25509 result = (bool)wxCustomDataObject_SetData(arg1,arg2);
25510
25511 wxPyEndAllowThreads(__tstate);
25512 if (PyErr_Occurred()) SWIG_fail;
25513 }
25514 {
25515 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25516 }
25517 return resultobj;
25518 fail:
25519 return NULL;
25520 }
25521
25522
25523 static PyObject *_wrap_CustomDataObject_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
25524 PyObject *resultobj;
25525 wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ;
25526 size_t result;
25527 PyObject * obj0 = 0 ;
25528 char *kwnames[] = {
25529 (char *) "self", NULL
25530 };
25531
25532 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CustomDataObject_GetSize",kwnames,&obj0)) goto fail;
25533 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCustomDataObject,
25534 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25535 {
25536 PyThreadState* __tstate = wxPyBeginAllowThreads();
25537 result = (size_t)(arg1)->GetSize();
25538
25539 wxPyEndAllowThreads(__tstate);
25540 if (PyErr_Occurred()) SWIG_fail;
25541 }
25542 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
25543 return resultobj;
25544 fail:
25545 return NULL;
25546 }
25547
25548
25549 static PyObject *_wrap_CustomDataObject_GetData(PyObject *self, PyObject *args, PyObject *kwargs) {
25550 PyObject *resultobj;
25551 wxCustomDataObject *arg1 = (wxCustomDataObject *) 0 ;
25552 PyObject *result;
25553 PyObject * obj0 = 0 ;
25554 char *kwnames[] = {
25555 (char *) "self", NULL
25556 };
25557
25558 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CustomDataObject_GetData",kwnames,&obj0)) goto fail;
25559 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCustomDataObject,
25560 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25561 {
25562 PyThreadState* __tstate = wxPyBeginAllowThreads();
25563 result = (PyObject *)wxCustomDataObject_GetData(arg1);
25564
25565 wxPyEndAllowThreads(__tstate);
25566 if (PyErr_Occurred()) SWIG_fail;
25567 }
25568 resultobj = result;
25569 return resultobj;
25570 fail:
25571 return NULL;
25572 }
25573
25574
25575 static PyObject * CustomDataObject_swigregister(PyObject *self, PyObject *args) {
25576 PyObject *obj;
25577 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25578 SWIG_TypeClientData(SWIGTYPE_p_wxCustomDataObject, obj);
25579 Py_INCREF(obj);
25580 return Py_BuildValue((char *)"");
25581 }
25582 static PyObject *_wrap_new_URLDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
25583 PyObject *resultobj;
25584 wxURLDataObject *result;
25585 char *kwnames[] = {
25586 NULL
25587 };
25588
25589 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_URLDataObject",kwnames)) goto fail;
25590 {
25591 PyThreadState* __tstate = wxPyBeginAllowThreads();
25592 result = (wxURLDataObject *)new wxURLDataObject();
25593
25594 wxPyEndAllowThreads(__tstate);
25595 if (PyErr_Occurred()) SWIG_fail;
25596 }
25597 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxURLDataObject, 1);
25598 return resultobj;
25599 fail:
25600 return NULL;
25601 }
25602
25603
25604 static PyObject *_wrap_URLDataObject_GetURL(PyObject *self, PyObject *args, PyObject *kwargs) {
25605 PyObject *resultobj;
25606 wxURLDataObject *arg1 = (wxURLDataObject *) 0 ;
25607 wxString result;
25608 PyObject * obj0 = 0 ;
25609 char *kwnames[] = {
25610 (char *) "self", NULL
25611 };
25612
25613 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:URLDataObject_GetURL",kwnames,&obj0)) goto fail;
25614 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxURLDataObject,
25615 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25616 {
25617 PyThreadState* __tstate = wxPyBeginAllowThreads();
25618 result = (arg1)->GetURL();
25619
25620 wxPyEndAllowThreads(__tstate);
25621 if (PyErr_Occurred()) SWIG_fail;
25622 }
25623 {
25624 #if wxUSE_UNICODE
25625 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
25626 #else
25627 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
25628 #endif
25629 }
25630 return resultobj;
25631 fail:
25632 return NULL;
25633 }
25634
25635
25636 static PyObject *_wrap_URLDataObject_SetURL(PyObject *self, PyObject *args, PyObject *kwargs) {
25637 PyObject *resultobj;
25638 wxURLDataObject *arg1 = (wxURLDataObject *) 0 ;
25639 wxString *arg2 = 0 ;
25640 bool temp2 = False ;
25641 PyObject * obj0 = 0 ;
25642 PyObject * obj1 = 0 ;
25643 char *kwnames[] = {
25644 (char *) "self",(char *) "url", NULL
25645 };
25646
25647 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:URLDataObject_SetURL",kwnames,&obj0,&obj1)) goto fail;
25648 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxURLDataObject,
25649 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25650 {
25651 arg2 = wxString_in_helper(obj1);
25652 if (arg2 == NULL) SWIG_fail;
25653 temp2 = True;
25654 }
25655 {
25656 PyThreadState* __tstate = wxPyBeginAllowThreads();
25657 (arg1)->SetURL((wxString const &)*arg2);
25658
25659 wxPyEndAllowThreads(__tstate);
25660 if (PyErr_Occurred()) SWIG_fail;
25661 }
25662 Py_INCREF(Py_None); resultobj = Py_None;
25663 {
25664 if (temp2)
25665 delete arg2;
25666 }
25667 return resultobj;
25668 fail:
25669 {
25670 if (temp2)
25671 delete arg2;
25672 }
25673 return NULL;
25674 }
25675
25676
25677 static PyObject * URLDataObject_swigregister(PyObject *self, PyObject *args) {
25678 PyObject *obj;
25679 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25680 SWIG_TypeClientData(SWIGTYPE_p_wxURLDataObject, obj);
25681 Py_INCREF(obj);
25682 return Py_BuildValue((char *)"");
25683 }
25684 static PyObject *_wrap_new_MetafileDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
25685 PyObject *resultobj;
25686 wxMetafileDataObject *result;
25687 char *kwnames[] = {
25688 NULL
25689 };
25690
25691 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MetafileDataObject",kwnames)) goto fail;
25692 {
25693 PyThreadState* __tstate = wxPyBeginAllowThreads();
25694 result = (wxMetafileDataObject *)new wxMetafileDataObject();
25695
25696 wxPyEndAllowThreads(__tstate);
25697 if (PyErr_Occurred()) SWIG_fail;
25698 }
25699 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetafileDataObject, 1);
25700 return resultobj;
25701 fail:
25702 return NULL;
25703 }
25704
25705
25706 static PyObject * MetafileDataObject_swigregister(PyObject *self, PyObject *args) {
25707 PyObject *obj;
25708 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25709 SWIG_TypeClientData(SWIGTYPE_p_wxMetafileDataObject, obj);
25710 Py_INCREF(obj);
25711 return Py_BuildValue((char *)"");
25712 }
25713 static PyObject *_wrap_IsDragResultOk(PyObject *self, PyObject *args, PyObject *kwargs) {
25714 PyObject *resultobj;
25715 int arg1 ;
25716 bool result;
25717 PyObject * obj0 = 0 ;
25718 char *kwnames[] = {
25719 (char *) "res", NULL
25720 };
25721
25722 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IsDragResultOk",kwnames,&obj0)) goto fail;
25723 arg1 = (wxDragResult) SWIG_AsInt(obj0);
25724 if (PyErr_Occurred()) SWIG_fail;
25725 {
25726 PyThreadState* __tstate = wxPyBeginAllowThreads();
25727 result = (bool)wxIsDragResultOk((wxDragResult )arg1);
25728
25729 wxPyEndAllowThreads(__tstate);
25730 if (PyErr_Occurred()) SWIG_fail;
25731 }
25732 {
25733 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25734 }
25735 return resultobj;
25736 fail:
25737 return NULL;
25738 }
25739
25740
25741 static PyObject *_wrap_new_DropSource(PyObject *self, PyObject *args, PyObject *kwargs) {
25742 PyObject *resultobj;
25743 wxWindow *arg1 = (wxWindow *) 0 ;
25744 wxIcon const &arg2_defvalue = wxNullIcon ;
25745 wxIcon *arg2 = (wxIcon *) &arg2_defvalue ;
25746 wxIcon const &arg3_defvalue = wxNullIcon ;
25747 wxIcon *arg3 = (wxIcon *) &arg3_defvalue ;
25748 wxIcon const &arg4_defvalue = wxNullIcon ;
25749 wxIcon *arg4 = (wxIcon *) &arg4_defvalue ;
25750 wxPyDropSource *result;
25751 PyObject * obj0 = 0 ;
25752 PyObject * obj1 = 0 ;
25753 PyObject * obj2 = 0 ;
25754 PyObject * obj3 = 0 ;
25755 char *kwnames[] = {
25756 (char *) "win",(char *) "copy",(char *) "move",(char *) "none", NULL
25757 };
25758
25759 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:new_DropSource",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
25760 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25761 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25762 if (obj1) {
25763 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
25764 SWIG_POINTER_EXCEPTION | 0)) == -1)
25765 SWIG_fail;
25766 if (arg2 == NULL) {
25767 PyErr_SetString(PyExc_TypeError,"null reference");
25768 SWIG_fail;
25769 }
25770 }
25771 if (obj2) {
25772 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxIcon,
25773 SWIG_POINTER_EXCEPTION | 0)) == -1)
25774 SWIG_fail;
25775 if (arg3 == NULL) {
25776 PyErr_SetString(PyExc_TypeError,"null reference");
25777 SWIG_fail;
25778 }
25779 }
25780 if (obj3) {
25781 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxIcon,
25782 SWIG_POINTER_EXCEPTION | 0)) == -1)
25783 SWIG_fail;
25784 if (arg4 == NULL) {
25785 PyErr_SetString(PyExc_TypeError,"null reference");
25786 SWIG_fail;
25787 }
25788 }
25789 {
25790 PyThreadState* __tstate = wxPyBeginAllowThreads();
25791 result = (wxPyDropSource *)new wxPyDropSource(arg1,(wxIcon const &)*arg2,(wxIcon const &)*arg3,(wxIcon const &)*arg4);
25792
25793 wxPyEndAllowThreads(__tstate);
25794 if (PyErr_Occurred()) SWIG_fail;
25795 }
25796 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDropSource, 1);
25797 return resultobj;
25798 fail:
25799 return NULL;
25800 }
25801
25802
25803 static PyObject *_wrap_DropSource__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
25804 PyObject *resultobj;
25805 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
25806 PyObject *arg2 = (PyObject *) 0 ;
25807 PyObject *arg3 = (PyObject *) 0 ;
25808 int arg4 ;
25809 PyObject * obj0 = 0 ;
25810 PyObject * obj1 = 0 ;
25811 PyObject * obj2 = 0 ;
25812 PyObject * obj3 = 0 ;
25813 char *kwnames[] = {
25814 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
25815 };
25816
25817 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropSource__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
25818 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
25819 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25820 arg2 = obj1;
25821 arg3 = obj2;
25822 arg4 = (int) SWIG_AsInt(obj3);
25823 if (PyErr_Occurred()) SWIG_fail;
25824 {
25825 PyThreadState* __tstate = wxPyBeginAllowThreads();
25826 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
25827
25828 wxPyEndAllowThreads(__tstate);
25829 if (PyErr_Occurred()) SWIG_fail;
25830 }
25831 Py_INCREF(Py_None); resultobj = Py_None;
25832 return resultobj;
25833 fail:
25834 return NULL;
25835 }
25836
25837
25838 static PyObject *_wrap_delete_DropSource(PyObject *self, PyObject *args, PyObject *kwargs) {
25839 PyObject *resultobj;
25840 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
25841 PyObject * obj0 = 0 ;
25842 char *kwnames[] = {
25843 (char *) "self", NULL
25844 };
25845
25846 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DropSource",kwnames,&obj0)) goto fail;
25847 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
25848 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25849 {
25850 PyThreadState* __tstate = wxPyBeginAllowThreads();
25851 delete arg1;
25852
25853 wxPyEndAllowThreads(__tstate);
25854 if (PyErr_Occurred()) SWIG_fail;
25855 }
25856 Py_INCREF(Py_None); resultobj = Py_None;
25857 return resultobj;
25858 fail:
25859 return NULL;
25860 }
25861
25862
25863 static PyObject *_wrap_DropSource_SetData(PyObject *self, PyObject *args, PyObject *kwargs) {
25864 PyObject *resultobj;
25865 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
25866 wxDataObject *arg2 = 0 ;
25867 PyObject * obj0 = 0 ;
25868 PyObject * obj1 = 0 ;
25869 char *kwnames[] = {
25870 (char *) "self",(char *) "data", NULL
25871 };
25872
25873 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropSource_SetData",kwnames,&obj0,&obj1)) goto fail;
25874 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
25875 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25876 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject,
25877 SWIG_POINTER_EXCEPTION | 0)) == -1)
25878 SWIG_fail;
25879 if (arg2 == NULL) {
25880 PyErr_SetString(PyExc_TypeError,"null reference");
25881 SWIG_fail;
25882 }
25883 {
25884 PyThreadState* __tstate = wxPyBeginAllowThreads();
25885 (arg1)->SetData(*arg2);
25886
25887 wxPyEndAllowThreads(__tstate);
25888 if (PyErr_Occurred()) SWIG_fail;
25889 }
25890 Py_INCREF(Py_None); resultobj = Py_None;
25891 return resultobj;
25892 fail:
25893 return NULL;
25894 }
25895
25896
25897 static PyObject *_wrap_DropSource_GetDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
25898 PyObject *resultobj;
25899 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
25900 wxDataObject *result;
25901 PyObject * obj0 = 0 ;
25902 char *kwnames[] = {
25903 (char *) "self", NULL
25904 };
25905
25906 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropSource_GetDataObject",kwnames,&obj0)) goto fail;
25907 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
25908 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25909 {
25910 PyThreadState* __tstate = wxPyBeginAllowThreads();
25911 result = (wxDataObject *)(arg1)->GetDataObject();
25912
25913 wxPyEndAllowThreads(__tstate);
25914 if (PyErr_Occurred()) SWIG_fail;
25915 }
25916 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObject, 0);
25917 return resultobj;
25918 fail:
25919 return NULL;
25920 }
25921
25922
25923 static PyObject *_wrap_DropSource_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
25924 PyObject *resultobj;
25925 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
25926 int arg2 ;
25927 wxCursor *arg3 = 0 ;
25928 PyObject * obj0 = 0 ;
25929 PyObject * obj1 = 0 ;
25930 PyObject * obj2 = 0 ;
25931 char *kwnames[] = {
25932 (char *) "self",(char *) "res",(char *) "cursor", NULL
25933 };
25934
25935 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropSource_SetCursor",kwnames,&obj0,&obj1,&obj2)) goto fail;
25936 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
25937 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25938 arg2 = (wxDragResult) SWIG_AsInt(obj1);
25939 if (PyErr_Occurred()) SWIG_fail;
25940 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxCursor,
25941 SWIG_POINTER_EXCEPTION | 0)) == -1)
25942 SWIG_fail;
25943 if (arg3 == NULL) {
25944 PyErr_SetString(PyExc_TypeError,"null reference");
25945 SWIG_fail;
25946 }
25947 {
25948 PyThreadState* __tstate = wxPyBeginAllowThreads();
25949 (arg1)->SetCursor((wxDragResult )arg2,(wxCursor const &)*arg3);
25950
25951 wxPyEndAllowThreads(__tstate);
25952 if (PyErr_Occurred()) SWIG_fail;
25953 }
25954 Py_INCREF(Py_None); resultobj = Py_None;
25955 return resultobj;
25956 fail:
25957 return NULL;
25958 }
25959
25960
25961 static PyObject *_wrap_DropSource_DoDragDrop(PyObject *self, PyObject *args, PyObject *kwargs) {
25962 PyObject *resultobj;
25963 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
25964 int arg2 = (int) wxDrag_CopyOnly ;
25965 int result;
25966 PyObject * obj0 = 0 ;
25967 PyObject * obj1 = 0 ;
25968 char *kwnames[] = {
25969 (char *) "self",(char *) "flags", NULL
25970 };
25971
25972 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DropSource_DoDragDrop",kwnames,&obj0,&obj1)) goto fail;
25973 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
25974 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25975 if (obj1) {
25976 arg2 = (int) SWIG_AsInt(obj1);
25977 if (PyErr_Occurred()) SWIG_fail;
25978 }
25979 {
25980 PyThreadState* __tstate = wxPyBeginAllowThreads();
25981 result = (int)(arg1)->DoDragDrop(arg2);
25982
25983 wxPyEndAllowThreads(__tstate);
25984 if (PyErr_Occurred()) SWIG_fail;
25985 }
25986 resultobj = SWIG_FromInt((int)result);
25987 return resultobj;
25988 fail:
25989 return NULL;
25990 }
25991
25992
25993 static PyObject *_wrap_DropSource_base_GiveFeedback(PyObject *self, PyObject *args, PyObject *kwargs) {
25994 PyObject *resultobj;
25995 wxPyDropSource *arg1 = (wxPyDropSource *) 0 ;
25996 int arg2 ;
25997 bool result;
25998 PyObject * obj0 = 0 ;
25999 PyObject * obj1 = 0 ;
26000 char *kwnames[] = {
26001 (char *) "self",(char *) "effect", NULL
26002 };
26003
26004 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropSource_base_GiveFeedback",kwnames,&obj0,&obj1)) goto fail;
26005 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropSource,
26006 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26007 arg2 = (wxDragResult) SWIG_AsInt(obj1);
26008 if (PyErr_Occurred()) SWIG_fail;
26009 {
26010 PyThreadState* __tstate = wxPyBeginAllowThreads();
26011 result = (bool)(arg1)->base_GiveFeedback((wxDragResult )arg2);
26012
26013 wxPyEndAllowThreads(__tstate);
26014 if (PyErr_Occurred()) SWIG_fail;
26015 }
26016 {
26017 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26018 }
26019 return resultobj;
26020 fail:
26021 return NULL;
26022 }
26023
26024
26025 static PyObject * DropSource_swigregister(PyObject *self, PyObject *args) {
26026 PyObject *obj;
26027 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
26028 SWIG_TypeClientData(SWIGTYPE_p_wxPyDropSource, obj);
26029 Py_INCREF(obj);
26030 return Py_BuildValue((char *)"");
26031 }
26032 static PyObject *_wrap_new_DropTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
26033 PyObject *resultobj;
26034 wxDataObject *arg1 = (wxDataObject *) NULL ;
26035 wxPyDropTarget *result;
26036 PyObject * obj0 = 0 ;
26037 char *kwnames[] = {
26038 (char *) "dataObject", NULL
26039 };
26040
26041 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_DropTarget",kwnames,&obj0)) goto fail;
26042 if (obj0) {
26043 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDataObject,
26044 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
26045 }
26046 {
26047 PyThreadState* __tstate = wxPyBeginAllowThreads();
26048 result = (wxPyDropTarget *)new wxPyDropTarget(arg1);
26049
26050 wxPyEndAllowThreads(__tstate);
26051 if (PyErr_Occurred()) SWIG_fail;
26052 }
26053 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyDropTarget, 1);
26054 return resultobj;
26055 fail:
26056 return NULL;
26057 }
26058
26059
26060 static PyObject *_wrap_DropTarget__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
26061 PyObject *resultobj;
26062 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26063 PyObject *arg2 = (PyObject *) 0 ;
26064 PyObject *arg3 = (PyObject *) 0 ;
26065 PyObject * obj0 = 0 ;
26066 PyObject * obj1 = 0 ;
26067 PyObject * obj2 = 0 ;
26068 char *kwnames[] = {
26069 (char *) "self",(char *) "self",(char *) "_class", NULL
26070 };
26071
26072 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
26073 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26074 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26075 arg2 = obj1;
26076 arg3 = obj2;
26077 {
26078 PyThreadState* __tstate = wxPyBeginAllowThreads();
26079 (arg1)->_setCallbackInfo(arg2,arg3);
26080
26081 wxPyEndAllowThreads(__tstate);
26082 if (PyErr_Occurred()) SWIG_fail;
26083 }
26084 Py_INCREF(Py_None); resultobj = Py_None;
26085 return resultobj;
26086 fail:
26087 return NULL;
26088 }
26089
26090
26091 static PyObject *_wrap_delete_DropTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
26092 PyObject *resultobj;
26093 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26094 PyObject * obj0 = 0 ;
26095 char *kwnames[] = {
26096 (char *) "self", NULL
26097 };
26098
26099 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DropTarget",kwnames,&obj0)) goto fail;
26100 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26101 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26102 {
26103 PyThreadState* __tstate = wxPyBeginAllowThreads();
26104 delete arg1;
26105
26106 wxPyEndAllowThreads(__tstate);
26107 if (PyErr_Occurred()) SWIG_fail;
26108 }
26109 Py_INCREF(Py_None); resultobj = Py_None;
26110 return resultobj;
26111 fail:
26112 return NULL;
26113 }
26114
26115
26116 static PyObject *_wrap_DropTarget_GetDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
26117 PyObject *resultobj;
26118 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26119 wxDataObject *result;
26120 PyObject * obj0 = 0 ;
26121 char *kwnames[] = {
26122 (char *) "self", NULL
26123 };
26124
26125 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_GetDataObject",kwnames,&obj0)) goto fail;
26126 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26127 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26128 {
26129 PyThreadState* __tstate = wxPyBeginAllowThreads();
26130 result = (wxDataObject *)(arg1)->GetDataObject();
26131
26132 wxPyEndAllowThreads(__tstate);
26133 if (PyErr_Occurred()) SWIG_fail;
26134 }
26135 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDataObject, 0);
26136 return resultobj;
26137 fail:
26138 return NULL;
26139 }
26140
26141
26142 static PyObject *_wrap_DropTarget_SetDataObject(PyObject *self, PyObject *args, PyObject *kwargs) {
26143 PyObject *resultobj;
26144 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26145 wxDataObject *arg2 = (wxDataObject *) 0 ;
26146 PyObject * obj0 = 0 ;
26147 PyObject * obj1 = 0 ;
26148 char *kwnames[] = {
26149 (char *) "self",(char *) "dataObject", NULL
26150 };
26151
26152 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DropTarget_SetDataObject",kwnames,&obj0,&obj1)) goto fail;
26153 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26154 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26155 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject,
26156 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
26157 {
26158 PyThreadState* __tstate = wxPyBeginAllowThreads();
26159 (arg1)->SetDataObject(arg2);
26160
26161 wxPyEndAllowThreads(__tstate);
26162 if (PyErr_Occurred()) SWIG_fail;
26163 }
26164 Py_INCREF(Py_None); resultobj = Py_None;
26165 return resultobj;
26166 fail:
26167 return NULL;
26168 }
26169
26170
26171 static PyObject *_wrap_DropTarget_base_OnEnter(PyObject *self, PyObject *args, PyObject *kwargs) {
26172 PyObject *resultobj;
26173 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26174 int arg2 ;
26175 int arg3 ;
26176 int arg4 ;
26177 int result;
26178 PyObject * obj0 = 0 ;
26179 PyObject * obj1 = 0 ;
26180 PyObject * obj2 = 0 ;
26181 PyObject * obj3 = 0 ;
26182 char *kwnames[] = {
26183 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26184 };
26185
26186 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropTarget_base_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26187 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26188 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26189 arg2 = (int) SWIG_AsInt(obj1);
26190 if (PyErr_Occurred()) SWIG_fail;
26191 arg3 = (int) SWIG_AsInt(obj2);
26192 if (PyErr_Occurred()) SWIG_fail;
26193 arg4 = (wxDragResult) SWIG_AsInt(obj3);
26194 if (PyErr_Occurred()) SWIG_fail;
26195 {
26196 PyThreadState* __tstate = wxPyBeginAllowThreads();
26197 result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4);
26198
26199 wxPyEndAllowThreads(__tstate);
26200 if (PyErr_Occurred()) SWIG_fail;
26201 }
26202 resultobj = SWIG_FromInt((int)result);
26203 return resultobj;
26204 fail:
26205 return NULL;
26206 }
26207
26208
26209 static PyObject *_wrap_DropTarget_base_OnDragOver(PyObject *self, PyObject *args, PyObject *kwargs) {
26210 PyObject *resultobj;
26211 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26212 int arg2 ;
26213 int arg3 ;
26214 int arg4 ;
26215 int result;
26216 PyObject * obj0 = 0 ;
26217 PyObject * obj1 = 0 ;
26218 PyObject * obj2 = 0 ;
26219 PyObject * obj3 = 0 ;
26220 char *kwnames[] = {
26221 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26222 };
26223
26224 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DropTarget_base_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26225 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26226 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26227 arg2 = (int) SWIG_AsInt(obj1);
26228 if (PyErr_Occurred()) SWIG_fail;
26229 arg3 = (int) SWIG_AsInt(obj2);
26230 if (PyErr_Occurred()) SWIG_fail;
26231 arg4 = (wxDragResult) SWIG_AsInt(obj3);
26232 if (PyErr_Occurred()) SWIG_fail;
26233 {
26234 PyThreadState* __tstate = wxPyBeginAllowThreads();
26235 result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4);
26236
26237 wxPyEndAllowThreads(__tstate);
26238 if (PyErr_Occurred()) SWIG_fail;
26239 }
26240 resultobj = SWIG_FromInt((int)result);
26241 return resultobj;
26242 fail:
26243 return NULL;
26244 }
26245
26246
26247 static PyObject *_wrap_DropTarget_base_OnLeave(PyObject *self, PyObject *args, PyObject *kwargs) {
26248 PyObject *resultobj;
26249 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26250 PyObject * obj0 = 0 ;
26251 char *kwnames[] = {
26252 (char *) "self", NULL
26253 };
26254
26255 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_base_OnLeave",kwnames,&obj0)) goto fail;
26256 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26257 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26258 {
26259 PyThreadState* __tstate = wxPyBeginAllowThreads();
26260 (arg1)->base_OnLeave();
26261
26262 wxPyEndAllowThreads(__tstate);
26263 if (PyErr_Occurred()) SWIG_fail;
26264 }
26265 Py_INCREF(Py_None); resultobj = Py_None;
26266 return resultobj;
26267 fail:
26268 return NULL;
26269 }
26270
26271
26272 static PyObject *_wrap_DropTarget_base_OnDrop(PyObject *self, PyObject *args, PyObject *kwargs) {
26273 PyObject *resultobj;
26274 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26275 int arg2 ;
26276 int arg3 ;
26277 bool result;
26278 PyObject * obj0 = 0 ;
26279 PyObject * obj1 = 0 ;
26280 PyObject * obj2 = 0 ;
26281 char *kwnames[] = {
26282 (char *) "self",(char *) "x",(char *) "y", NULL
26283 };
26284
26285 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DropTarget_base_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail;
26286 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26287 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26288 arg2 = (int) SWIG_AsInt(obj1);
26289 if (PyErr_Occurred()) SWIG_fail;
26290 arg3 = (int) SWIG_AsInt(obj2);
26291 if (PyErr_Occurred()) SWIG_fail;
26292 {
26293 PyThreadState* __tstate = wxPyBeginAllowThreads();
26294 result = (bool)(arg1)->base_OnDrop(arg2,arg3);
26295
26296 wxPyEndAllowThreads(__tstate);
26297 if (PyErr_Occurred()) SWIG_fail;
26298 }
26299 {
26300 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26301 }
26302 return resultobj;
26303 fail:
26304 return NULL;
26305 }
26306
26307
26308 static PyObject *_wrap_DropTarget_GetData(PyObject *self, PyObject *args, PyObject *kwargs) {
26309 PyObject *resultobj;
26310 wxPyDropTarget *arg1 = (wxPyDropTarget *) 0 ;
26311 bool result;
26312 PyObject * obj0 = 0 ;
26313 char *kwnames[] = {
26314 (char *) "self", NULL
26315 };
26316
26317 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DropTarget_GetData",kwnames,&obj0)) goto fail;
26318 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyDropTarget,
26319 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26320 {
26321 PyThreadState* __tstate = wxPyBeginAllowThreads();
26322 result = (bool)(arg1)->GetData();
26323
26324 wxPyEndAllowThreads(__tstate);
26325 if (PyErr_Occurred()) SWIG_fail;
26326 }
26327 {
26328 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26329 }
26330 return resultobj;
26331 fail:
26332 return NULL;
26333 }
26334
26335
26336 static PyObject * DropTarget_swigregister(PyObject *self, PyObject *args) {
26337 PyObject *obj;
26338 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
26339 SWIG_TypeClientData(SWIGTYPE_p_wxPyDropTarget, obj);
26340 Py_INCREF(obj);
26341 return Py_BuildValue((char *)"");
26342 }
26343 static PyObject *_wrap_new_TextDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
26344 PyObject *resultobj;
26345 wxPyTextDropTarget *result;
26346 char *kwnames[] = {
26347 NULL
26348 };
26349
26350 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TextDropTarget",kwnames)) goto fail;
26351 {
26352 PyThreadState* __tstate = wxPyBeginAllowThreads();
26353 result = (wxPyTextDropTarget *)new wxPyTextDropTarget();
26354
26355 wxPyEndAllowThreads(__tstate);
26356 if (PyErr_Occurred()) SWIG_fail;
26357 }
26358 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTextDropTarget, 1);
26359 return resultobj;
26360 fail:
26361 return NULL;
26362 }
26363
26364
26365 static PyObject *_wrap_TextDropTarget__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
26366 PyObject *resultobj;
26367 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
26368 PyObject *arg2 = (PyObject *) 0 ;
26369 PyObject *arg3 = (PyObject *) 0 ;
26370 PyObject * obj0 = 0 ;
26371 PyObject * obj1 = 0 ;
26372 PyObject * obj2 = 0 ;
26373 char *kwnames[] = {
26374 (char *) "self",(char *) "self",(char *) "_class", NULL
26375 };
26376
26377 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextDropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
26378 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget,
26379 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26380 arg2 = obj1;
26381 arg3 = obj2;
26382 {
26383 PyThreadState* __tstate = wxPyBeginAllowThreads();
26384 (arg1)->_setCallbackInfo(arg2,arg3);
26385
26386 wxPyEndAllowThreads(__tstate);
26387 if (PyErr_Occurred()) SWIG_fail;
26388 }
26389 Py_INCREF(Py_None); resultobj = Py_None;
26390 return resultobj;
26391 fail:
26392 return NULL;
26393 }
26394
26395
26396 static PyObject *_wrap_TextDropTarget_base_OnEnter(PyObject *self, PyObject *args, PyObject *kwargs) {
26397 PyObject *resultobj;
26398 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
26399 int arg2 ;
26400 int arg3 ;
26401 int arg4 ;
26402 int result;
26403 PyObject * obj0 = 0 ;
26404 PyObject * obj1 = 0 ;
26405 PyObject * obj2 = 0 ;
26406 PyObject * obj3 = 0 ;
26407 char *kwnames[] = {
26408 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26409 };
26410
26411 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_base_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26412 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget,
26413 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26414 arg2 = (int) SWIG_AsInt(obj1);
26415 if (PyErr_Occurred()) SWIG_fail;
26416 arg3 = (int) SWIG_AsInt(obj2);
26417 if (PyErr_Occurred()) SWIG_fail;
26418 arg4 = (wxDragResult) SWIG_AsInt(obj3);
26419 if (PyErr_Occurred()) SWIG_fail;
26420 {
26421 PyThreadState* __tstate = wxPyBeginAllowThreads();
26422 result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4);
26423
26424 wxPyEndAllowThreads(__tstate);
26425 if (PyErr_Occurred()) SWIG_fail;
26426 }
26427 resultobj = SWIG_FromInt((int)result);
26428 return resultobj;
26429 fail:
26430 return NULL;
26431 }
26432
26433
26434 static PyObject *_wrap_TextDropTarget_base_OnDragOver(PyObject *self, PyObject *args, PyObject *kwargs) {
26435 PyObject *resultobj;
26436 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
26437 int arg2 ;
26438 int arg3 ;
26439 int arg4 ;
26440 int result;
26441 PyObject * obj0 = 0 ;
26442 PyObject * obj1 = 0 ;
26443 PyObject * obj2 = 0 ;
26444 PyObject * obj3 = 0 ;
26445 char *kwnames[] = {
26446 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26447 };
26448
26449 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_base_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26450 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget,
26451 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26452 arg2 = (int) SWIG_AsInt(obj1);
26453 if (PyErr_Occurred()) SWIG_fail;
26454 arg3 = (int) SWIG_AsInt(obj2);
26455 if (PyErr_Occurred()) SWIG_fail;
26456 arg4 = (wxDragResult) SWIG_AsInt(obj3);
26457 if (PyErr_Occurred()) SWIG_fail;
26458 {
26459 PyThreadState* __tstate = wxPyBeginAllowThreads();
26460 result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4);
26461
26462 wxPyEndAllowThreads(__tstate);
26463 if (PyErr_Occurred()) SWIG_fail;
26464 }
26465 resultobj = SWIG_FromInt((int)result);
26466 return resultobj;
26467 fail:
26468 return NULL;
26469 }
26470
26471
26472 static PyObject *_wrap_TextDropTarget_base_OnLeave(PyObject *self, PyObject *args, PyObject *kwargs) {
26473 PyObject *resultobj;
26474 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
26475 PyObject * obj0 = 0 ;
26476 char *kwnames[] = {
26477 (char *) "self", NULL
26478 };
26479
26480 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextDropTarget_base_OnLeave",kwnames,&obj0)) goto fail;
26481 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget,
26482 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26483 {
26484 PyThreadState* __tstate = wxPyBeginAllowThreads();
26485 (arg1)->base_OnLeave();
26486
26487 wxPyEndAllowThreads(__tstate);
26488 if (PyErr_Occurred()) SWIG_fail;
26489 }
26490 Py_INCREF(Py_None); resultobj = Py_None;
26491 return resultobj;
26492 fail:
26493 return NULL;
26494 }
26495
26496
26497 static PyObject *_wrap_TextDropTarget_base_OnDrop(PyObject *self, PyObject *args, PyObject *kwargs) {
26498 PyObject *resultobj;
26499 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
26500 int arg2 ;
26501 int arg3 ;
26502 bool result;
26503 PyObject * obj0 = 0 ;
26504 PyObject * obj1 = 0 ;
26505 PyObject * obj2 = 0 ;
26506 char *kwnames[] = {
26507 (char *) "self",(char *) "x",(char *) "y", NULL
26508 };
26509
26510 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextDropTarget_base_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail;
26511 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget,
26512 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26513 arg2 = (int) SWIG_AsInt(obj1);
26514 if (PyErr_Occurred()) SWIG_fail;
26515 arg3 = (int) SWIG_AsInt(obj2);
26516 if (PyErr_Occurred()) SWIG_fail;
26517 {
26518 PyThreadState* __tstate = wxPyBeginAllowThreads();
26519 result = (bool)(arg1)->base_OnDrop(arg2,arg3);
26520
26521 wxPyEndAllowThreads(__tstate);
26522 if (PyErr_Occurred()) SWIG_fail;
26523 }
26524 {
26525 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26526 }
26527 return resultobj;
26528 fail:
26529 return NULL;
26530 }
26531
26532
26533 static PyObject *_wrap_TextDropTarget_base_OnData(PyObject *self, PyObject *args, PyObject *kwargs) {
26534 PyObject *resultobj;
26535 wxPyTextDropTarget *arg1 = (wxPyTextDropTarget *) 0 ;
26536 int arg2 ;
26537 int arg3 ;
26538 int arg4 ;
26539 int result;
26540 PyObject * obj0 = 0 ;
26541 PyObject * obj1 = 0 ;
26542 PyObject * obj2 = 0 ;
26543 PyObject * obj3 = 0 ;
26544 char *kwnames[] = {
26545 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26546 };
26547
26548 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextDropTarget_base_OnData",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26549 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTextDropTarget,
26550 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26551 arg2 = (int) SWIG_AsInt(obj1);
26552 if (PyErr_Occurred()) SWIG_fail;
26553 arg3 = (int) SWIG_AsInt(obj2);
26554 if (PyErr_Occurred()) SWIG_fail;
26555 arg4 = (wxDragResult) SWIG_AsInt(obj3);
26556 if (PyErr_Occurred()) SWIG_fail;
26557 {
26558 PyThreadState* __tstate = wxPyBeginAllowThreads();
26559 result = (int)(arg1)->base_OnData(arg2,arg3,(wxDragResult )arg4);
26560
26561 wxPyEndAllowThreads(__tstate);
26562 if (PyErr_Occurred()) SWIG_fail;
26563 }
26564 resultobj = SWIG_FromInt((int)result);
26565 return resultobj;
26566 fail:
26567 return NULL;
26568 }
26569
26570
26571 static PyObject * TextDropTarget_swigregister(PyObject *self, PyObject *args) {
26572 PyObject *obj;
26573 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
26574 SWIG_TypeClientData(SWIGTYPE_p_wxPyTextDropTarget, obj);
26575 Py_INCREF(obj);
26576 return Py_BuildValue((char *)"");
26577 }
26578 static PyObject *_wrap_new_FileDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
26579 PyObject *resultobj;
26580 wxPyFileDropTarget *result;
26581 char *kwnames[] = {
26582 NULL
26583 };
26584
26585 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FileDropTarget",kwnames)) goto fail;
26586 {
26587 PyThreadState* __tstate = wxPyBeginAllowThreads();
26588 result = (wxPyFileDropTarget *)new wxPyFileDropTarget();
26589
26590 wxPyEndAllowThreads(__tstate);
26591 if (PyErr_Occurred()) SWIG_fail;
26592 }
26593 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyFileDropTarget, 1);
26594 return resultobj;
26595 fail:
26596 return NULL;
26597 }
26598
26599
26600 static PyObject *_wrap_FileDropTarget__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
26601 PyObject *resultobj;
26602 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
26603 PyObject *arg2 = (PyObject *) 0 ;
26604 PyObject *arg3 = (PyObject *) 0 ;
26605 PyObject * obj0 = 0 ;
26606 PyObject * obj1 = 0 ;
26607 PyObject * obj2 = 0 ;
26608 char *kwnames[] = {
26609 (char *) "self",(char *) "self",(char *) "_class", NULL
26610 };
26611
26612 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileDropTarget__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
26613 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget,
26614 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26615 arg2 = obj1;
26616 arg3 = obj2;
26617 {
26618 PyThreadState* __tstate = wxPyBeginAllowThreads();
26619 (arg1)->_setCallbackInfo(arg2,arg3);
26620
26621 wxPyEndAllowThreads(__tstate);
26622 if (PyErr_Occurred()) SWIG_fail;
26623 }
26624 Py_INCREF(Py_None); resultobj = Py_None;
26625 return resultobj;
26626 fail:
26627 return NULL;
26628 }
26629
26630
26631 static PyObject *_wrap_FileDropTarget_base_OnEnter(PyObject *self, PyObject *args, PyObject *kwargs) {
26632 PyObject *resultobj;
26633 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
26634 int arg2 ;
26635 int arg3 ;
26636 int arg4 ;
26637 int result;
26638 PyObject * obj0 = 0 ;
26639 PyObject * obj1 = 0 ;
26640 PyObject * obj2 = 0 ;
26641 PyObject * obj3 = 0 ;
26642 char *kwnames[] = {
26643 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26644 };
26645
26646 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_base_OnEnter",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26647 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget,
26648 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26649 arg2 = (int) SWIG_AsInt(obj1);
26650 if (PyErr_Occurred()) SWIG_fail;
26651 arg3 = (int) SWIG_AsInt(obj2);
26652 if (PyErr_Occurred()) SWIG_fail;
26653 arg4 = (wxDragResult) SWIG_AsInt(obj3);
26654 if (PyErr_Occurred()) SWIG_fail;
26655 {
26656 PyThreadState* __tstate = wxPyBeginAllowThreads();
26657 result = (int)(arg1)->base_OnEnter(arg2,arg3,(wxDragResult )arg4);
26658
26659 wxPyEndAllowThreads(__tstate);
26660 if (PyErr_Occurred()) SWIG_fail;
26661 }
26662 resultobj = SWIG_FromInt((int)result);
26663 return resultobj;
26664 fail:
26665 return NULL;
26666 }
26667
26668
26669 static PyObject *_wrap_FileDropTarget_base_OnDragOver(PyObject *self, PyObject *args, PyObject *kwargs) {
26670 PyObject *resultobj;
26671 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
26672 int arg2 ;
26673 int arg3 ;
26674 int arg4 ;
26675 int result;
26676 PyObject * obj0 = 0 ;
26677 PyObject * obj1 = 0 ;
26678 PyObject * obj2 = 0 ;
26679 PyObject * obj3 = 0 ;
26680 char *kwnames[] = {
26681 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26682 };
26683
26684 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_base_OnDragOver",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26685 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget,
26686 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26687 arg2 = (int) SWIG_AsInt(obj1);
26688 if (PyErr_Occurred()) SWIG_fail;
26689 arg3 = (int) SWIG_AsInt(obj2);
26690 if (PyErr_Occurred()) SWIG_fail;
26691 arg4 = (wxDragResult) SWIG_AsInt(obj3);
26692 if (PyErr_Occurred()) SWIG_fail;
26693 {
26694 PyThreadState* __tstate = wxPyBeginAllowThreads();
26695 result = (int)(arg1)->base_OnDragOver(arg2,arg3,(wxDragResult )arg4);
26696
26697 wxPyEndAllowThreads(__tstate);
26698 if (PyErr_Occurred()) SWIG_fail;
26699 }
26700 resultobj = SWIG_FromInt((int)result);
26701 return resultobj;
26702 fail:
26703 return NULL;
26704 }
26705
26706
26707 static PyObject *_wrap_FileDropTarget_base_OnLeave(PyObject *self, PyObject *args, PyObject *kwargs) {
26708 PyObject *resultobj;
26709 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
26710 PyObject * obj0 = 0 ;
26711 char *kwnames[] = {
26712 (char *) "self", NULL
26713 };
26714
26715 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileDropTarget_base_OnLeave",kwnames,&obj0)) goto fail;
26716 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget,
26717 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26718 {
26719 PyThreadState* __tstate = wxPyBeginAllowThreads();
26720 (arg1)->base_OnLeave();
26721
26722 wxPyEndAllowThreads(__tstate);
26723 if (PyErr_Occurred()) SWIG_fail;
26724 }
26725 Py_INCREF(Py_None); resultobj = Py_None;
26726 return resultobj;
26727 fail:
26728 return NULL;
26729 }
26730
26731
26732 static PyObject *_wrap_FileDropTarget_base_OnDrop(PyObject *self, PyObject *args, PyObject *kwargs) {
26733 PyObject *resultobj;
26734 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
26735 int arg2 ;
26736 int arg3 ;
26737 bool result;
26738 PyObject * obj0 = 0 ;
26739 PyObject * obj1 = 0 ;
26740 PyObject * obj2 = 0 ;
26741 char *kwnames[] = {
26742 (char *) "self",(char *) "x",(char *) "y", NULL
26743 };
26744
26745 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileDropTarget_base_OnDrop",kwnames,&obj0,&obj1,&obj2)) goto fail;
26746 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget,
26747 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26748 arg2 = (int) SWIG_AsInt(obj1);
26749 if (PyErr_Occurred()) SWIG_fail;
26750 arg3 = (int) SWIG_AsInt(obj2);
26751 if (PyErr_Occurred()) SWIG_fail;
26752 {
26753 PyThreadState* __tstate = wxPyBeginAllowThreads();
26754 result = (bool)(arg1)->base_OnDrop(arg2,arg3);
26755
26756 wxPyEndAllowThreads(__tstate);
26757 if (PyErr_Occurred()) SWIG_fail;
26758 }
26759 {
26760 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26761 }
26762 return resultobj;
26763 fail:
26764 return NULL;
26765 }
26766
26767
26768 static PyObject *_wrap_FileDropTarget_base_OnData(PyObject *self, PyObject *args, PyObject *kwargs) {
26769 PyObject *resultobj;
26770 wxPyFileDropTarget *arg1 = (wxPyFileDropTarget *) 0 ;
26771 int arg2 ;
26772 int arg3 ;
26773 int arg4 ;
26774 int result;
26775 PyObject * obj0 = 0 ;
26776 PyObject * obj1 = 0 ;
26777 PyObject * obj2 = 0 ;
26778 PyObject * obj3 = 0 ;
26779 char *kwnames[] = {
26780 (char *) "self",(char *) "x",(char *) "y",(char *) "def", NULL
26781 };
26782
26783 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FileDropTarget_base_OnData",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26784 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFileDropTarget,
26785 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26786 arg2 = (int) SWIG_AsInt(obj1);
26787 if (PyErr_Occurred()) SWIG_fail;
26788 arg3 = (int) SWIG_AsInt(obj2);
26789 if (PyErr_Occurred()) SWIG_fail;
26790 arg4 = (wxDragResult) SWIG_AsInt(obj3);
26791 if (PyErr_Occurred()) SWIG_fail;
26792 {
26793 PyThreadState* __tstate = wxPyBeginAllowThreads();
26794 result = (int)(arg1)->base_OnData(arg2,arg3,(wxDragResult )arg4);
26795
26796 wxPyEndAllowThreads(__tstate);
26797 if (PyErr_Occurred()) SWIG_fail;
26798 }
26799 resultobj = SWIG_FromInt((int)result);
26800 return resultobj;
26801 fail:
26802 return NULL;
26803 }
26804
26805
26806 static PyObject * FileDropTarget_swigregister(PyObject *self, PyObject *args) {
26807 PyObject *obj;
26808 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
26809 SWIG_TypeClientData(SWIGTYPE_p_wxPyFileDropTarget, obj);
26810 Py_INCREF(obj);
26811 return Py_BuildValue((char *)"");
26812 }
26813 static PyObject *_wrap_new_Clipboard(PyObject *self, PyObject *args, PyObject *kwargs) {
26814 PyObject *resultobj;
26815 wxClipboard *result;
26816 char *kwnames[] = {
26817 NULL
26818 };
26819
26820 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Clipboard",kwnames)) goto fail;
26821 {
26822 PyThreadState* __tstate = wxPyBeginAllowThreads();
26823 result = (wxClipboard *)new wxClipboard();
26824
26825 wxPyEndAllowThreads(__tstate);
26826 if (PyErr_Occurred()) SWIG_fail;
26827 }
26828 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClipboard, 1);
26829 return resultobj;
26830 fail:
26831 return NULL;
26832 }
26833
26834
26835 static PyObject *_wrap_delete_Clipboard(PyObject *self, PyObject *args, PyObject *kwargs) {
26836 PyObject *resultobj;
26837 wxClipboard *arg1 = (wxClipboard *) 0 ;
26838 PyObject * obj0 = 0 ;
26839 char *kwnames[] = {
26840 (char *) "self", NULL
26841 };
26842
26843 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Clipboard",kwnames,&obj0)) goto fail;
26844 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
26845 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26846 {
26847 PyThreadState* __tstate = wxPyBeginAllowThreads();
26848 delete arg1;
26849
26850 wxPyEndAllowThreads(__tstate);
26851 if (PyErr_Occurred()) SWIG_fail;
26852 }
26853 Py_INCREF(Py_None); resultobj = Py_None;
26854 return resultobj;
26855 fail:
26856 return NULL;
26857 }
26858
26859
26860 static PyObject *_wrap_Clipboard_Open(PyObject *self, PyObject *args, PyObject *kwargs) {
26861 PyObject *resultobj;
26862 wxClipboard *arg1 = (wxClipboard *) 0 ;
26863 bool result;
26864 PyObject * obj0 = 0 ;
26865 char *kwnames[] = {
26866 (char *) "self", NULL
26867 };
26868
26869 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Open",kwnames,&obj0)) goto fail;
26870 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
26871 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26872 {
26873 PyThreadState* __tstate = wxPyBeginAllowThreads();
26874 result = (bool)(arg1)->Open();
26875
26876 wxPyEndAllowThreads(__tstate);
26877 if (PyErr_Occurred()) SWIG_fail;
26878 }
26879 {
26880 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26881 }
26882 return resultobj;
26883 fail:
26884 return NULL;
26885 }
26886
26887
26888 static PyObject *_wrap_Clipboard_Close(PyObject *self, PyObject *args, PyObject *kwargs) {
26889 PyObject *resultobj;
26890 wxClipboard *arg1 = (wxClipboard *) 0 ;
26891 PyObject * obj0 = 0 ;
26892 char *kwnames[] = {
26893 (char *) "self", NULL
26894 };
26895
26896 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Close",kwnames,&obj0)) goto fail;
26897 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
26898 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26899 {
26900 PyThreadState* __tstate = wxPyBeginAllowThreads();
26901 (arg1)->Close();
26902
26903 wxPyEndAllowThreads(__tstate);
26904 if (PyErr_Occurred()) SWIG_fail;
26905 }
26906 Py_INCREF(Py_None); resultobj = Py_None;
26907 return resultobj;
26908 fail:
26909 return NULL;
26910 }
26911
26912
26913 static PyObject *_wrap_Clipboard_IsOpened(PyObject *self, PyObject *args, PyObject *kwargs) {
26914 PyObject *resultobj;
26915 wxClipboard *arg1 = (wxClipboard *) 0 ;
26916 bool result;
26917 PyObject * obj0 = 0 ;
26918 char *kwnames[] = {
26919 (char *) "self", NULL
26920 };
26921
26922 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_IsOpened",kwnames,&obj0)) goto fail;
26923 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
26924 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26925 {
26926 PyThreadState* __tstate = wxPyBeginAllowThreads();
26927 result = (bool)((wxClipboard const *)arg1)->IsOpened();
26928
26929 wxPyEndAllowThreads(__tstate);
26930 if (PyErr_Occurred()) SWIG_fail;
26931 }
26932 {
26933 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26934 }
26935 return resultobj;
26936 fail:
26937 return NULL;
26938 }
26939
26940
26941 static PyObject *_wrap_Clipboard_AddData(PyObject *self, PyObject *args, PyObject *kwargs) {
26942 PyObject *resultobj;
26943 wxClipboard *arg1 = (wxClipboard *) 0 ;
26944 wxDataObject *arg2 = (wxDataObject *) 0 ;
26945 bool result;
26946 PyObject * obj0 = 0 ;
26947 PyObject * obj1 = 0 ;
26948 char *kwnames[] = {
26949 (char *) "self",(char *) "data", NULL
26950 };
26951
26952 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_AddData",kwnames,&obj0,&obj1)) goto fail;
26953 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
26954 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26955 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject,
26956 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
26957 {
26958 PyThreadState* __tstate = wxPyBeginAllowThreads();
26959 result = (bool)(arg1)->AddData(arg2);
26960
26961 wxPyEndAllowThreads(__tstate);
26962 if (PyErr_Occurred()) SWIG_fail;
26963 }
26964 {
26965 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26966 }
26967 return resultobj;
26968 fail:
26969 return NULL;
26970 }
26971
26972
26973 static PyObject *_wrap_Clipboard_SetData(PyObject *self, PyObject *args, PyObject *kwargs) {
26974 PyObject *resultobj;
26975 wxClipboard *arg1 = (wxClipboard *) 0 ;
26976 wxDataObject *arg2 = (wxDataObject *) 0 ;
26977 bool result;
26978 PyObject * obj0 = 0 ;
26979 PyObject * obj1 = 0 ;
26980 char *kwnames[] = {
26981 (char *) "self",(char *) "data", NULL
26982 };
26983
26984 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_SetData",kwnames,&obj0,&obj1)) goto fail;
26985 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
26986 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26987 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject,
26988 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
26989 {
26990 PyThreadState* __tstate = wxPyBeginAllowThreads();
26991 result = (bool)(arg1)->SetData(arg2);
26992
26993 wxPyEndAllowThreads(__tstate);
26994 if (PyErr_Occurred()) SWIG_fail;
26995 }
26996 {
26997 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26998 }
26999 return resultobj;
27000 fail:
27001 return NULL;
27002 }
27003
27004
27005 static PyObject *_wrap_Clipboard_IsSupported(PyObject *self, PyObject *args, PyObject *kwargs) {
27006 PyObject *resultobj;
27007 wxClipboard *arg1 = (wxClipboard *) 0 ;
27008 wxDataFormat *arg2 = 0 ;
27009 bool result;
27010 PyObject * obj0 = 0 ;
27011 PyObject * obj1 = 0 ;
27012 char *kwnames[] = {
27013 (char *) "self",(char *) "format", NULL
27014 };
27015
27016 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_IsSupported",kwnames,&obj0,&obj1)) goto fail;
27017 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27018 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27019 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataFormat,
27020 SWIG_POINTER_EXCEPTION | 0)) == -1)
27021 SWIG_fail;
27022 if (arg2 == NULL) {
27023 PyErr_SetString(PyExc_TypeError,"null reference");
27024 SWIG_fail;
27025 }
27026 {
27027 PyThreadState* __tstate = wxPyBeginAllowThreads();
27028 result = (bool)(arg1)->IsSupported((wxDataFormat const &)*arg2);
27029
27030 wxPyEndAllowThreads(__tstate);
27031 if (PyErr_Occurred()) SWIG_fail;
27032 }
27033 {
27034 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27035 }
27036 return resultobj;
27037 fail:
27038 return NULL;
27039 }
27040
27041
27042 static PyObject *_wrap_Clipboard_GetData(PyObject *self, PyObject *args, PyObject *kwargs) {
27043 PyObject *resultobj;
27044 wxClipboard *arg1 = (wxClipboard *) 0 ;
27045 wxDataObject *arg2 = 0 ;
27046 bool result;
27047 PyObject * obj0 = 0 ;
27048 PyObject * obj1 = 0 ;
27049 char *kwnames[] = {
27050 (char *) "self",(char *) "data", NULL
27051 };
27052
27053 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Clipboard_GetData",kwnames,&obj0,&obj1)) goto fail;
27054 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27055 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27056 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDataObject,
27057 SWIG_POINTER_EXCEPTION | 0)) == -1)
27058 SWIG_fail;
27059 if (arg2 == NULL) {
27060 PyErr_SetString(PyExc_TypeError,"null reference");
27061 SWIG_fail;
27062 }
27063 {
27064 PyThreadState* __tstate = wxPyBeginAllowThreads();
27065 result = (bool)(arg1)->GetData(*arg2);
27066
27067 wxPyEndAllowThreads(__tstate);
27068 if (PyErr_Occurred()) SWIG_fail;
27069 }
27070 {
27071 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27072 }
27073 return resultobj;
27074 fail:
27075 return NULL;
27076 }
27077
27078
27079 static PyObject *_wrap_Clipboard_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
27080 PyObject *resultobj;
27081 wxClipboard *arg1 = (wxClipboard *) 0 ;
27082 PyObject * obj0 = 0 ;
27083 char *kwnames[] = {
27084 (char *) "self", NULL
27085 };
27086
27087 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Clear",kwnames,&obj0)) goto fail;
27088 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27089 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27090 {
27091 PyThreadState* __tstate = wxPyBeginAllowThreads();
27092 (arg1)->Clear();
27093
27094 wxPyEndAllowThreads(__tstate);
27095 if (PyErr_Occurred()) SWIG_fail;
27096 }
27097 Py_INCREF(Py_None); resultobj = Py_None;
27098 return resultobj;
27099 fail:
27100 return NULL;
27101 }
27102
27103
27104 static PyObject *_wrap_Clipboard_Flush(PyObject *self, PyObject *args, PyObject *kwargs) {
27105 PyObject *resultobj;
27106 wxClipboard *arg1 = (wxClipboard *) 0 ;
27107 bool result;
27108 PyObject * obj0 = 0 ;
27109 char *kwnames[] = {
27110 (char *) "self", NULL
27111 };
27112
27113 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Clipboard_Flush",kwnames,&obj0)) goto fail;
27114 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27115 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27116 {
27117 PyThreadState* __tstate = wxPyBeginAllowThreads();
27118 result = (bool)(arg1)->Flush();
27119
27120 wxPyEndAllowThreads(__tstate);
27121 if (PyErr_Occurred()) SWIG_fail;
27122 }
27123 {
27124 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27125 }
27126 return resultobj;
27127 fail:
27128 return NULL;
27129 }
27130
27131
27132 static PyObject *_wrap_Clipboard_UsePrimarySelection(PyObject *self, PyObject *args, PyObject *kwargs) {
27133 PyObject *resultobj;
27134 wxClipboard *arg1 = (wxClipboard *) 0 ;
27135 bool arg2 = (bool) True ;
27136 PyObject * obj0 = 0 ;
27137 PyObject * obj1 = 0 ;
27138 char *kwnames[] = {
27139 (char *) "self",(char *) "primary", NULL
27140 };
27141
27142 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Clipboard_UsePrimarySelection",kwnames,&obj0,&obj1)) goto fail;
27143 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27144 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27145 if (obj1) {
27146 arg2 = (bool) SWIG_AsBool(obj1);
27147 if (PyErr_Occurred()) SWIG_fail;
27148 }
27149 {
27150 PyThreadState* __tstate = wxPyBeginAllowThreads();
27151 (arg1)->UsePrimarySelection(arg2);
27152
27153 wxPyEndAllowThreads(__tstate);
27154 if (PyErr_Occurred()) SWIG_fail;
27155 }
27156 Py_INCREF(Py_None); resultobj = Py_None;
27157 return resultobj;
27158 fail:
27159 return NULL;
27160 }
27161
27162
27163 static PyObject * Clipboard_swigregister(PyObject *self, PyObject *args) {
27164 PyObject *obj;
27165 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
27166 SWIG_TypeClientData(SWIGTYPE_p_wxClipboard, obj);
27167 Py_INCREF(obj);
27168 return Py_BuildValue((char *)"");
27169 }
27170 static int _wrap_TheClipboard_set(PyObject *_val) {
27171 PyErr_SetString(PyExc_TypeError,"Variable TheClipboard is read-only.");
27172 return 1;
27173 }
27174
27175
27176 static PyObject *_wrap_TheClipboard_get() {
27177 PyObject *pyobj;
27178
27179 pyobj = SWIG_NewPointerObj((void *)(wxTheClipboard), SWIGTYPE_p_wxClipboard, 0);
27180 return pyobj;
27181 }
27182
27183
27184 static PyObject *_wrap_new_ClipboardLocker(PyObject *self, PyObject *args, PyObject *kwargs) {
27185 PyObject *resultobj;
27186 wxClipboard *arg1 = (wxClipboard *) NULL ;
27187 wxClipboardLocker *result;
27188 PyObject * obj0 = 0 ;
27189 char *kwnames[] = {
27190 (char *) "clipboard", NULL
27191 };
27192
27193 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_ClipboardLocker",kwnames,&obj0)) goto fail;
27194 if (obj0) {
27195 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboard,
27196 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27197 }
27198 {
27199 PyThreadState* __tstate = wxPyBeginAllowThreads();
27200 result = (wxClipboardLocker *)new wxClipboardLocker(arg1);
27201
27202 wxPyEndAllowThreads(__tstate);
27203 if (PyErr_Occurred()) SWIG_fail;
27204 }
27205 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClipboardLocker, 1);
27206 return resultobj;
27207 fail:
27208 return NULL;
27209 }
27210
27211
27212 static PyObject *_wrap_delete_ClipboardLocker(PyObject *self, PyObject *args, PyObject *kwargs) {
27213 PyObject *resultobj;
27214 wxClipboardLocker *arg1 = (wxClipboardLocker *) 0 ;
27215 PyObject * obj0 = 0 ;
27216 char *kwnames[] = {
27217 (char *) "self", NULL
27218 };
27219
27220 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ClipboardLocker",kwnames,&obj0)) goto fail;
27221 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboardLocker,
27222 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27223 {
27224 PyThreadState* __tstate = wxPyBeginAllowThreads();
27225 delete arg1;
27226
27227 wxPyEndAllowThreads(__tstate);
27228 if (PyErr_Occurred()) SWIG_fail;
27229 }
27230 Py_INCREF(Py_None); resultobj = Py_None;
27231 return resultobj;
27232 fail:
27233 return NULL;
27234 }
27235
27236
27237 static PyObject *_wrap_ClipboardLocker___nonzero__(PyObject *self, PyObject *args, PyObject *kwargs) {
27238 PyObject *resultobj;
27239 wxClipboardLocker *arg1 = (wxClipboardLocker *) 0 ;
27240 bool result;
27241 PyObject * obj0 = 0 ;
27242 char *kwnames[] = {
27243 (char *) "self", NULL
27244 };
27245
27246 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ClipboardLocker___nonzero__",kwnames,&obj0)) goto fail;
27247 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxClipboardLocker,
27248 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27249 {
27250 PyThreadState* __tstate = wxPyBeginAllowThreads();
27251 result = (bool)wxClipboardLocker___nonzero__(arg1);
27252
27253 wxPyEndAllowThreads(__tstate);
27254 if (PyErr_Occurred()) SWIG_fail;
27255 }
27256 {
27257 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27258 }
27259 return resultobj;
27260 fail:
27261 return NULL;
27262 }
27263
27264
27265 static PyObject * ClipboardLocker_swigregister(PyObject *self, PyObject *args) {
27266 PyObject *obj;
27267 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
27268 SWIG_TypeClientData(SWIGTYPE_p_wxClipboardLocker, obj);
27269 Py_INCREF(obj);
27270 return Py_BuildValue((char *)"");
27271 }
27272 static PyObject *_wrap_new_VideoMode(PyObject *self, PyObject *args, PyObject *kwargs) {
27273 PyObject *resultobj;
27274 int arg1 = (int) 0 ;
27275 int arg2 = (int) 0 ;
27276 int arg3 = (int) 0 ;
27277 int arg4 = (int) 0 ;
27278 wxVideoMode *result;
27279 PyObject * obj0 = 0 ;
27280 PyObject * obj1 = 0 ;
27281 PyObject * obj2 = 0 ;
27282 PyObject * obj3 = 0 ;
27283 char *kwnames[] = {
27284 (char *) "width",(char *) "height",(char *) "depth",(char *) "freq", NULL
27285 };
27286
27287 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_VideoMode",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
27288 if (obj0) {
27289 arg1 = (int) SWIG_AsInt(obj0);
27290 if (PyErr_Occurred()) SWIG_fail;
27291 }
27292 if (obj1) {
27293 arg2 = (int) SWIG_AsInt(obj1);
27294 if (PyErr_Occurred()) SWIG_fail;
27295 }
27296 if (obj2) {
27297 arg3 = (int) SWIG_AsInt(obj2);
27298 if (PyErr_Occurred()) SWIG_fail;
27299 }
27300 if (obj3) {
27301 arg4 = (int) SWIG_AsInt(obj3);
27302 if (PyErr_Occurred()) SWIG_fail;
27303 }
27304 {
27305 PyThreadState* __tstate = wxPyBeginAllowThreads();
27306 result = (wxVideoMode *)new wxVideoMode(arg1,arg2,arg3,arg4);
27307
27308 wxPyEndAllowThreads(__tstate);
27309 if (PyErr_Occurred()) SWIG_fail;
27310 }
27311 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxVideoMode, 1);
27312 return resultobj;
27313 fail:
27314 return NULL;
27315 }
27316
27317
27318 static PyObject *_wrap_delete_VideoMode(PyObject *self, PyObject *args, PyObject *kwargs) {
27319 PyObject *resultobj;
27320 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27321 PyObject * obj0 = 0 ;
27322 char *kwnames[] = {
27323 (char *) "self", NULL
27324 };
27325
27326 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_VideoMode",kwnames,&obj0)) goto fail;
27327 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27328 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27329 {
27330 PyThreadState* __tstate = wxPyBeginAllowThreads();
27331 delete arg1;
27332
27333 wxPyEndAllowThreads(__tstate);
27334 if (PyErr_Occurred()) SWIG_fail;
27335 }
27336 Py_INCREF(Py_None); resultobj = Py_None;
27337 return resultobj;
27338 fail:
27339 return NULL;
27340 }
27341
27342
27343 static PyObject *_wrap_VideoMode_Matches(PyObject *self, PyObject *args, PyObject *kwargs) {
27344 PyObject *resultobj;
27345 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27346 wxVideoMode *arg2 = 0 ;
27347 bool result;
27348 PyObject * obj0 = 0 ;
27349 PyObject * obj1 = 0 ;
27350 char *kwnames[] = {
27351 (char *) "self",(char *) "other", NULL
27352 };
27353
27354 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_Matches",kwnames,&obj0,&obj1)) goto fail;
27355 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27356 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27357 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode,
27358 SWIG_POINTER_EXCEPTION | 0)) == -1)
27359 SWIG_fail;
27360 if (arg2 == NULL) {
27361 PyErr_SetString(PyExc_TypeError,"null reference");
27362 SWIG_fail;
27363 }
27364 {
27365 PyThreadState* __tstate = wxPyBeginAllowThreads();
27366 result = (bool)((wxVideoMode const *)arg1)->Matches((wxVideoMode const &)*arg2);
27367
27368 wxPyEndAllowThreads(__tstate);
27369 if (PyErr_Occurred()) SWIG_fail;
27370 }
27371 {
27372 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27373 }
27374 return resultobj;
27375 fail:
27376 return NULL;
27377 }
27378
27379
27380 static PyObject *_wrap_VideoMode_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
27381 PyObject *resultobj;
27382 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27383 int result;
27384 PyObject * obj0 = 0 ;
27385 char *kwnames[] = {
27386 (char *) "self", NULL
27387 };
27388
27389 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_GetWidth",kwnames,&obj0)) goto fail;
27390 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27391 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27392 {
27393 PyThreadState* __tstate = wxPyBeginAllowThreads();
27394 result = (int)((wxVideoMode const *)arg1)->GetWidth();
27395
27396 wxPyEndAllowThreads(__tstate);
27397 if (PyErr_Occurred()) SWIG_fail;
27398 }
27399 resultobj = SWIG_FromInt((int)result);
27400 return resultobj;
27401 fail:
27402 return NULL;
27403 }
27404
27405
27406 static PyObject *_wrap_VideoMode_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
27407 PyObject *resultobj;
27408 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27409 int result;
27410 PyObject * obj0 = 0 ;
27411 char *kwnames[] = {
27412 (char *) "self", NULL
27413 };
27414
27415 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_GetHeight",kwnames,&obj0)) goto fail;
27416 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27417 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27418 {
27419 PyThreadState* __tstate = wxPyBeginAllowThreads();
27420 result = (int)((wxVideoMode const *)arg1)->GetHeight();
27421
27422 wxPyEndAllowThreads(__tstate);
27423 if (PyErr_Occurred()) SWIG_fail;
27424 }
27425 resultobj = SWIG_FromInt((int)result);
27426 return resultobj;
27427 fail:
27428 return NULL;
27429 }
27430
27431
27432 static PyObject *_wrap_VideoMode_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
27433 PyObject *resultobj;
27434 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27435 int result;
27436 PyObject * obj0 = 0 ;
27437 char *kwnames[] = {
27438 (char *) "self", NULL
27439 };
27440
27441 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_GetDepth",kwnames,&obj0)) goto fail;
27442 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27443 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27444 {
27445 PyThreadState* __tstate = wxPyBeginAllowThreads();
27446 result = (int)((wxVideoMode const *)arg1)->GetDepth();
27447
27448 wxPyEndAllowThreads(__tstate);
27449 if (PyErr_Occurred()) SWIG_fail;
27450 }
27451 resultobj = SWIG_FromInt((int)result);
27452 return resultobj;
27453 fail:
27454 return NULL;
27455 }
27456
27457
27458 static PyObject *_wrap_VideoMode_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
27459 PyObject *resultobj;
27460 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27461 bool result;
27462 PyObject * obj0 = 0 ;
27463 char *kwnames[] = {
27464 (char *) "self", NULL
27465 };
27466
27467 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_IsOk",kwnames,&obj0)) goto fail;
27468 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27469 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27470 {
27471 PyThreadState* __tstate = wxPyBeginAllowThreads();
27472 result = (bool)((wxVideoMode const *)arg1)->IsOk();
27473
27474 wxPyEndAllowThreads(__tstate);
27475 if (PyErr_Occurred()) SWIG_fail;
27476 }
27477 {
27478 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27479 }
27480 return resultobj;
27481 fail:
27482 return NULL;
27483 }
27484
27485
27486 static PyObject *_wrap_VideoMode___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
27487 PyObject *resultobj;
27488 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27489 wxVideoMode *arg2 = (wxVideoMode *) 0 ;
27490 bool result;
27491 PyObject * obj0 = 0 ;
27492 PyObject * obj1 = 0 ;
27493 char *kwnames[] = {
27494 (char *) "self",(char *) "other", NULL
27495 };
27496
27497 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode___eq__",kwnames,&obj0,&obj1)) goto fail;
27498 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27499 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27500 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode,
27501 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27502 {
27503 PyThreadState* __tstate = wxPyBeginAllowThreads();
27504 result = (bool)wxVideoMode___eq__(arg1,(wxVideoMode const *)arg2);
27505
27506 wxPyEndAllowThreads(__tstate);
27507 if (PyErr_Occurred()) SWIG_fail;
27508 }
27509 {
27510 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27511 }
27512 return resultobj;
27513 fail:
27514 return NULL;
27515 }
27516
27517
27518 static PyObject *_wrap_VideoMode___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
27519 PyObject *resultobj;
27520 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27521 wxVideoMode *arg2 = (wxVideoMode *) 0 ;
27522 bool result;
27523 PyObject * obj0 = 0 ;
27524 PyObject * obj1 = 0 ;
27525 char *kwnames[] = {
27526 (char *) "self",(char *) "other", NULL
27527 };
27528
27529 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode___ne__",kwnames,&obj0,&obj1)) goto fail;
27530 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27531 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27532 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode,
27533 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27534 {
27535 PyThreadState* __tstate = wxPyBeginAllowThreads();
27536 result = (bool)wxVideoMode___ne__(arg1,(wxVideoMode const *)arg2);
27537
27538 wxPyEndAllowThreads(__tstate);
27539 if (PyErr_Occurred()) SWIG_fail;
27540 }
27541 {
27542 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27543 }
27544 return resultobj;
27545 fail:
27546 return NULL;
27547 }
27548
27549
27550 static PyObject *_wrap_VideoMode_w_set(PyObject *self, PyObject *args, PyObject *kwargs) {
27551 PyObject *resultobj;
27552 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27553 int arg2 ;
27554 PyObject * obj0 = 0 ;
27555 PyObject * obj1 = 0 ;
27556 char *kwnames[] = {
27557 (char *) "self",(char *) "w", NULL
27558 };
27559
27560 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_w_set",kwnames,&obj0,&obj1)) goto fail;
27561 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27562 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27563 arg2 = (int) SWIG_AsInt(obj1);
27564 if (PyErr_Occurred()) SWIG_fail;
27565 if (arg1) (arg1)->w = arg2;
27566
27567 Py_INCREF(Py_None); resultobj = Py_None;
27568 return resultobj;
27569 fail:
27570 return NULL;
27571 }
27572
27573
27574 static PyObject *_wrap_VideoMode_w_get(PyObject *self, PyObject *args, PyObject *kwargs) {
27575 PyObject *resultobj;
27576 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27577 int result;
27578 PyObject * obj0 = 0 ;
27579 char *kwnames[] = {
27580 (char *) "self", NULL
27581 };
27582
27583 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_w_get",kwnames,&obj0)) goto fail;
27584 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27585 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27586 result = (int) ((arg1)->w);
27587
27588 resultobj = SWIG_FromInt((int)result);
27589 return resultobj;
27590 fail:
27591 return NULL;
27592 }
27593
27594
27595 static PyObject *_wrap_VideoMode_h_set(PyObject *self, PyObject *args, PyObject *kwargs) {
27596 PyObject *resultobj;
27597 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27598 int arg2 ;
27599 PyObject * obj0 = 0 ;
27600 PyObject * obj1 = 0 ;
27601 char *kwnames[] = {
27602 (char *) "self",(char *) "h", NULL
27603 };
27604
27605 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_h_set",kwnames,&obj0,&obj1)) goto fail;
27606 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27607 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27608 arg2 = (int) SWIG_AsInt(obj1);
27609 if (PyErr_Occurred()) SWIG_fail;
27610 if (arg1) (arg1)->h = arg2;
27611
27612 Py_INCREF(Py_None); resultobj = Py_None;
27613 return resultobj;
27614 fail:
27615 return NULL;
27616 }
27617
27618
27619 static PyObject *_wrap_VideoMode_h_get(PyObject *self, PyObject *args, PyObject *kwargs) {
27620 PyObject *resultobj;
27621 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27622 int result;
27623 PyObject * obj0 = 0 ;
27624 char *kwnames[] = {
27625 (char *) "self", NULL
27626 };
27627
27628 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_h_get",kwnames,&obj0)) goto fail;
27629 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27630 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27631 result = (int) ((arg1)->h);
27632
27633 resultobj = SWIG_FromInt((int)result);
27634 return resultobj;
27635 fail:
27636 return NULL;
27637 }
27638
27639
27640 static PyObject *_wrap_VideoMode_bpp_set(PyObject *self, PyObject *args, PyObject *kwargs) {
27641 PyObject *resultobj;
27642 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27643 int arg2 ;
27644 PyObject * obj0 = 0 ;
27645 PyObject * obj1 = 0 ;
27646 char *kwnames[] = {
27647 (char *) "self",(char *) "bpp", NULL
27648 };
27649
27650 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_bpp_set",kwnames,&obj0,&obj1)) goto fail;
27651 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27652 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27653 arg2 = (int) SWIG_AsInt(obj1);
27654 if (PyErr_Occurred()) SWIG_fail;
27655 if (arg1) (arg1)->bpp = arg2;
27656
27657 Py_INCREF(Py_None); resultobj = Py_None;
27658 return resultobj;
27659 fail:
27660 return NULL;
27661 }
27662
27663
27664 static PyObject *_wrap_VideoMode_bpp_get(PyObject *self, PyObject *args, PyObject *kwargs) {
27665 PyObject *resultobj;
27666 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27667 int result;
27668 PyObject * obj0 = 0 ;
27669 char *kwnames[] = {
27670 (char *) "self", NULL
27671 };
27672
27673 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_bpp_get",kwnames,&obj0)) goto fail;
27674 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27675 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27676 result = (int) ((arg1)->bpp);
27677
27678 resultobj = SWIG_FromInt((int)result);
27679 return resultobj;
27680 fail:
27681 return NULL;
27682 }
27683
27684
27685 static PyObject *_wrap_VideoMode_refresh_set(PyObject *self, PyObject *args, PyObject *kwargs) {
27686 PyObject *resultobj;
27687 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27688 int arg2 ;
27689 PyObject * obj0 = 0 ;
27690 PyObject * obj1 = 0 ;
27691 char *kwnames[] = {
27692 (char *) "self",(char *) "refresh", NULL
27693 };
27694
27695 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:VideoMode_refresh_set",kwnames,&obj0,&obj1)) goto fail;
27696 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27697 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27698 arg2 = (int) SWIG_AsInt(obj1);
27699 if (PyErr_Occurred()) SWIG_fail;
27700 if (arg1) (arg1)->refresh = arg2;
27701
27702 Py_INCREF(Py_None); resultobj = Py_None;
27703 return resultobj;
27704 fail:
27705 return NULL;
27706 }
27707
27708
27709 static PyObject *_wrap_VideoMode_refresh_get(PyObject *self, PyObject *args, PyObject *kwargs) {
27710 PyObject *resultobj;
27711 wxVideoMode *arg1 = (wxVideoMode *) 0 ;
27712 int result;
27713 PyObject * obj0 = 0 ;
27714 char *kwnames[] = {
27715 (char *) "self", NULL
27716 };
27717
27718 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:VideoMode_refresh_get",kwnames,&obj0)) goto fail;
27719 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxVideoMode,
27720 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27721 result = (int) ((arg1)->refresh);
27722
27723 resultobj = SWIG_FromInt((int)result);
27724 return resultobj;
27725 fail:
27726 return NULL;
27727 }
27728
27729
27730 static PyObject * VideoMode_swigregister(PyObject *self, PyObject *args) {
27731 PyObject *obj;
27732 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
27733 SWIG_TypeClientData(SWIGTYPE_p_wxVideoMode, obj);
27734 Py_INCREF(obj);
27735 return Py_BuildValue((char *)"");
27736 }
27737 static int _wrap_DefaultVideoMode_set(PyObject *_val) {
27738 PyErr_SetString(PyExc_TypeError,"Variable DefaultVideoMode is read-only.");
27739 return 1;
27740 }
27741
27742
27743 static PyObject *_wrap_DefaultVideoMode_get() {
27744 PyObject *pyobj;
27745
27746 pyobj = SWIG_NewPointerObj((void *)(&wxDefaultVideoMode), SWIGTYPE_p_wxVideoMode, 0);
27747 return pyobj;
27748 }
27749
27750
27751 static PyObject *_wrap_new_Display(PyObject *self, PyObject *args, PyObject *kwargs) {
27752 PyObject *resultobj;
27753 size_t arg1 = (size_t) 0 ;
27754 wxDisplay *result;
27755 PyObject * obj0 = 0 ;
27756 char *kwnames[] = {
27757 (char *) "index", NULL
27758 };
27759
27760 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_Display",kwnames,&obj0)) goto fail;
27761 if (obj0) {
27762 arg1 = (size_t) SWIG_AsUnsignedLong(obj0);
27763 if (PyErr_Occurred()) SWIG_fail;
27764 }
27765 {
27766 PyThreadState* __tstate = wxPyBeginAllowThreads();
27767 result = (wxDisplay *)new wxDisplay(arg1);
27768
27769 wxPyEndAllowThreads(__tstate);
27770 if (PyErr_Occurred()) SWIG_fail;
27771 }
27772 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDisplay, 1);
27773 return resultobj;
27774 fail:
27775 return NULL;
27776 }
27777
27778
27779 static PyObject *_wrap_delete_Display(PyObject *self, PyObject *args, PyObject *kwargs) {
27780 PyObject *resultobj;
27781 wxDisplay *arg1 = (wxDisplay *) 0 ;
27782 PyObject * obj0 = 0 ;
27783 char *kwnames[] = {
27784 (char *) "self", NULL
27785 };
27786
27787 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Display",kwnames,&obj0)) goto fail;
27788 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
27789 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27790 {
27791 PyThreadState* __tstate = wxPyBeginAllowThreads();
27792 delete arg1;
27793
27794 wxPyEndAllowThreads(__tstate);
27795 if (PyErr_Occurred()) SWIG_fail;
27796 }
27797 Py_INCREF(Py_None); resultobj = Py_None;
27798 return resultobj;
27799 fail:
27800 return NULL;
27801 }
27802
27803
27804 static PyObject *_wrap_Display_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
27805 PyObject *resultobj;
27806 size_t result;
27807 char *kwnames[] = {
27808 NULL
27809 };
27810
27811 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Display_GetCount",kwnames)) goto fail;
27812 {
27813 PyThreadState* __tstate = wxPyBeginAllowThreads();
27814 result = (size_t)wxDisplay::GetCount();
27815
27816 wxPyEndAllowThreads(__tstate);
27817 if (PyErr_Occurred()) SWIG_fail;
27818 }
27819 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
27820 return resultobj;
27821 fail:
27822 return NULL;
27823 }
27824
27825
27826 static PyObject *_wrap_Display_GetFromPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
27827 PyObject *resultobj;
27828 wxPoint *arg1 = 0 ;
27829 int result;
27830 wxPoint temp1 ;
27831 PyObject * obj0 = 0 ;
27832 char *kwnames[] = {
27833 (char *) "pt", NULL
27834 };
27835
27836 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetFromPoint",kwnames,&obj0)) goto fail;
27837 {
27838 arg1 = &temp1;
27839 if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail;
27840 }
27841 {
27842 PyThreadState* __tstate = wxPyBeginAllowThreads();
27843 result = (int)wxDisplay::GetFromPoint((wxPoint const &)*arg1);
27844
27845 wxPyEndAllowThreads(__tstate);
27846 if (PyErr_Occurred()) SWIG_fail;
27847 }
27848 resultobj = SWIG_FromInt((int)result);
27849 return resultobj;
27850 fail:
27851 return NULL;
27852 }
27853
27854
27855 static PyObject *_wrap_Display_GetFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
27856 PyObject *resultobj;
27857 wxWindow *arg1 = (wxWindow *) 0 ;
27858 int result;
27859 PyObject * obj0 = 0 ;
27860 char *kwnames[] = {
27861 (char *) "window", NULL
27862 };
27863
27864 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetFromWindow",kwnames,&obj0)) goto fail;
27865 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
27866 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27867 {
27868 PyThreadState* __tstate = wxPyBeginAllowThreads();
27869 result = (int)Display_GetFromWindow(arg1);
27870
27871 wxPyEndAllowThreads(__tstate);
27872 if (PyErr_Occurred()) SWIG_fail;
27873 }
27874 resultobj = SWIG_FromInt((int)result);
27875 return resultobj;
27876 fail:
27877 return NULL;
27878 }
27879
27880
27881 static PyObject *_wrap_Display_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
27882 PyObject *resultobj;
27883 wxDisplay *arg1 = (wxDisplay *) 0 ;
27884 bool result;
27885 PyObject * obj0 = 0 ;
27886 char *kwnames[] = {
27887 (char *) "self", NULL
27888 };
27889
27890 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_IsOk",kwnames,&obj0)) goto fail;
27891 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
27892 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27893 {
27894 PyThreadState* __tstate = wxPyBeginAllowThreads();
27895 result = (bool)((wxDisplay const *)arg1)->IsOk();
27896
27897 wxPyEndAllowThreads(__tstate);
27898 if (PyErr_Occurred()) SWIG_fail;
27899 }
27900 {
27901 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27902 }
27903 return resultobj;
27904 fail:
27905 return NULL;
27906 }
27907
27908
27909 static PyObject *_wrap_Display_GetGeometry(PyObject *self, PyObject *args, PyObject *kwargs) {
27910 PyObject *resultobj;
27911 wxDisplay *arg1 = (wxDisplay *) 0 ;
27912 wxRect result;
27913 PyObject * obj0 = 0 ;
27914 char *kwnames[] = {
27915 (char *) "self", NULL
27916 };
27917
27918 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetGeometry",kwnames,&obj0)) goto fail;
27919 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
27920 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27921 {
27922 PyThreadState* __tstate = wxPyBeginAllowThreads();
27923 result = ((wxDisplay const *)arg1)->GetGeometry();
27924
27925 wxPyEndAllowThreads(__tstate);
27926 if (PyErr_Occurred()) SWIG_fail;
27927 }
27928 {
27929 wxRect * resultptr;
27930 resultptr = new wxRect((wxRect &) result);
27931 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
27932 }
27933 return resultobj;
27934 fail:
27935 return NULL;
27936 }
27937
27938
27939 static PyObject *_wrap_Display_GetName(PyObject *self, PyObject *args, PyObject *kwargs) {
27940 PyObject *resultobj;
27941 wxDisplay *arg1 = (wxDisplay *) 0 ;
27942 wxString result;
27943 PyObject * obj0 = 0 ;
27944 char *kwnames[] = {
27945 (char *) "self", NULL
27946 };
27947
27948 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetName",kwnames,&obj0)) goto fail;
27949 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
27950 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27951 {
27952 PyThreadState* __tstate = wxPyBeginAllowThreads();
27953 result = ((wxDisplay const *)arg1)->GetName();
27954
27955 wxPyEndAllowThreads(__tstate);
27956 if (PyErr_Occurred()) SWIG_fail;
27957 }
27958 {
27959 #if wxUSE_UNICODE
27960 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
27961 #else
27962 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
27963 #endif
27964 }
27965 return resultobj;
27966 fail:
27967 return NULL;
27968 }
27969
27970
27971 static PyObject *_wrap_Display_IsPrimary(PyObject *self, PyObject *args, PyObject *kwargs) {
27972 PyObject *resultobj;
27973 wxDisplay *arg1 = (wxDisplay *) 0 ;
27974 bool result;
27975 PyObject * obj0 = 0 ;
27976 char *kwnames[] = {
27977 (char *) "self", NULL
27978 };
27979
27980 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_IsPrimary",kwnames,&obj0)) goto fail;
27981 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
27982 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27983 {
27984 PyThreadState* __tstate = wxPyBeginAllowThreads();
27985 result = (bool)((wxDisplay const *)arg1)->IsPrimary();
27986
27987 wxPyEndAllowThreads(__tstate);
27988 if (PyErr_Occurred()) SWIG_fail;
27989 }
27990 {
27991 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27992 }
27993 return resultobj;
27994 fail:
27995 return NULL;
27996 }
27997
27998
27999 static PyObject *_wrap_Display_GetModes(PyObject *self, PyObject *args, PyObject *kwargs) {
28000 PyObject *resultobj;
28001 wxDisplay *arg1 = (wxDisplay *) 0 ;
28002 wxVideoMode const &arg2_defvalue = wxDefaultVideoMode ;
28003 wxVideoMode *arg2 = (wxVideoMode *) &arg2_defvalue ;
28004 PyObject *result;
28005 PyObject * obj0 = 0 ;
28006 PyObject * obj1 = 0 ;
28007 char *kwnames[] = {
28008 (char *) "self",(char *) "mode", NULL
28009 };
28010
28011 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Display_GetModes",kwnames,&obj0,&obj1)) goto fail;
28012 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
28013 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28014 if (obj1) {
28015 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode,
28016 SWIG_POINTER_EXCEPTION | 0)) == -1)
28017 SWIG_fail;
28018 if (arg2 == NULL) {
28019 PyErr_SetString(PyExc_TypeError,"null reference");
28020 SWIG_fail;
28021 }
28022 }
28023 {
28024 PyThreadState* __tstate = wxPyBeginAllowThreads();
28025 result = (PyObject *)wxDisplay_GetModes(arg1,(wxVideoMode const &)*arg2);
28026
28027 wxPyEndAllowThreads(__tstate);
28028 if (PyErr_Occurred()) SWIG_fail;
28029 }
28030 resultobj = result;
28031 return resultobj;
28032 fail:
28033 return NULL;
28034 }
28035
28036
28037 static PyObject *_wrap_Display_GetCurrentMode(PyObject *self, PyObject *args, PyObject *kwargs) {
28038 PyObject *resultobj;
28039 wxDisplay *arg1 = (wxDisplay *) 0 ;
28040 wxVideoMode result;
28041 PyObject * obj0 = 0 ;
28042 char *kwnames[] = {
28043 (char *) "self", NULL
28044 };
28045
28046 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_GetCurrentMode",kwnames,&obj0)) goto fail;
28047 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
28048 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28049 {
28050 PyThreadState* __tstate = wxPyBeginAllowThreads();
28051 result = ((wxDisplay const *)arg1)->GetCurrentMode();
28052
28053 wxPyEndAllowThreads(__tstate);
28054 if (PyErr_Occurred()) SWIG_fail;
28055 }
28056 {
28057 wxVideoMode * resultptr;
28058 resultptr = new wxVideoMode((wxVideoMode &) result);
28059 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVideoMode, 1);
28060 }
28061 return resultobj;
28062 fail:
28063 return NULL;
28064 }
28065
28066
28067 static PyObject *_wrap_Display_ChangeMode(PyObject *self, PyObject *args, PyObject *kwargs) {
28068 PyObject *resultobj;
28069 wxDisplay *arg1 = (wxDisplay *) 0 ;
28070 wxVideoMode const &arg2_defvalue = wxDefaultVideoMode ;
28071 wxVideoMode *arg2 = (wxVideoMode *) &arg2_defvalue ;
28072 bool result;
28073 PyObject * obj0 = 0 ;
28074 PyObject * obj1 = 0 ;
28075 char *kwnames[] = {
28076 (char *) "self",(char *) "mode", NULL
28077 };
28078
28079 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Display_ChangeMode",kwnames,&obj0,&obj1)) goto fail;
28080 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
28081 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28082 if (obj1) {
28083 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxVideoMode,
28084 SWIG_POINTER_EXCEPTION | 0)) == -1)
28085 SWIG_fail;
28086 if (arg2 == NULL) {
28087 PyErr_SetString(PyExc_TypeError,"null reference");
28088 SWIG_fail;
28089 }
28090 }
28091 {
28092 PyThreadState* __tstate = wxPyBeginAllowThreads();
28093 result = (bool)(arg1)->ChangeMode((wxVideoMode const &)*arg2);
28094
28095 wxPyEndAllowThreads(__tstate);
28096 if (PyErr_Occurred()) SWIG_fail;
28097 }
28098 {
28099 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28100 }
28101 return resultobj;
28102 fail:
28103 return NULL;
28104 }
28105
28106
28107 static PyObject *_wrap_Display_ResetMode(PyObject *self, PyObject *args, PyObject *kwargs) {
28108 PyObject *resultobj;
28109 wxDisplay *arg1 = (wxDisplay *) 0 ;
28110 PyObject * obj0 = 0 ;
28111 char *kwnames[] = {
28112 (char *) "self", NULL
28113 };
28114
28115 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Display_ResetMode",kwnames,&obj0)) goto fail;
28116 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDisplay,
28117 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28118 {
28119 PyThreadState* __tstate = wxPyBeginAllowThreads();
28120 (arg1)->ResetMode();
28121
28122 wxPyEndAllowThreads(__tstate);
28123 if (PyErr_Occurred()) SWIG_fail;
28124 }
28125 Py_INCREF(Py_None); resultobj = Py_None;
28126 return resultobj;
28127 fail:
28128 return NULL;
28129 }
28130
28131
28132 static PyObject * Display_swigregister(PyObject *self, PyObject *args) {
28133 PyObject *obj;
28134 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
28135 SWIG_TypeClientData(SWIGTYPE_p_wxDisplay, obj);
28136 Py_INCREF(obj);
28137 return Py_BuildValue((char *)"");
28138 }
28139 static PyMethodDef SwigMethods[] = {
28140 { (char *)"SystemSettings_GetColour", (PyCFunction) _wrap_SystemSettings_GetColour, METH_VARARGS | METH_KEYWORDS },
28141 { (char *)"SystemSettings_GetFont", (PyCFunction) _wrap_SystemSettings_GetFont, METH_VARARGS | METH_KEYWORDS },
28142 { (char *)"SystemSettings_GetMetric", (PyCFunction) _wrap_SystemSettings_GetMetric, METH_VARARGS | METH_KEYWORDS },
28143 { (char *)"SystemSettings_HasFeature", (PyCFunction) _wrap_SystemSettings_HasFeature, METH_VARARGS | METH_KEYWORDS },
28144 { (char *)"SystemSettings_GetScreenType", (PyCFunction) _wrap_SystemSettings_GetScreenType, METH_VARARGS | METH_KEYWORDS },
28145 { (char *)"SystemSettings_SetScreenType", (PyCFunction) _wrap_SystemSettings_SetScreenType, METH_VARARGS | METH_KEYWORDS },
28146 { (char *)"SystemSettings_swigregister", SystemSettings_swigregister, METH_VARARGS },
28147 { (char *)"new_SystemOptions", (PyCFunction) _wrap_new_SystemOptions, METH_VARARGS | METH_KEYWORDS },
28148 { (char *)"SystemOptions_SetOption", (PyCFunction) _wrap_SystemOptions_SetOption, METH_VARARGS | METH_KEYWORDS },
28149 { (char *)"SystemOptions_SetOptionInt", (PyCFunction) _wrap_SystemOptions_SetOptionInt, METH_VARARGS | METH_KEYWORDS },
28150 { (char *)"SystemOptions_GetOption", (PyCFunction) _wrap_SystemOptions_GetOption, METH_VARARGS | METH_KEYWORDS },
28151 { (char *)"SystemOptions_GetOptionInt", (PyCFunction) _wrap_SystemOptions_GetOptionInt, METH_VARARGS | METH_KEYWORDS },
28152 { (char *)"SystemOptions_HasOption", (PyCFunction) _wrap_SystemOptions_HasOption, METH_VARARGS | METH_KEYWORDS },
28153 { (char *)"SystemOptions_swigregister", SystemOptions_swigregister, METH_VARARGS },
28154 { (char *)"NewId", (PyCFunction) _wrap_NewId, METH_VARARGS | METH_KEYWORDS },
28155 { (char *)"RegisterId", (PyCFunction) _wrap_RegisterId, METH_VARARGS | METH_KEYWORDS },
28156 { (char *)"GetCurrentId", (PyCFunction) _wrap_GetCurrentId, METH_VARARGS | METH_KEYWORDS },
28157 { (char *)"Bell", (PyCFunction) _wrap_Bell, METH_VARARGS | METH_KEYWORDS },
28158 { (char *)"EndBusyCursor", (PyCFunction) _wrap_EndBusyCursor, METH_VARARGS | METH_KEYWORDS },
28159 { (char *)"GetElapsedTime", (PyCFunction) _wrap_GetElapsedTime, METH_VARARGS | METH_KEYWORDS },
28160 { (char *)"GetMousePosition", (PyCFunction) _wrap_GetMousePosition, METH_VARARGS | METH_KEYWORDS },
28161 { (char *)"IsBusy", (PyCFunction) _wrap_IsBusy, METH_VARARGS | METH_KEYWORDS },
28162 { (char *)"Now", (PyCFunction) _wrap_Now, METH_VARARGS | METH_KEYWORDS },
28163 { (char *)"Shell", (PyCFunction) _wrap_Shell, METH_VARARGS | METH_KEYWORDS },
28164 { (char *)"StartTimer", (PyCFunction) _wrap_StartTimer, METH_VARARGS | METH_KEYWORDS },
28165 { (char *)"GetOsVersion", (PyCFunction) _wrap_GetOsVersion, METH_VARARGS | METH_KEYWORDS },
28166 { (char *)"GetOsDescription", (PyCFunction) _wrap_GetOsDescription, METH_VARARGS | METH_KEYWORDS },
28167 { (char *)"GetFreeMemory", (PyCFunction) _wrap_GetFreeMemory, METH_VARARGS | METH_KEYWORDS },
28168 { (char *)"Shutdown", (PyCFunction) _wrap_Shutdown, METH_VARARGS | METH_KEYWORDS },
28169 { (char *)"Sleep", (PyCFunction) _wrap_Sleep, METH_VARARGS | METH_KEYWORDS },
28170 { (char *)"Usleep", (PyCFunction) _wrap_Usleep, METH_VARARGS | METH_KEYWORDS },
28171 { (char *)"EnableTopLevelWindows", (PyCFunction) _wrap_EnableTopLevelWindows, METH_VARARGS | METH_KEYWORDS },
28172 { (char *)"StripMenuCodes", (PyCFunction) _wrap_StripMenuCodes, METH_VARARGS | METH_KEYWORDS },
28173 { (char *)"GetEmailAddress", (PyCFunction) _wrap_GetEmailAddress, METH_VARARGS | METH_KEYWORDS },
28174 { (char *)"GetHostName", (PyCFunction) _wrap_GetHostName, METH_VARARGS | METH_KEYWORDS },
28175 { (char *)"GetFullHostName", (PyCFunction) _wrap_GetFullHostName, METH_VARARGS | METH_KEYWORDS },
28176 { (char *)"GetUserId", (PyCFunction) _wrap_GetUserId, METH_VARARGS | METH_KEYWORDS },
28177 { (char *)"GetUserName", (PyCFunction) _wrap_GetUserName, METH_VARARGS | METH_KEYWORDS },
28178 { (char *)"GetHomeDir", (PyCFunction) _wrap_GetHomeDir, METH_VARARGS | METH_KEYWORDS },
28179 { (char *)"GetUserHome", (PyCFunction) _wrap_GetUserHome, METH_VARARGS | METH_KEYWORDS },
28180 { (char *)"GetProcessId", (PyCFunction) _wrap_GetProcessId, METH_VARARGS | METH_KEYWORDS },
28181 { (char *)"Trap", (PyCFunction) _wrap_Trap, METH_VARARGS | METH_KEYWORDS },
28182 { (char *)"FileSelector", (PyCFunction) _wrap_FileSelector, METH_VARARGS | METH_KEYWORDS },
28183 { (char *)"LoadFileSelector", (PyCFunction) _wrap_LoadFileSelector, METH_VARARGS | METH_KEYWORDS },
28184 { (char *)"SaveFileSelector", (PyCFunction) _wrap_SaveFileSelector, METH_VARARGS | METH_KEYWORDS },
28185 { (char *)"DirSelector", (PyCFunction) _wrap_DirSelector, METH_VARARGS | METH_KEYWORDS },
28186 { (char *)"GetTextFromUser", (PyCFunction) _wrap_GetTextFromUser, METH_VARARGS | METH_KEYWORDS },
28187 { (char *)"GetPasswordFromUser", (PyCFunction) _wrap_GetPasswordFromUser, METH_VARARGS | METH_KEYWORDS },
28188 { (char *)"GetSingleChoice", (PyCFunction) _wrap_GetSingleChoice, METH_VARARGS | METH_KEYWORDS },
28189 { (char *)"GetSingleChoiceIndex", (PyCFunction) _wrap_GetSingleChoiceIndex, METH_VARARGS | METH_KEYWORDS },
28190 { (char *)"MessageBox", (PyCFunction) _wrap_MessageBox, METH_VARARGS | METH_KEYWORDS },
28191 { (char *)"GetNumberFromUser", (PyCFunction) _wrap_GetNumberFromUser, METH_VARARGS | METH_KEYWORDS },
28192 { (char *)"ColourDisplay", (PyCFunction) _wrap_ColourDisplay, METH_VARARGS | METH_KEYWORDS },
28193 { (char *)"DisplayDepth", (PyCFunction) _wrap_DisplayDepth, METH_VARARGS | METH_KEYWORDS },
28194 { (char *)"GetDisplayDepth", (PyCFunction) _wrap_GetDisplayDepth, METH_VARARGS | METH_KEYWORDS },
28195 { (char *)"DisplaySize", (PyCFunction) _wrap_DisplaySize, METH_VARARGS | METH_KEYWORDS },
28196 { (char *)"GetDisplaySize", (PyCFunction) _wrap_GetDisplaySize, METH_VARARGS | METH_KEYWORDS },
28197 { (char *)"DisplaySizeMM", (PyCFunction) _wrap_DisplaySizeMM, METH_VARARGS | METH_KEYWORDS },
28198 { (char *)"GetDisplaySizeMM", (PyCFunction) _wrap_GetDisplaySizeMM, METH_VARARGS | METH_KEYWORDS },
28199 { (char *)"ClientDisplayRect", (PyCFunction) _wrap_ClientDisplayRect, METH_VARARGS | METH_KEYWORDS },
28200 { (char *)"GetClientDisplayRect", (PyCFunction) _wrap_GetClientDisplayRect, METH_VARARGS | METH_KEYWORDS },
28201 { (char *)"SetCursor", (PyCFunction) _wrap_SetCursor, METH_VARARGS | METH_KEYWORDS },
28202 { (char *)"BeginBusyCursor", (PyCFunction) _wrap_BeginBusyCursor, METH_VARARGS | METH_KEYWORDS },
28203 { (char *)"GetActiveWindow", (PyCFunction) _wrap_GetActiveWindow, METH_VARARGS | METH_KEYWORDS },
28204 { (char *)"GenericFindWindowAtPoint", (PyCFunction) _wrap_GenericFindWindowAtPoint, METH_VARARGS | METH_KEYWORDS },
28205 { (char *)"FindWindowAtPoint", (PyCFunction) _wrap_FindWindowAtPoint, METH_VARARGS | METH_KEYWORDS },
28206 { (char *)"GetTopLevelParent", (PyCFunction) _wrap_GetTopLevelParent, METH_VARARGS | METH_KEYWORDS },
28207 { (char *)"GetKeyState", (PyCFunction) _wrap_GetKeyState, METH_VARARGS | METH_KEYWORDS },
28208 { (char *)"WakeUpMainThread", (PyCFunction) _wrap_WakeUpMainThread, METH_VARARGS | METH_KEYWORDS },
28209 { (char *)"MutexGuiEnter", (PyCFunction) _wrap_MutexGuiEnter, METH_VARARGS | METH_KEYWORDS },
28210 { (char *)"MutexGuiLeave", (PyCFunction) _wrap_MutexGuiLeave, METH_VARARGS | METH_KEYWORDS },
28211 { (char *)"new_MutexGuiLocker", (PyCFunction) _wrap_new_MutexGuiLocker, METH_VARARGS | METH_KEYWORDS },
28212 { (char *)"delete_MutexGuiLocker", (PyCFunction) _wrap_delete_MutexGuiLocker, METH_VARARGS | METH_KEYWORDS },
28213 { (char *)"MutexGuiLocker_swigregister", MutexGuiLocker_swigregister, METH_VARARGS },
28214 { (char *)"Thread_IsMain", (PyCFunction) _wrap_Thread_IsMain, METH_VARARGS | METH_KEYWORDS },
28215 { (char *)"new_ToolTip", (PyCFunction) _wrap_new_ToolTip, METH_VARARGS | METH_KEYWORDS },
28216 { (char *)"ToolTip_SetTip", (PyCFunction) _wrap_ToolTip_SetTip, METH_VARARGS | METH_KEYWORDS },
28217 { (char *)"ToolTip_GetTip", (PyCFunction) _wrap_ToolTip_GetTip, METH_VARARGS | METH_KEYWORDS },
28218 { (char *)"ToolTip_GetWindow", (PyCFunction) _wrap_ToolTip_GetWindow, METH_VARARGS | METH_KEYWORDS },
28219 { (char *)"ToolTip_Enable", (PyCFunction) _wrap_ToolTip_Enable, METH_VARARGS | METH_KEYWORDS },
28220 { (char *)"ToolTip_SetDelay", (PyCFunction) _wrap_ToolTip_SetDelay, METH_VARARGS | METH_KEYWORDS },
28221 { (char *)"ToolTip_swigregister", ToolTip_swigregister, METH_VARARGS },
28222 { (char *)"new_Caret", (PyCFunction) _wrap_new_Caret, METH_VARARGS | METH_KEYWORDS },
28223 { (char *)"delete_Caret", (PyCFunction) _wrap_delete_Caret, METH_VARARGS | METH_KEYWORDS },
28224 { (char *)"Caret_IsOk", (PyCFunction) _wrap_Caret_IsOk, METH_VARARGS | METH_KEYWORDS },
28225 { (char *)"Caret_IsVisible", (PyCFunction) _wrap_Caret_IsVisible, METH_VARARGS | METH_KEYWORDS },
28226 { (char *)"Caret_GetPosition", (PyCFunction) _wrap_Caret_GetPosition, METH_VARARGS | METH_KEYWORDS },
28227 { (char *)"Caret_GetPositionTuple", (PyCFunction) _wrap_Caret_GetPositionTuple, METH_VARARGS | METH_KEYWORDS },
28228 { (char *)"Caret_GetSize", (PyCFunction) _wrap_Caret_GetSize, METH_VARARGS | METH_KEYWORDS },
28229 { (char *)"Caret_GetSizeTuple", (PyCFunction) _wrap_Caret_GetSizeTuple, METH_VARARGS | METH_KEYWORDS },
28230 { (char *)"Caret_GetWindow", (PyCFunction) _wrap_Caret_GetWindow, METH_VARARGS | METH_KEYWORDS },
28231 { (char *)"Caret_MoveXY", (PyCFunction) _wrap_Caret_MoveXY, METH_VARARGS | METH_KEYWORDS },
28232 { (char *)"Caret_Move", (PyCFunction) _wrap_Caret_Move, METH_VARARGS | METH_KEYWORDS },
28233 { (char *)"Caret_SetSizeWH", (PyCFunction) _wrap_Caret_SetSizeWH, METH_VARARGS | METH_KEYWORDS },
28234 { (char *)"Caret_SetSize", (PyCFunction) _wrap_Caret_SetSize, METH_VARARGS | METH_KEYWORDS },
28235 { (char *)"Caret_Show", (PyCFunction) _wrap_Caret_Show, METH_VARARGS | METH_KEYWORDS },
28236 { (char *)"Caret_Hide", (PyCFunction) _wrap_Caret_Hide, METH_VARARGS | METH_KEYWORDS },
28237 { (char *)"Caret_swigregister", Caret_swigregister, METH_VARARGS },
28238 { (char *)"Caret_GetBlinkTime", (PyCFunction) _wrap_Caret_GetBlinkTime, METH_VARARGS | METH_KEYWORDS },
28239 { (char *)"Caret_SetBlinkTime", (PyCFunction) _wrap_Caret_SetBlinkTime, METH_VARARGS | METH_KEYWORDS },
28240 { (char *)"new_BusyCursor", (PyCFunction) _wrap_new_BusyCursor, METH_VARARGS | METH_KEYWORDS },
28241 { (char *)"delete_BusyCursor", (PyCFunction) _wrap_delete_BusyCursor, METH_VARARGS | METH_KEYWORDS },
28242 { (char *)"BusyCursor_swigregister", BusyCursor_swigregister, METH_VARARGS },
28243 { (char *)"new_WindowDisabler", (PyCFunction) _wrap_new_WindowDisabler, METH_VARARGS | METH_KEYWORDS },
28244 { (char *)"delete_WindowDisabler", (PyCFunction) _wrap_delete_WindowDisabler, METH_VARARGS | METH_KEYWORDS },
28245 { (char *)"WindowDisabler_swigregister", WindowDisabler_swigregister, METH_VARARGS },
28246 { (char *)"new_BusyInfo", (PyCFunction) _wrap_new_BusyInfo, METH_VARARGS | METH_KEYWORDS },
28247 { (char *)"delete_BusyInfo", (PyCFunction) _wrap_delete_BusyInfo, METH_VARARGS | METH_KEYWORDS },
28248 { (char *)"BusyInfo_swigregister", BusyInfo_swigregister, METH_VARARGS },
28249 { (char *)"new_StopWatch", (PyCFunction) _wrap_new_StopWatch, METH_VARARGS | METH_KEYWORDS },
28250 { (char *)"StopWatch_Start", (PyCFunction) _wrap_StopWatch_Start, METH_VARARGS | METH_KEYWORDS },
28251 { (char *)"StopWatch_Pause", (PyCFunction) _wrap_StopWatch_Pause, METH_VARARGS | METH_KEYWORDS },
28252 { (char *)"StopWatch_Resume", (PyCFunction) _wrap_StopWatch_Resume, METH_VARARGS | METH_KEYWORDS },
28253 { (char *)"StopWatch_Time", (PyCFunction) _wrap_StopWatch_Time, METH_VARARGS | METH_KEYWORDS },
28254 { (char *)"StopWatch_swigregister", StopWatch_swigregister, METH_VARARGS },
28255 { (char *)"new_FileHistory", (PyCFunction) _wrap_new_FileHistory, METH_VARARGS | METH_KEYWORDS },
28256 { (char *)"delete_FileHistory", (PyCFunction) _wrap_delete_FileHistory, METH_VARARGS | METH_KEYWORDS },
28257 { (char *)"FileHistory_AddFileToHistory", (PyCFunction) _wrap_FileHistory_AddFileToHistory, METH_VARARGS | METH_KEYWORDS },
28258 { (char *)"FileHistory_RemoveFileFromHistory", (PyCFunction) _wrap_FileHistory_RemoveFileFromHistory, METH_VARARGS | METH_KEYWORDS },
28259 { (char *)"FileHistory_GetMaxFiles", (PyCFunction) _wrap_FileHistory_GetMaxFiles, METH_VARARGS | METH_KEYWORDS },
28260 { (char *)"FileHistory_UseMenu", (PyCFunction) _wrap_FileHistory_UseMenu, METH_VARARGS | METH_KEYWORDS },
28261 { (char *)"FileHistory_RemoveMenu", (PyCFunction) _wrap_FileHistory_RemoveMenu, METH_VARARGS | METH_KEYWORDS },
28262 { (char *)"FileHistory_Load", (PyCFunction) _wrap_FileHistory_Load, METH_VARARGS | METH_KEYWORDS },
28263 { (char *)"FileHistory_Save", (PyCFunction) _wrap_FileHistory_Save, METH_VARARGS | METH_KEYWORDS },
28264 { (char *)"FileHistory_AddFilesToMenu", (PyCFunction) _wrap_FileHistory_AddFilesToMenu, METH_VARARGS | METH_KEYWORDS },
28265 { (char *)"FileHistory_AddFilesToThisMenu", (PyCFunction) _wrap_FileHistory_AddFilesToThisMenu, METH_VARARGS | METH_KEYWORDS },
28266 { (char *)"FileHistory_GetHistoryFile", (PyCFunction) _wrap_FileHistory_GetHistoryFile, METH_VARARGS | METH_KEYWORDS },
28267 { (char *)"FileHistory_GetCount", (PyCFunction) _wrap_FileHistory_GetCount, METH_VARARGS | METH_KEYWORDS },
28268 { (char *)"FileHistory_swigregister", FileHistory_swigregister, METH_VARARGS },
28269 { (char *)"new_SingleInstanceChecker", (PyCFunction) _wrap_new_SingleInstanceChecker, METH_VARARGS | METH_KEYWORDS },
28270 { (char *)"new_PreSingleInstanceChecker", (PyCFunction) _wrap_new_PreSingleInstanceChecker, METH_VARARGS | METH_KEYWORDS },
28271 { (char *)"delete_SingleInstanceChecker", (PyCFunction) _wrap_delete_SingleInstanceChecker, METH_VARARGS | METH_KEYWORDS },
28272 { (char *)"SingleInstanceChecker_Create", (PyCFunction) _wrap_SingleInstanceChecker_Create, METH_VARARGS | METH_KEYWORDS },
28273 { (char *)"SingleInstanceChecker_IsAnotherRunning", (PyCFunction) _wrap_SingleInstanceChecker_IsAnotherRunning, METH_VARARGS | METH_KEYWORDS },
28274 { (char *)"SingleInstanceChecker_swigregister", SingleInstanceChecker_swigregister, METH_VARARGS },
28275 { (char *)"DrawWindowOnDC", (PyCFunction) _wrap_DrawWindowOnDC, METH_VARARGS | METH_KEYWORDS },
28276 { (char *)"delete_TipProvider", (PyCFunction) _wrap_delete_TipProvider, METH_VARARGS | METH_KEYWORDS },
28277 { (char *)"TipProvider_GetTip", (PyCFunction) _wrap_TipProvider_GetTip, METH_VARARGS | METH_KEYWORDS },
28278 { (char *)"TipProvider_GetCurrentTip", (PyCFunction) _wrap_TipProvider_GetCurrentTip, METH_VARARGS | METH_KEYWORDS },
28279 { (char *)"TipProvider_PreprocessTip", (PyCFunction) _wrap_TipProvider_PreprocessTip, METH_VARARGS | METH_KEYWORDS },
28280 { (char *)"TipProvider_swigregister", TipProvider_swigregister, METH_VARARGS },
28281 { (char *)"new_PyTipProvider", (PyCFunction) _wrap_new_PyTipProvider, METH_VARARGS | METH_KEYWORDS },
28282 { (char *)"PyTipProvider__setCallbackInfo", (PyCFunction) _wrap_PyTipProvider__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
28283 { (char *)"PyTipProvider_swigregister", PyTipProvider_swigregister, METH_VARARGS },
28284 { (char *)"ShowTip", (PyCFunction) _wrap_ShowTip, METH_VARARGS | METH_KEYWORDS },
28285 { (char *)"CreateFileTipProvider", (PyCFunction) _wrap_CreateFileTipProvider, METH_VARARGS | METH_KEYWORDS },
28286 { (char *)"new_Timer", (PyCFunction) _wrap_new_Timer, METH_VARARGS | METH_KEYWORDS },
28287 { (char *)"delete_Timer", (PyCFunction) _wrap_delete_Timer, METH_VARARGS | METH_KEYWORDS },
28288 { (char *)"Timer__setCallbackInfo", (PyCFunction) _wrap_Timer__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
28289 { (char *)"Timer_SetOwner", (PyCFunction) _wrap_Timer_SetOwner, METH_VARARGS | METH_KEYWORDS },
28290 { (char *)"Timer_GetOwner", (PyCFunction) _wrap_Timer_GetOwner, METH_VARARGS | METH_KEYWORDS },
28291 { (char *)"Timer_Start", (PyCFunction) _wrap_Timer_Start, METH_VARARGS | METH_KEYWORDS },
28292 { (char *)"Timer_Stop", (PyCFunction) _wrap_Timer_Stop, METH_VARARGS | METH_KEYWORDS },
28293 { (char *)"Timer_IsRunning", (PyCFunction) _wrap_Timer_IsRunning, METH_VARARGS | METH_KEYWORDS },
28294 { (char *)"Timer_GetInterval", (PyCFunction) _wrap_Timer_GetInterval, METH_VARARGS | METH_KEYWORDS },
28295 { (char *)"Timer_IsOneShot", (PyCFunction) _wrap_Timer_IsOneShot, METH_VARARGS | METH_KEYWORDS },
28296 { (char *)"Timer_GetId", (PyCFunction) _wrap_Timer_GetId, METH_VARARGS | METH_KEYWORDS },
28297 { (char *)"Timer_swigregister", Timer_swigregister, METH_VARARGS },
28298 { (char *)"new_TimerEvent", (PyCFunction) _wrap_new_TimerEvent, METH_VARARGS | METH_KEYWORDS },
28299 { (char *)"TimerEvent_GetInterval", (PyCFunction) _wrap_TimerEvent_GetInterval, METH_VARARGS | METH_KEYWORDS },
28300 { (char *)"TimerEvent_swigregister", TimerEvent_swigregister, METH_VARARGS },
28301 { (char *)"new_TimerRunner", _wrap_new_TimerRunner, METH_VARARGS },
28302 { (char *)"delete_TimerRunner", (PyCFunction) _wrap_delete_TimerRunner, METH_VARARGS | METH_KEYWORDS },
28303 { (char *)"TimerRunner_Start", (PyCFunction) _wrap_TimerRunner_Start, METH_VARARGS | METH_KEYWORDS },
28304 { (char *)"TimerRunner_swigregister", TimerRunner_swigregister, METH_VARARGS },
28305 { (char *)"new_Log", (PyCFunction) _wrap_new_Log, METH_VARARGS | METH_KEYWORDS },
28306 { (char *)"Log_IsEnabled", (PyCFunction) _wrap_Log_IsEnabled, METH_VARARGS | METH_KEYWORDS },
28307 { (char *)"Log_EnableLogging", (PyCFunction) _wrap_Log_EnableLogging, METH_VARARGS | METH_KEYWORDS },
28308 { (char *)"Log_OnLog", (PyCFunction) _wrap_Log_OnLog, METH_VARARGS | METH_KEYWORDS },
28309 { (char *)"Log_Flush", (PyCFunction) _wrap_Log_Flush, METH_VARARGS | METH_KEYWORDS },
28310 { (char *)"Log_FlushActive", (PyCFunction) _wrap_Log_FlushActive, METH_VARARGS | METH_KEYWORDS },
28311 { (char *)"Log_GetActiveTarget", (PyCFunction) _wrap_Log_GetActiveTarget, METH_VARARGS | METH_KEYWORDS },
28312 { (char *)"Log_SetActiveTarget", (PyCFunction) _wrap_Log_SetActiveTarget, METH_VARARGS | METH_KEYWORDS },
28313 { (char *)"Log_Suspend", (PyCFunction) _wrap_Log_Suspend, METH_VARARGS | METH_KEYWORDS },
28314 { (char *)"Log_Resume", (PyCFunction) _wrap_Log_Resume, METH_VARARGS | METH_KEYWORDS },
28315 { (char *)"Log_SetVerbose", (PyCFunction) _wrap_Log_SetVerbose, METH_VARARGS | METH_KEYWORDS },
28316 { (char *)"Log_SetLogLevel", (PyCFunction) _wrap_Log_SetLogLevel, METH_VARARGS | METH_KEYWORDS },
28317 { (char *)"Log_DontCreateOnDemand", (PyCFunction) _wrap_Log_DontCreateOnDemand, METH_VARARGS | METH_KEYWORDS },
28318 { (char *)"Log_SetTraceMask", (PyCFunction) _wrap_Log_SetTraceMask, METH_VARARGS | METH_KEYWORDS },
28319 { (char *)"Log_AddTraceMask", (PyCFunction) _wrap_Log_AddTraceMask, METH_VARARGS | METH_KEYWORDS },
28320 { (char *)"Log_RemoveTraceMask", (PyCFunction) _wrap_Log_RemoveTraceMask, METH_VARARGS | METH_KEYWORDS },
28321 { (char *)"Log_ClearTraceMasks", (PyCFunction) _wrap_Log_ClearTraceMasks, METH_VARARGS | METH_KEYWORDS },
28322 { (char *)"Log_GetTraceMasks", (PyCFunction) _wrap_Log_GetTraceMasks, METH_VARARGS | METH_KEYWORDS },
28323 { (char *)"Log_SetTimestamp", (PyCFunction) _wrap_Log_SetTimestamp, METH_VARARGS | METH_KEYWORDS },
28324 { (char *)"Log_GetVerbose", (PyCFunction) _wrap_Log_GetVerbose, METH_VARARGS | METH_KEYWORDS },
28325 { (char *)"Log_GetTraceMask", (PyCFunction) _wrap_Log_GetTraceMask, METH_VARARGS | METH_KEYWORDS },
28326 { (char *)"Log_IsAllowedTraceMask", (PyCFunction) _wrap_Log_IsAllowedTraceMask, METH_VARARGS | METH_KEYWORDS },
28327 { (char *)"Log_GetLogLevel", (PyCFunction) _wrap_Log_GetLogLevel, METH_VARARGS | METH_KEYWORDS },
28328 { (char *)"Log_GetTimestamp", (PyCFunction) _wrap_Log_GetTimestamp, METH_VARARGS | METH_KEYWORDS },
28329 { (char *)"Log_TimeStamp", (PyCFunction) _wrap_Log_TimeStamp, METH_VARARGS | METH_KEYWORDS },
28330 { (char *)"Log_Destroy", (PyCFunction) _wrap_Log_Destroy, METH_VARARGS | METH_KEYWORDS },
28331 { (char *)"Log_swigregister", Log_swigregister, METH_VARARGS },
28332 { (char *)"new_LogStderr", (PyCFunction) _wrap_new_LogStderr, METH_VARARGS | METH_KEYWORDS },
28333 { (char *)"LogStderr_swigregister", LogStderr_swigregister, METH_VARARGS },
28334 { (char *)"new_LogTextCtrl", (PyCFunction) _wrap_new_LogTextCtrl, METH_VARARGS | METH_KEYWORDS },
28335 { (char *)"LogTextCtrl_swigregister", LogTextCtrl_swigregister, METH_VARARGS },
28336 { (char *)"new_LogGui", (PyCFunction) _wrap_new_LogGui, METH_VARARGS | METH_KEYWORDS },
28337 { (char *)"LogGui_swigregister", LogGui_swigregister, METH_VARARGS },
28338 { (char *)"new_LogWindow", (PyCFunction) _wrap_new_LogWindow, METH_VARARGS | METH_KEYWORDS },
28339 { (char *)"LogWindow_Show", (PyCFunction) _wrap_LogWindow_Show, METH_VARARGS | METH_KEYWORDS },
28340 { (char *)"LogWindow_GetFrame", (PyCFunction) _wrap_LogWindow_GetFrame, METH_VARARGS | METH_KEYWORDS },
28341 { (char *)"LogWindow_GetOldLog", (PyCFunction) _wrap_LogWindow_GetOldLog, METH_VARARGS | METH_KEYWORDS },
28342 { (char *)"LogWindow_IsPassingMessages", (PyCFunction) _wrap_LogWindow_IsPassingMessages, METH_VARARGS | METH_KEYWORDS },
28343 { (char *)"LogWindow_PassMessages", (PyCFunction) _wrap_LogWindow_PassMessages, METH_VARARGS | METH_KEYWORDS },
28344 { (char *)"LogWindow_swigregister", LogWindow_swigregister, METH_VARARGS },
28345 { (char *)"new_LogChain", (PyCFunction) _wrap_new_LogChain, METH_VARARGS | METH_KEYWORDS },
28346 { (char *)"LogChain_SetLog", (PyCFunction) _wrap_LogChain_SetLog, METH_VARARGS | METH_KEYWORDS },
28347 { (char *)"LogChain_PassMessages", (PyCFunction) _wrap_LogChain_PassMessages, METH_VARARGS | METH_KEYWORDS },
28348 { (char *)"LogChain_IsPassingMessages", (PyCFunction) _wrap_LogChain_IsPassingMessages, METH_VARARGS | METH_KEYWORDS },
28349 { (char *)"LogChain_GetOldLog", (PyCFunction) _wrap_LogChain_GetOldLog, METH_VARARGS | METH_KEYWORDS },
28350 { (char *)"LogChain_swigregister", LogChain_swigregister, METH_VARARGS },
28351 { (char *)"SysErrorCode", (PyCFunction) _wrap_SysErrorCode, METH_VARARGS | METH_KEYWORDS },
28352 { (char *)"SysErrorMsg", (PyCFunction) _wrap_SysErrorMsg, METH_VARARGS | METH_KEYWORDS },
28353 { (char *)"LogFatalError", (PyCFunction) _wrap_LogFatalError, METH_VARARGS | METH_KEYWORDS },
28354 { (char *)"LogError", (PyCFunction) _wrap_LogError, METH_VARARGS | METH_KEYWORDS },
28355 { (char *)"LogWarning", (PyCFunction) _wrap_LogWarning, METH_VARARGS | METH_KEYWORDS },
28356 { (char *)"LogMessage", (PyCFunction) _wrap_LogMessage, METH_VARARGS | METH_KEYWORDS },
28357 { (char *)"LogInfo", (PyCFunction) _wrap_LogInfo, METH_VARARGS | METH_KEYWORDS },
28358 { (char *)"LogDebug", (PyCFunction) _wrap_LogDebug, METH_VARARGS | METH_KEYWORDS },
28359 { (char *)"LogVerbose", (PyCFunction) _wrap_LogVerbose, METH_VARARGS | METH_KEYWORDS },
28360 { (char *)"LogStatus", (PyCFunction) _wrap_LogStatus, METH_VARARGS | METH_KEYWORDS },
28361 { (char *)"LogStatusFrame", (PyCFunction) _wrap_LogStatusFrame, METH_VARARGS | METH_KEYWORDS },
28362 { (char *)"LogSysError", (PyCFunction) _wrap_LogSysError, METH_VARARGS | METH_KEYWORDS },
28363 { (char *)"LogTrace", _wrap_LogTrace, METH_VARARGS },
28364 { (char *)"LogGeneric", (PyCFunction) _wrap_LogGeneric, METH_VARARGS | METH_KEYWORDS },
28365 { (char *)"SafeShowMessage", (PyCFunction) _wrap_SafeShowMessage, METH_VARARGS | METH_KEYWORDS },
28366 { (char *)"new_LogNull", (PyCFunction) _wrap_new_LogNull, METH_VARARGS | METH_KEYWORDS },
28367 { (char *)"delete_LogNull", (PyCFunction) _wrap_delete_LogNull, METH_VARARGS | METH_KEYWORDS },
28368 { (char *)"LogNull_swigregister", LogNull_swigregister, METH_VARARGS },
28369 { (char *)"new_PyLog", (PyCFunction) _wrap_new_PyLog, METH_VARARGS | METH_KEYWORDS },
28370 { (char *)"PyLog__setCallbackInfo", (PyCFunction) _wrap_PyLog__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
28371 { (char *)"PyLog_swigregister", PyLog_swigregister, METH_VARARGS },
28372 { (char *)"Process_Kill", (PyCFunction) _wrap_Process_Kill, METH_VARARGS | METH_KEYWORDS },
28373 { (char *)"Process_Exists", (PyCFunction) _wrap_Process_Exists, METH_VARARGS | METH_KEYWORDS },
28374 { (char *)"Process_Open", (PyCFunction) _wrap_Process_Open, METH_VARARGS | METH_KEYWORDS },
28375 { (char *)"new_Process", (PyCFunction) _wrap_new_Process, METH_VARARGS | METH_KEYWORDS },
28376 { (char *)"Process__setCallbackInfo", (PyCFunction) _wrap_Process__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
28377 { (char *)"Process_base_OnTerminate", (PyCFunction) _wrap_Process_base_OnTerminate, METH_VARARGS | METH_KEYWORDS },
28378 { (char *)"Process_Redirect", (PyCFunction) _wrap_Process_Redirect, METH_VARARGS | METH_KEYWORDS },
28379 { (char *)"Process_IsRedirected", (PyCFunction) _wrap_Process_IsRedirected, METH_VARARGS | METH_KEYWORDS },
28380 { (char *)"Process_Detach", (PyCFunction) _wrap_Process_Detach, METH_VARARGS | METH_KEYWORDS },
28381 { (char *)"Process_GetInputStream", (PyCFunction) _wrap_Process_GetInputStream, METH_VARARGS | METH_KEYWORDS },
28382 { (char *)"Process_GetErrorStream", (PyCFunction) _wrap_Process_GetErrorStream, METH_VARARGS | METH_KEYWORDS },
28383 { (char *)"Process_GetOutputStream", (PyCFunction) _wrap_Process_GetOutputStream, METH_VARARGS | METH_KEYWORDS },
28384 { (char *)"Process_CloseOutput", (PyCFunction) _wrap_Process_CloseOutput, METH_VARARGS | METH_KEYWORDS },
28385 { (char *)"Process_IsInputOpened", (PyCFunction) _wrap_Process_IsInputOpened, METH_VARARGS | METH_KEYWORDS },
28386 { (char *)"Process_IsInputAvailable", (PyCFunction) _wrap_Process_IsInputAvailable, METH_VARARGS | METH_KEYWORDS },
28387 { (char *)"Process_IsErrorAvailable", (PyCFunction) _wrap_Process_IsErrorAvailable, METH_VARARGS | METH_KEYWORDS },
28388 { (char *)"Process_swigregister", Process_swigregister, METH_VARARGS },
28389 { (char *)"new_ProcessEvent", (PyCFunction) _wrap_new_ProcessEvent, METH_VARARGS | METH_KEYWORDS },
28390 { (char *)"ProcessEvent_GetPid", (PyCFunction) _wrap_ProcessEvent_GetPid, METH_VARARGS | METH_KEYWORDS },
28391 { (char *)"ProcessEvent_GetExitCode", (PyCFunction) _wrap_ProcessEvent_GetExitCode, METH_VARARGS | METH_KEYWORDS },
28392 { (char *)"ProcessEvent_m_pid_set", (PyCFunction) _wrap_ProcessEvent_m_pid_set, METH_VARARGS | METH_KEYWORDS },
28393 { (char *)"ProcessEvent_m_pid_get", (PyCFunction) _wrap_ProcessEvent_m_pid_get, METH_VARARGS | METH_KEYWORDS },
28394 { (char *)"ProcessEvent_m_exitcode_set", (PyCFunction) _wrap_ProcessEvent_m_exitcode_set, METH_VARARGS | METH_KEYWORDS },
28395 { (char *)"ProcessEvent_m_exitcode_get", (PyCFunction) _wrap_ProcessEvent_m_exitcode_get, METH_VARARGS | METH_KEYWORDS },
28396 { (char *)"ProcessEvent_swigregister", ProcessEvent_swigregister, METH_VARARGS },
28397 { (char *)"Execute", (PyCFunction) _wrap_Execute, METH_VARARGS | METH_KEYWORDS },
28398 { (char *)"new_Joystick", (PyCFunction) _wrap_new_Joystick, METH_VARARGS | METH_KEYWORDS },
28399 { (char *)"delete_Joystick", (PyCFunction) _wrap_delete_Joystick, METH_VARARGS | METH_KEYWORDS },
28400 { (char *)"Joystick_GetPosition", (PyCFunction) _wrap_Joystick_GetPosition, METH_VARARGS | METH_KEYWORDS },
28401 { (char *)"Joystick_GetZPosition", (PyCFunction) _wrap_Joystick_GetZPosition, METH_VARARGS | METH_KEYWORDS },
28402 { (char *)"Joystick_GetButtonState", (PyCFunction) _wrap_Joystick_GetButtonState, METH_VARARGS | METH_KEYWORDS },
28403 { (char *)"Joystick_GetPOVPosition", (PyCFunction) _wrap_Joystick_GetPOVPosition, METH_VARARGS | METH_KEYWORDS },
28404 { (char *)"Joystick_GetPOVCTSPosition", (PyCFunction) _wrap_Joystick_GetPOVCTSPosition, METH_VARARGS | METH_KEYWORDS },
28405 { (char *)"Joystick_GetRudderPosition", (PyCFunction) _wrap_Joystick_GetRudderPosition, METH_VARARGS | METH_KEYWORDS },
28406 { (char *)"Joystick_GetUPosition", (PyCFunction) _wrap_Joystick_GetUPosition, METH_VARARGS | METH_KEYWORDS },
28407 { (char *)"Joystick_GetVPosition", (PyCFunction) _wrap_Joystick_GetVPosition, METH_VARARGS | METH_KEYWORDS },
28408 { (char *)"Joystick_GetMovementThreshold", (PyCFunction) _wrap_Joystick_GetMovementThreshold, METH_VARARGS | METH_KEYWORDS },
28409 { (char *)"Joystick_SetMovementThreshold", (PyCFunction) _wrap_Joystick_SetMovementThreshold, METH_VARARGS | METH_KEYWORDS },
28410 { (char *)"Joystick_IsOk", (PyCFunction) _wrap_Joystick_IsOk, METH_VARARGS | METH_KEYWORDS },
28411 { (char *)"Joystick_GetNumberJoysticks", (PyCFunction) _wrap_Joystick_GetNumberJoysticks, METH_VARARGS | METH_KEYWORDS },
28412 { (char *)"Joystick_GetManufacturerId", (PyCFunction) _wrap_Joystick_GetManufacturerId, METH_VARARGS | METH_KEYWORDS },
28413 { (char *)"Joystick_GetProductId", (PyCFunction) _wrap_Joystick_GetProductId, METH_VARARGS | METH_KEYWORDS },
28414 { (char *)"Joystick_GetProductName", (PyCFunction) _wrap_Joystick_GetProductName, METH_VARARGS | METH_KEYWORDS },
28415 { (char *)"Joystick_GetXMin", (PyCFunction) _wrap_Joystick_GetXMin, METH_VARARGS | METH_KEYWORDS },
28416 { (char *)"Joystick_GetYMin", (PyCFunction) _wrap_Joystick_GetYMin, METH_VARARGS | METH_KEYWORDS },
28417 { (char *)"Joystick_GetZMin", (PyCFunction) _wrap_Joystick_GetZMin, METH_VARARGS | METH_KEYWORDS },
28418 { (char *)"Joystick_GetXMax", (PyCFunction) _wrap_Joystick_GetXMax, METH_VARARGS | METH_KEYWORDS },
28419 { (char *)"Joystick_GetYMax", (PyCFunction) _wrap_Joystick_GetYMax, METH_VARARGS | METH_KEYWORDS },
28420 { (char *)"Joystick_GetZMax", (PyCFunction) _wrap_Joystick_GetZMax, METH_VARARGS | METH_KEYWORDS },
28421 { (char *)"Joystick_GetNumberButtons", (PyCFunction) _wrap_Joystick_GetNumberButtons, METH_VARARGS | METH_KEYWORDS },
28422 { (char *)"Joystick_GetNumberAxes", (PyCFunction) _wrap_Joystick_GetNumberAxes, METH_VARARGS | METH_KEYWORDS },
28423 { (char *)"Joystick_GetMaxButtons", (PyCFunction) _wrap_Joystick_GetMaxButtons, METH_VARARGS | METH_KEYWORDS },
28424 { (char *)"Joystick_GetMaxAxes", (PyCFunction) _wrap_Joystick_GetMaxAxes, METH_VARARGS | METH_KEYWORDS },
28425 { (char *)"Joystick_GetPollingMin", (PyCFunction) _wrap_Joystick_GetPollingMin, METH_VARARGS | METH_KEYWORDS },
28426 { (char *)"Joystick_GetPollingMax", (PyCFunction) _wrap_Joystick_GetPollingMax, METH_VARARGS | METH_KEYWORDS },
28427 { (char *)"Joystick_GetRudderMin", (PyCFunction) _wrap_Joystick_GetRudderMin, METH_VARARGS | METH_KEYWORDS },
28428 { (char *)"Joystick_GetRudderMax", (PyCFunction) _wrap_Joystick_GetRudderMax, METH_VARARGS | METH_KEYWORDS },
28429 { (char *)"Joystick_GetUMin", (PyCFunction) _wrap_Joystick_GetUMin, METH_VARARGS | METH_KEYWORDS },
28430 { (char *)"Joystick_GetUMax", (PyCFunction) _wrap_Joystick_GetUMax, METH_VARARGS | METH_KEYWORDS },
28431 { (char *)"Joystick_GetVMin", (PyCFunction) _wrap_Joystick_GetVMin, METH_VARARGS | METH_KEYWORDS },
28432 { (char *)"Joystick_GetVMax", (PyCFunction) _wrap_Joystick_GetVMax, METH_VARARGS | METH_KEYWORDS },
28433 { (char *)"Joystick_HasRudder", (PyCFunction) _wrap_Joystick_HasRudder, METH_VARARGS | METH_KEYWORDS },
28434 { (char *)"Joystick_HasZ", (PyCFunction) _wrap_Joystick_HasZ, METH_VARARGS | METH_KEYWORDS },
28435 { (char *)"Joystick_HasU", (PyCFunction) _wrap_Joystick_HasU, METH_VARARGS | METH_KEYWORDS },
28436 { (char *)"Joystick_HasV", (PyCFunction) _wrap_Joystick_HasV, METH_VARARGS | METH_KEYWORDS },
28437 { (char *)"Joystick_HasPOV", (PyCFunction) _wrap_Joystick_HasPOV, METH_VARARGS | METH_KEYWORDS },
28438 { (char *)"Joystick_HasPOV4Dir", (PyCFunction) _wrap_Joystick_HasPOV4Dir, METH_VARARGS | METH_KEYWORDS },
28439 { (char *)"Joystick_HasPOVCTS", (PyCFunction) _wrap_Joystick_HasPOVCTS, METH_VARARGS | METH_KEYWORDS },
28440 { (char *)"Joystick_SetCapture", (PyCFunction) _wrap_Joystick_SetCapture, METH_VARARGS | METH_KEYWORDS },
28441 { (char *)"Joystick_ReleaseCapture", (PyCFunction) _wrap_Joystick_ReleaseCapture, METH_VARARGS | METH_KEYWORDS },
28442 { (char *)"Joystick_swigregister", Joystick_swigregister, METH_VARARGS },
28443 { (char *)"JoystickEvent_m_pos_set", (PyCFunction) _wrap_JoystickEvent_m_pos_set, METH_VARARGS | METH_KEYWORDS },
28444 { (char *)"JoystickEvent_m_pos_get", (PyCFunction) _wrap_JoystickEvent_m_pos_get, METH_VARARGS | METH_KEYWORDS },
28445 { (char *)"JoystickEvent_m_zPosition_set", (PyCFunction) _wrap_JoystickEvent_m_zPosition_set, METH_VARARGS | METH_KEYWORDS },
28446 { (char *)"JoystickEvent_m_zPosition_get", (PyCFunction) _wrap_JoystickEvent_m_zPosition_get, METH_VARARGS | METH_KEYWORDS },
28447 { (char *)"JoystickEvent_m_buttonChange_set", (PyCFunction) _wrap_JoystickEvent_m_buttonChange_set, METH_VARARGS | METH_KEYWORDS },
28448 { (char *)"JoystickEvent_m_buttonChange_get", (PyCFunction) _wrap_JoystickEvent_m_buttonChange_get, METH_VARARGS | METH_KEYWORDS },
28449 { (char *)"JoystickEvent_m_buttonState_set", (PyCFunction) _wrap_JoystickEvent_m_buttonState_set, METH_VARARGS | METH_KEYWORDS },
28450 { (char *)"JoystickEvent_m_buttonState_get", (PyCFunction) _wrap_JoystickEvent_m_buttonState_get, METH_VARARGS | METH_KEYWORDS },
28451 { (char *)"JoystickEvent_m_joyStick_set", (PyCFunction) _wrap_JoystickEvent_m_joyStick_set, METH_VARARGS | METH_KEYWORDS },
28452 { (char *)"JoystickEvent_m_joyStick_get", (PyCFunction) _wrap_JoystickEvent_m_joyStick_get, METH_VARARGS | METH_KEYWORDS },
28453 { (char *)"new_JoystickEvent", (PyCFunction) _wrap_new_JoystickEvent, METH_VARARGS | METH_KEYWORDS },
28454 { (char *)"JoystickEvent_GetPosition", (PyCFunction) _wrap_JoystickEvent_GetPosition, METH_VARARGS | METH_KEYWORDS },
28455 { (char *)"JoystickEvent_GetZPosition", (PyCFunction) _wrap_JoystickEvent_GetZPosition, METH_VARARGS | METH_KEYWORDS },
28456 { (char *)"JoystickEvent_GetButtonState", (PyCFunction) _wrap_JoystickEvent_GetButtonState, METH_VARARGS | METH_KEYWORDS },
28457 { (char *)"JoystickEvent_GetButtonChange", (PyCFunction) _wrap_JoystickEvent_GetButtonChange, METH_VARARGS | METH_KEYWORDS },
28458 { (char *)"JoystickEvent_GetJoystick", (PyCFunction) _wrap_JoystickEvent_GetJoystick, METH_VARARGS | METH_KEYWORDS },
28459 { (char *)"JoystickEvent_SetJoystick", (PyCFunction) _wrap_JoystickEvent_SetJoystick, METH_VARARGS | METH_KEYWORDS },
28460 { (char *)"JoystickEvent_SetButtonState", (PyCFunction) _wrap_JoystickEvent_SetButtonState, METH_VARARGS | METH_KEYWORDS },
28461 { (char *)"JoystickEvent_SetButtonChange", (PyCFunction) _wrap_JoystickEvent_SetButtonChange, METH_VARARGS | METH_KEYWORDS },
28462 { (char *)"JoystickEvent_SetPosition", (PyCFunction) _wrap_JoystickEvent_SetPosition, METH_VARARGS | METH_KEYWORDS },
28463 { (char *)"JoystickEvent_SetZPosition", (PyCFunction) _wrap_JoystickEvent_SetZPosition, METH_VARARGS | METH_KEYWORDS },
28464 { (char *)"JoystickEvent_IsButton", (PyCFunction) _wrap_JoystickEvent_IsButton, METH_VARARGS | METH_KEYWORDS },
28465 { (char *)"JoystickEvent_IsMove", (PyCFunction) _wrap_JoystickEvent_IsMove, METH_VARARGS | METH_KEYWORDS },
28466 { (char *)"JoystickEvent_IsZMove", (PyCFunction) _wrap_JoystickEvent_IsZMove, METH_VARARGS | METH_KEYWORDS },
28467 { (char *)"JoystickEvent_ButtonDown", (PyCFunction) _wrap_JoystickEvent_ButtonDown, METH_VARARGS | METH_KEYWORDS },
28468 { (char *)"JoystickEvent_ButtonUp", (PyCFunction) _wrap_JoystickEvent_ButtonUp, METH_VARARGS | METH_KEYWORDS },
28469 { (char *)"JoystickEvent_ButtonIsDown", (PyCFunction) _wrap_JoystickEvent_ButtonIsDown, METH_VARARGS | METH_KEYWORDS },
28470 { (char *)"JoystickEvent_swigregister", JoystickEvent_swigregister, METH_VARARGS },
28471 { (char *)"new_Sound", (PyCFunction) _wrap_new_Sound, METH_VARARGS | METH_KEYWORDS },
28472 { (char *)"new_SoundFromData", (PyCFunction) _wrap_new_SoundFromData, METH_VARARGS | METH_KEYWORDS },
28473 { (char *)"delete_Sound", (PyCFunction) _wrap_delete_Sound, METH_VARARGS | METH_KEYWORDS },
28474 { (char *)"Sound_Create", (PyCFunction) _wrap_Sound_Create, METH_VARARGS | METH_KEYWORDS },
28475 { (char *)"Sound_CreateFromData", (PyCFunction) _wrap_Sound_CreateFromData, METH_VARARGS | METH_KEYWORDS },
28476 { (char *)"Sound_IsOk", (PyCFunction) _wrap_Sound_IsOk, METH_VARARGS | METH_KEYWORDS },
28477 { (char *)"Sound_Play", (PyCFunction) _wrap_Sound_Play, METH_VARARGS | METH_KEYWORDS },
28478 { (char *)"Sound_PlaySound", (PyCFunction) _wrap_Sound_PlaySound, METH_VARARGS | METH_KEYWORDS },
28479 { (char *)"Sound_Stop", (PyCFunction) _wrap_Sound_Stop, METH_VARARGS | METH_KEYWORDS },
28480 { (char *)"Sound_swigregister", Sound_swigregister, METH_VARARGS },
28481 { (char *)"new_FileTypeInfo", (PyCFunction) _wrap_new_FileTypeInfo, METH_VARARGS | METH_KEYWORDS },
28482 { (char *)"new_FileTypeInfoSequence", (PyCFunction) _wrap_new_FileTypeInfoSequence, METH_VARARGS | METH_KEYWORDS },
28483 { (char *)"new_NullFileTypeInfo", (PyCFunction) _wrap_new_NullFileTypeInfo, METH_VARARGS | METH_KEYWORDS },
28484 { (char *)"FileTypeInfo_IsValid", (PyCFunction) _wrap_FileTypeInfo_IsValid, METH_VARARGS | METH_KEYWORDS },
28485 { (char *)"FileTypeInfo_SetIcon", (PyCFunction) _wrap_FileTypeInfo_SetIcon, METH_VARARGS | METH_KEYWORDS },
28486 { (char *)"FileTypeInfo_SetShortDesc", (PyCFunction) _wrap_FileTypeInfo_SetShortDesc, METH_VARARGS | METH_KEYWORDS },
28487 { (char *)"FileTypeInfo_GetMimeType", (PyCFunction) _wrap_FileTypeInfo_GetMimeType, METH_VARARGS | METH_KEYWORDS },
28488 { (char *)"FileTypeInfo_GetOpenCommand", (PyCFunction) _wrap_FileTypeInfo_GetOpenCommand, METH_VARARGS | METH_KEYWORDS },
28489 { (char *)"FileTypeInfo_GetPrintCommand", (PyCFunction) _wrap_FileTypeInfo_GetPrintCommand, METH_VARARGS | METH_KEYWORDS },
28490 { (char *)"FileTypeInfo_GetShortDesc", (PyCFunction) _wrap_FileTypeInfo_GetShortDesc, METH_VARARGS | METH_KEYWORDS },
28491 { (char *)"FileTypeInfo_GetDescription", (PyCFunction) _wrap_FileTypeInfo_GetDescription, METH_VARARGS | METH_KEYWORDS },
28492 { (char *)"FileTypeInfo_GetExtensions", (PyCFunction) _wrap_FileTypeInfo_GetExtensions, METH_VARARGS | METH_KEYWORDS },
28493 { (char *)"FileTypeInfo_GetExtensionsCount", (PyCFunction) _wrap_FileTypeInfo_GetExtensionsCount, METH_VARARGS | METH_KEYWORDS },
28494 { (char *)"FileTypeInfo_GetIconFile", (PyCFunction) _wrap_FileTypeInfo_GetIconFile, METH_VARARGS | METH_KEYWORDS },
28495 { (char *)"FileTypeInfo_GetIconIndex", (PyCFunction) _wrap_FileTypeInfo_GetIconIndex, METH_VARARGS | METH_KEYWORDS },
28496 { (char *)"FileTypeInfo_swigregister", FileTypeInfo_swigregister, METH_VARARGS },
28497 { (char *)"new_FileType", (PyCFunction) _wrap_new_FileType, METH_VARARGS | METH_KEYWORDS },
28498 { (char *)"delete_FileType", (PyCFunction) _wrap_delete_FileType, METH_VARARGS | METH_KEYWORDS },
28499 { (char *)"FileType_GetMimeType", (PyCFunction) _wrap_FileType_GetMimeType, METH_VARARGS | METH_KEYWORDS },
28500 { (char *)"FileType_GetMimeTypes", (PyCFunction) _wrap_FileType_GetMimeTypes, METH_VARARGS | METH_KEYWORDS },
28501 { (char *)"FileType_GetExtensions", (PyCFunction) _wrap_FileType_GetExtensions, METH_VARARGS | METH_KEYWORDS },
28502 { (char *)"FileType_GetIcon", (PyCFunction) _wrap_FileType_GetIcon, METH_VARARGS | METH_KEYWORDS },
28503 { (char *)"FileType_GetIconInfo", (PyCFunction) _wrap_FileType_GetIconInfo, METH_VARARGS | METH_KEYWORDS },
28504 { (char *)"FileType_GetDescription", (PyCFunction) _wrap_FileType_GetDescription, METH_VARARGS | METH_KEYWORDS },
28505 { (char *)"FileType_GetOpenCommand", (PyCFunction) _wrap_FileType_GetOpenCommand, METH_VARARGS | METH_KEYWORDS },
28506 { (char *)"FileType_GetPrintCommand", (PyCFunction) _wrap_FileType_GetPrintCommand, METH_VARARGS | METH_KEYWORDS },
28507 { (char *)"FileType_GetAllCommands", (PyCFunction) _wrap_FileType_GetAllCommands, METH_VARARGS | METH_KEYWORDS },
28508 { (char *)"FileType_SetCommand", (PyCFunction) _wrap_FileType_SetCommand, METH_VARARGS | METH_KEYWORDS },
28509 { (char *)"FileType_SetDefaultIcon", (PyCFunction) _wrap_FileType_SetDefaultIcon, METH_VARARGS | METH_KEYWORDS },
28510 { (char *)"FileType_Unassociate", (PyCFunction) _wrap_FileType_Unassociate, METH_VARARGS | METH_KEYWORDS },
28511 { (char *)"FileType_ExpandCommand", (PyCFunction) _wrap_FileType_ExpandCommand, METH_VARARGS | METH_KEYWORDS },
28512 { (char *)"FileType_swigregister", FileType_swigregister, METH_VARARGS },
28513 { (char *)"MimeTypesManager_IsOfType", (PyCFunction) _wrap_MimeTypesManager_IsOfType, METH_VARARGS | METH_KEYWORDS },
28514 { (char *)"new_MimeTypesManager", (PyCFunction) _wrap_new_MimeTypesManager, METH_VARARGS | METH_KEYWORDS },
28515 { (char *)"MimeTypesManager_Initialize", (PyCFunction) _wrap_MimeTypesManager_Initialize, METH_VARARGS | METH_KEYWORDS },
28516 { (char *)"MimeTypesManager_ClearData", (PyCFunction) _wrap_MimeTypesManager_ClearData, METH_VARARGS | METH_KEYWORDS },
28517 { (char *)"MimeTypesManager_GetFileTypeFromExtension", (PyCFunction) _wrap_MimeTypesManager_GetFileTypeFromExtension, METH_VARARGS | METH_KEYWORDS },
28518 { (char *)"MimeTypesManager_GetFileTypeFromMimeType", (PyCFunction) _wrap_MimeTypesManager_GetFileTypeFromMimeType, METH_VARARGS | METH_KEYWORDS },
28519 { (char *)"MimeTypesManager_ReadMailcap", (PyCFunction) _wrap_MimeTypesManager_ReadMailcap, METH_VARARGS | METH_KEYWORDS },
28520 { (char *)"MimeTypesManager_ReadMimeTypes", (PyCFunction) _wrap_MimeTypesManager_ReadMimeTypes, METH_VARARGS | METH_KEYWORDS },
28521 { (char *)"MimeTypesManager_EnumAllFileTypes", (PyCFunction) _wrap_MimeTypesManager_EnumAllFileTypes, METH_VARARGS | METH_KEYWORDS },
28522 { (char *)"MimeTypesManager_AddFallback", (PyCFunction) _wrap_MimeTypesManager_AddFallback, METH_VARARGS | METH_KEYWORDS },
28523 { (char *)"MimeTypesManager_Associate", (PyCFunction) _wrap_MimeTypesManager_Associate, METH_VARARGS | METH_KEYWORDS },
28524 { (char *)"MimeTypesManager_Unassociate", (PyCFunction) _wrap_MimeTypesManager_Unassociate, METH_VARARGS | METH_KEYWORDS },
28525 { (char *)"delete_MimeTypesManager", (PyCFunction) _wrap_delete_MimeTypesManager, METH_VARARGS | METH_KEYWORDS },
28526 { (char *)"MimeTypesManager_swigregister", MimeTypesManager_swigregister, METH_VARARGS },
28527 { (char *)"new_ArtProvider", (PyCFunction) _wrap_new_ArtProvider, METH_VARARGS | METH_KEYWORDS },
28528 { (char *)"ArtProvider__setCallbackInfo", (PyCFunction) _wrap_ArtProvider__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
28529 { (char *)"ArtProvider_PushProvider", (PyCFunction) _wrap_ArtProvider_PushProvider, METH_VARARGS | METH_KEYWORDS },
28530 { (char *)"ArtProvider_PopProvider", (PyCFunction) _wrap_ArtProvider_PopProvider, METH_VARARGS | METH_KEYWORDS },
28531 { (char *)"ArtProvider_RemoveProvider", (PyCFunction) _wrap_ArtProvider_RemoveProvider, METH_VARARGS | METH_KEYWORDS },
28532 { (char *)"ArtProvider_GetBitmap", (PyCFunction) _wrap_ArtProvider_GetBitmap, METH_VARARGS | METH_KEYWORDS },
28533 { (char *)"ArtProvider_GetIcon", (PyCFunction) _wrap_ArtProvider_GetIcon, METH_VARARGS | METH_KEYWORDS },
28534 { (char *)"ArtProvider_Destroy", (PyCFunction) _wrap_ArtProvider_Destroy, METH_VARARGS | METH_KEYWORDS },
28535 { (char *)"ArtProvider_swigregister", ArtProvider_swigregister, METH_VARARGS },
28536 { (char *)"delete_ConfigBase", (PyCFunction) _wrap_delete_ConfigBase, METH_VARARGS | METH_KEYWORDS },
28537 { (char *)"ConfigBase_Set", (PyCFunction) _wrap_ConfigBase_Set, METH_VARARGS | METH_KEYWORDS },
28538 { (char *)"ConfigBase_Get", (PyCFunction) _wrap_ConfigBase_Get, METH_VARARGS | METH_KEYWORDS },
28539 { (char *)"ConfigBase_Create", (PyCFunction) _wrap_ConfigBase_Create, METH_VARARGS | METH_KEYWORDS },
28540 { (char *)"ConfigBase_DontCreateOnDemand", (PyCFunction) _wrap_ConfigBase_DontCreateOnDemand, METH_VARARGS | METH_KEYWORDS },
28541 { (char *)"ConfigBase_SetPath", (PyCFunction) _wrap_ConfigBase_SetPath, METH_VARARGS | METH_KEYWORDS },
28542 { (char *)"ConfigBase_GetPath", (PyCFunction) _wrap_ConfigBase_GetPath, METH_VARARGS | METH_KEYWORDS },
28543 { (char *)"ConfigBase_GetFirstGroup", (PyCFunction) _wrap_ConfigBase_GetFirstGroup, METH_VARARGS | METH_KEYWORDS },
28544 { (char *)"ConfigBase_GetNextGroup", (PyCFunction) _wrap_ConfigBase_GetNextGroup, METH_VARARGS | METH_KEYWORDS },
28545 { (char *)"ConfigBase_GetFirstEntry", (PyCFunction) _wrap_ConfigBase_GetFirstEntry, METH_VARARGS | METH_KEYWORDS },
28546 { (char *)"ConfigBase_GetNextEntry", (PyCFunction) _wrap_ConfigBase_GetNextEntry, METH_VARARGS | METH_KEYWORDS },
28547 { (char *)"ConfigBase_GetNumberOfEntries", (PyCFunction) _wrap_ConfigBase_GetNumberOfEntries, METH_VARARGS | METH_KEYWORDS },
28548 { (char *)"ConfigBase_GetNumberOfGroups", (PyCFunction) _wrap_ConfigBase_GetNumberOfGroups, METH_VARARGS | METH_KEYWORDS },
28549 { (char *)"ConfigBase_HasGroup", (PyCFunction) _wrap_ConfigBase_HasGroup, METH_VARARGS | METH_KEYWORDS },
28550 { (char *)"ConfigBase_HasEntry", (PyCFunction) _wrap_ConfigBase_HasEntry, METH_VARARGS | METH_KEYWORDS },
28551 { (char *)"ConfigBase_Exists", (PyCFunction) _wrap_ConfigBase_Exists, METH_VARARGS | METH_KEYWORDS },
28552 { (char *)"ConfigBase_GetEntryType", (PyCFunction) _wrap_ConfigBase_GetEntryType, METH_VARARGS | METH_KEYWORDS },
28553 { (char *)"ConfigBase_Read", (PyCFunction) _wrap_ConfigBase_Read, METH_VARARGS | METH_KEYWORDS },
28554 { (char *)"ConfigBase_ReadInt", (PyCFunction) _wrap_ConfigBase_ReadInt, METH_VARARGS | METH_KEYWORDS },
28555 { (char *)"ConfigBase_ReadFloat", (PyCFunction) _wrap_ConfigBase_ReadFloat, METH_VARARGS | METH_KEYWORDS },
28556 { (char *)"ConfigBase_ReadBool", (PyCFunction) _wrap_ConfigBase_ReadBool, METH_VARARGS | METH_KEYWORDS },
28557 { (char *)"ConfigBase_Write", (PyCFunction) _wrap_ConfigBase_Write, METH_VARARGS | METH_KEYWORDS },
28558 { (char *)"ConfigBase_WriteInt", (PyCFunction) _wrap_ConfigBase_WriteInt, METH_VARARGS | METH_KEYWORDS },
28559 { (char *)"ConfigBase_WriteFloat", (PyCFunction) _wrap_ConfigBase_WriteFloat, METH_VARARGS | METH_KEYWORDS },
28560 { (char *)"ConfigBase_WriteBool", (PyCFunction) _wrap_ConfigBase_WriteBool, METH_VARARGS | METH_KEYWORDS },
28561 { (char *)"ConfigBase_Flush", (PyCFunction) _wrap_ConfigBase_Flush, METH_VARARGS | METH_KEYWORDS },
28562 { (char *)"ConfigBase_RenameEntry", (PyCFunction) _wrap_ConfigBase_RenameEntry, METH_VARARGS | METH_KEYWORDS },
28563 { (char *)"ConfigBase_RenameGroup", (PyCFunction) _wrap_ConfigBase_RenameGroup, METH_VARARGS | METH_KEYWORDS },
28564 { (char *)"ConfigBase_DeleteEntry", (PyCFunction) _wrap_ConfigBase_DeleteEntry, METH_VARARGS | METH_KEYWORDS },
28565 { (char *)"ConfigBase_DeleteGroup", (PyCFunction) _wrap_ConfigBase_DeleteGroup, METH_VARARGS | METH_KEYWORDS },
28566 { (char *)"ConfigBase_DeleteAll", (PyCFunction) _wrap_ConfigBase_DeleteAll, METH_VARARGS | METH_KEYWORDS },
28567 { (char *)"ConfigBase_SetExpandEnvVars", (PyCFunction) _wrap_ConfigBase_SetExpandEnvVars, METH_VARARGS | METH_KEYWORDS },
28568 { (char *)"ConfigBase_IsExpandingEnvVars", (PyCFunction) _wrap_ConfigBase_IsExpandingEnvVars, METH_VARARGS | METH_KEYWORDS },
28569 { (char *)"ConfigBase_SetRecordDefaults", (PyCFunction) _wrap_ConfigBase_SetRecordDefaults, METH_VARARGS | METH_KEYWORDS },
28570 { (char *)"ConfigBase_IsRecordingDefaults", (PyCFunction) _wrap_ConfigBase_IsRecordingDefaults, METH_VARARGS | METH_KEYWORDS },
28571 { (char *)"ConfigBase_ExpandEnvVars", (PyCFunction) _wrap_ConfigBase_ExpandEnvVars, METH_VARARGS | METH_KEYWORDS },
28572 { (char *)"ConfigBase_GetAppName", (PyCFunction) _wrap_ConfigBase_GetAppName, METH_VARARGS | METH_KEYWORDS },
28573 { (char *)"ConfigBase_GetVendorName", (PyCFunction) _wrap_ConfigBase_GetVendorName, METH_VARARGS | METH_KEYWORDS },
28574 { (char *)"ConfigBase_SetAppName", (PyCFunction) _wrap_ConfigBase_SetAppName, METH_VARARGS | METH_KEYWORDS },
28575 { (char *)"ConfigBase_SetVendorName", (PyCFunction) _wrap_ConfigBase_SetVendorName, METH_VARARGS | METH_KEYWORDS },
28576 { (char *)"ConfigBase_SetStyle", (PyCFunction) _wrap_ConfigBase_SetStyle, METH_VARARGS | METH_KEYWORDS },
28577 { (char *)"ConfigBase_GetStyle", (PyCFunction) _wrap_ConfigBase_GetStyle, METH_VARARGS | METH_KEYWORDS },
28578 { (char *)"ConfigBase_swigregister", ConfigBase_swigregister, METH_VARARGS },
28579 { (char *)"new_Config", (PyCFunction) _wrap_new_Config, METH_VARARGS | METH_KEYWORDS },
28580 { (char *)"delete_Config", (PyCFunction) _wrap_delete_Config, METH_VARARGS | METH_KEYWORDS },
28581 { (char *)"Config_swigregister", Config_swigregister, METH_VARARGS },
28582 { (char *)"new_FileConfig", (PyCFunction) _wrap_new_FileConfig, METH_VARARGS | METH_KEYWORDS },
28583 { (char *)"delete_FileConfig", (PyCFunction) _wrap_delete_FileConfig, METH_VARARGS | METH_KEYWORDS },
28584 { (char *)"FileConfig_swigregister", FileConfig_swigregister, METH_VARARGS },
28585 { (char *)"new_ConfigPathChanger", (PyCFunction) _wrap_new_ConfigPathChanger, METH_VARARGS | METH_KEYWORDS },
28586 { (char *)"delete_ConfigPathChanger", (PyCFunction) _wrap_delete_ConfigPathChanger, METH_VARARGS | METH_KEYWORDS },
28587 { (char *)"ConfigPathChanger_Name", (PyCFunction) _wrap_ConfigPathChanger_Name, METH_VARARGS | METH_KEYWORDS },
28588 { (char *)"ConfigPathChanger_swigregister", ConfigPathChanger_swigregister, METH_VARARGS },
28589 { (char *)"ExpandEnvVars", (PyCFunction) _wrap_ExpandEnvVars, METH_VARARGS | METH_KEYWORDS },
28590 { (char *)"DateTime_SetCountry", (PyCFunction) _wrap_DateTime_SetCountry, METH_VARARGS | METH_KEYWORDS },
28591 { (char *)"DateTime_GetCountry", (PyCFunction) _wrap_DateTime_GetCountry, METH_VARARGS | METH_KEYWORDS },
28592 { (char *)"DateTime_IsWestEuropeanCountry", (PyCFunction) _wrap_DateTime_IsWestEuropeanCountry, METH_VARARGS | METH_KEYWORDS },
28593 { (char *)"DateTime_GetCurrentYear", (PyCFunction) _wrap_DateTime_GetCurrentYear, METH_VARARGS | METH_KEYWORDS },
28594 { (char *)"DateTime_ConvertYearToBC", (PyCFunction) _wrap_DateTime_ConvertYearToBC, METH_VARARGS | METH_KEYWORDS },
28595 { (char *)"DateTime_GetCurrentMonth", (PyCFunction) _wrap_DateTime_GetCurrentMonth, METH_VARARGS | METH_KEYWORDS },
28596 { (char *)"DateTime_IsLeapYear", (PyCFunction) _wrap_DateTime_IsLeapYear, METH_VARARGS | METH_KEYWORDS },
28597 { (char *)"DateTime_GetCentury", (PyCFunction) _wrap_DateTime_GetCentury, METH_VARARGS | METH_KEYWORDS },
28598 { (char *)"DateTime_GetNumberOfDaysinYear", (PyCFunction) _wrap_DateTime_GetNumberOfDaysinYear, METH_VARARGS | METH_KEYWORDS },
28599 { (char *)"DateTime_GetNumberOfDaysInMonth", (PyCFunction) _wrap_DateTime_GetNumberOfDaysInMonth, METH_VARARGS | METH_KEYWORDS },
28600 { (char *)"DateTime_GetMonthName", (PyCFunction) _wrap_DateTime_GetMonthName, METH_VARARGS | METH_KEYWORDS },
28601 { (char *)"DateTime_GetWeekDayName", (PyCFunction) _wrap_DateTime_GetWeekDayName, METH_VARARGS | METH_KEYWORDS },
28602 { (char *)"DateTime_GetAmPmStrings", (PyCFunction) _wrap_DateTime_GetAmPmStrings, METH_VARARGS | METH_KEYWORDS },
28603 { (char *)"DateTime_IsDSTApplicable", (PyCFunction) _wrap_DateTime_IsDSTApplicable, METH_VARARGS | METH_KEYWORDS },
28604 { (char *)"DateTime_GetBeginDST", (PyCFunction) _wrap_DateTime_GetBeginDST, METH_VARARGS | METH_KEYWORDS },
28605 { (char *)"DateTime_GetEndDST", (PyCFunction) _wrap_DateTime_GetEndDST, METH_VARARGS | METH_KEYWORDS },
28606 { (char *)"DateTime_Now", (PyCFunction) _wrap_DateTime_Now, METH_VARARGS | METH_KEYWORDS },
28607 { (char *)"DateTime_UNow", (PyCFunction) _wrap_DateTime_UNow, METH_VARARGS | METH_KEYWORDS },
28608 { (char *)"DateTime_Today", (PyCFunction) _wrap_DateTime_Today, METH_VARARGS | METH_KEYWORDS },
28609 { (char *)"new_DateTime", (PyCFunction) _wrap_new_DateTime, METH_VARARGS | METH_KEYWORDS },
28610 { (char *)"new_DateTimeFromTimeT", (PyCFunction) _wrap_new_DateTimeFromTimeT, METH_VARARGS | METH_KEYWORDS },
28611 { (char *)"new_DateTimeFromJDN", (PyCFunction) _wrap_new_DateTimeFromJDN, METH_VARARGS | METH_KEYWORDS },
28612 { (char *)"new_DateTimeFromHMS", (PyCFunction) _wrap_new_DateTimeFromHMS, METH_VARARGS | METH_KEYWORDS },
28613 { (char *)"new_DateTimeFromDMY", (PyCFunction) _wrap_new_DateTimeFromDMY, METH_VARARGS | METH_KEYWORDS },
28614 { (char *)"delete_DateTime", (PyCFunction) _wrap_delete_DateTime, METH_VARARGS | METH_KEYWORDS },
28615 { (char *)"DateTime_SetToCurrent", (PyCFunction) _wrap_DateTime_SetToCurrent, METH_VARARGS | METH_KEYWORDS },
28616 { (char *)"DateTime_SetTimeT", (PyCFunction) _wrap_DateTime_SetTimeT, METH_VARARGS | METH_KEYWORDS },
28617 { (char *)"DateTime_SetJDN", (PyCFunction) _wrap_DateTime_SetJDN, METH_VARARGS | METH_KEYWORDS },
28618 { (char *)"DateTime_SetHMS", (PyCFunction) _wrap_DateTime_SetHMS, METH_VARARGS | METH_KEYWORDS },
28619 { (char *)"DateTime_Set", (PyCFunction) _wrap_DateTime_Set, METH_VARARGS | METH_KEYWORDS },
28620 { (char *)"DateTime_ResetTime", (PyCFunction) _wrap_DateTime_ResetTime, METH_VARARGS | METH_KEYWORDS },
28621 { (char *)"DateTime_SetYear", (PyCFunction) _wrap_DateTime_SetYear, METH_VARARGS | METH_KEYWORDS },
28622 { (char *)"DateTime_SetMonth", (PyCFunction) _wrap_DateTime_SetMonth, METH_VARARGS | METH_KEYWORDS },
28623 { (char *)"DateTime_SetDay", (PyCFunction) _wrap_DateTime_SetDay, METH_VARARGS | METH_KEYWORDS },
28624 { (char *)"DateTime_SetHour", (PyCFunction) _wrap_DateTime_SetHour, METH_VARARGS | METH_KEYWORDS },
28625 { (char *)"DateTime_SetMinute", (PyCFunction) _wrap_DateTime_SetMinute, METH_VARARGS | METH_KEYWORDS },
28626 { (char *)"DateTime_SetSecond", (PyCFunction) _wrap_DateTime_SetSecond, METH_VARARGS | METH_KEYWORDS },
28627 { (char *)"DateTime_SetMillisecond", (PyCFunction) _wrap_DateTime_SetMillisecond, METH_VARARGS | METH_KEYWORDS },
28628 { (char *)"DateTime_SetToWeekDayInSameWeek", (PyCFunction) _wrap_DateTime_SetToWeekDayInSameWeek, METH_VARARGS | METH_KEYWORDS },
28629 { (char *)"DateTime_GetWeekDayInSameWeek", (PyCFunction) _wrap_DateTime_GetWeekDayInSameWeek, METH_VARARGS | METH_KEYWORDS },
28630 { (char *)"DateTime_SetToNextWeekDay", (PyCFunction) _wrap_DateTime_SetToNextWeekDay, METH_VARARGS | METH_KEYWORDS },
28631 { (char *)"DateTime_GetNextWeekDay", (PyCFunction) _wrap_DateTime_GetNextWeekDay, METH_VARARGS | METH_KEYWORDS },
28632 { (char *)"DateTime_SetToPrevWeekDay", (PyCFunction) _wrap_DateTime_SetToPrevWeekDay, METH_VARARGS | METH_KEYWORDS },
28633 { (char *)"DateTime_GetPrevWeekDay", (PyCFunction) _wrap_DateTime_GetPrevWeekDay, METH_VARARGS | METH_KEYWORDS },
28634 { (char *)"DateTime_SetToWeekDay", (PyCFunction) _wrap_DateTime_SetToWeekDay, METH_VARARGS | METH_KEYWORDS },
28635 { (char *)"DateTime_SetToLastWeekDay", (PyCFunction) _wrap_DateTime_SetToLastWeekDay, METH_VARARGS | METH_KEYWORDS },
28636 { (char *)"DateTime_GetLastWeekDay", (PyCFunction) _wrap_DateTime_GetLastWeekDay, METH_VARARGS | METH_KEYWORDS },
28637 { (char *)"DateTime_SetToTheWeek", (PyCFunction) _wrap_DateTime_SetToTheWeek, METH_VARARGS | METH_KEYWORDS },
28638 { (char *)"DateTime_GetWeek", (PyCFunction) _wrap_DateTime_GetWeek, METH_VARARGS | METH_KEYWORDS },
28639 { (char *)"DateTime_SetToLastMonthDay", (PyCFunction) _wrap_DateTime_SetToLastMonthDay, METH_VARARGS | METH_KEYWORDS },
28640 { (char *)"DateTime_GetLastMonthDay", (PyCFunction) _wrap_DateTime_GetLastMonthDay, METH_VARARGS | METH_KEYWORDS },
28641 { (char *)"DateTime_SetToYearDay", (PyCFunction) _wrap_DateTime_SetToYearDay, METH_VARARGS | METH_KEYWORDS },
28642 { (char *)"DateTime_GetYearDay", (PyCFunction) _wrap_DateTime_GetYearDay, METH_VARARGS | METH_KEYWORDS },
28643 { (char *)"DateTime_GetJulianDayNumber", (PyCFunction) _wrap_DateTime_GetJulianDayNumber, METH_VARARGS | METH_KEYWORDS },
28644 { (char *)"DateTime_GetJDN", (PyCFunction) _wrap_DateTime_GetJDN, METH_VARARGS | METH_KEYWORDS },
28645 { (char *)"DateTime_GetModifiedJulianDayNumber", (PyCFunction) _wrap_DateTime_GetModifiedJulianDayNumber, METH_VARARGS | METH_KEYWORDS },
28646 { (char *)"DateTime_GetMJD", (PyCFunction) _wrap_DateTime_GetMJD, METH_VARARGS | METH_KEYWORDS },
28647 { (char *)"DateTime_GetRataDie", (PyCFunction) _wrap_DateTime_GetRataDie, METH_VARARGS | METH_KEYWORDS },
28648 { (char *)"DateTime_ToTimezone", (PyCFunction) _wrap_DateTime_ToTimezone, METH_VARARGS | METH_KEYWORDS },
28649 { (char *)"DateTime_MakeTimezone", (PyCFunction) _wrap_DateTime_MakeTimezone, METH_VARARGS | METH_KEYWORDS },
28650 { (char *)"DateTime_ToGMT", (PyCFunction) _wrap_DateTime_ToGMT, METH_VARARGS | METH_KEYWORDS },
28651 { (char *)"DateTime_MakeGMT", (PyCFunction) _wrap_DateTime_MakeGMT, METH_VARARGS | METH_KEYWORDS },
28652 { (char *)"DateTime_IsDST", (PyCFunction) _wrap_DateTime_IsDST, METH_VARARGS | METH_KEYWORDS },
28653 { (char *)"DateTime_IsValid", (PyCFunction) _wrap_DateTime_IsValid, METH_VARARGS | METH_KEYWORDS },
28654 { (char *)"DateTime_GetTicks", (PyCFunction) _wrap_DateTime_GetTicks, METH_VARARGS | METH_KEYWORDS },
28655 { (char *)"DateTime_GetYear", (PyCFunction) _wrap_DateTime_GetYear, METH_VARARGS | METH_KEYWORDS },
28656 { (char *)"DateTime_GetMonth", (PyCFunction) _wrap_DateTime_GetMonth, METH_VARARGS | METH_KEYWORDS },
28657 { (char *)"DateTime_GetDay", (PyCFunction) _wrap_DateTime_GetDay, METH_VARARGS | METH_KEYWORDS },
28658 { (char *)"DateTime_GetWeekDay", (PyCFunction) _wrap_DateTime_GetWeekDay, METH_VARARGS | METH_KEYWORDS },
28659 { (char *)"DateTime_GetHour", (PyCFunction) _wrap_DateTime_GetHour, METH_VARARGS | METH_KEYWORDS },
28660 { (char *)"DateTime_GetMinute", (PyCFunction) _wrap_DateTime_GetMinute, METH_VARARGS | METH_KEYWORDS },
28661 { (char *)"DateTime_GetSecond", (PyCFunction) _wrap_DateTime_GetSecond, METH_VARARGS | METH_KEYWORDS },
28662 { (char *)"DateTime_GetMillisecond", (PyCFunction) _wrap_DateTime_GetMillisecond, METH_VARARGS | METH_KEYWORDS },
28663 { (char *)"DateTime_GetDayOfYear", (PyCFunction) _wrap_DateTime_GetDayOfYear, METH_VARARGS | METH_KEYWORDS },
28664 { (char *)"DateTime_GetWeekOfYear", (PyCFunction) _wrap_DateTime_GetWeekOfYear, METH_VARARGS | METH_KEYWORDS },
28665 { (char *)"DateTime_GetWeekOfMonth", (PyCFunction) _wrap_DateTime_GetWeekOfMonth, METH_VARARGS | METH_KEYWORDS },
28666 { (char *)"DateTime_IsWorkDay", (PyCFunction) _wrap_DateTime_IsWorkDay, METH_VARARGS | METH_KEYWORDS },
28667 { (char *)"DateTime_IsEqualTo", (PyCFunction) _wrap_DateTime_IsEqualTo, METH_VARARGS | METH_KEYWORDS },
28668 { (char *)"DateTime_IsEarlierThan", (PyCFunction) _wrap_DateTime_IsEarlierThan, METH_VARARGS | METH_KEYWORDS },
28669 { (char *)"DateTime_IsLaterThan", (PyCFunction) _wrap_DateTime_IsLaterThan, METH_VARARGS | METH_KEYWORDS },
28670 { (char *)"DateTime_IsStrictlyBetween", (PyCFunction) _wrap_DateTime_IsStrictlyBetween, METH_VARARGS | METH_KEYWORDS },
28671 { (char *)"DateTime_IsBetween", (PyCFunction) _wrap_DateTime_IsBetween, METH_VARARGS | METH_KEYWORDS },
28672 { (char *)"DateTime_IsSameDate", (PyCFunction) _wrap_DateTime_IsSameDate, METH_VARARGS | METH_KEYWORDS },
28673 { (char *)"DateTime_IsSameTime", (PyCFunction) _wrap_DateTime_IsSameTime, METH_VARARGS | METH_KEYWORDS },
28674 { (char *)"DateTime_IsEqualUpTo", (PyCFunction) _wrap_DateTime_IsEqualUpTo, METH_VARARGS | METH_KEYWORDS },
28675 { (char *)"DateTime_AddTS", (PyCFunction) _wrap_DateTime_AddTS, METH_VARARGS | METH_KEYWORDS },
28676 { (char *)"DateTime_AddDS", (PyCFunction) _wrap_DateTime_AddDS, METH_VARARGS | METH_KEYWORDS },
28677 { (char *)"DateTime_SubtractTS", (PyCFunction) _wrap_DateTime_SubtractTS, METH_VARARGS | METH_KEYWORDS },
28678 { (char *)"DateTime_SubtractDS", (PyCFunction) _wrap_DateTime_SubtractDS, METH_VARARGS | METH_KEYWORDS },
28679 { (char *)"DateTime_Subtract", (PyCFunction) _wrap_DateTime_Subtract, METH_VARARGS | METH_KEYWORDS },
28680 { (char *)"DateTime___iadd__", _wrap_DateTime___iadd__, METH_VARARGS },
28681 { (char *)"DateTime___isub__", _wrap_DateTime___isub__, METH_VARARGS },
28682 { (char *)"DateTime___add__", _wrap_DateTime___add__, METH_VARARGS },
28683 { (char *)"DateTime___sub__", _wrap_DateTime___sub__, METH_VARARGS },
28684 { (char *)"DateTime___lt__", _wrap_DateTime___lt__, METH_VARARGS },
28685 { (char *)"DateTime___le__", _wrap_DateTime___le__, METH_VARARGS },
28686 { (char *)"DateTime___gt__", _wrap_DateTime___gt__, METH_VARARGS },
28687 { (char *)"DateTime___ge__", _wrap_DateTime___ge__, METH_VARARGS },
28688 { (char *)"DateTime___eq__", _wrap_DateTime___eq__, METH_VARARGS },
28689 { (char *)"DateTime___ne__", _wrap_DateTime___ne__, METH_VARARGS },
28690 { (char *)"DateTime_ParseRfc822Date", (PyCFunction) _wrap_DateTime_ParseRfc822Date, METH_VARARGS | METH_KEYWORDS },
28691 { (char *)"DateTime_ParseFormat", (PyCFunction) _wrap_DateTime_ParseFormat, METH_VARARGS | METH_KEYWORDS },
28692 { (char *)"DateTime_ParseDateTime", (PyCFunction) _wrap_DateTime_ParseDateTime, METH_VARARGS | METH_KEYWORDS },
28693 { (char *)"DateTime_ParseDate", (PyCFunction) _wrap_DateTime_ParseDate, METH_VARARGS | METH_KEYWORDS },
28694 { (char *)"DateTime_ParseTime", (PyCFunction) _wrap_DateTime_ParseTime, METH_VARARGS | METH_KEYWORDS },
28695 { (char *)"DateTime_Format", (PyCFunction) _wrap_DateTime_Format, METH_VARARGS | METH_KEYWORDS },
28696 { (char *)"DateTime_FormatDate", (PyCFunction) _wrap_DateTime_FormatDate, METH_VARARGS | METH_KEYWORDS },
28697 { (char *)"DateTime_FormatTime", (PyCFunction) _wrap_DateTime_FormatTime, METH_VARARGS | METH_KEYWORDS },
28698 { (char *)"DateTime_FormatISODate", (PyCFunction) _wrap_DateTime_FormatISODate, METH_VARARGS | METH_KEYWORDS },
28699 { (char *)"DateTime_FormatISOTime", (PyCFunction) _wrap_DateTime_FormatISOTime, METH_VARARGS | METH_KEYWORDS },
28700 { (char *)"DateTime_swigregister", DateTime_swigregister, METH_VARARGS },
28701 { (char *)"TimeSpan_Seconds", (PyCFunction) _wrap_TimeSpan_Seconds, METH_VARARGS | METH_KEYWORDS },
28702 { (char *)"TimeSpan_Second", (PyCFunction) _wrap_TimeSpan_Second, METH_VARARGS | METH_KEYWORDS },
28703 { (char *)"TimeSpan_Minutes", (PyCFunction) _wrap_TimeSpan_Minutes, METH_VARARGS | METH_KEYWORDS },
28704 { (char *)"TimeSpan_Minute", (PyCFunction) _wrap_TimeSpan_Minute, METH_VARARGS | METH_KEYWORDS },
28705 { (char *)"TimeSpan_Hours", (PyCFunction) _wrap_TimeSpan_Hours, METH_VARARGS | METH_KEYWORDS },
28706 { (char *)"TimeSpan_Hour", (PyCFunction) _wrap_TimeSpan_Hour, METH_VARARGS | METH_KEYWORDS },
28707 { (char *)"TimeSpan_Days", (PyCFunction) _wrap_TimeSpan_Days, METH_VARARGS | METH_KEYWORDS },
28708 { (char *)"TimeSpan_Day", (PyCFunction) _wrap_TimeSpan_Day, METH_VARARGS | METH_KEYWORDS },
28709 { (char *)"TimeSpan_Weeks", (PyCFunction) _wrap_TimeSpan_Weeks, METH_VARARGS | METH_KEYWORDS },
28710 { (char *)"TimeSpan_Week", (PyCFunction) _wrap_TimeSpan_Week, METH_VARARGS | METH_KEYWORDS },
28711 { (char *)"new_TimeSpan", (PyCFunction) _wrap_new_TimeSpan, METH_VARARGS | METH_KEYWORDS },
28712 { (char *)"delete_TimeSpan", (PyCFunction) _wrap_delete_TimeSpan, METH_VARARGS | METH_KEYWORDS },
28713 { (char *)"TimeSpan_Add", (PyCFunction) _wrap_TimeSpan_Add, METH_VARARGS | METH_KEYWORDS },
28714 { (char *)"TimeSpan_Subtract", (PyCFunction) _wrap_TimeSpan_Subtract, METH_VARARGS | METH_KEYWORDS },
28715 { (char *)"TimeSpan_Multiply", (PyCFunction) _wrap_TimeSpan_Multiply, METH_VARARGS | METH_KEYWORDS },
28716 { (char *)"TimeSpan_Neg", (PyCFunction) _wrap_TimeSpan_Neg, METH_VARARGS | METH_KEYWORDS },
28717 { (char *)"TimeSpan_Abs", (PyCFunction) _wrap_TimeSpan_Abs, METH_VARARGS | METH_KEYWORDS },
28718 { (char *)"TimeSpan___iadd__", (PyCFunction) _wrap_TimeSpan___iadd__, METH_VARARGS | METH_KEYWORDS },
28719 { (char *)"TimeSpan___isub__", (PyCFunction) _wrap_TimeSpan___isub__, METH_VARARGS | METH_KEYWORDS },
28720 { (char *)"TimeSpan___imul__", (PyCFunction) _wrap_TimeSpan___imul__, METH_VARARGS | METH_KEYWORDS },
28721 { (char *)"TimeSpan___neg__", (PyCFunction) _wrap_TimeSpan___neg__, METH_VARARGS | METH_KEYWORDS },
28722 { (char *)"TimeSpan___add__", (PyCFunction) _wrap_TimeSpan___add__, METH_VARARGS | METH_KEYWORDS },
28723 { (char *)"TimeSpan___sub__", (PyCFunction) _wrap_TimeSpan___sub__, METH_VARARGS | METH_KEYWORDS },
28724 { (char *)"TimeSpan___mul__", (PyCFunction) _wrap_TimeSpan___mul__, METH_VARARGS | METH_KEYWORDS },
28725 { (char *)"TimeSpan___rmul__", (PyCFunction) _wrap_TimeSpan___rmul__, METH_VARARGS | METH_KEYWORDS },
28726 { (char *)"TimeSpan___lt__", (PyCFunction) _wrap_TimeSpan___lt__, METH_VARARGS | METH_KEYWORDS },
28727 { (char *)"TimeSpan___le__", (PyCFunction) _wrap_TimeSpan___le__, METH_VARARGS | METH_KEYWORDS },
28728 { (char *)"TimeSpan___gt__", (PyCFunction) _wrap_TimeSpan___gt__, METH_VARARGS | METH_KEYWORDS },
28729 { (char *)"TimeSpan___ge__", (PyCFunction) _wrap_TimeSpan___ge__, METH_VARARGS | METH_KEYWORDS },
28730 { (char *)"TimeSpan___eq__", (PyCFunction) _wrap_TimeSpan___eq__, METH_VARARGS | METH_KEYWORDS },
28731 { (char *)"TimeSpan___ne__", (PyCFunction) _wrap_TimeSpan___ne__, METH_VARARGS | METH_KEYWORDS },
28732 { (char *)"TimeSpan_IsNull", (PyCFunction) _wrap_TimeSpan_IsNull, METH_VARARGS | METH_KEYWORDS },
28733 { (char *)"TimeSpan_IsPositive", (PyCFunction) _wrap_TimeSpan_IsPositive, METH_VARARGS | METH_KEYWORDS },
28734 { (char *)"TimeSpan_IsNegative", (PyCFunction) _wrap_TimeSpan_IsNegative, METH_VARARGS | METH_KEYWORDS },
28735 { (char *)"TimeSpan_IsEqualTo", (PyCFunction) _wrap_TimeSpan_IsEqualTo, METH_VARARGS | METH_KEYWORDS },
28736 { (char *)"TimeSpan_IsLongerThan", (PyCFunction) _wrap_TimeSpan_IsLongerThan, METH_VARARGS | METH_KEYWORDS },
28737 { (char *)"TimeSpan_IsShorterThan", (PyCFunction) _wrap_TimeSpan_IsShorterThan, METH_VARARGS | METH_KEYWORDS },
28738 { (char *)"TimeSpan_GetWeeks", (PyCFunction) _wrap_TimeSpan_GetWeeks, METH_VARARGS | METH_KEYWORDS },
28739 { (char *)"TimeSpan_GetDays", (PyCFunction) _wrap_TimeSpan_GetDays, METH_VARARGS | METH_KEYWORDS },
28740 { (char *)"TimeSpan_GetHours", (PyCFunction) _wrap_TimeSpan_GetHours, METH_VARARGS | METH_KEYWORDS },
28741 { (char *)"TimeSpan_GetMinutes", (PyCFunction) _wrap_TimeSpan_GetMinutes, METH_VARARGS | METH_KEYWORDS },
28742 { (char *)"TimeSpan_GetSeconds", (PyCFunction) _wrap_TimeSpan_GetSeconds, METH_VARARGS | METH_KEYWORDS },
28743 { (char *)"TimeSpan_GetMilliseconds", (PyCFunction) _wrap_TimeSpan_GetMilliseconds, METH_VARARGS | METH_KEYWORDS },
28744 { (char *)"TimeSpan_Format", (PyCFunction) _wrap_TimeSpan_Format, METH_VARARGS | METH_KEYWORDS },
28745 { (char *)"TimeSpan_swigregister", TimeSpan_swigregister, METH_VARARGS },
28746 { (char *)"new_DateSpan", (PyCFunction) _wrap_new_DateSpan, METH_VARARGS | METH_KEYWORDS },
28747 { (char *)"delete_DateSpan", (PyCFunction) _wrap_delete_DateSpan, METH_VARARGS | METH_KEYWORDS },
28748 { (char *)"DateSpan_Days", (PyCFunction) _wrap_DateSpan_Days, METH_VARARGS | METH_KEYWORDS },
28749 { (char *)"DateSpan_Day", (PyCFunction) _wrap_DateSpan_Day, METH_VARARGS | METH_KEYWORDS },
28750 { (char *)"DateSpan_Weeks", (PyCFunction) _wrap_DateSpan_Weeks, METH_VARARGS | METH_KEYWORDS },
28751 { (char *)"DateSpan_Week", (PyCFunction) _wrap_DateSpan_Week, METH_VARARGS | METH_KEYWORDS },
28752 { (char *)"DateSpan_Months", (PyCFunction) _wrap_DateSpan_Months, METH_VARARGS | METH_KEYWORDS },
28753 { (char *)"DateSpan_Month", (PyCFunction) _wrap_DateSpan_Month, METH_VARARGS | METH_KEYWORDS },
28754 { (char *)"DateSpan_Years", (PyCFunction) _wrap_DateSpan_Years, METH_VARARGS | METH_KEYWORDS },
28755 { (char *)"DateSpan_Year", (PyCFunction) _wrap_DateSpan_Year, METH_VARARGS | METH_KEYWORDS },
28756 { (char *)"DateSpan_SetYears", (PyCFunction) _wrap_DateSpan_SetYears, METH_VARARGS | METH_KEYWORDS },
28757 { (char *)"DateSpan_SetMonths", (PyCFunction) _wrap_DateSpan_SetMonths, METH_VARARGS | METH_KEYWORDS },
28758 { (char *)"DateSpan_SetWeeks", (PyCFunction) _wrap_DateSpan_SetWeeks, METH_VARARGS | METH_KEYWORDS },
28759 { (char *)"DateSpan_SetDays", (PyCFunction) _wrap_DateSpan_SetDays, METH_VARARGS | METH_KEYWORDS },
28760 { (char *)"DateSpan_GetYears", (PyCFunction) _wrap_DateSpan_GetYears, METH_VARARGS | METH_KEYWORDS },
28761 { (char *)"DateSpan_GetMonths", (PyCFunction) _wrap_DateSpan_GetMonths, METH_VARARGS | METH_KEYWORDS },
28762 { (char *)"DateSpan_GetWeeks", (PyCFunction) _wrap_DateSpan_GetWeeks, METH_VARARGS | METH_KEYWORDS },
28763 { (char *)"DateSpan_GetDays", (PyCFunction) _wrap_DateSpan_GetDays, METH_VARARGS | METH_KEYWORDS },
28764 { (char *)"DateSpan_GetTotalDays", (PyCFunction) _wrap_DateSpan_GetTotalDays, METH_VARARGS | METH_KEYWORDS },
28765 { (char *)"DateSpan_Add", (PyCFunction) _wrap_DateSpan_Add, METH_VARARGS | METH_KEYWORDS },
28766 { (char *)"DateSpan_Subtract", (PyCFunction) _wrap_DateSpan_Subtract, METH_VARARGS | METH_KEYWORDS },
28767 { (char *)"DateSpan_Neg", (PyCFunction) _wrap_DateSpan_Neg, METH_VARARGS | METH_KEYWORDS },
28768 { (char *)"DateSpan_Multiply", (PyCFunction) _wrap_DateSpan_Multiply, METH_VARARGS | METH_KEYWORDS },
28769 { (char *)"DateSpan___iadd__", (PyCFunction) _wrap_DateSpan___iadd__, METH_VARARGS | METH_KEYWORDS },
28770 { (char *)"DateSpan___isub__", (PyCFunction) _wrap_DateSpan___isub__, METH_VARARGS | METH_KEYWORDS },
28771 { (char *)"DateSpan___neg__", (PyCFunction) _wrap_DateSpan___neg__, METH_VARARGS | METH_KEYWORDS },
28772 { (char *)"DateSpan___imul__", (PyCFunction) _wrap_DateSpan___imul__, METH_VARARGS | METH_KEYWORDS },
28773 { (char *)"DateSpan___add__", (PyCFunction) _wrap_DateSpan___add__, METH_VARARGS | METH_KEYWORDS },
28774 { (char *)"DateSpan___sub__", (PyCFunction) _wrap_DateSpan___sub__, METH_VARARGS | METH_KEYWORDS },
28775 { (char *)"DateSpan___mul__", (PyCFunction) _wrap_DateSpan___mul__, METH_VARARGS | METH_KEYWORDS },
28776 { (char *)"DateSpan___rmul__", (PyCFunction) _wrap_DateSpan___rmul__, METH_VARARGS | METH_KEYWORDS },
28777 { (char *)"DateSpan___eq__", (PyCFunction) _wrap_DateSpan___eq__, METH_VARARGS | METH_KEYWORDS },
28778 { (char *)"DateSpan___ne__", (PyCFunction) _wrap_DateSpan___ne__, METH_VARARGS | METH_KEYWORDS },
28779 { (char *)"DateSpan_swigregister", DateSpan_swigregister, METH_VARARGS },
28780 { (char *)"GetLocalTime", (PyCFunction) _wrap_GetLocalTime, METH_VARARGS | METH_KEYWORDS },
28781 { (char *)"GetUTCTime", (PyCFunction) _wrap_GetUTCTime, METH_VARARGS | METH_KEYWORDS },
28782 { (char *)"GetCurrentTime", (PyCFunction) _wrap_GetCurrentTime, METH_VARARGS | METH_KEYWORDS },
28783 { (char *)"GetLocalTimeMillis", (PyCFunction) _wrap_GetLocalTimeMillis, METH_VARARGS | METH_KEYWORDS },
28784 { (char *)"new_DataFormat", (PyCFunction) _wrap_new_DataFormat, METH_VARARGS | METH_KEYWORDS },
28785 { (char *)"new_CustomDataFormat", (PyCFunction) _wrap_new_CustomDataFormat, METH_VARARGS | METH_KEYWORDS },
28786 { (char *)"delete_DataFormat", (PyCFunction) _wrap_delete_DataFormat, METH_VARARGS | METH_KEYWORDS },
28787 { (char *)"DataFormat___eq__", _wrap_DataFormat___eq__, METH_VARARGS },
28788 { (char *)"DataFormat___ne__", _wrap_DataFormat___ne__, METH_VARARGS },
28789 { (char *)"DataFormat_SetType", (PyCFunction) _wrap_DataFormat_SetType, METH_VARARGS | METH_KEYWORDS },
28790 { (char *)"DataFormat_GetType", (PyCFunction) _wrap_DataFormat_GetType, METH_VARARGS | METH_KEYWORDS },
28791 { (char *)"DataFormat_GetId", (PyCFunction) _wrap_DataFormat_GetId, METH_VARARGS | METH_KEYWORDS },
28792 { (char *)"DataFormat_SetId", (PyCFunction) _wrap_DataFormat_SetId, METH_VARARGS | METH_KEYWORDS },
28793 { (char *)"DataFormat_swigregister", DataFormat_swigregister, METH_VARARGS },
28794 { (char *)"delete_DataObject", (PyCFunction) _wrap_delete_DataObject, METH_VARARGS | METH_KEYWORDS },
28795 { (char *)"DataObject_GetPreferredFormat", (PyCFunction) _wrap_DataObject_GetPreferredFormat, METH_VARARGS | METH_KEYWORDS },
28796 { (char *)"DataObject_GetFormatCount", (PyCFunction) _wrap_DataObject_GetFormatCount, METH_VARARGS | METH_KEYWORDS },
28797 { (char *)"DataObject_IsSupported", (PyCFunction) _wrap_DataObject_IsSupported, METH_VARARGS | METH_KEYWORDS },
28798 { (char *)"DataObject_GetDataSize", (PyCFunction) _wrap_DataObject_GetDataSize, METH_VARARGS | METH_KEYWORDS },
28799 { (char *)"DataObject_GetAllFormats", (PyCFunction) _wrap_DataObject_GetAllFormats, METH_VARARGS | METH_KEYWORDS },
28800 { (char *)"DataObject_GetDataHere", (PyCFunction) _wrap_DataObject_GetDataHere, METH_VARARGS | METH_KEYWORDS },
28801 { (char *)"DataObject_SetData", (PyCFunction) _wrap_DataObject_SetData, METH_VARARGS | METH_KEYWORDS },
28802 { (char *)"DataObject_swigregister", DataObject_swigregister, METH_VARARGS },
28803 { (char *)"new_DataObjectSimple", (PyCFunction) _wrap_new_DataObjectSimple, METH_VARARGS | METH_KEYWORDS },
28804 { (char *)"DataObjectSimple_GetFormat", (PyCFunction) _wrap_DataObjectSimple_GetFormat, METH_VARARGS | METH_KEYWORDS },
28805 { (char *)"DataObjectSimple_SetFormat", (PyCFunction) _wrap_DataObjectSimple_SetFormat, METH_VARARGS | METH_KEYWORDS },
28806 { (char *)"DataObjectSimple_GetDataSize", (PyCFunction) _wrap_DataObjectSimple_GetDataSize, METH_VARARGS | METH_KEYWORDS },
28807 { (char *)"DataObjectSimple_GetDataHere", (PyCFunction) _wrap_DataObjectSimple_GetDataHere, METH_VARARGS | METH_KEYWORDS },
28808 { (char *)"DataObjectSimple_SetData", (PyCFunction) _wrap_DataObjectSimple_SetData, METH_VARARGS | METH_KEYWORDS },
28809 { (char *)"DataObjectSimple_swigregister", DataObjectSimple_swigregister, METH_VARARGS },
28810 { (char *)"new_PyDataObjectSimple", (PyCFunction) _wrap_new_PyDataObjectSimple, METH_VARARGS | METH_KEYWORDS },
28811 { (char *)"PyDataObjectSimple__setCallbackInfo", (PyCFunction) _wrap_PyDataObjectSimple__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
28812 { (char *)"PyDataObjectSimple_swigregister", PyDataObjectSimple_swigregister, METH_VARARGS },
28813 { (char *)"new_DataObjectComposite", (PyCFunction) _wrap_new_DataObjectComposite, METH_VARARGS | METH_KEYWORDS },
28814 { (char *)"DataObjectComposite_Add", (PyCFunction) _wrap_DataObjectComposite_Add, METH_VARARGS | METH_KEYWORDS },
28815 { (char *)"DataObjectComposite_swigregister", DataObjectComposite_swigregister, METH_VARARGS },
28816 { (char *)"new_TextDataObject", (PyCFunction) _wrap_new_TextDataObject, METH_VARARGS | METH_KEYWORDS },
28817 { (char *)"TextDataObject_GetTextLength", (PyCFunction) _wrap_TextDataObject_GetTextLength, METH_VARARGS | METH_KEYWORDS },
28818 { (char *)"TextDataObject_GetText", (PyCFunction) _wrap_TextDataObject_GetText, METH_VARARGS | METH_KEYWORDS },
28819 { (char *)"TextDataObject_SetText", (PyCFunction) _wrap_TextDataObject_SetText, METH_VARARGS | METH_KEYWORDS },
28820 { (char *)"TextDataObject_swigregister", TextDataObject_swigregister, METH_VARARGS },
28821 { (char *)"new_PyTextDataObject", (PyCFunction) _wrap_new_PyTextDataObject, METH_VARARGS | METH_KEYWORDS },
28822 { (char *)"PyTextDataObject__setCallbackInfo", (PyCFunction) _wrap_PyTextDataObject__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
28823 { (char *)"PyTextDataObject_swigregister", PyTextDataObject_swigregister, METH_VARARGS },
28824 { (char *)"new_BitmapDataObject", (PyCFunction) _wrap_new_BitmapDataObject, METH_VARARGS | METH_KEYWORDS },
28825 { (char *)"BitmapDataObject_GetBitmap", (PyCFunction) _wrap_BitmapDataObject_GetBitmap, METH_VARARGS | METH_KEYWORDS },
28826 { (char *)"BitmapDataObject_SetBitmap", (PyCFunction) _wrap_BitmapDataObject_SetBitmap, METH_VARARGS | METH_KEYWORDS },
28827 { (char *)"BitmapDataObject_swigregister", BitmapDataObject_swigregister, METH_VARARGS },
28828 { (char *)"new_PyBitmapDataObject", (PyCFunction) _wrap_new_PyBitmapDataObject, METH_VARARGS | METH_KEYWORDS },
28829 { (char *)"PyBitmapDataObject__setCallbackInfo", (PyCFunction) _wrap_PyBitmapDataObject__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
28830 { (char *)"PyBitmapDataObject_swigregister", PyBitmapDataObject_swigregister, METH_VARARGS },
28831 { (char *)"new_FileDataObject", (PyCFunction) _wrap_new_FileDataObject, METH_VARARGS | METH_KEYWORDS },
28832 { (char *)"FileDataObject_GetFilenames", (PyCFunction) _wrap_FileDataObject_GetFilenames, METH_VARARGS | METH_KEYWORDS },
28833 { (char *)"FileDataObject_AddFile", (PyCFunction) _wrap_FileDataObject_AddFile, METH_VARARGS | METH_KEYWORDS },
28834 { (char *)"FileDataObject_swigregister", FileDataObject_swigregister, METH_VARARGS },
28835 { (char *)"new_CustomDataObject", (PyCFunction) _wrap_new_CustomDataObject, METH_VARARGS | METH_KEYWORDS },
28836 { (char *)"CustomDataObject_SetData", (PyCFunction) _wrap_CustomDataObject_SetData, METH_VARARGS | METH_KEYWORDS },
28837 { (char *)"CustomDataObject_GetSize", (PyCFunction) _wrap_CustomDataObject_GetSize, METH_VARARGS | METH_KEYWORDS },
28838 { (char *)"CustomDataObject_GetData", (PyCFunction) _wrap_CustomDataObject_GetData, METH_VARARGS | METH_KEYWORDS },
28839 { (char *)"CustomDataObject_swigregister", CustomDataObject_swigregister, METH_VARARGS },
28840 { (char *)"new_URLDataObject", (PyCFunction) _wrap_new_URLDataObject, METH_VARARGS | METH_KEYWORDS },
28841 { (char *)"URLDataObject_GetURL", (PyCFunction) _wrap_URLDataObject_GetURL, METH_VARARGS | METH_KEYWORDS },
28842 { (char *)"URLDataObject_SetURL", (PyCFunction) _wrap_URLDataObject_SetURL, METH_VARARGS | METH_KEYWORDS },
28843 { (char *)"URLDataObject_swigregister", URLDataObject_swigregister, METH_VARARGS },
28844 { (char *)"new_MetafileDataObject", (PyCFunction) _wrap_new_MetafileDataObject, METH_VARARGS | METH_KEYWORDS },
28845 { (char *)"MetafileDataObject_swigregister", MetafileDataObject_swigregister, METH_VARARGS },
28846 { (char *)"IsDragResultOk", (PyCFunction) _wrap_IsDragResultOk, METH_VARARGS | METH_KEYWORDS },
28847 { (char *)"new_DropSource", (PyCFunction) _wrap_new_DropSource, METH_VARARGS | METH_KEYWORDS },
28848 { (char *)"DropSource__setCallbackInfo", (PyCFunction) _wrap_DropSource__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
28849 { (char *)"delete_DropSource", (PyCFunction) _wrap_delete_DropSource, METH_VARARGS | METH_KEYWORDS },
28850 { (char *)"DropSource_SetData", (PyCFunction) _wrap_DropSource_SetData, METH_VARARGS | METH_KEYWORDS },
28851 { (char *)"DropSource_GetDataObject", (PyCFunction) _wrap_DropSource_GetDataObject, METH_VARARGS | METH_KEYWORDS },
28852 { (char *)"DropSource_SetCursor", (PyCFunction) _wrap_DropSource_SetCursor, METH_VARARGS | METH_KEYWORDS },
28853 { (char *)"DropSource_DoDragDrop", (PyCFunction) _wrap_DropSource_DoDragDrop, METH_VARARGS | METH_KEYWORDS },
28854 { (char *)"DropSource_base_GiveFeedback", (PyCFunction) _wrap_DropSource_base_GiveFeedback, METH_VARARGS | METH_KEYWORDS },
28855 { (char *)"DropSource_swigregister", DropSource_swigregister, METH_VARARGS },
28856 { (char *)"new_DropTarget", (PyCFunction) _wrap_new_DropTarget, METH_VARARGS | METH_KEYWORDS },
28857 { (char *)"DropTarget__setCallbackInfo", (PyCFunction) _wrap_DropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
28858 { (char *)"delete_DropTarget", (PyCFunction) _wrap_delete_DropTarget, METH_VARARGS | METH_KEYWORDS },
28859 { (char *)"DropTarget_GetDataObject", (PyCFunction) _wrap_DropTarget_GetDataObject, METH_VARARGS | METH_KEYWORDS },
28860 { (char *)"DropTarget_SetDataObject", (PyCFunction) _wrap_DropTarget_SetDataObject, METH_VARARGS | METH_KEYWORDS },
28861 { (char *)"DropTarget_base_OnEnter", (PyCFunction) _wrap_DropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS },
28862 { (char *)"DropTarget_base_OnDragOver", (PyCFunction) _wrap_DropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS },
28863 { (char *)"DropTarget_base_OnLeave", (PyCFunction) _wrap_DropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS },
28864 { (char *)"DropTarget_base_OnDrop", (PyCFunction) _wrap_DropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS },
28865 { (char *)"DropTarget_GetData", (PyCFunction) _wrap_DropTarget_GetData, METH_VARARGS | METH_KEYWORDS },
28866 { (char *)"DropTarget_swigregister", DropTarget_swigregister, METH_VARARGS },
28867 { (char *)"new_TextDropTarget", (PyCFunction) _wrap_new_TextDropTarget, METH_VARARGS | METH_KEYWORDS },
28868 { (char *)"TextDropTarget__setCallbackInfo", (PyCFunction) _wrap_TextDropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
28869 { (char *)"TextDropTarget_base_OnEnter", (PyCFunction) _wrap_TextDropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS },
28870 { (char *)"TextDropTarget_base_OnDragOver", (PyCFunction) _wrap_TextDropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS },
28871 { (char *)"TextDropTarget_base_OnLeave", (PyCFunction) _wrap_TextDropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS },
28872 { (char *)"TextDropTarget_base_OnDrop", (PyCFunction) _wrap_TextDropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS },
28873 { (char *)"TextDropTarget_base_OnData", (PyCFunction) _wrap_TextDropTarget_base_OnData, METH_VARARGS | METH_KEYWORDS },
28874 { (char *)"TextDropTarget_swigregister", TextDropTarget_swigregister, METH_VARARGS },
28875 { (char *)"new_FileDropTarget", (PyCFunction) _wrap_new_FileDropTarget, METH_VARARGS | METH_KEYWORDS },
28876 { (char *)"FileDropTarget__setCallbackInfo", (PyCFunction) _wrap_FileDropTarget__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
28877 { (char *)"FileDropTarget_base_OnEnter", (PyCFunction) _wrap_FileDropTarget_base_OnEnter, METH_VARARGS | METH_KEYWORDS },
28878 { (char *)"FileDropTarget_base_OnDragOver", (PyCFunction) _wrap_FileDropTarget_base_OnDragOver, METH_VARARGS | METH_KEYWORDS },
28879 { (char *)"FileDropTarget_base_OnLeave", (PyCFunction) _wrap_FileDropTarget_base_OnLeave, METH_VARARGS | METH_KEYWORDS },
28880 { (char *)"FileDropTarget_base_OnDrop", (PyCFunction) _wrap_FileDropTarget_base_OnDrop, METH_VARARGS | METH_KEYWORDS },
28881 { (char *)"FileDropTarget_base_OnData", (PyCFunction) _wrap_FileDropTarget_base_OnData, METH_VARARGS | METH_KEYWORDS },
28882 { (char *)"FileDropTarget_swigregister", FileDropTarget_swigregister, METH_VARARGS },
28883 { (char *)"new_Clipboard", (PyCFunction) _wrap_new_Clipboard, METH_VARARGS | METH_KEYWORDS },
28884 { (char *)"delete_Clipboard", (PyCFunction) _wrap_delete_Clipboard, METH_VARARGS | METH_KEYWORDS },
28885 { (char *)"Clipboard_Open", (PyCFunction) _wrap_Clipboard_Open, METH_VARARGS | METH_KEYWORDS },
28886 { (char *)"Clipboard_Close", (PyCFunction) _wrap_Clipboard_Close, METH_VARARGS | METH_KEYWORDS },
28887 { (char *)"Clipboard_IsOpened", (PyCFunction) _wrap_Clipboard_IsOpened, METH_VARARGS | METH_KEYWORDS },
28888 { (char *)"Clipboard_AddData", (PyCFunction) _wrap_Clipboard_AddData, METH_VARARGS | METH_KEYWORDS },
28889 { (char *)"Clipboard_SetData", (PyCFunction) _wrap_Clipboard_SetData, METH_VARARGS | METH_KEYWORDS },
28890 { (char *)"Clipboard_IsSupported", (PyCFunction) _wrap_Clipboard_IsSupported, METH_VARARGS | METH_KEYWORDS },
28891 { (char *)"Clipboard_GetData", (PyCFunction) _wrap_Clipboard_GetData, METH_VARARGS | METH_KEYWORDS },
28892 { (char *)"Clipboard_Clear", (PyCFunction) _wrap_Clipboard_Clear, METH_VARARGS | METH_KEYWORDS },
28893 { (char *)"Clipboard_Flush", (PyCFunction) _wrap_Clipboard_Flush, METH_VARARGS | METH_KEYWORDS },
28894 { (char *)"Clipboard_UsePrimarySelection", (PyCFunction) _wrap_Clipboard_UsePrimarySelection, METH_VARARGS | METH_KEYWORDS },
28895 { (char *)"Clipboard_swigregister", Clipboard_swigregister, METH_VARARGS },
28896 { (char *)"new_ClipboardLocker", (PyCFunction) _wrap_new_ClipboardLocker, METH_VARARGS | METH_KEYWORDS },
28897 { (char *)"delete_ClipboardLocker", (PyCFunction) _wrap_delete_ClipboardLocker, METH_VARARGS | METH_KEYWORDS },
28898 { (char *)"ClipboardLocker___nonzero__", (PyCFunction) _wrap_ClipboardLocker___nonzero__, METH_VARARGS | METH_KEYWORDS },
28899 { (char *)"ClipboardLocker_swigregister", ClipboardLocker_swigregister, METH_VARARGS },
28900 { (char *)"new_VideoMode", (PyCFunction) _wrap_new_VideoMode, METH_VARARGS | METH_KEYWORDS },
28901 { (char *)"delete_VideoMode", (PyCFunction) _wrap_delete_VideoMode, METH_VARARGS | METH_KEYWORDS },
28902 { (char *)"VideoMode_Matches", (PyCFunction) _wrap_VideoMode_Matches, METH_VARARGS | METH_KEYWORDS },
28903 { (char *)"VideoMode_GetWidth", (PyCFunction) _wrap_VideoMode_GetWidth, METH_VARARGS | METH_KEYWORDS },
28904 { (char *)"VideoMode_GetHeight", (PyCFunction) _wrap_VideoMode_GetHeight, METH_VARARGS | METH_KEYWORDS },
28905 { (char *)"VideoMode_GetDepth", (PyCFunction) _wrap_VideoMode_GetDepth, METH_VARARGS | METH_KEYWORDS },
28906 { (char *)"VideoMode_IsOk", (PyCFunction) _wrap_VideoMode_IsOk, METH_VARARGS | METH_KEYWORDS },
28907 { (char *)"VideoMode___eq__", (PyCFunction) _wrap_VideoMode___eq__, METH_VARARGS | METH_KEYWORDS },
28908 { (char *)"VideoMode___ne__", (PyCFunction) _wrap_VideoMode___ne__, METH_VARARGS | METH_KEYWORDS },
28909 { (char *)"VideoMode_w_set", (PyCFunction) _wrap_VideoMode_w_set, METH_VARARGS | METH_KEYWORDS },
28910 { (char *)"VideoMode_w_get", (PyCFunction) _wrap_VideoMode_w_get, METH_VARARGS | METH_KEYWORDS },
28911 { (char *)"VideoMode_h_set", (PyCFunction) _wrap_VideoMode_h_set, METH_VARARGS | METH_KEYWORDS },
28912 { (char *)"VideoMode_h_get", (PyCFunction) _wrap_VideoMode_h_get, METH_VARARGS | METH_KEYWORDS },
28913 { (char *)"VideoMode_bpp_set", (PyCFunction) _wrap_VideoMode_bpp_set, METH_VARARGS | METH_KEYWORDS },
28914 { (char *)"VideoMode_bpp_get", (PyCFunction) _wrap_VideoMode_bpp_get, METH_VARARGS | METH_KEYWORDS },
28915 { (char *)"VideoMode_refresh_set", (PyCFunction) _wrap_VideoMode_refresh_set, METH_VARARGS | METH_KEYWORDS },
28916 { (char *)"VideoMode_refresh_get", (PyCFunction) _wrap_VideoMode_refresh_get, METH_VARARGS | METH_KEYWORDS },
28917 { (char *)"VideoMode_swigregister", VideoMode_swigregister, METH_VARARGS },
28918 { (char *)"new_Display", (PyCFunction) _wrap_new_Display, METH_VARARGS | METH_KEYWORDS },
28919 { (char *)"delete_Display", (PyCFunction) _wrap_delete_Display, METH_VARARGS | METH_KEYWORDS },
28920 { (char *)"Display_GetCount", (PyCFunction) _wrap_Display_GetCount, METH_VARARGS | METH_KEYWORDS },
28921 { (char *)"Display_GetFromPoint", (PyCFunction) _wrap_Display_GetFromPoint, METH_VARARGS | METH_KEYWORDS },
28922 { (char *)"Display_GetFromWindow", (PyCFunction) _wrap_Display_GetFromWindow, METH_VARARGS | METH_KEYWORDS },
28923 { (char *)"Display_IsOk", (PyCFunction) _wrap_Display_IsOk, METH_VARARGS | METH_KEYWORDS },
28924 { (char *)"Display_GetGeometry", (PyCFunction) _wrap_Display_GetGeometry, METH_VARARGS | METH_KEYWORDS },
28925 { (char *)"Display_GetName", (PyCFunction) _wrap_Display_GetName, METH_VARARGS | METH_KEYWORDS },
28926 { (char *)"Display_IsPrimary", (PyCFunction) _wrap_Display_IsPrimary, METH_VARARGS | METH_KEYWORDS },
28927 { (char *)"Display_GetModes", (PyCFunction) _wrap_Display_GetModes, METH_VARARGS | METH_KEYWORDS },
28928 { (char *)"Display_GetCurrentMode", (PyCFunction) _wrap_Display_GetCurrentMode, METH_VARARGS | METH_KEYWORDS },
28929 { (char *)"Display_ChangeMode", (PyCFunction) _wrap_Display_ChangeMode, METH_VARARGS | METH_KEYWORDS },
28930 { (char *)"Display_ResetMode", (PyCFunction) _wrap_Display_ResetMode, METH_VARARGS | METH_KEYWORDS },
28931 { (char *)"Display_swigregister", Display_swigregister, METH_VARARGS },
28932 { NULL, NULL }
28933 };
28934
28935
28936 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
28937
28938 static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) {
28939 return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x));
28940 }
28941 static void *_p_wxMenuEventTo_p_wxEvent(void *x) {
28942 return (void *)((wxEvent *) ((wxMenuEvent *) x));
28943 }
28944 static void *_p_wxCloseEventTo_p_wxEvent(void *x) {
28945 return (void *)((wxEvent *) ((wxCloseEvent *) x));
28946 }
28947 static void *_p_wxMouseEventTo_p_wxEvent(void *x) {
28948 return (void *)((wxEvent *) ((wxMouseEvent *) x));
28949 }
28950 static void *_p_wxEraseEventTo_p_wxEvent(void *x) {
28951 return (void *)((wxEvent *) ((wxEraseEvent *) x));
28952 }
28953 static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) {
28954 return (void *)((wxEvent *) ((wxSetCursorEvent *) x));
28955 }
28956 static void *_p_wxTimerEventTo_p_wxEvent(void *x) {
28957 return (void *)((wxEvent *) ((wxTimerEvent *) x));
28958 }
28959 static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) {
28960 return (void *)((wxEvent *) ((wxInitDialogEvent *) x));
28961 }
28962 static void *_p_wxScrollEventTo_p_wxEvent(void *x) {
28963 return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x));
28964 }
28965 static void *_p_wxPyEventTo_p_wxEvent(void *x) {
28966 return (void *)((wxEvent *) ((wxPyEvent *) x));
28967 }
28968 static void *_p_wxNotifyEventTo_p_wxEvent(void *x) {
28969 return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x));
28970 }
28971 static void *_p_wxJoystickEventTo_p_wxEvent(void *x) {
28972 return (void *)((wxEvent *) ((wxJoystickEvent *) x));
28973 }
28974 static void *_p_wxIdleEventTo_p_wxEvent(void *x) {
28975 return (void *)((wxEvent *) ((wxIdleEvent *) x));
28976 }
28977 static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) {
28978 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x));
28979 }
28980 static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) {
28981 return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x));
28982 }
28983 static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) {
28984 return (void *)((wxEvent *) ((wxMaximizeEvent *) x));
28985 }
28986 static void *_p_wxIconizeEventTo_p_wxEvent(void *x) {
28987 return (void *)((wxEvent *) ((wxIconizeEvent *) x));
28988 }
28989 static void *_p_wxActivateEventTo_p_wxEvent(void *x) {
28990 return (void *)((wxEvent *) ((wxActivateEvent *) x));
28991 }
28992 static void *_p_wxSizeEventTo_p_wxEvent(void *x) {
28993 return (void *)((wxEvent *) ((wxSizeEvent *) x));
28994 }
28995 static void *_p_wxMoveEventTo_p_wxEvent(void *x) {
28996 return (void *)((wxEvent *) ((wxMoveEvent *) x));
28997 }
28998 static void *_p_wxPaintEventTo_p_wxEvent(void *x) {
28999 return (void *)((wxEvent *) ((wxPaintEvent *) x));
29000 }
29001 static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) {
29002 return (void *)((wxEvent *) ((wxNcPaintEvent *) x));
29003 }
29004 static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) {
29005 return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x));
29006 }
29007 static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) {
29008 return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x));
29009 }
29010 static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) {
29011 return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x));
29012 }
29013 static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) {
29014 return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x));
29015 }
29016 static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) {
29017 return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x));
29018 }
29019 static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) {
29020 return (void *)((wxEvent *) ((wxDropFilesEvent *) x));
29021 }
29022 static void *_p_wxFocusEventTo_p_wxEvent(void *x) {
29023 return (void *)((wxEvent *) ((wxFocusEvent *) x));
29024 }
29025 static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) {
29026 return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x));
29027 }
29028 static void *_p_wxProcessEventTo_p_wxEvent(void *x) {
29029 return (void *)((wxEvent *) ((wxProcessEvent *) x));
29030 }
29031 static void *_p_wxShowEventTo_p_wxEvent(void *x) {
29032 return (void *)((wxEvent *) ((wxShowEvent *) x));
29033 }
29034 static void *_p_wxCommandEventTo_p_wxEvent(void *x) {
29035 return (void *)((wxEvent *) ((wxCommandEvent *) x));
29036 }
29037 static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) {
29038 return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x));
29039 }
29040 static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) {
29041 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x));
29042 }
29043 static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) {
29044 return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x));
29045 }
29046 static void *_p_wxKeyEventTo_p_wxEvent(void *x) {
29047 return (void *)((wxEvent *) ((wxKeyEvent *) x));
29048 }
29049 static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) {
29050 return (void *)((wxEvent *) ((wxScrollWinEvent *) x));
29051 }
29052 static void *_p_wxFileConfigTo_p_wxConfigBase(void *x) {
29053 return (void *)((wxConfigBase *) ((wxFileConfig *) x));
29054 }
29055 static void *_p_wxConfigTo_p_wxConfigBase(void *x) {
29056 return (void *)((wxConfigBase *) ((wxConfig *) x));
29057 }
29058 static void *_p_wxPyBitmapDataObjectTo_p_wxBitmapDataObject(void *x) {
29059 return (void *)((wxBitmapDataObject *) ((wxPyBitmapDataObject *) x));
29060 }
29061 static void *_p_wxPyTextDataObjectTo_p_wxTextDataObject(void *x) {
29062 return (void *)((wxTextDataObject *) ((wxPyTextDataObject *) x));
29063 }
29064 static void *_p_wxDataObjectSimpleTo_p_wxDataObject(void *x) {
29065 return (void *)((wxDataObject *) ((wxDataObjectSimple *) x));
29066 }
29067 static void *_p_wxPyDataObjectSimpleTo_p_wxDataObject(void *x) {
29068 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxPyDataObjectSimple *) x));
29069 }
29070 static void *_p_wxDataObjectCompositeTo_p_wxDataObject(void *x) {
29071 return (void *)((wxDataObject *) ((wxDataObjectComposite *) x));
29072 }
29073 static void *_p_wxTextDataObjectTo_p_wxDataObject(void *x) {
29074 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxTextDataObject *) x));
29075 }
29076 static void *_p_wxPyTextDataObjectTo_p_wxDataObject(void *x) {
29077 return (void *)((wxDataObject *) (wxDataObjectSimple *)(wxTextDataObject *) ((wxPyTextDataObject *) x));
29078 }
29079 static void *_p_wxBitmapDataObjectTo_p_wxDataObject(void *x) {
29080 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxBitmapDataObject *) x));
29081 }
29082 static void *_p_wxPyBitmapDataObjectTo_p_wxDataObject(void *x) {
29083 return (void *)((wxDataObject *) (wxDataObjectSimple *)(wxBitmapDataObject *) ((wxPyBitmapDataObject *) x));
29084 }
29085 static void *_p_wxFileDataObjectTo_p_wxDataObject(void *x) {
29086 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxFileDataObject *) x));
29087 }
29088 static void *_p_wxCustomDataObjectTo_p_wxDataObject(void *x) {
29089 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxCustomDataObject *) x));
29090 }
29091 static void *_p_wxURLDataObjectTo_p_wxDataObject(void *x) {
29092 return (void *)((wxDataObject *) (wxDataObjectComposite *) ((wxURLDataObject *) x));
29093 }
29094 static void *_p_wxMetafileDataObjectTo_p_wxDataObject(void *x) {
29095 return (void *)((wxDataObject *) (wxDataObjectSimple *) ((wxMetafileDataObject *) x));
29096 }
29097 static void *_p_wxURLDataObjectTo_p_wxDataObjectComposite(void *x) {
29098 return (void *)((wxDataObjectComposite *) ((wxURLDataObject *) x));
29099 }
29100 static void *_p_wxPyDataObjectSimpleTo_p_wxDataObjectSimple(void *x) {
29101 return (void *)((wxDataObjectSimple *) ((wxPyDataObjectSimple *) x));
29102 }
29103 static void *_p_wxTextDataObjectTo_p_wxDataObjectSimple(void *x) {
29104 return (void *)((wxDataObjectSimple *) ((wxTextDataObject *) x));
29105 }
29106 static void *_p_wxPyTextDataObjectTo_p_wxDataObjectSimple(void *x) {
29107 return (void *)((wxDataObjectSimple *) (wxTextDataObject *) ((wxPyTextDataObject *) x));
29108 }
29109 static void *_p_wxBitmapDataObjectTo_p_wxDataObjectSimple(void *x) {
29110 return (void *)((wxDataObjectSimple *) ((wxBitmapDataObject *) x));
29111 }
29112 static void *_p_wxPyBitmapDataObjectTo_p_wxDataObjectSimple(void *x) {
29113 return (void *)((wxDataObjectSimple *) (wxBitmapDataObject *) ((wxPyBitmapDataObject *) x));
29114 }
29115 static void *_p_wxFileDataObjectTo_p_wxDataObjectSimple(void *x) {
29116 return (void *)((wxDataObjectSimple *) ((wxFileDataObject *) x));
29117 }
29118 static void *_p_wxCustomDataObjectTo_p_wxDataObjectSimple(void *x) {
29119 return (void *)((wxDataObjectSimple *) ((wxCustomDataObject *) x));
29120 }
29121 static void *_p_wxMetafileDataObjectTo_p_wxDataObjectSimple(void *x) {
29122 return (void *)((wxDataObjectSimple *) ((wxMetafileDataObject *) x));
29123 }
29124 static void *_p_wxControlTo_p_wxEvtHandler(void *x) {
29125 return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x));
29126 }
29127 static void *_p_wxWindowTo_p_wxEvtHandler(void *x) {
29128 return (void *)((wxEvtHandler *) ((wxWindow *) x));
29129 }
29130 static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) {
29131 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x));
29132 }
29133 static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) {
29134 return (void *)((wxEvtHandler *) ((wxPyApp *) x));
29135 }
29136 static void *_p_wxPyTimerTo_p_wxEvtHandler(void *x) {
29137 return (void *)((wxEvtHandler *) ((wxPyTimer *) x));
29138 }
29139 static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) {
29140 return (void *)((wxEvtHandler *) ((wxValidator *) x));
29141 }
29142 static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) {
29143 return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x));
29144 }
29145 static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) {
29146 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x));
29147 }
29148 static void *_p_wxMenuTo_p_wxEvtHandler(void *x) {
29149 return (void *)((wxEvtHandler *) ((wxMenu *) x));
29150 }
29151 static void *_p_wxPyProcessTo_p_wxEvtHandler(void *x) {
29152 return (void *)((wxEvtHandler *) ((wxPyProcess *) x));
29153 }
29154 static void *_p_wxPyTipProviderTo_p_wxTipProvider(void *x) {
29155 return (void *)((wxTipProvider *) ((wxPyTipProvider *) x));
29156 }
29157 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
29158 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
29159 }
29160 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
29161 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
29162 }
29163 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
29164 return (void *)((wxObject *) ((wxSizerItem *) x));
29165 }
29166 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
29167 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
29168 }
29169 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
29170 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
29171 }
29172 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
29173 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
29174 }
29175 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
29176 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
29177 }
29178 static void *_p_wxSizerTo_p_wxObject(void *x) {
29179 return (void *)((wxObject *) ((wxSizer *) x));
29180 }
29181 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
29182 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
29183 }
29184 static void *_p_wxFileHistoryTo_p_wxObject(void *x) {
29185 return (void *)((wxObject *) ((wxFileHistory *) x));
29186 }
29187 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
29188 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
29189 }
29190 static void *_p_wxEventTo_p_wxObject(void *x) {
29191 return (void *)((wxObject *) ((wxEvent *) x));
29192 }
29193 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
29194 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
29195 }
29196 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
29197 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
29198 }
29199 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
29200 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
29201 }
29202 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
29203 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
29204 }
29205 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
29206 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
29207 }
29208 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
29209 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
29210 }
29211 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
29212 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
29213 }
29214 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
29215 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
29216 }
29217 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
29218 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
29219 }
29220 static void *_p_wxControlTo_p_wxObject(void *x) {
29221 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
29222 }
29223 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
29224 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
29225 }
29226 static void *_p_wxTimerEventTo_p_wxObject(void *x) {
29227 return (void *)((wxObject *) (wxEvent *) ((wxTimerEvent *) x));
29228 }
29229 static void *_p_wxFSFileTo_p_wxObject(void *x) {
29230 return (void *)((wxObject *) ((wxFSFile *) x));
29231 }
29232 static void *_p_wxClipboardTo_p_wxObject(void *x) {
29233 return (void *)((wxObject *) ((wxClipboard *) x));
29234 }
29235 static void *_p_wxPySizerTo_p_wxObject(void *x) {
29236 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
29237 }
29238 static void *_p_wxPyEventTo_p_wxObject(void *x) {
29239 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
29240 }
29241 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
29242 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
29243 }
29244 static void *_p_wxShowEventTo_p_wxObject(void *x) {
29245 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
29246 }
29247 static void *_p_wxToolTipTo_p_wxObject(void *x) {
29248 return (void *)((wxObject *) ((wxToolTip *) x));
29249 }
29250 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
29251 return (void *)((wxObject *) ((wxMenuItem *) x));
29252 }
29253 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
29254 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
29255 }
29256 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
29257 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
29258 }
29259 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
29260 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
29261 }
29262 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
29263 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
29264 }
29265 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
29266 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
29267 }
29268 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
29269 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
29270 }
29271 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
29272 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
29273 }
29274 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
29275 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
29276 }
29277 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
29278 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
29279 }
29280 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
29281 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
29282 }
29283 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
29284 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
29285 }
29286 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
29287 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
29288 }
29289 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
29290 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
29291 }
29292 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
29293 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
29294 }
29295 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
29296 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
29297 }
29298 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
29299 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
29300 }
29301 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
29302 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
29303 }
29304 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
29305 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
29306 }
29307 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
29308 return (void *)((wxObject *) ((wxImageHandler *) x));
29309 }
29310 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
29311 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
29312 }
29313 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
29314 return (void *)((wxObject *) ((wxEvtHandler *) x));
29315 }
29316 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
29317 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
29318 }
29319 static void *_p_wxImageTo_p_wxObject(void *x) {
29320 return (void *)((wxObject *) ((wxImage *) x));
29321 }
29322 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
29323 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
29324 }
29325 static void *_p_wxSystemOptionsTo_p_wxObject(void *x) {
29326 return (void *)((wxObject *) ((wxSystemOptions *) x));
29327 }
29328 static void *_p_wxJoystickEventTo_p_wxObject(void *x) {
29329 return (void *)((wxObject *) (wxEvent *) ((wxJoystickEvent *) x));
29330 }
29331 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
29332 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
29333 }
29334 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
29335 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
29336 }
29337 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
29338 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
29339 }
29340 static void *_p_wxWindowTo_p_wxObject(void *x) {
29341 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
29342 }
29343 static void *_p_wxMenuTo_p_wxObject(void *x) {
29344 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
29345 }
29346 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
29347 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
29348 }
29349 static void *_p_wxPyProcessTo_p_wxObject(void *x) {
29350 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyProcess *) x));
29351 }
29352 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
29353 return (void *)((wxObject *) ((wxFileSystem *) x));
29354 }
29355 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
29356 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
29357 }
29358 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
29359 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
29360 }
29361 static void *_p_wxPyAppTo_p_wxObject(void *x) {
29362 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
29363 }
29364 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
29365 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
29366 }
29367 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
29368 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
29369 }
29370 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
29371 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
29372 }
29373 static void *_p_wxBusyInfoTo_p_wxObject(void *x) {
29374 return (void *)((wxObject *) ((wxBusyInfo *) x));
29375 }
29376 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
29377 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
29378 }
29379 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
29380 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
29381 }
29382 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
29383 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
29384 }
29385 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
29386 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
29387 }
29388 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
29389 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
29390 }
29391 static void *_p_wxProcessEventTo_p_wxObject(void *x) {
29392 return (void *)((wxObject *) (wxEvent *) ((wxProcessEvent *) x));
29393 }
29394 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
29395 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
29396 }
29397 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
29398 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
29399 }
29400 static void *_p_wxValidatorTo_p_wxObject(void *x) {
29401 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
29402 }
29403 static void *_p_wxPyTimerTo_p_wxObject(void *x) {
29404 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyTimer *) x));
29405 }
29406 static void *_p_wxLogStderrTo_p_wxLog(void *x) {
29407 return (void *)((wxLog *) ((wxLogStderr *) x));
29408 }
29409 static void *_p_wxLogTextCtrlTo_p_wxLog(void *x) {
29410 return (void *)((wxLog *) ((wxLogTextCtrl *) x));
29411 }
29412 static void *_p_wxLogWindowTo_p_wxLog(void *x) {
29413 return (void *)((wxLog *) ((wxLogWindow *) x));
29414 }
29415 static void *_p_wxLogChainTo_p_wxLog(void *x) {
29416 return (void *)((wxLog *) ((wxLogChain *) x));
29417 }
29418 static void *_p_wxLogGuiTo_p_wxLog(void *x) {
29419 return (void *)((wxLog *) ((wxLogGui *) x));
29420 }
29421 static void *_p_wxPyLogTo_p_wxLog(void *x) {
29422 return (void *)((wxLog *) ((wxPyLog *) x));
29423 }
29424 static void *_p_wxControlTo_p_wxWindow(void *x) {
29425 return (void *)((wxWindow *) ((wxControl *) x));
29426 }
29427 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
29428 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
29429 }
29430 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
29431 return (void *)((wxWindow *) ((wxMenuBar *) x));
29432 }
29433 static void *_p_wxPyTextDropTargetTo_p_wxPyDropTarget(void *x) {
29434 return (void *)((wxPyDropTarget *) ((wxPyTextDropTarget *) x));
29435 }
29436 static void *_p_wxPyFileDropTargetTo_p_wxPyDropTarget(void *x) {
29437 return (void *)((wxPyDropTarget *) ((wxPyFileDropTarget *) x));
29438 }
29439 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}};
29440 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}};
29441 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}};
29442 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}};
29443 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}};
29444 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}};
29445 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}};
29446 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}};
29447 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}};
29448 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}};
29449 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}};
29450 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}};
29451 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}};
29452 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}};
29453 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}};
29454 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}};
29455 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}};
29456 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}};
29457 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}};
29458 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}};
29459 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}};
29460 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}};
29461 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}};
29462 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}};
29463 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}};
29464 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}};
29465 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}};
29466 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}};
29467 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}};
29468 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}};
29469 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}};
29470 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}};
29471 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}};
29472 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}};
29473 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}};
29474 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}};
29475 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}};
29476 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}};
29477 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}};
29478 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}};
29479 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}};
29480 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}};
29481 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}};
29482 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}};
29483 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}};
29484 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}};
29485 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}};
29486 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}};
29487 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}};
29488 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}};
29489 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}};
29490 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}};
29491 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}};
29492 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}};
29493 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}};
29494 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}};
29495 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}};
29496 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}};
29497 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}};
29498 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}};
29499 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}};
29500 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}};
29501 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}};
29502 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}};
29503 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}};
29504 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}};
29505 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}};
29506 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}};
29507 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}};
29508 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}};
29509 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}};
29510 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}};
29511 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}};
29512 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}};
29513 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}};
29514 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}};
29515 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}};
29516 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}};
29517 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}};
29518 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}};
29519 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}};
29520 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}};
29521 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}};
29522 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}};
29523 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}};
29524
29525 static swig_type_info *swig_types_initial[] = {
29526 _swigt__p_wxLogChain,
29527 _swigt__p_wxMutexGuiLocker,
29528 _swigt__p_wxFileHistory,
29529 _swigt__p_wxLog,
29530 _swigt__p_wxDateTime__TimeZone,
29531 _swigt__p_wxMenu,
29532 _swigt__p_wxEvent,
29533 _swigt__p_wxConfigBase,
29534 _swigt__p_wxDisplay,
29535 _swigt__p_wxFileType,
29536 _swigt__p_wxLogGui,
29537 _swigt__p_wxFont,
29538 _swigt__p_wxDataFormat,
29539 _swigt__p_wxTimerEvent,
29540 _swigt__p_wxCaret,
29541 _swigt__p_int,
29542 _swigt__p_wxSize,
29543 _swigt__p_wxClipboard,
29544 _swigt__p_wxStopWatch,
29545 _swigt__p_wxDC,
29546 _swigt__p_wxClipboardLocker,
29547 _swigt__p_wxIcon,
29548 _swigt__p_wxLogStderr,
29549 _swigt__p_wxLogTextCtrl,
29550 _swigt__p_wxTextCtrl,
29551 _swigt__p_wxBusyCursor,
29552 _swigt__p_wxPyBitmapDataObject,
29553 _swigt__p_wxPyTextDataObject,
29554 _swigt__p_wxBitmapDataObject,
29555 _swigt__p_wxTextDataObject,
29556 _swigt__p_wxDataObject,
29557 _swigt__p_wxFileDataObject,
29558 _swigt__p_wxCustomDataObject,
29559 _swigt__p_wxURLDataObject,
29560 _swigt__p_wxMetafileDataObject,
29561 _swigt__p_wxSound,
29562 _swigt__p_wxTimerRunner,
29563 _swigt__p_wxLogWindow,
29564 _swigt__p_wxTimeSpan,
29565 _swigt__p_wxArrayString,
29566 _swigt__p_wxWindowDisabler,
29567 _swigt__p_wxToolTip,
29568 _swigt__p_wxDataObjectComposite,
29569 _swigt__p_wxFileConfig,
29570 _swigt__p_wxSystemSettings,
29571 _swigt__p_wxVideoMode,
29572 _swigt__p_wxPyDataObjectSimple,
29573 _swigt__p_wxDataObjectSimple,
29574 _swigt__p_wxEvtHandler,
29575 _swigt__p_wxRect,
29576 _swigt__p_char,
29577 _swigt__p_wxSingleInstanceChecker,
29578 _swigt__p_wxFileTypeInfo,
29579 _swigt__p_wxFrame,
29580 _swigt__p_wxTimer,
29581 _swigt__p_wxMimeTypesManager,
29582 _swigt__p_wxPyArtProvider,
29583 _swigt__p_wxPyTipProvider,
29584 _swigt__p_wxTipProvider,
29585 _swigt__p_wxJoystick,
29586 _swigt__p_wxSystemOptions,
29587 _swigt__p_wxPoint,
29588 _swigt__p_wxJoystickEvent,
29589 _swigt__p_wxCursor,
29590 _swigt__p_wxObject,
29591 _swigt__p_wxOutputStream,
29592 _swigt__p_wxDateTime,
29593 _swigt__p_wxPyDropSource,
29594 _swigt__p_wxWindow,
29595 _swigt__p_wxString,
29596 _swigt__p_wxPyProcess,
29597 _swigt__p_wxBitmap,
29598 _swigt__p_wxConfig,
29599 _swigt__p_wxChar,
29600 _swigt__p_wxBusyInfo,
29601 _swigt__p_wxPyDropTarget,
29602 _swigt__p_wxPyTextDropTarget,
29603 _swigt__p_wxPyFileDropTarget,
29604 _swigt__p_wxProcessEvent,
29605 _swigt__p_wxPyLog,
29606 _swigt__p_wxLogNull,
29607 _swigt__p_wxColour,
29608 _swigt__p_wxConfigPathChanger,
29609 _swigt__p_wxPyTimer,
29610 _swigt__p_wxDateSpan,
29611 0
29612 };
29613
29614
29615 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
29616
29617 static swig_const_info swig_const_table[] = {
29618 { SWIG_PY_POINTER, (char*)"TRACE_MemAlloc", 0, 0, (void *)"memalloc", &SWIGTYPE_p_char},
29619 { SWIG_PY_POINTER, (char*)"TRACE_Messages", 0, 0, (void *)"messages", &SWIGTYPE_p_char},
29620 { SWIG_PY_POINTER, (char*)"TRACE_ResAlloc", 0, 0, (void *)"resalloc", &SWIGTYPE_p_char},
29621 { SWIG_PY_POINTER, (char*)"TRACE_RefCount", 0, 0, (void *)"refcount", &SWIGTYPE_p_char},
29622 { SWIG_PY_POINTER, (char*)"TRACE_OleCalls", 0, 0, (void *)"ole", &SWIGTYPE_p_char},
29623 {0}};
29624
29625 #ifdef __cplusplus
29626 }
29627 #endif
29628
29629 #ifdef __cplusplus
29630 extern "C"
29631 #endif
29632 SWIGEXPORT(void) SWIG_init(void) {
29633 static PyObject *SWIG_globals = 0;
29634 static int typeinit = 0;
29635 PyObject *m, *d;
29636 int i;
29637 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
29638 m = Py_InitModule((char *) SWIG_name, SwigMethods);
29639 d = PyModule_GetDict(m);
29640
29641 if (!typeinit) {
29642 for (i = 0; swig_types_initial[i]; i++) {
29643 swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
29644 }
29645 typeinit = 1;
29646 }
29647 SWIG_InstallConstants(d,swig_const_table);
29648
29649 PyDict_SetItemString(d,"SYS_OEM_FIXED_FONT", SWIG_FromInt((int)wxSYS_OEM_FIXED_FONT));
29650 PyDict_SetItemString(d,"SYS_ANSI_FIXED_FONT", SWIG_FromInt((int)wxSYS_ANSI_FIXED_FONT));
29651 PyDict_SetItemString(d,"SYS_ANSI_VAR_FONT", SWIG_FromInt((int)wxSYS_ANSI_VAR_FONT));
29652 PyDict_SetItemString(d,"SYS_SYSTEM_FONT", SWIG_FromInt((int)wxSYS_SYSTEM_FONT));
29653 PyDict_SetItemString(d,"SYS_DEVICE_DEFAULT_FONT", SWIG_FromInt((int)wxSYS_DEVICE_DEFAULT_FONT));
29654 PyDict_SetItemString(d,"SYS_DEFAULT_PALETTE", SWIG_FromInt((int)wxSYS_DEFAULT_PALETTE));
29655 PyDict_SetItemString(d,"SYS_SYSTEM_FIXED_FONT", SWIG_FromInt((int)wxSYS_SYSTEM_FIXED_FONT));
29656 PyDict_SetItemString(d,"SYS_DEFAULT_GUI_FONT", SWIG_FromInt((int)wxSYS_DEFAULT_GUI_FONT));
29657 PyDict_SetItemString(d,"SYS_ICONTITLE_FONT", SWIG_FromInt((int)wxSYS_ICONTITLE_FONT));
29658 PyDict_SetItemString(d,"SYS_COLOUR_SCROLLBAR", SWIG_FromInt((int)wxSYS_COLOUR_SCROLLBAR));
29659 PyDict_SetItemString(d,"SYS_COLOUR_BACKGROUND", SWIG_FromInt((int)wxSYS_COLOUR_BACKGROUND));
29660 PyDict_SetItemString(d,"SYS_COLOUR_DESKTOP", SWIG_FromInt((int)wxSYS_COLOUR_DESKTOP));
29661 PyDict_SetItemString(d,"SYS_COLOUR_ACTIVECAPTION", SWIG_FromInt((int)wxSYS_COLOUR_ACTIVECAPTION));
29662 PyDict_SetItemString(d,"SYS_COLOUR_INACTIVECAPTION", SWIG_FromInt((int)wxSYS_COLOUR_INACTIVECAPTION));
29663 PyDict_SetItemString(d,"SYS_COLOUR_MENU", SWIG_FromInt((int)wxSYS_COLOUR_MENU));
29664 PyDict_SetItemString(d,"SYS_COLOUR_WINDOW", SWIG_FromInt((int)wxSYS_COLOUR_WINDOW));
29665 PyDict_SetItemString(d,"SYS_COLOUR_WINDOWFRAME", SWIG_FromInt((int)wxSYS_COLOUR_WINDOWFRAME));
29666 PyDict_SetItemString(d,"SYS_COLOUR_MENUTEXT", SWIG_FromInt((int)wxSYS_COLOUR_MENUTEXT));
29667 PyDict_SetItemString(d,"SYS_COLOUR_WINDOWTEXT", SWIG_FromInt((int)wxSYS_COLOUR_WINDOWTEXT));
29668 PyDict_SetItemString(d,"SYS_COLOUR_CAPTIONTEXT", SWIG_FromInt((int)wxSYS_COLOUR_CAPTIONTEXT));
29669 PyDict_SetItemString(d,"SYS_COLOUR_ACTIVEBORDER", SWIG_FromInt((int)wxSYS_COLOUR_ACTIVEBORDER));
29670 PyDict_SetItemString(d,"SYS_COLOUR_INACTIVEBORDER", SWIG_FromInt((int)wxSYS_COLOUR_INACTIVEBORDER));
29671 PyDict_SetItemString(d,"SYS_COLOUR_APPWORKSPACE", SWIG_FromInt((int)wxSYS_COLOUR_APPWORKSPACE));
29672 PyDict_SetItemString(d,"SYS_COLOUR_HIGHLIGHT", SWIG_FromInt((int)wxSYS_COLOUR_HIGHLIGHT));
29673 PyDict_SetItemString(d,"SYS_COLOUR_HIGHLIGHTTEXT", SWIG_FromInt((int)wxSYS_COLOUR_HIGHLIGHTTEXT));
29674 PyDict_SetItemString(d,"SYS_COLOUR_BTNFACE", SWIG_FromInt((int)wxSYS_COLOUR_BTNFACE));
29675 PyDict_SetItemString(d,"SYS_COLOUR_3DFACE", SWIG_FromInt((int)wxSYS_COLOUR_3DFACE));
29676 PyDict_SetItemString(d,"SYS_COLOUR_BTNSHADOW", SWIG_FromInt((int)wxSYS_COLOUR_BTNSHADOW));
29677 PyDict_SetItemString(d,"SYS_COLOUR_3DSHADOW", SWIG_FromInt((int)wxSYS_COLOUR_3DSHADOW));
29678 PyDict_SetItemString(d,"SYS_COLOUR_GRAYTEXT", SWIG_FromInt((int)wxSYS_COLOUR_GRAYTEXT));
29679 PyDict_SetItemString(d,"SYS_COLOUR_BTNTEXT", SWIG_FromInt((int)wxSYS_COLOUR_BTNTEXT));
29680 PyDict_SetItemString(d,"SYS_COLOUR_INACTIVECAPTIONTEXT", SWIG_FromInt((int)wxSYS_COLOUR_INACTIVECAPTIONTEXT));
29681 PyDict_SetItemString(d,"SYS_COLOUR_BTNHIGHLIGHT", SWIG_FromInt((int)wxSYS_COLOUR_BTNHIGHLIGHT));
29682 PyDict_SetItemString(d,"SYS_COLOUR_BTNHILIGHT", SWIG_FromInt((int)wxSYS_COLOUR_BTNHILIGHT));
29683 PyDict_SetItemString(d,"SYS_COLOUR_3DHIGHLIGHT", SWIG_FromInt((int)wxSYS_COLOUR_3DHIGHLIGHT));
29684 PyDict_SetItemString(d,"SYS_COLOUR_3DHILIGHT", SWIG_FromInt((int)wxSYS_COLOUR_3DHILIGHT));
29685 PyDict_SetItemString(d,"SYS_COLOUR_3DDKSHADOW", SWIG_FromInt((int)wxSYS_COLOUR_3DDKSHADOW));
29686 PyDict_SetItemString(d,"SYS_COLOUR_3DLIGHT", SWIG_FromInt((int)wxSYS_COLOUR_3DLIGHT));
29687 PyDict_SetItemString(d,"SYS_COLOUR_INFOTEXT", SWIG_FromInt((int)wxSYS_COLOUR_INFOTEXT));
29688 PyDict_SetItemString(d,"SYS_COLOUR_INFOBK", SWIG_FromInt((int)wxSYS_COLOUR_INFOBK));
29689 PyDict_SetItemString(d,"SYS_COLOUR_LISTBOX", SWIG_FromInt((int)wxSYS_COLOUR_LISTBOX));
29690 PyDict_SetItemString(d,"SYS_COLOUR_HOTLIGHT", SWIG_FromInt((int)wxSYS_COLOUR_HOTLIGHT));
29691 PyDict_SetItemString(d,"SYS_COLOUR_GRADIENTACTIVECAPTION", SWIG_FromInt((int)wxSYS_COLOUR_GRADIENTACTIVECAPTION));
29692 PyDict_SetItemString(d,"SYS_COLOUR_GRADIENTINACTIVECAPTION", SWIG_FromInt((int)wxSYS_COLOUR_GRADIENTINACTIVECAPTION));
29693 PyDict_SetItemString(d,"SYS_COLOUR_MENUHILIGHT", SWIG_FromInt((int)wxSYS_COLOUR_MENUHILIGHT));
29694 PyDict_SetItemString(d,"SYS_COLOUR_MENUBAR", SWIG_FromInt((int)wxSYS_COLOUR_MENUBAR));
29695 PyDict_SetItemString(d,"SYS_COLOUR_MAX", SWIG_FromInt((int)wxSYS_COLOUR_MAX));
29696 PyDict_SetItemString(d,"SYS_MOUSE_BUTTONS", SWIG_FromInt((int)wxSYS_MOUSE_BUTTONS));
29697 PyDict_SetItemString(d,"SYS_BORDER_X", SWIG_FromInt((int)wxSYS_BORDER_X));
29698 PyDict_SetItemString(d,"SYS_BORDER_Y", SWIG_FromInt((int)wxSYS_BORDER_Y));
29699 PyDict_SetItemString(d,"SYS_CURSOR_X", SWIG_FromInt((int)wxSYS_CURSOR_X));
29700 PyDict_SetItemString(d,"SYS_CURSOR_Y", SWIG_FromInt((int)wxSYS_CURSOR_Y));
29701 PyDict_SetItemString(d,"SYS_DCLICK_X", SWIG_FromInt((int)wxSYS_DCLICK_X));
29702 PyDict_SetItemString(d,"SYS_DCLICK_Y", SWIG_FromInt((int)wxSYS_DCLICK_Y));
29703 PyDict_SetItemString(d,"SYS_DRAG_X", SWIG_FromInt((int)wxSYS_DRAG_X));
29704 PyDict_SetItemString(d,"SYS_DRAG_Y", SWIG_FromInt((int)wxSYS_DRAG_Y));
29705 PyDict_SetItemString(d,"SYS_EDGE_X", SWIG_FromInt((int)wxSYS_EDGE_X));
29706 PyDict_SetItemString(d,"SYS_EDGE_Y", SWIG_FromInt((int)wxSYS_EDGE_Y));
29707 PyDict_SetItemString(d,"SYS_HSCROLL_ARROW_X", SWIG_FromInt((int)wxSYS_HSCROLL_ARROW_X));
29708 PyDict_SetItemString(d,"SYS_HSCROLL_ARROW_Y", SWIG_FromInt((int)wxSYS_HSCROLL_ARROW_Y));
29709 PyDict_SetItemString(d,"SYS_HTHUMB_X", SWIG_FromInt((int)wxSYS_HTHUMB_X));
29710 PyDict_SetItemString(d,"SYS_ICON_X", SWIG_FromInt((int)wxSYS_ICON_X));
29711 PyDict_SetItemString(d,"SYS_ICON_Y", SWIG_FromInt((int)wxSYS_ICON_Y));
29712 PyDict_SetItemString(d,"SYS_ICONSPACING_X", SWIG_FromInt((int)wxSYS_ICONSPACING_X));
29713 PyDict_SetItemString(d,"SYS_ICONSPACING_Y", SWIG_FromInt((int)wxSYS_ICONSPACING_Y));
29714 PyDict_SetItemString(d,"SYS_WINDOWMIN_X", SWIG_FromInt((int)wxSYS_WINDOWMIN_X));
29715 PyDict_SetItemString(d,"SYS_WINDOWMIN_Y", SWIG_FromInt((int)wxSYS_WINDOWMIN_Y));
29716 PyDict_SetItemString(d,"SYS_SCREEN_X", SWIG_FromInt((int)wxSYS_SCREEN_X));
29717 PyDict_SetItemString(d,"SYS_SCREEN_Y", SWIG_FromInt((int)wxSYS_SCREEN_Y));
29718 PyDict_SetItemString(d,"SYS_FRAMESIZE_X", SWIG_FromInt((int)wxSYS_FRAMESIZE_X));
29719 PyDict_SetItemString(d,"SYS_FRAMESIZE_Y", SWIG_FromInt((int)wxSYS_FRAMESIZE_Y));
29720 PyDict_SetItemString(d,"SYS_SMALLICON_X", SWIG_FromInt((int)wxSYS_SMALLICON_X));
29721 PyDict_SetItemString(d,"SYS_SMALLICON_Y", SWIG_FromInt((int)wxSYS_SMALLICON_Y));
29722 PyDict_SetItemString(d,"SYS_HSCROLL_Y", SWIG_FromInt((int)wxSYS_HSCROLL_Y));
29723 PyDict_SetItemString(d,"SYS_VSCROLL_X", SWIG_FromInt((int)wxSYS_VSCROLL_X));
29724 PyDict_SetItemString(d,"SYS_VSCROLL_ARROW_X", SWIG_FromInt((int)wxSYS_VSCROLL_ARROW_X));
29725 PyDict_SetItemString(d,"SYS_VSCROLL_ARROW_Y", SWIG_FromInt((int)wxSYS_VSCROLL_ARROW_Y));
29726 PyDict_SetItemString(d,"SYS_VTHUMB_Y", SWIG_FromInt((int)wxSYS_VTHUMB_Y));
29727 PyDict_SetItemString(d,"SYS_CAPTION_Y", SWIG_FromInt((int)wxSYS_CAPTION_Y));
29728 PyDict_SetItemString(d,"SYS_MENU_Y", SWIG_FromInt((int)wxSYS_MENU_Y));
29729 PyDict_SetItemString(d,"SYS_NETWORK_PRESENT", SWIG_FromInt((int)wxSYS_NETWORK_PRESENT));
29730 PyDict_SetItemString(d,"SYS_PENWINDOWS_PRESENT", SWIG_FromInt((int)wxSYS_PENWINDOWS_PRESENT));
29731 PyDict_SetItemString(d,"SYS_SHOW_SOUNDS", SWIG_FromInt((int)wxSYS_SHOW_SOUNDS));
29732 PyDict_SetItemString(d,"SYS_SWAP_BUTTONS", SWIG_FromInt((int)wxSYS_SWAP_BUTTONS));
29733 PyDict_SetItemString(d,"SYS_CAN_DRAW_FRAME_DECORATIONS", SWIG_FromInt((int)wxSYS_CAN_DRAW_FRAME_DECORATIONS));
29734 PyDict_SetItemString(d,"SYS_CAN_ICONIZE_FRAME", SWIG_FromInt((int)wxSYS_CAN_ICONIZE_FRAME));
29735 PyDict_SetItemString(d,"SYS_SCREEN_NONE", SWIG_FromInt((int)wxSYS_SCREEN_NONE));
29736 PyDict_SetItemString(d,"SYS_SCREEN_TINY", SWIG_FromInt((int)wxSYS_SCREEN_TINY));
29737 PyDict_SetItemString(d,"SYS_SCREEN_PDA", SWIG_FromInt((int)wxSYS_SCREEN_PDA));
29738 PyDict_SetItemString(d,"SYS_SCREEN_SMALL", SWIG_FromInt((int)wxSYS_SCREEN_SMALL));
29739 PyDict_SetItemString(d,"SYS_SCREEN_DESKTOP", SWIG_FromInt((int)wxSYS_SCREEN_DESKTOP));
29740 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
29741 SWIG_addvarlink(SWIG_globals,(char*)"FileSelectorPromptStr",_wrap_FileSelectorPromptStr_get, _wrap_FileSelectorPromptStr_set);
29742 SWIG_addvarlink(SWIG_globals,(char*)"FileSelectorDefaultWildcardStr",_wrap_FileSelectorDefaultWildcardStr_get, _wrap_FileSelectorDefaultWildcardStr_set);
29743 SWIG_addvarlink(SWIG_globals,(char*)"DirSelectorPromptStr",_wrap_DirSelectorPromptStr_get, _wrap_DirSelectorPromptStr_set);
29744 PyDict_SetItemString(d,"SHUTDOWN_POWEROFF", SWIG_FromInt((int)wxSHUTDOWN_POWEROFF));
29745 PyDict_SetItemString(d,"SHUTDOWN_REBOOT", SWIG_FromInt((int)wxSHUTDOWN_REBOOT));
29746 PyDict_SetItemString(d,"TIMER_CONTINUOUS", SWIG_FromInt((int)wxTIMER_CONTINUOUS));
29747 PyDict_SetItemString(d,"TIMER_ONE_SHOT", SWIG_FromInt((int)wxTIMER_ONE_SHOT));
29748 PyDict_SetItemString(d, "wxEVT_TIMER", PyInt_FromLong(wxEVT_TIMER));
29749
29750 wxPyPtrTypeMap_Add("wxTimer", "wxPyTimer");
29751
29752 PyDict_SetItemString(d,"LOG_FatalError", SWIG_FromInt((int)wxLOG_FatalError));
29753 PyDict_SetItemString(d,"LOG_Error", SWIG_FromInt((int)wxLOG_Error));
29754 PyDict_SetItemString(d,"LOG_Warning", SWIG_FromInt((int)wxLOG_Warning));
29755 PyDict_SetItemString(d,"LOG_Message", SWIG_FromInt((int)wxLOG_Message));
29756 PyDict_SetItemString(d,"LOG_Status", SWIG_FromInt((int)wxLOG_Status));
29757 PyDict_SetItemString(d,"LOG_Info", SWIG_FromInt((int)wxLOG_Info));
29758 PyDict_SetItemString(d,"LOG_Debug", SWIG_FromInt((int)wxLOG_Debug));
29759 PyDict_SetItemString(d,"LOG_Trace", SWIG_FromInt((int)wxLOG_Trace));
29760 PyDict_SetItemString(d,"LOG_Progress", SWIG_FromInt((int)wxLOG_Progress));
29761 PyDict_SetItemString(d,"LOG_User", SWIG_FromInt((int)wxLOG_User));
29762 PyDict_SetItemString(d,"LOG_Max", SWIG_FromInt((int)wxLOG_Max));
29763 PyDict_SetItemString(d,"TRACE_MemAlloc", SWIG_FromCharPtr("memalloc"));
29764 PyDict_SetItemString(d,"TRACE_Messages", SWIG_FromCharPtr("messages"));
29765 PyDict_SetItemString(d,"TRACE_ResAlloc", SWIG_FromCharPtr("resalloc"));
29766 PyDict_SetItemString(d,"TRACE_RefCount", SWIG_FromCharPtr("refcount"));
29767 PyDict_SetItemString(d,"TRACE_OleCalls", SWIG_FromCharPtr("ole"));
29768 PyDict_SetItemString(d,"TraceMemAlloc", SWIG_FromInt((int)0x0001));
29769 PyDict_SetItemString(d,"TraceMessages", SWIG_FromInt((int)0x0002));
29770 PyDict_SetItemString(d,"TraceResAlloc", SWIG_FromInt((int)0x0004));
29771 PyDict_SetItemString(d,"TraceRefCount", SWIG_FromInt((int)0x0008));
29772 PyDict_SetItemString(d,"TraceOleCalls", SWIG_FromInt((int)0x0100));
29773 PyDict_SetItemString(d,"PROCESS_DEFAULT", SWIG_FromInt((int)wxPROCESS_DEFAULT));
29774 PyDict_SetItemString(d,"PROCESS_REDIRECT", SWIG_FromInt((int)wxPROCESS_REDIRECT));
29775 PyDict_SetItemString(d,"KILL_OK", SWIG_FromInt((int)wxKILL_OK));
29776 PyDict_SetItemString(d,"KILL_BAD_SIGNAL", SWIG_FromInt((int)wxKILL_BAD_SIGNAL));
29777 PyDict_SetItemString(d,"KILL_ACCESS_DENIED", SWIG_FromInt((int)wxKILL_ACCESS_DENIED));
29778 PyDict_SetItemString(d,"KILL_NO_PROCESS", SWIG_FromInt((int)wxKILL_NO_PROCESS));
29779 PyDict_SetItemString(d,"KILL_ERROR", SWIG_FromInt((int)wxKILL_ERROR));
29780 PyDict_SetItemString(d,"SIGNONE", SWIG_FromInt((int)wxSIGNONE));
29781 PyDict_SetItemString(d,"SIGHUP", SWIG_FromInt((int)wxSIGHUP));
29782 PyDict_SetItemString(d,"SIGINT", SWIG_FromInt((int)wxSIGINT));
29783 PyDict_SetItemString(d,"SIGQUIT", SWIG_FromInt((int)wxSIGQUIT));
29784 PyDict_SetItemString(d,"SIGILL", SWIG_FromInt((int)wxSIGILL));
29785 PyDict_SetItemString(d,"SIGTRAP", SWIG_FromInt((int)wxSIGTRAP));
29786 PyDict_SetItemString(d,"SIGABRT", SWIG_FromInt((int)wxSIGABRT));
29787 PyDict_SetItemString(d,"SIGIOT", SWIG_FromInt((int)wxSIGIOT));
29788 PyDict_SetItemString(d,"SIGEMT", SWIG_FromInt((int)wxSIGEMT));
29789 PyDict_SetItemString(d,"SIGFPE", SWIG_FromInt((int)wxSIGFPE));
29790 PyDict_SetItemString(d,"SIGKILL", SWIG_FromInt((int)wxSIGKILL));
29791 PyDict_SetItemString(d,"SIGBUS", SWIG_FromInt((int)wxSIGBUS));
29792 PyDict_SetItemString(d,"SIGSEGV", SWIG_FromInt((int)wxSIGSEGV));
29793 PyDict_SetItemString(d,"SIGSYS", SWIG_FromInt((int)wxSIGSYS));
29794 PyDict_SetItemString(d,"SIGPIPE", SWIG_FromInt((int)wxSIGPIPE));
29795 PyDict_SetItemString(d,"SIGALRM", SWIG_FromInt((int)wxSIGALRM));
29796 PyDict_SetItemString(d,"SIGTERM", SWIG_FromInt((int)wxSIGTERM));
29797 PyDict_SetItemString(d, "wxEVT_END_PROCESS", PyInt_FromLong(wxEVT_END_PROCESS));
29798 PyDict_SetItemString(d,"EXEC_ASYNC", SWIG_FromInt((int)wxEXEC_ASYNC));
29799 PyDict_SetItemString(d,"EXEC_SYNC", SWIG_FromInt((int)wxEXEC_SYNC));
29800 PyDict_SetItemString(d,"EXEC_NOHIDE", SWIG_FromInt((int)wxEXEC_NOHIDE));
29801 PyDict_SetItemString(d,"EXEC_MAKE_GROUP_LEADER", SWIG_FromInt((int)wxEXEC_MAKE_GROUP_LEADER));
29802
29803 wxPyPtrTypeMap_Add("wxProcess", "wxPyProcess");
29804
29805 PyDict_SetItemString(d,"JOYSTICK1", SWIG_FromInt((int)wxJOYSTICK1));
29806 PyDict_SetItemString(d,"JOYSTICK2", SWIG_FromInt((int)wxJOYSTICK2));
29807 PyDict_SetItemString(d,"JOY_BUTTON_ANY", SWIG_FromInt((int)wxJOY_BUTTON_ANY));
29808 PyDict_SetItemString(d,"JOY_BUTTON1", SWIG_FromInt((int)wxJOY_BUTTON1));
29809 PyDict_SetItemString(d,"JOY_BUTTON2", SWIG_FromInt((int)wxJOY_BUTTON2));
29810 PyDict_SetItemString(d,"JOY_BUTTON3", SWIG_FromInt((int)wxJOY_BUTTON3));
29811 PyDict_SetItemString(d,"JOY_BUTTON4", SWIG_FromInt((int)wxJOY_BUTTON4));
29812 PyDict_SetItemString(d, "wxEVT_JOY_BUTTON_DOWN", PyInt_FromLong(wxEVT_JOY_BUTTON_DOWN));
29813 PyDict_SetItemString(d, "wxEVT_JOY_BUTTON_UP", PyInt_FromLong(wxEVT_JOY_BUTTON_UP));
29814 PyDict_SetItemString(d, "wxEVT_JOY_MOVE", PyInt_FromLong(wxEVT_JOY_MOVE));
29815 PyDict_SetItemString(d, "wxEVT_JOY_ZMOVE", PyInt_FromLong(wxEVT_JOY_ZMOVE));
29816 PyDict_SetItemString(d,"SOUND_SYNC", SWIG_FromInt((int)wxSOUND_SYNC));
29817 PyDict_SetItemString(d,"SOUND_ASYNC", SWIG_FromInt((int)wxSOUND_ASYNC));
29818 PyDict_SetItemString(d,"SOUND_LOOP", SWIG_FromInt((int)wxSOUND_LOOP));
29819 PyDict_SetItemString(d,"MAILCAP_STANDARD", SWIG_FromInt((int)wxMAILCAP_STANDARD));
29820 PyDict_SetItemString(d,"MAILCAP_NETSCAPE", SWIG_FromInt((int)wxMAILCAP_NETSCAPE));
29821 PyDict_SetItemString(d,"MAILCAP_KDE", SWIG_FromInt((int)wxMAILCAP_KDE));
29822 PyDict_SetItemString(d,"MAILCAP_GNOME", SWIG_FromInt((int)wxMAILCAP_GNOME));
29823 PyDict_SetItemString(d,"MAILCAP_ALL", SWIG_FromInt((int)wxMAILCAP_ALL));
29824 SWIG_addvarlink(SWIG_globals,(char*)"TheMimeTypesManager",_wrap_TheMimeTypesManager_get, _wrap_TheMimeTypesManager_set);
29825 SWIG_addvarlink(SWIG_globals,(char*)"ART_TOOLBAR",_wrap_ART_TOOLBAR_get, _wrap_ART_TOOLBAR_set);
29826 SWIG_addvarlink(SWIG_globals,(char*)"ART_MENU",_wrap_ART_MENU_get, _wrap_ART_MENU_set);
29827 SWIG_addvarlink(SWIG_globals,(char*)"ART_FRAME_ICON",_wrap_ART_FRAME_ICON_get, _wrap_ART_FRAME_ICON_set);
29828 SWIG_addvarlink(SWIG_globals,(char*)"ART_CMN_DIALOG",_wrap_ART_CMN_DIALOG_get, _wrap_ART_CMN_DIALOG_set);
29829 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_BROWSER",_wrap_ART_HELP_BROWSER_get, _wrap_ART_HELP_BROWSER_set);
29830 SWIG_addvarlink(SWIG_globals,(char*)"ART_MESSAGE_BOX",_wrap_ART_MESSAGE_BOX_get, _wrap_ART_MESSAGE_BOX_set);
29831 SWIG_addvarlink(SWIG_globals,(char*)"ART_OTHER",_wrap_ART_OTHER_get, _wrap_ART_OTHER_set);
29832 SWIG_addvarlink(SWIG_globals,(char*)"ART_ADD_BOOKMARK",_wrap_ART_ADD_BOOKMARK_get, _wrap_ART_ADD_BOOKMARK_set);
29833 SWIG_addvarlink(SWIG_globals,(char*)"ART_DEL_BOOKMARK",_wrap_ART_DEL_BOOKMARK_get, _wrap_ART_DEL_BOOKMARK_set);
29834 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_SIDE_PANEL",_wrap_ART_HELP_SIDE_PANEL_get, _wrap_ART_HELP_SIDE_PANEL_set);
29835 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_SETTINGS",_wrap_ART_HELP_SETTINGS_get, _wrap_ART_HELP_SETTINGS_set);
29836 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_BOOK",_wrap_ART_HELP_BOOK_get, _wrap_ART_HELP_BOOK_set);
29837 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_FOLDER",_wrap_ART_HELP_FOLDER_get, _wrap_ART_HELP_FOLDER_set);
29838 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP_PAGE",_wrap_ART_HELP_PAGE_get, _wrap_ART_HELP_PAGE_set);
29839 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_BACK",_wrap_ART_GO_BACK_get, _wrap_ART_GO_BACK_set);
29840 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_FORWARD",_wrap_ART_GO_FORWARD_get, _wrap_ART_GO_FORWARD_set);
29841 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_UP",_wrap_ART_GO_UP_get, _wrap_ART_GO_UP_set);
29842 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_DOWN",_wrap_ART_GO_DOWN_get, _wrap_ART_GO_DOWN_set);
29843 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_TO_PARENT",_wrap_ART_GO_TO_PARENT_get, _wrap_ART_GO_TO_PARENT_set);
29844 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_HOME",_wrap_ART_GO_HOME_get, _wrap_ART_GO_HOME_set);
29845 SWIG_addvarlink(SWIG_globals,(char*)"ART_FILE_OPEN",_wrap_ART_FILE_OPEN_get, _wrap_ART_FILE_OPEN_set);
29846 SWIG_addvarlink(SWIG_globals,(char*)"ART_PRINT",_wrap_ART_PRINT_get, _wrap_ART_PRINT_set);
29847 SWIG_addvarlink(SWIG_globals,(char*)"ART_HELP",_wrap_ART_HELP_get, _wrap_ART_HELP_set);
29848 SWIG_addvarlink(SWIG_globals,(char*)"ART_TIP",_wrap_ART_TIP_get, _wrap_ART_TIP_set);
29849 SWIG_addvarlink(SWIG_globals,(char*)"ART_REPORT_VIEW",_wrap_ART_REPORT_VIEW_get, _wrap_ART_REPORT_VIEW_set);
29850 SWIG_addvarlink(SWIG_globals,(char*)"ART_LIST_VIEW",_wrap_ART_LIST_VIEW_get, _wrap_ART_LIST_VIEW_set);
29851 SWIG_addvarlink(SWIG_globals,(char*)"ART_NEW_DIR",_wrap_ART_NEW_DIR_get, _wrap_ART_NEW_DIR_set);
29852 SWIG_addvarlink(SWIG_globals,(char*)"ART_FOLDER",_wrap_ART_FOLDER_get, _wrap_ART_FOLDER_set);
29853 SWIG_addvarlink(SWIG_globals,(char*)"ART_GO_DIR_UP",_wrap_ART_GO_DIR_UP_get, _wrap_ART_GO_DIR_UP_set);
29854 SWIG_addvarlink(SWIG_globals,(char*)"ART_EXECUTABLE_FILE",_wrap_ART_EXECUTABLE_FILE_get, _wrap_ART_EXECUTABLE_FILE_set);
29855 SWIG_addvarlink(SWIG_globals,(char*)"ART_NORMAL_FILE",_wrap_ART_NORMAL_FILE_get, _wrap_ART_NORMAL_FILE_set);
29856 SWIG_addvarlink(SWIG_globals,(char*)"ART_TICK_MARK",_wrap_ART_TICK_MARK_get, _wrap_ART_TICK_MARK_set);
29857 SWIG_addvarlink(SWIG_globals,(char*)"ART_CROSS_MARK",_wrap_ART_CROSS_MARK_get, _wrap_ART_CROSS_MARK_set);
29858 SWIG_addvarlink(SWIG_globals,(char*)"ART_ERROR",_wrap_ART_ERROR_get, _wrap_ART_ERROR_set);
29859 SWIG_addvarlink(SWIG_globals,(char*)"ART_QUESTION",_wrap_ART_QUESTION_get, _wrap_ART_QUESTION_set);
29860 SWIG_addvarlink(SWIG_globals,(char*)"ART_WARNING",_wrap_ART_WARNING_get, _wrap_ART_WARNING_set);
29861 SWIG_addvarlink(SWIG_globals,(char*)"ART_INFORMATION",_wrap_ART_INFORMATION_get, _wrap_ART_INFORMATION_set);
29862 SWIG_addvarlink(SWIG_globals,(char*)"ART_MISSING_IMAGE",_wrap_ART_MISSING_IMAGE_get, _wrap_ART_MISSING_IMAGE_set);
29863
29864 wxPyPtrTypeMap_Add("wxArtProvider", "wxPyArtProvider");
29865
29866 PyDict_SetItemString(d,"CONFIG_USE_LOCAL_FILE", SWIG_FromInt((int)wxCONFIG_USE_LOCAL_FILE));
29867 PyDict_SetItemString(d,"CONFIG_USE_GLOBAL_FILE", SWIG_FromInt((int)wxCONFIG_USE_GLOBAL_FILE));
29868 PyDict_SetItemString(d,"CONFIG_USE_RELATIVE_PATH", SWIG_FromInt((int)wxCONFIG_USE_RELATIVE_PATH));
29869 PyDict_SetItemString(d,"CONFIG_USE_NO_ESCAPE_CHARACTERS", SWIG_FromInt((int)wxCONFIG_USE_NO_ESCAPE_CHARACTERS));
29870 PyDict_SetItemString(d,"ConfigBase_Type_Unknown", SWIG_FromInt((int)wxConfigBase::Type_Unknown));
29871 PyDict_SetItemString(d,"ConfigBase_Type_String", SWIG_FromInt((int)wxConfigBase::Type_String));
29872 PyDict_SetItemString(d,"ConfigBase_Type_Boolean", SWIG_FromInt((int)wxConfigBase::Type_Boolean));
29873 PyDict_SetItemString(d,"ConfigBase_Type_Integer", SWIG_FromInt((int)wxConfigBase::Type_Integer));
29874 PyDict_SetItemString(d,"ConfigBase_Type_Float", SWIG_FromInt((int)wxConfigBase::Type_Float));
29875 SWIG_addvarlink(SWIG_globals,(char*)"DateFormatStr",_wrap_DateFormatStr_get, _wrap_DateFormatStr_set);
29876 SWIG_addvarlink(SWIG_globals,(char*)"TimeSpanFormatStr",_wrap_TimeSpanFormatStr_get, _wrap_TimeSpanFormatStr_set);
29877 PyDict_SetItemString(d,"DateTime_Local", SWIG_FromInt((int)wxDateTime::Local));
29878 PyDict_SetItemString(d,"DateTime_GMT_12", SWIG_FromInt((int)wxDateTime::GMT_12));
29879 PyDict_SetItemString(d,"DateTime_GMT_11", SWIG_FromInt((int)wxDateTime::GMT_11));
29880 PyDict_SetItemString(d,"DateTime_GMT_10", SWIG_FromInt((int)wxDateTime::GMT_10));
29881 PyDict_SetItemString(d,"DateTime_GMT_9", SWIG_FromInt((int)wxDateTime::GMT_9));
29882 PyDict_SetItemString(d,"DateTime_GMT_8", SWIG_FromInt((int)wxDateTime::GMT_8));
29883 PyDict_SetItemString(d,"DateTime_GMT_7", SWIG_FromInt((int)wxDateTime::GMT_7));
29884 PyDict_SetItemString(d,"DateTime_GMT_6", SWIG_FromInt((int)wxDateTime::GMT_6));
29885 PyDict_SetItemString(d,"DateTime_GMT_5", SWIG_FromInt((int)wxDateTime::GMT_5));
29886 PyDict_SetItemString(d,"DateTime_GMT_4", SWIG_FromInt((int)wxDateTime::GMT_4));
29887 PyDict_SetItemString(d,"DateTime_GMT_3", SWIG_FromInt((int)wxDateTime::GMT_3));
29888 PyDict_SetItemString(d,"DateTime_GMT_2", SWIG_FromInt((int)wxDateTime::GMT_2));
29889 PyDict_SetItemString(d,"DateTime_GMT_1", SWIG_FromInt((int)wxDateTime::GMT_1));
29890 PyDict_SetItemString(d,"DateTime_GMT0", SWIG_FromInt((int)wxDateTime::GMT0));
29891 PyDict_SetItemString(d,"DateTime_GMT1", SWIG_FromInt((int)wxDateTime::GMT1));
29892 PyDict_SetItemString(d,"DateTime_GMT2", SWIG_FromInt((int)wxDateTime::GMT2));
29893 PyDict_SetItemString(d,"DateTime_GMT3", SWIG_FromInt((int)wxDateTime::GMT3));
29894 PyDict_SetItemString(d,"DateTime_GMT4", SWIG_FromInt((int)wxDateTime::GMT4));
29895 PyDict_SetItemString(d,"DateTime_GMT5", SWIG_FromInt((int)wxDateTime::GMT5));
29896 PyDict_SetItemString(d,"DateTime_GMT6", SWIG_FromInt((int)wxDateTime::GMT6));
29897 PyDict_SetItemString(d,"DateTime_GMT7", SWIG_FromInt((int)wxDateTime::GMT7));
29898 PyDict_SetItemString(d,"DateTime_GMT8", SWIG_FromInt((int)wxDateTime::GMT8));
29899 PyDict_SetItemString(d,"DateTime_GMT9", SWIG_FromInt((int)wxDateTime::GMT9));
29900 PyDict_SetItemString(d,"DateTime_GMT10", SWIG_FromInt((int)wxDateTime::GMT10));
29901 PyDict_SetItemString(d,"DateTime_GMT11", SWIG_FromInt((int)wxDateTime::GMT11));
29902 PyDict_SetItemString(d,"DateTime_GMT12", SWIG_FromInt((int)wxDateTime::GMT12));
29903 PyDict_SetItemString(d,"DateTime_WET", SWIG_FromInt((int)wxDateTime::WET));
29904 PyDict_SetItemString(d,"DateTime_WEST", SWIG_FromInt((int)wxDateTime::WEST));
29905 PyDict_SetItemString(d,"DateTime_CET", SWIG_FromInt((int)wxDateTime::CET));
29906 PyDict_SetItemString(d,"DateTime_CEST", SWIG_FromInt((int)wxDateTime::CEST));
29907 PyDict_SetItemString(d,"DateTime_EET", SWIG_FromInt((int)wxDateTime::EET));
29908 PyDict_SetItemString(d,"DateTime_EEST", SWIG_FromInt((int)wxDateTime::EEST));
29909 PyDict_SetItemString(d,"DateTime_MSK", SWIG_FromInt((int)wxDateTime::MSK));
29910 PyDict_SetItemString(d,"DateTime_MSD", SWIG_FromInt((int)wxDateTime::MSD));
29911 PyDict_SetItemString(d,"DateTime_AST", SWIG_FromInt((int)wxDateTime::AST));
29912 PyDict_SetItemString(d,"DateTime_ADT", SWIG_FromInt((int)wxDateTime::ADT));
29913 PyDict_SetItemString(d,"DateTime_EST", SWIG_FromInt((int)wxDateTime::EST));
29914 PyDict_SetItemString(d,"DateTime_EDT", SWIG_FromInt((int)wxDateTime::EDT));
29915 PyDict_SetItemString(d,"DateTime_CST", SWIG_FromInt((int)wxDateTime::CST));
29916 PyDict_SetItemString(d,"DateTime_CDT", SWIG_FromInt((int)wxDateTime::CDT));
29917 PyDict_SetItemString(d,"DateTime_MST", SWIG_FromInt((int)wxDateTime::MST));
29918 PyDict_SetItemString(d,"DateTime_MDT", SWIG_FromInt((int)wxDateTime::MDT));
29919 PyDict_SetItemString(d,"DateTime_PST", SWIG_FromInt((int)wxDateTime::PST));
29920 PyDict_SetItemString(d,"DateTime_PDT", SWIG_FromInt((int)wxDateTime::PDT));
29921 PyDict_SetItemString(d,"DateTime_HST", SWIG_FromInt((int)wxDateTime::HST));
29922 PyDict_SetItemString(d,"DateTime_AKST", SWIG_FromInt((int)wxDateTime::AKST));
29923 PyDict_SetItemString(d,"DateTime_AKDT", SWIG_FromInt((int)wxDateTime::AKDT));
29924 PyDict_SetItemString(d,"DateTime_A_WST", SWIG_FromInt((int)wxDateTime::A_WST));
29925 PyDict_SetItemString(d,"DateTime_A_CST", SWIG_FromInt((int)wxDateTime::A_CST));
29926 PyDict_SetItemString(d,"DateTime_A_EST", SWIG_FromInt((int)wxDateTime::A_EST));
29927 PyDict_SetItemString(d,"DateTime_A_ESST", SWIG_FromInt((int)wxDateTime::A_ESST));
29928 PyDict_SetItemString(d,"DateTime_UTC", SWIG_FromInt((int)wxDateTime::UTC));
29929 PyDict_SetItemString(d,"DateTime_Gregorian", SWIG_FromInt((int)wxDateTime::Gregorian));
29930 PyDict_SetItemString(d,"DateTime_Julian", SWIG_FromInt((int)wxDateTime::Julian));
29931 PyDict_SetItemString(d,"DateTime_Gr_Unknown", SWIG_FromInt((int)wxDateTime::Gr_Unknown));
29932 PyDict_SetItemString(d,"DateTime_Gr_Standard", SWIG_FromInt((int)wxDateTime::Gr_Standard));
29933 PyDict_SetItemString(d,"DateTime_Gr_Alaska", SWIG_FromInt((int)wxDateTime::Gr_Alaska));
29934 PyDict_SetItemString(d,"DateTime_Gr_Albania", SWIG_FromInt((int)wxDateTime::Gr_Albania));
29935 PyDict_SetItemString(d,"DateTime_Gr_Austria", SWIG_FromInt((int)wxDateTime::Gr_Austria));
29936 PyDict_SetItemString(d,"DateTime_Gr_Austria_Brixen", SWIG_FromInt((int)wxDateTime::Gr_Austria_Brixen));
29937 PyDict_SetItemString(d,"DateTime_Gr_Austria_Salzburg", SWIG_FromInt((int)wxDateTime::Gr_Austria_Salzburg));
29938 PyDict_SetItemString(d,"DateTime_Gr_Austria_Tyrol", SWIG_FromInt((int)wxDateTime::Gr_Austria_Tyrol));
29939 PyDict_SetItemString(d,"DateTime_Gr_Austria_Carinthia", SWIG_FromInt((int)wxDateTime::Gr_Austria_Carinthia));
29940 PyDict_SetItemString(d,"DateTime_Gr_Austria_Styria", SWIG_FromInt((int)wxDateTime::Gr_Austria_Styria));
29941 PyDict_SetItemString(d,"DateTime_Gr_Belgium", SWIG_FromInt((int)wxDateTime::Gr_Belgium));
29942 PyDict_SetItemString(d,"DateTime_Gr_Bulgaria", SWIG_FromInt((int)wxDateTime::Gr_Bulgaria));
29943 PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_1", SWIG_FromInt((int)wxDateTime::Gr_Bulgaria_1));
29944 PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_2", SWIG_FromInt((int)wxDateTime::Gr_Bulgaria_2));
29945 PyDict_SetItemString(d,"DateTime_Gr_Bulgaria_3", SWIG_FromInt((int)wxDateTime::Gr_Bulgaria_3));
29946 PyDict_SetItemString(d,"DateTime_Gr_Canada", SWIG_FromInt((int)wxDateTime::Gr_Canada));
29947 PyDict_SetItemString(d,"DateTime_Gr_China", SWIG_FromInt((int)wxDateTime::Gr_China));
29948 PyDict_SetItemString(d,"DateTime_Gr_China_1", SWIG_FromInt((int)wxDateTime::Gr_China_1));
29949 PyDict_SetItemString(d,"DateTime_Gr_China_2", SWIG_FromInt((int)wxDateTime::Gr_China_2));
29950 PyDict_SetItemString(d,"DateTime_Gr_Czechoslovakia", SWIG_FromInt((int)wxDateTime::Gr_Czechoslovakia));
29951 PyDict_SetItemString(d,"DateTime_Gr_Denmark", SWIG_FromInt((int)wxDateTime::Gr_Denmark));
29952 PyDict_SetItemString(d,"DateTime_Gr_Egypt", SWIG_FromInt((int)wxDateTime::Gr_Egypt));
29953 PyDict_SetItemString(d,"DateTime_Gr_Estonia", SWIG_FromInt((int)wxDateTime::Gr_Estonia));
29954 PyDict_SetItemString(d,"DateTime_Gr_Finland", SWIG_FromInt((int)wxDateTime::Gr_Finland));
29955 PyDict_SetItemString(d,"DateTime_Gr_France", SWIG_FromInt((int)wxDateTime::Gr_France));
29956 PyDict_SetItemString(d,"DateTime_Gr_France_Alsace", SWIG_FromInt((int)wxDateTime::Gr_France_Alsace));
29957 PyDict_SetItemString(d,"DateTime_Gr_France_Lorraine", SWIG_FromInt((int)wxDateTime::Gr_France_Lorraine));
29958 PyDict_SetItemString(d,"DateTime_Gr_France_Strasbourg", SWIG_FromInt((int)wxDateTime::Gr_France_Strasbourg));
29959 PyDict_SetItemString(d,"DateTime_Gr_Germany", SWIG_FromInt((int)wxDateTime::Gr_Germany));
29960 PyDict_SetItemString(d,"DateTime_Gr_Germany_Catholic", SWIG_FromInt((int)wxDateTime::Gr_Germany_Catholic));
29961 PyDict_SetItemString(d,"DateTime_Gr_Germany_Prussia", SWIG_FromInt((int)wxDateTime::Gr_Germany_Prussia));
29962 PyDict_SetItemString(d,"DateTime_Gr_Germany_Protestant", SWIG_FromInt((int)wxDateTime::Gr_Germany_Protestant));
29963 PyDict_SetItemString(d,"DateTime_Gr_GreatBritain", SWIG_FromInt((int)wxDateTime::Gr_GreatBritain));
29964 PyDict_SetItemString(d,"DateTime_Gr_Greece", SWIG_FromInt((int)wxDateTime::Gr_Greece));
29965 PyDict_SetItemString(d,"DateTime_Gr_Hungary", SWIG_FromInt((int)wxDateTime::Gr_Hungary));
29966 PyDict_SetItemString(d,"DateTime_Gr_Ireland", SWIG_FromInt((int)wxDateTime::Gr_Ireland));
29967 PyDict_SetItemString(d,"DateTime_Gr_Italy", SWIG_FromInt((int)wxDateTime::Gr_Italy));
29968 PyDict_SetItemString(d,"DateTime_Gr_Japan", SWIG_FromInt((int)wxDateTime::Gr_Japan));
29969 PyDict_SetItemString(d,"DateTime_Gr_Japan_1", SWIG_FromInt((int)wxDateTime::Gr_Japan_1));
29970 PyDict_SetItemString(d,"DateTime_Gr_Japan_2", SWIG_FromInt((int)wxDateTime::Gr_Japan_2));
29971 PyDict_SetItemString(d,"DateTime_Gr_Japan_3", SWIG_FromInt((int)wxDateTime::Gr_Japan_3));
29972 PyDict_SetItemString(d,"DateTime_Gr_Latvia", SWIG_FromInt((int)wxDateTime::Gr_Latvia));
29973 PyDict_SetItemString(d,"DateTime_Gr_Lithuania", SWIG_FromInt((int)wxDateTime::Gr_Lithuania));
29974 PyDict_SetItemString(d,"DateTime_Gr_Luxemburg", SWIG_FromInt((int)wxDateTime::Gr_Luxemburg));
29975 PyDict_SetItemString(d,"DateTime_Gr_Netherlands", SWIG_FromInt((int)wxDateTime::Gr_Netherlands));
29976 PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Groningen", SWIG_FromInt((int)wxDateTime::Gr_Netherlands_Groningen));
29977 PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Gelderland", SWIG_FromInt((int)wxDateTime::Gr_Netherlands_Gelderland));
29978 PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Utrecht", SWIG_FromInt((int)wxDateTime::Gr_Netherlands_Utrecht));
29979 PyDict_SetItemString(d,"DateTime_Gr_Netherlands_Friesland", SWIG_FromInt((int)wxDateTime::Gr_Netherlands_Friesland));
29980 PyDict_SetItemString(d,"DateTime_Gr_Norway", SWIG_FromInt((int)wxDateTime::Gr_Norway));
29981 PyDict_SetItemString(d,"DateTime_Gr_Poland", SWIG_FromInt((int)wxDateTime::Gr_Poland));
29982 PyDict_SetItemString(d,"DateTime_Gr_Portugal", SWIG_FromInt((int)wxDateTime::Gr_Portugal));
29983 PyDict_SetItemString(d,"DateTime_Gr_Romania", SWIG_FromInt((int)wxDateTime::Gr_Romania));
29984 PyDict_SetItemString(d,"DateTime_Gr_Russia", SWIG_FromInt((int)wxDateTime::Gr_Russia));
29985 PyDict_SetItemString(d,"DateTime_Gr_Scotland", SWIG_FromInt((int)wxDateTime::Gr_Scotland));
29986 PyDict_SetItemString(d,"DateTime_Gr_Spain", SWIG_FromInt((int)wxDateTime::Gr_Spain));
29987 PyDict_SetItemString(d,"DateTime_Gr_Sweden", SWIG_FromInt((int)wxDateTime::Gr_Sweden));
29988 PyDict_SetItemString(d,"DateTime_Gr_Switzerland", SWIG_FromInt((int)wxDateTime::Gr_Switzerland));
29989 PyDict_SetItemString(d,"DateTime_Gr_Switzerland_Catholic", SWIG_FromInt((int)wxDateTime::Gr_Switzerland_Catholic));
29990 PyDict_SetItemString(d,"DateTime_Gr_Switzerland_Protestant", SWIG_FromInt((int)wxDateTime::Gr_Switzerland_Protestant));
29991 PyDict_SetItemString(d,"DateTime_Gr_Turkey", SWIG_FromInt((int)wxDateTime::Gr_Turkey));
29992 PyDict_SetItemString(d,"DateTime_Gr_USA", SWIG_FromInt((int)wxDateTime::Gr_USA));
29993 PyDict_SetItemString(d,"DateTime_Gr_Wales", SWIG_FromInt((int)wxDateTime::Gr_Wales));
29994 PyDict_SetItemString(d,"DateTime_Gr_Yugoslavia", SWIG_FromInt((int)wxDateTime::Gr_Yugoslavia));
29995 PyDict_SetItemString(d,"DateTime_Country_Unknown", SWIG_FromInt((int)wxDateTime::Country_Unknown));
29996 PyDict_SetItemString(d,"DateTime_Country_Default", SWIG_FromInt((int)wxDateTime::Country_Default));
29997 PyDict_SetItemString(d,"DateTime_Country_WesternEurope_Start", SWIG_FromInt((int)wxDateTime::Country_WesternEurope_Start));
29998 PyDict_SetItemString(d,"DateTime_Country_EEC", SWIG_FromInt((int)wxDateTime::Country_EEC));
29999 PyDict_SetItemString(d,"DateTime_France", SWIG_FromInt((int)wxDateTime::France));
30000 PyDict_SetItemString(d,"DateTime_Germany", SWIG_FromInt((int)wxDateTime::Germany));
30001 PyDict_SetItemString(d,"DateTime_UK", SWIG_FromInt((int)wxDateTime::UK));
30002 PyDict_SetItemString(d,"DateTime_Country_WesternEurope_End", SWIG_FromInt((int)wxDateTime::Country_WesternEurope_End));
30003 PyDict_SetItemString(d,"DateTime_Russia", SWIG_FromInt((int)wxDateTime::Russia));
30004 PyDict_SetItemString(d,"DateTime_USA", SWIG_FromInt((int)wxDateTime::USA));
30005 PyDict_SetItemString(d,"DateTime_Jan", SWIG_FromInt((int)wxDateTime::Jan));
30006 PyDict_SetItemString(d,"DateTime_Feb", SWIG_FromInt((int)wxDateTime::Feb));
30007 PyDict_SetItemString(d,"DateTime_Mar", SWIG_FromInt((int)wxDateTime::Mar));
30008 PyDict_SetItemString(d,"DateTime_Apr", SWIG_FromInt((int)wxDateTime::Apr));
30009 PyDict_SetItemString(d,"DateTime_May", SWIG_FromInt((int)wxDateTime::May));
30010 PyDict_SetItemString(d,"DateTime_Jun", SWIG_FromInt((int)wxDateTime::Jun));
30011 PyDict_SetItemString(d,"DateTime_Jul", SWIG_FromInt((int)wxDateTime::Jul));
30012 PyDict_SetItemString(d,"DateTime_Aug", SWIG_FromInt((int)wxDateTime::Aug));
30013 PyDict_SetItemString(d,"DateTime_Sep", SWIG_FromInt((int)wxDateTime::Sep));
30014 PyDict_SetItemString(d,"DateTime_Oct", SWIG_FromInt((int)wxDateTime::Oct));
30015 PyDict_SetItemString(d,"DateTime_Nov", SWIG_FromInt((int)wxDateTime::Nov));
30016 PyDict_SetItemString(d,"DateTime_Dec", SWIG_FromInt((int)wxDateTime::Dec));
30017 PyDict_SetItemString(d,"DateTime_Inv_Month", SWIG_FromInt((int)wxDateTime::Inv_Month));
30018 PyDict_SetItemString(d,"DateTime_Sun", SWIG_FromInt((int)wxDateTime::Sun));
30019 PyDict_SetItemString(d,"DateTime_Mon", SWIG_FromInt((int)wxDateTime::Mon));
30020 PyDict_SetItemString(d,"DateTime_Tue", SWIG_FromInt((int)wxDateTime::Tue));
30021 PyDict_SetItemString(d,"DateTime_Wed", SWIG_FromInt((int)wxDateTime::Wed));
30022 PyDict_SetItemString(d,"DateTime_Thu", SWIG_FromInt((int)wxDateTime::Thu));
30023 PyDict_SetItemString(d,"DateTime_Fri", SWIG_FromInt((int)wxDateTime::Fri));
30024 PyDict_SetItemString(d,"DateTime_Sat", SWIG_FromInt((int)wxDateTime::Sat));
30025 PyDict_SetItemString(d,"DateTime_Inv_WeekDay", SWIG_FromInt((int)wxDateTime::Inv_WeekDay));
30026 PyDict_SetItemString(d,"DateTime_Inv_Year", SWIG_FromInt((int)wxDateTime::Inv_Year));
30027 PyDict_SetItemString(d,"DateTime_Name_Full", SWIG_FromInt((int)wxDateTime::Name_Full));
30028 PyDict_SetItemString(d,"DateTime_Name_Abbr", SWIG_FromInt((int)wxDateTime::Name_Abbr));
30029 PyDict_SetItemString(d,"DateTime_Default_First", SWIG_FromInt((int)wxDateTime::Default_First));
30030 PyDict_SetItemString(d,"DateTime_Monday_First", SWIG_FromInt((int)wxDateTime::Monday_First));
30031 PyDict_SetItemString(d,"DateTime_Sunday_First", SWIG_FromInt((int)wxDateTime::Sunday_First));
30032 SWIG_addvarlink(SWIG_globals,(char*)"DefaultDateTime",_wrap_DefaultDateTime_get, _wrap_DefaultDateTime_set);
30033 PyDict_SetItemString(d,"DF_INVALID", SWIG_FromInt((int)wxDF_INVALID));
30034 PyDict_SetItemString(d,"DF_TEXT", SWIG_FromInt((int)wxDF_TEXT));
30035 PyDict_SetItemString(d,"DF_BITMAP", SWIG_FromInt((int)wxDF_BITMAP));
30036 PyDict_SetItemString(d,"DF_METAFILE", SWIG_FromInt((int)wxDF_METAFILE));
30037 PyDict_SetItemString(d,"DF_SYLK", SWIG_FromInt((int)wxDF_SYLK));
30038 PyDict_SetItemString(d,"DF_DIF", SWIG_FromInt((int)wxDF_DIF));
30039 PyDict_SetItemString(d,"DF_TIFF", SWIG_FromInt((int)wxDF_TIFF));
30040 PyDict_SetItemString(d,"DF_OEMTEXT", SWIG_FromInt((int)wxDF_OEMTEXT));
30041 PyDict_SetItemString(d,"DF_DIB", SWIG_FromInt((int)wxDF_DIB));
30042 PyDict_SetItemString(d,"DF_PALETTE", SWIG_FromInt((int)wxDF_PALETTE));
30043 PyDict_SetItemString(d,"DF_PENDATA", SWIG_FromInt((int)wxDF_PENDATA));
30044 PyDict_SetItemString(d,"DF_RIFF", SWIG_FromInt((int)wxDF_RIFF));
30045 PyDict_SetItemString(d,"DF_WAVE", SWIG_FromInt((int)wxDF_WAVE));
30046 PyDict_SetItemString(d,"DF_UNICODETEXT", SWIG_FromInt((int)wxDF_UNICODETEXT));
30047 PyDict_SetItemString(d,"DF_ENHMETAFILE", SWIG_FromInt((int)wxDF_ENHMETAFILE));
30048 PyDict_SetItemString(d,"DF_FILENAME", SWIG_FromInt((int)wxDF_FILENAME));
30049 PyDict_SetItemString(d,"DF_LOCALE", SWIG_FromInt((int)wxDF_LOCALE));
30050 PyDict_SetItemString(d,"DF_PRIVATE", SWIG_FromInt((int)wxDF_PRIVATE));
30051 PyDict_SetItemString(d,"DF_HTML", SWIG_FromInt((int)wxDF_HTML));
30052 PyDict_SetItemString(d,"DF_MAX", SWIG_FromInt((int)wxDF_MAX));
30053 SWIG_addvarlink(SWIG_globals,(char*)"FormatInvalid",_wrap_FormatInvalid_get, _wrap_FormatInvalid_set);
30054 PyDict_SetItemString(d,"DataObject_Get", SWIG_FromInt((int)wxDataObject::Get));
30055 PyDict_SetItemString(d,"DataObject_Set", SWIG_FromInt((int)wxDataObject::Set));
30056 PyDict_SetItemString(d,"DataObject_Both", SWIG_FromInt((int)wxDataObject::Both));
30057 PyDict_SetItemString(d,"Drag_CopyOnly", SWIG_FromInt((int)wxDrag_CopyOnly));
30058 PyDict_SetItemString(d,"Drag_AllowMove", SWIG_FromInt((int)wxDrag_AllowMove));
30059 PyDict_SetItemString(d,"Drag_DefaultMove", SWIG_FromInt((int)wxDrag_DefaultMove));
30060 PyDict_SetItemString(d,"DragError", SWIG_FromInt((int)wxDragError));
30061 PyDict_SetItemString(d,"DragNone", SWIG_FromInt((int)wxDragNone));
30062 PyDict_SetItemString(d,"DragCopy", SWIG_FromInt((int)wxDragCopy));
30063 PyDict_SetItemString(d,"DragMove", SWIG_FromInt((int)wxDragMove));
30064 PyDict_SetItemString(d,"DragLink", SWIG_FromInt((int)wxDragLink));
30065 PyDict_SetItemString(d,"DragCancel", SWIG_FromInt((int)wxDragCancel));
30066
30067 wxPyPtrTypeMap_Add("wxDropSource", "wxPyDropSource");
30068 wxPyPtrTypeMap_Add("wxDropTarget", "wxPyDropTarget");
30069 wxPyPtrTypeMap_Add("wxTextDropTarget", "wxPyTextDropTarget");
30070 wxPyPtrTypeMap_Add("wxFileDropTarget", "wxPyFileDropTarget");
30071
30072 SWIG_addvarlink(SWIG_globals,(char*)"TheClipboard",_wrap_TheClipboard_get, _wrap_TheClipboard_set);
30073 SWIG_addvarlink(SWIG_globals,(char*)"DefaultVideoMode",_wrap_DefaultVideoMode_get, _wrap_DefaultVideoMode_set);
30074 }
30075